/* ============ The members' Security & AI Briefing ============
   Every class is .briefing-*, so nothing here reaches another page. Colours
   are the tokens, so dark mode follows; the band is one of the inverse
   surfaces that stay dark in both modes. */
.briefing-band { background: var(--hero-bg); color: var(--on-dark); border-radius: var(--radius); padding: 32px 36px; margin-bottom: 18px; }
.briefing-band h1 { color: var(--on-dark); margin: 0; }
/* .app-main, to outrank chrome.css's ".app-main h1 + p". */
.app-main .briefing-band p { color: var(--on-dark-dim); font-size: 1rem; margin: 6px 0 0; }

.briefing-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--faint); font-size: .8125rem; margin: 0; }
.app-main .briefing-card h2 { margin: 8px 0 6px; }
.app-main .briefing-card h2.briefing-date { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 1.25rem; margin: 0 0 4px; }
.briefing-card h2 a { color: var(--navy); }
.briefing-card p:not(.briefing-meta) { margin: 0 0 8px; }

.briefing-chip { display: inline-block; font-size: .75rem; font-weight: 500; line-height: 1.5; padding: 0 9px; border: 1px solid var(--line-strong); border-radius: 12px; color: var(--muted); white-space: nowrap; }
.briefing-chip.is-act-now { background: var(--red-soft); border-color: var(--red-line); color: var(--red); }
.briefing-chip.is-recent { background: var(--blue-soft); border-color: var(--blue-line); color: var(--blue); }
.briefing-draft { font-weight: 500; color: var(--amber-dark); }

.app-main .briefing-card p.briefing-summary { color: var(--muted); line-height: 1.55; margin: 0 0 10px; text-wrap: pretty; }

.briefing-pitch { margin: 0 0 18px; padding-left: 20px; }

/* One article. The band answers the owner's two questions before anything else
   (what is this, what do I do), so the reading column can be left to the detail.
   The rows are auto then 1fr, so sources taller than the article push the slack
   under the comments instead of opening a gap between the two. It folds on the
   page's own width, because an owner's sidebar takes 248px of the window. */
.briefing-page { container: briefing / inline-size; }
.briefing-band.is-article { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 12px 32px; padding: 24px 36px 32px; }
.briefing-band :focus-visible { outline-color: var(--on-dark); }
.briefing-back { grid-column: 1 / -1; justify-self: start; color: var(--on-dark-dim); font-size: .8125rem; text-decoration: underline; text-underline-offset: 3px; }
.briefing-back:hover { color: var(--on-dark); }
.app-main .briefing-band.is-article h1 { font-size: clamp(1.5rem, 2.6vw, 2.125rem); line-height: 1.2; text-wrap: balance; }
.app-main .briefing-band.is-article p { line-height: 1.5; margin-top: 10px; }
.app-main .briefing-band .briefing-meta { color: var(--on-dark-dim); font-size: .8125rem; }
.app-main .briefing-band.is-article .briefing-meta { margin-top: 16px; }
.briefing-band .briefing-chip { border-color: var(--on-dark-dim); color: var(--on-dark); }
/* The error red itself: --red goes pale in dark mode, and the band does not change. */
.briefing-band .briefing-chip.is-act-now { background: #b42318; border-color: #b42318; color: var(--on-dark); }
.briefing-band .briefing-draft { color: var(--on-dark); }
.briefing-todo { align-self: start; padding-left: 32px; border-left: 1px solid color-mix(in srgb, var(--on-dark) 20%, transparent); }
.app-main .briefing-todo h2 { color: var(--on-dark-dim); font-size: .8125rem; font-weight: 500; margin: 0; }
.app-main .briefing-band .briefing-todo p { color: var(--on-dark); font-size: 1.0625rem; font-weight: 500; margin-top: 6px; }

.briefing-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); grid-template-rows: auto 1fr; gap: 18px; }
.briefing-article { grid-column: 1; }
.briefing-comments { grid-column: 1; align-self: start; }
.briefing-sources { grid-column: 2; grid-row: 1 / span 2; align-self: start; }

.briefing-body { color: var(--text); font-size: 1.0625rem; line-height: 1.65; text-wrap: pretty; }
.app-main .briefing-body h2 { font-size: 1.1875rem; margin: 24px 0 8px; }
.app-main .briefing-body h2:first-child { margin-top: 0; }
.briefing-body p { margin: 0 0 16px; }
.briefing-body > :last-child { margin-bottom: 0; }
.briefing-body a { text-decoration: underline; text-underline-offset: 3px; }

