/*
Theme Name: Digantor News
Theme URI: https://digantor.com/
Author: Tasin
Author URI: https://digantor.com/
Description: A fast, responsive Bengali newsroom theme created for Digantor. Includes dynamic home, category, search and article layouts with accessible navigation and sharing tools.
Version: 1.1.6
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: digantor-news
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --red: #d71920;
  --red-dark: #a70f15;
  --ink: #111111;
  --muted: #696969;
  --line: #e7e7e7;
  --soft: #f5f5f3;
  --paper: #ffffff;
  --serif: "Noto Serif Bengali", Georgia, serif;
  --sans: "Noto Sans Bengali", system-ui, sans-serif;
  --shadow: 0 14px 38px rgba(17, 17, 17, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .site-header {
  z-index: auto;
}

/* Keep CookieAdmin consent handling active without its floating re-consent launcher. */
body .cookieadmin_reconsent_wrap {
  display: none !important;
}

body.menu-open::after {
  content: "";
  position: fixed;
  z-index: 40;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.shell {
  width: min(1400px, calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 20;
  background: #fff;
}

.masthead {
  min-height: 112px;
  display: grid;
  grid-template-columns: 1fr 260px 1fr;
  align-items: center;
  gap: 28px;
}

.masthead-left,
.masthead-right {
  display: flex;
  align-items: center;
}

.masthead-left {
  justify-content: flex-start;
  gap: 18px;
}

.masthead-right {
  justify-content: flex-end;
  gap: 8px;
}

.menu-toggle,
.search-button,
.nav-search {
  border: 0;
  background: transparent;
}

.menu-toggle {
  width: 46px;
  height: 46px;
  display: grid;
  place-content: center;
  gap: 5px;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.menu-toggle:hover {
  background: var(--soft);
}

.menu-toggle span {
  width: 23px;
  height: 2px;
  border-radius: 4px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

body.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.date-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  color: var(--muted);
  font-size: 13px;
}

.date-copy strong {
  color: #424242;
  font-size: 14px;
  font-weight: 600;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px;
  overflow: hidden;
}

.brand img {
  width: 215px;
  height: 110px;
  object-fit: contain;
}

.masthead-right > a,
.search-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.masthead-right > a:hover,
.search-button:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-1px);
}

.masthead-right svg,
.nav-search svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.masthead-right a:first-child svg path,
.masthead-right a:nth-child(3) svg > path:first-child {
  fill: currentColor;
  stroke: none;
}

.masthead-right a:nth-child(3) svg .play {
  fill: #fff;
  stroke: none;
}

.masthead-right .fill-dot {
  fill: currentColor;
  stroke: none;
}

.search-panel {
  border-top: 1px solid var(--line);
  background: var(--soft);
}

.search-form {
  padding-block: 20px;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}

.search-form label {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
}

.search-form > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
}

.search-form input {
  width: 100%;
  min-height: 48px;
  padding: 11px 16px;
  border: 1px solid #d5d5d5;
  border-radius: 4px;
  background: #fff;
}

.search-form button {
  min-height: 48px;
  padding-inline: 22px;
  border: 1px solid var(--red);
  border-radius: 4px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
}

.search-form .search-close {
  width: 48px;
  padding: 0;
  border-color: #d5d5d5;
  background: #fff;
  color: var(--ink);
  font-size: 28px;
  font-weight: 400;
}

.site-drawer {
  position: fixed;
  z-index: 50;
  inset: 0 auto 0 0;
  width: min(390px, 90vw);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 20px 26px 28px;
  background: #fff;
  box-shadow: 14px 0 42px rgba(17, 17, 17, 0.18);
}

.site-drawer[hidden] {
  display: none;
}

.drawer-head {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--red);
}

.drawer-head img {
  width: 148px;
  height: 72px;
  object-fit: contain;
}

.drawer-head button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  font-size: 27px;
  line-height: 1;
}

.site-drawer nav {
  display: flex;
  flex-direction: column;
  padding-block: 12px;
}

.site-drawer nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.site-drawer nav a:hover {
  padding-left: 5px;
  color: var(--red);
}

.drawer-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
  padding-top: 22px;
}

.drawer-contact span {
  color: var(--muted);
  font-size: 12px;
}

.drawer-contact a {
  color: var(--red);
  font-size: 14px;
  font-weight: 700;
}

.primary-nav {
  border-block: 1px solid var(--line);
  box-shadow: 0 4px 14px rgba(17, 17, 17, 0.035);
  background: #fff;
}

