/* ════════════════════════════════════════════════════════════════════════
   v7.7 — layout & polish pass (loaded last, overrides only)
   1. One content width for every section (centred, 1320px max)
   2. Hero: map pins line up with the map at every width, one-row finder
   3. Home companies strip: even grid, monogram instead of the empty drop
   4. Mobile: hamburger on the right, full-width hero buttons, swipe rows
   5. One typeface everywhere (the serif headings are gone)
   6. Find cards: long company names wrap instead of being cut
   7. Privacy / Terms / Contact pages
   ════════════════════════════════════════════════════════════════════════ */
:root{--psk-max:1872px;--psk-gut:max(24px,calc((100% - var(--psk-max)) / 2))}

/* 1 ── shared content width ─────────────────────────────────────────── */
.hero-v2-grid{padding-left:var(--psk-gut);padding-right:var(--psk-gut)}
.home-companies-full{max-width:none;margin:0;padding-left:var(--psk-gut);padding-right:var(--psk-gut)}
.home-announcements-band{padding-left:var(--psk-gut)!important;padding-right:var(--psk-gut)!important}
.home-announcements-grid{max-width:none;margin:0}
.home-about-structure,.home-what-photo-section,.home-oeb-section,.home-membership-cta{padding-left:var(--psk-gut);padding-right:var(--psk-gut)}
.home-about-structure .home-about-panel{padding-left:0}
.home-what-photo-grid{max-width:none}
.footer-grid{max-width:var(--psk-max);padding:0 24px;box-sizing:border-box}
.footer-bottom,.footer-bar{padding-left:24px;padding-right:24px}
@media(max-width:1000px){.home-about-structure{padding-left:0;padding-right:0}.home-about-structure .home-about-panel{padding-left:24px}}

/* 2 ── hero ─────────────────────────────────────────────────────────── */
/* The map box was stretched to the side panel's height, so the image was
   letter-boxed and the count badges drifted off the printed pins. */
.hero-visual-row{align-items:center}
.hero-visual-row .hero-map-wrap{align-self:center;height:auto}
.hero-district-panel{align-self:stretch}
.home-finder-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:stretch}
.home-finder-pill{min-width:0;padding:11px 14px}
.home-finder-pill select{font-size:13px;text-overflow:ellipsis}
.home-finder-filters > .btn{height:auto!important;min-height:44px;padding:0 20px;border-radius:100px;font-size:14px;gap:8px;white-space:nowrap;justify-content:center}

.hero-trust-row-compact .hero-trust-item{max-width:none}

