/* The stylesheet of the public share pages (resources/views/public), screen 42. ONE same-origin file: the page's CSP is `default-src 'self'` (+ form-action 'self'), so there is no inline style, no CDN and no
   font from another origin. The typeface is Poppins latin 400/500/600, SELF-HOSTED under /fonts/poppins (SIL OFL 1.1, see /fonts/poppins/README.txt and OFL.txt); `font-src 'self'` is already covered by default-src.
   TOKENS: the values are the design tokens' (resources/css/tokens.css, the Indigo default theme, light, and its dark set by the OS preference; a unit test pins that the shared names carry the same values; the frame and hero follow the pack's --frame / --frame-2, DESIGN_TOKENS.css .pub-hero). Every colour, radius and the
   font below is read through a custom property, so a white-label theme (Phase 2) swaps them by loading ONE more same-origin stylesheet that redefines the :root block, with no change to this file or the views.
   There is no [data-theme] switch here on purpose: the page has no script, no cookie and no session, so it follows the visitor's OS setting. Logical properties only (inline/block), so a right-to-left language needs no rework. */
@font-face{font-family:'Poppins';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/poppins/poppins-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Poppins';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/poppins/poppins-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Poppins';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/poppins/poppins-latin-600-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root{
  color-scheme:light dark;
  --page:#ECECF4;--surface:#FBFCFD;--surface-2:#F2F2F8;--line:#D8E0E9;--line-strong:#C1CCD8;--slate:#E1E1F0;
  --navy:#2A2777;--navy-soft:#E4E3F7;--text:#1D3047;--text-2:#3B4D6E;--text-3:#5B6981;
  --teal:#5B5BD6;--teal-hover:#4A48C2;--teal-ink:#4A48C2;--teal-soft:#ECECFC;--on-teal:#FFFFFF;
  --frame:#1E1B4B;--frame-2:#2B2768;--frame-ink:#E7E6FB;--frame-ink-2:#A9A6D9;--frame-hi:#FFFFFF;--mint:#A5B4FC;
  --red:#C4321F;--red-soft:#FDECEA;
  --hero-bg:var(--frame-2);--hero-ink:#FFFFFF;--hero-ink-2:var(--frame-ink-2);
  --r-sm:8px;--r:10px;--r-lg:12px;
  --shadow:0 1px 2px rgba(18,39,74,.06),0 8px 24px rgba(18,39,74,.08);
  --font:'Poppins',ui-sans-serif,system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
}
@media (prefers-color-scheme:dark){:root{
  --page:#0B1622;--surface:#102033;--surface-2:#142840;--line:#22384F;--line-strong:#30506E;--slate:#18304A;
  --navy:#8DC0E0;--navy-soft:#16324A;--text:#E6EDF5;--text-2:#A9B8CA;--text-3:#8FA0B6;
  --teal:#8484E0;--teal-hover:#9D9DE6;--teal-ink:#9D9DE6;--teal-soft:var(--navy-soft);--on-teal:#0B1220;
  --red:#F2786A;--red-soft:#3A1916;
  --shadow:0 1px 2px rgba(0,0,0,.3),0 8px 24px rgba(0,0,0,.3);
}}

*,*::before,*::after{box-sizing:border-box}
body.share-public{margin:0;min-block-size:100vh;background:var(--page);color:var(--text);font:400 16px/1.55 var(--font);-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%}
h1,h2,h3{margin:0;color:var(--navy);font-weight:600;letter-spacing:-.005em}
h1{font-size:1.6rem;line-height:1.3}h2{font-size:1.1rem;line-height:1.35}h3{font-size:1rem;line-height:1.4}
p{margin:0}a{color:var(--teal-ink)}
/* BG-2736: one unbroken word (a tenant's price label, a name) wraps inside its box instead of widening the page past a 390 px phone; buttons may shrink below their usual minimum for the same reason */
h1,h2,h3,p,li,label,legend,.share-brand,.share-supplier,.share-price,.share-line{overflow-wrap:anywhere}
.share-button,.link-button{max-inline-size:100%;overflow-wrap:anywhere;text-align:center}
button,input,select,textarea{font:inherit;color:inherit}
.muted{color:var(--text-2)}.small{font-size:.9rem}

/* the framed bar (the pack's .appbar on the frame colour): the company name, no logo yet */
.share-bar{display:flex;align-items:center;min-block-size:58px;padding-inline:20px;background:var(--frame);border-block-end:1px solid var(--frame-2)}
.share-brand{font-weight:600;font-size:1.05rem;color:var(--frame-hi)}

.share-shell{max-inline-size:720px;margin-inline:auto;padding:26px 16px 48px;display:flex;flex-direction:column;gap:18px}
.share-narrow{max-inline-size:520px;padding-block-start:64px}

/* the hero (the pack's .pub-hero): brand colour band, white text */
.share-hero{display:flex;flex-direction:column;gap:6px;padding:28px;background:var(--hero-bg);color:var(--hero-ink);border-radius:var(--r-lg)}
.share-hero h1{color:var(--hero-ink);font-size:1.6rem;overflow-wrap:anywhere}
.share-hero p{color:var(--hero-ink-2);margin-block-start:0}

/* the groups: a heading band as in the pack ("Also picked for you") */
.share-group{display:flex;flex-direction:column;gap:12px}
.share-group>h2{padding:8px 14px;background:var(--slate);border-inline-start:4px solid var(--navy);border-radius:var(--r-sm);font-size:.95rem}

.share-cards,.share-gallery,.share-pack{list-style:none;margin:0;padding:0}
.share-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
/* the plan card (the pack's .plan): supplier, name, price, description */
.share-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:16px;display:flex;flex-direction:column;gap:10px;min-inline-size:0}
.share-card h3{overflow-wrap:anywhere}
.share-supplier{font-size:.78rem;font-weight:500;color:var(--text-3)}
.share-price{font-weight:600;font-size:1.2rem;color:var(--navy)}
.share-rich{color:var(--text-2);font-size:.95rem;overflow-wrap:anywhere}
.share-rich p{margin:0 0 8px}.share-rich>:last-child{margin-block-end:0}
.share-rich ul,.share-rich ol{margin:0 0 8px;padding-inline-start:20px}
.share-gallery{display:flex;flex-wrap:wrap;gap:8px}
.share-gallery figure{margin:0;max-inline-size:140px}
/* a picture that fails to load shows its alt text inside this box (no script, so no swap): the box keeps the thumbnail's shape */
.share-gallery img{display:block;max-inline-size:100%;block-size:auto;background:var(--surface-2);border:1px solid var(--line);border-radius:var(--r-sm);color:var(--text-2);font-size:.85rem}
.share-gallery a{display:block;border-radius:var(--r-sm)}
.share-gallery figcaption{margin-block-start:4px;overflow-wrap:anywhere}
.share-pack{display:flex;flex-direction:column;gap:2px;font-size:.95rem}

