/* Signal Brief rebuilt site: the morning-email page's rules (brief.html, rebuild-specs/brief.md).
   Split out of site.css 2026-11-10 to keep it under the file-size ratchet. Loaded on every rebuilt route
   after /css/site.css, /css/site-session.css, /css/site-legal.css and /css/site-pricing.css and before /css/site-about-sources.css and /css/site-high-zoom.css, so
   the high-zoom overrides still follow these rules. Rules that name a brief class beside other pages (the
   left-edge trial offer, the entitled actions and their states) stay in site.css.
   Authoring copy: design-system/site/2026-08-16/site-brief.css (byte-exact mirror at
   signalbrief-web/css/site-brief.css, checked by tools/build-rebuilt-site-pages.mjs --check).

   Parts rebuild (owner 2026-11-10: "rebuild from parts the site already uses"). Every section is a part the
   site already ships, with its own classes and values; only the words are this page's:
   - the hero is the painted hero in site.css (.brief-landing-hero), which is the live /brief.html hero; this page supplies its painting (markup) and its focus;
   - the sample email is the live /brief.html's .brief-sample-proof section (intro beside the email sheet);
     the intro also carries the news-feed lines as body text (the approved line is a sentence, not a heading);
   - the closing is the homepage's painted price card (index.html section.pricing), styled by the homepage's
     own .home rules in site.css through the .homepage.home wrapper in the markup.
   The rules below are copied from the live /brief.html's stylesheet (signalbrief.org/css/site.css,
   SITE-2026.11.08.189) except where a comment says why. */

/* Hero: the kitchen-at-dawn painting's focus (rebuild-specs/brief.md § B1). Its subject spans 62.1-93.7% of the
   picture's width; at 82% it sits whole and right of the copy panel from 1100px up, and whole on phones. From 1280px the copy panel is
   wider (the owner's white space ruling, as on About and Sources), so 56.5% keeps the woman at its fade's end and the kettle
   inside the frame (55% until the D36a type floor made the hero 4px taller at 1280, 2026-11-11); below 1280px the wider
   panel and the whole subject do not both fit. */
.brief-landing-hero { --hero-focus: 82% 50%; --hero-focus-phone: 100% 50%; }
@media (min-width: 1280px) {
  .brief-landing-hero { --hero-focus: 56.5% 50%; }
  .brief-hero-copy { width: min(60%, 46rem); padding-right: 16px; }
  .brief-hero-copy::before {
    inset: 0 -56px 0 -80px;
    background: linear-gradient(90deg, rgb(255 255 255 / 0%), rgb(255 255 255 / var(--hero-panel-alpha, 97%)) 48px, rgb(255 255 255 / var(--hero-panel-alpha, 97%)) var(--hero-panel-fade-start, calc(100% - 56px)), rgb(255 255 255 / 0%));
  }
  .brief-hero-copy h1 { max-width: none; }
  .brief-hero-copy .lead { max-width: 36em; }
}
.brief-subscription-fact {
  max-width: 34em;
  margin: 14px 0 0;
  color: var(--navy);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.55;
  text-wrap: pretty;
}
/* The hero's trial offer and the entitled actions share one row; moved here from site.css 2026-11-11 with its
   two duplicate rules there (margin-top and the trial offer's margin), which this sheet already set. */
.brief-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 24px; }
/* Page-only (lead's ruling 2026-11-10): the H1's last phrase stays on one line from 360px up, so no line ends on
   "in"; below 360px it wraps normally so nothing overflows at 320px. */
@media (min-width: 360px) { .brief-title-tail { white-space: nowrap; } }
.brief-hero-actions .trial-offer { margin-inline: 0 auto; }

/* The sample: a product shot, what the edition is on the left and a real piece of it framed as the email on
   the right; one column at 820px and below. */
