/* Tales of Luxury · Folio v2
   Land colours, navigation, footer, conversion components and the self-drawn atlas.
   Loaded after folio.css. Every colour reads from the land tokens set by [data-land]. */

.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 50% 50% 2px 2px; background: var(--malachite); box-shadow: inset 0 -4px 0 var(--brass); flex-shrink: 0; }

/* ---------- utility bar ---------- */
.util { background: var(--ink); color: rgba(255, 255, 255, .78); font-size: 13px; }
.util__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.util__note { margin: 0; display: flex; align-items: center; gap: 8px; }
.util__dot { width: 7px; height: 7px; border-radius: 50%; background: #5FD08A; box-shadow: 0 0 0 3px rgba(95, 208, 138, .2); }
.util__links { display: flex; gap: 18px; }
.util__links a { color: inherit; text-decoration: none; }
.util__links a:hover { color: #fff; }
@media (max-width: 900px) { .util__links a:not(:first-child) { display: none; } .util__note { font-size: 12px; } }
@media (max-width: 560px) { .util { display: none; } }

/* ---------- header ---------- */
.mast .nav__drop { position: static; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid currentColor; background: none; display: inline-grid; place-items: center; cursor: pointer; color: inherit; opacity: .85; }
.icon-btn:hover { opacity: 1; }
.icon-btn svg { width: 19px; height: 19px; }
.mast__plan { min-height: 44px; padding: 0 22px; }
@media (max-width: 1080px) { .mast__plan { display: none; } }
@media (max-width: 420px) { .icon-btn { display: none; } }
.mega {
  position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); color: var(--ink);
  border-top: 1px solid var(--line); box-shadow: 0 30px 60px rgba(0, 0, 0, .18); padding: 28px 0 24px;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .25s, transform .3s var(--ease), visibility .25s;
}
.nav__drop.is-open .mega { opacity: 1; visibility: visible; transform: none; }
.mega__lands { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.mland { background: var(--malachite); color: #fff; border-radius: 120px 120px 8px 8px; padding: 34px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.mland__head { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: #fff; }
.mland__head:hover { color: #fff; }
.mland__head .num { color: var(--brass); font-size: 15px; }
.mland__head b { font-family: var(--display); font-weight: 500; font-size: 22px; line-height: 1.05; }
.mland__head small { font-size: 11px; color: rgba(255, 255, 255, .72); line-height: 1.3; }
.mland ul { list-style: none; margin: 0; padding: 10px 0 0; border-top: 1px solid rgba(255, 255, 255, .2); display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
.mland ul a { color: rgba(255, 255, 255, .9); text-decoration: none; }
.mland ul a:hover, .mland__all:hover { color: var(--brass); }
.mland__all { margin-top: auto; font-size: 12px; font-weight: 600; color: var(--brass); text-decoration: none; }
.mega__foot { display: flex; gap: 24px; align-items: center; justify-content: flex-end; margin-top: 20px; font-size: 14px; }
.mega__foot a:not(.btn) { color: var(--ink-2); }
.mega__grid { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 40px; }
.mega__list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.mega__list--2 { display: grid; grid-template-columns: 1fr 1fr; }
.mega__list a { text-decoration: none; color: var(--ink); }
.mega__list a:hover { color: var(--brass-ink); }
.mega__feature { display: flex; flex-direction: column; gap: 10px; }
.mfeat { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; text-decoration: none; color: var(--ink); padding: 8px; border-radius: 8px; }
.mfeat:hover { background: var(--tint); color: var(--ink); }
.mfeat img { width: 76px; height: 64px; object-fit: cover; border-radius: 38px 38px 4px 4px; }
.mfeat b { display: block; font-family: var(--display); font-weight: 500; font-size: 18px; line-height: 1.15; }
.mfeat small { font-size: 12.5px; color: var(--muted); }

/* ---------- mobile sheet ---------- */
.acc { border-bottom: 1px solid var(--dline); }
.acc summary { list-style: none; cursor: pointer; padding: 16px 0; font-family: var(--display); font-size: 26px; display: flex; justify-content: space-between; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-family: var(--sans); color: var(--brass); }
.acc[open] summary::after { content: "–"; }
.acc > div { padding-bottom: 16px; }
.sheet__lands a { gap: 12px; }
.sheet__lands .swatch { width: 14px; height: 14px; }
.sheet__search { display: flex; gap: 10px; align-items: center; width: 100%; min-height: 48px; border-radius: 999px; border: 1px solid var(--dline-3); background: none; color: var(--mist); padding: 0 18px; font-size: 15px; cursor: pointer; }
.sheet__search svg { width: 18px; height: 18px; }
.sheet__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }

/* ---------- search ---------- */
.search { position: fixed; inset: 0; z-index: 85; background: rgba(15, 20, 22, .72); backdrop-filter: blur(6px); padding: 10vh 12px 0; }
.search__box { background: var(--paper); border-radius: 12px; padding: 18px; max-width: 760px; display: grid; grid-template-columns: 1fr 48px; gap: 10px; box-shadow: 0 40px 80px rgba(0, 0, 0, .35); }
.search__box input { font: inherit; font-size: 19px; border: 1px solid var(--line); border-radius: 999px; padding: 0 20px; min-height: 52px; background: #fff; }
.search__box .sheet__close { border-color: var(--line); color: var(--ink); }
.search__results { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; max-height: 56vh; overflow-y: auto; }
.search__results a { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 12px 14px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.search__results a:hover, .search__results a:focus { background: var(--marble); outline: none; }
.search__results b { font-weight: 600; }
.search__results small { color: var(--muted); font-size: 12.5px; text-align: right; }
.search__hint { grid-column: 1 / -1; margin: 0; color: var(--muted); }

/* ---------- floating CTA + mobile dock ---------- */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 70; display: flex; align-items: flex-end; gap: 10px; opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .35s, transform .35s var(--ease), bottom .35s var(--ease); }
.fab.is-on { opacity: 1; transform: none; pointer-events: auto; }
.fab__main { display: inline-flex; align-items: center; min-height: 54px; padding: 0 26px; border-radius: 999px; background: var(--brass); color: var(--malachite); font-weight: 700; text-decoration: none; box-shadow: 0 14px 34px rgba(0, 0, 0, .28); }
.fab__main:hover { background: var(--brass-hi); color: var(--malachite); }
.fab__toggle { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--brass); background: var(--malachite); color: var(--brass); display: grid; place-items: center; cursor: pointer; box-shadow: 0 14px 34px rgba(0, 0, 0, .28); }
.fab__toggle svg { width: 24px; height: 24px; }
.fab__panel { position: absolute; right: 0; bottom: 66px; width: 300px; background: var(--paper); border-radius: 12px; padding: 14px; box-shadow: 0 30px 60px rgba(0, 0, 0, .3); display: flex; flex-direction: column; gap: 4px; }
.fab__title { margin: 0 6px 6px; font-family: var(--display); font-size: 20px; }
.fab__panel a { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.fab__panel a:hover { background: var(--tint); color: var(--ink); }
.fab__panel b { font-weight: 600; font-size: 15px; }
.fab__panel span { font-size: 12.5px; color: var(--muted); }
.dock { display: none; }
@media (max-width: 760px) {
  .fab { display: none; }
  .dock { display: grid; grid-template-columns: 1fr 1fr 1.6fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: var(--malachite); border-top: 1px solid var(--dline-2); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 8px; }
  .dock a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; color: var(--mist); text-decoration: none; font-size: 12px; font-weight: 600; border-radius: 10px; }
  .dock a svg { width: 20px; height: 20px; }
  .dock .dock__main { background: var(--brass); color: var(--malachite); font-size: 15px; }
  body { padding-bottom: 76px; }
}
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 65; background: var(--malachite); color: var(--mist); border-top: 1px solid var(--dline-2); transform: translateY(100%); transition: transform .4s var(--ease); }
.buybar.is-on { transform: none; }
.buybar__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 76px; padding-right: 110px; }
.buybar__t { display: flex; flex-direction: column; }
.buybar__t b { font-family: var(--display); font-weight: 500; font-size: 20px; }
.buybar__t small { color: var(--mist-2); }
@media (max-width: 760px) { .buybar { display: none; } }
body.has-buybar .fab { bottom: 96px; }
body.has-buybar .fab__main { display: none; }

/* ---------- trust strip ---------- */
.trust { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.trust li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.trust svg { width: 26px; height: 26px; color: var(--brass-ink); }
.trust b { display: block; color: var(--ink); font-size: 14.5px; }
.dark .trust li, .trust--dark li, .panel--dark .trust li { color: var(--mist-2); }
.dark .trust b, .trust--dark b, .panel--dark .trust b { color: var(--mist); }
.dark .trust svg, .panel--dark .trust svg { color: var(--brass); }
.trustband { background: var(--paper); border-bottom: 1px solid var(--line); padding-block: 26px; }

/* ---------- quick form ---------- */
.qform { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 12px; color: var(--ink); }
.qform__title { margin: 0; font-family: var(--display); font-size: 26px; line-height: 1.1; }
.qform__sub { margin: -4px 0 4px; font-size: 14px; color: var(--muted); }
.qform .field span { font-weight: 600; font-size: 13.5px; }
.qform .field small { font-weight: 400; color: var(--muted); }
.qform .field input, .qform .field select { min-height: 46px; padding: 10px 12px; }
.qform__row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.qform .btn { width: 100%; }
.qform__fine { margin: 0; font-size: 12px; color: var(--muted); }
.cta-band .qform { box-shadow: 0 24px 50px rgba(0, 0, 0, .08); }
.cta-band .trust { margin-top: 12px; }

/* ---------- hero finder ---------- */
.finder { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; background: rgba(255, 255, 255, .06); border: 1px solid var(--dline-2); border-radius: 18px; padding: 8px; }
.finder label { display: flex; flex-direction: column; padding: 6px 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.finder span { font-stretch: 125%; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); font-weight: 600; }
.finder select { background: transparent; border: 0; color: var(--mist); font: inherit; font-size: 15px; padding: 2px 0; min-height: 30px; }
.finder select option { color: var(--ink); }
.finder .btn { min-height: 56px; border-radius: 12px; }
@media (max-width: 640px) { .finder { grid-template-columns: 1fr 1fr; } .finder .btn { grid-column: 1 / -1; } }

/* ---------- nudge ---------- */
.nudge { position: fixed; left: 20px; bottom: 20px; z-index: 66; width: min(360px, calc(100vw - 40px)); background: var(--malachite); color: var(--mist); border-radius: 14px; padding: 20px; box-shadow: 0 24px 50px rgba(0, 0, 0, .3); display: flex; flex-direction: column; gap: 10px; animation: rise .5s var(--ease); }
.nudge[hidden] { display: none; }
.nudge__x { position: absolute; right: 8px; top: 6px; width: 40px; height: 40px; border: 0; background: none; color: var(--mist); font-size: 22px; cursor: pointer; }
.nudge__eyebrow { margin: 0; font-stretch: 125%; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--brass); font-weight: 600; }
.nudge__title { margin: 0; font-family: var(--display); font-size: 22px; line-height: 1.15; padding-right: 24px; }
.nudge .btn { align-self: flex-start; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }
@media (max-width: 760px) { .nudge { bottom: 88px; left: 12px; } }

/* ---------- plan wizard ---------- */
.wizard { display: flex; flex-direction: column; gap: 18px; }
.wizard__steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; counter-reset: s; font-size: 13px; color: var(--muted); }
.wizard__steps li { counter-increment: s; flex: 1; }
.wizard__steps li::before { content: counter(s, decimal-leading-zero) " "; font-family: var(--display); font-style: italic; color: var(--brass-ink); font-size: 18px; }
.wizard__steps li.is-on { color: var(--ink); font-weight: 600; }
.wizard__bar { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.wizard__bar span { display: block; height: 100%; width: 33%; background: var(--brass-ink); transition: width .4s var(--ease); }
.wizard__step { border: 0; margin: 0; padding: 0; min-width: 0; }
.wizard__step legend { margin-bottom: 8px; padding: 0; }
.wizard__nav { display: flex; gap: 10px; justify-content: space-between; }
.wizard[data-ready] .wizard__step:not(.is-on) { display: none; }
.field .label { font-weight: 600; font-size: 14px; }
.checks input[type="radio"] { accent-color: var(--malachite); width: 18px; height: 18px; }
.checks label:has(input:checked) { border-color: var(--malachite); background: var(--tint); }
.checks--lands label:has(input:checked) { background: var(--malachite); color: #fff; }

/* ---------- footer ---------- */
.foot__top { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: end; }
.foot__contact { display: flex; flex-direction: column; gap: 10px; }
.fcard { display: flex; flex-direction: column; gap: 2px; padding: 16px 20px; border: 1px solid var(--dline-2); border-radius: 10px; text-decoration: none; transition: background .3s, border-color .3s; }
.fcard b { color: var(--mist); font-size: 17px; }
.fcard span { color: var(--mist-3); font-size: 13.5px; }
.fcard:hover { background: var(--malachite-2); border-color: var(--brass); }
.letter { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: center; margin-top: 56px; padding: 28px; border-radius: 12px; background: var(--malachite-2); }
.letter h2 { color: var(--mist); margin-bottom: 6px; }
.letter p { margin: 0; color: var(--mist-2); font-size: 14.5px; }
.letter__row { display: flex; gap: 10px; }
.letter__row input[type="email"] { flex: 1; min-height: 50px; border-radius: 999px; border: 1px solid var(--dline-3); background: transparent; color: var(--mist); padding: 0 20px; font: inherit; }
.letter__row input::placeholder { color: var(--mist-3); }
.foot__land { display: inline-flex; align-items: center; gap: 10px; }
.foot__trust { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 22px 0; border-top: 1px solid var(--dline); font-size: 13px; color: var(--mist-3); }
.foot__base { align-items: center; }
.foot__base .foot__top-link { color: var(--brass); }
@media (max-width: 860px) { .foot__top, .letter { grid-template-columns: 1fr; } .letter__row { flex-direction: column; } }

/* ---------- journal ---------- */
.chip--on { background: var(--malachite); color: var(--mist); }
.jlead { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; text-decoration: none; color: var(--ink); }
.jlead:hover { color: var(--ink); }
.jlead .photo__frame { aspect-ratio: 4 / 3.4; }
.jlead__text { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.jlead:hover .h-l { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
@media (max-width: 860px) { .jlead { grid-template-columns: 1fr; } }
.inlinks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.inlink { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); }
.inlink:hover { border-color: var(--brass-ink); color: var(--ink); background: var(--tint); }
.inlink img { width: 56px; height: 56px; object-fit: cover; border-radius: 28px 28px 4px 4px; }
.inlink small { display: block; font-stretch: 125%; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--brass-ink); font-weight: 600; }
.inlink b { font-weight: 600; font-size: 14.5px; line-height: 1.25; }
.midcta { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; background: var(--malachite); color: var(--mist); border-radius: 12px; padding: 22px 26px; }
.midcta b { font-family: var(--display); font-weight: 500; font-size: 24px; }
.midcta p { margin: 4px 0 0; color: var(--mist-2); font-size: 14.5px; max-width: 52ch; }
.ccard { display: flex; flex-direction: column; gap: 8px; text-decoration: none; }
.panel--dark.ccard, .panel--dark.ccard:hover { color: var(--mist); }
.panel--line.ccard { color: var(--ink); }
.panel--line.ccard:hover { border-color: var(--brass-ink); color: var(--ink); }

/* ---------- land colours on shared components ---------- */
.fan__item::after { background: linear-gradient(180deg, transparent 40%, color-mix(in srgb, var(--malachite) 92%, transparent) 100%); }
.fan__item .num, .fan__go { color: var(--brass); }
.fan__go { border-bottom-color: var(--brass); }
.toc__row[data-land] { position: relative; }
.toc__row[data-land]::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--malachite); transform: scaleY(0); transform-origin: top; transition: transform .4s var(--ease); }
.toc__row[data-land]:hover { background: var(--tint); }
.toc__row[data-land]:hover::before { transform: none; }
.toc__row[data-land] .num { color: var(--brass-ink); }
.card[data-land] .chip { background: var(--tint); color: var(--deep); }
.foot .foot__land:hover { color: var(--brass); }
.checks--lands label[data-land] .swatch { width: 14px; height: 14px; }

/* ---------- atlas: self-drawn SVG maps ---------- */
.atlas { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.atlas__svg { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); display: block; }
.atlas__sea { fill: color-mix(in srgb, var(--tint) 55%, #fff); }
.atlas__grat { stroke: color-mix(in srgb, var(--malachite) 16%, transparent); stroke-width: 1; stroke-dasharray: 2 6; }
.atlas__land { fill: var(--marble); stroke: color-mix(in srgb, var(--malachite) 50%, transparent); stroke-width: 1.4; }
.atlas__land--other { fill: color-mix(in srgb, var(--marble) 65%, #cfcfc6); stroke-width: .9; }
.atlas__land--hl { fill: var(--tint); stroke: var(--malachite); stroke-width: 2.2; }
.atlas__state { fill: none; stroke: color-mix(in srgb, var(--malachite) 30%, transparent); stroke-width: .9; }
.atlas__state--hl { fill: var(--tint); stroke: var(--malachite); stroke-width: 2; }
.atlas__route { fill: none; stroke: var(--brass-ink); stroke-width: 3; stroke-dasharray: 8 7; stroke-linecap: round; }
.atlas__pin circle { fill: var(--malachite); stroke: var(--brass); stroke-width: 3; transition: r .2s; }
.atlas__pin text { fill: #fff; font-family: var(--sans); font-size: 14px; font-weight: 700; pointer-events: none; }
.atlas__pin .atlas__label { fill: var(--ink); font-size: 15px; font-weight: 600; paint-order: stroke; stroke: var(--paper); stroke-width: 5px; stroke-linejoin: round; }
.atlas__pin.is-main circle { fill: var(--brass); stroke: var(--malachite); }
.atlas__pin.is-main text:not(.atlas__label) { fill: var(--malachite); }
.atlas__pin:hover circle, .atlas__pin:focus circle, .atlas__pin.is-hot circle { r: 19; fill: var(--brass-ink); }
.atlas__scale line { stroke: var(--ink-2); stroke-width: 2; }
.atlas__scale text, .atlas__north text { fill: var(--ink-2); font-family: var(--sans); font-size: 13px; font-weight: 600; }
.atlas__north path { fill: var(--malachite); }
.atlas__legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 16px; font-size: 14px; }
.atlas__legend a { display: flex; gap: 10px; align-items: baseline; text-decoration: none; padding: 4px 6px; border-radius: 6px; color: var(--ink); }
.atlas__legend a:hover, .atlas__legend li.is-hot a { background: var(--tint); }
.atlas__legend span { display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: 50%; background: var(--malachite); color: #fff; font-size: 12px; font-weight: 700; }
.atlas__legend small { color: var(--muted); }
.atlas figcaption { font-size: 11.5px; color: var(--muted); }
.split__aside .atlas__legend { grid-template-columns: 1fr; }
