/*
 * A — Sage Editorial
 * Final, reversible visual layer selected from the 2026-09-15 previews.
 * Content, hero artwork and in-article images remain owned by their original
 * templates; this file changes spacing, surfaces, typography and layout only.
 */

body.nuguna-sage-editorial {
  --sage-bg: #fbfcf7;
  --sage-paper: #fff;
  --sage-soft: #f3f6ea;
  --sage-soft-2: #eaf3df;
  --sage-ink: #17221c;
  --sage-muted: #5f6d63;
  --sage-line: #dfe7d5;
  --sage-accent: #8fb91c;
  --sage-teal: #2f7d6e;
  --sage-accent-ink: #3f5908;
  --sage-shadow: 0 18px 50px rgba(48, 74, 49, .10);
  --sage-shadow-soft: 0 10px 30px rgba(48, 74, 49, .065);
  --sage-radius: 28px;
  --ink: var(--sage-ink);
  --charcoal: var(--sage-ink);
  --muted: var(--sage-muted);
  --line: var(--sage-line);
  background: var(--sage-bg);
  color: var(--sage-ink);
  font-family: Pretendard, "Noto Sans KR", "Segoe UI", sans-serif;
  line-height: 1.8;
  letter-spacing: -.012em;
}

body.nuguna-sage-editorial .container,
body.nuguna-sage-editorial .header-inner,
body.nuguna-sage-editorial .topic-hub-container {
  max-width: 1180px;
  margin-inline: auto;
}

/* Header and shared actions */
body.nuguna-sage-editorial .site-header {
  border-bottom: 1px solid var(--sage-line);
  background: rgba(255, 255, 255, .95);
  box-shadow: none;
}

body.nuguna-sage-editorial .desktop-nav {
  gap: clamp(14px, 1.7vw, 28px);
}

body.nuguna-sage-editorial .desktop-nav a {
  color: var(--sage-ink);
  font-weight: 760;
}

body.nuguna-sage-editorial .desktop-nav a:hover,
body.nuguna-sage-editorial .desktop-nav a:focus-visible {
  color: var(--sage-teal);
}

body.nuguna-sage-editorial :is(
  .button-primary,
  .popular-plan-open,
  .purchase-online,
  .nuguna-board-button,
  .region-button.is-primary
) {
  border-color: var(--sage-accent);
  background: var(--sage-accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(143, 185, 28, .24);
}

body.nuguna-sage-editorial :is(
  .button-outline,
  .purchase-offline,
  .region-button.is-secondary
) {
  border: 1px solid var(--sage-line);
  background: var(--sage-paper);
  color: var(--sage-ink);
}

body.nuguna-sage-editorial :is(.button, .region-button) {
  border-radius: 999px;
}

/* Keep the primary header action readable even when the long Korean menu fills
 * the desktop row. Korean text may otherwise wrap between every character. */
body.nuguna-sage-editorial .header-actions {
  flex: 0 0 auto;
}

body.nuguna-sage-editorial .header-actions .button-primary {
  min-width: 112px;
  flex: 0 0 auto;
  white-space: nowrap;
  word-break: keep-all;
}

/* The nine-item desktop navigation needs its own wide rail. The shared 1180px
 * content rail is correct for page sections but too narrow for logo + nav + CTA. */
@media (min-width: 1600px) {
  body.nuguna-sage-editorial .header-inner {
    width: min(1600px, calc(100% - 40px));
    max-width: 1600px;
    gap: clamp(14px, 1vw, 18px);
  }

  body.nuguna-sage-editorial .brand-lockup,
  body.nuguna-sage-editorial .header-actions {
    flex: 0 0 auto;
  }

  body.nuguna-sage-editorial .desktop-nav {
    min-width: 0;
    flex: 1 1 auto;
    justify-content: center;
    gap: clamp(11px, .8vw, 15px);
    margin-left: 0;
  }

  body.nuguna-sage-editorial .desktop-nav a {
    flex: 0 0 auto;
    font-size: clamp(.91rem, .82vw, 1rem);
    letter-spacing: -.045em;
  }

  body.nuguna-sage-editorial .header-actions {
    margin-left: 0;
  }
}

/* Keep the supplied home hero artwork and its calibrated crop. */
body.nuguna-sage-editorial.home .home-page .hero {
  border: 0;
  background-color: #fff;
  background-image: url('../images/home-layout-reference-pc.png');
  background-position: center 14.24%;
  background-size: auto 219.4%;
  background-repeat: no-repeat;
}

body.nuguna-sage-editorial.home .home-page .quick-nav,
body.nuguna-sage-editorial.home .home-page .trust-strip {
  border-color: var(--sage-line);
  box-shadow: var(--sage-shadow-soft);
}

/* Home: large editorial panels and calm vertical rhythm. */
body.nuguna-sage-editorial .home-region-hub,
body.nuguna-sage-editorial .home-latest-board,
body.nuguna-sage-editorial .home-information,
body.nuguna-sage-editorial .home-next-steps,
body.nuguna-sage-editorial .home-channels {
  background: var(--sage-bg);
}

body.nuguna-sage-editorial .home-region-hub,
body.nuguna-sage-editorial .home-channels {
  padding-block: 72px;
}

body.nuguna-sage-editorial .home-latest-board {
  padding-block: 72px 30px;
}

/* The main home sections share one 1180px alignment rail.  Their adjacent
 * padding is deliberately split so two section paddings cannot create the
 * large empty bands that appeared between FAQ and plans. */
body.nuguna-sage-editorial .home-information {
  padding-block: 34px 30px;
}

body.nuguna-sage-editorial .home-next-steps {
  padding-block: 30px 72px;
}

body.nuguna-sage-editorial .home-information-grid {
  display: block;
  max-width: 1180px;
}

body.nuguna-sage-editorial :is(.guide-panel, .home-faq-panel) {
  margin: 0;
  padding: 54px 58px;
  border: 1px solid var(--sage-line);
  border-radius: var(--sage-radius);
  background: var(--sage-paper);
  box-shadow: var(--sage-shadow);
}

body.nuguna-sage-editorial .home-faq-panel {
  margin-top: 48px;
}

body.nuguna-sage-editorial .home-section-title {
  align-items: flex-end;
  margin-bottom: 32px;
}

body.nuguna-sage-editorial :is(.home-section-title h2, .home-region-head h2, .home-latest-board__head h2, .home-channels h2) {
  color: var(--sage-ink);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.2;
  letter-spacing: -.045em;
}

body.nuguna-sage-editorial :is(.home-section-title a, .home-region-head > a, .home-latest-board__head > a) {
  color: var(--sage-accent-ink);
  font-weight: 850;
}

/* The information guide is one editorial block containing eight cards. */
body.nuguna-sage-editorial .home-guide-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

body.nuguna-sage-editorial .guide-card,
body.nuguna-sage-editorial .home-page .guide-card {
  display: flex;
  min-width: 0;
  min-height: 360px;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--sage-line);
  border-radius: 26px;
  background: var(--sage-paper);
  box-shadow: var(--sage-shadow-soft);
}

