/* The Sunrise 2027 launch page (public/sunrise-2027.html). Tokens, header and footer come from workspace.css.

   First view: the headline, a pack drawn here in HTML and CSS (no photograph), the sentence, one field with its Draw
   button, the UPC, the film. The pack (a jar of Halden honey) carries the barcode (public/sunrise-barcode.js) and the
   QR Code powered by GS1, which starts as the Honey jar design and which public/sunrise-2027-hero.js redraws in place. Every box in the first view has a fixed size at each width, so a
   new code, a new brand name, a status sentence or a longer caption moves nothing.

   The code is Create's output, 49 modules across (41 plus four white each side) at 10 px a module, shown only at whole
   multiples of 49 px (147, 196, 245, 294) so every module stays square. The design pictures below likewise (245, 294).

   Phone first: one column (the pack under the headline). From 721 px the pack takes the right-hand column. */
.sunrise-entry :is(h1, h2, h3, p, ul, ol, dl, dd, figure, address) { margin: 0; }
.sunrise-entry .shell a { color: var(--px-accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.sunrise-entry .shell a:hover { color: var(--px-accent-strong); text-decoration-thickness: 2px; }
.sunrise-entry .px-brand { color: var(--px-ink); min-height: 44px; }
.sunrise-entry .shell { padding-top: 0; }
.sunrise-entry :is(p, li, a, h1, h2, h3, dt, dd, figcaption, address) { overflow-wrap: break-word; }
.sunrise-entry .sr-visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- First view ---- */
.sunrise-entry .sr-hero { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: 'title' 'pack' 'lede' 'draw' 'film'; row-gap: 12px; padding: 16px 0 40px; }
.sunrise-entry .sr-hero h1 { grid-area: title; font-size: 30px; font-weight: 600; line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }
.sunrise-entry .sr-lede { grid-area: lede; max-width: 30em; font-size: 17px; line-height: 1.5; color: var(--px-ink); }
.sunrise-entry .sr-draw { grid-area: draw; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; max-width: 420px; }
.sunrise-entry .sr-film { grid-area: film; }

/* The pack: a label's front in the brand's navy and oat, with a white panel for the two codes. */
.sunrise-entry .sr-pack-figure { grid-area: pack; justify-self: start; width: 100%; max-width: 343px; }
.sunrise-entry .sr-pack { --pack-pad: 12px; --code: 147px; --bar: 112px; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; overflow: hidden; border-radius: 14px; background: linear-gradient(180deg, #F3EBDD 0%, #EADFCB 100%); box-shadow: 0 1px 0 rgba(27, 33, 29, 0.06), 0 12px 32px -12px rgba(11, 31, 59, 0.35); }
.sunrise-entry .sr-pack-band { display: flex; align-items: center; justify-content: center; height: 52px; padding: 0 var(--pack-pad); background: #0B1F3B; container-type: inline-size; }
/* The band keeps the name on one line: at the band's size (--brand-size), or smaller for a long name, so that even 16
   of the widest letters fit (each takes under 1.2 of the size with its letter spacing, with 3% to spare). The script sets --brand-chars
   to the name's length; the page's own name, Halden, has 6. Its line keeps the band's size whatever the name, so a new
   name moves nothing (the walk found a layout shift of the band's line when its size followed the name's). Since
   November 29, 2026 (names of up to 16 characters); before, a long name was cut off at the band's edges. The size by
   the band's width applies only where container units are known (@supports): elsewhere an unknown unit inside var()
   would make the whole size fall back to the inherited one, so such a browser keeps the band's size (the independent
   read's N1). */
.sunrise-entry .sr-pack-brand { display: block; width: 100%; overflow: hidden; white-space: nowrap; text-align: center; color: #F3EBDD; --brand-size: 24px; font: 600 24px/1 var(--px-font); font-size: var(--brand-size); line-height: var(--brand-size); letter-spacing: 0.18em; text-transform: uppercase; }
@supports (width: 1cqi) {
  .sunrise-entry .sr-pack-brand { font-size: min(var(--brand-size), calc(100cqi / (var(--brand-chars, 6) * 1.2))); }
}
.sunrise-entry .sr-pack-body { display: grid; gap: 2px; height: 60px; padding: 10px var(--pack-pad) 0; align-content: start; color: #0B1F3B; }
.sunrise-entry .sr-pack-product { font-size: 18px; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.sunrise-entry .sr-pack-flavor { font-size: 13px; line-height: 1.35; color: #3B4A60; }
.sunrise-entry .sr-pack-weight { display: none; }
.sunrise-entry .sr-pack-label { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin: 0 var(--pack-pad) var(--pack-pad); padding: 10px; background: #FFFFFF; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(11, 31, 59, 0.08); }
.sunrise-entry .sr-barcode { display: block; flex: 0 1 var(--bar); width: var(--bar); min-width: 0; height: auto; }
.sunrise-entry .sr-barcode text { font-family: var(--px-mono); }
.sunrise-entry .sr-code { position: relative; flex: 0 0 auto; width: var(--code); height: var(--code); }
.sunrise-entry .sr-code img { display: block; width: var(--code); height: var(--code); image-rendering: pixelated; transition: opacity 120ms ease; }
.sunrise-entry .sr-code-busy { position: absolute; inset: 0; z-index: 1; isolation: isolate; display: flex; align-items: center; justify-content: center; visibility: hidden; font: 600 15px/1 var(--px-font); color: #0B1F3B; }
.sunrise-entry .sr-code-busy::before { content: ""; position: absolute; left: 50%; top: 50%; width: 104px; height: 36px; margin: -18px 0 0 -52px; border-radius: 18px; background: rgba(255, 255, 255, 0.94); box-shadow: 0 0 0 1px rgba(11, 31, 59, 0.15); z-index: -1; }
.sunrise-entry .sr-code.is-drawing img { opacity: 0.3; }
.sunrise-entry .sr-code.is-drawing .sr-code-busy { visibility: visible; }
/* A visitor's own name on the pack: the made-up product's lines are hidden and keep their room, so the pack is the
   same size and nothing moves. A name link arrives marked (sr-arriving): until its code is drawn the made-up brand's
   code and caption are hidden too and the code's place says "Drawing…"; the band is empty until the script has put
   the name on it (data-arrival). */
.sunrise-entry.sr-named .sr-pack-body > span { visibility: hidden; }
/* In their place, two quiet bars the width of a product name and of a line under it, a little darker than the pack:
   a pack waiting for their product. They are laid over the lines' room and take none of their own. */
.sunrise-entry.sr-named .sr-pack-body { position: relative; }
.sunrise-entry.sr-named .sr-pack-body::before, .sunrise-entry.sr-named .sr-pack-body::after { content: ""; position: absolute; left: var(--pack-pad); border-radius: 5px; background: #DDD0B8; }
.sunrise-entry.sr-named .sr-pack-body::before { top: 12px; width: 46%; height: 14px; }
.sunrise-entry.sr-named .sr-pack-body::after { top: 34px; width: 32%; height: 9px; }
.sunrise-entry.sr-arriving .sr-code img, .sunrise-entry.sr-arriving .sr-pack-figure figcaption { visibility: hidden; }
.sunrise-entry.sr-arriving .sr-code .sr-code-busy { visibility: visible; }
.sunrise-entry.sr-arriving:not([data-arrival]) .sr-pack-brand { visibility: hidden; }
/* The caption has room for its longest text at each width (a name of 16 wide letters with the note on GS1’s example
   barcode, since November 29, 2026): five lines below 349 px, four to 925, three from 926. */
.sunrise-entry .sr-pack-figure figcaption { min-height: calc(4 * 1.5 * 13px); margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--px-muted); }

/* One field with its button attached; the UPC under it; the status line with its room kept. */
.sunrise-entry .sr-name-row { display: flex; align-items: stretch; width: 100%; }
.sunrise-entry .sr-input { min-width: 0; height: 48px; padding: 0 14px; border: 1px solid var(--px-line-strong); border-radius: var(--px-radius); background: var(--px-surface); color: var(--px-ink); font: 400 17px/1.2 var(--px-font); }
.sunrise-entry .sr-input::placeholder { color: #6B736C; opacity: 1; }
.sunrise-entry .sr-input--name { flex: 1 1 auto; border-right: 0; border-radius: var(--px-radius) 0 0 var(--px-radius); }
.sunrise-entry .sr-draw-button { flex: 0 0 auto; min-width: 88px; height: 48px; padding: 0 20px; border: 1px solid var(--px-accent); border-radius: 0 var(--px-radius) var(--px-radius) 0; background: var(--px-accent); color: #FFFFFF; font: 600 16px/1 var(--px-font); cursor: pointer; }
.sunrise-entry .sr-draw-button:hover { background: var(--px-accent-strong); border-color: var(--px-accent-strong); }
.sunrise-entry .sr-draw-button:active, .sunrise-entry .sr-draw-button[aria-disabled="true"] { background: var(--px-accent-strong); border-color: var(--px-accent-strong); box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.25); }
.sunrise-entry .sr-upc-row { display: flex; align-items: center; gap: 12px; }
.sunrise-entry .sr-upc-row label { flex: 0 0 auto; font-size: 15px; font-weight: 500; color: var(--px-ink); }
.sunrise-entry .sr-optional { font-weight: 400; color: var(--px-muted); }
.sunrise-entry .sr-input--upc { flex: 1 1 auto; height: 44px; font-size: 16px; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
/* The line under the fields has room for the longest thing it can say (two changed letters named, with their places,
   in a name of 16 wide letters, since November 29, 2026): two lines in a column of 409 px or more, three in a narrower
   one (below 456 px, and in the left column from 721 to 1034 px). test/sunriseLaunchHero.test.js checks it at every
   width by arithmetic. */
.sunrise-entry .sr-status { min-height: calc(2 * 1.45 * 15px); font-size: 15px; line-height: 1.45; color: var(--px-muted); }
.sunrise-entry .sr-status[data-kind="intact"] { color: var(--px-accent); }
.sunrise-entry .sr-status[data-kind="changed"], .sunrise-entry .sr-status[data-kind="error"] { color: var(--px-error-ink); }
/* The next step under the line: a button and its line, shown once a code is drawn. Their room is always there: two
   lines for the longest thing the line can say (that the code could not be checked here), three below 375 px. */
.sunrise-entry .sr-next { display: grid; justify-items: start; align-content: start; gap: 6px; min-height: calc(48px + 6px + 2 * 1.5 * 14px); }
.sunrise-entry .shell a.sr-next-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 20px; border: 1px solid var(--px-accent); border-radius: var(--px-radius); background: var(--px-accent); color: #FFFFFF; font-size: 16px; font-weight: 500; line-height: 1.25; text-align: center; text-decoration: none; }
.sunrise-entry .shell a.sr-next-button:hover { border-color: var(--px-accent-strong); background: var(--px-accent-strong); color: #FFFFFF; }
.sunrise-entry .shell a.sr-next-button[hidden], .sunrise-entry .sr-next-note[hidden] { display: none; }
.sunrise-entry .sr-next-note { font-size: 14px; line-height: 1.5; color: var(--px-muted); }
.sunrise-entry .sr-film-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 16px; font-weight: 500; text-decoration: none; }
.sunrise-entry .sr-film-link::before { content: ""; flex: 0 0 auto; width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent currentColor; }
.sunrise-entry .sr-film-link:hover { text-decoration: underline; }

/* The film, over the page. */
.sr-film-dialog { width: min(960px, calc(100vw - 32px)); max-width: none; padding: 0; border: 0; border-radius: 8px; background: #0B0D10; color: #FFFFFF; }
.sr-film-dialog::backdrop { background: rgba(11, 13, 16, 0.78); }
.sr-film-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #0B0D10; }
/* The portrait cut on a narrow screen: as wide as the screen allows while the film and its Close row fit its height. */
.sr-film-dialog.sr-film-portrait { width: min(calc(100vw - 32px), calc((100dvh - 96px) * 9 / 16)); }
.sr-film-dialog.sr-film-portrait .sr-film-video { aspect-ratio: 9 / 16; }
.sr-film-close-row { display: flex; justify-content: flex-end; margin: 0; padding: 8px; }
.sr-film-close { min-height: 44px; padding: 0 18px; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 4px; background: transparent; color: #FFFFFF; font: 500 15px/1 "IBM Plex Sans", sans-serif; cursor: pointer; }
.sr-film-close:hover { background: rgba(255, 255, 255, 0.12); }

/* ---- Sections ---- */
.sunrise-entry .sr-section { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--px-line); }
.sunrise-entry .sr-section h2 { margin-bottom: 16px; font-size: 24px; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
.sunrise-entry .sr-section p, .sunrise-entry .sr-check-list, .sunrise-entry .launch-address { max-width: var(--px-measure); font-size: 16px; line-height: 1.6; color: var(--px-muted); }
.sunrise-entry .sr-section-body { display: grid; gap: 16px; align-content: start; }
.sunrise-entry .sr-more a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 500; }
.sunrise-entry .sr-more a::after { content: ""; width: 6px; height: 6px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); }

/* Start from a design: two finished codes, words only, each a link (November 29, 2026: the four cards with art were
   taken off). On a phone, and up to 767 px, one card to a row, its code 294 px (6 px a square), or 245 px (5 px a
   square) below a 344 px window, where a card's padding and border leave less than 294 (at 147 and 98 px, 3 and 2 px a
   square, the codes could not be made out). Two to a row from 768 px, at 294 px. */
.sunrise-entry .sr-design-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 0; list-style: none; }
.sunrise-entry .sr-design-list > li { display: flex; }
.sunrise-entry .sr-design { flex: 1 1 auto; display: grid; justify-items: center; align-content: start; gap: 10px; padding: 12px 8px 10px; border: 1px solid var(--px-line); border-radius: var(--px-radius-panel); background: var(--px-surface); color: var(--px-ink); text-decoration: none; }
.sunrise-entry .shell a.sr-design { color: var(--px-ink); text-decoration: none; }
.sunrise-entry .sr-design img { display: block; width: 245px; height: 245px; image-rendering: pixelated; }
.sunrise-entry .sr-design span { font-size: 15px; font-weight: 500; line-height: 1.3; text-align: center; }
.sunrise-entry .sr-design small { margin-top: -6px; font-size: 13px; line-height: 1.4; text-align: center; color: var(--px-muted); }
.sunrise-entry .shell a.sr-design:hover { border-color: var(--px-ink); }
.sunrise-entry .shell a.sr-design:hover span { text-decoration: underline; text-underline-offset: 3px; }

/* Under the heading, one line that always has its room: what the designs open with. */
.sunrise-entry .sr-designs h2 { margin-bottom: 4px; }
.sunrise-entry .sr-designs .sr-designs-note { min-height: calc(1.5 * 15px); margin: 0 0 16px; font-size: 15px; line-height: 1.5; color: var(--px-muted); }
/* Under the designs: the one-color link, the link to the list page, then the study, as one measure of muted text. */
.sunrise-entry .sr-designs .sr-list-link + .sr-list-link { margin-top: 0; }
.sunrise-entry .sr-designs .sr-list-link { margin-top: 16px; }
.sunrise-entry .sr-designs .sr-list-link a { display: inline-flex; align-items: center; min-height: 44px; }
.sunrise-entry .sr-designs .sr-study { margin-top: 8px; }
.sunrise-entry .sr-designs .sr-study a { white-space: nowrap; }

/* Checked before you download. */
.sunrise-entry .sr-check-list { display: grid; gap: 12px; padding: 0; list-style: none; color: var(--px-ink); }
.sunrise-entry .sr-check-list li { position: relative; padding-left: 28px; }
.sunrise-entry .sr-check-list li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px; border-left: 2px solid var(--px-accent); border-bottom: 2px solid var(--px-accent); transform: rotate(-45deg); }
.sunrise-entry .sr-untested { padding-left: 16px; border-left: 2px solid var(--px-accent); }
/* A printed proof graded: three numbered steps, the numbers in the page's accent. */
.sunrise-entry .sr-proof-steps { display: grid; gap: 12px; max-width: var(--px-measure); margin: 0; padding: 0; list-style: none; counter-reset: proof; font-size: 16px; line-height: 1.6; color: var(--px-ink); }
.sunrise-entry .sr-proof-steps li { position: relative; padding-left: 40px; counter-increment: proof; }
.sunrise-entry .sr-proof-steps li::before { content: counter(proof); position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--px-accent); color: var(--px-accent); font-size: 14px; font-weight: 600; line-height: 1; }
/* For your designer and printer: six named lines. */
.sunrise-entry .sr-print-list { display: grid; gap: 14px; max-width: var(--px-measure); margin: 0; font-size: 16px; line-height: 1.6; }
.sunrise-entry .sr-print-list > div { display: grid; gap: 2px; }
.sunrise-entry .sr-print-list dt { font-weight: 600; color: var(--px-ink); }
.sunrise-entry .sr-print-list dd { margin: 0; color: var(--px-muted); }

/* The closing band: one button back to the field at the top. */
.sunrise-entry .sr-cta-row { max-width: none; }
.sunrise-entry .shell a.sr-cta-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 20px; border: 1px solid var(--px-accent); border-radius: var(--px-radius); background: var(--px-accent); color: #FFFFFF; font-size: 16px; font-weight: 500; line-height: 1.25; text-align: center; text-decoration: none; }
.sunrise-entry .shell a.sr-cta-button:hover { border-color: var(--px-accent-strong); background: var(--px-accent-strong); color: #FFFFFF; }

/* The switching line, at the foot. */
.sunrise-entry .shell > .sr-switch { margin-top: 40px; padding: 16px 0; border-top: 1px solid var(--px-line); border-bottom: 1px solid var(--px-line); font-size: 16px; line-height: 1.6; color: var(--px-ink); }

/* Who we are and About our messages: the page's small print, at every width. */
.sunrise-entry .sr-section.sr-small { margin-top: 32px; padding-top: 16px; }
.sunrise-entry .sr-section.sr-small h2 { margin-bottom: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--px-ink); }
.sunrise-entry .sr-small p, .sunrise-entry .launch-address { font-size: 13px; line-height: 1.6; }
.sunrise-entry .sr-section.sr-small + .sr-section.sr-small { margin-top: 24px; }
/* Shown only while the operator's PIXIE_PUBLIC_POSTAL_ADDRESS holds an address (src/server/sunriseLaunchPage.js). */
.sunrise-entry .launch-address { margin-top: 12px; font-style: normal; white-space: pre-line; }
.sunrise-entry .px-workspace-footer nav { gap: 0 20px; }
.sunrise-entry .px-workspace-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--px-muted); text-decoration: none; }
.sunrise-entry .px-workspace-footer a:hover { color: var(--px-ink); text-decoration: underline; }

@media (min-width: 344px) {
  .sunrise-entry .sr-design img { width: 294px; height: 294px; }
}
@media (min-width: 375px) {
  .sunrise-entry .sr-pack { --code: 147px; --bar: 136px; }
}
@media (min-width: 721px) {
  /* Two columns: the words on the left; the pack on the right, from the headline down. */
  .sunrise-entry .sr-hero { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-areas: 'title pack' 'lede pack' 'draw pack' 'film pack' '. pack'; grid-template-rows: auto auto auto auto 1fr; column-gap: 32px; row-gap: 16px; padding: 40px 0 24px; }
  .sunrise-entry .sr-hero h1 { font-size: clamp(32px, 3.2vw + 6px, 52px); }
  .sunrise-entry .sr-pack-figure { justify-self: end; max-width: 400px; }
  .sunrise-entry .sr-pack { --pack-pad: 16px; --code: 147px; --bar: 150px; }
  .sunrise-entry .sr-pack-band { height: 80px; }
  .sunrise-entry .sr-pack-brand { --brand-size: 32px; }
  .sunrise-entry .sr-pack-body { height: 92px; padding-top: 16px; }
  .sunrise-entry.sr-named .sr-pack-body::before { top: 18px; height: 18px; }
  .sunrise-entry.sr-named .sr-pack-body::after { top: 46px; height: 11px; }
  .sunrise-entry .sr-pack-product { font-size: 24px; }
  .sunrise-entry .sr-pack-flavor { font-size: 15px; }
  .sunrise-entry .sr-pack-weight { display: block; margin-top: 4px; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: #3B4A60; }
  .sunrise-entry .sr-pack-label { gap: 12px; padding: 12px; }
  .sunrise-entry .sr-section { margin-top: 56px; padding-top: 32px; }
  .sunrise-entry .sr-section h2 { font-size: 28px; }
  .sunrise-entry .sr-design-list { gap: 16px; }
  .sunrise-entry .sr-design { padding: 16px 12px 12px; }
}
/* The left column is 277 to 408 px wide here: the line under the fields keeps three lines. */
@media (min-width: 721px) and (max-width: 1034px) {
  .sunrise-entry .sr-status { min-height: calc(3 * 1.45 * 15px); }
}
/* Below 900 px the code leads (November 29, 2026: at 147 px a brand's name in it was about 15 px tall, "small content
   that ultimately looks corrupted", on a phone and in the pack's column from 721 to 899 px alike): the label stacks the
   code above the barcode. The code is 294 px across (6 px a square) on a phone from 375 px and in the pack's column
   from 768, 245 (5) below each; the pack's sizes are set here, so nothing moves when the code is drawn. From 900 px
   the label is as it was: the barcode and the code side by side. */
@media (max-width: 899px) {
  .sunrise-entry .sr-pack-label { flex-direction: column; align-items: center; justify-content: flex-start; }
  .sunrise-entry .sr-barcode { flex: 0 0 auto; }
  .sunrise-entry .sr-code { order: -1; }
}
@media (min-width: 721px) and (max-width: 767px) {
  .sunrise-entry .sr-pack { --code: 245px; }
}
@media (min-width: 768px) and (max-width: 899px) {
  .sunrise-entry .sr-pack { --code: 294px; }
}
/* A card cannot be narrower than its code: two cards of 294 px codes, with 8 px of padding a side, need a window of
   734 px, or 751 with a classic scrollbar's 17 px, so they fit from 768, the two cards filling the row. Below 768 the
   cards are one to a row. */
@media (min-width: 768px) {
  .sunrise-entry .sr-design-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sunrise-entry .sr-design { padding: 16px 8px 12px; }
  .sunrise-entry .sr-design img { width: 294px; height: 294px; }
}
@media (min-width: 900px) {
  .sunrise-entry .sr-hero { column-gap: 56px; padding-top: 56px; }
  .sunrise-entry .sr-pack-figure { max-width: 460px; }
  .sunrise-entry .sr-pack { --code: 196px; --bar: 168px; }
  .sunrise-entry .sr-lede { font-size: 20px; }
  /* The sections: the heading on the left, the content on the right. The designs use the whole width. */
  .sunrise-entry .sr-section:not(.sr-small):not(.sr-designs) { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 64px; align-items: start; }
  .sunrise-entry .sr-section:not(.sr-small):not(.sr-designs) h2 { margin-bottom: 0; }
  .sunrise-entry .sr-section:not(.sr-small):not(.sr-designs) > :not(h2) { grid-column: 2; }
  .sunrise-entry .sr-designs h2 { margin-bottom: 4px; }
  .sunrise-entry .sr-designs .sr-designs-note { margin-bottom: 24px; font-size: 16px; min-height: calc(1.5 * 16px); }
  .sunrise-entry .sr-design span { font-size: 16px; }
  /* Who we are and About our messages share one row as the page's small print. */
  .sunrise-entry main.shell { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; align-items: start; }
  .sunrise-entry main.shell > * { grid-column: 1 / -1; }
  .sunrise-entry main.shell > [aria-labelledby="about-title"] { grid-column: 1; }
  .sunrise-entry main.shell > [aria-labelledby="messages-title"] { grid-column: 2; }
  .sunrise-entry .sr-section.sr-small + .sr-section.sr-small { margin-top: 32px; }
}
@media (min-width: 926px) {
  .sunrise-entry .sr-pack-figure figcaption { min-height: calc(3 * 1.5 * 13px); }
}
@media (min-width: 1100px) {
  .sunrise-entry .sr-pack-figure { max-width: 540px; }
  .sunrise-entry .sr-pack { --pack-pad: 20px; --code: 245px; --bar: 212px; }
  .sunrise-entry .sr-pack-band { height: 96px; }
  .sunrise-entry .sr-pack-brand { --brand-size: 38px; }
  .sunrise-entry .sr-pack-body { height: 104px; padding-top: 20px; }
  .sunrise-entry.sr-named .sr-pack-body::before { top: 22px; height: 20px; }
  .sunrise-entry.sr-named .sr-pack-body::after { top: 52px; height: 12px; }
  .sunrise-entry .sr-pack-product { font-size: 28px; }
  .sunrise-entry .sr-pack-label { padding: 14px; }
  /* Two across at every wide width, the codes 294 px. */
  .sunrise-entry .sr-design-list { gap: 24px; }
  .sunrise-entry .sr-design { padding: 24px 16px 16px; }
}
@media (max-width: 720px) {
  /* One row while the Menu button holds the links; without the menu the links wrap under the brand when they do not fit. */
  :is(.px-menu-pending, .px-menu-ready) .sunrise-entry .px-app-header__inner { flex-wrap: nowrap; }
  .sunrise-entry .px-app-nav { width: auto; gap: 0; }
  .sunrise-entry .px-app-nav a { font-size: 13px; padding: 9px 8px; }
  .sunrise-entry .sr-section h2 { margin-bottom: 16px; }
  /* On a phone the code is 294 px across (6 px a square), 245 (5) below 375 px; the label stacks it above the barcode
     (below 900 px, the rule after this block). */
  .sunrise-entry .sr-pack { --code: 294px; --bar: 150px; }
  .sunrise-entry .sr-pack-label { gap: 10px; }
}
@media (max-width: 374px) {
  .sunrise-entry .sr-next { min-height: calc(48px + 6px + 3 * 1.5 * 14px); }
  .sunrise-entry .sr-pack { --code: 245px; --bar: 120px; }
  .sunrise-entry .sr-pack-label { padding: 9px; }
  .sunrise-entry .sr-pack-brand { --brand-size: 22px; }
}
/* Below 456 px the line under the fields keeps three lines, and below 349 the caption five (a name of 16 wide letters).
   The line under the designs' heading ("Each design opens with <name> in it.") keeps its
   room for such a name from 721 px, where they can be on the screen when a name is drawn; below that they sit under
   the first screen, and a long name may give them a line more there rather than leave the page as written with empty
   lines (November 29, 2026). */
@media (max-width: 455px) {
  .sunrise-entry .sr-status { min-height: calc(3 * 1.45 * 15px); }
}
@media (max-width: 348px) {
  .sunrise-entry .sr-pack-figure figcaption { min-height: calc(5 * 1.5 * 13px); }
}
@media (max-width: 360px) {
  /* The line under the designs’ heading takes two lines here in either state. */
  .sunrise-entry .sr-designs .sr-designs-note { min-height: calc(2 * 1.5 * 15px); }
  .sunrise-entry .px-app-header__inner { flex-wrap: wrap; }
  .sunrise-entry .px-app-nav { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .sunrise-entry .sr-code img { transition: none; }
}
