/* Shared styles for Voice guide pages. Same tokens as /voice/index.html. */
:root {
  --desk: #edf1f3;
  --paper: #ffffff;
  --ink: #12283b;
  --body: #47596a;
  --pencil: #2a6fbf;
  --pencil-ink: #4d6f97;
  --pencil-wash: #dbe9f8;
  --rule: #12283b1f;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Schibsted Grotesk", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--desk); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--pencil); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--pencil); outline-offset: 4px; border-radius: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.02em; font-variation-settings: "opsz" 60; text-wrap: balance; }
p, li { text-wrap: pretty; }
.wrap { width: min(1240px, calc(100% - 64px)); margin-inline: auto; }

.nav { display: flex; align-items: center; justify-content: space-between; padding-block: 24px; }
.brand { display: flex; align-items: baseline; gap: 8px; font-weight: 600; font-size: 1.05rem; text-decoration: none; color: var(--ink); letter-spacing: -.01em; }
.brand span { font-weight: 400; color: var(--body); }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: .95rem; }
.nav-links a { text-decoration: none; color: var(--body); }
.nav-links a:hover { color: var(--ink); }
.nav-links .signin { color: var(--ink); border: 1px solid var(--rule); padding: 7px 16px; border-radius: 999px; background: var(--paper); }

.article { width: min(46rem, calc(100% - 64px)); margin: 48px auto 112px; }
.crumbs { font-size: .9rem; color: var(--body); margin-bottom: 20px; }
.crumbs a { color: var(--body); }
.article h1 { font-size: clamp(2.3rem, 4.4vw, 3.4rem); line-height: 1.08; margin-bottom: 18px; }
.updated { font-size: .9rem; color: var(--body); margin-bottom: 36px; }
.answer { background: var(--paper); border-left: 3px solid var(--pencil); padding: 24px 28px; font-size: 1.08rem; line-height: 1.65; box-shadow: 0 1px 0 #12283b14; }
.answer p + p { margin-top: 12px; }
.article h2 { font-size: clamp(1.6rem, 2.6vw, 2.05rem); line-height: 1.15; margin: 64px 0 16px; }
.article h3 { font-size: 1.05rem; font-weight: 600; margin: 28px 0 6px; }
.article > p, .article section > p { color: var(--body); margin-top: 14px; }
.article ul, .article ol { color: var(--body); padding-left: 1.3rem; margin: 14px 0 0; display: grid; gap: 8px; }
.article li b, .article p b { color: var(--ink); font-weight: 600; }

.table-scroll { overflow-x: auto; background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; margin-top: 20px; }
.article .table-scroll { width: min(68rem, calc(100vw - 64px)); position: relative; left: 50%; transform: translateX(-50%); }
table { border-collapse: collapse; width: 100%; font-size: .93rem; line-height: 1.45; }
caption { text-align: left; padding: 16px 18px 4px; font-weight: 600; color: var(--ink); }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th { font-weight: 500; color: var(--body); font-size: .84rem; }
tbody th { font-weight: 600; }
tbody th small { display: block; font-weight: 400; color: var(--body); font-size: .82rem; margin-top: 2px; }
td { color: var(--body); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.voice-row { background: #f5f9fd; }
.voice-row th, .voice-row td { color: var(--ink); }
.table-note { font-size: .86rem; color: var(--body); margin-top: 10px; }

.template { background: var(--paper); box-shadow: 0 1px 0 #12283b14, 0 20px 40px -30px #12283b55; padding: 28px 32px; margin-top: 20px; font-family: var(--serif); font-variation-settings: "opsz" 12; font-size: 1rem; line-height: 1.6; color: #1f2a33; }
.template dt { font-weight: 700; letter-spacing: .02em; margin-top: 16px; }
.template dt:first-child { margin-top: 0; }
.template dd { margin: 2px 0 0; color: #3b4a56; }
.template .field { color: var(--pencil); }

.sample { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 15rem); gap: 32px; align-items: start; margin-top: 20px; }
.sample img { background: var(--paper); box-shadow: 0 1px 0 #12283b14, 0 24px 48px -28px #12283b55; }
.sample-side { display: grid; gap: 14px; font-size: .95rem; color: var(--body); }
.pnote { font-size: 14px; line-height: 1.4; color: var(--pencil); font-weight: 500; padding-left: 14px; border-left: 2px solid var(--pencil); }
.pnote small { display: block; font-size: 13px; font-weight: 400; color: var(--pencil-ink); margin-top: 2px; }

.button { display: inline-flex; align-items: center; min-height: 50px; padding: 0 24px; border-radius: 10px; background: var(--ink); color: var(--paper); font-weight: 500; text-decoration: none; }
.button:hover { background: #1d3b55; }
.button.secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px #12283b40; }
.cta { margin-top: 64px; padding: 32px; background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; }
.cta h2 { margin: 0 0 10px; }
.cta p { color: var(--body); margin-bottom: 22px; }
.cta .actions { display: flex; flex-wrap: wrap; gap: 12px 16px; }

details { border-bottom: 1px solid var(--rule); }
details:first-of-type { border-top: 1px solid var(--rule); margin-top: 16px; }
summary { cursor: pointer; padding-block: 18px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 24px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--pencil); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { padding-bottom: 20px; color: var(--body); }

.sources { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--rule); font-size: .88rem; color: var(--body); }
.sources h2 { font-family: var(--sans); font-size: .95rem; font-weight: 600; letter-spacing: 0; margin: 0 0 8px; }
.sources ol { font-size: .88rem; }

footer { border-top: 1px solid var(--rule); padding-block: 28px 40px; font-size: .9rem; color: var(--body); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-inner a { text-decoration: none; color: var(--body); }
.footer-inner a:hover { color: var(--ink); }

@media (max-width: 640px) {
  .wrap, .article { width: calc(100% - 32px); }
  body { font-size: 16px; }
  .nav-links a:not(.signin) { display: none; }
  .answer { padding: 20px; }
  .template { padding: 22px 20px; }
  .sample { grid-template-columns: 1fr; }
  table { min-width: 640px; }
  .article .table-scroll { width: 100%; left: 0; transform: none; }
}