body.nuguna-sage-editorial .guide-card:hover {
  border-color: #b8ca93;
  transform: translateY(-2px);
}

body.nuguna-sage-editorial .guide-card .guide-thumb {
  width: 100%;
  height: 168px;
  min-height: 168px;
  border-radius: 0;
  background-color: var(--sage-soft);
  filter: saturate(.82);
}

body.nuguna-sage-editorial .guide-card b {
  padding: 22px 22px 0;
  color: var(--sage-ink);
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 1.35;
}

body.nuguna-sage-editorial .guide-card p {
  display: block;
  margin: 12px 0 0;
  padding: 0 22px;
  overflow: visible;
  color: var(--sage-muted);
  font-size: .9rem;
  line-height: 1.65;
}

body.nuguna-sage-editorial .guide-card time {
  margin-top: auto;
  padding: 18px 22px 22px;
  color: var(--sage-accent-ink);
  font-size: .82rem;
}

body.nuguna-sage-editorial .home-latest-board__head {
  margin-bottom: 28px;
}

body.nuguna-sage-editorial .home-latest-board__head span,
body.nuguna-sage-editorial .home-region-head > div > span {
  color: var(--sage-teal);
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .12em;
}

body.nuguna-sage-editorial .home-latest-board__grid {
  gap: 24px;
}

body.nuguna-sage-editorial .home-latest-board__column {
  border-color: var(--sage-line);
  border-radius: 24px;
  box-shadow: var(--sage-shadow-soft);
}

body.nuguna-sage-editorial .home-latest-board__title {
  padding: 20px 24px;
  border-color: var(--sage-line);
  background: var(--sage-soft);
}

body.nuguna-sage-editorial .home-latest-board__column ul {
  padding-inline: 24px;
}

body.nuguna-sage-editorial .home-latest-board__column li > a {
  min-height: 55px;
  font-size: .9rem;
}

body.nuguna-sage-editorial .home-region-links {
  gap: 18px;
}

body.nuguna-sage-editorial .home-region-links a {
  border-color: var(--sage-line);
  border-radius: 22px;
  background: var(--sage-paper);
  box-shadow: var(--sage-shadow-soft);
}

body.nuguna-sage-editorial :is(.popular-plans, .activation-preview, .usim-purchase-preview, .home-channel) {
  border: 1px solid var(--sage-line);
  border-radius: var(--sage-radius);
  background: var(--sage-paper);
  box-shadow: var(--sage-shadow);
}

