/*
Theme Name: A Gazeta da Bahia Editorial Premium
Theme URI: https://agazetadabahia.com.br/
Author: Editorial Glauciano
Author URI: https://agazetadabahia.com.br/
Description: Tema jornalístico premium da A Gazeta da Bahia, com identidade laranja, home modular, categorias e matérias completas.
Version: 1.0.2
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: gazeta-editorial
*/

:root {
  --accent: #ff8a00;
  --accent-dark: #c95d00;
  --accent-soft: #fff4e5;
  --ink: #111111;
  --headline: #35281f;
  --muted: #5f5f5f;
  --line: #dedede;
  --soft-line: #ececec;
  --surface: #ffffff;
  --surface-alt: #f5f5f5;
  --footer: #17120d;
  --sans: Arial, Helvetica, sans-serif;
  --serif: "Merriweather", Georgia, "Times New Roman", serif;
  --container: 1280px;
  --article: 760px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.5;
}

body.menu-open,
body.search-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

a:hover,
a:focus-visible {
  color: var(--accent);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

.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 {
  position: fixed !important;
  z-index: 100000;
  top: 10px;
  left: 10px;
  width: auto;
  height: auto;
  padding: 12px 18px;
  clip: auto;
  background: #fff;
  color: #000;
  font-family: var(--sans);
  font-weight: 700;
  box-shadow: var(--shadow);
}

.site-shell {
  width: min(var(--container), calc(100% - 64px));
  margin-inline: auto;
}

.site-shell--narrow {
  width: min(1100px, calc(100% - 64px));
}

.site-main {
  min-height: 55vh;
}

/* Header */
.site-header {
  position: relative;
  z-index: 1000;
  background: #fff;
  border-bottom: 2px solid var(--accent);
}

.header-primary {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) minmax(420px, 2fr) minmax(230px, 1fr);
  align-items: center;
  min-height: 118px;
  gap: 24px;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
}

.header-tools--right {
  justify-content: flex-end;
}

.header-action,
.header-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.header-action svg,
.header-pill svg {
  flex: 0 0 auto;
}

.header-action:hover,
.header-action:focus-visible,
.header-pill:hover,
.header-pill:focus-visible {
  color: var(--accent);
}

.header-pill {
  min-height: 32px;
  padding: 0 13px;
  border: 1px solid #cfcfcf;
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
}

.header-brand {
  min-width: 0;
  text-align: center;
}

.header-brand a,
.footer-brand a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-brand img,
.header-brand .custom-logo {
  width: auto;
  max-width: 680px;
  max-height: 110px;
  object-fit: contain;
}

.header-nav {
  min-height: 40px;
  border-top: 1px solid transparent;
  font-family: var(--sans);
}

.header-nav .menu,
.header-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 29px;
  min-height: 39px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.header-nav li {
  position: relative;
  flex: 0 0 auto;
}