/* the form */
.share-form-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:20px}
.share-form-card>h2{margin-block-end:14px}
.share-field{display:flex;flex-direction:column;gap:4px;margin:0 0 14px;border:0;padding:0;min-inline-size:0}
.share-field label,.share-field legend{font-weight:500;font-size:.86rem;color:var(--text-2);padding:0}
.share-field legend{margin-block-end:2px}
.share-field.is-required>label::after{content:" *";color:var(--red)}
/* the pack's .grid2: two columns, one under 860 px */
.share-grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}
.share-field input[type=text],.share-field input[type=tel],.share-field input[type=email],.share-field textarea{inline-size:100%;min-block-size:44px;padding:9px 12px;border:1px solid var(--line-strong);border-radius:var(--r-sm);background:var(--surface);color:var(--text);font-size:1rem}
.share-field input[type=text]:focus,.share-field input[type=tel]:focus,.share-field input[type=email]:focus,.share-field textarea:focus{outline:2px solid var(--teal);outline-offset:0;border-color:var(--teal)}
.share-field textarea{min-block-size:96px;line-height:1.5;resize:vertical}
.share-field input:hover,.share-field textarea:hover{border-color:var(--text-2)}
.share-check{display:flex;align-items:center;gap:10px;min-block-size:44px;font-weight:400!important;cursor:pointer}
.share-check input{inline-size:20px;block-size:20px;flex:none;accent-color:var(--teal)}
.share-check{font-size:.9rem}
.share-check span{overflow-wrap:anywhere}
.share-hint{margin:0 0 8px}
.share-field [aria-invalid=true],.share-field[aria-invalid=true]{border-color:var(--red)}
.share-error{color:var(--red);font-size:.9rem;font-weight:500}
.share-errors{background:var(--red-soft);border:1px solid var(--red);border-radius:var(--r-sm);padding:12px 14px;margin-block-end:16px;color:var(--text);scroll-margin-block-start:16px}
.share-errors:focus{outline:2px solid var(--red);outline-offset:2px}
.share-errors ul{margin:6px 0 0;padding-inline-start:20px}
.share-errors a{color:var(--text);font-weight:500}
/* the pack's .btn: brand fill, 8 px radius, 500 weight; 44 px tall for the touch target, no fixed width */
.share-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-block-size:44px;padding:9px 20px;border:1px solid transparent;border-radius:var(--r-sm);background:var(--teal);color:var(--on-teal);font-size:.95rem;font-weight:500;cursor:pointer}
.share-button:hover{background:var(--teal-hover)}
.share-notice{margin:6px 0 14px;padding:14px 16px;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--surface-2)}
.share-notice h2{margin:0 0 6px;font-size:1rem}
.share-notice p{margin:0}
.share-notice p+p{margin-block-start:6px}
.share-text{white-space:pre-line;overflow-wrap:anywhere}
.share-consent .share-hint{margin:0 0 4px}
.share-consent .share-check{align-items:flex-start;padding-block:6px}
.share-consent .share-check input{margin-block-start:2px}
.share-legal{margin-block-start:12px;font-size:.9rem;color:var(--text-2)}
.share-button+.share-legal{margin-block-start:16px}