.nav-inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.nav-inner ul {
  list-style: none;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 31px;
  margin: 0;
  padding: 0;
}

.nav-inner li {
  display: flex;
}

.nav-inner a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 58px;
  white-space: nowrap;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
}

.nav-inner a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-inner a:hover::after,
.nav-inner a.active::after {
  transform: scaleX(1);
}

.nav-inner a.active {
  color: var(--red);
}

.nav-search {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-left: 4px;
}

.nav-search svg {
  width: 21px;
  height: 21px;
  stroke-width: 2;
}

.topic-rail {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.topic-label,
.topic-scroll a {
  flex: 0 0 auto;
  border-radius: 999px;
  white-space: nowrap;
}

.topic-label {
  padding: 8px 17px;
  background: var(--red);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.topic-scroll {
  min-width: 0;
  display: flex;
  gap: 9px;
  overflow-x: auto;
  scrollbar-width: none;
}

.topic-scroll::-webkit-scrollbar {
  display: none;
}

.topic-scroll a {
  padding: 8px 16px 7px;
  border: 1px solid #dfdfdf;
  color: #4b4b4b;
  font-size: 14px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.topic-scroll a:hover {
  border-color: var(--red);
  color: var(--red);
}

.lead-package {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.45fr) minmax(238px, 0.76fr);
  gap: 22px;
  align-items: stretch;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.lead-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 12px 18px 12px 0;
}

.category,
.headline-row article span,
.news-card > a > span,
.rail-story > span {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

.category {
  position: relative;
  padding-left: 29px;
  margin-bottom: 13px;
}

.category::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 20px;
  height: 3px;
  border-radius: 4px;
  background: var(--red);
  transform: translateY(-50%);
}

.lead-copy h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 2.55vw, 44px);
  line-height: 1.28;
  letter-spacing: -0.025em;
}

.lead-copy h1 a {
  background: linear-gradient(var(--red), var(--red)) 0 100% / 0 3px no-repeat;
  transition: color 0.22s ease, background-size 0.28s ease;
}

.lead-copy h1 a:hover {
  color: var(--red);
  background-size: 100% 3px;
}

.lead-copy > p {
  margin: 17px 0 21px;
  color: #5b5b5b;
  font-size: 16px;
  line-height: 1.75;
}

.meta {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #777;
  font-size: 12px;
}

.meta i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #aaa;
}

.lead-photo {
  position: relative;
  min-height: 405px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--soft);
}

.lead-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.lead-photo:hover img {
  transform: scale(1.025);
}

.photo-credit {
  position: absolute;
  right: 12px;
  bottom: 10px;
  padding: 4px 8px;
  border-radius: 3px;
  background: rgba(17, 17, 17, 0.72);
  color: #fff;
  font-size: 10px;
}

.side-rail {
  min-width: 0;
  display: grid;
  grid-template-rows: 0.82fr 1fr;
  gap: 14px;
}

.ad-card {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border: 1px solid #e1e1e1;
  border-radius: 6px;
  background:
    radial-gradient(circle at 110% -10%, rgba(215, 25, 32, 0.2), transparent 44%),
    linear-gradient(145deg, #f7f7f7, #ececec);
  text-align: center;
}

.ad-card::after {
  content: "";
  position: absolute;
  right: -45px;
  bottom: -55px;
  width: 150px;
  height: 95px;
  border: 14px solid rgba(215, 25, 32, 0.08);
  border-radius: 50%;
  transform: rotate(-10deg);
}

.ad-card > span {
  position: absolute;
  top: 7px;
  left: 50%;
  color: #888;
  font-family: Georgia, serif;
  font-size: 10px;
  transform: translateX(-50%);
}

.ad-card strong {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1.2;
}

.ad-card a {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.rail-story {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  border-radius: 6px;
  color: #fff;
}

.rail-story::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 15%, rgba(0, 0, 0, 0.8));
}

.rail-story img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.rail-story:hover img {
  transform: scale(1.04);
}

.rail-story > span,
.rail-story h2 {
  position: relative;
  z-index: 1;
}

.rail-story > span {
  color: #fff;
}

.rail-story h2 {
  margin: 5px 0 0;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.45;
}

.headline-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-block: 22px 34px;
}

.headline-row article {
  min-width: 0;
}

.headline-row article + article {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.headline-row article a {
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr);
  align-items: center;
  gap: 15px;
}

.headline-row img {
  width: 122px;
  height: 98px;
  aspect-ratio: 1.25;
  border-radius: 4px;
  object-fit: cover;
}

