/* Shared design system for /var/www/collateral pages: layout, header,
   hero, benefits, steps, access/support, LANDsmart footer, and the
   Download PDF button. Extracted from KWSanDiego/index.html so every
   collateral shares one copy instead of re-authoring it per page.

   A collateral's own <style> block is still the right place for content
   that's genuinely specific to that page (extra sections, one-off color
   tweaks, extra @font-face overrides, etc). */

:root {
  --navy:#1B2436;
  --navy-2:#242F45;
  --gold:#B8933D;
  --gold-lt:#E8C468;
  --gold-pale:#8A6A11;
  --cream:#FAF8F2;
  --hair:#E4DCC8;
  --muted:#5c6478;
  --muted-2:#8b93a3;
}
* { margin:0; padding:0; box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }
body {
  font-family:'Inter','Segoe UI',Arial,sans-serif;
  background:#EDEAE0;
  color:var(--navy);
  -webkit-print-color-adjust:exact;
  print-color-adjust:exact;
}
a { color:inherit; text-decoration:none; }
.sheet {
  background:var(--cream);
  max-width:850px;
  margin:0 auto;
}
.page { padding:7vw 6vw 8vw; }

/* ---------- HEADER ---------- */
.header { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px; }
.header img.landsmart-logo { height:32px; display:block; }
.header img.client-logo { height:44px; display:block; }
.header-rule { height:1px; background:var(--hair); margin:22px 0 30px; }

/* ---------- HERO ---------- */
.hero { text-align:center; }
.hero h1 {
  font-family:'Cormorant Garamond','Times New Roman',serif;
  font-weight:700; font-size:clamp(24px,6.2vw,34px); line-height:1.2; color:var(--navy);
}
.hero h1 .accent { color:var(--gold); font-style:italic; }
.hero .sub {
  margin-top:10px; font-size:11.5px; font-weight:700; letter-spacing:1.2px; text-transform:uppercase;
  color:var(--gold-pale);
}

/* ---------- BENEFITS ---------- */
.benefits {
  display:flex; flex-direction:column;
  margin-top:40px; border-top:1px solid var(--hair);
}
.bcol {
  text-align:center; padding:24px 4%; border-bottom:1px solid var(--hair);
}
.bcol .big {
  font-family:'Cambria','Times New Roman',serif; font-weight:700; font-size:32px; color:var(--navy); line-height:1;
}
.bcol .label {
  margin-top:10px; font-size:13.5px; font-weight:700; color:var(--navy); line-height:1.3;
  text-transform:uppercase; letter-spacing:.4px; min-height:2.6em;
}
.bcol .cap {
  margin-top:7px; font-size:12.5px; color:var(--muted); line-height:1.45; max-width:280px; margin-left:auto; margin-right:auto;
  min-height:2.9em;
}
.bcol .code {
  display:inline-block; margin-top:7px; font-size:12px; font-weight:700; letter-spacing:1px;
  color:var(--navy); background:var(--gold-lt); border-radius:3px; padding:5px 16px;
}

/* ---------- SECTION TITLE ---------- */
.section-title {
  font-family:'Cormorant Garamond',serif; font-weight:700; font-size:19px; color:var(--navy);
  text-transform:uppercase; letter-spacing:.6px;
  margin-top:40px; margin-bottom:22px;
  display:flex; align-items:center; gap:12px;
}
.section-title .bar { width:24px; height:2px; background:var(--gold); flex:0 0 auto; }

/* ---------- STEPS (two connected mini-timelines: 1-2-3, 4-5-6) ----------
   NOTE: .steps-col and .step are deliberately plain block elements, not
   flex containers - nesting flex-column inside flex-row breaks text
   wrapping in WeasyPrint's flexbox implementation (items refuse to
   shrink below their max-content width). Only .steps-wrap itself is
   flex (a single level), matching the pattern already proven safe in
   .access. The number circle is absolutely positioned instead of being
   a flex sibling of the text. */