.brief-sample-proof {
  padding: var(--chapter-space) 0;
  background: var(--paper);
}
.brief-sample-wrap {
  display: grid;
  grid-template-columns: minmax(17rem, 1fr) minmax(0, 720px);
  gap: clamp(36px, 4.5vw, 64px);
  align-items: start;
}
.brief-sample-intro { padding-top: 26px; }
.brief-sample-intro h2 {
  margin: 0 0 12px;
  font-family: var(--editorial-display);
  font-size: var(--marketing-section-size);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
:is(.brief-sample-intro, .brief-sample-more) p:not(.kicker) {
  margin: 0;
  color: var(--body);
  font-size: var(--marketing-body-size);
  line-height: var(--marketing-body-line-height);
  text-wrap: pretty;
}
/* Page plumbing: the live intro holds one paragraph. This page's news-feed lines follow it in their own block,
   which sits under the intro in the left column above 820px and after the email sheet below, so on phones the
   heading's promise leads straight into the email. The block's paragraphs take the heading's 12px gap. */
.brief-sample-more p:not(.kicker) + p { margin-top: 12px; }
.brief-sample-wrap { grid-template-rows: auto 1fr; row-gap: 12px; }
.brief-sample-intro { grid-column: 1; grid-row: 1; }
.brief-sample-card { grid-column: 2; grid-row: 1 / span 2; }
.brief-sample-more { grid-column: 1; grid-row: 2; }
/* The heading and stamp switch with the preview state: the live texts only once a valid edition paints. */
.brief-sample-proof:not([data-brief-preview-state="fallback"]) :is(.brief-sample-title-example, .brief-stamp-example),
.brief-sample-proof[data-brief-preview-state="fallback"] :is(.brief-sample-title-current, .brief-stamp-current) { display: none; }
/* Stays paper because it shows the email's own colour (owner 2026-10-13); a named exception in
   design-system/COLORS.md § One object, two fills. */
.brief-sample-card {
  padding: 22px 32px 32px;
  border: 1px solid var(--rule);
  border-top: 4px solid var(--marigold);
  border-radius: 6px;
  background: var(--paper);
}
.brief-sample-heading,
.brief-preview-content {
  max-width: 720px;
  margin-inline: auto;
}
.brief-sample-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--rule);
}
.brief-sample-heading p {
  margin: 0;
  line-height: 1.4;
}
/* The live page's header is two paragraphs: an edition label (.brief-sample-context) and a date at the right
   (.brief-sample-date). This page keeps its one stamp paragraph, because the kept example reads as one approved
   sentence ("Example from the June 18, 2026 morning email") and the controller writes into the same hooks. The
   kept sentence takes the live label's type; in the live state the edition span takes it and the date takes the
   live date's type at the right. */