.headline-row h2 {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.48;
  transition: color 0.2s ease;
}

.headline-row a:hover h2 {
  color: var(--red);
}

.content-block,
.category-board,
.triple-section {
  padding-block: 38px 46px;
  border-top: 4px solid var(--ink);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.section-heading h2,
.mini-title h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1.2;
}

.section-heading > a,
.mini-title > a {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

.section-heading > a span {
  display: inline-block;
  margin-left: 3px;
  transition: transform 0.2s ease;
}

.section-heading > a:hover span {
  transform: translateX(4px);
}

.latest-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 42px;
}

.latest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 24px;
}

.news-card a {
  display: block;
}

.news-card img {
  width: 100%;
  height: clamp(185px, 17vw, 240px);
  aspect-ratio: 16 / 9;
  margin-bottom: 13px;
  border-radius: 5px;
  object-fit: cover;
}

.news-card h3 {
  margin: 6px 0 9px;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.45;
  transition: color 0.2s ease;
}

.news-card time {
  color: #858585;
  font-size: 12px;
}

.news-card a:hover h3 {
  color: var(--red);
}

.most-read {
  align-self: start;
  padding: 0 24px 8px;
  border-left: 1px solid var(--line);
}

.side-heading {
  min-height: 42px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 2px solid var(--red);
}

.side-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 25px;
}

.side-heading span {
  padding: 3px 9px;
  border-radius: 999px;
  background: #f8e5e6;
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
}

.most-read ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.most-read li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.most-read li > span {
  color: #d5d5d5;
  font-family: Georgia, serif;
  font-size: 31px;
  font-weight: 700;
  line-height: 1;
}

.most-read li:first-child > span {
  color: var(--red);
}

.most-read li a {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  transition: color 0.2s ease;
}

.most-read li a:hover {
  color: var(--red);
}

.category-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 54px;
}

.category-column + .category-column {
  padding-left: 54px;
  border-left: 1px solid var(--line);
}

.section-heading.compact {
  margin-bottom: 17px;
}

.section-heading.compact h2 {
  font-size: 29px;
}

.category-lead {
  display: grid;
  grid-template-columns: minmax(190px, 0.85fr) minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.category-lead img {
  width: 100%;
  height: clamp(175px, 14vw, 220px);
  aspect-ratio: 16 / 10;
  border-radius: 5px;
  object-fit: cover;
}

.category-lead h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.45;
  transition: color 0.2s ease;
}

.category-lead:hover h3 {
  color: var(--red);
}

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.link-list li {
  position: relative;
  padding: 15px 0 14px 18px;
  border-bottom: 1px solid var(--line);
}

.link-list li::before {
  content: "";
  position: absolute;
  top: 25px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
}

.link-list a {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  transition: color 0.2s ease;
}

.link-list a:hover {
  color: var(--red);
}

.triple-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.triple-section > article + article {
  padding-left: 32px;
  border-left: 1px solid var(--line);
}

.mini-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.mini-title h2 {
  font-size: 27px;
}

.triple-lead {
  display: block;
}

.triple-lead img {
  width: 100%;
  height: clamp(185px, 18vw, 245px);
  aspect-ratio: 16 / 9;
  border-radius: 5px;
  object-fit: cover;
}

.triple-lead h3 {
  margin: 12px 0 16px;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.48;
  transition: color 0.2s ease;
}

.triple-lead:hover h3,
.minor-link:hover {
  color: var(--red);
}

.minor-link {
  display: block;
  padding: 14px 0 0 17px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  position: relative;
  transition: color 0.2s ease;
}

.minor-link::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 1px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
}

.minor-link + .minor-link {
  margin-top: 14px;
}

.area-strip {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  align-items: center;
  gap: 36px;
  margin-top: 8px;
  margin-bottom: 56px;
  padding: 30px 36px;
  border-top: 4px solid var(--red);
  border-radius: 0 0 7px 7px;
  background: var(--soft);
}