.steps-wrap { display:flex; flex-direction:column; gap:26px; }
.steps-col { position:relative; min-width:0; }
.steps-col::before {
  content:''; position:absolute; left:15px; top:15px; bottom:15px; width:1px;
  background:var(--hair);
}
.step { position:relative; min-height:30px; padding-left:44px; margin-bottom:20px; }
.step:last-child { margin-bottom:0; }
.step .n {
  position:absolute; left:0; top:0; width:30px; height:30px; border-radius:50%;
  background:var(--navy); color:var(--gold-lt); border:2px solid var(--cream);
  font-family:'Cambria','Times New Roman',serif; font-weight:700; font-size:14px;
  display:flex; align-items:center; justify-content:center;
}
.step .txt { padding-top:1px; }
.step .txt .t { font-weight:700; font-size:14.5px; color:var(--navy); margin-bottom:3px; }
.step .txt .d { font-size:13px; color:var(--muted); line-height:1.5; }
.step .txt .d b { color:var(--navy); }

/* ---------- ACCESS & SUPPORT (unified QR + in-app + help) ---------- */
.access-wrap { display:flex; flex-direction:column; gap:20px; }
.access {
  margin-top:44px;
  background:linear-gradient(180deg,var(--navy) 0%,var(--navy-2) 100%);
  border-radius:12px;
  padding:34px 8%;
  display:flex; flex-direction:column; align-items:center; gap:30px;
}
.access .qr-col { text-align:center; flex:0 0 auto; display:flex; flex-direction:column; align-items:center; }
.access .qr-col .label {
  font-family:'Cormorant Garamond',serif; font-weight:700; font-style:italic;
  font-size:17px; color:#fff; line-height:1.3;
}
.access .qr-col .qr-box {
  width:190px; height:190px; background:#fff; border-radius:4px;
  padding:0; margin:16px auto 12px; overflow:hidden;
}
.access .qr-col .qr-box img { width:100%; height:100%; display:block; }
.access .qr-col:first-child .qr-box { padding: 10px; }

.access .qr-col .label .app-qr-line2 { font-size: 10.5pt; white-space: nowrap; }
.access .qr-col .qr-url a { font-size:11.5px; color:var(--muted-2); letter-spacing:.2px; }
.access .divider { display:none; width:1px; background:rgba(255,255,255,0.14); align-self:stretch; }
.access .info-col { width:100%; text-align:center; }
.access .info-col .heading {
  font-size:11px; font-weight:700; letter-spacing:1.8px; color:var(--gold-lt); text-transform:uppercase;
}
.access .info-col .inapp-items {
  margin-top:14px; font-size:13.5px; color:#EDEFF3; line-height:1.5; list-style:none; padding-right:36px;
}
.access .info-col .inapp-items li {
  position:relative; margin-bottom:10px; text-align:left; font-weight:700;
}
.access .info-col .inapp-items li::before { display:none; }
.access .info-col .need-help {
  margin-top:22px; padding-top:20px; border-top:1px solid rgba(255,255,255,0.14);
}
.access .info-col .need-help .stitle {
  font-size:10.5px; font-weight:700; letter-spacing:1.4px; color:var(--gold-lt); text-transform:uppercase;
}
.access .info-col .contact { font-size:13px; color:#EDEFF3; margin-top:10px; line-height:1.6; }
.access .info-col .contact div { margin-bottom:6px; }
.access .info-col .contact a { color:#fff; font-weight:700; }

/* ---------- DOWNLOAD PDF BUTTON ---------- */
.dl-pdf-btn {
  position: fixed; right: 20px; bottom: 92px; z-index: 20;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy); color: #fff;
  border: 1px solid var(--gold); border-radius: 999px;
  padding: 11px 20px;
  font-family: 'Inter','Segoe UI',Arial,sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.28);
}
.dl-pdf-btn:hover { background: var(--navy-2); }
.dl-pdf-btn svg { width: 14px; height: 14px; flex: 0 0 auto; }
@media (max-width: 640px) {
  .dl-pdf-btn { right: 14px; bottom: 84px; padding: 9px 15px; font-size: 10.5px; }
}
@media print {
  .dl-pdf-btn { display: none !important; }
}

