/* SITE-V2: shared dark components for every public page (src/site). Loaded after site.css on every page.
 * Colours come only from tokens.css through the short names site.css maps on body.site. No external
 * resources, no inline styles. Motion is limited to hover transitions, and stops under reduced motion. */

/* ------------------------------------------------------------ footer (audit 18) */
/* Long policy names wrap inside their own tap target with a gap, instead of running into the next link. */
.footer-group li + li { margin-top: .15rem; }
.footer-group a { display: flex; min-height: 44px; padding: .45rem 0; line-height: 1.3; }
.footer-contact { line-height: 1.7; overflow-wrap: anywhere; }
.trust-bar li { max-width: 100%; }

/* ------------------------------------------------------------ family cards */
.family-grid { display: grid; gap: 1.75rem; max-width: 980px; margin: 0 auto; }
@media (min-width: 760px) { .family-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.family-grid-one { max-width: 480px; grid-template-columns: minmax(0, 1fr); }
.family-card .card-cpu { border-bottom: 0; padding-bottom: .4rem; }
.card-pitch { margin: 0; padding: 0 1.5rem 1.2rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.card-setup { margin: -.6rem 0 1rem; color: var(--muted); font-size: .9rem; font-weight: 600; }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.card-actions .btn { flex: 1 1 100%; }
.card-actions .contact-sales { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; }
.card-more { gap: .35rem; }
.card-more .icon { width: 1em; height: 1em; }
.power-card .button-soldout { cursor: not-allowed; }

/* ------------------------------------------------------------ feature tiles */
.tile-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
@media (min-width: 620px) { .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .tile-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .tile-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile { padding: 1.4rem 1.4rem 1.5rem; border-radius: var(--r); border: 1px solid var(--line); background-color: var(--surface); background-image: linear-gradient(180deg, var(--surface-2), var(--bg-2)); transition: border-color .25s, transform .25s var(--ease); }
.tile:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.tile-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 1rem; border-radius: 12px; background-color: var(--surface-3); background-image: linear-gradient(135deg, var(--site-ember-soft), var(--site-cyan-soft)); color: var(--site-ember-pale); box-shadow: inset 0 0 0 1px var(--site-ember-soft); }
.tile-icon .icon { width: 24px; height: 24px; }
.tile h3 { margin: 0 0 .45rem; font-size: 1.1rem; line-height: 1.25; }
.tile h2 { margin: 0 0 .45rem; font-size: 1.2rem; }
.tile p { margin: 0; color: var(--muted); font-size: .95rem; }
.tile p + p { margin-top: .6rem; }
.tile a { font-weight: 650; }
.tile ul, .tile ol { margin: .6rem 0 0; padding-left: 1.2rem; color: var(--muted); font-size: .95rem; }
.tile li + li { margin-top: .35rem; }

/* ------------------------------------------------------------ console screenshots */
.shot { margin: 0; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg-2); overflow: hidden; box-shadow: 0 30px 70px var(--site-shade), 0 0 60px var(--site-ember-soft); }
.shot-bar { display: flex; align-items: center; gap: .9rem; padding: .5rem .9rem; border-bottom: 1px solid var(--line); background: var(--surface); }
.shot-dots { display: inline-flex; gap: 6px; }
.shot-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.shot-title { color: var(--muted); font-size: .8rem; font-weight: 600; }
.shot img { display: block; width: 100%; height: auto; }
.shot-caption { padding: .5rem .9rem; border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: .85rem; }

/* ------------------------------------------------------------ page heroes (inner pages) */
.page-hero-v2 { position: relative; overflow: hidden; }
.page-hero-v2 h1 { max-width: 24ch; }
.page-hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .page-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3.5rem; } }
.page-hero-v2 .hero-actions { margin-top: .5rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 1.5rem 0 0; padding: 0; }
.hero-facts li { padding: .3rem .8rem; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--site-glass); color: var(--text); font-size: .88rem; font-weight: 600; }