.area-strip > div > span {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.area-strip h2 {
  margin: 3px 0 0;
  font-family: var(--serif);
  font-size: 27px;
}

.area-strip form {
  display: grid;
  grid-template-columns: repeat(2, minmax(170px, 1fr)) auto;
  align-items: end;
  gap: 13px;
}

.area-strip label {
  display: grid;
  gap: 5px;
}

.area-strip label > span {
  color: #666;
  font-size: 11px;
  font-weight: 700;
}

.area-strip select,
.area-strip button {
  min-height: 48px;
  border-radius: 4px;
}

.area-strip select {
  width: 100%;
  padding: 10px 34px 10px 12px;
  border: 1px solid #d6d6d6;
  background: #fff;
}

.area-strip button {
  padding: 10px 22px;
  border: 1px solid var(--red);
  background: var(--red);
  color: #fff;
  font-weight: 800;
}

.area-message {
  grid-column: 2 / -1;
  min-height: 0;
  margin: -22px 0 0;
  color: #555;
  font-size: 12px;
}

.area-message:not(:empty) {
  margin-top: -23px;
  transform: translateY(46px);
}

.site-footer {
  padding-top: 48px;
  background: #111;
  color: #d7d7d7;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 0.7fr);
  gap: 60px;
  padding-bottom: 44px;
}

.footer-brand img {
  width: 185px;
  height: 78px;
  padding: 8px 12px;
  border-radius: 4px;
  background: #fff;
  object-fit: contain;
}

.footer-brand p {
  margin: 13px 0 2px;
  color: #fff;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
}

.footer-brand span,
.footer-contact span {
  color: #929292;
  font-size: 12px;
}

.footer-grid h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 15px;
}

.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.footer-links a,
.footer-contact a {
  color: #aaa;
  font-size: 13px;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #fff;
}

.footer-contact-details {
  display: grid;
  gap: 8px;
  margin: 0;
  font-style: normal;
}

.footer-contact-row {
  margin: 0;
  color: #aaa;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.footer-contact-row strong {
  color: #d7d7d7;
  font-weight: 700;
}

.footer-contact-row a,
.footer-contact-row span {
  color: inherit;
  font-size: inherit;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 7px;
}

.footer-social a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #343434;
  border-radius: 50%;
  color: #d7d7d7;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-1px);
}

.footer-social a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.footer-social svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.footer-social .icon-fill {
  fill: currentColor;
  stroke: none;
}

.footer-social .icon-play {
  fill: #111;
  stroke: none;
}

.copyright {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid #2a2a2a;
}

.copyright p {
  margin: 0;
  color: #737373;
  font-size: 11px;
}

.copyright button {
  border: 0;
  background: transparent;
  color: #bbb;
  font-size: 12px;
}

@media (min-width: 981px) and (max-width: 1600px) {
  .shell {
    width: min(1240px, calc(100% - 64px));
  }
}

@media (max-width: 1180px) {
  .masthead {
    grid-template-columns: 1fr 225px 1fr;
  }

  .nav-inner ul {
    gap: 22px;
  }

  .nav-inner a {
    font-size: 16px;
  }

  .lead-package {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr) 230px;
    gap: 18px;
  }

  .lead-photo {
    min-height: 380px;
  }

  .latest-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 30px;
  }

  .category-board {
    gap: 36px;
  }

  .category-column + .category-column {
    padding-left: 36px;
  }
}

