/*
Theme Name: Central Brasília
Theme URI: https://centralbrasilia.com.br
Author: Central Brasília
Author URI: https://centralbrasilia.com.br
Description: Tema editorial para portal de notícias do Distrito Federal, com editorias de DF, tecnologia, mobilidade, esportes, economia, política, segurança e educação.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: central-brasilia
*/

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-muted: #eef3f0;
  --ink: #171717;
  --muted: #686b70;
  --line: #d9ddd8;
  --brand: #0f5c5c;
  --brand-dark: #083f42;
  --accent: #b94f32;
  --gold: #c6912d;
  --shadow: 0 18px 45px rgba(23, 23, 23, 0.08);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.5;
}

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

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

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

button,
input {
  font: inherit;
}

.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 10;
  width: auto;
  height: auto;
  top: 1rem;
  left: 1rem;
  padding: 0.7rem 1rem;
  clip: auto;
  color: var(--surface);
  background: var(--brand-dark);
}

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.masthead,
.main-nav,
.page,
.site-footer {
  width: min(var(--max-width), calc(100% - 32px));
  margin-inline: auto;
}

.masthead {
  display: grid;
  grid-template-columns: auto 1fr minmax(320px, 420px);
  align-items: center;
  gap: 1.5rem;
  padding: 0.45rem 0 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  width: max-content;
  justify-self: start;
  transform: translateY(-18px);
}

.brand-mark {
  display: block;
  width: 310px;
  height: 104px;
  flex: 0 0 auto;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: left top;
  transform: translateY(-24px);
}

.brand strong {
  display: block;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.search-form {
  grid-column: 3;
  justify-self: end;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 44px;
  align-items: center;
  min-height: 44px;
  background: var(--surface-muted);
  border: 1px solid transparent;
}

.search-form:focus-within {
  border-color: var(--brand);
  background: var(--surface);
}

.search-form input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 0.9rem;
  background: transparent;
  color: var(--ink);
}

.search-form button,
.menu-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  aspect-ratio: 1;
  border: 0;
  color: var(--surface);
  background: var(--brand);
  cursor: pointer;
}

.search-form button {
  font-size: 1.3rem;
}

.menu-toggle {
  display: none;
  background: var(--ink);
}

.menu-toggle span[aria-hidden="true"],
.menu-toggle span[aria-hidden="true"]::before,
.menu-toggle span[aria-hidden="true"]::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  content: "";
}

.menu-toggle span[aria-hidden="true"] {
  position: relative;
}

.menu-toggle span[aria-hidden="true"]::before,
.menu-toggle span[aria-hidden="true"]::after {
  position: absolute;
  left: 0;
}

.menu-toggle span[aria-hidden="true"]::before {
  top: -6px;
}

.menu-toggle span[aria-hidden="true"]::after {
  top: 6px;
}

.main-nav {
  display: flex;
  gap: clamp(0.7rem, 3vw, 2rem);
  overflow-x: auto;
  padding: 1.05rem 0 0.75rem;
  color: #2c2f33;
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
}

.main-nav ul {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(0.7rem, 3vw, 2rem);
  padding: 0;
  margin: 0;
  list-style: none;
}

.main-nav li {
  margin: 0;
}

.page {
  padding: 2rem 0 3.5rem;
}

.headline-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 1.25rem;
  align-items: start;
}

.hero-story {
  position: relative;
  height: 520px;
  min-height: 520px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.hero-story img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-story::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(8, 29, 30, 0.85), rgba(8, 29, 30, 0.32) 58%, rgba(8, 29, 30, 0.08));
}

.hero-copy {
  position: absolute;
  z-index: 1;
  inset: 2rem auto auto 0;
  width: min(680px, 100%);
  padding: 0 clamp(1.2rem, 5vw, 3rem) clamp(1.2rem, 5vw, 3rem);
  color: var(--surface);
}

