/* Homepage layer: the owner-approved combined design with refinement 1 (Opus, 8 Nov 2026; Codex 41cd, 2f61, 525f).
   Only the homepage loads this file, after site.css, so nothing here can change another page. The markup it styles comes
   from src/home-design.mjs (the paths, the market strip group) and src/browse.js (the Club Island note, the Filters
   button). The phone header and menu and the deed pages of the combined design are separate stages. */

/* ---- fixes the design's checks needed on this page ---- */
/* no sideways scrolling at 320 px: the results bar's sort menu may shrink (it widened the page to 339 px) */
html { overflow-x: clip; }
.rbar select, .rbar input { max-width: 100%; min-width: 0; box-sizing: border-box; }
/* no smooth scrolling when the reader asks for reduced motion */
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }
/* the closed phone Filters panel waits off-screen but took keyboard focus: hidden while closed, it slides as before */
@media (max-width: 900px) and (scripting: enabled) {
  .filters:not(.open) { visibility: hidden; transition: transform .22s ease, visibility 0s linear .22s; }
  .filters.open { visibility: visible; transition: transform .22s ease, visibility 0s; }
}
@media (max-width: 900px) and (scripting: enabled) and (prefers-reduced-motion: reduce) { .filters:not(.open), .filters.open { transition: none; } }
/* one colour for every gap on the deed cards; the sign and the words carry the meaning (owner guidance, finding F8) */
.cgap, .cgap.u, .cgap.o { color: #c3cdd9; }
.cgap::after { content: " vs est."; font-weight: 500; opacity: .8; }
/* the small "?" help markers beside the filters (3.98:1 at 9 px): light text at 10 px (9.3:1) */
.filters .flab > em, .filters .ftog > em { color: var(--txt); font-size: 10px; }

/* ---- three starting paths, Mudwater first ---- */
/* side by side, the three cards share one height (owner, 8 Nov); their content starts at the top, with no gap above the links */
.hpaths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0 0; text-align: left; align-items: stretch; }
.hpath { position: relative; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 16px;
  background: var(--card); padding: 12px 14px 4px; }
.hpath h2 { margin: 0 0 2px; font: 700 17px system-ui; color: var(--txt); }
.hpath p { margin: 0 0 6px; font: 500 13.5px/1.4 system-ui; color: var(--dim); }
.hlinks { display: flex; flex-direction: column; }
.hpath .hlinks a { display: flex; align-items: center; min-height: 36px; border-top: 1px solid var(--line-soft); color: var(--acc);
  text-decoration: none; font: 600 14.5px system-ui; }
.hpath .hlinks a::after { content: "›"; margin-left: auto; padding-left: 8px; color: var(--dim); }
/* Mudwater in the Play Mudwater button's own gold and serif, with three cards from its catalog */
.hpath.hmw { background: #231c13; border-color: #b89a54; }
.hmw h2 { font: 700 20px Georgia, serif; color: #f1dfb4; }
.hmw p { color: #d8c8a2; }
.hmwtop { display: flow-root; }   /* the title and line wrap around the cards, then use the full width */
.hmw a.hplay { display: flex; align-items: center; justify-content: center; min-height: 44px; margin: 2px 0 6px; border-radius: 999px;
  background: #d4b273; color: #1d160b; text-decoration: none; font: 700 16px Georgia, serif; }
.hmw a.hplay:hover { background: #e3c487; }
.hpath.hmw .hlinks a { color: #f1dfb4; border-top-color: #43371f; }
.hmw .hlinks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }   /* its two links share a row, so the three cards come out close in height */
.hpath.hmw .hlinks a::after { color: #b89a54; }
.hfan { float: right; position: relative; width: 84px; height: 66px; margin: -2px -2px 2px 8px; pointer-events: none; }
.hfan img { position: absolute; top: 0; width: 42px; height: auto; aspect-ratio: 548 / 760; border-radius: 4px; border: 1px solid #5a4a2a;
  box-shadow: 0 4px 10px #0009; }
.hfan img:nth-child(1) { left: 0; transform: rotate(-9deg) translateY(4px); }
.hfan img:nth-child(2) { left: 21px; z-index: 1; }
.hfan img:nth-child(3) { left: 42px; transform: rotate(9deg) translateY(4px); }
.hpaths a:focus-visible, .mktread:focus-visible, .clubnote button:focus-visible { outline: 2px solid var(--amb); outline-offset: 2px; }

/* ---- a compact weekly update and market strip; the priced label and the reading guide share one group ---- */
a.wkbanner { margin: 12px 0 0; padding-top: 8px; padding-bottom: 8px; }
.mkt { margin: 8px 0 14px; padding: 10px 14px; row-gap: 4px; }
.mktmeta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-left: auto; }
.mkt .mktmeta .dimx { margin-left: 0; }
.mktread { display: inline-flex; align-items: center; min-height: 24px; color: var(--acc); font: 600 13px system-ui; }

/* ---- the deed list ---- */
/* phones: the floating Filters button waits until the deed list is on screen */
.fpill.away { visibility: hidden; }
/* the Club Island placement note above the list */
.clubnote { margin: 2px 0 10px; color: var(--dim); font: 500 13px/1.5 system-ui; }
.clubnote[hidden] { display: none; }
.clubnote button { min-height: 32px; margin-left: 4px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--card);
  color: var(--acc); font: 600 13px system-ui; cursor: pointer; }

@media (max-width: 760px) {
  /* touch targets of at least 44 px for the list's chips, filters and buttons (F9) */
  .chips button, .fgroup button, .cta, details > summary, .clubnote button { min-height: 44px; }
  .fpill { right: 12px !important; max-width: calc(100vw - 24px); }
  html { scroll-padding-bottom: 72px; }   /* keyboard focus stays clear of the floating Filters button */
  /* compact paths; links as a two-column grid of 44 px buttons */
  .hpaths { grid-template-columns: 1fr; gap: 8px; margin-top: 12px; }
  .hpath { padding: 10px 12px; }
  .hlinks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .hpath .hlinks a { min-height: 44px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card-2);
    font-size: 14px; line-height: 1.25; }
  .hpath .hlinks a::after { content: none; }
  .hpath .hlinks a:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .hpath.hmw .hlinks a { background: #2c2418; border-color: #5a4a2a; }
  .hfan { width: 72px; height: 58px; }
  .hfan img { width: 36px; }
  .hfan img:nth-child(2) { left: 18px; }
  .hfan img:nth-child(3) { left: 36px; }
  .mktread { min-height: 44px; margin: -10px 0; }   /* a full 44 px touch target that takes only 24 px of the strip's height */
  .mktmeta { row-gap: 12px; }   /* when the label and the link wrap (320 px), the link's touch area stays clear of the label */
}
