/* Shared COKLIO public identity. Local system fonts, no external assets.
   Load after the existing application/editorial styles. Game, Studio, print
   and legal document content retain their own layout. */
:root {
  --public-ink: #173e39;
  --public-muted: #526660;
  --public-green: #08796b;
  --public-paper: #fcfcf9;
  --public-soft: #edf4ef;
  --public-rule: #d9e4dc;
  --public-width: 1200px;
  --public-gutter: clamp(20px, 3vw, 36px);
  --ed-ink: var(--public-ink);
  --ed-paper: var(--public-paper);
  --ed-accent: #dcefe4;
  --ed-mute: var(--public-muted);
  --ed-line: var(--public-rule);
}

/* The same header on the home, discovery, seasonal and information pages. */
.topbar, .ed-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--public-paper);
  border-bottom: 1px solid var(--public-rule);
  backdrop-filter: none;
  color: var(--public-ink);
}
.nav-shell, .ed-topbar-inner {
  box-sizing: border-box;
  max-width: var(--public-width);
  min-height: 82px;
  height: auto;
  padding: 14px var(--public-gutter);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: nowrap;
}
.brand, .ed-brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font: 800 29px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -.065em;
  color: var(--public-ink);
  white-space: nowrap;
  text-decoration: none;
}
.brand-mark, .ed-brand-symbol {
  width: 34px;
  height: 34px;
  margin-right: 9px;
  border-radius: 9px;
  background: #dcefe4;
  color: var(--public-green);
  display: inline-grid;
  place-items: center;
  font-size: 25px;
  font-weight: 500;
  letter-spacing: 0;
}
.brand-dot, .ed-brand-period { color: var(--public-green); }
.nav-links, .ed-navigation {
  display: flex;
  flex: 1;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: nowrap;
  margin: 0;
  gap: 16px;
  overflow: visible;
}
.nav-shell .nav-links a, .ed-navigation a {
  padding-block: 11px;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 650;
  white-space: nowrap;
  color: var(--public-ink);
}
.nav-links a:hover, .ed-navigation a:hover,
.ed-navigation a[aria-current="page"] {
  color: var(--public-green);
  text-decoration: underline;
  text-decoration-color: var(--public-green);
  text-underline-offset: 7px;
  text-decoration-thickness: 2px;
}
.nav-shell #nav-auth { margin: 0; flex: 0 0 auto; }
.nav-auth { gap: 8px; }
.nav-auth .btn { padding: 10px 12px; font-size: 12px; border-radius: 7px; box-shadow: none; }
.language-switch { margin: 0; flex: 0 0 auto; }
.language-switch select, .public-language-menu > summary {
  min-height: 44px;
  border: 1px solid var(--public-rule);
  border-radius: 7px;
  background: transparent;
  color: var(--public-ink);
  padding: 10px 12px;
  font: 600 12px/1.5 system-ui, sans-serif;
  cursor: pointer;
}
.public-language-menu { position: relative; margin: 0; }
.public-language-menu > summary { list-style: none; white-space: nowrap; }
.public-language-menu > summary::-webkit-details-marker { display: none; }
.public-language-menu > summary::after { content: "⌄"; margin-left: 9px; }
.public-language-menu .ed-language {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 160px;
  margin: 0;
  padding: 8px;
  display: grid;
  gap: 2px;
  border: 1px solid var(--public-rule);
  border-radius: 8px;
  background: var(--public-paper);
  box-shadow: 0 8px 22px #173e3912;
  z-index: 45;
}
.public-language-menu .ed-language a { padding: 9px 12px; border: 0; border-radius: 4px; font-size: 14px; }
.public-language-menu .ed-language a[aria-current="true"] { background: var(--public-soft); color: var(--public-green); }
.ed-menu, .mobile-nav { display: none; }
.ed-body :is(a, summary):focus-visible,
.topbar :is(a, button, summary, select):focus-visible,
.pilot-hero a:focus-visible, .pilot-universe:focus-visible {
  outline: 3px solid var(--public-green);
  outline-offset: 4px;
}