.brief-sample-stamp { font-size: 14px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.brief-sample-stamp time { white-space: nowrap; }
.brief-sample-proof:not([data-brief-preview-state="fallback"]) .brief-sample-stamp { display: flex; flex: 1; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 24px; }
.brief-sample-proof:not([data-brief-preview-state="fallback"]) .brief-sample-stamp > [aria-hidden="true"] { display: none; }
.brief-sample-proof:not([data-brief-preview-state="fallback"]) .brief-sample-stamp time { color: var(--muted); font-size: 16px; font-weight: 400; letter-spacing: normal; text-transform: none; }
/* The preview card is a facsimile of the paid email, so it keeps the email's own colours: a named page
   exception (design-system/COLORS.md § Named page exceptions; owner 2026-10-12). The server-built preview
   carries the same values inline (public-information.js BRIEF_EMAIL_STYLES), and the fallback reads these. */
.brief-email-story-shell {
  --brief-email-rule: #c5a777;
  --brief-email-ink: #10243f;
  --brief-email-headline: #142b43;
  --brief-email-body: #29313d;
  --brief-email-muted: #4b5563;
  --brief-email-source: #476782;
  --brief-email-global-ink: #0f766e;
  --brief-email-us-ink: #1d4ed8;
  --brief-email-business-ink: #9d174d;
  box-sizing: border-box;
  width: 100%;
  padding: 28px 0 0;
}
/* The email's inline top margin; the card's header rule already separates the first section. */
.brief-email-story-shell .email-preview-section:first-child { margin-top: 0 !important; }
/* Shown only if the page is served before its first bake and the read has not answered (brief.md § Sample bake). */
.brief-skeleton-story { display: grid; gap: 12px; }
.brief-skeleton-story + .brief-skeleton-story { margin-top: 32px; }
.brief-email-story-shell .email-preview-section {
  margin: 40px 0 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.brief-email-story-shell .section-kicker {
  margin: 0 0 22px;
  padding: 0 0 12px;
  border-bottom: 2px solid var(--brief-email-rule);
  color: var(--brief-email-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: normal;
  text-transform: none;
}
/* The kept example is the June 18 edition cut the way the server cuts every live excerpt (its first three stories:
   the lead whole, the next two at 25 words), so it spans Global and US, each heading in its section ink as the
   email prints it (the live page's kept example had one Global story). */
.brief-email-story-shell--fallback .section-kicker { color: var(--brief-email-global-ink); }
.brief-email-story-shell--fallback .is-us .section-kicker { color: var(--brief-email-us-ink); }
.brief-email-story-shell .story-block {
  margin: 0 0 32px;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.brief-email-story-shell .story-block:last-child { margin-bottom: 0; }
.brief-email-story-shell .story-headline {
  margin: 0 0 8px;
  color: var(--brief-email-headline);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.28;
}
.brief-email-story-shell .story-headline + div {
  margin: 0 0 12px;
  color: var(--brief-email-body);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}
.brief-email-story-shell .story-block > p {
  margin: 0 0 12px;
  color: var(--brief-email-body);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-style: normal;
  line-height: 1.55;
}
.brief-email-story-shell .story-block > p strong { color: var(--brief-email-ink); }
.brief-email-story-shell .story-block > div:last-child:not(.story-headline) {
  margin-top: 10px;
  color: var(--brief-email-muted);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}
/* The newsroom names are 14px (type floor, owner D36a 2026-11-11) in the live page's source colour. One departure in how they break: the fragment's
   " · " text is hidden (font-size 0) and each name but the last draws its own dot, so a wrapped line never
   starts with a dot (round 5); !important beats the live fragment's inline font size. */
.brief-email-story-shell .story-block > div:last-child:not(.story-headline) { font-size: 0 !important; }
.brief-email-story-shell .story-block > div:last-child:not(.story-headline) span:not(:last-child) { margin-inline-end: 0.35em; }
.brief-email-story-shell .story-block > div:last-child:not(.story-headline) span:not(:last-child)::after { content: " ·"; content: " ·" / ""; }
.brief-email-story-shell .story-block > div:last-child:not(.story-headline) span {
  font-size: 14px;
  color: var(--brief-email-source);
  text-decoration: none;
  white-space: nowrap;
}

/* The closing is the homepage's painted price card, so its rules are the homepage's own in site.css and
   site-about-sources.css (.home .independence-more). Page plumbing: the card's links paragraph holds two links,
   so it carries the house separator between them. On the homepage the FAQ follows the card; here the footer
   does, so the band keeps the chapter space under the card that the live page's closing had. */
.home .independence-more > span { white-space: pre; color: var(--muted); }
.public-information-page .home .pricing { padding-bottom: var(--chapter-space); }

@media (max-width: 820px) {
  .brief-sample-proof { padding-block: 48px; }
  .brief-sample-wrap { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 28px; }
  :is(.brief-sample-intro, .brief-sample-card, .brief-sample-more) { grid-column: auto; grid-row: auto; }
  .brief-sample-intro { padding-top: 0; }
}
@media (max-width: 599px) {
  .brief-subscription-fact { font-size: 16px; }
  /* Page-only (lead's ruling 2026-11-10): the trial button and terms sit inside a Safari-sized first screen, so on
     phones the H1 is 30px (the shared hero's 36px) and the kicker, H1 and lead gaps are 8px (the shared 12, 16 and
     14px). The painting band is 142px (the shared 220px) so the button ends above Safari's visible edge near y 664
     at 390x844; the picture is held at a fixed 660x220 frame against the band's right edge, because a plain crop at
     this height shrinks the figure into the corner. The frame is the same at every phone width, so the head room does
     not change with the width. */
  .brief-landing-hero .brief-hero-visual { height: 142px; overflow: hidden; }
  .brief-landing-hero .brief-hero-visual img { inset: -39px 0 auto auto; width: 660px; height: 220px; max-width: none; }
  .brief-hero-copy .kicker { margin-bottom: 8px; }
  .brief-hero-copy h1 { margin-bottom: 8px; font-size: 30px; }
  .brief-subscription-fact { margin-top: 8px; }
  .brief-hero-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .brief-hero-actions .btn { width: 100%; min-width: 0; }
  .brief-sample-heading { flex-direction: column; align-items: flex-start; gap: 2px; }
  .brief-sample-proof:not([data-brief-preview-state="fallback"]) .brief-sample-stamp time { font-size: 14px; }
  .brief-sample-card { padding: 18px 18px 24px; }
}

@media (max-width: 480px) {
  .brief-email-story-shell { padding: 22px 0 0; }
  .brief-email-story-shell .section-kicker { margin-bottom: 18px !important; font-size: 24px !important; }
  .brief-email-story-shell .story-block { margin-bottom: 28px !important; padding-bottom: 0 !important; }
  .brief-email-story-shell .story-headline { font-size: 21px !important; line-height: 1.28 !important; }
  .brief-email-story-shell .story-headline,
  .brief-email-story-shell .story-headline + div { overflow-wrap: anywhere; }
}
/* Page plumbing: a signed-in reader without access sees no trial offer (the controller hides every
   [data-public-cta]); the homepage never hides its offer, so here the card's copy then takes the whole card
   rather than leaving its offer column empty. */
.independence-card-layout:has(> .independence-action[hidden]) { grid-template-columns: minmax(0, 1fr); }
