:root {
  --navy-950: #071a30;
  --navy-900: #0b2340;
  --navy-800: #12375c;
  --teal-700: #006b68;
  --teal-600: #007f7b;
  --teal-100: #d9f3f1;
  --sky-600: #1976d2;
  --sky-100: #e1f0ff;
  --gold-500: #e9a928;
  --gold-100: #fff2ce;
  --ink: #172739;
  --muted: #5f7082;
  --line: #d7e3ec;
  --paper: #ffffff;
  --canvas: #f4f8fb;
  --shadow-sm: 0 8px 24px rgba(7, 26, 48, 0.08);
  --shadow-lg: 0 28px 80px rgba(7, 26, 48, 0.16);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: var(--teal-700);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--navy-800);
}

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

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  color: #fff;
  background: var(--navy-950);
  border-radius: 8px;
  transform: translateY(-150%);
}

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

.shell {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #fff;
  background: rgba(7, 26, 48, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.78rem;
  color: #fff;
  text-decoration: none;
  font-weight: 780;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: #fff;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--navy-950);
  background: linear-gradient(135deg, #6de0d8, #d5fbf7);
  border-radius: 13px 13px 13px 5px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  font-size: 0.88rem;
  font-weight: 900;
}

.brand-name {
  line-height: 1.15;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.desktop-nav a {
  padding: 0.62rem 0.9rem;
  color: #dce8f1;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  cursor: pointer;
}

.menu-button span,
.menu-button::before,
.menu-button::after {
  content: "";
  width: 20px;
  height: 2px;
  display: block;
  background: currentColor;
  border-radius: 2px;
  transition: 180ms ease;
}

.menu-button span {
  margin-block: 4px;
}

.mobile-nav {
  display: none;
}

.hero {
  position: relative;
  min-height: 650px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--navy-950);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 26, 48, 0.98) 0%, rgba(7, 26, 48, 0.9) 36%, rgba(7, 26, 48, 0.2) 67%, rgba(7, 26, 48, 0.06) 100%),
    linear-gradient(0deg, rgba(7, 26, 48, 0.6), transparent 35%);
  pointer-events: none;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(580px, 55%);
  padding-block: 5.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  color: var(--teal-700);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  line-height: 1.25;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #75e5dd;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.hero h1,
.page-hero h1,
.article-header h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.hero h1 {
  max-width: 10ch;
  font-size: clamp(3rem, 6.4vw, 5.6rem);
  font-weight: 600;
}

.hero h1 em {
  color: #75e5dd;
  font-style: normal;
}

.hero-copy {
  max-width: 54ch;
  margin: 1.5rem 0 0;
  color: #dce8f1;
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 760;
  line-height: 1.1;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--navy-950);
  background: #75e5dd;
}

.button-primary:hover {
  color: var(--navy-950);
  background: #a8f4ee;
}

.button-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
}

.button-secondary:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.section-white {
  background: var(--paper);
}

.section-dark {
  color: #fff;
  background: var(--navy-950);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 2.25rem;
}

