/* Coach Libra author portal (v3authordesign, the editor-in-chief 2026-10-16: "use the v3 author
   portal design as the design for the v4 author portal"). Every author page links this file;
   staff pages keep portal.css. Sections 1 and 2 are v3's own stylesheets byte for byte, in v3's
   load order (_layouts/default.html: the page's assets/css/portal.css, then base.css). Section 0 serves v3's faces from this site (v3 linked
   Google Fonts; nothing here loads from another site). Section 3 is v3's portal.html inline
   <style> and its header and footer. Section 4 dresses v4's own author markup (the chapter editor,
   the material ledger, a refusal) in the same look; section 5 is what the server-rendered panels
   need where v3 used script (a <details> stands where v3 toggled a class). */

/* ---- 0. the faces, served by /assets/portal/ ---- */
@font-face{font-family:"Fraunces";src:url(/assets/portal/Fraunces-Regular.ttf) format("truetype");font-weight:300 500;font-display:swap}
@font-face{font-family:"Fraunces";src:url(/assets/portal/Fraunces-SemiBold.ttf) format("truetype");font-weight:600 900;font-display:swap}
@font-face{font-family:"Hanken Grotesk";src:url(/assets/portal/HankenGrotesk-Regular.ttf) format("truetype");font-weight:300 500;font-display:swap}
@font-face{font-family:"Hanken Grotesk";src:url(/assets/portal/HankenGrotesk-Bold.ttf) format("truetype");font-weight:600 800;font-display:swap}

