/* Follow-up, participant report and admin review. Tokens live in app.css. */

.nav-link { font-weight: 700; font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
.section-title { margin: 0; font-weight: 600; font-size: clamp(36px, 5vw, 64px); line-height: 1; letter-spacing: -0.02em; }
.pre-wrap { white-space: pre-wrap; }

/* ---------- Follow-up on the situation page ---------- */

.answer-block { display: flex; flex-direction: column; gap: 10px; }
.follow-up { display: flex; flex-direction: column; gap: 14px; padding-top: 6px; }
.eyebrow-accent { color: var(--ink); }   /* small text: ink for contrast; the bar beside it stays tomato */
.follow-up-question { margin: 0; font-size: 28px; line-height: 1.25; font-weight: 700; padding-left: 20px; border-left: 10px solid var(--ink); }
.follow-up-question-small { font-size: 20px; padding-left: 16px; border-left-width: 8px; }
.answer-input-short { min-height: 180px; }

/* ---------- Participant report ---------- */

.report-hero { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 48px; padding: 64px clamp(32px, 7vw, 100px) 40px; }
.report-hero-main { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.report-hero-side { margin: 0; font-weight: 700; font-size: 15px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); }

.report-body { padding: 0 clamp(32px, 7vw, 100px) 80px; }
.report-card { max-width: 1040px; }
.report-card-strip { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 16px 28px; background: var(--ink); color: var(--white); font-weight: 700; font-size: 15px; letter-spacing: 0.18em; text-transform: uppercase; }
.report-grid { padding: 36px 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 36px; }
.report-section { display: flex; flex-direction: column; gap: 16px; }
.report-section p { margin: 0; }
.report-heading { margin: 0; display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 18px; letter-spacing: 0.16em; text-transform: uppercase; }
.mark-square { width: 16px; height: 16px; background: var(--ink); flex: 0 0 auto; }
.mark-ring { width: 16px; height: 16px; border: 3px solid var(--ink); border-radius: 50%; flex: 0 0 auto; }
.report-try { margin: 0 28px 28px; padding: 24px; background: var(--orange); color: var(--white); display: flex; flex-direction: column; gap: 8px; }
.report-try p { margin: 0; font-size: 22px; font-weight: 500; line-height: 1.35; }
.report-try-label { font-weight: 800; font-size: 15px; letter-spacing: 0.18em; text-transform: uppercase; }
.report-read { margin: 0 28px 32px; padding-top: 20px; border-top: var(--rule-thin); display: flex; flex-direction: column; gap: 6px; }
.report-read-item { margin: 0; }

.report-situations { border-top: var(--rule); padding: 64px clamp(32px, 7vw, 100px) 80px; display: flex; flex-direction: column; gap: 16px; }
.accordion { border-bottom: var(--rule); max-width: 1040px; margin-top: 12px; }
.accordion-item { border-top: var(--rule); padding: 16px 0; }
.accordion-item summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 16px; font-weight: 700; font-size: 20px; }
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-number { color: var(--orange); font-size: 26px; flex: 0 0 40px; }
.accordion-title { flex: 1 1 auto; }
.accordion-mark { color: var(--orange); }
.accordion-item[open] .accordion-mark { transform: rotate(45deg); }
.accordion-body { display: flex; flex-direction: column; gap: 10px; padding: 16px 0 8px 56px; }
.accordion-body p { margin: 0; }

.band-orange { background: var(--ink); color: var(--cream); padding: 64px clamp(32px, 7vw, 100px); display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; }
.band-orange h2 { margin: 0; color: var(--orange); flex: 1 1 520px; font-weight: 700; font-size: clamp(34px, 5vw, 60px); line-height: 1; letter-spacing: -0.02em; }
.band-orange p { margin: 0; flex: 1 1 300px; font-size: 21px; line-height: 1.45; }

/* ---------- Admin review ---------- */

.review-page { padding: 40px var(--gutter) 64px; display: flex; flex-direction: column; gap: 20px; font-size: 17px; }
.review-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.review-head .eyebrow { margin-bottom: 10px; }
.review-head a { text-decoration: none; }

.queue { list-style: none; margin: 0; padding: 0; border-bottom: var(--rule); max-width: 1040px; }
.queue-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 18px 4px; border-top: var(--rule); text-decoration: none; min-height: 44px; }
.queue-row:hover { background: var(--cream-deep); color: var(--ink); }
.queue-who { display: flex; flex-direction: column; flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; }
.queue-who strong { font-size: 20px; }
.queue-when { flex: 0 0 auto; font-size: 16px; }
.stage-dot-ready { background: var(--orange); }

