/* Guides (/docs/), Changelog (/changelog/) and Policies (/policies/). Every class is prefixed ref-. Tokens come from styles.css. */

/* Shared: hero */
.ref-hero{padding-bottom:48px}
.ref-hero .kicker{margin-bottom:18px}
.ref-hero h1{font-size:68px;letter-spacing:-.03em;line-height:1.04;margin:0 0 22px;text-wrap:balance}
.ref-hero .lead{color:var(--ink);max-width:56ch;margin:0;text-wrap:pretty}
.ref-section{padding-bottom:96px}

/* Guides: hero split with the ink "Start with setup" card */
.ref-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px 64px;align-items:end}
.ref-start{display:flex;justify-content:space-between;align-items:center;gap:16px;background:var(--ink);color:var(--paper);border:1px solid var(--ink);border-radius:6px;padding:24px;min-height:44px}
.ref-start:hover{color:var(--paper);background:color-mix(in oklab,var(--ink) 86%,var(--paper))}
.ref-start-text{display:flex;flex-direction:column;gap:4px}
.ref-start-kicker{font-family:var(--mono);font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--slate2)}
.ref-start-title{font-size:20px;font-weight:600}
.ref-start-what{font-size:15px;color:var(--slate2)}
.ref-start-arrow{font-size:22px}

/* Guides: grouped lists, built on .docrow */
.ref-groups{display:flex;flex-direction:column;gap:48px}
.ref-ghead{display:flex;justify-content:space-between;align-items:baseline;gap:16px;flex-wrap:wrap;padding-bottom:14px;border-bottom:1px solid var(--ink)}
.ref-ghead h2{font-size:20px;letter-spacing:-.01em;line-height:1.3;margin:0}
.ref-gmeta{font-family:var(--mono);font-size:12px;color:var(--muted)}
.ref-row{color:var(--ink);align-items:baseline;min-height:44px}
a.ref-row:hover{color:var(--ink)}
.ref-row--static:hover{background:transparent}
.ref-rtext{display:flex;flex-direction:column;gap:2px;min-width:0}
.ref-rtitle{font-size:16px;font-weight:500}
.ref-rwhat{font-size:14px;color:var(--muted)}
.ref-row .docdate{color:var(--muted)}

/* Guides: the session handoff example, a row that opens */
.ref-fixture{border-bottom:1px solid var(--hairline)}
.ref-fixture>summary{list-style:none;cursor:pointer;display:grid;grid-template-columns:1fr 240px;gap:32px;align-items:baseline;padding:16px 8px;margin:0 -8px;border-radius:3px;min-height:44px;transition:background .12s linear}
.ref-fixture>summary::-webkit-details-marker{display:none}
.ref-fixture>summary:hover{background:var(--ice)}
.ref-fixture .docdate{font-family:var(--mono);font-size:12px;color:var(--muted);text-align:right}
.ref-fixture .docdate::after{content:" +"}
.ref-fixture[open] .docdate::after{content:" −"}
.ref-fixture pre{font-family:var(--mono);font-size:13px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0 24px;padding:24px;border:1px solid var(--hairline);border-radius:6px;background:var(--paper);max-width:88ch}
.ref-fixnote{font-size:14px;color:var(--muted);margin:16px 0 0;max-width:72ch}

/* Changelog: hero row with the RSS link */
.ref-hrow{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:24px}
.ref-rss{font-family:var(--mono);font-size:12px;border:1px solid var(--hairline);border-radius:3px;padding:0 14px;min-height:44px;display:inline-flex;align-items:center;color:var(--muted)}
.ref-rss:hover{color:var(--ink);border-color:var(--ink)}

/* Changelog: filter buttons (shown only when changelog.js runs) */
.ref-filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:24px}
.ref-filters[hidden]{display:none}
.ref-filter{font-family:var(--sans);font-size:14px;font-weight:500;min-height:44px;padding:0 16px;border-radius:3px;border:1px solid var(--ink);background:transparent;color:var(--ink);cursor:pointer;transition:background .12s linear,color .12s linear}
.ref-filter:hover{background:var(--ice)}
.ref-filter[aria-pressed="true"]{background:var(--ink);color:var(--paper)}
.ref-count{font-family:var(--mono);font-size:12px;color:var(--muted);margin:0 0 12px}
.ref-count:empty{display:none}

/* Changelog: entries */
.ref-entries{border-top:1px solid var(--ink)}
.ref-entry{display:grid;grid-template-columns:240px minmax(0,1fr);gap:12px 40px;padding:24px 0;border-bottom:1px solid var(--hairline)}
.ref-entry[hidden]{display:none}
.ref-ehead{display:flex;flex-direction:column;gap:4px}
.ref-product{font-size:17px;font-weight:600;line-height:1.3;margin:0}
.ref-ver{font-family:var(--mono);font-size:13px;color:var(--slate)}
.ref-changes{display:flex;flex-direction:column;gap:8px;min-width:0}
.ref-changes .chg{grid-template-columns:72px minmax(0,1fr);gap:12px;font-size:15px;line-height:1.5}
.ref-type{font-family:var(--mono);font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--slate);padding-top:3px}
.ref-foot{font-family:var(--mono);font-size:12px;color:var(--muted);margin:20px 0 0;max-width:80ch}

/* Policies: the short version */
.ref-short{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:var(--hairline);border:1px solid var(--hairline);border-radius:6px;overflow:hidden}
.ref-cell{background:var(--paper);padding:22px;display:flex;flex-direction:column;gap:8px;color:var(--ink);min-height:44px}
.ref-cell:hover{color:var(--ink);background:var(--ice)}
.ref-cell-label{font-family:var(--mono);font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--slate)}
.ref-cell-text{font-size:16px;line-height:1.5}

/* Policies: full sections */
.ref-policy{max-width:72ch;display:flex;flex-direction:column;gap:56px;font-size:16px;line-height:1.6}
.ref-policy section{border-top:1px solid var(--hairline);padding-top:24px}
.ref-policy section:first-child{border-top-color:var(--ink)}
.ref-policy h2{font-size:30px;margin:0 0 14px}
.ref-policy p{margin:0 0 14px}
.ref-policy p:last-child{margin-bottom:0}
.ref-policy code{font-family:var(--mono);font-size:14px}
.ref-aside{color:var(--muted)}
.ref-tech{font-family:var(--mono);font-size:13px;line-height:1.6;color:var(--muted)}
.ref-tech code{font-size:13px}

@media (max-width:1024px){
.ref-short{grid-template-columns:repeat(2,minmax(0,1fr))}
.ref-fixture>summary{grid-template-columns:1fr;gap:4px}
.ref-fixture .docdate{text-align:left}
}
@media (max-width:720px){
.ref-hero{padding-top:56px;padding-bottom:32px}
.ref-hero h1{font-size:40px}
.ref-hero .lead{font-size:17px}
.ref-section{padding-bottom:56px}
.ref-split,.ref-entry,.ref-short{grid-template-columns:1fr}
.ref-split{gap:32px}
.ref-groups{gap:40px}
.ref-entry{gap:12px}
.ref-policy{gap:40px}
.ref-policy h2{font-size:24px}
.ref-fixture pre{padding:16px}
}