.category,
.section-heading span {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-copy .category {
  color: #f3c164;
}

.hero-copy h1,
.section-heading h2,
.newsletter h2 {
  font-family: "Source Serif 4", Georgia, serif;
  line-height: 1.05;
}

.hero-copy h1 {
  margin: 0.55rem 0 1rem;
  font-size: clamp(2rem, 4.1vw, 3.4rem);
  max-width: 16ch;
}

.hero-copy p {
  max-width: 56ch;
  margin: 0 0 1.4rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.02rem;
}

.newsletter button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1rem;
  color: var(--surface);
  background: var(--accent);
  font-weight: 800;
}

.newsletter button:hover,
.newsletter button:focus-visible {
  color: var(--surface);
  background: #963d27;
}

.featured-panel {
  background: transparent;
  border: 0;
}

.section-heading {
  margin-bottom: 1rem;
}

.section-heading h2 {
  margin: 0.1rem 0 0;
  font-size: 1.6rem;
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.section-heading-row > a {
  color: var(--brand);
  font-size: 0.88rem;
  font-weight: 800;
}

.ranked-list {
  display: grid;
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.news-card time {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.ranked-list a {
  font-weight: 700;
  line-height: 1.35;
}

.featured-list {
  display: grid;
  gap: 1rem;
  height: 520px;
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.featured-card {
  min-height: 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.featured-card:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.featured-card a {
  display: grid;
  gap: 0.5rem;
  align-items: start;
  height: 100%;
}

.featured-card img {
  width: 100%;
  height: clamp(118px, 11vw, 145px);
  object-fit: cover;
  background: var(--surface-muted);
}

.featured-card h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.16;
}

.featured-card-content {
  min-width: 0;
}

.featured-card .category {
  display: block;
  margin-bottom: 0.15rem;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.main-column {
  display: contents;
}

.news-grid {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: transparent;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.news-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  min-height: 0;
  padding: 1rem 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.news-card:last-child {
  border-bottom: 0;
}

.news-card > a {
  display: block;
}

.news-card img {
  width: 100%;
  height: 165px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  background: var(--surface-muted);
}

.news-card .category,
.news-card h3,
.news-card p,
.news-card time {
  display: block;
  margin-inline: 0;
}

.news-card-content {
  min-width: 0;
}

.news-card .category {
  margin-top: 0;
}

.news-card h3 {
  margin: 0.35rem 0 0.45rem;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.2;
}

.news-card p {
  margin: 0 0 0.75rem;
  color: var(--muted);
}

.news-card time {
  margin-bottom: 0;
}

.category-sections {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 0.35rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.category-block {
  display: grid;
  align-content: start;
  gap: 0.85rem;
}

.category-block-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 2px solid var(--brand-dark);
}

.category-block-header h2 {
  margin: 0 0 0.75rem;
  color: var(--brand-dark);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.55rem;
  line-height: 1.05;
}

.category-block-header h2 {
  margin: 0;
}

.category-block-header > a {
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.category-lead {
  display: grid;
  gap: 0.55rem;
}

.category-lead img {
  width: 100%;
  height: 158px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  background: var(--surface-muted);
}

.category-lead h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.16;
}

.category-lead p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.category-links {
  display: grid;
  gap: 0.85rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.category-links li {
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.category-links a {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  font-weight: 750;
  line-height: 1.18;
  font-size: 1.02rem;
}

.category-links img {
  width: 100%;
  height: 69px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  background: var(--surface-muted);
}

.sidebar {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  gap: 1rem;
  align-content: start;
}

.side-block,
.newsletter {
  padding: 1.25rem;
}

.side-block {
  padding: 0;
  background: transparent;
  border: 0;
}

.ranked-list {
  counter-reset: ranked;
}

.ranked-list li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 0.75rem;
  align-items: start;
}

.ranked-list li::before {
  counter-increment: ranked;
  content: counter(ranked);
  display: grid;
  place-items: center;
  width: 32px;
  aspect-ratio: 1;
  color: var(--surface);
  background: var(--brand-dark);
  font-weight: 800;
}

.newsletter {
  background: var(--brand-dark);
  border: 0;
  color: var(--surface);
}

.newsletter .category {
  color: #f3c164;
}

.newsletter h2 {
  margin: 0.4rem 0 0.6rem;
  font-size: 1.8rem;
}

.newsletter p {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.76);
}

.newsletter form {
  display: grid;
  gap: 0.7rem;
}

.newsletter input {
  min-height: 44px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 0 0.85rem;
  color: var(--surface);
  background: rgba(255, 255, 255, 0.08);
  outline: 0;
}

.newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.newsletter input:focus {
  border-color: #f3c164;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0 2rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-weight: 700;
}

.article-page {
  display: grid;
  grid-template-columns: minmax(0, 820px) 330px;
  gap: 3rem;
  align-items: start;
}

.article-layout {
  min-width: 0;
}

.article-header {
  display: grid;
  gap: 0.9rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}

.article-back {
  width: max-content;
  color: var(--brand);
  font-size: 0.84rem;
  font-weight: 800;
}

.article-header h1 {
  max-width: none;
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(3rem, 4.8vw, 4.15rem);
  line-height: 1;
}

.article-header p {
  max-width: 64ch;
  margin: 0;
  color: #41454a;
  font-size: 1.2rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
}

.article-hero-image {
  margin: 1.4rem 0 0;
}

.article-hero-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-hero-image figcaption {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.article-body {
  max-width: none;
  margin-top: 2rem;
}

.article-body p,
.article-body blockquote {
  margin: 0 0 1.35rem;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.08rem;
  line-height: 1.68;
}

.article-body h2 {
  margin: 2.1rem 0 0.8rem;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 2rem;
  line-height: 1.05;
}

.article-body blockquote {
  padding: 1rem 0 1rem 1.2rem;
  border-left: 4px solid var(--brand-dark);
  color: var(--brand-dark);
  font-weight: 700;
}

.article-sidebar {
  position: sticky;
  top: 1rem;
}

.related-list {
  display: grid;
  gap: 1rem;
}

.related-list a {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-weight: 800;
  line-height: 1.2;
}

.related-list a:first-child {
  padding-top: 0;
  border-top: 0;
}

.related-list img {
  width: 100%;
  height: 78px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.category-page {
  display: grid;
  gap: 1.6rem;
}

.category-page-header {
  display: grid;
  gap: 0.75rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.category-page-header h1 {
  margin: 0;
  color: var(--brand-dark);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.95;
}

.category-page-header p {
  max-width: 70ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.category-feature-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 1.4rem;
  align-items: end;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}

.category-feature-card img {
  width: 100%;
  height: 360px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.category-feature-card h2 {
  margin: 0.45rem 0 0.75rem;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.category-feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.category-listing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.5rem;
}

.about-page {
  display: grid;
  gap: 2rem;
}

.about-header {
  display: grid;
  gap: 0.9rem;
  max-width: 900px;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.about-header h1 {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 0.98;
}

.about-header p {
  max-width: 68ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.18rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.about-grid article {
  padding-top: 1rem;
  border-top: 2px solid var(--brand-dark);
}

.about-grid h2 {
  margin: 0 0 0.75rem;
  color: var(--brand-dark);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.65rem;
  line-height: 1.05;
}

.about-grid p {
  margin: 0;
  color: var(--muted);
}

.contact-page {
  display: grid;
  gap: 2rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 2rem;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--brand-dark);
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: 0.85rem;
  background: var(--surface);
  color: var(--ink);
  outline: 0;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--brand);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  width: max-content;
  min-height: 44px;
  border: 0;
  padding: 0 1.1rem;
  color: var(--surface);
  background: var(--brand-dark);
  font-weight: 800;
  cursor: pointer;
}

.contact-info {
  display: grid;
  gap: 1rem;
}

.contact-info article {
  padding-top: 1rem;
  border-top: 2px solid var(--brand-dark);
}

.contact-info h2 {
  margin: 0 0 0.45rem;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.55rem;
  line-height: 1.05;
}

.contact-info p {
  margin: 0;
  color: var(--muted);
  font-weight: 650;
}

.policy-page {
  display: grid;
  gap: 2rem;
}

.policy-content {
  max-width: 780px;
}

.policy-content h2 {
  margin: 1.8rem 0 0.6rem;
  color: var(--brand-dark);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.8rem;
  line-height: 1.05;
}

.policy-content h2:first-child {
  margin-top: 0;
}

.policy-content p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

@media (max-width: 920px) {
  .brand {
    transform: none;
  }

  .masthead {
    grid-template-columns: 1fr auto;
  }

  .search-form {
    grid-column: 1 / -1;
    order: 3;
  }

  .menu-toggle {
    display: grid;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 0.9rem 0;
    border-top: 1px solid var(--line);
  }

  .headline-grid,
  .content-layout,
  .article-page {
    grid-template-columns: 1fr;
  }

  .news-grid,
  .category-sections,
  .sidebar {
    grid-column: 1;
    grid-row: auto;
  }

  .featured-panel {
    order: 2;
  }

  .featured-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: auto;
    grid-template-rows: auto;
  }

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

  .featured-card {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .featured-card a {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
  }

  .article-header h1 {
    max-width: none;
    font-size: clamp(2.35rem, 6.2vw, 3.4rem);
  }

  .category-feature-card,
  .category-listing,
  .about-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .masthead,
  .main-nav,
  .page,
  .site-footer {
    width: min(100% - 24px, var(--max-width));
  }

  .site-footer {
    flex-direction: column;
  }

  .brand-mark {
    width: 190px;
    height: 76px;
  }

  .page {
    padding-top: 1rem;
  }

  .hero-story,
  .hero-story img {
    height: 520px;
    min-height: 520px;
  }

  .hero-story::after {
    background: linear-gradient(180deg, rgba(8, 29, 30, 0.2), rgba(8, 29, 30, 0.9));
  }

  .hero-copy {
    inset: 1.3rem 0 auto;
    padding-inline: 1.25rem;
  }

  .hero-copy h1 {
    max-width: 13ch;
    font-size: 2.05rem;
    line-height: 1.02;
  }

  .hero-copy p {
    max-width: 28ch;
    font-size: 0.98rem;
    line-height: 1.42;
  }

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

  .news-card {
    grid-template-columns: minmax(128px, 42%) minmax(0, 1fr);
    gap: 0.8rem;
    padding: 0.85rem 0;
  }

  .news-card-content {
    align-self: center;
  }

  .news-card img {
    aspect-ratio: 16 / 9;
    height: clamp(78px, 24vw, 104px);
  }

  .news-card h3 {
    margin-top: 0.2rem;
    font-size: 1rem;
    line-height: 1.2;
  }

  .news-card p {
    display: none;
  }

  .category-sections {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .category-block-header {
    display: flex;
  }

  .category-lead h3 {
    font-size: 1.25rem;
  }

  .category-lead img {
    height: clamp(180px, 48vw, 240px);
  }

  .category-links a {
    grid-template-columns: 104px minmax(0, 1fr);
    font-size: 1.02rem;
  }

  .category-links img {
    height: 78px;
  }

  .featured-list {
    grid-template-columns: 1fr;
    height: auto;
    grid-template-rows: auto;
  }

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

  .featured-card:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .featured-card a {
    grid-template-columns: minmax(128px, 42%) minmax(0, 1fr);
    gap: 0.8rem;
    align-items: center;
  }

  .featured-card img {
    height: clamp(78px, 24vw, 104px);
    aspect-ratio: 16 / 9;
  }

  .featured-card h3 {
    margin-top: 0.2rem;
    font-size: 1rem;
    line-height: 1.2;
  }

  .featured-card .category {
    margin-bottom: 0;
  }

  .article-page {
    gap: 2rem;
  }

  .article-header h1 {
    max-width: none;
    font-size: 2.35rem;
  }

  .article-header p {
    font-size: 1.05rem;
  }

  .article-body p,
  .article-body blockquote {
    font-size: 1.02rem;
    line-height: 1.62;
  }

  .article-body h2 {
    font-size: 1.65rem;
  }

  .category-page-header h1 {
    font-size: 3rem;
  }

  .category-feature-card h2 {
    font-size: 2rem;
  }
}