/* ------------------------------------------------------------ content blocks */
.content-section { padding: clamp(2.75rem, 2rem + 3vw, 5rem) 0; }
.content-section + .content-section { border-top: 1px solid var(--line); }
.content-section .section-head { margin-bottom: 2.25rem; }
.content-section h2 { margin-top: 0; }
.content-narrow { max-width: 50rem; }
.site-wrap.content-narrow { max-width: var(--wrap); }
.site-wrap.content-narrow > * { max-width: 50rem; }
.mini-faq .site-wrap > * { margin-left: auto; margin-right: auto; }
.mini-faq h2 { text-align: center; }
.mini-faq .acc { max-width: 50rem; }
.content-narrow > p, .content-narrow li { color: var(--muted); }
.content-narrow strong { color: var(--text); }
.stat-row { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
@media (min-width: 900px) { .stat-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat-row li { padding: 1rem 1.1rem; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); }
.stat-row strong { display: block; color: var(--text); font-size: 1.25rem; font-weight: 800; overflow-wrap: anywhere; }
.stat-row span { color: var(--muted); font-size: .9rem; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.check-list li { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); gap: .7rem; color: var(--muted); }
.check-list .icon { width: 1.25rem; height: 1.25rem; margin-top: .15rem; color: var(--site-led-green); }
.check-list strong { color: var(--text); }
.numbered { list-style: none; counter-reset: num; margin: 0; padding: 0; display: grid; gap: 1rem; }
.numbered > li { counter-increment: num; position: relative; padding: 1.1rem 1.2rem 1.1rem 3.6rem; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); color: var(--muted); }
.numbered > li::before { content: counter(num); position: absolute; left: 1.1rem; top: 1rem; display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--line-strong); color: var(--site-cyan); font-weight: 800; font-size: .9rem; }
.numbered strong { color: var(--text); }
.callout { padding: 1.1rem 1.25rem; border-radius: var(--r-sm); border: 1px solid var(--line-strong); border-left: 4px solid var(--accent); background: var(--surface); color: var(--muted); }
.callout p { margin: 0; }
.callout p + p { margin-top: .5rem; }
.callout strong { color: var(--text); }
.split-2 { display: grid; gap: 2rem; align-items: start; }
.stat-row + .split-2 { margin-top: 2.75rem; }
@media (min-width: 960px) { .split-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; } }
.mail-list { display: grid; gap: .75rem; margin: 0; }
.mail-list div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; padding: .8rem 1rem; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); }
.mail-list dt { color: var(--muted); font-weight: 600; }
.mail-list dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.address-card { padding: 1rem 1.2rem; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); color: var(--text); }

/* Pricing: the worked example and the price list on the dark surface. */
.site-main .example { background: var(--surface); border-color: var(--line-strong); color: var(--muted); max-width: 54rem; padding: 1.25rem 1.4rem; }
.site-main .example strong { color: var(--text); }
.site-main .example h3 { color: var(--text); }
.site-main .math { color: var(--text); }
.acc { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.acc + .acc { margin-top: .75rem; }
.acc > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 52px; padding: .7rem 1.1rem; cursor: pointer; list-style: none; }
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary h3 { margin: 0; font-size: 1.05rem; }
.acc > summary::after { content: "+"; color: var(--site-cyan); font-size: 1.4rem; font-weight: 700; line-height: 1; }
.acc[open] > summary::after { content: "–"; }
.acc-body { padding: 0 1.1rem 1.1rem; color: var(--muted); }
.acc-body p { max-width: 68ch; }
.acc-body p:last-child { margin-bottom: 0; }

.tile-pair { display: grid; gap: 1.25rem; }
@media (min-width: 560px) { .tile-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile-pair.extras { margin-top: 1.5rem; }
.section-alt.content-section { border-top: 0; }
.callout + .callout, .numbered + .callout { margin-top: 1rem; }
.sale-callout { max-width: 980px; margin: 1.5rem auto 0; }
/* /servers#fam-<slug> (the homelab "See Xeon servers" button): the family's group row stands out. */
.config-group:target .config-group-head th { box-shadow: inset 4px 0 0 var(--accent); }

/* Game and homelab: what you can run. */
.chip-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.chip-list li { padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text); font-weight: 600; font-size: .92rem; }

@media (prefers-reduced-motion: reduce) {
  .tile, .tile:hover { transition: none; transform: none; animation: none !important; }
}

/* Balanced headings: no single orphan word on a line ("…not bolted / on"). */
.section-head h2, .page-hero h1, .cta-band h2 { text-wrap: balance; }
/* /network with only the public routing card: centre it instead of leaving a lone card on the left. */
.test-grid.test-grid-one { grid-template-columns: minmax(0, 1fr); max-width: 30rem; margin: 0 auto; }
