/* Index pages: the Field guides index (/guides/) and the Field notes index (/field-notes/). Loads
   after styles.css (body class inner-page page-library). Source: claude/indexes-privacy-handoff.md,
   claude/guides-index-reference.dc.html, claude/notes-index-reference.dc.html and their phone
   canvases. The notes list, the topic pills and both pages' counts are generated from the notes by
   scripts/build-indexes.mjs; the filter itself lives in script.js. No inline styles: the CSP forbids them. */

/* Hero */
.ix-hero{padding-top:48px}
.ix-crumbs{margin-bottom:24px;font-size:15px;color:var(--slate)}
.ix-crumbs a{color:var(--slate)}
.ix-crumbs [aria-current]{color:var(--granite)}
.ix-hero h1{max-width:20ch;font-size:52px;font-weight:800;line-height:1.06;letter-spacing:-.025em;text-wrap:balance}
.ix-intro{max-width:36em;margin-top:20px;font-size:22px;line-height:1.5;color:var(--ink-muted)}

/* Guide cards: question, description, count and button on the left; the guide's notes on the right. */
.ix-guides{display:flex;flex-direction:column;gap:24px;margin-top:48px;padding:0;list-style:none}
.ix-guide{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:56px;align-items:start;padding:40px;border:1px solid var(--scree);border-radius:8px;background:var(--white)}
.ix-guide-main{display:flex;flex-direction:column;gap:14px}
.ix-guide-main svg{width:48px;height:48px}
.page-library .ix-guide h2{font-size:32px;font-weight:800;line-height:1.15;letter-spacing:-.015em}
.ix-guide-desc{font-size:18px;color:var(--ink-muted)}
.ix-guide-count{font-size:15px;color:var(--slate)}
.ix-guide-main .button{align-self:flex-start;min-height:48px;padding:0 20px;font-size:16px}
.ix-guide-notes{margin:0;padding:0;border-bottom:1px solid var(--scree);list-style:none}
.ix-guide-notes a{display:block;padding:14px 0;border-top:1px solid var(--scree);color:var(--granite);font-size:17px;font-weight:600;line-height:1.4;text-decoration:none}
.ix-guide-notes a:hover{color:var(--blue)}

/* Under the guide cards: the measurement plan landing page, opened by a 2px Granite rule. */
.ix-template-inner{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:20px 56px;margin-top:56px;padding-top:32px;border-top:2px solid var(--granite)}
.ix-template-inner>div{display:flex;flex-direction:column;gap:10px;max-width:40em}
.page-library .ix-template h2{font-size:32px;font-weight:800;line-height:1.15;letter-spacing:-.015em}
.ix-template p{font-size:18px;color:var(--ink-muted)}

/* Topic filter: pills hidden without JavaScript, so every note shows. */
.ix-notes{margin-top:48px}
.ix-toolbar{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px 24px}
.ix-filter{display:none;flex-wrap:wrap;gap:8px}
.js .ix-filter{display:flex}
.ix-filter button{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;border:2px solid var(--scree);border-radius:999px;background:var(--white);color:var(--granite);font:inherit;font-size:15px;font-weight:700;line-height:1.2;cursor:pointer}
.ix-filter button:hover{border-color:var(--blue)}
.ix-filter button[aria-pressed="true"]{border-color:var(--blue);background:var(--blue);color:var(--white)}
.ix-filter button[aria-pressed="true"]:hover{border-color:var(--blue-hover);background:var(--blue-hover)}
.ix-count{font-weight:600;opacity:.75}
.ix-order{margin-left:auto;font-size:15px;color:var(--slate)}

/* Notes list: rules between rows, the whole row one link, date and topic in a 220px column. */
.ix-list{margin:24px 0 0;padding:0;border-bottom:1px solid var(--scree);list-style:none}
.ix-list a{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:40px;padding:24px 0;border-top:1px solid var(--scree);color:var(--granite);text-decoration:none}
.ix-list a:hover{color:var(--granite)}
.ix-list a:hover .ix-title{color:var(--blue)}
.ix-text{display:flex;flex-direction:column;gap:6px}
.ix-title{font-size:22px;font-weight:800;line-height:1.3}
.ix-summary{max-width:44em;font-size:17px;color:var(--ink-muted)}
.ix-meta{display:flex;flex-direction:column;gap:4px;font-size:15px;color:var(--slate);text-align:right}
.ix-topic{font-weight:600;color:var(--blue)}

@media (max-width:900px){
 .ix-hero{padding-top:24px}
 .ix-crumbs{margin-bottom:16px;font-size:14px}
 .page-library .ix-hero h1{font-size:34px!important;line-height:1.08!important;letter-spacing:-.02em!important}
 .ix-intro{margin-top:14px;font-size:18px}
 .ix-guides{gap:14px;margin-top:28px}
 .ix-guide{grid-template-columns:minmax(0,1fr);gap:18px;padding:24px 20px}
 .ix-guide-main svg{width:40px;height:40px}
 .page-library .ix-guide h2{font-size:24px!important;line-height:1.15!important}
 .ix-guide-desc{font-size:16px}
 .ix-guide-main .button{align-self:stretch}
 .ix-guide-notes a{padding:12px 0;font-size:16px}
 .ix-template-inner{margin-top:40px;padding-top:24px}
 .page-library .ix-template h2{font-size:24px!important;line-height:1.15!important}
 .ix-template p{font-size:16px}
 .ix-template .button{width:100%}
 .ix-notes{margin-top:28px}
 .ix-filter button{padding:0 12px;font-size:14px}
 .ix-order{display:none}
 .ix-list{margin-top:16px}
 .ix-list a{display:flex;flex-direction:column;gap:6px;padding:16px 0}
 .ix-title{font-size:18px}
 .ix-summary{font-size:15px}
 .ix-meta{flex-direction:row;flex-wrap:wrap;gap:4px 20px;font-size:14px;text-align:left}
 .ix-topic{font-weight:400;color:var(--slate)}
}