body.nuguna-sage-editorial .home-support-grid {
  grid-template-columns: 1fr;
  gap: 24px;
}

body.nuguna-sage-editorial .home-support-grid .activation-preview img {
  height: auto;
  max-height: none;
}

/* Keep long plan names and disclosure text inside their cards. */
body.nuguna-sage-editorial .popular-plan-card,
body.nuguna-sage-editorial .popular-plan-top { min-width: 0; }
body.nuguna-sage-editorial :is(.popular-plan-promise, .popular-plan-data, .popular-plans-note, .popular-plan-card h3 small) {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: keep-all;
}
body.nuguna-sage-editorial .popular-plan-card h3 small { line-height: 1.45; }
body.nuguna-sage-editorial .popular-plans-note { padding-inline: 2px; }

/* The home plan block is a section, not another rounded card.  Its three plan
 * cards provide the visual boundary; an outer border made the title and note
 * look clipped at narrower desktop widths. */
body.nuguna-sage-editorial.home .home-popular-plans {
  padding: 0 2px;
  overflow: visible;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* A useful two-route USIM card replaces the placeholder square icon. */
body.nuguna-sage-editorial .usim-purchase-preview {
  align-items: stretch;
  justify-content: center;
  padding: 34px;
  background: linear-gradient(145deg, #f0f8e5, #fff) !important;
  text-align: left;
}
body.nuguna-sage-editorial .usim-purchase-kicker { color: var(--sage-teal); font-size: .75rem; font-weight: 950; letter-spacing: .1em; }
body.nuguna-sage-editorial .usim-purchase-preview h2 { margin: 7px 0 8px; color: var(--sage-ink); font-size: 1.8rem; }
body.nuguna-sage-editorial .usim-purchase-preview > p { margin: 0; color: var(--sage-muted); font-size: .9rem; line-height: 1.7; }
body.nuguna-sage-editorial .usim-purchase-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
body.nuguna-sage-editorial .usim-purchase-actions a { display: flex; width: auto; min-height: 92px; flex-direction: column; align-items: flex-start; justify-content:center; padding: 16px 18px; border: 1px solid var(--sage-line); border-radius: 16px; text-decoration: none; }
body.nuguna-sage-editorial .usim-purchase-actions a b { font-size: 1rem; }
body.nuguna-sage-editorial .usim-purchase-actions a span { margin-top: 4px; font-size: .76rem; }
body.nuguna-sage-editorial .usim-purchase-actions .purchase-online { background: var(--sage-accent); color: #fff; }
@media(max-width:600px){body.nuguna-sage-editorial .usim-purchase-preview{padding:25px 20px}body.nuguna-sage-editorial .usim-purchase-actions{grid-template-columns:1fr}}

/* Shared large FAQ treatment. */
body.nuguna-sage-editorial :is(.faq-list, .topic-hub-faq-list) {
  display: grid;
  gap: 14px;
}

body.nuguna-sage-editorial :is(.faq-item, .topic-hub-faq-item) {
  overflow: hidden;
  border: 1px solid var(--sage-line);
  border-radius: 22px;
  background: var(--sage-paper);
  box-shadow: none;
}

body.nuguna-sage-editorial :is(.faq-item:first-child, .topic-hub-faq-item:first-child) {
  border-color: var(--sage-accent);
  background: #fbfdf5;
}

body.nuguna-sage-editorial :is(.faq-question, .topic-hub-faq-question) {
  position: relative;
  display: block;
  width: 100%;
  min-height: 80px;
  padding: 23px 64px 23px 76px;
  border: 0;
  background: transparent;
  color: var(--sage-ink);
  font-size: 1.08rem;
  font-weight: 850;
  line-height: 1.55;
  text-align: left;
}

body.nuguna-sage-editorial :is(.faq-question, .topic-hub-faq-question)::before {
  content: "Q";
  position: absolute;
  top: 22px;
  left: 26px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: var(--sage-soft-2);
  color: var(--sage-accent);
  font-weight: 950;
}

body.nuguna-sage-editorial :is(.faq-question, .topic-hub-faq-question)::after {
  content: "⌄";
  position: absolute;
  top: 20px;
  right: 26px;
  color: #8d9690;
  font-size: 1.75rem;
  line-height: 1;
}

body.nuguna-sage-editorial :is(.faq-question[aria-expanded="true"], .topic-hub-faq-question[aria-expanded="true"])::after {
  content: "⌃";
  color: var(--sage-accent);
}

body.nuguna-sage-editorial :is(.faq-answer, .topic-hub-faq-answer) {
  position: relative;
  padding: 0 34px 28px 76px;
  border: 0;
  background: transparent;
  color: var(--sage-muted);
  font-size: 1rem;
  line-height: 1.85;
}

body.nuguna-sage-editorial :is(.faq-answer, .topic-hub-faq-answer)::before {
  content: "A";
  position: absolute;
  top: 0;
  left: 26px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--sage-accent);
  border-radius: 10px;
  background: #fff;
  color: var(--sage-accent);
  font-weight: 950;
}

/* Topic hero geometry, artwork scale and copy sizing are intentionally owned
 * by topic-hubs.css.  Keeping the editorial skin out of this area preserves
 * the approved compact banner composition on every menu page. */

body.nuguna-sage-editorial :is(.topic-hub-section-eyebrow, .guide-board__eyebrow, .region-kicker, .region-eyebrow) {
  display: inline-flex;
  width: auto;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--sage-soft);
  color: var(--sage-accent-ink);
  font-weight: 900;
  letter-spacing: .06em;
}

body.nuguna-sage-editorial .topic-hub-facts {
  max-width: 1180px;
  overflow: hidden;
  margin-inline: auto;
  border: 1px solid var(--sage-line);
  border-radius: var(--sage-radius);
  background: var(--sage-paper);
  box-shadow: var(--sage-shadow);
}

body.nuguna-sage-editorial .topic-hub-fact {
  padding: 24px;
  border-color: var(--sage-line);
}

body.nuguna-sage-editorial .topic-hub-body {
  padding-block: 92px;
  background: var(--sage-bg);
}

body.nuguna-sage-editorial .topic-hub-layout {
  display: block;
  max-width: 1040px;
}

body.nuguna-sage-editorial .topic-hub-toc {
  position: static;
  width: 100%;
  margin: 0 0 42px;
  padding: 24px 28px;
  border: 1px solid var(--sage-line);
  border-radius: 22px;
  background: var(--sage-soft);
}

body.nuguna-sage-editorial .topic-hub-toc ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0;
}

