/* Coffee-chat views · first visual pass.
   Component vocabulary follows this folder's style.css plus public/brand/controls.css
   and public/brand/polish.css: maroon carries action and orientation, lake blue carries
   reasoning, goldenrod carries guidance, Georgia headings, system body, ink disclosures
   with a maroon +/- badge, grey-filled selects, 44px targets.
   Self-contained on purpose: this file can be reviewed alone and every value is portable.
   Spacing scale 8/12/16/20/24/28/36. Type roles: 34 / 26 / 18 / 15 / 13 / 11. */

:root{
  --ink:#262626;--muted:#666;--meta:#5C544E;--line:#d6d6ce;--wash:#f4f3ef;
  --accent:#800000;--m-900:#4B1020;--m-50:#FAF4F4;--m-100:#F4E8E9;
  --lake-wash:#D6E9EE;--lake-ink:#002A3A;--lake-line:#9CC7D3;
  --gold-wash:#FBF0D1;--gold-ink:#5C4300;--gold-line:#E9D28A;
  --focus:#315873;
  --pad:24px;   /* major panel inset */
  --gap:12px;   /* control-to-control gap */
  --rail:200px;
}

*{box-sizing:border-box}
[hidden]{display:none!important}
html{scroll-padding-top:24px}
body{margin:0;background:#fff;color:var(--ink);font:15px/1.6 system-ui,-apple-system,sans-serif}
main{max-width:1600px;margin:auto;padding:36px}
h1,h2,h3{font-family:Georgia,serif;font-weight:400;line-height:1.2;margin:0 0 16px;text-wrap:balance}
h1{font-size:34px}
h2{font-size:26px;color:var(--m-900)}
h3{font-size:18px;line-height:1.35}
h4{font:650 15px/1.5 system-ui,sans-serif;margin:0 0 8px}
p{margin:0 0 16px;text-wrap:pretty}
li{text-wrap:pretty}
a{color:var(--accent);text-underline-offset:4px}
:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.skip{position:absolute;top:-80px;left:20px;padding:12px;background:#fff;z-index:10}
.skip:focus{top:8px}
.eyebrow{font:700 11px/1.5 system-ui,sans-serif;letter-spacing:.09em;text-transform:uppercase;color:var(--meta);margin:0 0 8px}
.small{font-size:13px;color:var(--muted)}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* ── Page head. One preview notice, no second masthead: each view owns the h1. */
.head{padding-bottom:24px;border-bottom:1px solid var(--line);margin-bottom:28px}
.head .eyebrow{margin-bottom:12px}
.preview-notice{margin:0;padding:12px 20px;background:var(--wash);border-left:3px solid var(--accent);font-size:14px}

/* ── Shell: one contents nav. 200px rail on desktop; the same list becomes the
      compact topic chooser below 1100px, so there is no second nav to maintain. */
.shell{display:grid;grid-template-columns:var(--rail) minmax(0,1fr);gap:24px}
.rail{align-self:start;position:sticky;top:24px}
.rail-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.rail-link{display:flex;align-items:center;min-height:44px;padding:10px 12px;border-left:3px solid transparent;color:var(--ink);text-decoration:none;line-height:1.35}
.rail-link:hover{background:var(--wash)}
.rail-link[aria-current=page]{border-left-color:var(--accent);background:var(--m-100);color:var(--m-900);font-weight:600}
.content{min-width:0}

/* ── Compact per-view hero: orientation, not a band. One sentence of purpose. */
.view-hero{padding:20px 24px;background:var(--wash);border-left:3px solid var(--accent);margin:0 0 24px}
.view-hero h1{margin:0 0 10px}
.view-hero p{margin:0;font-size:15px}
.view-hero p+p{margin-top:10px}
.view>section{margin-top:28px}
.view>section:first-of-type{margin-top:0}

/* ── Panels. One inset, content-driven height, nothing centred. */
.panel{padding:var(--pad);border:1px solid var(--line);border-radius:6px}
.panel>:first-child{margin-top:0}
.panel>:last-child{margin-bottom:0}
.panel.reasoning{background:#F7FAFB;border-color:var(--lake-line);border-top:3px solid var(--lake-ink)}
.panel.guidance{background:var(--gold-wash);border-color:var(--gold-line);border-top:3px solid var(--gold-ink)}
.section-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px 16px;margin-bottom:16px}
.section-head h2{margin:0}
.section-head .small{margin:0}
.prose p{max-width:72ch}

/* ── Buttons and links that act. Maroon primary, white secondary with a hairline. */
.actions{display:flex;flex-wrap:wrap;gap:var(--gap);align-items:center;margin:20px 0 0}
.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:11px 16px;border:1px solid #b8a69f;border-radius:4px;background:#fff;color:var(--accent);font:600 15px/1.35 system-ui,sans-serif;text-decoration:none;cursor:pointer}
.button:hover:not(:disabled){background:var(--m-50);border-color:var(--accent)}
.button.primary{background:var(--accent);border-color:var(--accent);color:#fff}
.button.primary:hover:not(:disabled){background:#5c161f;border-color:#5c161f}
.button:disabled{color:#716d66;background:var(--wash);border-color:var(--line);cursor:not-allowed}
.text-link{display:inline-flex;align-items:center;min-height:44px;padding:11px 0;font-weight:600}

/* ── Fields. 16px text, visible label above, grey-filled select. */
.field{display:grid;gap:8px;min-width:0;font:650 13px/1.45 system-ui,sans-serif;color:var(--meta)}
.field input,.field select,.field textarea{width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid #A6A6A6;border-radius:4px;background:#fff;color:var(--ink);font:400 16px/1.45 system-ui,-apple-system,sans-serif}
.field select{background:#F4F3EF;font-weight:600}
.field textarea{min-height:200px;line-height:1.6;resize:vertical}
.field input:hover,.field select:hover,.field textarea:hover{border-color:#737373}
.field input:focus-visible,.field select:focus-visible,.field textarea:focus-visible{border-color:var(--accent)}
.field-hint{font:400 13px/1.5 system-ui,sans-serif;color:var(--muted)}
input[type=search]{appearance:none}

/* ── Ink disclosure: the folder's +/- badge, nothing collapsed that matters. */
.disclosure{margin-top:16px}
.disclosure>summary{display:flex;align-items:center;gap:12px;min-height:44px;padding:8px 0;color:var(--ink);font-weight:600;cursor:pointer;list-style:none}
.disclosure>summary::-webkit-details-marker{display:none}
.disclosure>summary::before{content:'+';display:inline-grid;place-items:center;flex:0 0 24px;height:24px;border:1px solid var(--accent);border-radius:50%;color:var(--accent);font:18px/1 system-ui}
.disclosure[open]>summary::before{content:'\2212';background:var(--accent);color:#fff}
.disclosure>summary:hover{color:var(--m-900)}
.disclosure-body{padding:12px 0 0;line-height:1.65}
.disclosure-body>:last-child{margin-bottom:0}

/* ── Coffee chats: a three-step sequence, label gutter on the left. */
.steps{display:grid;gap:0;margin:0}
.step{display:grid;grid-template-columns:92px minmax(0,1fr);gap:20px;padding:20px 0;border-top:1px solid var(--line)}
.step:first-child{border-top:0;padding-top:0}
.step:last-child{padding-bottom:0}
.step-label{font:700 11px/1.5 system-ui,sans-serif;letter-spacing:.09em;text-transform:uppercase;color:var(--accent);margin:0;padding-top:2px}
.step-body{min-width:0}
.step-body>:last-child{margin-bottom:0}
.step-aside{display:flex;flex-wrap:wrap;gap:var(--gap) 20px;align-items:center;margin-top:12px}
.step-aside a{display:inline-flex;align-items:center;min-height:44px;font-weight:600}
.step-note{margin:8px 0 0;font-size:13px;color:var(--muted)}

/* ── Company brief: firm facts read neutral; interpretation sits in the lake panel. */
.facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0 0 20px;padding:0;list-style:none}
.facts>li{padding:16px;background:var(--wash);border-top:2px solid var(--meta)}
.facts dt,.fact-key{font:700 11px/1.5 system-ui,sans-serif;letter-spacing:.09em;text-transform:uppercase;color:var(--meta);margin:0 0 6px}
.facts .fact-value{margin:0;font-size:15px}
.source-line{margin:0;padding-top:16px;border-top:1px solid var(--line);font-size:13px;color:var(--muted)}
.development{margin:0;padding:20px;background:#fff;border:1px solid var(--line);border-left:3px solid var(--meta);border-radius:0 4px 4px 0}
.development h3{margin:0 0 8px}
.development .source-line{margin-top:12px}
.placeholder{padding:1px 6px;background:var(--m-100);border-radius:3px;font-size:13px;color:var(--m-900);white-space:nowrap}

.reading{display:grid;gap:0}
.reading-head,.reading-row{display:grid;grid-template-columns:1.1fr 1fr 1fr;gap:20px}
.reading-head{padding-bottom:12px;border-bottom:1px solid var(--lake-line)}
.reading-head span{font:700 11px/1.5 system-ui,sans-serif;letter-spacing:.09em;text-transform:uppercase;color:var(--lake-ink)}
.reading-row{padding:20px 0;border-bottom:1px solid var(--lake-line)}
.reading-row:last-child{border-bottom:0;padding-bottom:0}
.reading-row p{margin:0;min-width:0}
.reading-row .r-fact{font-weight:600;color:var(--lake-ink)}
/* The visual column header is decorative (aria-hidden), so each cell keeps its own
   label for assistive tech. On phones the same label becomes visible. */
.reading-row .r-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* ── Thank-you workshop: fields feed a draft the student can overwrite. */
.workshop{display:grid;grid-template-columns:1fr 1.4fr;gap:24px;align-items:start}
.workshop-fields{display:grid;gap:16px;min-width:0}
.workshop-message{display:grid;gap:12px;min-width:0}
.coach-set{display:grid;gap:12px;margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}
.coach{margin:0;padding:12px 14px;background:var(--gold-wash);border-left:3px solid var(--gold-ink);font-size:13px;line-height:1.6;color:var(--gold-ink)}
/* The status region stays in the DOM so an update is announced, and an empty
   paragraph generates no line box, so it costs no vertical space. */
.status{margin:0;font-size:14px;font-weight:600;color:var(--m-900)}
.compose-note{margin:12px 0 0;font-size:13px;color:var(--muted)}

/* ── Asked & answered: one search field, compact disclosures, honest count. */
.qa-tools{display:grid;grid-template-columns:360px minmax(0,1fr);gap:20px;align-items:end;margin:0 0 8px}
.qa-count{margin:0;font-size:14px;color:var(--meta)}
.qa-list{margin:0;padding:0;list-style:none}
.qa{border-top:1px solid var(--line)}
.qa .disclosure{margin:0}
.qa .disclosure>summary{padding:14px 0}
.qa .disclosure-body{padding-bottom:16px}
.qa-empty{margin:20px 0 0;padding:16px 20px;background:var(--m-50);border-left:3px solid var(--accent);font-size:14px}

.boundary{margin:28px 0 0;padding-top:20px;border-top:1px solid var(--line);font-size:13px;color:var(--muted)}

/* ── Tablet and narrow laptop: the rail list becomes the compact topic chooser. */
@media(max-width:1099px){
  main{padding:28px}
  .shell{display:block}
  .rail{position:static;margin:0 0 24px}
  .rail .eyebrow{margin-bottom:10px}
  .rail-list{grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--gap)}
  .rail-link{justify-content:center;border-left:0;border:1px solid var(--line);border-bottom-width:3px;border-radius:4px;background:#fff;color:var(--accent);font-weight:600;font-size:14px;text-align:center}
  .rail-link:hover{background:var(--m-50);border-color:#A4343A}
  .rail-link[aria-current=page]{background:var(--m-900);border-color:var(--m-900);color:#fff}
  .workshop{grid-template-columns:1fr}
  .field textarea{min-height:180px}
  .qa-tools{grid-template-columns:minmax(0,1fr)}
}

/* ── Phone: single column, 48px inputs, stacked labels, full-width actions. */
@media(max-width:700px){
  main{padding:20px}
  h1{font-size:30px}
  h2{font-size:24px}
  .rail-list{grid-template-columns:1fr 1fr}
  .view-hero,.panel{padding:20px}
  .preview-notice{padding:12px 16px}
  .step{grid-template-columns:1fr;gap:10px}
  .step-label{padding-top:0}
  .step-aside a,.button{width:100%}
  .step-aside{display:grid;gap:8px}
  .actions{display:grid}
  .facts{grid-template-columns:1fr}
  .reading-head{display:none}
  .reading-row{grid-template-columns:1fr;gap:12px;padding:18px 0}
  .reading-row .r-label{position:static;display:block;width:auto;height:auto;clip-path:none;font:700 11px/1.5 system-ui,sans-serif;letter-spacing:.09em;text-transform:uppercase;color:var(--lake-ink);margin-bottom:4px}
  .field input,.field select,.field textarea{min-height:48px}
}

@media(prefers-reduced-motion:reduce){*{transition:none!important}}
@media(forced-colors:active){
  .rail-link[aria-current=page]{forced-color-adjust:none}
  .field select{appearance:auto;background-image:none}
}
@media print{
  .rail,.skip,.actions{display:none}
  .view[hidden]{display:block!important}
}

/* Integration: protect the approved rail and fields beneath shared site chrome. */
.coffee-guide .rail{top:110px}.coffee-guide .section-head{background:transparent;color:var(--ink);padding:0;border:0}.coffee-guide .section-head h2{color:var(--m-900)}.coffee-guide .field input,.coffee-guide .field textarea,.coffee-guide .field select{font-size:16px;min-width:0;width:100%}.coffee-guide #example-passages{white-space:pre-wrap;margin:24px 0}.coffee-guide #example-coaching p{margin-bottom:16px}.coffee-guide #example-coaching .coach{margin-bottom:24px}.coffee-guide .view h1{scroll-margin-top:120px}.coffee-guide .source-line a{overflow-wrap:anywhere}.coffee-guide #company-select{max-width:none}.coffee-guide .button{min-height:44px;padding:10px 16px}.coffee-guide .actions{gap:12px}@media(max-width:1099px){.coffee-guide .rail{position:static}}

.coffee-guide .view{min-width:0}

/* Keep the long draft usable after shared mobile field rules load. */
.coffee-guide #ty-message{min-height:220px;height:220px;resize:vertical}
.coffee-guide .disclosure>summary::after{content:none;display:none}

/* Compact controls and category washes; the approved section structure stays intact. */
.coffee-guide .view-hero{background:#eee8f1;border-left-color:#62416b;padding:16px 20px}
.coffee-guide #thanks .view-hero{background:#f5ebd5;border-left-color:#947133}
.coffee-guide #answers .view-hero{background:#e7eee5;border-left-color:#506849}
.coffee-guide .view-hero h1{font-size:30px}
.coffee-guide .panel{padding:20px}
@media(min-width:701px){.coffee-guide .button{min-height:34px;padding:7px 11px;font-size:13px}.coffee-guide .actions{gap:10px}.coffee-guide .rail-link{min-height:38px;padding:8px 11px;font-size:14px}}

/* Editorial evidence inside the approved four-view shell. Every value keeps a source. */
.coffee-guide .example-carousel{border-top:3px solid #947133;background:linear-gradient(135deg,#fffaf0 0,#fff 45%)}
.coffee-guide .example-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px;align-items:end;padding-bottom:20px;border-bottom:1px solid #ddceb4}
.coffee-guide .example-controls{display:flex;align-items:center;gap:12px}
.coffee-guide .example-controls .button{width:44px;min-width:44px;min-height:44px;padding:8px;font-size:20px}
.coffee-guide #example-position{min-width:52px;text-align:center;font-size:13px;font-variant-numeric:tabular-nums;white-space:nowrap}
.coffee-guide #example-passages{font-size:15px;line-height:1.75;max-width:74ch}
.coffee-guide #ty-example{margin-top:20px;margin-bottom:12px}
@media(max-width:700px){
 .coffee-guide .example-toolbar{grid-template-columns:1fr;gap:16px}
 .coffee-guide .example-controls{justify-content:space-between}
}

/* Claude first-pass handoff: a continuous essay, not equal-weight cards. */
.coffee-guide .field select{background-color:#f4f3ef}
.coffee-guide .example-carousel{background:#fff;border-top-color:#947133}
/* These editorial subheads use the quiet guide treatment, not the global section band. */
.coffee-guide .section-head{background:transparent!important;color:var(--ink)!important;padding:0!important;border:0!important;border-radius:0!important}
.coffee-guide .section-head h2{color:var(--m-900)!important}
.coffee-guide .section-head .small{color:var(--muted)!important}

/* Jenn's October 5 review: color belongs to the information blocks themselves. */
.coffee-guide #thanks .view-hero{background:#e6ca8b;border-left-color:#8c6426}
.coffee-guide .example-carousel{background:#ead6a8;border-color:#bea16a;border-top:3px solid #8c6426}
.coffee-guide .example-toolbar{border-color:#b79b69}
.coffee-guide .example-carousel .field select{background:#fffaf0;border-color:#b39764}
.coffee-guide .example-carousel #example-slide{background:#fffaf0;padding:20px;margin-top:20px;border-left:3px solid #9d793d}
.coffee-guide .example-carousel #example-passages{margin:0}
.coffee-guide .example-carousel #example-reason{margin-top:16px;color:#4b3c25}
.coffee-guide .example-carousel .coach{background:#fffaf0}
.coffee-guide #answers .view-hero{background:#c9ddc3;border-left-color:#46633d}
.coffee-guide #answers .panel{background:#dce7d8;border-color:#aec3a6}
.coffee-guide #answers .qa{border-color:#b2c6aa}
.coffee-guide #answers .qa summary:hover{background:#cbdcc5}
.coffee-guide .preview-notice a{display:inline-flex;align-items:center;white-space:nowrap;margin-left:12px}
@media(max-width:700px){
 .coffee-guide .view-hero h1{font-size:24px!important;line-height:1.2!important}
 .coffee-guide .section-head h2,.coffee-guide .view h2{font-size:21px!important;line-height:1.25!important}
 .coffee-guide .view-hero{padding:16px!important}
 .coffee-guide .view-hero p{font-size:14px;line-height:1.55}
 .coffee-guide .preview-notice a{display:flex;margin:8px 0 0;min-height:36px}
 .coffee-guide .example-carousel #example-slide{padding:16px}
 .coffee-guide #example-passages{font-size:14px;line-height:1.65}
}
/* Text color reinforces each block's role and remains readable on its fill. */
.coffee-guide #thanks h1,.coffee-guide #thanks h2,.coffee-guide #thanks .section-head h2{color:#654512!important}
.coffee-guide #thanks .eyebrow,.coffee-guide #thanks .field,.coffee-guide #thanks #example-position{color:#62451c}
.coffee-guide #answers h1,.coffee-guide #answers h2,.coffee-guide #answers .section-head h2,.coffee-guide #answers .field,.coffee-guide #answers .qa-count{color:#355536!important}
.coffee-guide #answers .eyebrow{color:#355536}