.section-heading h2 {
  margin: 0;
  color: var(--navy-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.section-dark .section-heading h2 {
  color: #fff;
}

.section-heading p {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-dark .section-heading p {
  color: #bfd0df;
}

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

.article-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.article-card:hover {
  transform: translateY(-5px);
  border-color: #9fc4d4;
  box-shadow: 0 18px 44px rgba(7, 26, 48, 0.12);
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.category {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.34rem 0.62rem;
  color: var(--teal-700);
  background: var(--teal-100);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.article-card h3 {
  margin: 0;
  color: var(--navy-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.42rem, 2.5vw, 1.78rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.article-card p {
  margin: 0.9rem 0 1.5rem;
  color: var(--muted);
}

.card-link {
  margin-top: auto;
  color: var(--navy-900);
  font-weight: 800;
  text-decoration: none;
}

.card-link::after {
  content: " →";
  color: var(--teal-600);
}

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

.topic-card {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  color: #fff;
  background: linear-gradient(145deg, var(--navy-800), var(--navy-950));
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  text-decoration: none;
}

.topic-number {
  color: #75e5dd;
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.topic-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 600;
}

.topic-card:hover {
  color: #fff;
  background: linear-gradient(145deg, #164b6f, var(--navy-950));
}

.trust-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 7vw, 6rem);
  align-items: center;
}

.trust-quote {
  position: relative;
  margin: 0;
  padding: 1.6rem 0 1.6rem 1.6rem;
  color: var(--navy-950);
  border-left: 5px solid var(--gold-500);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -0.025em;
  line-height: 1.25;
}

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

.check-list li {
  position: relative;
  padding: 1rem 1rem 1rem 3.1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 1.45rem;
  height: 1.45rem;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--teal-600);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 900;
}

.notice {
  padding: 1.15rem 1.25rem;
  color: #45320c;
  background: var(--gold-100);
  border: 1px solid #efd383;
  border-radius: var(--radius-sm);
}

.page-hero {
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(117, 229, 221, 0.17), transparent 32%),
    linear-gradient(145deg, var(--navy-950), #103d60);
}

.page-hero .shell {
  padding-block: clamp(4.5rem, 9vw, 8rem);
}

.page-hero h1 {
  max-width: 14ch;
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  font-weight: 600;
}

.page-hero p {
  max-width: 650px;
  margin: 1.4rem 0 0;
  color: #ccdae6;
  font-size: 1.15rem;
}

.article-header {
  padding-block: clamp(4rem, 8vw, 7rem);
  color: #fff;
  background:
    radial-gradient(circle at 85% 18%, rgba(117, 229, 221, 0.16), transparent 33%),
    var(--navy-950);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 2rem;
  color: #a9bfd0;
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: #dce8f1;
}

.article-header h1 {
  max-width: 890px;
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  font-weight: 600;
}

.article-dek {
  max-width: 760px;
  margin: 1.5rem 0;
  color: #c7d6e2;
  font-size: clamp(1.1rem, 2vw, 1.28rem);
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  color: #9eb4c6;
  font-size: 0.9rem;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  padding-block: clamp(3rem, 7vw, 6rem);
}

.article-body {
  min-width: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.08rem, 1.7vw, 1.2rem);
  line-height: 1.82;
}

.article-body .lead {
  margin-top: 0;
  color: var(--navy-900);
  font-size: 1.24em;
  line-height: 1.65;
}

.article-body h2 {
  margin: 3.2rem 0 1rem;
  color: var(--navy-950);
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.article-body p {
  margin: 0 0 1.25rem;
}

.article-body ul {
  margin: 0.5rem 0 1.5rem;
  padding-left: 1.3rem;
}

.article-body li {
  margin-bottom: 0.62rem;
  padding-left: 0.35rem;
}

.takeaway {
  margin: 2.2rem 0;
  padding: 1.35rem 1.45rem;
  color: var(--navy-900);
  background: var(--teal-100);
  border-left: 5px solid var(--teal-600);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
}

.article-aside {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 1rem;
}

.toc,
.aside-note {
  padding: 1.2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.toc h2,
.aside-note h2 {
  margin: 0 0 0.8rem;
  color: var(--navy-950);
  font-size: 0.9rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.toc ol {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.42;
}

.toc a {
  color: var(--ink);
  text-decoration: none;
}

.aside-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.faq {
  margin-top: 3.5rem;
  padding-top: 2.3rem;
  border-top: 1px solid var(--line);
}

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.faq details + details {
  margin-top: 0.75rem;
}

.faq summary {
  padding: 1rem 1.15rem;
  color: var(--navy-950);
  cursor: pointer;
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 1rem;
  font-weight: 760;
}

.faq details p {
  margin: 0;
  padding: 0 1.15rem 1.15rem;
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 0.98rem;
  line-height: 1.65;
}

.references {
  margin-top: 3.5rem;
  padding: 1.4rem;
  background: #eef4f8;
  border-radius: var(--radius-sm);
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 0.9rem;
}

.references h2 {
  margin-top: 0;
  font-size: 1.15rem;
}

.references ol {
  margin-bottom: 0;
}

.references li {
  margin-bottom: 0.6rem;
}

.content-narrow {
  width: min(calc(100% - 2rem), 820px);
  margin-inline: auto;
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

.content-narrow h2 {
  margin: 2.5rem 0 0.8rem;
  color: var(--navy-950);
  font-size: 1.65rem;
  letter-spacing: -0.02em;
}

.content-narrow h3 {
  margin: 1.8rem 0 0.6rem;
  color: var(--navy-800);
}

.content-narrow p,
.content-narrow li {
  color: #34495e;
}

.contact-card {
  margin-top: 2rem;
  padding: 1.6rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.contact-card a {
  font-size: 1.05rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.all-articles {
  display: grid;
  gap: 1.25rem;
}

.article-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.4rem;
  align-items: start;
  padding: 1.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.article-row-index {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  color: #75e5dd;
  background:
    radial-gradient(circle at 75% 30%, rgba(117, 229, 221, 0.25), transparent 28%),
    var(--navy-950);
  border-radius: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.4rem;
}

.article-row h3 {
  margin: 0.35rem 0 0.55rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
}

.article-row h3 a {
  color: var(--navy-950);
  text-decoration: none;
}

.article-row p {
  margin: 0;
  color: var(--muted);
}

.row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer {
  color: #b9cbd9;
  background: #061528;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr 0.65fr;
  gap: 3rem;
  padding-block: 4rem;
}

.footer-brand p {
  max-width: 48ch;
  margin: 1rem 0 0;
  color: #9fb4c5;
}

.footer-column h2 {
  margin: 0 0 0.9rem;
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-column ul {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-column a {
  color: #b9cbd9;
  text-decoration: none;
}

.footer-column a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #8299aa;
  font-size: 0.84rem;
}

.empty-page {
  min-height: 65vh;
  display: grid;
  place-items: center;
  text-align: center;
}

.empty-page h1 {
  margin: 0;
  color: var(--navy-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 12vw, 8rem);
}

.empty-page p {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

@media (max-width: 940px) {
  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: grid;
  }

  .mobile-nav {
    position: fixed;
    inset: 76px 0 auto;
    z-index: 90;
    display: grid;
    max-height: 0;
    overflow: hidden;
    background: var(--navy-950);
    transition: max-height 220ms ease;
  }

  .mobile-nav[data-open="true"] {
    max-height: calc(100vh - 76px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
  }

  .mobile-nav .shell {
    display: grid;
    padding-block: 0.75rem 1.25rem;
  }

  .mobile-nav a {
    padding: 0.85rem;
    color: #e4edf4;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
  }

  .mobile-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
  }

  .hero {
    min-height: 720px;
    align-items: end;
  }

  .hero::after {
    background:
      linear-gradient(0deg, rgba(7, 26, 48, 0.99) 0%, rgba(7, 26, 48, 0.9) 48%, rgba(7, 26, 48, 0.18) 100%);
  }

  .hero-media {
    object-position: 70% center;
  }

  .hero-content {
    width: min(680px, 100%);
    padding-block: 12rem 3.5rem;
  }

  .hero h1 {
    max-width: 11ch;
  }

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

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

  .trust-panel {
    grid-template-columns: 1fr;
  }

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

  .article-aside {
    position: static;
    order: -1;
  }

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

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

@media (max-width: 620px) {
  .shell {
    width: min(calc(100% - 1.25rem), var(--max));
  }

  .header-inner {
    min-height: 68px;
  }

  .mobile-nav {
    inset: 68px 0 auto;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-name {
    max-width: 180px;
    font-size: 0.92rem;
  }

  .hero {
    min-height: 690px;
  }

  .hero-content {
    padding-bottom: 2.7rem;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 14vw, 4rem);
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .section {
    padding-block: 4rem;
  }

  .card-grid,
  .topic-grid {
    grid-template-columns: 1fr;
  }

  .article-row {
    grid-template-columns: 1fr;
  }

  .article-row-index {
    aspect-ratio: 16 / 5;
  }

  .article-header,
  .page-hero .shell {
    padding-block: 3.7rem;
  }

  .article-header h1,
  .page-hero h1 {
    font-size: clamp(2.4rem, 12vw, 3.5rem);
  }

  .article-layout {
    padding-block: 2.5rem 4rem;
  }

  .article-body {
    font-size: 1.06rem;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Biblioteca, materiais e autoria — extensão do tema existente. */
[hidden] { display: none !important; }
.brand-mark { flex-shrink: 0; }
.header-inner { gap: 1rem; }
.eyebrow, .category, .card-meta, .row-meta { font-size: .875rem; }
.library-strip { background: var(--teal-100); border-bottom: 1px solid #badfdd; }
.library-strip .shell { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 2rem; padding-block: 1.1rem; font-size: .94rem; }
.library-strip a { font-weight: 650; }
.section-link { margin: 2rem 0 0; font-weight: 700; }
.article-byline a, .editorial-note a { color: #a8f4ee; }
.editorial-note { max-width: 75ch; color: #bbcedd; font-size: .875rem; margin: 1rem 0 0; }
.source-note { color: var(--muted); font-family: Inter, ui-sans-serif, sans-serif; font-size: .9rem; }
.editorial-box { margin-top: 2rem; padding: 1.3rem; background: white; border: 1px solid var(--line); border-radius: var(--radius-sm); font-family: Inter, ui-sans-serif, sans-serif; font-size: .95rem; }
.editorial-box p:last-child { margin-bottom: 0; }
.resource-aside a { display: inline-block; margin-top: .85rem; font-weight: 700; }
.search-panel { padding-top: 2.5rem; }
.search-panel form > label { display: block; margin-bottom: .5rem; font-size: 1.15rem; font-weight: 750; }
.search-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.search-row input { flex: 1 1 250px; min-width: 0; padding: .9rem 1rem; border: 1px solid #96aabb; border-radius: 12px; background: white; color: var(--ink); }
.button { cursor: pointer; }
.button-outline { background: white; color: var(--navy-900); border-color: #96aabb; }
.button-outline:hover { background: var(--teal-100); }
.topic-filters { display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; margin: 1.2rem 0 0; border: 0; }
.topic-filters legend { margin-bottom: .7rem; font-size: .94rem; font-weight: 650; }
.topic-filters label { position: relative; cursor: pointer; }
.topic-filters input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.topic-filters span { display: block; padding: .6rem 1rem; border: 1px solid #b3c4cf; border-radius: 999px; color: var(--navy-900); background: white; font-weight: 650; }
.topic-filters input:checked + span { color: white; background: var(--navy-900); border-color: var(--navy-900); }
.topic-filters input:focus-visible + span { outline: 3px solid var(--gold-500); outline-offset: 3px; }
.search-count { margin-bottom: 0; font-size: .94rem; color: var(--muted); }
.search-empty { margin: 1.8rem 0 3rem; padding: 1.5rem; border: 1px dashed #96aabb; border-radius: 12px; }
.article-group { padding-block: 3rem; }
.article-row { grid-template-columns: 64px minmax(0,1fr); border-radius: 12px; }
.article-row-index { aspect-ratio: 1; border-radius: 8px; font-size: 1.5rem; }
.article-row h3 a:hover { text-decoration: underline; }
.content-narrow > :first-child { margin-top: 0; }
.reading-paths { display: grid; gap: 1.5rem; }
.path-card { padding: 1.6rem; background: white; border: 1px solid var(--line); border-left: 4px solid var(--teal-700); border-radius: 0 16px 16px 0; }
.path-card h2 { margin-top: 1rem; }
.path-card ol { padding-left: 1.3rem; }
.path-card li + li { margin-top: .7rem; }
.resource-grid { display: grid; gap: 1.2rem; }
.resource-card { border-top: 4px solid var(--teal-700); }
.resource-card .category { margin-bottom: 1.1rem; }
.resource-card h2 { margin: 0; font-size: 1.7rem; line-height: 1.2; }
.tool-privacy { padding: 1rem; font-size: .94rem; background: var(--teal-100); border-radius: 10px; }
.worksheet { margin-top: 2rem; }
.print-sheet { padding: clamp(1rem, 4vw, 2rem); background: white; border: 1px solid var(--line); border-radius: 16px; }
.content-narrow .sheet-title { margin: 0 0 1.7rem; font-family: Georgia, serif; font-size: 2rem; }
.form-field { margin-bottom: 1.2rem; min-width: 0; }
.form-field label { display: block; font-weight: 700; margin-bottom: .45rem; }
.form-field textarea { display: block; width: 100%; max-width: 100%; min-height: 5rem; padding: .75rem; color: var(--ink); background: #fafcfe; border: 1px solid #9caeba; border-radius: 8px; line-height: 1.5; resize: vertical; }
.form-field textarea::placeholder { color: #63717d; }
.routine-steps { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.routine-step { min-width: 0; padding: .9rem; margin: 0 0 1rem; border: 1px solid #b6cdd0; border-radius: 8px; }
.routine-step legend { padding-inline: .4rem; color: var(--teal-700); font-weight: 800; }
.routine-step .form-field:last-child { margin-bottom: 0; }
.routine-step label { font-size: .94rem; }
.tool-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.4rem 0 .8rem; }
.tool-help, .form-status { font-size: .9rem; }
.print-brand { font-size: .875rem; margin: 1.5rem 0 0; color: var(--muted); }
.print-value { display: none; }
.glossary { margin: 0; }
.glossary dt { font-size: 1.4rem; font-weight: 750; color: var(--navy-900); margin: 2rem 0 .5rem; }
.glossary dd { margin: 0; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.article-body a, .content-narrow a, .references li { overflow-wrap: anywhere; }

@media (max-width: 1120px) {
  .desktop-nav { display: none; }
  .menu-button { display: grid; flex-shrink: 0; }
  .mobile-nav { position: absolute; inset: 100% 0 auto; z-index: 90; display: grid; max-height: 0; overflow: hidden; background: var(--navy-950); }
  .mobile-nav[data-open="true"] { max-height: calc(100dvh - 76px); overflow-y: auto; border-top: 1px solid #35506b; box-shadow: var(--shadow-lg); }
  .mobile-nav .shell { display: grid; padding-block: .75rem 1.25rem; }
  .mobile-nav a { display: block; padding: .85rem; color: #e4edf4; border-radius: 8px; font-weight: 700; text-decoration: none; }
  .mobile-nav a:hover, .mobile-nav a[aria-current="page"] { color: white; background: #12375c; }
}

@media (max-width: 620px) {
  .header-inner { gap: .75rem; }
  .library-strip .shell { display: grid; gap: .55rem; }
  .article-row { grid-template-columns: 36px minmax(0,1fr); padding: 1rem; gap: .8rem; }
  .article-row-index { aspect-ratio: 1; font-size: 1rem; }
  .article-row h3 { font-size: 1.5rem; }
  .routine-steps { grid-template-columns: 1fr; }
  .article-aside .toc { padding: 1rem; }
  .article-aside .aside-note:not(.resource-aside) { display: none; }
  .path-card { padding: 1.15rem; }
  .card-meta { flex-wrap: wrap; }
}

@media print {
  @page { margin: 15mm; }
  html, body { background: white; color: black; font-size: 11pt; }
  .site-header, .site-footer, .skip-link, .worksheet-page .page-hero, .article-aside, .no-print, .tool-actions, .tool-help, .form-status { display: none !important; }
  .content-narrow { width: 100%; padding: 0; margin: 0; }
  .worksheet-page .content-narrow > p, .worksheet + section { display: none !important; }
  .worksheet { margin: 0; }
  .print-sheet { border: 0; padding: 0; }
  .print-sheet .sheet-title { font-size: 20pt; margin-bottom: 1.2rem; }
  .form-field { break-inside: avoid; margin-bottom: 1rem; }
  .form-field textarea { display: none; }
  .form-field label { color: black; }
  .print-value { display: block; white-space: pre-wrap; overflow-wrap: anywhere; min-height: 1.8rem; padding: .35rem 0; border-bottom: 1px solid #ccc; color: black; }
  .routine-steps { display: block; }
  .routine-step { break-inside: avoid; border-color: #aaa; margin-bottom: .8rem; }
  .routine-step legend { color: black; }
  .print-brand { font-size: 9pt; border-top: 1px solid #aaa; padding-top: .5rem; }
  .print-sheet h2 { color: black; }
}

.personal-logo { display: block; width: 280px; max-width: 100%; height: auto; aspect-ratio: 2.6; object-fit: cover; object-position: center; background: white; border-radius: 8px; margin: 1rem 0; }
.personal-logo-about { width: 520px; }

.brand-logo { width: 140px; height: auto; aspect-ratio: 2.6; object-fit: cover; flex-shrink: 0; border-radius: 6px; background: white; }
.site-header .brand-name { max-width: 150px; }
@media (max-width: 620px) { .header-inner { gap: .75rem; } .site-header .brand { gap: .6rem; min-width: 0; } .site-header .brand-logo { width: 100px; } .site-header .brand-name { max-width: 130px; } .menu-button { flex-shrink: 0; } }

.brand-logo { width: 170px; height: auto; aspect-ratio: 3; object-fit: contain; background: transparent; border-radius: 0; }
.personal-logo-about { background: var(--navy-950); aspect-ratio: 3; object-fit: contain; padding: 1rem; }
@media (max-width: 620px) { .site-header .brand-logo { width: 115px; } }

.brand-logo { mix-blend-mode: lighten; }
