/* SEO landings and guides: a short dark header with the live garland, then a readable article on ivory. */
.page-hero { padding: clamp(36px, 5vw, 64px) 0 clamp(40px, 5vw, 72px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; padding: 0; list-style: none; font-size: .8rem; color: var(--cream-dim); }
.crumbs li + li::before { content: '/'; margin-right: 6px; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--cream); }
.page-hero h1 { max-width: 14em; font-size: clamp(2.3rem, 4.8vw, 4.2rem); }
.page-hero .lead { margin-top: 18px; max-width: 40em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-note { margin-top: 14px; font-size: .82rem; color: var(--cream-dim); }

.article { padding: clamp(40px, 5vw, 72px) 0 var(--section); }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: clamp(28px, 5vw, 72px); align-items: start; }
.prose { max-width: 720px; font-size: 1.04rem; line-height: 1.7; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { margin-top: 2.1em; font-size: clamp(1.6rem, 2.6vw, 2.2rem); scroll-margin-top: 20px; }
.prose h3 { margin-top: 1.6em; font-size: 1.15rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose a:not(.btn) { color: var(--ruby); }
.prose strong { font-weight: 650; }
.prose table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line-light); text-align: left; vertical-align: top; }
.prose th { font-weight: 650; background: var(--ivory-2); }
.table-scroll { overflow-x: auto; }
.prose figure { margin-inline: 0; }
.prose figure img { width: 100%; height: auto; border-radius: var(--r); border: 1px solid var(--line-light); }
.prose figcaption { margin-top: 8px; font-size: .84rem; color: var(--ink-mute); }

pre[data-copy] { position: relative; margin: 1.1em 0 0; padding: 18px 18px 18px; overflow-x: auto; border-radius: var(--r); background: var(--pine-950); color: #E8E0CC; font-size: .84rem; line-height: 1.55; }
pre[data-copy] code { background: none; padding: 0; font-size: inherit; color: inherit; white-space: pre; }
.copy-btn { position: absolute; top: 8px; right: 8px; min-height: 36px; padding: 6px 12px; border: 1px solid var(--line-dark); border-radius: var(--r-sm); background: var(--pine-800); color: var(--cream); font-size: .8rem; }
.copy-btn:hover { border-color: var(--gold); }

.callout { padding: 18px 20px; border-left: 3px solid var(--gold); border-radius: 0 var(--r) var(--r) 0; background: var(--paper); }
.callout b { display: block; margin-bottom: 4px; }

.cta-card { margin-top: 2.2em; padding: clamp(22px, 3vw, 32px); border-radius: var(--r-lg); background: var(--pine-900); color: var(--cream); }
.cta-card h2, .cta-card h3 { margin: 0 0 8px; color: var(--cream); }
.cta-card p { color: var(--cream-dim); }
.cta-card .hero-actions { margin-top: 18px; }

.toc { position: sticky; top: 20px; padding: 18px 20px; border: 1px solid var(--line-light); border-radius: var(--r-lg); background: var(--paper); font-size: .9rem; }
.toc b { display: block; margin-bottom: 10px; font: 600 .78rem/1 var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-lo); }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li + li { margin-top: 7px; }
.toc a:not(.btn) { text-decoration: none; color: var(--ink); }
.toc a:not(.btn):hover { color: var(--ruby); }
.toc .btn { width: 100%; margin-top: 16px; }

.related { padding: 0 0 var(--section); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.related a { display: block; padding: 18px 20px; border: 1px solid var(--line-light); border-radius: var(--r-lg); background: var(--paper); text-decoration: none; }
.related a:hover { border-color: var(--gold-lo); }
.related a b { display: block; margin-bottom: 4px; }
.related a span { font-size: .88rem; color: var(--ink-mute); }

@media (max-width: 900px) {
  .article-grid { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; order: -1; }
  .related-grid { grid-template-columns: 1fr; }
}

/* Pine panels inside the light article keep the gold ring. */
pre :focus-visible, .copy-btn:focus-visible, .cta-card :focus-visible { outline-color: var(--gold); }

/* Live demos of the free snippets (timer, salute) above their copy boxes. */
.demo-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; padding: 30px 18px 24px; border: 1px solid var(--line-light); border-radius: var(--r-lg); background: var(--paper); color: var(--ink); }
.demo-box .btn-line { color: var(--ink); border-color: var(--line-light); }
.demo-lights { position: relative; min-height: 110px; padding-top: 44px; overflow: hidden; }
.demo-lights .ny-lights { position: absolute; z-index: 1; }
.demo-box > p { margin: 0; color: var(--ink-mute); font-size: .92rem; text-align: center; }
.demo-line .ny-countdown { font: 700 1.15rem/1.3 var(--display); color: var(--ink); }
.demo-tab { flex-direction: column; }
.tab-mock { display: flex; gap: 2px; width: min(100%, 420px); padding: 6px 6px 0; border-radius: 10px 10px 0 0; background: #dfe3e8; }
.tab-mock-tab { position: relative; display: flex; align-items: center; gap: 7px; flex: 1 1 0; min-width: 0; height: 32px; padding: 0 12px; border-radius: 8px 8px 0 0; background: #fff; font-size: .8rem; color: #2a2f35; white-space: nowrap; }
.tab-mock-tab.is-other { flex: 0 0 auto; background: transparent; color: #5b6168; }
.tab-mock-a, .tab-mock-b { overflow: hidden; text-overflow: ellipsis; animation: tab-swap 5s steps(1) infinite; }
.tab-mock-b { position: absolute; left: 35px; right: 12px; animation-delay: -2.5s; }
@keyframes tab-swap { 0% { opacity: 1; } 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tab-mock-a, .tab-mock-b { animation: none; } .tab-mock-b { opacity: 0; } }