/* the chat entry (a native form: no script, no token; see the view). The button is the quieter of the page's two actions, the sign-up form's stays the primary one. */
.share-chat-card{display:flex;flex-direction:column;gap:12px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:20px}
.share-chat-card form{display:flex;flex-direction:column;gap:12px;align-items:flex-start}
.share-chat-card .share-field{margin:0;inline-size:100%}
.share-chat-helper{color:var(--text-2);font-size:.9rem}
/* the pack's .btn.ghost */
.share-button.is-secondary{background:var(--surface);color:var(--navy);border-color:var(--line-strong)}
.share-button.is-secondary:hover{background:var(--surface-2)}
.share-chat-notice{padding:12px 14px;border:1px solid var(--line-strong);border-inline-start:4px solid var(--navy);border-radius:var(--r-sm);background:var(--surface-2);color:var(--text);overflow-wrap:anywhere}

/* the honeypot: off-screen, never focusable (tabindex -1), hidden from assistive technology (aria-hidden) */
.share-hp{position:absolute;inset-inline-start:-10000px;inline-size:1px;block-size:1px;overflow:hidden}

/* the generic answer pages: thanks, unavailable, throttled (they carry no data of any kind) */
.share-panel{display:flex;flex-direction:column;align-items:flex-start;gap:10px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:28px}
.share-panel .share-icon{inline-size:36px;block-size:36px;color:var(--teal)}
.share-panel .share-icon.is-quiet{color:var(--text-2)}
.share-line{font-weight:500;color:var(--text)}

:focus-visible{outline:2px solid var(--teal);outline-offset:2px;border-radius:4px}
.share-button:focus-visible{outline-offset:3px}

/* the pack's phone layout (860 px): every grid is one column */
@media (max-width:860px){
  .share-cards,.share-grid2{grid-template-columns:1fr}
  .share-bar{padding-inline:14px}
}
@media (max-width:560px){
  .share-shell{padding:16px 12px 40px;gap:18px}
  .share-narrow{padding-block-start:32px}
  .share-hero{padding:20px}
  .share-hero h1{font-size:1.4rem}
  .share-form-card,.share-panel,.share-chat-card{padding:16px}
  .share-button{inline-size:100%}
  .share-chat-card form{align-items:stretch}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
@media print{.share-form-card{display:none}}
