/* Speechwriter · WindEurope. Editorial restraint: white page, hairlines, one strong blue, the speech set like a manuscript. */
:root {
  --we-blue: #005596;
  --we-sky: #79bde8;
  --ink: #313131;
  --ink-2: rgba(49, 49, 49, .82);
  --ink-3: rgba(49, 49, 49, .7);
  --line: rgba(49, 49, 49, .14);
  --paper: #ffffff;
  --wash: #f4f8fb;
  --safe: #2e7d32;
  --verify: #a15c00;
  --wrong: #c62828;
  --ui: 'Manrope', system-ui, sans-serif;
  --serif: 'Source Serif 4', Georgia, serif;
  --r: 14px;
  color-scheme: light;
}

html, body { background: var(--paper); color: var(--ink); }
body { font-family: var(--ui); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
::selection { background: var(--we-sky); color: #00284a; }
a { color: var(--we-blue); }
:focus-visible { outline: 2px solid var(--we-blue); outline-offset: 2px; border-radius: 6px; }

.shell { max-width: 820px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--ink-3); }

/* Top bar */
.topbar { border-bottom: 1px solid var(--line); padding: 14px 0; position: sticky; top: 0; background: rgba(255,255,255,.94); backdrop-filter: blur(6px); z-index: 20; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-logo { height: 30px; width: auto; }
.brand-name { font-weight: 600; color: var(--ink); letter-spacing: .01em; padding-left: 14px; border-left: 1px solid var(--line); }
.link-btn { background: none; border: 0; color: var(--we-blue); font-weight: 600; font-size: 14px; padding: 4px 0; }

/* Type */
.label { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-3); margin: 0 0 8px; font-weight: 600; }
.display { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 5vw, 42px); line-height: 1.1; letter-spacing: -.01em; margin: 0; }
.lede { color: var(--ink-2); margin: 12px 0 0; max-width: 60ch; }
.page-head { padding: 40px 0 24px; }
.section-title { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-3); font-weight: 700; margin: 0; }

/* Fields */
.field-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; color: var(--ink); background: var(--paper); transition: border-color .2s, box-shadow .2s; }
.field:focus { outline: none; border-color: var(--we-blue); box-shadow: 0 0 0 3px rgba(0, 85, 150, .12); }
.area { resize: vertical; min-height: 110px; padding-right: 56px; line-height: 1.55; }
.form-error { color: var(--wrong); font-size: 14px; margin: 12px 0 0; }