.app-main .briefing-sources h2 { margin: 0 0 4px; }
.briefing-sources ul { list-style: none; margin: 0; padding: 0; }
.briefing-sources li { padding: 12px 0; border-top: 1px solid var(--line); font-size: .875rem; line-height: 1.4; }
.briefing-sources li:first-child { border-top: 0; }
.briefing-sources li:last-child { padding-bottom: 0; }
.briefing-sources a { font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.briefing-sources a:hover { text-decoration-color: currentColor; }
.briefing-who { display: block; color: var(--muted-2); font-size: .8125rem; margin-top: 2px; }
.briefing-sources blockquote { color: var(--muted); font-size: .8125rem; margin: 6px 0 0; quotes: "\201C" "\201D"; }
.briefing-sources blockquote::before { content: open-quote; }
.briefing-sources blockquote::after { content: close-quote; }

.app-main .briefing-comments h2 { margin-bottom: 10px; }
.briefing-comment { padding: 12px 0; border-top: 1px solid var(--line); }
.briefing-comment p:last-child { margin-bottom: 0; }
.briefing-comment strong { color: var(--text); }
.briefing-comment-form { margin-top: 14px; }
.briefing-comment-form label { display: block; margin-bottom: 6px; }
.briefing-comment-form .panel-note { margin: 6px 0 10px; }

/* The drafts on the index and a day's stories in the console: one row a story,
   the chips one width so titles line up. */
.briefing-day-list { list-style: none; margin: 8px 0 0; padding: 0; }
.briefing-day-list li { display: flex; align-items: baseline; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.briefing-day-list li:first-child { border-top: 0; }
.briefing-day-list li:last-child { padding-bottom: 0; }
.briefing-day-list .briefing-chip { flex: none; min-width: 8.5em; text-align: center; }
.briefing-day-list a { color: var(--navy); font-size: .9375rem; font-weight: 500; line-height: 1.35; }

/* One day's page: each story in its own card, its text as wide as the band
   (Alex, 2026-11-24). A jump from the index lands with room above the card. */
.briefing-band.is-day { padding: 24px 36px 32px; }
.app-main .briefing-band.is-day h1 { font-size: clamp(1.5rem, 2.6vw, 2.125rem); line-height: 1.2; margin-top: 12px; }
.briefing-page > .panel + .panel { margin-top: 18px; }
.briefing-story { scroll-margin-top: 24px; }
.app-main .briefing-story h2 { font-size: 1.25rem; line-height: 1.3; margin: 10px 0 8px; }
.briefing-lead { color: var(--muted); font-size: 1.0625rem; line-height: 1.55; margin: 0 0 20px; }
.briefing-story-foot { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .875rem; }
.briefing-story-foot summary { cursor: pointer; color: var(--navy); font-weight: 500; }
.briefing-story-foot details .briefing-sources { margin-top: 4px; }

/* The console: one column, because this form has no side panel, and a comment
   read in full, because staff judge it by the words. */
.briefing-form { grid-template-columns: minmax(0, 1fr); }
body.admin-console .console-table td.briefing-wrap { white-space: normal; overflow: visible; }
/* A day's row lists its stories under the title, one quiet line each. */
body.admin-console .console-table td.briefing-day-cell { padding-top: 10px; padding-bottom: 10px; }
.briefing-row-stories { display: block; margin-top: 4px; }
.briefing-row-stories span { display: block; overflow: hidden; text-overflow: ellipsis; color: var(--muted-2); font-size: .8125rem; line-height: 1.5; }

@container briefing (max-width: 860px) {
  .briefing-band.is-article { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .briefing-todo { padding: 16px 0 0; border-left: 0; border-top: 1px solid color-mix(in srgb, var(--on-dark) 20%, transparent); }
  .briefing-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .briefing-sources { grid-column: 1; grid-row: auto; }
}

@media (max-width: 640px) {
  .briefing-band, .briefing-band.is-article, .briefing-band.is-day { padding: 24px; }
  .briefing-day-list li { flex-direction: column; gap: 6px; }
  .briefing-day-list .briefing-chip { min-width: 0; }
}