.header-nav a {
  display: flex;
  align-items: center;
  min-height: 39px;
  color: #111;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.header-nav .current-menu-item > a,
.header-nav .current-category-ancestor > a,
.header-nav a:hover {
  color: var(--accent);
}

.header-nav .sub-menu {
  position: absolute;
  z-index: 10;
  top: 100%;
  left: -20px;
  display: none;
  min-width: 220px;
  min-height: 0;
  padding: 12px 0;
  background: #fff;
  border-top: 3px solid var(--accent);
  box-shadow: var(--shadow);
}

.header-nav .sub-menu a {
  min-height: 36px;
  padding: 0 20px;
}

.header-nav li:hover > .sub-menu,
.header-nav li:focus-within > .sub-menu {
  display: block;
}

.mobile-only {
  display: none;
}

/* Menu drawer and search */
.page-overlay {
  position: fixed;
  z-index: 1900;
  inset: 0;
  visibility: hidden;
  background: rgba(0, 0, 0, 0.56);
  opacity: 0;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.menu-open .page-overlay,
.search-open .page-overlay {
  visibility: visible;
  opacity: 1;
}

.menu-drawer {
  position: fixed;
  z-index: 2000;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(440px, 92vw);
  overflow-y: auto;
  padding: 24px 30px 40px;
  background: #fff;
  transform: translateX(-102%);
  transition: transform 220ms ease;
}

.menu-open .menu-drawer {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--accent);
}

.drawer-head img {
  max-width: 240px;
  max-height: 64px;
  object-fit: contain;
}

.drawer-close,
.search-close {
  display: inline-grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.drawer-menu,
.drawer-menu ul {
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.drawer-menu a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--soft-line);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 700;
}

.drawer-menu .sub-menu {
  padding-left: 18px;
  margin-top: 0;
}

.drawer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.drawer-social a {
  display: inline-flex;
  min-height: 36px;
  padding: 0 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
}

.search-panel {
  position: fixed;
  z-index: 2100;
  inset: 0;
  display: grid;
  visibility: hidden;
  padding: 28px;
  place-items: center;
  background: rgba(255, 255, 255, 0.98);
  opacity: 0;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.search-open .search-panel {
  visibility: visible;
  opacity: 1;
}

.search-close {
  position: absolute;
  top: 26px;
  right: 30px;
}

.search-panel-inner {
  width: min(780px, 100%);
}

.search-panel-title {
  margin: 0 0 24px;
  color: var(--headline);
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.1;
}

.search-form {
  display: flex;
  width: 100%;
  border-bottom: 3px solid var(--accent);
}

.search-field {
  width: 100%;
  min-height: 62px;
  padding: 0 8px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 22px;
}

.search-submit {
  flex: 0 0 auto;
  min-width: 120px;
  border: 0;
  background: var(--accent);
  color: #fff;
  font-family: var(--sans);
  font-weight: 700;
  cursor: pointer;
}

/* Shared editorial components */
.section-kicker,
.card-kicker,
.story-kicker {
  color: var(--accent);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.section-kicker::before,
.section-heading::before,
.sidebar-heading::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  background: var(--accent);
  content: "";
  vertical-align: 0.12em;
}

.section-heading {
  margin: 0 0 22px;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
}

.story-title,
.card-title {
  margin: 0;
  color: var(--headline);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.12;
  text-wrap: balance;
}

.story-deck,
.card-deck {
  margin: 12px 0 0;
  color: var(--muted);
  font-style: italic;
  line-height: 1.45;
}

.media-frame {
  position: relative;
  overflow: hidden;
  background: var(--surface-alt);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

a:hover .media-frame img,
.media-frame:hover img {
  transform: scale(1.025);
}

.media-placeholder {
  display: grid;
  width: 100%;
  min-height: 180px;
  padding: 26px;
  place-items: center;
  background: linear-gradient(135deg, var(--accent-soft), #f1f1f1);
}

.media-placeholder img {
  width: auto;
  max-width: 70%;
  height: auto;
  max-height: 90px;
  object-fit: contain;
}

.bullet-link {
  position: relative;
  display: block;
  padding-left: 15px;
  color: #1c1c1c;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.bullet-link::before {
  position: absolute;
  top: 0.48em;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--accent);
  content: "";
}

/* Home hero */
.home-main {
  padding: 28px 0 74px;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(260px, 0.68fr);
  gap: 14px 12px;
  align-items: start;
}

.hero-image {
  aspect-ratio: 1.5 / 1;
}

.hero-copy {
  min-width: 0;
  padding: 2px 16px 0 0;
}

.hero-title {
  margin: 6px 0 0;
  color: var(--headline);
  font-size: clamp(38px, 3.55vw, 52px);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.06;
  text-wrap: balance;
}

.hero-deck {
  display: -webkit-box;
  overflow: hidden;
  margin: 12px 0 0;
  color: #555;
  font-size: 15px;
  font-style: italic;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.hero-side {
  align-self: stretch;
  padding: 40% 0 0 22px;
  border-left: 1px solid var(--soft-line);
}

.hero-side-lead .story-title {
  margin-top: 5px;
  font-size: 25px;
  line-height: 1.1;
}

.hero-side-list {
  display: grid;
  gap: 13px;
  padding: 16px 0 0;
  margin: 14px 0 0;
  border-top: 1px solid var(--soft-line);
}

.hero-bullets {
  grid-column: 1 / span 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 24px;
  padding-top: 12px;
  border-top: 1px solid var(--soft-line);
}

.hero-bullets .bullet-link:nth-child(n+4) {
  grid-column: span 1;
}

.editorial-section {
  padding-top: 38px;
  margin-top: 34px;
  border-top: 1px solid var(--line);
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.35fr) minmax(275px, 0.75fr);
  gap: 40px;
}

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

.news-card .media-frame {
  aspect-ratio: 1.55 / 1;
  margin-bottom: 12px;
}

.news-card .card-title {
  margin-top: 5px;
  font-size: 20px;
  line-height: 1.16;
}

.news-card--wide {
  grid-column: span 2;
}

.news-card--wide .media-frame {
  aspect-ratio: 2 / 1;
}

.news-card--wide .card-title {
  font-size: 28px;
}

.sidebar-box {
  padding-left: 22px;
  border-left: 2px solid var(--accent);
}

.sidebar-heading {
  padding-bottom: 12px;
  margin: 0 0 18px;
  border-bottom: 2px solid var(--accent);
  color: var(--headline);
  font-size: 25px;
  font-weight: 900;
  line-height: 1.15;
}

.rank-list {
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: rank;
}

.rank-list li {
  position: relative;
  min-height: 74px;
  padding: 0 0 18px 48px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  counter-increment: rank;
}

.rank-list li::before {
  position: absolute;
  top: -3px;
  left: 0;
  color: var(--accent);
  content: counter(rank);
  font-family: var(--sans);
  font-size: 30px;
  font-weight: 700;
}

.rank-list a {
  font-size: 16px;
  font-weight: 900;
  line-height: 1.24;
}

.category-module {
  padding-top: 40px;
  margin-top: 44px;
  border-top: 1px solid var(--line);
}

.category-module-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.category-module-title {
  margin: 0;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 25px;
  font-weight: 700;
}

.category-module-title::before {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 9px;
  background: currentColor;
  content: "";
  vertical-align: 0.12em;
}

.category-module-more {
  color: var(--accent);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.category-module-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 0.75fr));
  gap: 24px;
}

.module-lead {
  grid-row: span 2;
}

.module-lead .media-frame {
  aspect-ratio: 1.55 / 1;
}

.module-lead .card-title {
  margin-top: 10px;
  font-size: 30px;
}

.module-small {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--soft-line);
}

