/* =====================================================================
   OurKapolei: Our-network MOBILE TYPE SCALE v2 "large"
   Adapted from /workspace/our-mobile-type/mobile-type-fix.css (Dezign, 2026-11-17)
   to OurKapolei markup (shared Our* styles.css + kapolei.css). Load LAST.
   ≤1020px only. Desktop (>1020px) is untouched.
   Spec: body 20/1.6/400 · labels 15/600 · nav + buttons 16/600, 44–48px taps ·
   wordmark ≈36px (SVG logo scaled) · hero H1 ≈55 · H2 38 · card titles 34 ·
   headlines 500.  Palette v2 kept; small text on sand is #12385A/#1A5278, never #2E6E96.
   ===================================================================== */
:root{
  --fs-body-m:  clamp(1.25rem, 1.15rem + .4vw, 1.375rem);   /* 20 → 22px */
  --fs-lede-m:  clamp(1.3125rem, 1.2rem + .5vw, 1.4375rem); /* 21.2 → 23px */
  --fs-label-m: .9375rem;                                   /* 15px */
  --fs-ui-m:    1rem;                                       /* 16px */
  --fs-credit-m:.9375rem;                                   /* 15px */
  --fs-small-m: 1.0625rem;                                  /* 17px */
  --fs-h1-m:    clamp(3.375rem, 2rem + 6vw, 4.75rem);       /* 55px @390 */
  --fs-h1s-m:   clamp(2.875rem, 1.75rem + 5vw, 4.25rem);    /* 47.5px @390 */
  --fs-h2-m:    clamp(2.375rem, 1.75rem + 2.6vw, 3rem);     /* 38px @390 */
  --fs-h3-m:    clamp(2rem, 1.5rem + 2.6vw, 2.5rem);        /* 34px @390 */
  --lh-body-m:  1.6;
  --ls-label-m: .08em;
  --tap-m:      44px;
  --ink2-m:     #24384C;  /* secondary copy on sand/white */
  --muted-m:    #3F5568;  /* meta, credits */
}

@media (max-width:1020px){
  /* ---------- body copy: 20px / 1.6 / 400 ---------- */
  body{font-size:var(--fs-body-m);line-height:var(--lh-body-m);font-weight:400}
  .card-body p,.prose p,.notice,.notice p,.hub-body,.hub-body p,.hub-body li,.biz-list li,details.faq p,
  .newsletter p,.split-card p,.ad-cta p,.highlights li,.section-head p{font-size:var(--fs-body-m);line-height:var(--lh-body-m);font-weight:400}
  .muted{color:var(--muted-m)}
  .hero .lede,.kp-hero .lede{font-size:var(--fs-lede-m);line-height:1.5;font-weight:400}

  /* ---------- headlines: weight 500, wrap long words safely ---------- */
  h1,h2,h3,h4{font-weight:500;letter-spacing:-.005em;overflow-wrap:break-word;hyphens:manual}
  .hero h1,.kp-hero h1{font-weight:500;line-height:1.04;max-width:none}
  /* home hero ≈55px; interior page heroes ≈47.5px, capped by viewport so the longest word fits */
  .kp-hero h1{font-size:min(var(--fs-h1s-m),10.6vw)}
  .kp-hero:has(.hero-actions) h1{font-size:min(var(--fs-h1-m),14.5vw)}
  .section h2,.newsletter h2,.prose h2,.form h2{font-size:min(var(--fs-h2-m),10vw);line-height:1.1}
  .card h3,.hub-head h2,.hub-head h3,.split-card h3{font-size:min(var(--fs-h3-m),9vw);line-height:1.12}
  .card h3 a{overflow-wrap:break-word}
  .credit-card h3{font-size:1.5rem;line-height:1.25;overflow-wrap:anywhere} /* file titles, not headlines */
  details.faq summary{font-size:1.375rem;font-weight:600;line-height:1.35;min-height:var(--tap-m);padding:.35rem 0}

  /* ---------- labels: 15px / 600 ---------- */
  .eyebrow,.badge,.tag,.event-when,.hub-cols h4,.site-footer h3,.site-footer h4,.form label,.check{
    font-size:var(--fs-label-m)!important;font-weight:600!important;letter-spacing:var(--ls-label-m);line-height:1.4}
  .tag{padding:.25rem .7rem}
  .event-when{letter-spacing:.01em}
  .form .check{letter-spacing:0}
  .eyebrow{white-space:normal;padding:.4rem .9rem}

  /* ---------- credits / meta ---------- */
  .photo .credit,.credit,.hero-credit{font-size:var(--fs-credit-m);line-height:1.5}
  .photo .credit,.photo .credit a{color:var(--muted-m)}
  .hero-credit{left:24px;right:24px;bottom:.5rem;text-align:right;white-space:normal}
  .kp-hero{padding-bottom:5.5rem}
  .muted-light,.legal{font-size:var(--fs-small-m);line-height:1.6}

  /* ---------- buttons: 16px / 600, ≥48px ---------- */
  .btn,.nl-row button,.form button{font-size:var(--fs-ui-m)!important;font-weight:600;letter-spacing:.02em;min-height:48px;padding:14px 24px;white-space:normal;text-align:center}
  .dir-chip{font-size:var(--fs-ui-m);font-weight:600;min-height:var(--tap-m);padding:.5rem 1rem}
  .nl-row input,.form input,.form select,.dir-toolbar input{font-size:1.125rem;min-height:56px}
  .form textarea{font-size:1.125rem}
  /* fix (pre-existing): submit/advertise fields wider than the card on phones */
  .form input,.form select,.form textarea,.nl-row input{min-width:0;max-width:100%}
  .form .grid{grid-template-columns:minmax(0,1fr)}

  /* ---------- header: logo ≈36px wordmark, 48px menu target ---------- */
  .brand img{height:60px;width:auto}
  .header-inner{padding:.4rem 0}
  .menu-toggle{min-width:48px;min-height:48px;font-size:1.75rem;line-height:1;display:inline-flex;align-items:center;justify-content:center}
  .nav.open{gap:.25rem;padding:.75rem 1.5rem 1.25rem;max-height:calc(100dvh - 4.75rem)}
  .nav.open .nav-link{display:flex;align-items:center;min-height:48px;font-size:var(--fs-ui-m);font-weight:600;padding:0 1rem;border-radius:12px}
  .nav.open .btn-submit{min-height:48px;margin-top:.5rem}

  /* ---------- footer: 17–18px, 44px link targets ---------- */
  .site-footer{font-size:var(--fs-small-m)}
  .site-footer p a{display:inline-flex;align-items:center;min-height:var(--tap-m)}
  .footer-brand img{height:56px;width:auto}
}

@media (max-width:760px){
  /* 8pt-grid gutters (were 16px) */
  .wrap,.hero-inner{width:calc(100% - 48px)}
  .card-body{padding:1.5rem 1.5rem 1.75rem}
  .section{padding:3.5rem 0}
  .hero-actions .btn{flex:1 1 100%}
}
@media (max-width:374px){
  .wrap,.hero-inner{width:calc(100% - 40px)}
  .brand img{height:56px}
  .card-body{padding:1.25rem 1.25rem 1.5rem}
}
