/* Home only — images and figures in context (audit #11, #3) and the cork board after the kept comp.
   Loaded after site.css; overrides only what Home changes. Mobile-first.
   Ported from .impeccable/mocks/decision/composed/j-hybrid-gf-blue/home.css (REC-271 phase 2, AC-271.4);
   the one change from the mock is the cork texture's path — root-relative under /img/home/, not the mock's
   own pages/assets-web/ tree. */

/* ---------- the hero under the pinned header: the bar left the hero's flow (it now sits over it, pulled up by its own height),
   so the hero keeps the band the old in-flow bar took (10 + 44 + 10; >= 760: 16 + 44 + 16) and nothing in it moves ---------- */
.hero { padding-top: 64px; }
@media (min-width: 760px) { .hero { padding-top: 76px; } }

/* ---------- REC-300: the hero demo's Rolling-out tags and the email-in reassurance line (direction A, REC-299 lock) ---------- */
.issue-mini { position: relative; }
.im-tag { position: absolute; top: -17px; right: 14px; font-size: 13px; gap: 6px; padding: 2px 9px 2px 7px; border-radius: 6px; background: var(--surface); box-shadow: 0 0 0 1px var(--line-2); }
.i-soon { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.i-soon .status { font-size: 13px; text-transform: none; letter-spacing: .02em; }
.hero-note { margin-top: 12px; font-size: 15px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
@media (min-width: 760px) { .hero-note { font-size: 16px; } }

/* ---------- the three jobs: one matched 4:3 photograph heading each column ---------- */
.job-ph { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 8px; outline: 1px solid rgba(24, 23, 21, .1); outline-offset: -1px; margin-bottom: 8px; background: var(--sunk); }

/* ---------- the leak, today: a generic group chat ---------- */
.chat-fig { margin: 8px 0 0; max-width: 360px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 8px;
  max-height: 280px; overflow: hidden;
  -webkit-mask: linear-gradient(180deg, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
          mask: linear-gradient(180deg, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%); }
.chat-list { display: flex; flex-direction: column; gap: 8px; padding: 20px 16px; }
.cr { display: flex; align-items: flex-end; gap: 8px; }
.cr-av { width: 20px; height: 20px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #e9e4dc; color: var(--ink-2); font-size: 11px; font-weight: 600; line-height: 1; margin-bottom: 2px; }
.cr-b { display: flex; flex-direction: column; gap: 1px; max-width: 250px; background: var(--sunk); padding: 6px 12px 7px; border-radius: 14px 14px 14px 4px; }
.cr-n { font-size: 13px; font-weight: 600; color: var(--ink-3); line-height: 1.3; }
.cr-text { font-size: 15px; line-height: 1.35; color: var(--ink); }
.cr-file { display: inline-flex; align-items: center; gap: 6px; margin-top: 3px; padding: 5px 10px 5px 8px; border-radius: 8px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 14px; line-height: 1.3; color: var(--ink-2); }
.cr-file .ic { width: 15px; height: 15px; color: var(--ink-3); }

/* ---------- the leak, on RectifyHQ: one Issue's dated rail, in the app-window idiom ---------- */
.rec-win { align-self: start; margin: 8px 0 0; background: var(--surface); border-radius: var(--r-3); box-shadow: 0 0 0 1px rgba(24,23,21,.08), var(--sh-2); overflow: hidden; }
.rec-title { padding: 14px 16px 12px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: var(--ink) !important; border-bottom: 1px solid var(--line); }
.rail { position: relative; padding: 16px 16px 4px; display: flex; flex-direction: column; gap: 14px; }
.rail::before { content: ""; position: absolute; left: 88.5px; top: 24px; bottom: 16px; border-left: 1px solid var(--line-2); }
.rail li { position: relative; display: grid; grid-template-columns: 60px 1fr; column-gap: 28px; align-items: start; }
.rail li::before { content: ""; position: absolute; left: 68px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.r-d { white-space: nowrap; font-size: 13px; line-height: 1.45; color: var(--ink-3); letter-spacing: .01em; padding-top: 1px; }
.r-b { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.r-who { font-size: 13px; color: var(--ink-3) !important; line-height: 1.4; }
.r-who strong { color: var(--ink); font-weight: 600; margin-right: 4px; }
.r-t { font-size: 15px; line-height: 1.45; color: var(--ink) !important; }
.r-th { width: 56px; height: 36px; margin-top: 2px; object-fit: cover; border-radius: 4px; display: block; }
.rec-chip { display: inline-flex; align-items: center; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--blue-press); background: var(--blue-tint); padding: 2px 8px; border-radius: 5px; box-shadow: inset 0 0 0 1px var(--blue-tint-line); }
.rail .status { font-size: 13px; }
.rec-end { display: flex; align-items: center; gap: 8px; margin: 12px 16px 16px 96px; align-self: flex-start; width: max-content;
  background: var(--sunk); box-shadow: inset 0 0 0 1px var(--line-2); border-radius: 999px; padding: 5px 14px 5px 10px; font-size: 14px; font-weight: 600; color: var(--ink) !important; }
.rec-end .ic { color: var(--ink-2); }

/* ---------- the cork board: edge-to-edge photographic cork, pinned paper ---------- */
.sec-cork { position: relative; padding: 64px 0 72px;
  background:
    radial-gradient(ellipse 110% 85% at 50% 50%, rgba(58, 30, 6, 0) 52%, rgba(58, 30, 6, .30) 100%),
    url("/img/home/cork-texture.webp") center / cover no-repeat,
    var(--cork);
  box-shadow: inset 0 1px 0 rgba(70, 40, 10, .35), inset 0 -1px 0 rgba(70, 40, 10, .35); }
.sec-cork .decide { gap: 40px; }
.paper, .sec-cork .notice, .sec-cork .plate, .sec-cork .slip {
  position: relative; background: #fbf8f1; border: 0; border-radius: 1px;
  box-shadow: 0 1px 1px rgba(40, 22, 5, .38), 0 10px 22px -6px rgba(40, 22, 5, .42); }
.paper { padding: 36px 22px 28px; }
.paper .h2 { font-size: 34px; }
.sec-cork .paper p:not([class]) { color: var(--ink-2); }
.board { display: grid; gap: 28px; }
.sec-cork .plate { position: relative; left: auto; top: auto; transform: rotate(-.6deg); justify-self: center; z-index: auto;
  padding: 12px 18px 10px; font-size: 15px; font-weight: 600; letter-spacing: .01em; color: var(--ink); }
.sec-cork .notice { padding: 28px 18px 18px; }
.sec-cork .notice.half { padding: 24px 14px 14px; }
.sec-cork .slip { transform: rotate(-.5deg); padding: 8px 12px; font-size: 14px; color: #4d4a43; }
.sec-cork .t1 { transform: rotate(-1deg); }
.sec-cork .t2 { transform: rotate(1.2deg); }
.sec-cork + .sec-line > .wrap { border-top: 0; }
.sec-cork .n-meta { border-top-color: #e9e4d6; }
/* cutout pins: top centre of each paper, a small soft shadow beneath */
.sec-cork .pin, .paper .pin { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 24px; height: auto;
  color: inherit; filter: drop-shadow(1px 3px 2px rgba(40, 20, 0, .38)); pointer-events: none; }
.sec-cork .pin-red { width: 22px; top: -12px; }
.sec-cork .plate .pin { top: -12px; }

@media (min-width: 760px) {
  /* the two leaks: headings, paragraphs and figures share rows, so the figures top-align */
  .compare { grid-template-rows: auto auto auto; row-gap: 0; }
  .cmp { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 12px; align-content: start; }
  .chat-fig { max-height: none; margin-top: 16px; }
  .rec-win { margin-top: 16px; }
  .paper { padding: 44px 36px 36px; }
  .sec-cork .notice { padding: 32px 28px 24px; }
}

@media (min-width: 1080px) {
  .job-ph { max-width: 276px; margin-bottom: 12px; }
  .chat-fig { align-self: start; }
  .sec-cork { padding: 104px 0 120px; }
  .sec-cork .decide { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .paper { margin-top: 40px; padding: 48px 40px 40px; }
  .paper .h2 { font-size: 46px; }
  .board { gap: 32px; }
  .sec-cork .notice.half { padding: 26px 20px 18px; }
}

/* ---------- the jobs, as rows with a side rail (variant A, REC-303 ### Design lock 2026-09-29, REC-304) ----------
   The three Rolling-out jobs become hairline `.job-row`s (thumbnail, head, text); the six Planned jobs fold into
   the "On the way" `.next-list` rail, no photo. No tokens beyond the existing set, no shadows (EX-L6.marketing). */
.job-rows { margin-top: 32px; border-top: 1px solid var(--line); }
.job-row { display: grid; grid-template-areas: "th head" "text text"; grid-template-columns: 96px minmax(0, 1fr);
  column-gap: 16px; row-gap: 12px; align-items: start; padding: 24px 0; border-bottom: 1px solid var(--line); }
.job-row .job-ph { grid-area: th; width: 100%; height: auto; margin: 0; max-width: none; border-radius: 6px; }
.job-head { grid-area: head; display: flex; flex-direction: column; gap: 8px; }
.job-text { grid-area: text; display: flex; flex-direction: column; gap: 12px; }
.job-text .text-link { align-self: flex-start; margin: -4px 0 -10px; }
/* status: Planned sits on the tint with a hollow dot (Rolling out keeps its half-filled dot) */
.status.plan { color: var(--ink-2); background: var(--blue-tint); padding: 3px 10px 3px 8px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--blue-tint-line); }
.status.plan .sdot { width: 9px; height: 9px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-3); }

.next { margin-top: 40px; }
.next-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.next-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.next-list h4 { margin: 0; font-size: 17px; line-height: 1.35; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.next-list p { margin-top: 4px; font-size: 16px; line-height: 1.5; color: var(--ink-2); max-width: 62ch; text-wrap: pretty; }

/* ---------- the guarantees, headed by "What you can count on." since REC-303/REC-304 (index.astro): the
   `.g-h` heading now opens the section, so the list's own top margin is set relative to it, not zeroed
   against `.wrap` ---------- */
.g-h + .guarantees { margin-top: 24px; }

@media (min-width: 760px) {
  .job-row { grid-template-columns: 160px minmax(0, 1fr); grid-template-areas: "th head" "th text"; column-gap: 24px; row-gap: 12px; align-items: start; padding: 32px 0; }
  .job-head { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (min-width: 1080px) {
  .job-rows { margin-top: 56px; }
  .g-h + .guarantees { margin-top: 32px; }
  .jobs-a { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: 64px; align-items: start; margin-top: 56px; }
  .jobs-a .job-rows { margin-top: 0; }
  .jobs-a .next { margin-top: 0; padding-top: 24px; border-top: 1px solid var(--line); }
}

/* ---------- "How it works": five unnumbered rows, each with an aria-hidden app vignette (REC-306,
   direction B corrected — REC-305 ### Design lock 2026-09-29). Ported from
   .design-sync/rec-305-how-directions/site/b.html, less the .how-n number column (rows are unnumbered),
   with row 2's vignette reordered to the Issue header first, its own Chat beneath. Existing tokens only,
   1px --line-2 border, no shadows (EX-L6.marketing). ---------- */
.how-now { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 16px; color: var(--ink-3); }
.how-next { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.how-next p { color: var(--ink-2); max-width: 62ch; }
.how-next .text-link { margin-bottom: -10px; }
.how-b + .how-next { margin-top: 0; border-top: 0; padding-top: 24px; }

.how-b { margin-top: 32px; border-top: 1px solid var(--line); }
.how-b-row { padding: 24px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.how-b .how-text p { margin-top: 8px; color: var(--ink-2); max-width: 56ch; }
.vig { margin: 0; max-width: 400px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-2); color: var(--ink); font-size: 15px; line-height: 1.45; overflow: hidden; }
.vig p { max-width: none; }
.vig .card-bar { height: 40px; }
.vig-li { display: flex; align-items: baseline; gap: 8px; padding: 9px 16px; font-size: 15px; }
.vig-li + .vig-li { border-top: 1px solid var(--line); }
.vig-li .muted { margin-left: auto; font-size: 14px; }
.vig .m-row { padding: 14px 16px; }
.vig-issue { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
.vig-issue strong { font-weight: 600; }
.vig-issue .muted { margin-left: auto; font-size: 13px; }
.vig-replies { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.vig-replies .ic { width: 15px; height: 15px; color: var(--ink-3); }
.vig-avs { display: inline-flex; margin-right: 4px; }
.vig-avs .av { width: 20px; height: 20px; font-size: 10px; box-shadow: 0 0 0 2px var(--surface); }
.vig-avs .av + .av { margin-left: -4px; }
.vig-mail .ic { width: 16px; height: 16px; color: var(--ink-2); }
.vig-search { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--line); font-size: 16px; }
.vig-search .ic { color: var(--ink-3); }
.vig-hit { padding: 12px 16px 14px; }
.vig-hit-t { font-weight: 600; }
.vig-hit mark { text-decoration: none; background: var(--blue-tint); color: inherit; border-radius: 3px; padding: 0 2px; }
.vig-hit-m { margin-top: 2px; font-size: 14px; color: var(--ink-3); }

@media (min-width: 760px) {
  .how-now { margin-top: 24px; }
  .how-b-row { display: grid; grid-template-columns: minmax(0, 1fr) 340px; column-gap: 24px; row-gap: 0; align-items: start; padding: 32px 0; }
  .vig { grid-column: 2; grid-row: 1; }
}
@media (min-width: 1080px) {
  .how-now { margin-top: 24px; }
  .how-b { margin-top: 48px; }
  .how-b-row { grid-template-columns: minmax(0, 1fr) 400px; column-gap: 48px; }
  .how-next { margin-top: 48px; flex-direction: row; align-items: center; gap: 16px; }
  .how-next .text-link { margin: -10px 0 -10px auto; }
}