/* ================================================================
   DESKTOP + PRINT: the fixed, exact one-page composition
   ================================================================ */
@media screen and (min-width: 760px) {

  body { background:#EDEAE0; }
  .sheet { max-width:8.5in; box-shadow:0 0 0 1px var(--hair); }
  .page { width:8.5in; min-height:11in; padding:0.46in 0.6in 0.32in; }

  .header img.landsmart-logo { height:0.4in; }
  .header img.client-logo { height:0.52in; }
  .header-rule { margin:0.22in 0 0.26in; }

  .hero h1 { font-size:27pt; }
  .hero .sub { margin-top:0.09in; font-size:10.5pt; }

  .benefits { flex-direction:row; margin-top:0.34in; }
  .bcol { flex:1; padding:0.2in 0.18in; border-bottom:none; border-right:1px solid var(--hair); }
  .bcol:last-child { border-right:none; }
  .bcol .big { font-size:30pt; }
  .bcol .label { font-size:9.8pt; margin-top:0.07in; min-height:2.6em; }
  .bcol .cap { font-size:9pt; margin-top:0.05in; min-height:2.6em; }
  .bcol .code { font-size:9pt; margin-top:0.05in; padding:0.045in 0.16in; }

  .section-title { font-size:14.5pt; margin-top:0.26in; margin-bottom:0.16in; }
  .section-title .bar { width:0.26in; height:2pt; }

  .steps-wrap { flex-direction:row; gap:0.5in; }
  .steps-col { flex:1; min-width:0; }
  .steps-col::before { left:0.16in; top:0.16in; bottom:0.16in; }
  .step { padding-left:0.46in; margin-bottom:0.22in; }
  .step .n { width:0.32in; height:0.32in; font-size:11.5pt; }
  .step .txt .t { font-size:10.6pt; }
  .step .txt .d { font-size:9.2pt; line-height:1.42; }

  .access-wrap { flex-direction:row; align-items:stretch; gap:0.25in; } .access { flex-direction:row; align-items:center; margin-top:0.26in; border-radius:10px; padding:0.2in 0.25in; gap:0.2in; } .access-side { flex:0 0 auto; } .access:not(.access-side) { flex:1; }
  .access .qr-col { width:1.3in; }
  .access .qr-col .label { font-size:9pt; }
  .access .qr-col .qr-box { width:1.2in; height:1.2in; border-radius:4px; padding:0; margin:0.1in auto 0.07in; }
  .access .qr-col .qr-url a { font-size:8.6pt; }
  .access .divider { display:block; }
  .access .info-col { flex:0 0 auto; text-align:left; width:auto; margin:0 auto; }
  .access .info-col .heading { font-size:9pt; }
  .access .info-col .inapp-items { font-size:9.8pt; margin-top:0.12in; }
  .access .info-col .inapp-items li { margin-bottom:0.08in; }
  .access .info-col .need-help { margin-top:0.22in; padding-top:0.2in; }
  .access .info-col .need-help .stitle { font-size:10pt; }
  .access .info-col .contact { font-size:9.8pt; margin-top:0.1in; }
  .access .info-col .contact div { margin-bottom:0.05in; }

}

@media print {
  @page { size: 8.5in 11in; margin: 0; }

  body { background:#EDEAE0; }
  .sheet { max-width:8.5in; box-shadow:0 0 0 1px var(--hair); }
  .page { width:8.5in; min-height:11in; padding:0.46in 0.6in 0.32in; }

  .header img.landsmart-logo { height:0.4in; }
  .header img.client-logo { height:0.52in; }
  .header-rule { margin:0.22in 0 0.26in; }

  .hero h1 { font-size:27pt; }
  .hero .sub { margin-top:0.09in; font-size:10.5pt; }

  .benefits { flex-direction:row; margin-top:0.34in; }
  .bcol { flex:1; padding:0.2in 0.18in; border-bottom:none; border-right:1px solid var(--hair); }
  .bcol:last-child { border-right:none; }
  .bcol .big { font-size:30pt; }
  .bcol .label { font-size:9.8pt; margin-top:0.07in; min-height:2.6em; }
  .bcol .cap { font-size:9pt; margin-top:0.05in; min-height:2.6em; }
  .bcol .code { font-size:9pt; margin-top:0.05in; padding:0.045in 0.16in; }

  .section-title { font-size:14.5pt; margin-top:0.26in; margin-bottom:0.16in; }
  .section-title .bar { width:0.26in; height:2pt; }

  .steps-wrap { flex-direction:row; gap:0.5in; }
  .steps-col { flex:1; min-width:0; }
  .steps-col::before { left:0.16in; top:0.16in; bottom:0.16in; }
  .step { padding-left:0.46in; margin-bottom:0.22in; }
  .step .n { width:0.32in; height:0.32in; font-size:11.5pt; }
  .step .txt .t { font-size:10.6pt; }
  .step .txt .d { font-size:9.2pt; line-height:1.42; }

  .access-wrap { flex-direction:row; align-items:stretch; gap:0.12in; } .access { flex-direction:row; align-items:center; margin-top:0.26in; border-radius:10px; padding:0.2in 0.25in; gap:0.2in; } .access-side { flex:0 0 auto; } .access:not(.access-side) { flex:1; }
  .access .qr-col { width:1.3in; } .access-side .qr-col { width:1.35in; }
  .access .qr-col .label { font-size:9pt; }
  .access .qr-col .qr-box { width:1.2in; height:1.2in; border-radius:4px; padding:0; margin:0.1in auto 0.07in; } .access-side .qr-col .qr-box { width:1.1in; height:1.1in; }
  .access .qr-col .qr-url a { font-size:8.6pt; }
  .access .divider { display:block; }
  .access .info-col { flex:0 0 auto; text-align:left; width:auto; margin:0 auto; }
  .access .info-col .heading { font-size:9pt; }
  .access .info-col .inapp-items { font-size:9.8pt; margin-top:0.12in; }
  .access .info-col .inapp-items li { margin-bottom:0.08in; }
  .access .info-col .need-help { margin-top:0.22in; padding-top:0.2in; }
  .access .info-col .need-help .stitle { font-size:10pt; }
  .access .info-col .contact { font-size:9.8pt; margin-top:0.1in; }
  .access .info-col .contact div { margin-bottom:0.05in; }

  body { background:#fff; }
  .sheet { box-shadow:none; }
  .page { width:8.5in; height:11in; min-height:0; }
}

/* --- footer: mapmarket's shared /v1/footer/html, fetched with fixed=true
   (see page.js). The content/colors/Terms-modal are all that endpoint's own
   inline styles now -- this file only still owns the positioning that is
   genuinely collateral-specific (full-bleed on screen past .page's own
   padding, anchored to .page's bottom edge for print rather than the
   viewport). !important is required throughout: the API's own inline
   style="position:..." otherwise always wins over an external stylesheet
   rule, regardless of selector specificity. */
.mm-footer {
  width: 100vw !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  box-sizing: border-box;
}
@media print {
  /* .page has min-height:11in (see the @media print block above), so
     when actual content is shorter than 11in the footer just ends
     wherever content stops, leaving the page container's remaining
     height as blank space below it - a padding-bottom cancellation
     alone can't fix that, since it isn't padding causing the gap.
     Anchoring the footer directly to .page's own bottom edge instead. */
  .page { position: relative; }
  .mm-footer { position: absolute !important; left: 0 !important; right: 0 !important; bottom: 0 !important; margin: 0 !important; width: auto !important; }
}
@media screen and (max-width: 899px) {
  .mm-footer { flex-wrap: wrap !important; row-gap: 6px !important; justify-content: center !important; }
}
@media (max-width: 640px) { .mm-footer { flex-direction:column !important; text-align:center; } }

/* ============================================================
   Wide-screen web view: same markup, fonts, colors and copy as
   the print design (no separate re-styled copy) - only the steps
   section reflows into one row instead of two stacked columns,
   and .sheet/.page go fluid instead of a fixed 8.5in card, so the
   page actually fills a wide browser window. */
.step-arrow { display:none; }
/* min-height alone doesn't stretch a normal-flow child to the box's
   true bottom when content is shorter than the viewport - same issue
   already fixed for print. Anchor the footer directly instead, at every
   width, not just the wide reflow breakpoint. */
@media screen {
  /* Fixed to the viewport bottom, always visible regardless of scroll
     position or content height - simplest possible guarantee that it
     never leaves a gap below itself. .page's own bottom padding is set
     by JS to the footer's exact real height (see /_shared/page.js),
     rather than guessed, so there's never a few pixels too much or too
     little. */
  .mm-footer { position: fixed; bottom: 0; z-index: 10; }
  .page { box-sizing: border-box; }
}
@media screen and (min-width: 900px) {
  html, body { overflow-y: hidden; }
  /* The original spacing (.header-rule, .benefits, .section-title,
     .access margins, .page's own padding) was tuned for an 11in-tall
     print page, not a typical ~900-1000px desktop viewport - tightened
     here so the content comfortably fits one screen without needing the
     transform-based scaling that broke the fixed footer. */
  .page { padding: 24px 0.6in 12px; }
  .header-rule { margin: 10px 0 14px; }
  .benefits { margin-top: 16px; }
  .section-title { margin-top: 16px; margin-bottom: 10px; }
  .access-wrap { max-width: 900px; margin-left: auto; margin-right: auto; } .access { margin-top: 16px; margin-bottom: 0; padding: 12px 0.4in; }
  .header img.landsmart-logo { height: 28px; }
  .header img.client-logo { height: 36px; }
  .hero h1 { font-size: 22pt; }
  .hero .sub { margin-top: 4px; }
  .bcol { padding: 10px 0.18in; }
  .bcol .big { font-size: 22pt; }
  .bcol .label { min-height: 0; margin-top: 4px; }
  .bcol .cap { min-height: 0; margin-top: 2px; }
  .step { margin-bottom: 10px; }
  .step .txt .t { font-size: 10pt; }
  .step .txt .d { font-size: 8.5pt; line-height: 1.3; }
  .access .qr-col { width: 1.15in; }
  .access .qr-col .qr-box { width: 1.1in; height: 1.1in; margin: 6px auto; }
  .access .info-col .inapp-items { margin-top: 6px; }
  .access .info-col .inapp-items li { margin-bottom: 4px; }
  .access .info-col .inapp-items li { text-align: center; padding-left: 0; }
  .access .info-col .inapp-items li::before { display: none; }
  .access .info-col .need-help { margin-top: 10px; padding-top: 8px; }

  body { background:var(--cream); }
  .sheet { max-width:none; margin:0; box-shadow:none; }
  .page { width:100%; }

  .steps-wrap { flex-direction:row; align-items:flex-start; justify-content:space-between; gap:0; }
  .steps-col { display:contents; }
  .steps-col::before { display:none; }
  .step { flex:1; min-width:0; padding-left:0; margin-bottom:0; display:flex; flex-direction:column; align-items:center; text-align:left; }
  .step .n { position:static; margin:0 auto 10px; }
  .step .txt { padding-top:0; align-self: stretch; width: 100%; }
  .step-arrow { display:flex; align-items:center; justify-content:center; color:var(--gold); font-size:20px; flex:0 0 auto; margin-top:15px; padding:0 6px; }
}

/* horizontal scrollbar fix: .mm-footer's 100vw full-bleed trick
   measures the true window width, which is WIDER than the visible
   content area whenever a vertical scrollbar is present (the scrollbar
   eats into that space) - clip the few resulting pixels of horizontal
   overflow rather than trying to recompute the exact escape value at
   every breakpoint's own padding. */
@media screen {
  html, body { overflow-x: hidden; }
}
