/* Public pages only. Loaded after the legacy page styles. Screen-only rules
   leave the shared desk palette and printable orders/receipts unchanged. */
@media screen {
  body.public-page {
    --page-max: 1240px;
    --gutter: 32px;
    --surface-padding: 20px;
    --title-space: 28px;
    --navy: #123543;
    --navy-deep: #0D2833;
    --accent: #123543;
    --accent-hover: #0D2833;
    --paper: #F3EDE1;
    --white: #FFFDF8;
    --card: #FFFDF8;
    --ink: #153641;
    --muted: #586568;
    --line: #D5D4C9;
    --edge: #B7C0BB;
    --rule: #B7C0BB;
    --rule2: #D5D4C9;
    --ice: #EAE7DC;
    --panel: #EAE7DC;
    --green: #275E47;
    --success-tint: #E8F0E8;
    --red: #A63C26;
    --error-tint: #FAEBE4;
    --attention: #8A5520;
    --attention-tint: #F7EFE2;
    --focus: #D37423;
    --group-live: #D4E5EB;
    --group-fresh: #E4EEEF;
    --group-frozen: #BDCFDB;
    --group-other: #CFCABC;
    --cream: var(--panel);
    --steel: var(--muted);
    --harbor: var(--navy);
    --harbor-deep: var(--navy-deep);
    --harbor-tint: var(--group-live);
    --rust: var(--navy);
    background: var(--paper);
    color: var(--ink);
  }

  /* The main itself owns the frame on both page families. The signed-out
     Live List has a second .wrap; neither it nor nested wraps adds a gutter. */
  body.public-page main#main,
  body.public-page footer.site.footer-centered .footer-inner {
    width: min(var(--page-max), calc(100% - 2 * var(--gutter)));
    max-width: none;
    margin-inline: auto;
    padding-inline: 0;
  }
  body.public-page main#main { min-width: 0; padding-bottom: 48px; }
  body.public-page main#main .wrap {
    width: 100%; max-width: none; margin-inline: 0; padding-inline: 0;
  }
  body.public-page main#main > section { padding: 0; }
  body.public-page main#main :where(.wrap) section { padding-block: 28px; }
  body.public-page main#main :where(.wrap) section.head + section,
  body.public-page main#main :where(.wrap) section.tight { padding-top: 0; }
  body.public-page main#main :is(.grid2, .grid3, .contact-layout) > * { min-width: 0; }

  /* One title system; no selectors reach document letterheads. */
  body.public-page main#main :is(.head, .page-heading, .week-head) {
    padding: var(--title-space) 0 20px;
    margin: 0;
    gap: 20px 28px;
    align-items: flex-start;
  }
  body.public-page main#main :is(.head, .page-heading, .week-head, .trade-intro, .notfound) h1 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(30px, 3vw, 40px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -.025em;
    margin: 0 0 12px;
    overflow-wrap: anywhere;
  }
  body.public-page main#main :is(.eyebrow, .kicker),
  body.public-page main#main .head .kicker {
    color: var(--navy);
    font: 700 12px/1.5 var(--sans);
    letter-spacing: .12em;
    text-transform: uppercase;
    text-align: left;
    margin: 0 0 8px;
    max-width: none;
    overflow-wrap: anywhere;
  }
  body.public-page main#main :is(.lede, .heading-note, .preorder-intro) {
    max-width: 58ch;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.55;
    margin: 0;
  }
  body.public-page main#main .heading-note { flex: 0 1 420px; }
  body.public-page main#main .trade-intro > .lede { margin-bottom: 24px; }
  body.public-page main#main .wrap > section:has(.trade-intro) { padding-top: var(--title-space); }
  body.public-page main#main .week-arrival,
  body.public-page.live-list-page main#main .head > .week {
    border: 0;
    border-left: 2px solid var(--navy);
    padding: 0 0 0 20px;
    margin: 0 0 12px;
    text-align: left;
    flex: 0 1 auto;
  }
  body.public-page.live-list-page main#main #signedin > .head { display: flex; justify-content: space-between; }
  body.public-page.live-list-page main#main .live-list-title { min-width: 0; }
  body.public-page main#main :is(.prose, .terms-table) { max-width: 68ch; }
  body.public-page main#main .notfound { padding-top: var(--title-space); text-align: left; }
  body.public-page main#main .notfound .fishart { margin: 0 0 20px; }
  body.public-page main#main .notfound .lede { margin: 0 0 12px; }

  /* Standalone cards and quiet panels share spacing. Dense ordering and
     history rows below keep their column geometry instead of becoming cards. */
  body.public-page main#main .catalog { gap: 12px; }
  body.public-page main#main :is(.catalog-item, .card, .ref, .signin-panel) {
    border: 1px solid var(--edge);
    border-top: 2px solid var(--navy);
    background: var(--white);
    padding: var(--surface-padding);
  }
  body.public-page main#main :is(.card, .ref) { margin-bottom: 12px; }
  body.public-page main#main .catalog-head { flex-wrap: wrap; gap: 8px 12px; }
  body.public-page main#main .feature {
    background: var(--white);
    border: 1px solid var(--edge);
    border-top: 2px solid var(--navy);
  }
  body.public-page main#main .feature-copy { padding: var(--surface-padding); }
  body.public-page main#main :is(.panel:not(.signin-panel), .contact-account) {
    background: var(--panel);
    border: 0;
    padding: var(--surface-padding);
  }
  body.public-page main#main :is(.row, .lrow, .orow) {
    background: var(--white);
    border-bottom-color: var(--edge);
  }
  /* The older product-list rule places every .status-wrap in column 2 below
     760px. The weekly list has a separate Sold by column until 620px, so pin
     its cells to the same order as the category header at every wider size. */
  body.public-page main#main .row > .row-main { grid-column: 1; grid-row: 1; }
  body.public-page main#main .row > .row-unit { grid-column: 2; grid-row: 1; }
  body.public-page main#main .row > .status-wrap { grid-column: 3; grid-row: 1; }
  body.public-page main#main :is(.row.inactive, .lrow.out) { background: var(--ice); }
  body.public-page main#main :is(.lrow, .orow-link):hover { background: var(--group-fresh); }
  body.public-page main#main .lrow.out:hover { background: var(--ice); }
  body.public-page main#main .orow-link:hover :is(.sp, .ogo) { color: var(--navy); }
  body.public-page main#main :is(.orow, .ohead) { padding-inline: var(--surface-padding); }
  body.public-page main#main .orow > div { min-width: 0; overflow-wrap: anywhere; }
  /* Catch groups are compact list sections, not top-level page sections. */
  body.public-page.live-list-page main#main .catch-group { padding: 0; border-color: var(--edge); }
  body.public-page.live-list-page main#main .catch-heading { border-color: var(--navy); }
  body.public-page.live-list-page main#main .catch-columns { background: var(--navy); color: var(--white); }
  body.public-page.live-list-page main#main .catch-columns span + span { border-left-color: var(--muted); }
  body.public-page.live-list-page main#main :is(.catch-heading p, .lcase, .lqty .unit, .lrow .sub, .lrow .pr small, .week .cut, .review-pack, .pack-price-pending) { color: var(--muted); }
  body.public-page.live-list-page main#main :is(.week .lands::before, .lamt::before) { color: var(--muted); }
  body.public-page.live-list-page main#main .lrow input[readonly] { background: var(--ice); color: var(--muted); }
  body.public-page.live-list-page main#main :is(.pricebreak, .runsaved) { color: var(--navy); }

  /* Condition is a category, not an availability signal. */
  body.public-page main#main :is(.kind-tag, .live-word) {
    display: inline-block;
    padding: 3px 7px;
    border: 0;
    color: var(--navy);
    font: 600 12px/1.4 var(--sans);
    letter-spacing: .07em;
    text-transform: uppercase;
  }
  body.public-page main#main .live-word,
  body.public-page main#main [data-kind="live"] .kind-tag { background: var(--group-live); }
  body.public-page main#main [data-kind="fresh"] .kind-tag { background: var(--group-fresh); }
  body.public-page main#main [data-kind="frozen"] .kind-tag { background: var(--group-frozen); }
  body.public-page main#main [data-kind="other"] .kind-tag { background: var(--group-other); }
  body.public-page main#main .group > .group-head,
  body.public-page.live-list-page main#main .catch-heading {
    color: var(--navy);
    border-color: var(--navy);
  }
  body.public-page main#main .group[data-kind="live"] > .group-head,
  body.public-page.live-list-page main#main .catch-live .catch-heading { background: var(--group-live); }
  body.public-page main#main .group[data-kind="fresh"] > .group-head,
  body.public-page.live-list-page main#main .catch-fresh .catch-heading { background: var(--group-fresh); }
  body.public-page main#main .group[data-kind="frozen"] > .group-head,
  body.public-page.live-list-page main#main .catch-frozen .catch-heading { background: var(--group-frozen); }
  body.public-page main#main .group[data-kind="other"] > .group-head,
  body.public-page.live-list-page main#main .catch-other .catch-heading { background: var(--group-other); }
  body.public-page main#main .group-head > span { color: var(--navy); font-size: 12px; text-transform: uppercase; }

  /* Preserve text/icons and semantic red/amber; only success uses green. */
  body.public-page main#main :is(.status, .stock-available, .stock-limited) {
    font-size: 12px;
    line-height: 1.4;
    font-weight: 600;
    padding: 5px 8px;
  }
  body.public-page main#main :is(.status, .status.closed) { color: var(--muted); background: var(--ice); }
  body.public-page main#main :is(.status.open, .stock-available) { color: var(--white); background: var(--green); }
  body.public-page main#main .status.soon { color: var(--navy); background: var(--group-live); }
  body.public-page main#main :is(.status.sold, .is-sold-out .item-state) { color: var(--red); background: var(--error-tint); }
  body.public-page main#main :is(.status.limited, .stock-limited) { color: var(--attention); background: var(--attention-tint); }
  body.public-page main#main .lockbar { background: var(--ice); border-left-color: var(--navy); }
  body.public-page main#main :is(.lockbar.is-placed, .standing:not(.wait):not(.no)) { background: var(--success-tint); border-left-color: var(--green); }
  body.public-page main#main .lockbar.is-placed .lbl { color: var(--green); }
  body.public-page main#main :is(.lockbar.is-shut, .standing.no) { background: var(--error-tint); border-left-color: var(--red); }
  body.public-page main#main .lockbar.is-shut .lbl { color: var(--red); }
  body.public-page main#main :is(.lockbar.is-done, .standing.wait) { background: var(--ice); border-left-color: var(--muted); }

  /* Text links exclude buttons, linked rows, photos and printable documents. */
  body.public-page main#main a:not(.btn):not(.button):not(.orow-link):not(.catalog-shot):not(.doc a) {
    color: var(--navy);
    text-decoration: underline;
    text-underline-offset: 4px;
    border-bottom: 0;
  }
  body.public-page main#main :is(.text-link, .quiet-link, .text-action, .link-button) { min-height: 44px; align-content: center; }
  body.public-page main#main :is(button, .btn, .button):not(.feature-photo):not(.catalog-shot):not(.pw-peek):not(.doc *) {
    min-height: 44px;
    font-size: 15px;
  }
  body.public-page main#main :is(button, .btn, .button):not(.feature-photo):not(.catalog-shot):not(.pw-peek):not(.quiet):not(.ghost):not(.danger):not(.delete):not(.destructive):not(.error):not(.doc *) {
    color: var(--white);
    background: var(--navy);
    border-color: var(--navy);
    text-decoration: none;
  }
  body.public-page main#main :is(button, .btn, .button):not(.feature-photo):not(.catalog-shot):not(.pw-peek):not(.quiet):not(.ghost):not(.danger):not(.delete):not(.destructive):not(.error):not(.doc *):not(:disabled):hover {
    background: var(--navy-deep);
    border-color: var(--navy-deep);
  }
  body.public-page main#main :is(button.quiet, button.ghost, .btn.ghost, .button.ghost) {
    background: transparent;
    color: var(--navy);
    border: 1px solid var(--navy);
    text-decoration: none;
  }
  body.public-page main#main :is(button.quiet, button.ghost, .btn.ghost, .button.ghost):not(:disabled):hover { background: var(--group-fresh); color: var(--navy); border-color: var(--navy); }
  body.public-page main#main :is(button, .btn, .button):disabled { opacity: .6; cursor: default; }
  body.public-page main#main :where(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea):not(.doc *) {
    min-height: 44px;
    font-size: 16px;
    color: var(--ink);
    background-color: var(--white);
    border-color: var(--muted);
  }
  body.public-page main#main :is(input, select, textarea)[aria-invalid="true"] { border-color: var(--red); outline-color: var(--red); }
  body.public-page main#main .lrow input[readonly] { background-color: var(--ice); color: var(--muted); border-color: var(--edge); }
  body.public-page main#main :is(.catalog-item summary, .notes-field summary, .switch-label, .consent label) { min-height: 44px; }
  body.public-page main#main .pw-peek { min-height: 44px; color: var(--navy); background: transparent; border: 0; }
  body.public-page main#main :is(a, button, input, select, textarea, summary):focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 4px;
  }
  body.public-page.live-list-page main#main #skip { min-height: 44px; font-size: 15px; padding: 8px 12px; }
  body.public-page.live-list-page main#main .notes-field summary { font-size: 15px; padding-block: 10px; }

  @media (max-width: 760px) {
    body.public-page { --gutter: 20px; --surface-padding: 16px; }
    body.public-page main#main :is(.grid2, .contact-layout) { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    body.public-page main#main .orow { border: 1px solid var(--edge); border-top: 2px solid var(--navy); padding: var(--surface-padding); margin-bottom: 12px; }
    /* At 621px the legacy three-column order actions need more space than
       the frame. Keep full-size controls in deliberate rows through tablets. */
    body.public-page.live-list-page main#main #placewrap { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
    body.public-page.live-list-page main#main #place { grid-column: 2; min-width: 124px; }
    body.public-page.live-list-page main#main .runtot { display: block; }
    body.public-page.live-list-page main#main .runtot > span { display: block; }
    body.public-page.live-list-page main#main #skip { max-width: 100%; white-space: normal; }
  }
  @media (max-width: 620px) {
    body.public-page { --gutter: 12px; --surface-padding: 12px; --title-space: 12px; }
    body.public-page main#main { padding-bottom: 36px; }
    body.public-page main#main :is(.head, .page-heading, .week-head) { padding-bottom: 12px; }
    body.public-page main#main :is(.head, .page-heading, .week-head, .trade-intro, .notfound) h1 { margin-bottom: 8px; }
    /* The pack is already in the product description. Remove both the extra
       unit cell and its heading together, leaving product and status columns. */
    body.public-page main#main :is(.group-head, .row) { grid-template-columns: minmax(0, 1fr) auto; }
    body.public-page main#main .group-head > span:first-of-type,
    body.public-page main#main .row > .row-unit { display: none; }
    body.public-page main#main .row > .status-wrap { grid-column: 2; grid-row: 1; }
    body.public-page main#main :is(.page-heading, .week-head),
    body.public-page.live-list-page main#main #signedin > .head { flex-direction: column; align-items: stretch; gap: 0; }
    body.public-page main#main .heading-note { flex: 0 1 auto; }
    body.public-page main#main :is(.lede, .heading-note, .preorder-intro) { font-size: 16px; }
    body.public-page main#main .week-arrival,
    body.public-page.live-list-page main#main .head > .week { width: 100%; margin: 4px 0 0; padding-left: 12px; }
    body.public-page main#main .status { font-size: 13px; }
    body.public-page main#main :is(.catalog-item .catalog-meta, .catalog-item .catalog-season, .catalog-item details, .status-note) { font-size: 14px; }
    body.public-page main#main .catalog-item:has(.catalog-shot) { grid-template-columns: minmax(0, 1fr) 80px; column-gap: 12px; }
    body.public-page main#main .catalog-shot img { width: 80px; }
  }

  /* The credential layer (docs/handoff/site-credential-layer-2026-09-25.md):
     the index and the spec lines on Products, and the Company page. Plain
     type, the page's own card and panel; no new colours. */
  body.public-page main#main .note-sep { color: var(--muted); }
  body.public-page main#main .catalog-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; margin: 0 0 24px; padding: var(--surface-padding); background: var(--panel); }
  body.public-page main#main .catalog-index:empty { display: none; }
  body.public-page main#main .catalog-index-label { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); }
  body.public-page main#main .catalog-index ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
  body.public-page main#main .catalog-index a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; font-size: 15px; }
  body.public-page main#main .catalog-item .catalog-latin { font-style: italic; color: var(--muted); margin: 2px 0 6px; }
  body.public-page main#main .catalog-spec { margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid var(--line); display: grid; gap: 4px; font-size: 14px; }
  body.public-page main#main .catalog-spec div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; }
  body.public-page main#main .catalog-spec dt { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
  body.public-page main#main .catalog-spec dd { margin: 0; }
  body.public-page main#main .company-block { margin-top: 44px; }
  /* The same title face as Contact's Company and Wholesale accounts headings. */
  body.public-page main#main .company-block > h2 { font-family: var(--title); font-weight: 400; font-size: 22px; letter-spacing: -.025em; margin: 0 0 4px; }
  body.public-page main#main .company-supply { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.public-page main#main .company-delivery { grid-template-columns: minmax(0, 1fr); margin-top: 0; }
  body.public-page main#main .company-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 16px 0 0; }
  body.public-page main#main :is(.standards, .regions) { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  body.public-page main#main :is(.standards, .regions) .card { margin: 0; }
  body.public-page main#main :is(.standards, .regions) h3 { margin: 0 0 6px; font-size: 17px; }
  body.public-page main#main :is(.standards, .regions) p { margin: 0; }
  body.public-page main#main .region-methods { margin-top: 6px !important; color: var(--muted); font-size: 14px; }
  body.public-page main#main .company-cta { margin-top: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
  body.public-page main#main .company-cta :is(h2, p) { flex-basis: 100%; margin: 0; }
  body.public-page main#main .facts-more { margin: 16px 0 0; }
  @media (max-width: 760px) {
    body.public-page main#main :is(.standards, .regions, .company-supply) { grid-template-columns: minmax(0, 1fr); }
  }
  @media (max-width: 620px) {
    body.public-page main#main .catalog-index { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    body.public-page main#main .catalog-index a { font-size: 16px; }
    body.public-page main#main .catalog-spec div { grid-template-columns: 96px minmax(0, 1fr); gap: 10px; }
    body.public-page main#main .company-block { margin-top: 32px; }
  }
}