/* 3 ── home companies strip ─────────────────────────────────────────── */
.home-companies-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:18px}
.home-companies-grid .hc-card{width:auto;max-width:none;flex:none}
.hc-card-avatar .hc-mono{width:64px;height:64px;border-radius:16px;background:rgba(255,255,255,.92);color:var(--green-dark,#0F4D3E);display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:800;letter-spacing:-.02em;box-shadow:0 6px 18px rgba(8,72,58,.18)}
.home-companies-head .home-card-link{margin-left:auto}
@media(max-width:1100px){.home-companies-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* 4 ── mobile ───────────────────────────────────────────────────────── */
.nav-mobile-toggle{margin-left:auto}
@media(max-width:900px){
  .home-finder-col{text-align:left;align-items:stretch;padding-left:0;padding-right:0}
  .hero-v2-tag{align-self:flex-start}
  .hero-v2-btns{display:grid;grid-template-columns:1fr 1fr;gap:10px;width:100%}
  .hero-v2-btns .btn{width:100%;justify-content:center}
  .hero-trust-row-compact{display:grid;grid-template-columns:1fr;gap:10px;width:100%}
  .hero-trust-row-compact .hero-trust-item{max-width:none;flex:none;align-items:center}
  .hero-trust-row-compact .hero-trust-item p{font-size:11.5px}
  .home-finder-filters{grid-template-columns:1fr;width:100%}
  .home-finder-filters > .btn{min-height:46px;height:46px!important;width:100%;justify-content:center;font-size:14.5px!important}
  .home-finder-trust{text-align:left}
}
@media(max-width:600px){
  .hero-v2-btns{grid-template-columns:1fr}
  /* Long lists become swipe rows instead of a very long page */
  .home-companies-grid,.home-what-photo-grid{display:grid;grid-auto-flow:column;grid-template-columns:none;grid-auto-columns:78%;overflow-x:auto;scroll-snap-type:x mandatory;gap:14px;padding-bottom:10px;margin-right:-24px;padding-right:24px;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  .home-companies-grid::-webkit-scrollbar,.home-what-photo-grid::-webkit-scrollbar{display:none}
  .home-companies-grid > *,.home-what-photo-grid > *{scroll-snap-align:start}
  .home-companies-head{flex-wrap:nowrap}
  .home-companies-head h3{font-size:16px}
  .home-companies-head .home-card-link{white-space:nowrap}
}

/* 5 ── one typeface ─────────────────────────────────────────────────── */
#app :is(h1,h2,h3,h4),.ab-hero h1,.ab-card h2,.ab-cta h2,.psk-enter h2,.rp-head h1,.rp-card-head h2,.rp-done-top h1,
.about-hero-title,.about-card-title,.about-oeb-mark{font-family:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif!important}
.ab-hero h1,.rp-head h1,.about-real-hero h1{letter-spacing:-.035em!important;font-weight:800!important}
.about-top-cards .about-card-title{font-weight:700}

/* 6 ── find cards ───────────────────────────────────────────────────── */
.fc-id h3 button{white-space:normal;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;word-break:break-word}
.fc-head{align-items:flex-start}

/* 7 ── legal + contact pages ────────────────────────────────────────── */
.spl-page{max-width:860px;margin:0 auto;padding:40px 24px 64px}
.spl-kicker{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--green,#0E5745);margin-bottom:10px}
.spl-page h1{font-size:clamp(28px,4vw,40px);font-weight:800;letter-spacing:-.03em;color:#0b2e24;margin:0 0 8px}
.spl-sub{font-size:15px;color:var(--muted,#5b6b64);margin:0 0 26px;line-height:1.6}
.spl-card{background:#fff;border:1px solid var(--border,#DDE5E1);border-radius:18px;padding:8px 28px}
.spl-sec{padding:22px 0;border-bottom:1px solid #EDF2EF;display:grid;grid-template-columns:40px 1fr;gap:14px}
.spl-sec:last-child{border-bottom:0}
.spl-sec .ic{width:40px;height:40px;border-radius:12px;background:#EFF6F2;color:var(--green-dark,#08483A);display:flex;align-items:center;justify-content:center}
.spl-sec h2{font-size:16.5px;font-weight:700;color:#0b2e24;margin:8px 0 6px}
.spl-sec p,.spl-sec li{font-size:14.5px;line-height:1.7;color:#3f5049;margin:0}
.spl-sec ul{margin:6px 0 0;padding-left:18px}
.spl-sec a{color:var(--green,#0E5745);font-weight:600}
.spl-meta{font-size:12.5px;color:var(--muted,#5b6b64);margin-top:16px}
@media(max-width:600px){.spl-card{padding:4px 18px}.spl-sec{grid-template-columns:1fr}.spl-sec .ic{width:36px;height:36px}}

.ct-page{max-width:var(--psk-max);margin:0 auto;padding:40px 24px 64px}
.ct-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:22px;margin-top:6px}
.ct-card{background:#fff;border:1px solid var(--border,#DDE5E1);border-radius:18px;padding:24px}
.ct-card h2{font-size:18px;font-weight:800;color:#0b2e24;margin:0 0 4px;letter-spacing:-.01em}
.ct-card > p{font-size:14px;color:var(--muted,#5b6b64);margin:0 0 16px;line-height:1.6}
.ct-rows{display:flex;flex-direction:column;gap:10px}
.ct-row{display:flex;align-items:center;gap:14px;padding:14px 16px;border:1px solid #E6EEEA;border-radius:14px;color:#14231C;text-decoration:none;background:#FBFDFC;transition:border-color .15s,background .15s}
a.ct-row:hover{border-color:#9CC9B5;background:#F3FAF6}
.ct-row .ic{width:42px;height:42px;border-radius:12px;background:#EFF6F2;color:var(--green-dark,#08483A);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.ct-row small{display:block;font-size:12px;color:var(--muted,#5b6b64);font-weight:600;text-transform:uppercase;letter-spacing:.05em}
.ct-row b{font-size:15.5px;font-weight:700;word-break:break-word}
.ct-row.muted b{color:var(--muted,#5b6b64);font-weight:600}
.ct-actions{display:grid;grid-template-columns:1fr;gap:10px}
.ct-act{display:flex;gap:14px;align-items:flex-start;text-align:left;padding:16px;border:1px solid #E6EEEA;border-radius:14px;background:#fff;cursor:pointer;font:inherit;color:inherit;transition:border-color .15s,box-shadow .15s}
.ct-act:hover{border-color:#9CC9B5;box-shadow:0 6px 18px rgba(8,72,58,.07)}
.ct-act .ic{width:40px;height:40px;border-radius:12px;background:#0E5745;color:#fff;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.ct-act b{display:block;font-size:15px;color:#0b2e24;margin-bottom:2px}
.ct-act span{font-size:13.5px;color:var(--muted,#5b6b64);line-height:1.5}
.ct-faq{margin-top:22px}
.ct-faq details{border-top:1px solid #EDF2EF;padding:4px 0}
.ct-faq details:first-of-type{border-top:0}
.ct-faq summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 0;font-size:15px;font-weight:700;color:#0b2e24}
.ct-faq summary::-webkit-details-marker{display:none}
.ct-faq summary .chev{transition:transform .2s;color:var(--green,#0E5745);display:flex}
.ct-faq details[open] summary .chev{transform:rotate(180deg)}
.ct-faq details p{margin:0 0 14px;font-size:14.5px;line-height:1.7;color:#3f5049}
@media(max-width:900px){.ct-grid{grid-template-columns:1fr}}

/* Company profile: the reviews box is hidden until real reviews exist */
.cp-reviews-empty{display:none!important}

/* Member dashboard: “set your own password” reminder */
.cd-pw-nudge{display:flex;align-items:center;gap:14px;padding:16px 18px;border-radius:16px;background:#FFF8EC;border:1px solid #F3DDB3;margin-bottom:16px}
.cd-pw-nudge .ic{width:40px;height:40px;border-radius:12px;background:#fff;color:#A15C07;display:flex;align-items:center;justify-content:center;flex-shrink:0;border:1px solid #F3DDB3}
.cd-pw-nudge div{flex:1;min-width:0}
.cd-pw-nudge b{display:block;font-size:15px;color:#5C3A06}
.cd-pw-nudge span{font-size:13.5px;color:#7A5418}
.cd-pw-nudge .btn{white-space:nowrap}
@media(max-width:600px){.cd-pw-nudge{flex-wrap:wrap;position:relative;padding-right:52px}.cd-pw-nudge .btn{width:100%;justify-content:center;margin-right:-34px}.cd-pw-nudge .cd-pw-x{position:absolute;top:10px;right:10px}}

/* Admin approval card: ready-to-send welcome message */
.ax-welcome{margin-top:12px;border:1px solid #DDE5E1;border-radius:12px;background:#FBFDFC}
.ax-welcome pre{margin:0;padding:12px 14px;max-height:170px;overflow:auto;white-space:pre-wrap;font:12.5px/1.55 'Inter',system-ui,sans-serif;color:#24352E}
.ax-welcome-acts{display:flex;gap:8px;flex-wrap:wrap;padding:10px 12px;border-top:1px solid #E6EEEA}
.ax-welcome-acts .ax-btn{flex:1 1 auto;justify-content:center}
.ax-welcome-title{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700;color:#0b2e24;margin:14px 0 6px}

/* Logos: a bit more room, and no extra padding once the border is trimmed */
.fc-logo.img{width:64px;height:64px}
.fc-logo img.sp-logo-trim{padding:4px}
.home-what-photo-card img{background:#EEF4F1}

/* ── Mobile admin / member area polish (v7.9) ───────────────────────── */
@media (max-width: 900px) {
  /* iPhone zooms the page when a field under 16px gets focus */
  input:not([type=checkbox]):not([type=radio]):not([type=range]),
  select, textarea { font-size: 16px !important; }
  /* comfortable tap targets for text links and small buttons */
  .ax-link, .adm2-link, .adm2-kpi-link, .co-link, .cd-link, .home-card-link { min-height: 40px; display: inline-flex; align-items: center; }
  .modal-box .btn-sm, .modal-actions .btn, .modal-actions .ax-btn, .admin-logout-actions button { min-height: 46px; }
  .modal-box .btn-sm { flex: 1 1 0; justify-content: center; font-size: 15px; }
  [onclick="_confirmNo()"] .btn-sm { height: auto !important; min-height: 46px !important; flex: 1 1 0; justify-content: center; font-size: 15px; }
  [onclick="_confirmNo()"] > div { padding: 22px 20px !important; }
  .admin-logout-actions button { flex: 1 1 0; }
  /* Offers: the three action buttons no longer get cut off */
  .offers-action-bar { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; }
  .offers-action-bar > .btn { white-space: normal !important; font-size: 14px !important; padding: 8px 10px !important; min-height: 46px; line-height: 1.2; justify-content: center; text-align: center; width: 100%; }
  .offers-action-bar > .admin-action-primary { grid-column: 1 / -1; order: -1; }
  .admin-form-sticky-actions .btn { white-space: normal; }
  .admin-shell .btn-sm, .cd-wrap .btn-sm { height: auto !important; min-height: 40px !important; }
}

/* Approval card: on short phones the content scrolls instead of squeezing */
.ax-modal-box{max-height:calc(100dvh - 24px);overflow-y:auto;-webkit-overflow-scrolling:touch}
.ax-modal-box > *{flex-shrink:0}
@media (max-width: 600px){ .ax-welcome pre{max-height:130px} }