.module-small .media-frame {
  aspect-ratio: 1.32 / 1;
}

.module-small .card-title {
  margin-top: 4px;
  font-size: 17px;
}

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

.latest-item {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 17px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.latest-item .media-frame {
  aspect-ratio: 1.45 / 1;
}

.latest-item .card-title {
  margin-top: 5px;
  font-size: 20px;
}

/* Archive and search */
.archive-main {
  padding: 36px 0 72px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 28px;
  color: #656565;
  font-family: var(--sans);
  font-size: 12px;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs .current {
  padding-bottom: 5px;
  border-bottom: 2px solid var(--accent);
  color: var(--ink);
  font-weight: 700;
}

.archive-title-band {
  padding: 20px 18px;
  margin-bottom: 30px;
  background: var(--accent);
  color: #fff;
}

.archive-title-band h1 {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(30px, 4vw, 42px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.1;
  text-transform: uppercase;
}

.archive-title-band p {
  max-width: 760px;
  margin: 8px 0 0;
  font-family: var(--sans);
  font-size: 15px;
}

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

.archive-lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding-bottom: 34px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.archive-lead .media-frame {
  aspect-ratio: 1.45 / 1;
}

.archive-lead .story-title {
  margin-top: 6px;
  font-size: clamp(30px, 3.5vw, 46px);
  line-height: 1.08;
}

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

.archive-card .media-frame {
  aspect-ratio: 1.5 / 1;
  margin-bottom: 12px;
}

.archive-card .card-title {
  margin-top: 5px;
  font-size: 22px;
}

.archive-sidebar {
  align-self: start;
  position: sticky;
  top: 24px;
}

.pagination,
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 40px;
  font-family: var(--sans);
}

.page-numbers {
  display: inline-grid;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  place-items: center;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 700;
}

.page-numbers.current,
.page-numbers:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.empty-state {
  padding: 50px 0;
  text-align: center;
}

.empty-state h1,
.empty-state h2 {
  color: var(--headline);
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.05;
}

.empty-state p {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 18px;
}

/* Single article */
.single-main {
  padding: 34px 0 74px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--article)) 310px;
  gap: 56px;
  justify-content: center;
  align-items: start;
}

.article-header {
  margin-bottom: 26px;
}

.article-category {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
}

.article-title {
  margin: 0;
  color: var(--headline);
  font-size: clamp(30px, 3vw, 38px);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.08;
  hyphens: none;
  overflow-wrap: normal;
  text-wrap: wrap;
  word-break: normal;
}

.article-subtitle {
  margin: 12px 0 0;
  color: #676767;
  font-size: 18px;
  line-height: 1.5;
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
  margin-top: 16px;
  font-family: var(--sans);
  font-size: 12px;
}

