/* Le Takunga — restructure of 14 Nov 2026: primary action in the menu, footer site map, home steps.
   Used by the book site and by the platform (tokens of both, with fallbacks). New file name on purpose:
   style.css / nav-sub.css are cached as immutable for a year. */
:root {
  --ltk-gold: var(--gold-light, var(--color-gold, #fae384));
  --ltk-gold-mid: var(--gold-mid, var(--color-gold, #d9a846));
  --ltk-ink: var(--midnight-deep, #080b26);
  --ltk-text: var(--cream, var(--color-ivory, #ebdec4));
  --ltk-dim: var(--cream-dim, var(--color-muted, #b8a984));
  --ltk-panel: var(--midnight-mid, var(--color-panel, #0e1338));
}

/* Primary action in the menu */
.nav-cta, a.nav-cta {
  display: inline-block;
  background: var(--ltk-gold-mid);
  color: var(--ltk-ink) !important;
  border: 1px solid var(--ltk-gold-mid) !important;
  border-radius: 999px;
  padding: .45rem 1rem !important;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
}
.nav-cta:hover, .nav-cta:focus-visible { background: var(--ltk-gold); color: var(--ltk-ink) !important; }
.main-nav li.nav-cta-item { margin-left: .4rem; }
.main-nav a[aria-current="page"] { color: var(--ltk-gold); }

/* Buttons on the book site */
.btn.btn-primary { background: var(--ltk-gold-mid); color: var(--ltk-ink); border-color: var(--ltk-gold-mid); font-weight: 600; }
.btn.btn-primary:hover, .btn.btn-primary:focus-visible { background: var(--ltk-gold); color: var(--ltk-ink); }
.btn.btn-ghost { background: transparent; }
:focus-visible { outline: 2px solid var(--ltk-gold); outline-offset: 2px; }

/* Home */
.hero-intro { max-width: 40rem; margin: .75rem auto 0; text-align: center; color: var(--ltk-text); font-size: 1.08rem; }
.ltk-steps { list-style: none; padding: 0; margin: 1.5rem auto; max-width: 44rem; display: grid; gap: .9rem; }
.ltk-steps li { background: var(--ltk-panel); border: 1px solid rgba(217,168,70,.3); border-radius: 8px; padding: .9rem 1.1rem; line-height: 1.6; }
.ltk-steps strong { color: var(--ltk-gold); }
.ltk-links { text-align: center; margin-top: 1rem; font-size: .95rem; line-height: 1.9; }
.ltk-consult { text-align: left; }
.ltk-consult h2, .ltk-consult .btn-row { text-align: center; justify-content: center; }

/* Footer site map (both sides) */
.ltk-footer-cta { text-align: center; margin: 1rem 0 1.5rem; }
.ltk-fcols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  gap: 1.25rem 1.5rem;
  max-width: 62rem;
  margin: 0 auto 1.5rem;
  padding: 0 16px;
  text-align: left;
}
.ltk-fcol-title { color: var(--ltk-gold); font-weight: 600; margin: 0 0 .4rem; letter-spacing: .03em; }
.ltk-fcol ul { list-style: none; margin: 0; padding: 0; }
.ltk-fcol li { margin: .2rem 0; }
.ltk-fcol a { color: var(--ltk-text); font-size: .92rem; }
.ltk-fcol a:hover, .ltk-fcol a:focus-visible { color: var(--ltk-gold); }
.ltk-fcause { font-size: .85rem; color: var(--ltk-dim); max-width: 40rem; margin: .4rem auto; text-align: center; }
.ltk-small { opacity: .7; font-size: .78rem; }

/* Platform: section strip (Teachings) and request flow */
.ltk-subnav { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin: 1.25rem auto 0; padding: 0; list-style: none; }
.ltk-subnav a { display: inline-block; padding: .35rem .9rem; border: 1px solid rgba(217,168,70,.35); border-radius: 999px; color: var(--ltk-text); font-size: .9rem; }
.ltk-subnav a[aria-current="page"] { background: var(--ltk-gold-mid); color: var(--ltk-ink); border-color: var(--ltk-gold-mid); }
.ltk-empty-next { text-align: center; margin: 1.25rem auto 0; max-width: 34rem; }
.ltk-choice { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; margin-top: .4rem; }
.ltk-choice label { display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; }
.ltk-fieldset { border: 1px solid rgba(217,168,70,.25); border-radius: 8px; padding: 1rem 1.1rem; margin: 0 0 1.1rem; }
.ltk-fieldset legend { padding: 0 .4rem; color: var(--ltk-gold); font-weight: 600; }
.ltk-hint { font-size: .84rem; color: var(--ltk-dim); margin: .35rem 0 0; line-height: 1.5; }
.ltk-ref { font-family: monospace; font-size: 1.25rem; color: var(--ltk-gold); letter-spacing: .04em; }
.ltk-hidden { display: none !important; }
.ltk-today { border-color: var(--ltk-gold-mid) !important; }
.ltk-task-list { list-style: none; margin: 0; padding: 0; }
.ltk-task-list li { padding: .45rem 0; border-bottom: 1px solid rgba(217,168,70,.15); display: flex; flex-wrap: wrap; gap: .3rem .8rem; align-items: baseline; }
.ltk-task-list li:last-child { border-bottom: 0; }
.ltk-count { font-size: 1.9rem; font-weight: 600; color: var(--ltk-gold); line-height: 1; }
.ltk-sidebar-group { margin: .9rem 0 .2rem; padding: 0 1rem; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ltk-dim); list-style: none; }

@media (max-width: 768px) {
  .main-nav li.nav-cta-item { margin: .6rem 0 .2rem; }
  .ltk-fcols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 380px) {
  .ltk-fcols { grid-template-columns: 1fr; }
}

/* Patch 19: "Continuer sur votre téléphone" — QR codes on wide screens, two buttons on phones */
.ltk-phone { max-width: 40rem; margin: 0 auto 1.5rem; padding: 0 16px; text-align: center; }
.ltk-phone-title { color: var(--ltk-gold); font-weight: 600; margin: 0 0 .5rem; }
.ltk-phone-hint { width: 100%; margin: 0 0 .5rem; font-size: .85rem; color: var(--ltk-dim); }
.ltk-phone-qrs { display: none; flex-wrap: wrap; justify-content: center; gap: 1.25rem 2.5rem; }
.ltk-qr { margin: 0; }
.ltk-qr img { display: block; width: 132px; height: 132px; background: #fff; padding: 4px; border-radius: 4px; }
.ltk-qr figcaption { font-size: .85rem; margin-top: .35rem; color: var(--ltk-text); }
.ltk-phone-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin: 0; }
@media (min-width: 900px) and (hover: hover) {
  .ltk-phone-qrs { display: flex; }
  .ltk-phone-btns { display: none; }
}
/* Arts divinatoires page */
.ltk-editions { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; max-width: 62rem; margin: 1.25rem auto 0; }
.ltk-edition { background: var(--ltk-panel); border: 1px solid rgba(217,168,70,.3); border-radius: 8px; padding: 1rem 1.15rem; }
.ltk-edition h3 { margin-top: 0; }
.ltk-notice { border: 1px solid var(--ltk-gold-mid); border-radius: 8px; padding: .8rem 1rem; margin: 1.25rem auto; max-width: 44rem; }
.ltk-notice p { margin: 0; }
.ltk-notice-title { color: var(--ltk-gold); font-weight: 600; margin-bottom: .3rem !important; }
.ltk-referral { text-align: center; font-size: .9rem; color: var(--ltk-dim); max-width: 36rem; margin: .6rem auto 0; }
.ltk-sign { text-align: right; font-style: italic; margin-top: 1rem; }
/* Sample reading */
.ltk-sample-badge { display: inline-block; border: 1px dashed var(--ltk-gold-mid); border-radius: 6px; padding: .4rem .8rem; margin: .5rem auto 0; font-size: .92rem; }
.ltk-sample { max-width: 44rem; margin: 0 auto; }
.ltk-sample-h2 { text-align: center; color: var(--ltk-gold); font-size: 1.2rem; }
.ltk-sample-chart { margin: 1rem auto; max-width: 30rem; }
.ltk-sample-chart img { width: 100%; height: auto; display: block; background: #fff; border-radius: 6px; }
.ltk-locked-list { columns: 2 14rem; list-style: none; padding: 0; margin: 1rem 0; }
.ltk-locked-list li { break-inside: avoid; padding: .2rem 0 .2rem 1.4rem; position: relative; color: var(--ltk-dim); }
.ltk-locked-list li::before { content: "\1F512"; position: absolute; left: 0; font-size: .8rem; }

/* Patch 20: QR badge, top right of the header (wide screens with a mouse); phones use the menu and the hero button */
.ltk-qr-badge { display: none; }
@media (min-width: 900px) and (hover: hover) {
  .site-header .header-inner { position: relative; }
  .site-header .ltk-qr-badge { display: block; position: absolute; top: .55rem; right: 16px; z-index: 70; }
  .nav-right .ltk-qr-badge { display: block; position: relative; z-index: 70; margin-right: .5rem; }
}
.ltk-qr-badge > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .45rem; padding: .25rem .55rem .25rem .3rem;
  border: 1px solid rgba(217,168,70,.55); border-radius: 999px; color: var(--ltk-text); font-size: .8rem; white-space: nowrap; }
.ltk-qr-badge > summary::-webkit-details-marker { display: none; }
.ltk-qr-badge > summary:hover, .ltk-qr-badge[open] > summary, .ltk-qr-badge > summary:focus-visible { border-color: var(--ltk-gold); color: var(--ltk-gold); }
.ltk-qr-icon { width: 26px; height: 26px; background: #fff; border-radius: 3px; display: block; }
.ltk-qr-panel { position: absolute; right: 0; top: calc(100% + .4rem); display: flex; gap: 1.25rem; flex-wrap: wrap; justify-content: center; width: 22rem;
  padding: 1rem; background: var(--ltk-panel); border: 1px solid var(--ltk-gold-mid); border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.45); text-align: center; }
.ltk-qr-panel .ltk-qr img { width: 132px; height: 132px; background: #fff; padding: 4px; border-radius: 4px; display: block; }
/* Six menu entries + the button: a little tighter on wide screens */
@media (min-width: 900px) {
  .main-nav ul { gap: .2rem 1.05rem; }
  .main-nav li.nav-cta-item { margin-left: .2rem; }
}
/* Platform header with the 6th menu entry and the badge: wider row, tighter links (desktop layout starts at 1025px) */
@media (min-width: 1025px) {
  .nav-header .nav.container { max-width: 1280px; gap: .75rem; }
  .nav-header .nav-link { padding: .4rem .3rem; letter-spacing: .02em; }
  .nav-header .nav-logo-text { letter-spacing: .08em; }
  .nav-header .lang-trigger { padding-inline: .3rem; }
  .nav-header .nav-cta { padding: .4rem .8rem !important; font-size: .82rem; }
  .nav-header .nav-right { gap: .5rem; }
  .nav-header .ltk-qr-badge > summary { font-size: .74rem; }
}
/* 1025–1279 px: the platform badge keeps its QR icon only (the label stays for screen readers) */
@media (min-width: 1025px) and (max-width: 1279px) {
  .nav-header .ltk-qr-badge > summary span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nav-header .ltk-qr-badge > summary { padding: .2rem; }
  .nav-header .nav-link { padding: .4rem .22rem; letter-spacing: 0; }
}
/* Platform below 1200 px: no room for the badge in the single header row; the footer block keeps the QR codes */
@media (max-width: 1199px) {
  .nav-right .ltk-qr-badge { display: none !important; }
}
@media (min-width: 1025px) and (max-width: 1119px) {
  .nav-header .nav-link { font-size: .68rem; }
  .nav-header .nav-cta { font-size: .72rem; padding: .35rem .6rem !important; }
  .nav-header .nav-logo-text { font-size: .95rem; letter-spacing: .04em; }
}
/* Long single words (DE "Beispieldeutung") must not push the page sideways on phones */
.hero-title.ltk-sample-title, .hero-title.ltk-kids-title { overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 480px) { .hero-title.ltk-sample-title { font-size: clamp(2rem, 11vw, 3rem); } }

/* Patch 20: international phone field (assets/js/phone-intl.js + platform/includes/phone.php) */
.ltk-tel-row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: flex-end; }
.ltk-tel-country { flex: 1 1 14rem; min-width: 0; display: flex; flex-direction: column; gap: .35rem; }
.ltk-tel-select, .ltk-tel-search { width: 100%; max-width: 100%; min-width: 0; }
.ltk-tel-input { flex: 2 1 12rem; min-width: 0; }
.ltk-tel-e164 { color: var(--ltk-gold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ltk-tel-msg { margin: .4rem 0 0; font-size: .88rem; color: #f2a7a7; line-height: 1.45; }
.ltk-tel-msg[hidden] { display: none; }
.ltk-tel-input[aria-invalid="true"] { border-color: #d77; }
.ltk-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 520px) { .ltk-tel-country, .ltk-tel-input { flex-basis: 100%; } }