/* Readable editorial rhythm, shared with the homepage. */
.ed-body {
  background: var(--public-paper);
  color: var(--public-ink);
  font: 16px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.ed-wrap, .container:has(.pilot-intro),
body:has(.pilot-intro) #view > .container {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--public-width);
  padding-inline: var(--public-gutter);
  margin-inline: auto;
}
body:has(.pilot-intro) { background: var(--public-paper); }
body:has(.pilot-intro) .ambient { display: none; }
.ed-breadcrumb { padding-top: 24px; font-size: 12px; color: var(--public-muted); }
.ed-breadcrumb ol { margin: 0; }
.ed-hero, body:not(.ed-body) .pilot-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
  padding-top: clamp(40px, 5vw, 68px);
  padding-bottom: clamp(64px, 7vw, 96px);
}
.ed-eyebrow, body:not(.ed-body) .pilot-intro .eyebrow {
  font-size: 11px;
  line-height: 1.6;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--public-green);
}
.ed-line { display: none; }
.ed-hero-copy h1, body:not(.ed-body) .pilot-intro h1 {
  margin: 18px 0 24px;
  max-width: 750px;
  font-size: clamp(2.7rem, 4.5vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -.045em;
  font-weight: 730;
  text-wrap: balance;
  color: var(--public-ink);
}
body:not(.ed-body) .pilot-intro h1 em { color: var(--public-green); font-style: normal; }
.ed-lead, body:not(.ed-body) .pilot-intro .leadin {
  font-size: 17px;
  line-height: 1.75;
  color: var(--public-muted);
  max-width: 600px;
}
.ed-actions, .pilot-actions { gap: 12px; margin-top: 28px; }
.ed-button, body:has(.pilot-intro) .btn {
  min-height: 48px;
  padding: 13px 19px;
  border-radius: 7px;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 650;
  box-shadow: none;
  transition: background .15s;
}
.ed-button-dark, .ed-button-light, body:has(.pilot-intro) .btn-primary {
  background: var(--public-green);
  border: 1px solid var(--public-green);
  color: white !important;
}
.ed-button-dark:hover, .ed-button-light:hover, body:has(.pilot-intro) .btn-primary:hover { background: #066558; }
.ed-button-outline, body:has(.pilot-intro) .btn-line {
  border: 1px solid #b9cec1;
  background: transparent;
  color: var(--public-ink);
}
.ed-button-outline:hover, body:has(.pilot-intro) .btn-line:hover { background: var(--public-soft); }
body:has(.pilot-intro) .btn:hover { transform: none; }
.ed-footnote, body:not(.ed-body) .pilot-proof {
  margin-top: 22px;
  max-width: 560px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--public-muted);
  font-weight: 400;
}

/* A concrete reading card replaces the unrelated, tilted collage. */
.ed-hero-scene {
  position: relative;
  display: block;
  height: auto;
  min-width: 0;
  padding: clamp(28px, 3vw, 42px);
  border: 1px solid var(--public-rule);
  border-top: 3px solid var(--public-green);
  border-radius: 8px;
  background: var(--public-soft);
  overflow: visible;
  box-shadow: none;
}
.ed-hero-scene::before, .ed-hero-scene::after { content: none; }
.ed-scene-card {
  position: static;
  width: auto;
  padding: 0;
  color: var(--public-ink);
  background: transparent;
  transform: none;
  box-shadow: none;
}
.ed-scene-card > p { color: var(--public-green); font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.ed-scene-card h2 { margin: 22px 0 18px; font-size: clamp(1.6rem, 2.5vw, 2.2rem); font-weight: 650; line-height: 1.18; letter-spacing: -.03em; }
.ed-scene-card > span:last-child { color: var(--public-muted); font-size: 15px; line-height: 1.75; }
.ed-scene-rule { width: 42px; height: 2px; margin-top: 32px; background: var(--public-green); }
.ed-section-heading { grid-template-columns: minmax(150px, .32fr) minmax(0, 1fr); gap: 28px; margin-bottom: 32px; }
.ed-section-heading h2 { max-width: 780px; font-size: clamp(1.9rem, 3vw, 2.8rem); font-weight: 650; letter-spacing: -.035em; line-height: 1.18; }
.ed-features { padding-bottom: 72px; }
.ed-feature { padding-top: 24px; }
.ed-feature h3 { margin-top: 24px; font-size: 22px; line-height: 1.25; font-weight: 650; letter-spacing: -.025em; }
.ed-feature-index, .ed-step-index { color: var(--public-green); font-weight: 650; }
.ed-feature p, .ed-steps p { color: var(--public-muted); font-size: 15px; line-height: 1.7; }
.ed-text-link { padding-block: 9px; color: var(--public-green); border-color: #b3ccbe; font-size: 14px; font-weight: 600; }
.ed-story { padding-block: 58px; background: var(--public-soft); color: var(--public-ink); border-block: 1px solid var(--public-rule); }
.ed-story-layout { grid-template-columns: minmax(150px, .32fr) minmax(0, 1fr); gap: 28px; }
.ed-story-index { min-height: 0; border: 0; padding: 0; }
.ed-story-index > span { color: var(--public-green); font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.ed-story h2 { margin: 12px 0 20px; max-width: 780px; font-size: clamp(1.8rem, 3vw, 2.8rem); letter-spacing: -.035em; line-height: 1.2; font-weight: 650; }
.ed-story-layout > div:last-child > .ed-eyebrow { color: var(--public-green); }
.ed-story-layout > div:last-child > p:last-child { color: var(--public-muted); font-size: 16px; line-height: 1.8; }
.ed-process { padding-block: 72px; }
.ed-steps li { border-color: #b8cdbf; }
.ed-step-index { margin-bottom: 18px; }
.ed-steps h3 { font-size: 19px; font-weight: 650; }
.ed-faq { padding-block: 0 64px; }
.ed-faq-item { border-color: var(--public-rule); }
.ed-faq-item summary { font-weight: 600; }
.ed-bottom {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 64px;
  padding-block: 28px;
  border-radius: 0;
  border-top: 1px solid var(--public-rule);
  background: transparent;
}
.ed-not-found { padding-block: 72px; min-height: 55vh; }
.ed-not-found h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
.ed-not-found p { max-width: 600px; }

/* The existing homepage components share this calmer visual treatment. */
body:not(.ed-body) .pilot-preview {
  padding: 24px;
  border: 1px solid var(--public-rule);
  border-top: 3px solid var(--public-green);
  border-radius: 8px;
  background: var(--public-soft);
  color: var(--public-ink);
  box-shadow: none;
  overflow: visible;
}
body:not(.ed-body) .pilot-preview::before { content: none; }
body:not(.ed-body) .pilot-preview-main { margin: 20px 0; padding: 24px; border: 1px solid var(--public-rule); border-radius: 6px; background: #fff; transform: none; box-shadow: none; }
body:not(.ed-body) .pilot-preview-main h2 { color: var(--public-ink); font-size: 25px; font-weight: 650; line-height: 1.25; }
body:not(.ed-body) .pilot-preview-main p { color: var(--public-muted); font-size: 14px; line-height: 1.6; }
body:not(.ed-body) .pilot-choice { border-radius: 4px; box-shadow: none; font-size: 14px; }
body:not(.ed-body) .pilot-preview-main .pilot-choice.active { background: #e7f3ec; border-color: #99bca8; color: var(--public-ink); }
body:not(.ed-body) .pilot-preview-head, body:not(.ed-body) .pilot-preview-foot { color: var(--public-muted); letter-spacing: .04em; font-weight: 600; font-size: 10px; }
body:not(.ed-body) .pilot-universe { border: 1px solid #dddecd; border-radius: 8px; background: #f5f1e5; color: var(--public-ink); padding: 32px; }
body:not(.ed-body) .pilot-universe.pro { border-color: var(--public-rule); background: var(--public-soft); color: var(--public-ink); }
body:not(.ed-body) .pilot-universe strong { font-size: 27px; line-height: 1.2; font-weight: 650; letter-spacing: -.025em; }
body:not(.ed-body) .pilot-module { box-shadow: none; border-radius: 8px; border-color: var(--public-rule); }
body:not(.ed-body) .pilot-module-icon { background: var(--public-soft); color: var(--public-green); border-radius: 8px; }
body:not(.ed-body) .pilot-journey { background: var(--public-soft); border-radius: 8px; border-color: var(--public-rule); }
body:has(.pilot-intro) .section-sm { padding-block: 36px; }
body:has(.pilot-intro) h2 { font-weight: 650; letter-spacing: -.03em; }
body:has(.coklio-legal-locale) { background: var(--public-paper); }
.coklio-legal-locale { max-width: var(--public-width); padding-inline: var(--public-gutter); }
.coklio-legal-locale h1 { font-size: clamp(2.5rem, 4.5vw, 4rem); font-weight: 700; letter-spacing: -.035em; }

/* Keep the current contact/legal links and disclosures; share their geometry. */
.site-footer, .ed-footer { margin-top: 0; padding: 0; background: #eef2ed; color: var(--public-ink); border-top: 1px solid var(--public-rule); }
.footer-inner, .ed-footer-inner {
  box-sizing: border-box;
  max-width: var(--public-width);
  margin-inline: auto;
  padding: 40px var(--public-gutter);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px 48px;
}
.footer-logo, .ed-footer .ed-brand { color: var(--public-ink); font-size: 27px; font-weight: 800; }
.footer-inner p, .ed-footer-inner > div > p { margin-top: 12px; color: var(--public-muted); font-size: 13px; }
.footer-links, .ed-footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 22px; max-width: 660px; font-size: 13px; font-weight: 500; }
.footer-links a, .ed-footer nav a { padding-block: 6px; }
.footer-links a:hover, .ed-footer nav a:hover { color: var(--public-green); text-decoration: underline; text-underline-offset: 4px; }
.legalfoot, .ed-copyright { box-sizing: border-box; max-width: var(--public-width); margin-inline: auto; padding: 16px var(--public-gutter) 24px; border-color: var(--public-rule); color: var(--public-muted); font-size: 11px; line-height: 1.7; }

/* Navigation collapses before either language or account controls wrap. */
@media (max-width: 1240px) {
  .nav-shell, .ed-topbar-inner { gap: 16px; }
  .nav-shell .nav-links, .ed-navigation { display: none !important; }
  .nav-shell .brand, .ed-brand { order: 1; margin-right: auto; }
  .language-switch, .public-language-menu { order: 2; }
  .nav-shell #nav-auth { order: 3; }
  .nav-shell .mobile-nav, .ed-menu { display: block; order: 4; position: static; margin: 0; flex: 0 0 auto; }
  .mobile-nav summary, .ed-menu summary {
    min-height: 44px;
    padding: 10px 13px;
    border: 1px solid #b9cec1;
    border-radius: 7px;
    background: transparent;
    color: var(--public-ink);
    font: 600 13px/1.5 system-ui, sans-serif;
    cursor: pointer;
    list-style: none;
  }
  .mobile-nav summary::-webkit-details-marker, .ed-menu summary::-webkit-details-marker { display: none; }
  .mobile-nav-panel, .ed-menu nav {
    position: absolute;
    top: 100%;
    left: var(--public-gutter);
    right: var(--public-gutter);
    width: auto;
    z-index: 40;
    padding: 10px;
    border: 1px solid var(--public-rule);
    border-radius: 0 0 8px 8px;
    background: var(--public-paper);
    box-shadow: 0 8px 22px #173e3912;
    max-height: 70vh;
    overflow-y: auto;
    display: grid;
    gap: 0;
  }
  .mobile-nav-panel a, .ed-menu nav a { padding: 13px; min-height: 46px; font-size: 15px; border: 0; margin: 0; }
  .mobile-nav-panel a:hover, .ed-menu nav a:hover { background: var(--public-soft); }
}
@media (max-width: 800px) {
  .ed-hero, body:not(.ed-body) .pilot-hero { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 36px; }
  .ed-hero-copy h1, body:not(.ed-body) .pilot-intro h1 { font-size: clamp(2.5rem, 7vw, 3.6rem); max-width: 700px; }
  .ed-hero-scene { margin: 0; max-width: none; height: auto; width: auto; }
  .ed-section-heading, .ed-story-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ed-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body:not(.ed-body) .pilot-preview { max-width: 650px; width: 100%; margin-inline: 0; }
}
@media (max-width: 650px) {
  .nav-shell, .ed-topbar-inner { min-height: 72px; padding-block: 15px; gap: 10px; flex-wrap: wrap; }
  .brand, .ed-brand { font-size: 26px; }
  .brand-mark, .ed-brand-symbol { width: 30px; height: 30px; font-size: 23px; margin-right: 7px; }
  .nav-shell #nav-auth { flex: 1 0 100%; justify-content: flex-start; }
  .nav-shell #nav-auth:empty { display: none; }
  .nav-shell .nav-auth { width: 100%; justify-content: flex-start; }
  .language-switch select, .public-language-menu > summary { max-width: 116px; padding-inline: 9px; }
  .ed-feature-grid { grid-template-columns: minmax(0, 1fr); }
  .ed-feature, .ed-feature:not(:first-child) { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--public-rule); }
  .ed-feature h3 { margin-top: 14px; }
  .ed-section-heading h2 { font-size: 1.9rem; }
  .ed-hero-copy h1, body:not(.ed-body) .pilot-intro h1 { letter-spacing: -.035em; }
  .ed-lead, body:not(.ed-body) .pilot-intro .leadin { font-size: 16px; }
  .ed-actions { display: flex; }
  .ed-button { width: auto; }
  .ed-hero-scene { border-radius: 8px; }
  .ed-story { padding-block: 40px; }
  .ed-process { padding-block: 48px; }
  .ed-steps { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .ed-bottom { margin-inline: auto; border-radius: 0; margin-bottom: 40px; }
  .ed-bottom .ed-button { width: 100%; }
  .footer-links, .ed-footer nav { display: flex; gap: 6px 20px; }
  body:not(.ed-body) .pilot-universes, body:not(.ed-body) .pilot-modules { grid-template-columns: minmax(0, 1fr); }
  body:not(.ed-body) .pilot-universe { padding: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .ed-body *, body:has(.pilot-intro) * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media print {
  .ed-topbar, .public-language-menu, .ed-bottom, .ed-footer { display: none !important; }
}
