/* legacy-islands.css — the thin presentation layer for pages converted off Tilda.
 *
 * It introduces NO palette, NO font and NO button style of its own: every colour is an existing
 * --gs-* / --ok-* token and every heading, paragraph, list, button and band comes from d3.css and
 * okno-constitution-waveb.css. What lives here is only the handful of shapes those layers do not
 * already have — a kicker line, a figure with a caption, a gallery grid, a stat pair and the
 * no-media hero variant — plus the mobile rules for them.
 */

/* --- hero ------------------------------------------------------------------ */
.lgc-hero__grid--nomedia { grid-template-columns: 1fr; }
.lgc-hero__grid--nomedia .lgc-hero__copy { max-width: 760px; }
.lgc-hero__copy { min-width: 0; }
.lgc-hero__media { align-self: start; }
.lgc-eyebrow {
  font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--gs-teal); margin: 0 0 10px;
}
.lgc-date { font-size: 13px; color: var(--ok-muted); margin: 0 0 14px; }
.lgc-hero__cta { margin-top: 18px; }
/* the hero's own buttons size to their label instead of stretching the full column */
.lgc-hero__cta .d3-btn { width: auto; }

/* --- figures and galleries -------------------------------------------------- */
.lgc-fig { margin: 0 0 18px; }
.lgc-fig img {
  display: block; width: 100%; height: auto; border-radius: 14px;
  background: var(--ok-card-surface-quiet);
}
.lgc-cap { font-size: 13px; line-height: 1.45; color: var(--ok-muted); margin: 8px 2px 0; }
/* Tilda sliders become a static grid: several pictures side by side, each keeping its own caption. */
.lgc-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 0 18px; }
.lgc-gallery .lgc-fig { margin: 0; }
.lgc-gallery .lgc-fig img { aspect-ratio: 4 / 3; object-fit: cover; }

/* --- stat pairs (a number and what it counts) ------------------------------- */
.lgc-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 4px 0 18px; }
.lgc-stat {
  background: var(--ok-card-surface); border: 1px solid var(--ok-card-line);
  border-radius: 16px; padding: 18px 18px 16px;
}
.lgc-stat__n { font-size: 30px; line-height: 1.05; font-weight: 800; color: var(--gs-teal); margin: 0 0 6px; }
.lgc-stat__l { font-size: 14px; line-height: 1.45; color: var(--ok-ink); margin: 0; }

/* --- long body copy --------------------------------------------------------- */
.lgc-sec .d3-p, .lgc-sec .d3-list { max-width: 760px; }
.lgc-sec .lgc-fig, .lgc-sec .lgc-gallery { max-width: 900px; }
/* body links only — never buttons: a blanket .lgc-main a rule repainted .d3-btn--primary teal-on-teal
   and made the label invisible. */
.lgc-main .d3-p a, .lgc-main .d3-list a, .lgc-main .d3-lead a, .lgc-main .lgc-cap a { color: var(--gs-teal); }
.lgc-main .d3-p a:hover, .lgc-main .d3-list a:hover, .lgc-main .d3-lead a:hover { color: var(--gs-teal-d, var(--gs-teal)); }
/* long unbroken URLs and slugs must not push the page sideways */
.lgc-main .d3-p, .lgc-main .d3-list li, .lgc-main .d3-h1, .lgc-main .d3-h2, .lgc-main .d3-h3 {
  overflow-wrap: break-word; hyphens: manual;
}
.lgc-main img, .lgc-main table { max-width: 100%; }

/* --- mobile ----------------------------------------------------------------- */
@media (max-width: 1000px) {
  .lgc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .lgc-hero .d3-hero__grid { grid-template-columns: 1fr; gap: 18px; }
  /* SHELL_MOBILE_FINAL_POLISH_R1 — page identity comes before decorative media on a phone.
     This layer previously pulled the hero image above the H1 with order:-1, which pushed the title and
     both CTAs below the fold on /about, /contacts and the rebuilt legacy pages. The rule is now the
     sitewide default: breadcrumb -> eyebrow/H1 -> lead -> CTA -> media. */
  .lgc-hero__media { order: 0; }
  .lgc-gallery { grid-template-columns: 1fr; }
  .lgc-stats { gap: 10px; }
  .lgc-stat { padding: 14px; border-radius: 14px; }
  .lgc-stat__n { font-size: 25px; }
}

/* --- numbered feature items (Tilda's numbered blocks keep their ordinal as content) --- */
.lgc-num { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 18px; list-style: none; padding: 0; }
.lgc-num > li {
  position: relative; background: var(--ok-card-surface); border: 1px solid var(--ok-card-line);
  border-radius: 16px; padding: 18px 18px 16px 18px;
}
.lgc-num__n {
  position: absolute; top: 10px; right: 16px; font-size: 26px; font-weight: 800;
  color: var(--gs-teal); opacity: .28; line-height: 1;
}
.lgc-num__b { font-size: 14px; line-height: 1.5; color: var(--ok-ink); display: block; padding-right: 34px; }
@media (max-width: 1000px) { .lgc-num { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .lgc-num { grid-template-columns: 1fr; } }

/* --- author byline (text only: the portrait was a staff photograph and is not allowed here) --- */
.lgc-byline { font-size: 14px; color: var(--ok-muted); margin: 18px 0 0; }
.lgc-byline a { color: var(--ok-muted); text-decoration: underline; }

/* --- retained legacy form island -------------------------------------------------------------- */
/* The form inside keeps its own Tilda styling, on purpose: it is the working lead/payment contract.
   This only gives it the same canvas, rhythm and rounded surface as every other section. */
.lgc-island__wrap { max-width: 900px; }
.lgc-island .t-container, .lgc-island .t-container_100 { width: auto; max-width: 100%; }
.lgc-island .t-col { float: none; margin: 0 auto; }
.lgc-fx .t-records { opacity: 1 !important; }
/* a popup form takes no space until it is opened */
.lgc-island--popup { display: contents; }

/* The founder's portrait was removed from the retained quiz forms (staff photography is Team-page only).
   Collapse the empty avatar column so the name and role read as a compact text byline, with no hole. */
.lgc .t-quiz__consultant__info-container:empty { display: none; }
.lgc .t-quiz__consultant__container { gap: 0; }


/* ================= SHELL_MOBILE_FINAL_POLISH_R1 ==================================================
   Visual-only normalisation of the retained Tilda form islands. Nothing here changes a field name, an
   id, a value, requiredness, a handler, validation, a product id, an amount or the form's destination:
   these rules touch typography, spacing, radius and hit area only, and they are scoped to .lgc-island
   so no other form on the site is affected.                                                        */

.lgc-island .t-input,
.lgc-island .t-select,
.lgc-island textarea.t-input{
  font-family:inherit;
  border-radius:10px;
  border-color:var(--ok-card-line,#e7ecf3);
}
.lgc-island .t-input:focus-visible,
.lgc-island .t-select:focus-visible,
.lgc-island textarea.t-input:focus-visible{
  outline:2px solid var(--gs-teal,#0d7c6b);
  outline-offset:1px;
}
/* A choice row is the real tap target — the native radio inside it is 13px. */
.lgc-island .t-radio__control,
.lgc-island .t-checkbox__control{min-height:44px;display:flex;align-items:center}
/* Validation text has to be readable before it is decorative. */
.lgc-island .t-input-error,
.lgc-island .t-form__errorbox-item{font-family:inherit;font-size:13px;line-height:1.4}

@media (max-width:767px){
  /* The submit row must clear the floating stack's column, like every other action row. */
  .lgc-island .t-form__submit{padding-right:62px}
}