/* ---- 1. v3 assets/css/portal.css ---- */
:root{--paper:#f4ede0;--paper-2:#efe6d6;--ink:#211b14;--ink-soft:#5c5142;--oxblood:#7c2d27;--oxblood-deep:#5e211d;--gold:#bd9347;--gold-soft:#d8b870;--line:#d8ccb6;--max:760px;--ease:cubic-bezier(.2,.7,.2,1)}
body{font-family:"Hanken Grotesk",system-ui,sans-serif;line-height:1.6}
.wrap{max-width:var(--max);margin:0 auto;padding:0 28px}
h1,h2{font-family:"Fraunces",Georgia,serif;font-weight:440;letter-spacing:-.01em}
.portal{padding:40px 28px 0}
.muted{color:var(--ink-soft)}
.note{font-size:.95rem;margin-top:.6em;min-height:1.2em}
.note.err{color:var(--oxblood)}
.note.ok{color:#3f6b46}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5em;background:var(--oxblood);color:#fff;font-family:"Hanken Grotesk",sans-serif;font-weight:600;font-size:.96rem;padding:.7em 1.3em;border-radius:999px;text-decoration:none;border:none;cursor:pointer;transition:background .2s,transform .2s}
.btn:hover{background:var(--oxblood-deep);transform:translateY(-1px);color:#fff}
.btn.small{padding:.42em .95em;font-size:.85rem}
.btn:disabled{opacity:.6;cursor:default;transform:none}
.link{background:none;border:none;color:var(--oxblood);cursor:pointer;font:inherit;text-decoration:underline;padding:0}
input[type=email],input[type=text],#code,#profile-name{width:100%;max-width:340px;padding:.7em .9em;border:1px solid var(--line);border-radius:10px;background:#fbf6ec;font:inherit;color:var(--ink);margin:.4em 0}
#code{max-width:180px;letter-spacing:.4em;font-size:1.3rem;text-align:center}

/* sign-in card */
.card{background:linear-gradient(170deg,#fbf6ec,#f1e7d6);border:1px solid var(--line);border-radius:16px;padding:38px 34px;max-width:440px;margin:30px auto}
.card h1{font-size:2rem;margin-bottom:.2em}

/* dashboard */
.dash-head{display:flex;justify-content:space-between;align-items:baseline;gap:16px;margin:6px 0 22px}
.dash-head h1{font-size:2rem}
.panel{background:#fbf6ec;border:1px solid var(--line);border-radius:14px;padding:24px 26px;margin-bottom:20px}
.panel h2{font-size:1.4rem;color:var(--oxblood);margin-bottom:.6em}
.bigstep{display:flex;align-items:center;gap:14px}
.bigstep .dot{width:14px;height:14px;border-radius:50%;flex:0 0 auto;background:var(--gold)}
.bigstep .dot.you{background:var(--oxblood)}
.bigstep .dot.done{background:#3f6b46}
.stepname{font-family:"Fraunces",serif;font-size:1.35rem;color:var(--ink)}
.next{margin-top:14px;background:rgba(189,147,71,.12);border-left:3px solid var(--gold);border-radius:8px;padding:.7em 1em}
#deliverables-list{list-style:none;padding:0;margin:0}
#deliverables-list li{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:.7em 0;border-bottom:1px dotted var(--line)}
#deliverables-list li:last-child{border-bottom:none}
#deliverables-list li.deliv{display:block;padding:.6em 0}
#deliverables-list li.book-head{display:block;border-bottom:none;padding:1.1em 0 .3em;font-family:"Fraunces",serif;font-size:1.1rem;color:var(--oxblood)}
#deliverables-list li.book-head:first-child{padding-top:.1em}
.soon{color:var(--ink-soft);font-size:.9rem;font-style:italic}
.dial{padding:.55em 0;border-bottom:1px dotted var(--line)}
.dial:last-child{border-bottom:none}
.dial-row,.deliv-row{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}
.dial-title,.deliv-title{background:none;border:none;font:inherit;cursor:pointer;color:var(--ink-soft);padding:.15em 1.3em .15em 0;position:relative;text-align:left}
.dial-title::after,.deliv-title::after{content:"+";position:absolute;right:0;top:50%;transform:translateY(-50%);color:var(--oxblood);font-size:1.25rem;line-height:1}
.dial.open .dial-title,.deliv.open .deliv-title{color:var(--oxblood)}
.dial.open .dial-title::after,.deliv.open .deliv-title::after{content:"–"}
.dial-desc,.deliv-desc{display:grid;grid-template-rows:0fr;transition:grid-template-rows .28s var(--ease)}
.dial.open .dial-desc,.deliv.open .deliv-desc{grid-template-rows:1fr}
.dd-inner{overflow:hidden}
.dial-desc p,.deliv-desc p{margin:.5em 0 .2em;color:var(--ink-soft);font-size:.9rem;max-width:60ch}
.seg{display:inline-flex;border:1px solid var(--line);border-radius:999px;overflow:hidden;flex:0 0 auto}
.seg button{background:transparent;border:none;padding:.4em .85em;font:inherit;font-size:.85rem;cursor:pointer;color:var(--ink-soft)}
.seg button.on{background:var(--oxblood);color:#fff}
label{display:block;margin-bottom:.6em;color:var(--ink-soft)}
/* keep the hidden attribute working even though .infoline sets display:flex */
.infoline[hidden]{display:none}
#btn-save-profile{margin-top:1.1em}
#btn-upload{margin-top:.9em}

/* "this is my finished manuscript" opt-in on the upload panel */
.draft-check{display:flex;align-items:flex-start;gap:.55em;margin-top:.9em;cursor:pointer;line-height:1.4}
.draft-check input{margin:.2em 0 0;flex:0 0 auto;width:auto}
.draft-hint{font-size:.9rem;margin:.35em 0 0 1.9em}

/* "or paste a link" divider + link row */
.or-sep{display:flex;align-items:center;text-align:center;color:var(--ink-soft);font-size:.85rem;margin:18px 0 6px}
.or-sep::before,.or-sep::after{content:"";flex:1;height:1px;background:var(--line)}
.or-sep span{padding:0 .8em}
.link-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.link-row input{margin:0;flex:1 1 260px}
.link-row .btn{flex:0 0 auto}

/* book-card action row: email-step / remind / pause + reveal-on-click option chips */
.card-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:14px}
.card-actions .card-link{font-size:.9rem}
.card-actions .reminder-note{font-size:.85rem}
.card-actions .opts{flex-basis:100%;display:flex;flex-wrap:wrap;gap:2px;align-items:center;font-size:.9rem}
.card-actions .opts:empty{display:none}
.card-actions .opt{font-size:.9rem}
.card-actions .opt-cancel{color:var(--ink-soft)}

/* "what you've sent me" — per-book groups + per-item remove */
#sent-list{list-style:none;padding:0;margin:0}
.sent-group{margin:0 0 14px}
.sent-group-h{font-family:"Fraunces",serif;font-size:.95rem;color:var(--ink);margin:0 0 4px;font-weight:600}
.sent-sub{list-style:none;padding:0;margin:0}
.sent-item{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap;padding:4px 0;border-bottom:1px solid var(--line)}
.sent-item a{color:var(--oxblood)}
/* The received date sits beside the item name — smaller than the label it follows so it
   reads as an annotation, not a second title. Matches the 'remove' control's scale. */
.sent-when{font-size:.8rem;white-space:nowrap}
.sent-del{margin-left:auto;font-size:.8rem;color:var(--ink-soft);text-decoration:none}
.sent-del:hover{color:var(--oxblood);text-decoration:underline}

/* finish-line progress */
.finish{margin:4px 0 16px}
.finish-top{display:flex;justify-content:space-between;align-items:baseline;font-size:.85rem;color:var(--ink-soft);margin-bottom:5px}
.finish-pct{font-family:"Fraunces",serif;font-size:1.1rem;color:var(--oxblood);font-weight:600}
.finish-bar{display:block;height:10px;background:var(--paper-2);border-radius:6px;overflow:hidden}
.finish-fill{display:block;height:100%;background:linear-gradient(90deg,var(--gold),var(--oxblood));border-radius:6px;transition:width .5s var(--ease)}
.finish-meta{font-size:.82rem;color:var(--ink-soft);margin-top:5px}

/* progress within the CURRENT stage (not the whole-book percent above) */
.in-stage{margin:2px 0 14px}
.in-stage-top{display:flex;justify-content:space-between;font-size:.82rem;color:var(--ink-soft);margin-bottom:4px}
.in-stage-bar{display:block;height:6px;background:var(--paper-2);border-radius:4px;overflow:hidden}
.in-stage-fill{display:block;height:100%;background:var(--gold);border-radius:4px;transition:width .5s var(--ease)}

/* author-facing book plan: chapter-by-chapter status + what's currently being asked */
.book-plan{margin:10px 0 4px;padding:12px 14px;background:var(--paper-2);border-radius:8px}
.plan-summary{font-weight:600;margin-bottom:8px}
.plan-premise{font-style:italic;margin:0 0 10px}
.plan-row{padding:7px 0;border-top:1px dotted var(--line)}
.plan-row:first-of-type{border-top:none}
.plan-row-top{display:flex;align-items:baseline;gap:6px;font-size:.92rem}
.plan-ord{color:var(--ink-soft)}
.plan-title{flex:1}
.plan-status{font-size:.78rem;color:var(--ink-soft);white-space:nowrap}
.plan-row.status-meets_standard .plan-status{color:var(--oxblood)}
.plan-ask{margin-top:5px;font-size:.85rem;color:var(--ink-soft);background:var(--paper);border-radius:6px;padding:8px 10px}
.plan-part{margin:12px 0 4px;font-size:.78rem;font-weight:600;letter-spacing:.04em;
  text-transform:uppercase;color:var(--oxblood)}
.plan-row:first-of-type .plan-part,.plan-part:first-child{margin-top:0}
.plan-row.is-appendix .plan-title{font-style:italic}
.plan-words{font-size:.76rem;color:var(--ink-soft);white-space:nowrap;font-variant-numeric:tabular-nums}
.plan-row.status-material_in .plan-status{color:var(--gold)}
.plan-onfile{color:var(--oxblood)}
.plan-rules{margin:0 0 12px;padding:8px 10px;background:var(--paper);border-radius:6px}
.plan-rules-title{font-size:.82rem;font-weight:600;margin-bottom:4px}
.plan-rules ul{margin:0;padding-left:18px;font-size:.85rem;color:var(--ink-soft)}
.plan-rules li{margin:2px 0}

/* book title editor */
.book-rename{margin-bottom:18px;padding-bottom:16px;border-bottom:1px dotted var(--line)}
.rename-label{display:block;margin-bottom:.3em;color:var(--ink-soft);font-size:.9rem}
.rename-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.rename-row input{margin:0;flex:1 1 240px}
.rename-row .btn{flex:0 0 auto}

/* book tabs — flip between projects */
.booktabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}
.booktab{background:#fbf6ec;border:1px solid var(--line);border-bottom-width:2px;border-radius:10px 10px 0 0;padding:.55em 1.1em;font:inherit;font-size:.95rem;color:var(--ink-soft);cursor:pointer;transition:color .2s,border-color .2s,background .2s}
.booktab:hover{color:var(--ink)}
.booktab.on{color:var(--oxblood);font-weight:600;border-color:var(--gold);border-bottom-color:var(--oxblood);background:#fffdf8}
.acct-sep{height:1px;background:var(--line);margin:34px 0 22px}

/* per-book progress cards (an author can have several books at once) */
.bookcard + .bookcard{margin-top:24px;padding-top:22px;border-top:1px solid var(--line)}
.book-title{font-family:"Fraunces",serif;font-size:1.18rem;color:var(--oxblood);margin-bottom:14px}

/* five-step journey indicator */
.steps{list-style:none;display:flex;padding:0;margin:0 0 20px}
.steps li{flex:1;text-align:center;position:relative;font-size:.78rem}
.steps li .num{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;margin:0 auto 7px;font-weight:600;font-size:.9rem;background:var(--paper-2);color:var(--ink-soft);border:2px solid var(--line);position:relative;z-index:1}
.steps li .lbl{display:block;color:var(--ink-soft);line-height:1.25;padding:0 4px}
.steps li::before{content:"";position:absolute;top:15px;left:-50%;width:100%;height:2px;background:var(--line);z-index:0}
.steps li:first-child::before{display:none}
.steps li.done .num{background:#3f6b46;color:#fff;border-color:#3f6b46}
.steps li.done::before,.steps li.current::before{background:#3f6b46}
.steps li.current .num{background:var(--oxblood);color:#fff;border-color:var(--oxblood);box-shadow:0 0 0 4px rgba(124,45,39,.15)}
.steps li.current .lbl{color:var(--ink);font-weight:600}

/* last email + info rows */
.invested{margin-top:12px;font-size:.92rem;color:#3f6b46;background:rgba(63,107,70,.08);border-left:3px solid #3f6b46;border-radius:8px;padding:.6em 1em}
.lastmail{margin-top:14px;font-size:.92rem;color:var(--ink)}
.vp-line{margin-top:16px}
.infoline{display:flex;gap:12px;align-items:baseline;margin-top:.7em;font-size:.95rem}
.info-label{font-weight:600;color:var(--oxblood);min-width:70px}
.info-val{color:var(--ink)}
@media(max-width:640px){.dial-row{justify-content:flex-start}.steps li{font-size:.68rem}.steps li .num{width:26px;height:26px}}
/* signup book-type picker + its admin-queue chip */
.waitlist select{width:100%;padding:11px 12px;border:1px solid var(--line);border-radius:8px;
  background:var(--paper);color:var(--ink);font:inherit}
.wl-booktype{display:inline-block;margin-left:6px;padding:1px 7px;border-radius:999px;
  background:var(--paper-2);color:var(--ink-soft);font-size:.74rem;white-space:nowrap}
/* Per-field explanation under a signup input (live genre definition, working-title note).
   :empty keeps the genre hint out of the flex flow until a genre is picked. */
.waitlist .field-hint{margin:-6px 0 0;padding:0 2px;font-size:.8rem;line-height:1.45;
  color:var(--ink-soft)}
.waitlist .field-hint:empty{display:none}

/* ---- 2. v3 assets/css/base.css ---- */
/* ===== Shared, authoritative base: reset + background + nav + footer ===== *
 * Loaded AFTER each page's own stylesheet, so these win for the shared chrome
 * while every page keeps its own :root / type / layout. Edit the nav + footer
 * here once and it applies everywhere. Markup: _includes/header.njk + footer.njk */
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{padding-top:70px}
body.home{padding-top:0}
body::before{content:"";position:fixed;inset:0;z-index:-2;pointer-events:none;background:radial-gradient(120% 80% at 75% -10%, #fbf6ec 0%, transparent 55%),radial-gradient(120% 90% at 0% 110%, #ece0cc 0%, transparent 50%),var(--paper)}
body::after{content:"";position:fixed;inset:0;z-index:9999;pointer-events:none;opacity:.05;mix-blend-mode:multiply;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}
::selection{background:var(--oxblood);color:var(--paper)}

/* nav */
header.nav{position:fixed;top:0;left:0;right:0;z-index:100;max-width:none;margin:0;display:flex;align-items:center;justify-content:space-between;padding:18px 32px;background:rgba(244,237,224,.86);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid transparent;transition:padding .3s,box-shadow .3s,border-color .3s}
header.nav.scrolled{padding:12px 32px;box-shadow:0 1px 0 var(--line);border-color:var(--line)}
.brand{display:flex;align-items:center;gap:11px;font-family:"Fraunces",serif;font-weight:500;font-size:1.3rem;letter-spacing:-.01em;color:var(--ink);text-decoration:none}
.brand .mark{width:26px;height:26px;flex:0 0 auto}
.orn-mark{width:30px;height:30px;flex:0 0 auto;display:block}
.nav-links{display:flex;align-items:center;gap:30px}
.nav-links a{color:var(--ink);text-decoration:none;font-size:.93rem;font-weight:500;opacity:.82;transition:opacity .25s,color .25s}
.nav-links a:hover{opacity:1;color:var(--oxblood)}
.nav-links a.cta,.nav-links a.btn{opacity:1;color:#fff}
.btn{display:inline-flex;align-items:center;gap:.5em;background:var(--oxblood);color:#fff;font-family:"Hanken Grotesk",sans-serif;font-weight:600;font-size:.92rem;padding:.6em 1.2em;border-radius:999px;text-decoration:none;border:none;cursor:pointer;transition:transform .25s,background .25s}
.btn:hover{background:var(--oxblood-deep);color:#fff;transform:translateY(-1px)}
.nav-toggle{display:none;background:none;border:none;cursor:pointer;color:var(--ink)}

/* footer */
footer{padding:46px 0 56px;border-top:1px solid var(--line);margin-top:30px}
.foot{display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap}
.foot .brand,.foot a.brand{font-size:1.1rem}
.foot p{color:var(--ink-soft);font-size:.86rem}
.foot a{color:var(--ink-soft);text-decoration:none;border-bottom:1px solid var(--line)}
.foot a:hover{color:var(--oxblood)}

@media (max-width:680px){
  header.nav{padding:14px 22px}
  .nav-links{display:none;position:absolute;top:100%;right:0;left:0;flex-direction:column;align-items:flex-start;background:var(--paper);padding:22px;gap:18px;border-bottom:1px solid var(--line);box-shadow:0 20px 40px -30px rgba(0,0,0,.4)}
  .nav-links.open{display:flex}
  .nav-toggle{display:block}
}

/* ---- 3. v3 portal.html's own <style>, and the header and footer as v3 drew them ---- */
.acct-security { margin-top:14px; padding-top:12px; border-top:1px solid var(--line) }
.subtle-link { color:var(--ink-soft); text-decoration:none; font-size:.85rem } .subtle-link:hover { color:var(--oxblood); text-decoration:underline }
#danger-bar { position:sticky; bottom:0; margin-top:34px; padding:14px; text-align:center; background:rgba(244,237,224,.92); backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px); border-top:1px solid var(--line); font-size:.9rem }
.danger-link { color:var(--oxblood); text-decoration:none } .danger-link:hover { text-decoration:underline }
.danger-sep { color:var(--ink-soft); margin:0 8px }
body{color:var(--ink);background:var(--paper);-webkit-font-smoothing:antialiased}
.brand img{width:26px;height:26px;flex:0 0 auto}
header.nav .nav-links form{display:inline}
footer .foot p{margin:0}
.info-val{overflow-wrap:anywhere;min-width:0}

/* ---- 4. v4's own author markup, in the v3 look ---- */
main.portal{min-height:50vh}
main.portal h1{font-size:2rem;margin:.2em 0 .5em;line-height:1.15}
main.portal > h2, main.portal form h2, main.portal section > h2{font-size:1.4rem;color:var(--oxblood);margin:1.4em 0 .5em}
main.portal h3{font-family:"Fraunces",Georgia,serif;font-weight:500;font-size:1.1rem;margin:1em 0 .35em}
main.portal p{margin:.55em 0}
main.portal p.note{color:var(--ink-soft);min-height:0}
main.portal p.note.ok{color:#3f6b46}
main.portal p.note.err{color:var(--oxblood)}
main.portal a{color:var(--oxblood)}
main.portal a.btn{color:#fff}
main.portal .unit{display:flex;justify-content:space-between;align-items:baseline;gap:14px;flex-wrap:wrap;padding:.6em 0;border-bottom:1px dotted var(--line)}
main.portal .turn{color:var(--ink-soft);font-size:.9rem}
main.portal .held{margin:14px 0;background:rgba(189,147,71,.12);border-left:3px solid var(--gold);border-radius:8px;padding:.7em 1em}
main.portal form{margin:.6em 0}
main.portal form:not(.seg) button:not([class]){display:inline-flex;align-items:center;justify-content:center;gap:.5em;background:var(--oxblood);color:#fff;font-family:"Hanken Grotesk",sans-serif;font-weight:600;font-size:.96rem;padding:.7em 1.3em;border-radius:999px;border:none;cursor:pointer;transition:background .2s,transform .2s;margin:.4em 0}
main.portal form:not(.seg) button:not([class]):hover{background:var(--oxblood-deep);transform:translateY(-1px)}
main.portal button.quiet{background:transparent;color:var(--oxblood);border:1px solid var(--line);border-radius:999px;padding:.42em .95em;font:inherit;font-size:.85rem;cursor:pointer}
main.portal button.quiet:hover{border-color:var(--oxblood)}
main.portal textarea{width:100%;min-height:8rem;padding:.8em .9em;border:1px solid var(--line);border-radius:10px;background:#fbf6ec;font:inherit;color:var(--ink);line-height:1.6;margin:.4em 0}
main.portal form[action$="/save"] textarea{min-height:24rem}
main.portal input[type=url],main.portal input[type=date],main.portal input[type=file],main.portal input:not([type]),main.portal select{max-width:100%;padding:.6em .8em;border:1px solid var(--line);border-radius:10px;background:#fbf6ec;font:inherit;color:var(--ink);margin:.3em 0}
main.portal input[type=url]{width:100%}
main.portal label{color:var(--ink-soft)}
main.portal input[type=radio]{accent-color:var(--oxblood);margin-right:.4em}
main.portal details > summary{cursor:pointer;color:var(--oxblood)}
main.portal blockquote{margin:.6rem 0;padding:.2rem 0 .2rem 1rem;border-left:3px solid var(--gold);color:var(--ink-soft)}
main.portal pre{white-space:pre-wrap;font:inherit}

/* ---- 5. the server-rendered panels (v3 toggled classes from script; a <details> does it here) ---- */
.dash-head form,.card-actions form,.rename-row,.seg-form{margin:0}
.dash-head .link{font-size:.95rem}
/* g34uxauthor: account, help and sign out on one line that never breaks inside a label (390 px). */
.dash-head{flex-wrap:wrap}
.head-links{display:flex;gap:14px;align-items:baseline;white-space:nowrap;font-size:.95rem}
.head-links a{color:var(--ink-soft)}
.head-links .link{white-space:nowrap}
#where{display:flex;flex-direction:column}
#where > details.book-rename{order:1;margin:14px 0 0}
details.book-rename{padding:0;border:none}
details.book-rename summary{display:inline;cursor:pointer;color:var(--ink-soft);font-size:.9rem;text-decoration:underline}
details.book-rename[open]{padding-bottom:16px;border-bottom:1px dotted var(--line)}
.booktab{text-decoration:none;display:inline-block}
details.dial-more,details.deliv-more{flex:1 1 auto;min-width:0}
details > summary.dial-title,details > summary.deliv-title{list-style:none;display:inline-block}
details > summary.dial-title::-webkit-details-marker,details > summary.deliv-title::-webkit-details-marker{display:none}
details[open] > summary.dial-title,details[open] > summary.deliv-title{color:var(--oxblood)}
details[open] > summary.dial-title::after,details[open] > summary.deliv-title::after{content:"–"}
details .dd-open p{margin:.5em 0 .2em;color:var(--ink-soft);font-size:.9rem;max-width:60ch}
form.seg{display:inline-flex;flex-wrap:wrap;margin:0}
.seg button{border-right:1px solid var(--line)}
.seg button:last-child{border-right:none}
.seg button.on{cursor:default}
.dial-note{font-size:.85rem;color:var(--ink-soft);margin:.3em 0 0}
.deliv-row .btn{flex:0 0 auto}
.deliv-when{font-size:.85rem;color:var(--ink-soft);margin:.3em 0 0}
.card-actions details{flex-basis:100%}
.card-actions details > summary{list-style:none;display:inline-flex}
main.portal .card-actions summary.btn{color:#fff}
.card-actions details > summary::-webkit-details-marker{display:none}
.card-actions .opts form{display:inline}
.plan-ask summary{font-size:.85rem}
.plan-ask p{white-space:pre-wrap;margin:.4em 0 0}
.plan-title a{color:var(--ink)}
.plan-row .plan-onfile{font-size:.8rem;color:var(--ink-soft);margin-top:2px}
.plan-more{margin-top:10px;font-size:.9rem}
.sent-more{margin-top:10px;font-size:.9rem}
.sent-status{font-size:.85rem}
.panel textarea{width:100%;box-sizing:border-box;padding:.7em .9em;border:1px solid var(--line);border-radius:10px;background:#fffdf8;font:inherit;color:var(--ink)}
.panel input[type=file]{margin:.4em 0;font:inherit}
.panel input[type=url]{width:100%;padding:.7em .9em;border:1px solid var(--line);border-radius:10px;background:#fbf6ec;font:inherit;color:var(--ink)}
.strategy-book section{margin:18px 0}
.strategy-book textarea{margin-top:6px}
.lead{font-size:1.05rem}
h4.sub,h3.sub{font-family:"Fraunces",Georgia,serif;font-weight:500}
.saved{margin:0 0 18px;background:rgba(63,107,70,.08);border-left:3px solid #3f6b46;border-radius:8px;padding:.6em 1em;color:#3f6b46}
.card h1{font-size:2rem}
.card input[type=email]{display:block}
.panel h2[id]{scroll-margin-top:90px}
.panel[id]{scroll-margin-top:90px}
@media(max-width:640px){
  .portal{padding:24px 18px 0}
  .panel{padding:20px 18px}
  .dash-head h1{font-size:1.6rem}
  .seg button{padding:.4em .6em}
  form.seg{display:flex;flex-wrap:wrap;flex:1 1 100%;width:100%;max-width:100%;border-radius:12px}
  form.seg button{flex:1 0 auto;border-bottom:1px solid var(--line)}
  .dial-row > *{min-width:0}
  #danger-bar{position:static}
}
/* g34author: a long address on the code step wraps at 390 px; the pause chips are a thumb tall. */
#email-echo{overflow-wrap:anywhere}
.opts .link.opt{min-height:32px}
.dot.paused{background:var(--line)}
/* g34c: "I would like to talk to an editor" is the quiet last line of every page; the delivered
   page's testimonial panel sits in the same place. */
.talk-last{margin:28px 0 8px;text-align:center}
.talk-last form{display:inline}
.talk-last .link.subtle-link{font-size:.85rem;color:var(--ink-soft);text-decoration:underline}
.panel.talk-last{text-align:left}
.tm-credit{border:none;padding:0;margin:12px 0 6px}
.tm-credit legend{padding:0;margin-bottom:4px}
.opt-line{display:block;margin:4px 0}
/* collapse (portal.chapters_fold, off until wording card collapse-W1 is approved): the chapter list
   folds under its own "Your chapters"; it slides open where the browser can, at once for a reader
   who asked for less motion. */
.plan-fold>summary{cursor:pointer;list-style:none}
.plan-fold>summary::-webkit-details-marker{display:none}
.plan-fold>summary::before{content:"\25B8" / "";display:inline-block;margin-right:6px;transition:transform .2s ease}
.plan-fold[open]>summary::before{transform:rotate(90deg)}
.plan-fold>summary:focus-visible{outline:2px solid var(--oxblood);outline-offset:2px}
.plan-count{color:var(--ink-soft);font-weight:400}
.plan-fold{interpolate-size:allow-keywords}
.plan-fold::details-content{block-size:0;overflow:clip;transition:block-size .25s ease,content-visibility .25s allow-discrete}
.plan-fold[open]::details-content{block-size:auto}
@media (prefers-reduced-motion:reduce){.plan-fold::details-content,.plan-fold>summary::before{transition:none}}
/* ---- 6. a11y (WCAG 2.2 AA; sections 1 and 2 stay v3's bytes, these rules win after them) ----
   A focused control wears a ring a reader can see (a darker gold, 4.8:1 or more on every paper
   here); a field's edge is dark enough to find (3:1) and its example text dark enough to read
   (4.5:1); gold words are the darker gold; the fixed header (and the sticky bar at the foot) never
   cover the control Tab lands on; the "+" of a fold is not read out as a word. */
:root{--gold-ink:#7a5a1e;--edge:#857866;--hint:#6b5f4e}
a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,
textarea:focus-visible{outline:3px solid var(--gold-ink);outline-offset:2px}
input::-webkit-calendar-picker-indicator:focus-visible{outline:3px solid var(--gold-ink);outline-offset:2px}
/* the staff view's banner is dark red: its link and button wear a white ring, and a control Tab
   lands on stops above the banner */
.staff-view a:focus-visible,.staff-view button:focus-visible{outline-color:#fff}
input::placeholder,textarea::placeholder{color:var(--hint);opacity:1}
input[type=email],input[type=text],#code,#profile-name,main.portal textarea,main.portal input[type=url],
main.portal input[type=date],main.portal input:not([type]),main.portal select,.panel textarea,
.panel input[type=url],.waitlist select{border-color:var(--edge)}
.plan-row.status-material_in .plan-status{color:var(--gold-ink)}
html{scroll-padding-top:6rem}
html:has(#danger-bar){scroll-padding-bottom:5rem}
.dial-title::after,.deliv-title::after{content:"+" / ""}
details[open] > summary.dial-title::after,details[open] > summary.deliv-title::after{content:"–" / ""}
@media(max-width:640px){html:has(#danger-bar){scroll-padding-bottom:1rem}}
html:has(.staff-view){scroll-padding-bottom:9rem}
@media(max-width:640px){html:has(.staff-view){scroll-padding-bottom:16rem}}
/* a fieldset is as narrow as the page (by default it is never narrower than what it holds: the
   staff view, which disables each form inside one, scrolled sideways on a phone) */
fieldset{min-inline-size:0}