.review-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 0; border: var(--rule); background: var(--white); }
.review-column { padding: 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.review-column + .review-column { border-left: var(--rule); }
.review-column p { margin: 0; }
.review-title { margin: 0; font-weight: 600; font-size: 30px; line-height: 1; letter-spacing: -0.02em; }
.review-meta { font-weight: 700; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }

.tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.tab { width: 44px; height: 44px; border: var(--rule-thin); border-radius: 0; background: var(--cream); font-family: inherit; font-weight: 700; font-size: 15px; color: var(--ink); cursor: pointer; }
.tab.is-active { background: var(--ink); color: var(--white); }
.tab.is-empty { border-style: dashed; }
.tab:focus-visible { outline: 4px solid var(--orange); outline-offset: 2px; }

.review-scenario { border: var(--rule-thin); padding: 10px 14px; background: var(--cream); }
.review-scenario summary { cursor: pointer; font-weight: 700; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; }
.review-scenario p { margin-top: 10px; }
.answer-white { background: var(--cream); }

.internal-box { padding: 16px 18px; background: var(--ink); color: var(--cream); display: flex; flex-direction: column; gap: 8px; }
.internal-label { font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange-bright); }

/* Participants */
/* Pinned toolbar: stays at the top of the window while the lists scroll under it. */
.participants-page { gap: 16px; }
.participants-bar { position: sticky; top: 0; z-index: 5; background: var(--cream); margin: 0 calc(-1 * var(--gutter)); padding: 12px var(--gutter) 14px; border-bottom: var(--rule); display: flex; flex-direction: column; gap: 10px; }
.participants-bar-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; }
.participants-heading { margin: 0; font-weight: 700; font-size: clamp(32px, 4vw, 44px); line-height: 1; letter-spacing: -0.02em; }
.participants-counts { font-size: 16px; font-weight: 500; }
.participants-refresh { margin-left: auto; min-height: 44px; padding: 0 16px; font-size: 14px; }
.participants-tools { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 12px 24px; align-items: end; max-width: 1040px; }
.participants-tool { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.participants-tool .field-row { flex-wrap: nowrap; }
.participants-tool .review-input { min-width: 0; }
.participants-tool .button { min-height: 0; padding: 0 18px; font-size: 15px; }
.participants-bar .notice, .participants-bar .field-hint { margin: 0; max-width: 1040px; }
@media (max-width: 700px) {
    .participants-tools { grid-template-columns: minmax(0, 1fr); }
    .participants-refresh { margin-left: 0; }
    .participants-bar { position: static; }   /* stacked, it would cover too much of a phone screen */
}
.participants-title { margin-top: 24px; }
.participant-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.participant-actions .button, .queue-row > .button { min-height: 44px; padding: 0 16px; font-size: 14px; }
.participant-off .queue-who { opacity: 0.6; }

/* Reading list: items on the left, the add/edit form on the right; stacked below 1180px. */
.reading-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(560px, 720px); gap: 40px; align-items: start; }
.reading-lists { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.reading-lists .queue + .card-title { margin-top: 18px; }
.reading-row { width: 100%; background: transparent; border-left: 0; border-right: 0; border-bottom: 0; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.reading-row-selected { background: var(--cream-deep); }
.reading-intro { margin: 0; font-size: 18px; max-width: 62ch; }
.reading-fit { font-size: 14px; }
.reading-filter { max-width: 420px; }

/* Pinned beside the lists. Sized to fit a laptop screen; scrolls inside only if the window is shorter. */
.reading-form { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; min-width: 0; padding: 20px 24px; gap: 14px; }
.reading-form .review-input { padding: 8px 12px; font-size: 16px; }
.reading-form .review-actions { position: sticky; bottom: -20px; z-index: 2; background: var(--white); margin: 0 -24px -20px; padding: 14px 24px 20px; border-top: var(--rule-thin); align-items: center; }
.reading-form-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.reading-form-head .card-title { margin: 0; }
.reading-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.reading-field .field-label { margin: 0; }
.reading-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.field-label-note { font-weight: 400; letter-spacing: 0; text-transform: none; font-size: 13px; margin-left: 6px; }
.reading-active { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font-weight: 600; cursor: pointer; }
.reading-active input { width: 20px; height: 20px; accent-color: var(--ink); }

/* Segmented control: radios drawn as joined buttons. */
.segmented { display: inline-flex; border: var(--rule-thin); background: var(--white); flex: 0 0 auto; }
.segment { position: relative; padding: 6px 14px; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; cursor: pointer; user-select: none; }
.segment + .segment { border-left: var(--rule-thin); }
.segment input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segment-on { background: var(--ink); color: var(--white); }
.segment:has(input:focus-visible) { outline: 3px solid var(--orange); outline-offset: 2px; z-index: 1; }
.segmented-small .segment { padding: 3px 9px; font-size: 12px; }

/* Dimensions: two columns of compact cells. */
.reading-dimensions { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.reading-dimensions legend { grid-column: 1 / -1; padding: 0; margin-bottom: 6px; }
.dimension-fit { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 6px 8px 6px 10px; border: var(--rule-thin); background: var(--white); }
.dimension-fit-strong { background: var(--cream-deep); }
.dimension-fit-also { background: var(--cream); }
.dimension-name { font-size: 14px; font-weight: 600; line-height: 1.2; min-width: 0; }
.dimension-pick { position: relative; display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border: var(--rule-thin); background: var(--white); font-size: 14px; font-weight: 600; line-height: 1.25; cursor: pointer; }
.dimension-pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.dimension-pick-on { background: var(--ink); color: var(--white); }
.dimension-pick:has(input:focus-visible) { outline: 3px solid var(--orange); outline-offset: 2px; }

/* Tag box: chosen items as tags; the rest drop down on focus. */
.tagbox { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 44px; padding: 5px 8px; border: 3px solid var(--ink); background: var(--white); cursor: text; }
.tagbox:focus-within { outline: 4px solid var(--orange); outline-offset: 2px; }
.tagbox-tags { display: contents; list-style: none; }
.tag { display: inline-flex; align-items: center; gap: 2px; padding: 2px 2px 2px 10px; background: var(--ink); color: var(--white); font-size: 14px; font-weight: 600; }
.tag-remove { border: 0; background: transparent; color: var(--white); font: inherit; font-size: 18px; line-height: 1; width: 28px; height: 28px; cursor: pointer; }
.tag-remove:hover, .tag-remove:focus-visible { background: var(--orange); outline: none; }
.tagbox-input { flex: 1 1 120px; min-width: 120px; border: 0; padding: 4px; font: inherit; font-size: 16px; background: transparent; color: var(--ink); }
.tagbox-input:focus { outline: none; }
.tagbox-list { position: absolute; z-index: 5; left: -3px; right: -3px; top: calc(100% + 3px); max-height: 280px; overflow-y: auto; margin: 0; padding: 0; list-style: none; border: 3px solid var(--ink); background: var(--white); box-shadow: 6px 6px 0 var(--ink); }
.tagbox-list-up { top: auto; bottom: calc(100% + 3px); }
.tagbox-option { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; cursor: pointer; }
.tagbox-option + .tagbox-option { border-top: 1px solid var(--cream-deep); }
.tagbox-option strong { font-size: 15px; }
.tagbox-option span { font-size: 13px; line-height: 1.35; }
.tagbox-option-active { background: var(--cream-deep); }
.tagbox-empty { padding: 10px 12px; font-size: 14px; }

@media (max-width: 1180px) {
    .reading-layout { grid-template-columns: minmax(0, 1fr); }
    .reading-form { position: static; max-height: none; overflow: visible; }
    .reading-form .review-actions { position: static; margin: 0; padding: 14px 0 0; }
}
@media (max-width: 520px) {
    .reading-dimensions { grid-template-columns: minmax(0, 1fr); }
    .reading-form-head { flex-wrap: wrap; }
}

.review-input { width: 100%; padding: 12px 14px; border: 3px solid var(--ink); border-radius: 0; background: var(--white); font-family: inherit; font-size: 17px; line-height: 1.45; color: var(--ink); resize: vertical; }
.review-input:disabled { background: var(--cream); }
.review-input:focus-visible { outline: 4px solid var(--orange); outline-offset: 2px; }
.review-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 14px; border-top: var(--rule); margin-top: 6px; }
.review-actions .button { min-height: 52px; padding: 0 18px; font-size: 15px; }

@media (max-width: 760px) {
    .nav-link { font-size: 13px; }
    .follow-up-question { font-size: 23px; padding-left: 16px; border-left-width: 8px; }
    .report-hero { padding: 32px var(--gutter) 24px; }
    .report-body { padding: 0 var(--gutter) 48px; }
    .report-card-strip { padding: 12px 18px; font-size: 13px; }
    .report-grid { padding: 24px 18px; gap: 28px; }
    .report-try { margin: 0 18px 22px; padding: 18px; }
    .report-try p { font-size: 19px; }
    .report-read { margin: 0 18px 24px; }
    .report-situations { padding: 40px var(--gutter) 48px; }
    .accordion-item summary { font-size: 17px; gap: 12px; }
    .accordion-number { font-size: 22px; flex-basis: 32px; }
    .accordion-body { padding-left: 0; }
    .band-orange { padding: 44px var(--gutter); }
    .band-orange p { font-size: 18px; }
    .review-page { padding: 24px var(--gutter) 48px; }
    .review-column { padding: 18px 16px; }
    .review-column + .review-column { border-left: 0; border-top: var(--rule); }
    .review-actions .button { flex: 1 1 100%; }
}