/* Buttons: ghost pill that fills on hover; solid for the forward step */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--we-blue); color: var(--we-blue); background: transparent; border-radius: 999px; padding: 11px 22px; font-weight: 600; font-size: 15px; text-decoration: none; transition: background .2s, color .2s; }
.pill:hover { background: var(--we-blue); color: #fff; }
.pill-solid { background: var(--we-blue); color: #fff; }
.pill-solid:hover { background: #00467c; }
.pill:disabled { opacity: .45; pointer-events: none; }
.actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.actions .muted { margin-right: auto; }

/* Login */
.login-card { max-width: 380px; margin: 12vh auto 0; }

/* Speech list */
.speech-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.speech-list li { border-bottom: 1px solid var(--line); }
.speech-list li { display: flex; align-items: center; gap: 12px; }
.speech-list a { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 18px 4px; text-decoration: none; color: var(--ink); }
.speech-list a:hover .sl-title { color: var(--we-blue); }
.sl-title { font-family: var(--serif); font-size: 20px; }
.sl-meta { color: var(--ink-3); font-size: 14px; }
.del-btn { flex: none; width: 34px; height: 34px; border-radius: 8px; border: 1px solid transparent; background: none; display: grid; place-items: center; opacity: .5; transition: opacity .15s, border-color .15s; }
.del-btn::before { content: ''; width: 16px; height: 16px; background: var(--ink-2); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 7h16M10 11v6M14 11v6M6 7l1 13h10l1-13M9 7V4h6v3'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 7h16M10 11v6M14 11v6M6 7l1 13h10l1-13M9 7V4h6v3'/%3E%3C/svg%3E") center / contain no-repeat; }
.speech-list li:hover .del-btn, .del-btn:focus-visible { opacity: 1; }
.del-btn:hover { border-color: var(--wrong); }
.del-btn:hover::before { background: var(--wrong); }
@media (hover: none) { .del-btn { opacity: .8; } }

/* Steps indicator */
.steps { list-style: none; display: flex; gap: 6px; padding: 28px 0 0; margin: 0; flex-wrap: wrap; }
.steps li { font-size: 13px; color: var(--ink-3); font-weight: 600; display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; }
.steps li span { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); display: inline-grid; place-items: center; font-size: 12px; }
.steps li.done { color: var(--ink-2); cursor: pointer; }
.steps li.done span { background: var(--we-sky); border-color: var(--we-sky); color: #00284a; }
.steps li.current { color: var(--we-blue); background: var(--wash); }
.steps li.current span { background: var(--we-blue); border-color: var(--we-blue); color: #fff; }

/* Questions */
.meta-row { margin-bottom: 8px; }
.question { padding: 28px 0; border-top: 1px solid var(--line); }
.q-head { display: flex; gap: 14px; align-items: flex-start; }
.q-num { font-family: var(--serif); font-size: 26px; line-height: 1; color: var(--we-blue); min-width: 22px; }
.q-title { font-weight: 700; font-size: 17px; display: block; }
.q-help { color: var(--ink-2); margin: 4px 0 0; }
.req { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--we-blue); font-weight: 700; margin-left: 6px; }
.q-more { margin: 10px 0 12px 36px; font-size: 14px; color: var(--ink-2); }
.q-more summary { color: var(--we-blue); font-weight: 600; cursor: pointer; width: fit-content; }
.q-more ul { margin: 8px 0 0; padding-left: 18px; }
.q-more li { margin: 3px 0; }
.question .mic-field { margin-left: 36px; }

/* Microphone */
.mic-field { position: relative; }
.mic { position: absolute; right: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.mic::before { content: ''; width: 16px; height: 16px; background: var(--we-blue); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 15a3 3 0 0 0 3-3V6a3 3 0 0 0-6 0v6a3 3 0 0 0 3 3Zm5-3a5 5 0 0 1-10 0H5a7 7 0 0 0 6 6.92V22h2v-3.08A7 7 0 0 0 19 12h-2Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 15a3 3 0 0 0 3-3V6a3 3 0 0 0-6 0v6a3 3 0 0 0 3 3Zm5-3a5 5 0 0 1-10 0H5a7 7 0 0 0 6 6.92V22h2v-3.08A7 7 0 0 0 19 12h-2Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.mic:hover { border-color: var(--we-blue); }
.mic.connecting { background: var(--wash); }
.mic.recording { background: var(--wrong); border-color: var(--wrong); animation: pulse 1.4s ease-in-out infinite; }
.mic.recording::before { background: #fff; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(198, 40, 40, .35); } 50% { box-shadow: 0 0 0 8px rgba(198, 40, 40, 0); } }
.interim { color: var(--ink-3); }

/* Structure */
.movement { padding: 22px 0 6px; border-top: 1px solid var(--line); }
.movement:first-child { border-top: 0; }
.movement h3 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--we-blue); font-weight: 700; margin: 0 0 10px; }
.points { list-style: none; padding: 0; margin: 0; }
.points li { display: grid; grid-template-columns: 34px 1fr; padding: 8px 0; }
.p-n { font-family: var(--serif); color: var(--ink-3); }
.p-text { font-family: var(--serif); font-size: 19px; line-height: 1.4; }
.p-data { display: block; font-family: var(--ui); font-size: 14px; color: var(--ink-2); margin-top: 3px; }
.p-changed .p-text { background: linear-gradient(transparent 62%, rgba(121, 189, 232, .45) 0); }

/* Sources (small print under the structure) */
.sources { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line); }
.sources-title { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-3); font-weight: 700; margin: 0 0 8px; }
.sources ol { margin: 0; padding-left: 18px; font-size: 12px; line-height: 1.5; color: var(--ink-3); }
.sources li { margin: 2px 0; }
.sources .src-title { color: var(--ink-2); }

/* Manuscript */
.manuscript { font-family: var(--serif); font-size: 20px; line-height: 1.65; padding: 8px 0 12px; }
.manuscript p { margin: 0 0 1.05em; max-width: 64ch; position: relative; }
.manuscript mark { background: none; padding: 0; border-bottom: 1px dotted var(--ink-3); color: inherit; transition: background .2s; }
.manuscript mark.hl { background: rgba(121, 189, 232, .45); border-radius: 2px; }
.manuscript .changed { background: linear-gradient(transparent 62%, rgba(121, 189, 232, .3) 0); }

/* Facts */
.facts { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 24px; }
.fact-list { list-style: none; padding: 0; margin: 14px 0 0; }
.fact-list li { display: grid; grid-template-columns: 30px 92px 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; scroll-margin-top: 90px; }
.f-n { color: var(--ink-3); font-size: 13px; padding-top: 2px; text-decoration: none; }
.f-n:hover { color: var(--we-blue); }
.fact-list li:target { background: var(--wash); }
/* Footnote markers in the text */
sup.fn { font-family: var(--ui); font-size: 0.55em; line-height: 0; margin-left: 1px; vertical-align: super; }
sup.fn a { color: var(--we-blue); text-decoration: none; }
sup.fn a:target, .manuscript mark:target { background: var(--wash); }
sup.fn a { scroll-margin-top: 120px; }
.chip { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; height: fit-content; width: fit-content; }
.chip-Safe { color: var(--safe); background: rgba(46, 125, 50, .09); }
.chip-Verify { color: var(--verify); background: rgba(161, 92, 0, .1); }
.chip-Corrected { color: var(--we-blue); background: rgba(0, 85, 150, .08); }
.f-span { font-weight: 600; }
.f-detail { display: block; color: var(--ink-2); font-size: 14px; margin-top: 2px; }
.f-detail a { word-break: break-word; }
.f-was { text-decoration: line-through; color: var(--ink-3); }

/* Notes and feedback */
.note { background: var(--wash); border-left: 3px solid var(--we-sky); padding: 12px 14px; border-radius: 0 10px 10px 0; color: var(--ink-2); font-size: 15px; }
.feedback { border-top: 1px solid var(--line); margin-top: 28px; padding: 24px 0 24px; }
.step-view { padding-bottom: 72px; }
.opt { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); font-weight: 700; margin-left: 6px; }

/* Copy on hover: appears on hover or focus, always visible on touch */
.copy-wrap { position: relative; }
.copy-btn { position: absolute; top: 2px; right: -6px; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); display: grid; place-items: center; opacity: 0; transition: opacity .15s, border-color .15s; z-index: 2; }
.copy-btn::before { content: ''; width: 15px; height: 15px; background: var(--ink-2); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='9' y='9' width='12' height='12' rx='2'/%3E%3Cpath d='M5 15V5a2 2 0 0 1 2-2h10'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='9' y='9' width='12' height='12' rx='2'/%3E%3Cpath d='M5 15V5a2 2 0 0 1 2-2h10'/%3E%3C/svg%3E") center / contain no-repeat; }
.copy-btn.ok::before { background: var(--safe); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E"); }
.copy-btn:hover { border-color: var(--we-blue); }
.copy-wrap:hover > .copy-btn, .copy-wrap:focus-within > .copy-btn, .copy-btn:focus-visible { opacity: 1; }
@media (hover: none) { .copy-btn { opacity: .85; } }
.manuscript p.copy-wrap { padding-right: 34px; }

/* Progress overlay */
.overlay { position: fixed; inset: 0; background: rgba(255, 255, 255, .86); backdrop-filter: blur(3px); display: grid; place-items: center; z-index: 50; padding: 16px; }
.overlay[hidden] { display: none; }
.overlay-card { width: min(440px, 100%); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; box-shadow: 0 20px 60px rgba(0, 40, 74, .12); }
.progress-text { font-family: var(--serif); font-size: 22px; margin: 0 0 16px; }
.bar { height: 4px; background: var(--wash); border-radius: 4px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 8%; background: var(--we-blue); transition: width 1s linear; }

.view[hidden], .step-view[hidden] { display: none !important; }

@media (max-width: 575px) {
  .question .mic-field, .q-more { margin-left: 0; }
  .fact-list li { grid-template-columns: 24px 1fr; }
  .fact-list li .f-n { grid-row: span 2; }
  .fact-list li .chip { grid-column: 2; }
  .fact-list li .f-body { grid-column: 2; }
  .manuscript { font-size: 18px; }
  .brand-name { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

.lede-wide { max-width: none; }
.overlay-grey { background: rgba(28, 36, 44, .55); backdrop-filter: blur(2px); }
.gate-card { width: min(620px, 100%); }
.gate-title { font-family: var(--serif, 'Source Serif 4', serif); font-size: 22px; line-height: 1.3; margin: 6px 0 16px; color: var(--ink); }
.gate-list { margin: 0 0 18px; padding-left: 20px; }
.gate-list li { margin: 0 0 8px; color: var(--ink-2); }
.gate-area { font-weight: 700; color: var(--ink); }

/* Step meta line, feedback question, sources list, time estimate */
.meta { color: var(--ink-3); font-size: 14px; margin: 10px 0 0; }
.feedback .q-head { margin-bottom: 14px; }
.sources { margin-top: 8px; }
.sources-total { text-transform: none; letter-spacing: 0; font-weight: 500; }
.sources-scroll { max-height: 17em; overflow-y: auto; padding-right: 8px; }
.sources-scroll ol { padding-left: 26px; }
.progress-eta { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 13px; margin-left: 4px; white-space: nowrap; display: inline-block; }

/* 23 Nov 2026: editing in place, scrolling fact list, confirmation */
.feedback .q-more { margin-left: 0; }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.list-scroll { max-height: 40em; overflow-y: auto; padding-right: 8px; }
.list-scroll .fact-list { margin-top: 0; }
.facts .section-title { margin-bottom: 14px; }
.confirm-text { color: var(--ink-2); margin: 0 0 6px; }

/* Points and paragraphs (editable on Steps 3 and 4) */
.part { border-radius: 6px; transition: background .15s; }
.points li.part:hover { background: var(--wash); }
.manuscript p.part { cursor: text; padding-left: 10px; margin-left: -10px; border-left: 2px solid transparent; }
.manuscript p.part:hover { background: rgba(121, 189, 232, .08); }
.manuscript p.editing { background: var(--paper); outline: 1px dashed var(--we-blue); outline-offset: 4px; }
.manuscript p.edited { border-left-color: var(--we-sky); }
.manuscript p.saved { background: rgba(46, 125, 50, .07); }


/* Step bar with its navigation row: back on the left edge of the first step, forward on the right edge of the last */
.steps-box { display: inline-flex; flex-direction: column; max-width: 100%; }
.step-nav { display: flex; justify-content: space-between; gap: 16px; padding: 10px 12px 0 6px; min-height: 30px; }
.nav-link { font-size: 13px; font-weight: 600; color: var(--ink-3); text-decoration: none; }
.nav-link:hover { color: var(--we-blue); }
.nav-back::before { content: '\2039'; margin-right: 6px; font-size: 15px; }
.nav-fwd::after { content: '\203A'; margin-left: 6px; font-size: 15px; }
.nav-link[hidden] { display: none; }
.page-head { padding-top: 24px; }

/* The i after a point or paragraph, and the black hover box */
.info-i { display: inline-grid; place-items: center; width: 17px; height: 17px; margin-left: 7px; border-radius: 50%; border: 1px solid var(--ink-3); background: transparent; color: var(--ink-3); font: italic 600 11px/1 var(--serif); padding: 0; vertical-align: 2px; cursor: help; }
.info-i:hover, .info-i:focus-visible { border-color: var(--ink); background: var(--ink); color: #fff; }
.tip { position: absolute; z-index: 60; max-width: min(380px, calc(100vw - 24px)); background: #16191d; color: #fff; border-radius: 8px; padding: 10px 12px; font: 400 13.5px/1.45 var(--ui); box-shadow: 0 10px 28px rgba(0, 0, 0, .22); }
.tip[hidden] { display: none; }
.tip p { margin: 0; }
.tip-row + .tip-row { margin-top: 6px; }
.tip-label { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .58); margin-bottom: 1px; }
.tip-head { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--we-sky); margin-bottom: 6px !important; }
.tip-flag { color: #f4c27a; margin-bottom: 6px !important; }
.tip a { color: var(--we-sky); white-space: nowrap; }
.tip-list { margin: 2px 0 0; padding-left: 15px; }
.tip-list li { margin: 1px 0; }
.tip.tip-fact { max-width: min(340px, calc(100vw - 24px)); }
.points li.part { padding-left: 4px; margin-left: -4px; }
.flash { background: rgba(121, 189, 232, .35) !important; transition: background .4s; border-radius: 4px; }

/* Live fact view in the progress window (23 Nov 2026) */
.chip-Incorrect { color: #b3261e; background: rgba(179, 38, 30, .08); }
.fact-live { margin: -4px 0 18px; overflow: hidden; }
.fl-card { display: flex; gap: 12px; align-items: center; min-height: 112px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--wash);
  transition: transform .32s cubic-bezier(.2, .7, .2, 1), opacity .32s ease; }
.fl-card.fl-in { transform: translateX(48px); opacity: 0; }
.fl-card.fl-out { transform: translateX(-48px); opacity: 0; transition-duration: .26s; }
.fl-badge { flex: 0 0 82px; display: flex; align-items: center; }
.fl-badge .chip { animation: fl-pop .22s ease-out; }
.fl-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(0, 85, 150, .18); border-top-color: var(--we-blue); animation: fl-turn .8s linear infinite; margin-left: 4px; }
.fl-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.fl-span { margin: 0; font-weight: 600; font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fl-line { margin: 0; color: var(--ink-2); font-size: 13px; line-height: 1.4; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .3s ease, opacity .3s ease .05s, margin .3s ease; }
.fl-done .fl-line { max-height: 3.6em; opacity: 1; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@keyframes fl-turn { to { transform: rotate(360deg); } }
@keyframes fl-pop { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (max-width: 480px) { .fl-badge { flex-basis: 70px; } .fl-span { font-size: 14px; } }
@media (prefers-reduced-motion: reduce) {
  .fl-card, .fl-line { transition: opacity .2s ease; } .fl-card.fl-in, .fl-card.fl-out { transform: none; }
  .fl-spin { animation-duration: 2.4s; } .fl-badge .chip { animation: none; }
}

/* Vertical rhythm (Robin, 24 Nov 2026). Space follows meaning: what is read in one go sits close (--s-tight),
   related blocks get a short pause (--s-near), a change of subject gets a breather (--s-block), and the switch from
   reading to doing gets the largest gap (--s-section). One width for the whole page: the tagline's. */
:root { --s-tight: 6px; --s-near: 14px; --s-block: 36px; --s-section: 56px; }
@media (max-width: 575px) { :root { --s-near: 12px; --s-block: 28px; --s-section: 40px; } }

.steps { padding-top: 32px; }
.page-head { padding: var(--s-block) 0 var(--s-section); }
.page-head .label { margin-bottom: 10px; }
.tagline { margin-top: 20px; }
.tagline p { margin: 0; }
.tagline p + p { margin-top: 10px; }
.tagline strong { color: var(--ink); font-weight: 700; }
.head-actions { margin-top: 28px; }

/* The draft's word count belongs to the draft, so it sits right above it. */
.text-meta { margin: 0 0 var(--s-near); }


/* Step 1 */
.meta-row { margin-bottom: var(--s-block); }
.question { padding: var(--s-block) 0; }
.q-more { margin: 12px 0 var(--s-near) 36px; }
.actions { margin-top: 28px; }

/* Step 2 */
.movement { padding: 32px 0 8px; }
.movement:first-of-type { padding-top: 0; border-top: 0; }
.movement > .copy-btn { top: 24px; }
.movement:first-of-type > .copy-btn { top: -8px; }
.movement h3 { margin-bottom: 12px; }
.points li { padding: 9px 0; }

/* Sections that switch from reading to doing, or to the evidence */
.facts, .feedback { margin-top: var(--s-section); padding-top: var(--s-block); }
.facts .section-title { margin-bottom: 18px; }
.feedback .q-head { margin-bottom: 12px; }
.feedback .q-more { margin: 0 0 var(--s-near); }
.sources { margin-top: var(--s-block); }
.step-view { padding-bottom: 96px; }

/* Body text as wide as the tagline. */
.manuscript { padding: 0; }
.manuscript p { max-width: none; }

/* "What to share" (Robin, 24 Nov 2026): 2px smaller, list tighter and lighter, so the blue fields lead and the
   guidance stays in the background. */
.q-more { font-size: 12px; line-height: 1.45; color: var(--ink-3); }
.q-more summary { font-size: 12px; }
.q-more ul { margin-top: 6px; }
.q-more li { margin: 1px 0; }

/* Microphone: as far from the bottom edge as from the right. A textarea is inline by default, so the field box
   was a few pixels taller than the textarea and the button sat too low; block removes that gap. */
.mic-field .area { display: block; }
.mic { right: 10px; bottom: 10px; }

/* Speech title above the content, Steps 2 to 4 (24 Nov 2026): it frames what follows, so it sits close to it. */
.doc-head { margin: 0 0 32px; }
.doc-title { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.2; margin: 0; color: var(--ink); }
.doc-sub { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; }
.doc-stats { margin: 2px 0 0; color: var(--ink-3); font-size: 13px; }
@media (max-width: 575px) { .doc-title { font-size: 22px; } }

/* The step's own note, under the notes box and above the buttons (24 Nov 2026): plain text with a small label,
   read together with the box it refers to, so it sits close to it. */
.out-note { margin: 18px 0 0; }
.out-note-label { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-3); font-weight: 700; margin: 0 0 4px; }
.out-note-text { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; }

/* ---- LinkedIn post writer (3 Dec 2026). One workspace, two kinds: body[data-kind] shows one set of texts and fields. */
body:not([data-kind="post"]) .k-post { display: none !important; }
body[data-kind="post"] .k-speech { display: none !important; }

/* Tabs above the list: speeches or LinkedIn posts (admins only while the post writer is tested) */
.kind-tabs { display: flex; gap: 4px; padding-top: 28px; border-bottom: 1px solid var(--line); }
.kind-tabs[hidden] { display: none; }
.kind-tabs a { padding: 10px 16px; font-weight: 600; font-size: 15px; color: var(--ink-3); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.kind-tabs a:hover { color: var(--we-blue); }
.kind-tabs a.active { color: var(--we-blue); border-bottom-color: var(--we-blue); }
.kind-tabs + .page-head { padding-top: 28px; }

/* Step 2: the plan */
.plan-facts { margin: 8px 0 18px; display: grid; gap: 10px; }
.plan-facts .pl-row { display: grid; grid-template-columns: 130px 1fr; gap: 12px; }
.plan-facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); font-weight: 700; padding-top: 3px; }
.plan-facts dd { margin: 0; font-family: var(--serif); font-size: 18px; line-height: 1.4; }
.plan-facts .pl-why { display: block; font-family: var(--ui); font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.plan-tail { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 10px; }
.plan-tail dd { font-family: var(--ui); font-size: 15px; }
.pl-tag { display: inline-block; background: var(--wash); border-radius: 6px; padding: 1px 8px; margin: 0 4px 4px 0; font-size: 14px; }
.src-why { color: var(--we-blue); font-size: 13px; font-weight: 600; }
@media (max-width: 575px) { .plan-facts .pl-row { grid-template-columns: 1fr; gap: 2px; } }

/* Steps 3 and 4: the post as it will appear on the page */
.li-cut { border-left: 3px solid var(--we-sky); padding: 6px 0 6px 14px; margin: 4px 0 18px; }
.li-cut-label { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); font-weight: 700; margin: 0 0 4px; }
.li-cut-text { margin: 0; font-size: 15px; white-space: pre-line; }
.li-more { color: var(--ink-3); margin-left: 4px; }
.li-card { border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px 8px; background: var(--paper); box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.li-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.li-logo { width: 44px; height: 44px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; padding: 4px; }
.li-name { margin: 0; font-weight: 700; font-size: 15px; }
.li-sub { margin: 0; font-size: 13px; color: var(--ink-3); }
.manuscript .li-body p.part { font-family: var(--ui); font-size: 15px; line-height: 1.5; white-space: pre-line; margin: 0 0 14px; }
.manuscript .li-el p.part { font-family: var(--ui); font-size: 15px; white-space: pre-line; margin: 0; }
.li-elements { margin-top: 24px; }
.li-elements .section-title { margin-bottom: 8px; }
.li-el { padding: 10px 0; border-top: 1px solid var(--line); }
.li-el-label { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); font-weight: 700; margin: 0 0 4px; }
.tagmark { color: var(--we-blue); font-weight: 700; white-space: nowrap; }
.li-steps { margin: 14px 0; }
.li-step { margin: 0 0 6px; font-size: 14px; color: var(--ink); }
.li-step strong { font-weight: 700; }
.post-tags { margin: 28px 0 0; }
.post-tags .small { font-size: 14px; margin: 6px 0 8px; }
.tag-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.tag-list li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; overflow-wrap: anywhere; }
.tag-not { display: block; font-size: 13px; color: var(--wrong); }
#final-note { margin-top: 18px; }
.steps li i.st { font-style: normal; }
/* The preview, the cut and the steps use the interface font, not the manuscript serif of speeches. */
.manuscript .li-cut, .manuscript .li-card, .manuscript .li-steps, .manuscript .li-elements { font-family: var(--ui); }
.manuscript .li-head p, .manuscript .li-cut p, .manuscript .li-steps p, .manuscript .li-el-label { font-family: var(--ui); margin-top: 0; }
.manuscript .li-head p { margin-bottom: 0; line-height: 1.3; }
.manuscript .li-cut .li-cut-text { font-size: 15px; line-height: 1.5; margin-bottom: 0; }
.manuscript .li-cut .li-cut-label, .manuscript .li-el-label { font-size: 12px; line-height: 1.4; margin-bottom: 4px; }
.manuscript .li-steps .li-step { font-size: 14px; line-height: 1.45; margin-bottom: 6px; }
.manuscript .li-elements .section-title { font-family: var(--ui); }
/* Long links break inside the narrow phone card instead of running off the page (posts only). */
body[data-kind="post"] .li-card p.part, body[data-kind="post"] .fact-list .f-span, body[data-kind="post"] .li-steps p { overflow-wrap: anywhere; }