body.nuguna-sage-editorial .topic-hub-content {
  max-width: 100%;
}

body.nuguna-sage-editorial :is(
  .topic-hub-answer,
  .topic-hub-section,
  .topic-hub-posts,
  .topic-hub-children,
  .topic-hub-faq,
  .topic-hub-sources
) {
  margin: 0 0 42px;
  padding: 54px 58px;
  border: 1px solid var(--sage-line);
  border-radius: var(--sage-radius);
  background: var(--sage-paper);
  box-shadow: var(--sage-shadow);
}

body.nuguna-sage-editorial :is(.topic-hub-section, .topic-hub-posts, .topic-hub-children, .topic-hub-faq) h2 {
  margin: 10px 0 26px;
  color: var(--sage-ink);
  font-size: clamp(2rem, 4vw, 2.35rem);
  line-height: 1.25;
  letter-spacing: -.04em;
}

body.nuguna-sage-editorial :is(.topic-hub-section, .topic-hub-answer, .topic-hub-child-card) p,
body.nuguna-sage-editorial .topic-hub-section li {
  color: var(--sage-muted);
  font-size: 1rem;
  line-height: 1.9;
}

body.nuguna-sage-editorial :is(.topic-hub-cards, .topic-hub-child-grid, .topic-hub-tool-grid) {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

body.nuguna-sage-editorial :is(.topic-hub-card, .topic-hub-child-card, .topic-hub-tool-link) {
  min-height: auto;
  padding: 27px 30px;
  border: 1px solid var(--sage-line);
  border-radius: 20px;
  background: #f8faF2;
  box-shadow: none;
}

body.nuguna-sage-editorial :is(.topic-hub-card, .topic-hub-child-card) b {
  color: var(--sage-ink);
  font-size: 1.2rem;
}

body.nuguna-sage-editorial .topic-hub-list {
  display: grid;
  gap: 12px;
  padding-left: 0;
  list-style: none;
}

body.nuguna-sage-editorial .topic-hub-list > li {
  padding: 18px 22px;
  border-radius: 18px;
  background: var(--sage-soft);
}

body.nuguna-sage-editorial :is(.topic-hub-post-table, .topic-hub-post-list) {
  overflow: hidden;
  border: 1px solid var(--sage-line);
  border-radius: 20px;
}

body.nuguna-sage-editorial .topic-hub-post-row {
  padding: 18px 22px;
  border-color: var(--sage-line);
}

body.nuguna-sage-editorial .topic-hub-source-note {
  margin-top: 30px;
  padding: 22px 26px;
  border: 0;
  border-radius: 20px;
  background: var(--sage-soft);
}

body.nuguna-sage-editorial .topic-hub-review {
  margin: 0 0 42px;
  padding: 40px 42px;
  border: 1px solid var(--sage-line);
  border-radius: var(--sage-radius);
  background: linear-gradient(145deg, var(--sage-paper), #f8faF2);
  box-shadow: var(--sage-shadow-soft);
}

body.nuguna-sage-editorial .topic-hub-review-head h2 {
  color: var(--sage-ink);
}

body.nuguna-sage-editorial .topic-hub-review-kicker,
body.nuguna-sage-editorial .topic-hub-bottom-kicker {
  color: var(--sage-teal);
}

body.nuguna-sage-editorial .topic-hub-review-item,
body.nuguna-sage-editorial .topic-hub-review-request {
  border-radius: 18px;
}

body.nuguna-sage-editorial .topic-hub-review-item {
  border-color: var(--sage-line);
}

body.nuguna-sage-editorial .topic-hub-review-request {
  background: var(--hub-cta-surface);
  border-color: var(--hub-cta-surface);
}

body.nuguna-sage-editorial .topic-hub-bottom {
  padding-block: 64px;
  border: 0;
  background: var(--sage-soft-2);
}

body.nuguna-sage-editorial .topic-hub-bottom-inner {
  padding: 0;
  border: 1px solid var(--sage-line);
  border-radius: var(--sage-radius);
  background: var(--sage-paper);
  box-shadow: var(--sage-shadow);
  overflow: hidden;
}

body.nuguna-sage-editorial .topic-hub-bottom-copy {
  padding: 46px 48px;
}

body.nuguna-sage-editorial .topic-hub-bottom-action {
  padding: 38px 42px;
  border-color: var(--sage-line);
  background: var(--sage-soft);
}

body.nuguna-sage-editorial .topic-hub-bottom h2,
body.nuguna-sage-editorial .topic-hub-bottom-action > b {
  color: var(--sage-ink);
}

body.nuguna-sage-editorial .topic-region-compact {
  grid-template-columns: 1fr;
  margin-top: 42px;
  padding: 34px 38px;
  border-color: var(--sage-line);
  border-radius: var(--sage-radius);
  background: var(--sage-soft);
  box-shadow: var(--sage-shadow-soft);
}

body.nuguna-sage-editorial .topic-region-compact > a {
  width: max-content;
  border-color: #b8ca93;
  color: var(--sage-accent-ink);
}

/* The eight-step image guide stays a compact process grid; informational
 * cards around it remain one per row. */
body.nuguna-sage-editorial .topic-hub-activation-process {
  border-color: var(--sage-line);
  border-radius: var(--sage-radius);
  background: var(--sage-paper);
  box-shadow: var(--sage-shadow);
}

/* Guide board */
body.nuguna-sage-editorial.nuguna-board-page .nuguna-board-banner {
  padding-block: 60px;
  background: var(--sage-soft);
  color: var(--sage-ink);
}

body.nuguna-sage-editorial .guide-board {
  max-width: 1180px;
  margin-inline: auto;
  padding: 48px 0 90px;
}

body.nuguna-sage-editorial .guide-board__layout {
  gap: 34px;
}

body.nuguna-sage-editorial :is(.guide-board__sidebar, .guide-board__content) {
  overflow: hidden;
  border: 1px solid var(--sage-line);
  border-radius: var(--sage-radius);
  background: var(--sage-paper);
  box-shadow: var(--sage-shadow);
}

body.nuguna-sage-editorial .guide-board__sidebar-head {
  background: var(--sage-soft);
}

body.nuguna-sage-editorial .guide-board__intro {
  padding: 38px 42px;
}

body.nuguna-sage-editorial :is(.guide-board__search, .guide-board__list-options, .guide-board__table, .guide-board__pagination) {
  margin-inline: 42px;
}

body.nuguna-sage-editorial .guide-board__row {
  min-height: 64px;
  border-color: var(--sage-line);
}

body.nuguna-sage-editorial .guide-board__category {
  background: var(--sage-soft);
  color: var(--sage-accent-ink);
}

/* Regional hierarchy: province = large, city/county = middle, town = small. */
body.nuguna-sage-editorial .region-hub {
  --region-green: var(--sage-teal);
  --region-deep: var(--sage-ink);
  --region-lime: var(--sage-accent);
  --region-soft: var(--sage-soft);
  --region-line: var(--sage-line);
  background: var(--sage-bg);
  color: var(--sage-ink);
}

body.nuguna-sage-editorial .region-container {
  width: min(1040px, calc(100% - 40px));
}

body.nuguna-sage-editorial .region-hero {
  padding-block: 86px 82px;
  border: 0;
  background: radial-gradient(circle at 78% 20%, rgba(161, 199, 72, .18), transparent 32%), linear-gradient(180deg, #fff, #f8faef);
}

body.nuguna-sage-editorial .region-hero h1 {
  color: var(--sage-ink);
  font-size: clamp(2.8rem, 6vw, 4.6rem);
}

body.nuguna-sage-editorial .region-hero p {
  color: var(--sage-muted);
}

body.nuguna-sage-editorial .region-content {
  padding-block: 84px 96px;
}

body.nuguna-sage-editorial :is(.region-direct-answer, .region-section, .region-closing) {
  margin: 0 0 42px;
  padding: 46px 50px;
  border: 1px solid var(--sage-line);
  border-radius: var(--sage-radius);
  background: var(--sage-paper);
  box-shadow: var(--sage-shadow);
}

body.nuguna-sage-editorial .region-direct-answer {
  border-left: 5px solid var(--sage-accent);
}

body.nuguna-sage-editorial .region-section {
  margin-top: 0;
}

body.nuguna-sage-editorial .region-section > h2 {
  margin: 12px 0 28px;
  color: var(--sage-ink);
  font-size: clamp(2rem, 4vw, 2.55rem);
}

body.nuguna-sage-editorial .region-link-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body.nuguna-sage-editorial .region-link-grid a,
body.nuguna-sage-editorial .region-fact-grid > div,
body.nuguna-sage-editorial .region-steps li,
body.nuguna-sage-editorial .region-two-column article {
  border-color: var(--sage-line);
  border-radius: 20px;
  background: var(--sage-soft);
  box-shadow: none;
}

body.nuguna-sage-editorial .region-fact-grid,
body.nuguna-sage-editorial .region-steps,
body.nuguna-sage-editorial .region-two-column {
  grid-template-columns: 1fr;
  gap: 16px;
}

body.nuguna-sage-editorial .region-steps li {
  min-height: auto;
  padding: 62px 26px 26px;
}

body.nuguna-sage-editorial .region-facts,
body.nuguna-sage-editorial .region-sources {
  background: var(--sage-paper);
}

body.nuguna-sage-editorial .region-faq details {
  border-color: var(--sage-line);
  border-radius: 22px;
}

body.nuguna-sage-editorial .region-faq details[open] {
  border-color: var(--sage-accent);
  background: #fbfdf5;
}

body.nuguna-sage-editorial .region-bottom-cta {
  background: var(--sage-soft-2);
  color: var(--sage-ink);
}

body.nuguna-sage-editorial .region-bottom-cta p {
  color: var(--sage-muted);
}

/* Existing editorial pages inherit the selected palette without replacing
 * their V3 hero and body images. */
body.nuguna-sage-editorial.nuguna-editorial-page {
  --ed-bg: var(--sage-bg);
  --ed-paper: var(--sage-paper);
  --ed-soft: var(--sage-soft);
  --ed-line: var(--sage-line);
  --ed-ink: var(--sage-ink);
  --ed-muted: var(--sage-muted);
  --ed-accent: var(--sage-teal);
}

body.nuguna-sage-editorial.nuguna-editorial-page main :is(.p2-card, .p2-section, .p2-faq-item) {
  border-color: var(--sage-line);
  border-radius: var(--sage-radius);
  box-shadow: var(--sage-shadow-soft);
}

/* Footer */
body.nuguna-sage-editorial .site-footer {
  border: 0;
  background: var(--sage-ink);
  color: #fff;
}

body.nuguna-sage-editorial .site-footer :is(.footer-title, .footer-info, a, small, p) {
  color: inherit;
}

body.nuguna-sage-editorial .site-footer .relationship {
  background: rgba(255, 255, 255, .93);
  color: #354039;
}

@media (max-width: 1080px) {
  body.nuguna-sage-editorial .region-link-grid {
    grid-template-columns: 1fr;
  }

  body.nuguna-sage-editorial .home-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  body.nuguna-sage-editorial.home .home-page .hero {
    background-image: url('../images/home-layout-reference-mobile.png');
    background-position: center -24.86vw;
    background-size: 100% auto;
  }

  body.nuguna-sage-editorial .home-region-hub,
  body.nuguna-sage-editorial .home-latest-board,
  body.nuguna-sage-editorial .home-information,
  body.nuguna-sage-editorial .home-next-steps,
  body.nuguna-sage-editorial .home-channels,
  body.nuguna-sage-editorial .topic-hub-body {
    padding-block: 58px;
  }

  body.nuguna-sage-editorial :is(.guide-panel, .home-faq-panel),
  body.nuguna-sage-editorial :is(
    .topic-hub-answer,
    .topic-hub-section,
    .topic-hub-posts,
    .topic-hub-children,
    .topic-hub-faq,
    .topic-hub-sources
  ) {
    padding: 34px 24px;
    border-radius: 24px;
  }

  body.nuguna-sage-editorial .topic-hub-review {
    padding: 32px 24px;
    border-radius: 24px;
  }

  body.nuguna-sage-editorial .topic-hub-bottom-copy,
  body.nuguna-sage-editorial .topic-hub-bottom-action {
    padding: 30px 25px;
  }

  body.nuguna-sage-editorial .guide-card,
  body.nuguna-sage-editorial .home-page .guide-card { min-height: 350px; }

  body.nuguna-sage-editorial .guide-card .guide-thumb {
    height: 170px;
    min-height: 170px;
  }

  body.nuguna-sage-editorial .guide-card b {
    padding: 20px 20px 0;
  }

  body.nuguna-sage-editorial .guide-card p {
    padding-inline: 20px;
  }

  body.nuguna-sage-editorial .guide-card time {
    padding: 14px 20px 20px;
  }

  /* The supplied mobile hero artwork already contains its four white feature
   * cards and mint circle. Do not draw a second live card layer over it. */
  body.nuguna-sage-editorial.home .home-page .hero-points {
    opacity: 0 !important;
    pointer-events: none;
  }

  body.nuguna-sage-editorial.home .home-page .hero::after {
    display: none !important;
  }

  body.nuguna-sage-editorial .home-latest-board__grid,
  body.nuguna-sage-editorial .home-channel-grid {
    grid-template-columns: 1fr;
  }

  body.nuguna-sage-editorial .guide-board__layout {
    display: block;
  }

  body.nuguna-sage-editorial .guide-board__sidebar {
    margin-bottom: 24px;
  }

  body.nuguna-sage-editorial :is(.guide-board__search, .guide-board__list-options, .guide-board__table, .guide-board__pagination) {
    margin-inline: 22px;
  }

  body.nuguna-sage-editorial :is(.region-direct-answer, .region-section, .region-closing) {
    padding: 32px 24px;
    border-radius: 24px;
  }
}

@media (max-width: 600px) {
  body.nuguna-sage-editorial .home-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  body.nuguna-sage-editorial .guide-card,
  body.nuguna-sage-editorial .home-page .guide-card {
    min-height: 300px;
    border-radius: 18px;
  }

  body.nuguna-sage-editorial .guide-card .guide-thumb {
    height: 120px;
    min-height: 120px;
  }

  body.nuguna-sage-editorial .guide-card b {
    padding: 15px 14px 0;
    font-size: .9rem;
  }

  body.nuguna-sage-editorial .guide-card p {
    padding-inline: 14px;
    font-size: .76rem;
  }

  body.nuguna-sage-editorial .guide-card time {
    padding: 11px 14px 15px;
    font-size: .7rem;
  }
  body.nuguna-sage-editorial :is(.faq-question, .topic-hub-faq-question) {
    min-height: 72px;
    padding: 20px 50px 20px 62px;
    font-size: .98rem;
  }

  body.nuguna-sage-editorial :is(.faq-question, .topic-hub-faq-question)::before {
    top: 19px;
    left: 18px;
    width: 30px;
    height: 30px;
  }

  body.nuguna-sage-editorial :is(.faq-question, .topic-hub-faq-question)::after {
    top: 20px;
    right: 18px;
  }

  body.nuguna-sage-editorial :is(.faq-answer, .topic-hub-faq-answer) {
    padding: 0 20px 24px 62px;
  }

  body.nuguna-sage-editorial :is(.faq-answer, .topic-hub-faq-answer)::before {
    left: 18px;
    width: 30px;
    height: 30px;
  }

  body.nuguna-sage-editorial .region-container {
    width: min(100% - 28px, 1040px);
  }
}

/* Home rollout QA: one content rail and one vertical rhythm for major blocks. */
body.nuguna-sage-editorial.home .home-page :is(
  .home-region-hub,
  .home-latest-board,
  .home-information,
  .home-next-steps,
  .home-channels
) > .container {
  width: min(1180px, calc(100% - 48px));
  max-width: 1180px;
  margin-inline: auto;
}

body.nuguna-sage-editorial.home .home-page .home-information-grid {
  width: 100%;
  max-width: none;
}

body.nuguna-sage-editorial.home .home-page :is(.guide-panel, .home-faq-panel) {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

body.nuguna-sage-editorial.home .home-page .guide-panel { margin-bottom: 0; }
body.nuguna-sage-editorial.home .home-page .home-faq-panel { margin-top: 32px; margin-bottom: 0; }
body.nuguna-sage-editorial.home .home-page .home-information { padding-block: 64px 18px; }
body.nuguna-sage-editorial.home .home-page .home-next-steps { padding-block: 18px 64px; }
body.nuguna-sage-editorial.home .home-page :is(.home-region-hub, .home-latest-board, .home-channels) { padding-block: 64px; }
body.nuguna-sage-editorial.home .home-page .home-guide-grid { width: 100%; min-width: 0; }
body.nuguna-sage-editorial.home .home-page .home-guide-grid > * { min-width: 0; max-width: 100%; }

/* Full-width, scannable table of contents for every topic hub.  The previous
 * single pale panel looked like body copy and did not reveal page structure. */
body.nuguna-sage-editorial .topic-hub-toc {
  display: block !important;
  width: 100%;
  margin: 0 0 42px;
  padding: 28px;
  border: 1px solid var(--sage-line);
  border-left: 1px solid var(--sage-line);
  border-radius: 24px;
  background: var(--sage-paper);
  box-shadow: var(--sage-shadow-soft);
}

body.nuguna-sage-editorial .topic-hub-toc-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

body.nuguna-sage-editorial .topic-hub-toc-head strong {
  margin: 0;
  color: var(--sage-ink);
  font-size: 1.3rem;
  font-weight: 900;
}

body.nuguna-sage-editorial .topic-hub-toc-head span {
  color: var(--sage-muted);
  font-size: .88rem;
}

body.nuguna-sage-editorial .topic-hub-toc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body.nuguna-sage-editorial .topic-hub-toc-grid > a {
  display: grid;
  min-width: 0;
  min-height: 72px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--sage-line);
  border-radius: 16px;
  background: var(--sage-soft);
  color: var(--sage-ink);
  font-size: .94rem;
  font-weight: 820;
  line-height: 1.4;
  text-decoration: none;
}

body.nuguna-sage-editorial .topic-hub-toc-grid > a:is(:hover, :focus-visible) {
  border-color: var(--sage-accent);
  background: #fbfdf5;
  color: var(--sage-accent-ink);
  text-decoration: none;
}

body.nuguna-sage-editorial .topic-hub-toc-index {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  background: var(--sage-paper);
  color: var(--sage-teal);
  font-size: .78rem;
  font-weight: 950;
}

body.nuguna-sage-editorial .topic-hub-toc-label {
  overflow-wrap: anywhere;
}

body.nuguna-sage-editorial .topic-hub-toc-arrow {
  color: var(--sage-accent);
  font-size: 1.05rem;
  font-weight: 950;
}

@media (max-width: 900px) {
  body.nuguna-sage-editorial .topic-hub-toc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  body.nuguna-sage-editorial.home .home-page :is(
    .home-region-hub,
    .home-latest-board,
    .home-information,
    .home-next-steps,
    .home-channels
  ) > .container { width: min(100% - 28px, 1180px); }
  body.nuguna-sage-editorial.home .home-page .home-information { padding-block: 46px 14px; }
  body.nuguna-sage-editorial.home .home-page .home-next-steps { padding-block: 14px 46px; }
  body.nuguna-sage-editorial.home .home-page :is(.home-region-hub, .home-latest-board, .home-channels) { padding-block: 46px; }
  body.nuguna-sage-editorial.home .home-page .home-faq-panel { margin-top: 22px; }
  body.nuguna-sage-editorial .topic-hub-toc { padding: 20px 16px; }
  body.nuguna-sage-editorial .topic-hub-toc-head { display: block; }
  body.nuguna-sage-editorial .topic-hub-toc-head span { display: block; margin-top: 5px; }
  body.nuguna-sage-editorial .topic-hub-toc-grid { grid-template-columns: 1fr; }
  body.nuguna-sage-editorial .topic-hub-toc-grid > a { min-height: 62px; }
}

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

/* Mobile guide-board repair: category tabs must keep their natural width and
 * the compact board masthead should lead directly into the breadcrumb. */
@media (max-width: 700px) {
  body.nuguna-sage-editorial.nuguna-board-page .nuguna-board-banner {
    box-sizing: border-box;
    min-height: 190px;
    padding-block: 24px;
  }

  body.nuguna-sage-editorial.nuguna-board-page .nuguna-board-banner > .container {
    padding-block: 20px;
  }

  body.nuguna-sage-editorial .guide-board {
    padding-top: 0;
  }

  body.nuguna-sage-editorial .guide-board__breadcrumb {
    margin-bottom: 20px;
  }

  body.nuguna-sage-editorial .guide-board__sidebar {
    border-radius: 18px;
  }

  body.nuguna-sage-editorial .guide-board__category-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    overflow-x: visible;
    padding: 12px 14px 14px;
  }

  body.nuguna-sage-editorial .guide-board__category-group,
  body.nuguna-sage-editorial .guide-board__category-row {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    min-width: max-content;
  }

  body.nuguna-sage-editorial .guide-board__category-row {
    gap: 5px;
  }

  body.nuguna-sage-editorial .guide-board__category-nav a {
    min-width: max-content;
    max-width: none;
    padding: 11px 15px;
    line-height: 1.35;
    word-break: keep-all;
    white-space: nowrap;
  }

  body.nuguna-sage-editorial .guide-board__submenu-toggle {
    flex: 0 0 38px;
  }

  body.nuguna-sage-editorial .guide-board__category-subnav:not([hidden]) {
    display: flex;
    flex: 0 0 auto;
    gap: 6px;
    min-width: max-content;
    padding: 0;
  }
}
