/* Document pages: wayfinding and touch targets (web/ext, WORLD-FIRST §42 B).
   Loaded after styles.css (and night.css) by the home, the document pages and /qr/after/. The printed card
   (/card/insurance/) shares styles.css but not this file, so nothing here changes it. */

/* skip link: off screen until focused */
.skip-link { position: absolute; left: var(--gutter); top: 8px; z-index: 50; display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 13px;
  transform: translateY(-160%); transition: transform 160ms ease; }
.skip-link:focus, .skip-link:focus-visible { transform: none; outline-offset: 2px; }
main:focus { outline: none; }

/* header: 44 px targets without making the bar taller (the negative margins give the extra height back) */
.brand { min-height: 44px; margin: -13px 0; }
.topnav { gap: 0; margin-right: -8px; }
.topnav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px;
  padding: 0 8px; margin: -13px 0; }
.topnav a:focus-visible, .brand:focus-visible { outline-offset: -2px; }
.topnav a[aria-current] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }

/* footer links */
.site-footer nav { gap: 0; flex-wrap: wrap; margin: 0 -10px; }
.site-footer nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 10px; }
.site-footer > span { display: inline-flex; align-items: center; min-height: 44px; }

/* small text links */
.back, .text-link { min-height: 44px; display: inline-flex; align-items: center; }
.back { min-width: 44px; }
.world-return { display: flex; align-items: center; width: max-content; min-height: 44px; margin: -8px 0 20px;
  color: var(--warm); font-size: 13px; letter-spacing: 0.02em; text-decoration: none; }
.world-return[hidden] { display: none; }
.world-return:hover { text-decoration: underline; text-underline-offset: 5px; }
.world-return:focus-visible { outline-offset: 4px; }
.cta-row.quiet { gap: 0 28px; }

/* sibling pages inside a section (insurance: 설계 기준 / 사례 / 상담) */
.section-nav { margin-top: 64px; }
.section-nav > .eyebrow { display: block; margin-bottom: 14px; }
.section-nav .index-row { padding: 18px 0; align-items: center; }
.section-nav .index-row .principle-no { padding-top: 0; }
.section-nav .index-row .arrow { margin-top: 0; }
.section-nav .row-title { font-size: clamp(20px, 2vw, 26px); letter-spacing: -.03em; line-height: 1.2; transition: color 250ms ease; }
.section-nav a.index-row:hover .row-title { color: var(--accent); }
.section-nav a.index-row[aria-current] .row-title, .section-nav a.index-row[aria-current] .principle-no { color: var(--muted); }
.section-nav a.index-row[aria-current] .arrow { visibility: hidden; }
.section-nav + .back { margin-top: 24px; }

@media (max-width: 820px) {
  .topnav { gap: 0; }
  .section-nav { margin-top: 48px; }
  .section-nav .index-row { grid-template-columns: 42px 1fr 20px; gap: 10px; padding: 16px 0; }
}