@media (max-width: 980px) {
  .shell {
    width: min(100% - 32px, 920px);
  }

  .date-copy span,
  .masthead-right > a {
    display: none;
  }

  .nav-inner {
    justify-content: flex-start;
    overflow: hidden;
  }

  .nav-inner ul {
    min-width: 0;
    flex: 1;
    justify-content: flex-start;
    gap: 24px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav-inner ul::-webkit-scrollbar {
    display: none;
  }

  .lead-package {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  }

  .side-rail {
    grid-column: 1 / -1;
    grid-template-columns: 0.7fr 1.3fr;
    grid-template-rows: 190px;
  }

  .headline-row {
    gap: 18px;
  }

  .headline-row article + article {
    padding-left: 18px;
  }

  .headline-row article a {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .headline-row img {
    width: 92px;
    height: 74px;
  }

  .headline-row h2 {
    font-size: 15px;
  }

  .latest-layout {
    grid-template-columns: 1fr;
  }

  .most-read {
    padding: 0;
    border-left: 0;
  }

  .most-read ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 26px;
  }

  .category-lead {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .category-lead h3 {
    font-size: 21px;
  }

  .triple-section {
    gap: 22px;
  }

  .triple-section > article + article {
    padding-left: 22px;
  }

  .area-strip {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .area-message {
    grid-column: 1;
  }

  .footer-grid {
    grid-template-columns: 1.3fr repeat(3, 0.7fr);
    gap: 28px;
  }
}

@media (max-width: 720px) {
  .shell {
    width: calc(100% - 28px);
  }

  .masthead {
    min-height: 76px;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 8px;
  }

  .masthead-left {
    display: contents;
  }

  .menu-toggle {
    grid-column: 1;
    grid-row: 1;
  }

  .date-copy {
    display: none;
  }

  .brand {
    grid-column: 2;
    grid-row: 1;
    height: 72px;
  }

  .brand img {
    width: 156px;
    height: 78px;
  }

  .masthead-right {
    grid-column: 3;
    grid-row: 1;
  }

  .masthead-right .search-button {
    width: 42px;
    height: 42px;
    border-color: transparent;
  }

  .primary-nav {
    display: none;
  }

  .site-drawer {
    width: min(340px, 88vw);
    max-height: 100dvh;
    padding: 14px 18px 24px;
  }

  .search-form {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .search-form label {
    font-size: 16px;
  }

  .search-form > div {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .search-form .search-close {
    position: absolute;
    top: 15px;
    right: 14px;
    width: 36px;
    min-height: 36px;
    border: 0;
    background: transparent;
  }

  .topic-rail {
    min-height: 70px;
    width: 100%;
    padding-inline: 14px;
    border-bottom: 1px solid var(--line);
  }

  .topic-label {
    padding: 7px 13px;
    font-size: 11px;
  }

  .topic-scroll a {
    padding: 7px 13px 6px;
    font-size: 12px;
  }

  .lead-package {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding-bottom: 18px;
  }

  .lead-photo {
    order: 1;
    min-height: 0;
    aspect-ratio: 16 / 9;
    border-radius: 0;
  }

  .lead-copy {
    order: 2;
    width: calc(100% - 28px);
    margin-inline: auto;
    padding: 18px 0 20px;
  }

  .category {
    margin-bottom: 8px;
  }

  .lead-copy h1 {
    font-size: 29px;
    line-height: 1.32;
  }

  .lead-copy > p {
    margin: 12px 0 16px;
    font-size: 14px;
    line-height: 1.7;
  }

  .side-rail {
    order: 3;
    width: calc(100% - 28px);
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    margin-inline: auto;
  }

  .ad-card {
    min-height: 130px;
  }

  .ad-card strong {
    font-size: 23px;
  }

  .rail-story {
    min-height: 245px;
  }

  .headline-row {
    grid-template-columns: 1fr;
    gap: 0;
    padding-block: 8px 30px;
  }

  .headline-row article,
  .headline-row article + article {
    padding: 14px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .headline-row article a {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .headline-row img {
    width: 112px;
    height: 83px;
    aspect-ratio: 1.35;
  }

  .headline-row h2 {
    font-size: 16px;
  }

  .content-block,
  .category-board,
  .triple-section {
    padding-block: 27px 34px;
    border-top-width: 3px;
  }

  .section-heading {
    margin-bottom: 18px;
  }

  .section-heading h2,
  .mini-title h2 {
    font-size: 25px;
  }

  .latest-grid {
    grid-template-columns: 1fr;
    gap: 23px;
  }

  .news-card {
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
  }

  .news-card h3 {
    font-size: 19px;
  }

  .news-card img,
  .category-lead img,
  .triple-lead img {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .most-read ol {
    grid-template-columns: 1fr;
  }

  .category-board {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .category-column + .category-column {
    padding: 35px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .category-lead {
    grid-template-columns: 1fr;
  }

  .triple-section {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .triple-section > article + article {
    padding: 33px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .area-strip {
    width: 100%;
    margin-bottom: 0;
    padding: 26px 18px 40px;
    border-radius: 0;
  }

  .area-strip form {
    grid-template-columns: 1fr;
  }

  .area-message:not(:empty) {
    margin-top: -7px;
    transform: translateY(26px);
  }

  .site-footer {
    padding-top: 38px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .copyright {
    min-height: 78px;
  }
}

@media (max-width: 420px) {
  .lead-copy h1 {
    font-size: 27px;
  }

  .search-form > div {
    grid-template-columns: 1fr;
  }

  .search-form .search-close {
    display: grid;
  }

  .headline-row article a {
    grid-template-columns: 102px minmax(0, 1fr);
    gap: 12px;
  }

  .headline-row img {
    width: 102px;
    height: 76px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Internal article and category pages */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.breadcrumb {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 9px;
  overflow: hidden;
  color: #737373;
  font-size: 13px;
}

.breadcrumb a {
  color: var(--red);
  font-weight: 700;
}

.breadcrumb span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-loading {
  min-height: 260px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 15px;
  color: var(--muted);
}

.content-loading span {
  width: 34px;
  height: 34px;
  border: 3px solid #ececec;
  border-top-color: var(--red);
  border-radius: 50%;
  animation: content-spin 0.8s linear infinite;
}

.content-loading p {
  margin: 0;
}

@keyframes content-spin {
  to { transform: rotate(360deg); }
}

.article-main,
.category-main {
  min-height: 70vh;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(36px, 4vw, 62px);
  padding-bottom: 64px;
}

.article-layout > div,
#articleRoot,
.article-page,
.article-body {
  min-width: 0;
}

.article-header {
  max-width: 980px;
  padding: 20px 0 30px;
  border-top: 4px solid var(--ink);
}

.article-category,
.story-card-category {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

.article-category {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
}

.article-category::before {
  content: "";
  width: 22px;
  height: 3px;
  background: var(--red);
}

.article-title {
  max-width: 1000px;
  margin: 0;
  overflow-wrap: anywhere;
  font-family: var(--serif);
  font-size: clamp(38px, 4.2vw, 60px);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.article-dek {
  max-width: 900px;
  margin: 20px 0 0;
  color: #555;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.8;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 10px;
  margin-top: 22px;
  color: #777;
  font-size: 13px;
}

.article-meta strong {
  color: var(--ink);
}

.article-meta span {
  margin-left: 9px;
}

.article-meta-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 22px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line);
}

.article-meta-row .article-meta {
  flex: 1 1 auto;
  margin-top: 0;
}

.article-share {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.article-share--top {
  flex: 0 0 auto;
}

.article-share--bottom {
  justify-content: flex-end;
  width: 100%;
  max-width: 820px;
  margin-top: 18px;
  padding: 20px 0;
  border-block: 1px solid var(--line);
}

.article-share__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-share__action {
  display: inline-grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 5px;
  background: #f0f0f0;
  color: var(--ink);
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.article-share__action svg {
  width: 18px;
  height: 18px;
}

.article-share__action:hover {
  border-color: #d9d9d9;
  background: #e7e7e7;
  color: var(--red);
  transform: translateY(-1px);
}

.article-share__action:active {
  transform: translateY(0);
}

.article-figure {
  margin: 0 0 34px;
}

.article-figure img {
  width: 100%;
  max-height: 680px;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  background: var(--soft);
  object-fit: cover;
}

.article-figure figcaption {
  padding-top: 9px;
  color: #777;
  font-size: 12px;
}

.article-body {
  max-width: 820px;
  color: #242424;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.95;
}

.article-body p {
  margin: 0 0 1.4em;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  margin: 1.65em 0 0.65em;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(25px, 2vw, 31px);
  line-height: 1.35;
}

.article-body h3 {
  font-size: clamp(22px, 1.8vw, 27px);
}

.article-body h4 {
  font-size: 21px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.5em;
  padding-left: 28px;
}

.article-body li {
  margin-bottom: 8px;
  padding-left: 5px;
}

.article-subheading {
  margin: 1.65em 0 0.65em;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(25px, 2vw, 31px);
  line-height: 1.35;
}

.article-body blockquote {
  margin: 32px 0;
  padding: 20px 25px;
  border-left: 5px solid var(--red);
  background: #faf4f4;
  color: #3e3e3e;
  font-size: 21px;
  font-weight: 600;
}

.article-list {
  margin: 0 0 1.5em;
  padding-left: 28px;
}

.article-list li {
  margin-bottom: 8px;
  padding-left: 5px;
}

.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  margin: 28px 0 34px;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.table-scroll table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: #fff;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
}

.table-scroll th,
.table-scroll td {
  padding: 12px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table-scroll th {
  background: var(--soft);
  font-weight: 800;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 820px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.article-tags a {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: #555;
  font-size: 12px;
  font-weight: 700;
}

.article-aside,
.category-aside {
  align-self: start;
  display: grid;
  gap: 28px;
}

.article-aside {
  position: sticky;
  top: 20px;
}

.article-aside .most-read,
.category-aside .most-read {
  padding: 0;
  border-left: 0;
}

.related-section {
  padding-block: 40px 62px;
  border-top: 4px solid var(--ink);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.story-card a {
  display: block;
}

.story-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 12px;
  border-radius: 5px;
  background: var(--soft);
  object-fit: cover;
}

.story-card h3 {
  margin: 5px 0 8px;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.45;
  transition: color 0.2s ease;
}

.story-card a:hover h3 {
  color: var(--red);
}

.story-card time,
.category-list-card time {
  color: #818181;
  font-size: 12px;
}

.content-error {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
}

.content-error .error-code {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

.content-error h1,
.content-error h2 {
  margin: 7px 0;
  font-family: var(--serif);
  font-size: 34px;
}

.content-error p {
  max-width: 600px;
  color: var(--muted);
}

.button-link,
.load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 20px;
  border: 1px solid var(--red);
  border-radius: 4px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
}

.category-page-header {
  min-height: 130px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-block: 25px 28px;
  border-top: 4px solid var(--ink);
}

.category-page-header span {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

.category-page-header h1 {
  margin: 5px 0 0;
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.2;
}

.category-page-header > strong {
  align-self: flex-end;
  padding-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.category-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  gap: 25px;
  padding-bottom: 48px;
}

.category-hero > .content-loading {
  grid-column: 1 / -1;
}

.category-hero-lead {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 6px;
  color: #fff;
}

.category-hero-lead::after {
  content: "";
  position: absolute;
  inset: 20% 0 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
}

.category-hero-lead > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.category-hero-lead:hover > img {
  transform: scale(1.025);
}

.category-hero-lead > div {
  position: relative;
  z-index: 1;
  padding: 32px;
}

.category-hero-lead .story-card-category {
  color: #fff;
}

.category-hero-lead h2 {
  max-width: 850px;
  margin: 7px 0 8px;
  font-family: var(--serif);
  font-size: clamp(29px, 3vw, 42px);
  line-height: 1.32;
}

.category-hero-lead p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  line-height: 1.65;
}

.category-hero-stack {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.compact-story {
  min-height: 0;
}

.compact-story a {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  height: 100%;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.compact-story img {
  height: 132px;
  margin: 0;
}

.compact-story h3 {
  font-size: 18px;
}

.category-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(36px, 4vw, 58px);
  padding-block: 42px 68px;
  border-top: 4px solid var(--ink);
}

.category-list-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  padding: 0 0 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.category-list-image img {
  width: 100%;
  height: 170px;
  border-radius: 5px;
  background: var(--soft);
  object-fit: cover;
}

.category-list-copy h2 {
  margin: 5px 0 8px;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.42;
}

.category-list-copy h2 a:hover {
  color: var(--red);
}

.category-list-copy p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 9px;
  color: #666;
  font-size: 14px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.load-more {
  width: 100%;
  margin-top: 4px;
}

.load-more[hidden] {
  display: none;
}

.all-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-top: 22px;
  border-top: 3px solid var(--ink);
}

.all-sections h2 {
  grid-column: 1 / -1;
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 23px;
}

.all-sections a {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.all-sections a:hover {
  border-color: var(--red);
  color: var(--red);
}

@media (max-width: 1080px) {
  .article-layout,
  .category-content {
    grid-template-columns: minmax(0, 1fr) 285px;
    gap: 34px;
  }

  .category-list-card {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .article-layout,
  .category-content {
    grid-template-columns: 1fr;
  }

  .article-aside {
    position: static;
  }

  .article-aside,
  .category-aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-aside .most-read,
  .category-aside .most-read,
  .all-sections {
    min-width: 0;
  }

  .category-hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(250px, 0.8fr);
  }

  .compact-story a {
    grid-template-columns: 1fr;
  }

  .compact-story img {
    height: 150px;
  }
}

@media (max-width: 720px) {
  .breadcrumb {
    min-height: 54px;
  }

  .article-layout {
    width: 100%;
    gap: 36px;
  }

  .article-header,
  .article-body,
  .article-share--bottom,
  .article-tags,
  .article-aside,
  .content-error {
    width: calc(100% - 28px);
    margin-inline: auto;
  }

  .article-header {
    padding-top: 18px;
    border-top-width: 3px;
  }

  .article-title {
    font-size: clamp(29px, 9vw, 36px);
    line-height: 1.3;
  }

  .article-dek {
    font-size: 16px;
    line-height: 1.75;
  }

  .article-figure img {
    border-radius: 0;
  }

  .article-figure figcaption {
    width: calc(100% - 28px);
    margin-inline: auto;
  }

  .article-body {
    font-size: 17px;
    line-height: 1.85;
  }

  .article-subheading {
    font-size: 24px;
  }

  .article-meta-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .article-share--top,
  .article-share--bottom {
    justify-content: flex-start;
  }

  .article-share__actions {
    gap: 4px;
  }

  .article-share__action {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
  }

  .article-aside,
  .category-aside {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .related-section {
    padding-block: 30px 45px;
    border-top-width: 3px;
  }

  .story-card {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
  }

  .category-page-header {
    min-height: 108px;
    padding-block: 20px;
    border-top-width: 3px;
  }

  .category-page-header h1 {
    font-size: 34px;
  }

  .category-page-header > strong {
    display: none;
  }

  .category-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    width: 100%;
  }

  .category-hero-lead {
    min-height: 420px;
    border-radius: 0;
  }

  .category-hero-lead > div {
    padding: 25px 14px;
  }

  .category-hero-lead h2 {
    font-size: 29px;
  }

  .category-hero-lead p {
    display: none;
  }

  .category-hero-stack {
    width: calc(100% - 28px);
    margin-inline: auto;
  }

  .compact-story a {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .compact-story img {
    height: 94px;
  }

  .category-content {
    padding-block: 30px 50px;
    border-top-width: 3px;
  }

  .category-list-card {
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 15px;
    padding-bottom: 20px;
    margin-bottom: 20px;
  }

  .category-list-image img {
    height: 102px;
  }

  .category-list-copy h2 {
    margin-top: 3px;
    font-size: 18px;
  }

  .category-list-copy p {
    display: none;
  }
}

@media (max-width: 420px) {
  .article-title {
    font-size: 28px;
  }

  .article-meta span {
    margin-left: 0;
  }

  .category-hero-lead {
    min-height: 360px;
  }

  .category-list-card {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 12px;
  }

  .category-list-image img {
    height: 88px;
  }

  .category-list-copy h2 {
    font-size: 16px;
    line-height: 1.4;
  }
}

@media print {
  .site-header,
  .site-footer,
  .article-aside,
  .related-section,
  .article-share,
  .breadcrumb {
    display: none !important;
  }

  .article-layout {
    display: block;
    width: 100%;
  }

  .article-title {
    font-size: 34px;
  }
}

/* WordPress integration */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  z-index: 100000;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  clip: auto;
  padding: 12px 16px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.site-drawer nav ul,
.primary-nav ul,
.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-drawer nav li,
.footer-links li {
  display: contents;
}

.primary-nav .current-menu-item > a,
.primary-nav .current-category-ancestor > a,
.primary-nav .current-post-ancestor > a {
  color: var(--red);
}

.article-body > :first-child {
  margin-top: 0;
}

.article-body img,
.article-body video,
.article-body iframe,
.article-body figure {
  max-width: 100%;
}

.article-body img {
  height: auto;
  border-radius: 4px;
}

.article-body figure {
  margin-inline: 0;
}

.article-body figcaption,
.wp-caption-text {
  margin-top: 8px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 14px;
}

.alignwide {
  margin-inline: -6%;
  max-width: 112%;
}

.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
}

.post-pagination,
.pagination,
.pagination > ul.page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
}

.pagination > ul.page-numbers {
  list-style: none;
  padding: 0;
}

.pagination > ul.page-numbers > li {
  margin: 0;
}

.post-pagination a,
.post-pagination > span,
.pagination a.page-numbers,
.pagination span.page-numbers {
  display: grid;
  min-width: 42px;
  min-height: 42px;
  place-items: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.post-pagination .current,
.pagination span.current,
.post-pagination a:hover,
.pagination a.page-numbers:hover {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.category-list-card.sticky-post {
  border-left: 4px solid var(--red);
  padding-left: 16px;
}

.no-results {
  grid-column: 1 / -1;
  padding: 48px;
  border: 1px solid var(--line);
  background: var(--soft);
  text-align: center;
}

.no-results h2 {
  margin-top: 0;
  font-family: var(--serif);
}

.custom-logo-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.article-body .wp-block-table {
  overflow-x: auto;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
}

.article-body th,
.article-body td {
  padding: 12px;
  border: 1px solid var(--line);
  text-align: left;
}

.comments-area {
  max-width: 1280px;
}

.comment-list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
}

.comment-list .comment-body {
  margin-bottom: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.comment-list .children {
  list-style: none;
  margin-left: 28px;
}

.comment-form input:not([type="checkbox"]),
.comment-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #d5d5d5;
  border-radius: 4px;
}

.comment-form .submit {
  min-height: 44px;
  padding: 9px 20px;
  border: 0;
  border-radius: 4px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
}

@media (max-width: 640px) {
  .alignwide {
    margin-inline: 0;
    max-width: 100%;
  }

  .no-results {
    padding: 28px 18px;
  }
}