.article-author {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.article-featured {
  margin: 0 0 12px;
}

.article-featured .media-frame {
  aspect-ratio: 1.5 / 1;
}

.article-featured figcaption,
.wp-caption-text,
.blocks-gallery-caption {
  margin-top: 7px;
  color: #777;
  font-family: var(--sans);
  font-size: 10px;
  line-height: 1.35;
  text-transform: uppercase;
}

.article-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.listen-button,
.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.listen-button:hover,
.share-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.article-share {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.article-content {
  color: #4a4a4a;
  font-size: 16px;
  line-height: 2;
}

.article-content > * {
  max-width: 100%;
}

.article-content p,
.article-content ul,
.article-content ol {
  margin: 0 0 18px;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  color: var(--headline);
  font-weight: 900;
  line-height: 1.2;
}

.article-content h2 {
  margin: 34px 0 16px;
  font-size: 29px;
}

.article-content h3 {
  margin: 28px 0 14px;
  font-size: 23px;
}

.article-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-content blockquote {
  padding: 2px 0 2px 24px;
  margin: 28px 0;
  border-left: 5px solid var(--accent);
  color: var(--headline);
  font-size: 22px;
  font-style: italic;
  font-weight: 700;
  line-height: 1.45;
}

.article-content iframe,
.article-content video {
  max-width: 100%;
}

.article-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 14px;
}

.article-content th,
.article-content td {
  padding: 10px;
  border: 1px solid var(--line);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 26px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
}

.article-tags a {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.article-sidebar {
  align-self: start;
  position: sticky;
  top: 24px;
}

.sidebar-story {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 17px;
  margin-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.sidebar-story .media-frame {
  aspect-ratio: 1.35 / 1;
}

.sidebar-story .card-title {
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.18;
}

.social-follow {
  padding-top: 18px;
  margin-top: 22px;
  border-top: 2px solid var(--accent);
}

.social-follow h3 {
  margin: 0 0 13px;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 17px;
}

.social-follow-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.social-follow a {
  font-size: 14px;
  font-weight: 700;
}

.related-section {
  padding-top: 32px;
  margin-top: 44px;
  border-top: 2px solid var(--accent);
}

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

.related-card .media-frame {
  aspect-ratio: 1.5 / 1;
  margin-bottom: 10px;
}

.related-card .card-title {
  font-size: 17px;
}

.page-article {
  width: min(820px, calc(100% - 40px));
  padding: 50px 0 80px;
  margin-inline: auto;
}

/* Footer */
.site-footer {
  padding: 40px 0 30px;
  background: var(--footer);
  color: #fff;
  text-align: center;
}

.footer-brand img,
.footer-brand .custom-logo {
  width: auto;
  max-width: 380px;
  max-height: 95px;
  object-fit: contain;
}

.footer-rights {
  margin: 18px 0 0;
  color: #bdbdbd;
  font-family: var(--sans);
  font-size: 12px;
}

/* WordPress alignments */
.alignleft {
  float: left;
  margin: 8px 24px 16px 0;
}

.alignright {
  float: right;
  margin: 8px 0 16px 24px;
}

.aligncenter {
  display: block;
  margin-inline: auto;
}

.wp-block-image img,
.article-content .wp-caption {
  max-width: 100%;
}

/* Tablet */
@media (max-width: 1080px) {
  .site-shell {
    width: min(var(--container), calc(100% - 40px));
  }

  .header-primary {
    grid-template-columns: minmax(190px, 0.8fr) minmax(360px, 1.8fr) minmax(180px, 0.8fr);
  }

  .header-brand img,
  .header-brand .custom-logo {
    max-width: 450px;
    max-height: 82px;
  }

  .notification-label,
  .header-pill span {
    display: none;
  }

  .header-nav .menu,
  .header-nav ul {
    gap: 21px;
    overflow-x: auto;
    justify-content: flex-start;
    padding-inline: 20px;
    scrollbar-width: none;
  }

  .header-nav .menu::-webkit-scrollbar,
  .header-nav ul::-webkit-scrollbar {
    display: none;
  }

  .home-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .hero-side {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
    padding: 22px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .hero-side-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 0;
    margin-top: 0;
    border-top: 0;
  }

  .feature-layout,
  .archive-layout,
  .article-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-layout {
    max-width: var(--article);
    margin-inline: auto;
  }

  .archive-sidebar,
  .article-sidebar {
    position: static;
  }

  .archive-sidebar {
    display: none;
  }

  .article-sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
  }
}

/* Mobile */
@media (max-width: 760px) {
  .site-shell,
  .site-shell--narrow {
    width: min(100% - 28px, var(--container));
  }

  .site-header {
    position: sticky;
    top: 0;
  }

  .header-primary {
    position: relative;
    display: flex;
    min-height: 92px;
    justify-content: space-between;
    gap: 8px;
  }

  .header-tools {
    gap: 8px;
  }

  .header-tools .header-action {
    width: 42px;
    height: 42px;
  }

  .header-action-text,
  .notification-action,
  .header-pill {
    display: none;
  }

  .header-brand {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(76vw, 300px);
    transform: translate(-50%, -50%);
  }

  .header-brand img,
  .header-brand .custom-logo {
    max-width: 100%;
    max-height: 72px;
  }

  .mobile-only {
    display: inline-flex;
  }

  .desktop-only,
  .header-nav {
    display: none;
  }

  .menu-drawer {
    padding-inline: 22px;
  }

  .drawer-head img {
    max-width: 205px;
    max-height: 55px;
  }

  .search-panel {
    padding: 20px;
  }

  .search-submit {
    min-width: 94px;
  }

  .home-main {
    padding-top: 18px;
  }

  .home-hero {
    display: block;
  }

  .hero-image {
    aspect-ratio: 1.42 / 1;
  }

  .hero-copy {
    padding: 14px 0 0;
  }

  .hero-title {
    font-size: clamp(31px, 9.5vw, 40px);
    line-height: 1.08;
  }

  .hero-deck {
    font-size: 14px;
  }

  .hero-bullets {
    display: grid;
    grid-template-columns: 1fr;
    gap: 13px;
    padding: 18px 0 0;
    margin-top: 18px;
  }

  .hero-side {
    display: block;
    padding-top: 24px;
    margin-top: 24px;
  }

  .hero-side-lead .story-title {
    font-size: 23px;
  }

  .hero-side-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 13px;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid var(--line);
  }

  .editorial-section,
  .category-module {
    padding-top: 28px;
    margin-top: 30px;
  }

  .feature-grid,
  .category-module-grid,
  .latest-list,
  .archive-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .news-card--wide {
    grid-column: auto;
  }

  .news-card--wide .media-frame {
    aspect-ratio: 1.55 / 1;
  }

  .news-card--wide .card-title {
    font-size: 23px;
  }

  .feature-layout {
    gap: 32px;
  }

  .sidebar-box {
    padding: 20px 0 0;
    border-top: 2px solid var(--accent);
    border-left: 0;
  }

  .category-module-title {
    font-size: 21px;
  }

  .module-lead {
    grid-row: auto;
  }

  .module-lead .card-title {
    font-size: 25px;
  }

  .module-small {
    grid-template-columns: 118px minmax(0, 1fr);
  }

  .latest-item {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 13px;
  }

  .latest-item .card-title {
    font-size: 16px;
  }

  .archive-main,
  .single-main {
    padding-top: 20px;
  }

  .archive-title-band {
    padding: 16px;
    margin-bottom: 22px;
  }

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

  .archive-lead .story-title {
    font-size: 32px;
  }

  .archive-card .card-title {
    font-size: 20px;
  }

  .article-layout {
    gap: 34px;
  }

  .article-title {
    font-size: clamp(24px, 6.8vw, 28px);
    line-height: 1.16;
    letter-spacing: -0.04em;
  }

  .article-subtitle {
    font-size: 16px;
  }

  .article-content {
    font-size: 16px;
    line-height: 1.88;
  }

  .article-content h2 {
    font-size: 25px;
  }

  .article-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-sidebar {
    display: block;
  }

  .footer-brand img,
  .footer-brand .custom-logo {
    max-width: 270px;
    max-height: 74px;
  }

  .alignleft,
  .alignright {
    float: none;
    margin: 16px auto;
  }
}

@media (max-width: 390px) {
  .header-brand {
    width: 74vw;
  }

  .hero-title {
    overflow-wrap: anywhere;
  }

  .module-small,
  .latest-item,
  .sidebar-story {
    grid-template-columns: 105px minmax(0, 1fr);
  }

  .search-field {
    font-size: 17px;
  }

  .search-submit {
    min-width: 80px;
    font-size: 13px;
  }
}

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