/* Role: legacy shared front-end layer. Prefer new component polish in final-authority.css or page authority files. */

/* Phase 3B – shared inner-page foundation
 * Scope: only Phase 3 wrappers.
 * Goal: replace site-content.css + site-refactor.css on refactor pages with a narrow component layer.
 */

.page-shell,
.page-market-archive,
.page-profile {
    --front-surface-1: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 252, 248, 0.98));
    --front-surface-2: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(249, 245, 239, 0.98));
    --front-line: rgba(122, 134, 123, 0.14);
    --front-line-strong: rgba(122, 134, 123, 0.24);
    --front-copy: var(--site-copy);
    --front-copy-soft: var(--site-copy-muted);
    max-width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    gap: 28px;
    padding: 24px 0 72px;
}

.page-shell.site-wrap,
.page-market-archive.site-wrap,
.page-profile.site-wrap {
    background: transparent;
}

.page-shell .site-section,
.page-shell .site-block,
.page-market-archive .site-section,
.page-market-archive .site-block,
.page-profile .site-section,
.page-profile .site-block {
    margin: 0;
    padding: 0;
}

.page-shell .site-section__inner,
.page-market-archive .site-section__inner,
.page-profile .site-section__inner,
.page-shell .site-block,
.page-market-archive .site-block,
.page-profile .site-block {
    display: grid;
    gap: 20px;
    padding: clamp(20px, 3vw, 30px);
    border-radius: 28px;
    border: 1px solid var(--front-line);
    background: var(--front-surface-1);
    box-shadow: 0 22px 52px rgba(40, 45, 38, 0.08);
}

.page-shell .site-card,
.page-market-archive .site-card,
.page-profile .site-card {
    background: var(--front-surface-2);
    border: 1px solid var(--front-line);
    border-radius: 22px;
    box-shadow: 0 14px 30px rgba(34, 39, 34, 0.06);
}

.page-shell .site-breadcrumb,
.page-market-archive .site-breadcrumb,
.page-profile .site-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(122, 134, 123, 0.12);
    color: var(--site-copy-muted);
    font-size: 12px;
}

.page-shell .site-breadcrumb a,
.page-market-archive .site-breadcrumb a,
.page-profile .site-breadcrumb a {
    color: var(--site-copy);
    text-decoration: none;
}

.page-shell .site-breadcrumb a:hover,
.page-market-archive .site-breadcrumb a:hover,
.page-profile .site-breadcrumb a:hover,
.page-shell .site-link-quiet:hover,
.page-market-archive .site-link-quiet:hover,
.page-profile .site-link-quiet:hover {
    color: #f0d78a;
}

.page-shell .site-breadcrumb__current,
.page-market-archive .site-breadcrumb__current,
.page-profile .site-breadcrumb__current {
    color: rgba(241, 231, 205, 0.88);
}

.page-shell .site-section__header,
.page-market-archive .site-section__header,
.page-profile .site-section__header,
.page-shell .site-block__head,
.page-market-archive .site-block__head,
.page-profile .site-block__head {
    display: grid;
    gap: 10px;
}

.page-shell .site-section__header--split,
.page-market-archive .site-section__header--split,
.page-profile .site-section__header--split {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 20px;
}

.page-shell .site-section__eyebrow,
.page-market-archive .site-section__eyebrow,
.page-profile .site-section__eyebrow,
.page-shell .site-card__eyebrow,
.page-market-archive .site-card__eyebrow,
.page-profile .site-card__eyebrow,
.page-shell .site-section-head__eyebrow,
.page-market-archive .site-section-head__eyebrow,
.page-profile .site-section-head__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #f0d78a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.page-shell .site-section__title,
.page-market-archive .site-section__title,
.page-profile .site-section__title,
.page-shell .site-block__head h2,
.page-market-archive .site-block__head h2,
.page-profile .site-block__head h2,
.page-shell .site-card__title,
.page-market-archive .site-card__title,
.page-profile .site-card__title {
    margin: 0;
    color: #fff4d6;
    font-size: clamp(1.9rem, 3.2vw, 3.2rem);
    line-height: 1.06;
    letter-spacing: -0.03em;
}

.page-profile .site-section__title--compact,
.page-profile .site-card__title,
.page-market-archive .site-card__title,
.page-shell .site-card__title {
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    line-height: 1.18;
    letter-spacing: -0.01em;
}

.page-shell .site-section__intro,
.page-market-archive .site-section__intro,
.page-profile .site-section__intro,
.page-shell .site-card__text,
.page-market-archive .site-card__text,
.page-profile .site-card__text,
.page-shell .site-block__head p,
.page-market-archive .site-block__head p,
.page-profile .site-block__head p {
    margin: 0;
    max-width: 74ch;
    color: var(--front-copy);
    line-height: 1.7;
}

.page-shell .site-actions,
.page-market-archive .site-actions,
.page-profile .site-actions,
.page-shell .page-masthead__pills,
.page-market-archive .page-masthead__pills,
.page-profile .page-masthead__pills,
.page-shell .market-hub-card__chips,
.page-shell .site-grid-areas-compact,
.page-market-archive .page-market-hero__checklist,
.page-profile .page-profile-decision-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.page-shell .site-pill,
.page-market-archive .site-pill,
.page-profile .site-pill,
.page-shell .site-chip,
.page-market-archive .site-chip,
.page-profile .site-chip,
.page-market-archive .site-badge,
.page-profile .site-badge {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.16);
    background: rgba(21, 26, 36, 0.92);
    color: #f3e2b0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
}

.page-shell .site-pill--active,
.page-market-archive .site-pill--active,
.page-profile .site-pill--active,
.page-market-archive .site-badge--active,
.page-profile .site-chip--accent,
.page-market-archive .site-chip--accent,
.page-market-archive .site-chip--price {
    border-color: rgba(212, 175, 55, 0.36);
    background: rgba(212, 175, 55, 0.10);
    color: #fff4d6;
}

.page-shell .site-btn,
.page-market-archive .site-btn,
.page-profile .site-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.page-shell .site-btn:hover,
.page-market-archive .site-btn:hover,
.page-profile .site-btn:hover {
    transform: translateY(-1px);
}

.page-shell .site-btn--primary,
.page-market-archive .site-btn--primary,
.page-profile .site-btn--primary {
    background: linear-gradient(180deg, #d7b04a, #be942e);
    color: #111318 !important;
    border: none;
    box-shadow: 0 18px 36px rgba(190, 148, 46, 0.24);
}

.page-shell .site-btn--ghost,
.page-market-archive .site-btn--ghost,
.page-profile .site-btn--ghost {
    background: rgba(19, 25, 38, 0.88);
    border: 1px solid rgba(212, 175, 55, 0.22);
    color: #fff4d6 !important;
}

.page-shell .site-link-quiet,
.page-market-archive .site-link-quiet,
.page-profile .site-link-quiet {
    color: rgba(241, 231, 205, 0.72);
    font-weight: 700;
    text-decoration: none;
}

.page-shell .page-masthead__grid,
.page-market-archive .page-masthead__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 22px;
    align-items: start;
}

.page-shell .page-masthead__main,
.page-shell .page-masthead__side,
.page-market-archive .page-market-hero__main,
.page-market-archive .page-market-hero__aside {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.page-shell .site-grid-2,
.page-market-archive .site-grid-2,
.page-profile .site-grid-2,
.page-shell .site-grid-3,
.page-market-archive .site-grid-3,
.page-profile .site-grid-3,
.page-shell .site-faq-grid,
.page-profile .page-profile-related-grid {
    display: grid;
    gap: 18px;
}

.page-shell .site-grid-2,
.page-market-archive .site-grid-2,
.page-profile .site-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-shell .site-grid-3,
.page-market-archive .site-grid-3,
.page-profile .page-profile-related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-shell .market-intro-grid,
.page-shell .market-hub-grid,
.page-shell .site-link-grid--hero,
.page-market-archive .site-faq-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-shell .market-hub-card,
.page-shell .market-intro-card,
.page-shell .site-link-card,
.page-shell .site-step-card,
.page-shell .site-info-card,
.page-shell .site-link-card,
.page-shell .site-compare-card {
    display: grid;
    gap: 12px;
    padding: 22px;
    color: inherit;
    text-decoration: none;
}

.page-shell .site-link-card__body {
    display: grid;
    gap: 10px;
}

.page-shell .site-link-card__eyebrow {
    color: rgba(241, 231, 205, 0.54);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.page-shell .site-link-card__meta {
    color: rgba(241, 231, 205, 0.60);
    font-size: 13px;
}

.page-shell .site-step-card__index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.14);
    color: #fff4d6;
    font-weight: 800;
}

.page-shell .market-hub-card__summary,
.page-shell .site-link-card p,
.page-shell .site-info-card p,
.page-shell .site-compare-card li,
.page-shell .site-card__text,
.page-shell .site-link-card__copy {
    color: var(--front-copy-soft);
}

.page-shell .site-list,
.page-market-archive .site-list {
    margin: 0;
    padding-left: 18px;
    color: var(--front-copy-soft);
    line-height: 1.75;
}

.page-shell .site-list li + li,
.page-market-archive .site-list li + li {
    margin-top: 8px;
}

.page-shell .site-list--check {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 10px;
}

.page-shell .site-list--check li {
    position: relative;
    padding-left: 22px;
}

.page-shell .site-list--check li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #f0d78a;
    font-weight: 800;
}

.page-shell .site-faq--details,
.page-market-archive .site-faq--details {
    display: grid;
    gap: 12px;
}

.page-shell .site-faq-item--toggle,
.page-market-archive .site-faq-item--toggle {
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid var(--front-line);
    background: rgba(18, 24, 36, 0.72);
}

.page-shell .site-faq-item--toggle summary,
.page-market-archive .site-faq-item--toggle summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 20px;
    color: #fff4d6;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.page-shell .site-faq-item--toggle summary::-webkit-details-marker,
.page-market-archive .site-faq-item--toggle summary::-webkit-details-marker {
    display: none;
}

.page-shell .site-faq-item--toggle summary::after,
.page-market-archive .site-faq-item--toggle summary::after {
    content: "+";
    color: #f0d78a;
    font-size: 18px;
    font-weight: 700;
}

.page-shell .site-faq-item--toggle[open] summary::after,
.page-market-archive .site-faq-item--toggle[open] summary::after {
    content: "–";
}

.page-shell .site-faq-item__answer,
.page-market-archive .site-faq-item__answer {
    padding: 0 20px 18px;
    color: var(--front-copy);
}

.page-shell .site-faq-item__answer > :last-child,
.page-market-archive .site-faq-item__answer > :last-child {
    margin-bottom: 0;
}

.page-shell .page-final-cta,
.page-market-archive .page-final-cta,
.page-profile .page-final-cta {
    display: grid;
    gap: 14px;
    align-items: start;
}

.page-shell .page-empty-state,
.page-market-archive .page-empty-state {
    display: grid;
    gap: 14px;
    padding: 24px;
    border-radius: 20px;
    border: 1px dashed rgba(212, 175, 55, 0.24);
    background: rgba(15, 20, 30, 0.72);
}

@media (max-width: 1024px) {
    .page-shell .page-masthead__grid,
    .page-market-archive .page-market-hero,
    .page-market-archive .page-market-toolbar {
        grid-template-columns: 1fr;
    }

    .page-shell .market-intro-grid,
    .page-shell .market-hub-grid,
    .page-shell .site-link-grid--hero,
    .page-shell .site-grid-3,
    .page-profile .page-profile-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .page-shell,
    .page-market-archive,
    .page-profile {
        width: min(100%, calc(100% - 20px));
        gap: 20px;
        padding: 20px 0 92px;
    }

    .page-shell .site-section__inner,
    .page-shell .site-block,
    .page-market-archive .site-section__inner,
    .page-profile .site-section__inner {
        padding: 20px;
        border-radius: 22px;
    }

    .page-shell .site-section__header--split,
    .page-market-archive .site-section__header--split,
    .page-profile .site-section__header--split {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .page-shell .market-intro-grid,
    .page-shell .market-hub-grid,
    .page-shell .site-link-grid--hero,
    .page-shell .site-grid-2,
    .page-shell .site-grid-3,
    .page-market-archive .site-grid-2,
    .page-market-archive .site-grid-3,
    .page-profile .page-profile-related-grid {
        grid-template-columns: 1fr;
    }

    .page-shell .page-masthead__grid {
        grid-template-columns: 1fr;
    }
}

/* Round 6 shared migration trial: jump nav / step card / link card */
.site-jump-nav{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.site-jump-nav__link{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 14px;border-radius:999px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.03);color:#eef2f7;font-size:13px;font-weight:700;transition:transform .18s ease,border-color .18s ease,background .18s ease}
.site-jump-nav__link:hover{transform:translateY(-1px);border-color:var(--site-accent-glow);background:var(--site-accent-soft)}

.site-step-card{display:flex;flex-direction:column;align-items:flex-start;gap:16px;min-height:100%}
.site-step-card__index{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:999px;background:var(--site-accent-soft);border:1px solid var(--site-accent-glow);color:var(--klsv-ui-accent-strong);font-size:14px;font-weight:800;flex-shrink:0}
.site-step-card__body{display:flex;flex-direction:column;align-items:flex-start;gap:14px;width:100%;min-width:0}
.site-step-card__title-wrap{display:flex;align-items:flex-start;width:100%;min-height:clamp(56px,6vw,84px)}
.site-step-card__title{margin:0;max-width:100%;text-wrap:balance}
.site-step-card__text{margin:0;max-width:var(--site-reading-max)}

.site-link-card{display:grid;gap:12px;min-height:100%;align-content:start;transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}
.site-link-card:hover,.site-profile-spotlight:hover,.site-area-spotlight:hover{transform:translateY(-3px);border-color:var(--site-accent-glow);box-shadow:var(--site-shadow-hover)}
.site-link-card__meta{display:inline-flex;align-items:center;gap:8px;margin-top:auto;color:var(--klsv-ui-accent-strong);font-size:12px;font-weight:800;letter-spacing:.04em;text-transform:uppercase}
.site-link-card__meta::after{content:"›";font-size:14px;opacity:.8}

@media(max-width:767px){
  .site-jump-nav__link{flex:1 1 calc(50% - 10px)}
  .site-step-card__title-wrap{min-height:0}
}

@media(max-width:520px){
  .site-jump-nav__link{flex-basis:100%}
}

/* Round 7 shared migration trial: spotlight, content cluster, and footer shared layout */
.site-content-cluster{display:grid;gap:16px}

.site-profile-spotlight,
.site-area-spotlight{display:grid;grid-template-rows:auto 1fr;padding:0;min-height:100%}

.site-profile-spotlight__media,
.site-area-spotlight__media{position:relative;overflow:hidden;background:var(--klsv-ui-bg-muted)}

.site-profile-spotlight__media{aspect-ratio:3/4}
.site-area-spotlight__media{aspect-ratio:4/3}

.site-profile-spotlight__media img,
.site-area-spotlight__media img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .28s ease}

.site-profile-spotlight:hover .site-profile-spotlight__media img,
.site-area-spotlight:hover .site-area-spotlight__media img{transform:scale(1.04)}

.site-profile-spotlight__body,
.site-area-spotlight__body{display:grid;gap:10px;align-content:start;padding:18px}

.site-profile-spotlight__body h3,
.site-area-spotlight__body h3,
.site-profile-spotlight__body p,
.site-area-spotlight__body p{margin:0}

.site-profile-spotlight__meta,
.site-area-spotlight__meta-row{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:auto}

.site-profile-spotlight__eyebrow,
.site-area-spotlight__eyebrow{font-size:11px;color:var(--klsv-ui-accent);font-weight:800;letter-spacing:.08em;text-transform:uppercase}

.site-area-spotlight__flags{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.site-area-spotlight__flags .site-flag{min-width:30px;min-height:30px;font-size:14px;padding:0 8px}

.site-footer__nav-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.site-footer__group{display:grid;gap:12px;align-content:start}
.site-footer__group h3,
.site-footer__heading{margin:0;line-height:1.3;color:var(--site-text)}
.site-footer__group h3{font-family:var(--klsv-font-display);font-size:1rem;letter-spacing:normal;text-transform:none}
.site-footer__link{display:inline-flex;align-items:center;min-height:32px;padding:0;color:var(--site-muted)}
.site-footer__actions .site-btn{min-width:160px}
.site-footer__intro{max-width:var(--site-reading-max)}

@media(max-width:1200px){
  .site-footer__nav-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:1024px){
  .site-footer__nav-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:767px){
  .site-footer__nav-grid{grid-template-columns:1fr}
  .site-footer__actions{justify-content:stretch}
  .site-footer__actions .site-btn{width:100%}
}

@media(max-width:520px){
  .site-footer__actions{width:100%}
}

/* Round 8 shared migration trial: rhythm surface, footer actions shell, and hero media */
.site-card--content>*+*,
.site-link-card>*+*,
.site-footer__intro>*+*{margin-top:12px}

.site-footer__actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}

.site-hero__media{position:relative;min-height:clamp(220px,36vw,360px);background:linear-gradient(135deg,#182131,#27364b)}
.site-hero__media::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.08),rgba(0,0,0,.54))}
.site-hero__media-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}

@media(max-width:1024px){
  .site-footer__actions{justify-content:flex-start}
}

@media(max-width:767px){
  .site-hero__media{min-height:220px}
}

/* Phase 3F Round 9 — shared hero/card/stat surface migration */
.site-hero__content{padding:36px;position:relative;z-index:1}
.site-hero__title{max-width:16ch}
.site-hero__lead{max-width:min(var(--site-reading-max),100%);color:#d7dce5;font-size:17px}
.site-panel{border-radius:var(--site-radius-lg);border:1px solid var(--site-line);background:rgba(255,255,255,.03);padding:22px}
.site-statgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:14px}
.site-stat{padding:16px;border-radius:var(--site-radius-md);background:rgba(255,255,255,.03);border:1px solid var(--site-line)}
.site-stat strong{display:block;font-size:20px;margin-bottom:4px;color:#fff}
.site-stat span{color:var(--site-muted);font-size:14px}
.site-card,.site-hero-card,.site-link-card,.site-step-card,.site-profile-spotlight,.site-area-spotlight{background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.025));backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}

@media(max-width:1024px){
.site-statgrid{grid-template-columns:repeat(2,1fr)}
}

@media(max-width:767px){
.site-hero__content{padding:20px}
.site-statgrid{grid-template-columns:1fr;gap:10px}
}

/* Phase 3F Round 10 — shared hero/composite skeleton migration */
.site-hero{background:linear-gradient(180deg,var(--site-panel),var(--site-panel-soft));border:1px solid var(--site-line);border-radius:var(--site-radius-xl);box-shadow:var(--site-shadow);overflow:hidden}
.site-hero__tag{display:inline-flex;align-items:center;gap:8px;margin-bottom:16px;padding:10px 16px;border-radius:999px;border:1px solid var(--site-accent-glow);background:var(--site-accent-soft);color:var(--klsv-ui-accent-strong);font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.site-hero__topgrid{display:grid;grid-template-columns:1.5fr .85fr;gap:20px;margin-top:28px}
.site-hero-card{background:rgba(11,12,16,.54);backdrop-filter:blur(10px);padding:clamp(18px,2vw,24px)}
.site-grid-4,.site-grid-profiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;align-items:stretch}
.site-faq-item--toggle{padding:0;overflow:hidden}
.site-faq-item--toggle summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;cursor:pointer;font-weight:700;color:#fff}
.site-faq-item--toggle summary::-webkit-details-marker{display:none}
.site-faq-item--toggle summary::after{content:"▾";font-size:14px;color:var(--site-muted);transition:transform .18s ease}
.site-faq-item--toggle[open] summary::after{transform:rotate(180deg)}
.site-faq-item__answer{padding:0 20px 18px;color:var(--site-muted)}

@media(max-width:1200px){
  .site-grid-4,.site-grid-profiles{grid-template-columns:repeat(3,minmax(0,1fr))}
}

@media(max-width:767px){
  .site-hero__topgrid{grid-template-columns:1fr}
  .site-grid-4,.site-grid-profiles{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:520px){
  .site-grid-4,.site-grid-profiles{grid-template-columns:1fr!important}
}

/* Phase 3F Round 11 — shared grid/layout primitive + hero system tail migration */
.site-chiprow{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.site-card-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:18px}
.site-grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.site-grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.site-hero__grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,.9fr);gap:24px;align-items:start}
.site-chip-row,.site-chiprow{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.site-list--options{list-style:none;padding:0;margin:0;display:grid;gap:12px}
.site-list--options li{display:grid;gap:4px;padding:12px 0;border-bottom:1px solid rgba(255,255,255,.06)}
.site-list--options li:last-child{border-bottom:none;padding-bottom:0}
.site-list--options strong{font-size:15px;color:#fff}
.site-list--options span{font-size:14px;color:var(--site-muted)}

/* Round 12 – shared composite tail migration: area cards, quiet links, rich footer shell */
.site-link-quiet{display:inline-flex;align-items:center;gap:8px;color:#d7dbe3;font-size:14px;font-weight:600;min-height:44px}
.site-link-quiet::after{content:'›';font-size:16px;opacity:.72;transition:transform .18s ease,opacity .18s ease}
.site-link-quiet:hover{color:#fff}
.site-link-quiet:hover::after{transform:translateX(2px);opacity:1}
.site-link-quiet--telegram{display:inline-grid;gap:2px;align-content:center;min-height:48px;padding:10px 14px 10px 16px;border-radius:999px;border:1px solid rgba(125,179,255,.18);background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.02));color:#eef2ff;box-shadow:inset 0 1px 0 rgba(255,255,255,.04)}
.site-link-quiet--telegram::before{content:'✈';display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:999px;background:rgba(125,179,255,.12);color:#9cc3ff;font-size:12px;line-height:1;margin-right:2px;grid-column:1;grid-row:1 / span 2;align-self:center}
.site-link-quiet--telegram::after{content:'›';grid-column:3;grid-row:1 / span 2;align-self:center;justify-self:end}
.site-link-quiet__label,.site-link-quiet__meta{display:block;line-height:1.2}
.site-link-quiet__label{font-size:13px;font-weight:700;color:#eef2ff}
.site-link-quiet__meta{font-size:11px;font-weight:600;color:#9ba5bb}
.site-link-quiet--telegram:hover{border-color:rgba(125,179,255,.32);background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,.03));color:#fff}
.site-link-quiet--telegram:hover .site-link-quiet__meta{color:#c3cbe0}

.site-grid-areas{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.site-area-card{display:flex;flex-direction:column;overflow:hidden;padding:0;background:linear-gradient(180deg,rgba(255,255,255,.03),rgba(255,255,255,.02));transition:transform .22s ease-out,border-color .22s ease-out,box-shadow .22s ease-out}
.site-area-card:hover{transform:translateY(-3px);border-color:var(--site-accent-glow);box-shadow:var(--site-shadow-hover)}
.site-area-card__media{position:relative;aspect-ratio:4/3;background:var(--klsv-ui-bg-muted);overflow:hidden}
.site-area-card__media::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0) 45%,rgba(0,0,0,.24) 100%)}
.site-area-card__media img{width:100%;height:100%;object-fit:cover;transition:transform .28s}
.site-area-card:hover .site-area-card__media img{transform:scale(1.04)}
.site-area-card__placeholder{display:flex;align-items:center;justify-content:center;height:100%;padding:24px;text-align:center;color:#fff;font-weight:700;background:linear-gradient(135deg,#1b2433,#2d3046)}
.site-area-card__body{display:grid;gap:10px;padding:18px}
.site-area-card__body h3{margin:0}
.site-card-flags{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.site-flag{display:inline-flex;align-items:center;justify-content:center;min-width:34px;min-height:34px;padding:0 10px;border-radius:999px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.04);font-size:16px}
.site-card-flag-count{font-size:13px;color:var(--klsv-ui-accent-strong);font-weight:700}

.site-footer__inner--rich{display:grid;grid-template-columns:minmax(0,1.2fr) auto auto;align-items:center;gap:22px}
.site-footer__intro{display:grid;gap:8px}
.site-footer__eyebrow{margin:0;color:var(--klsv-ui-accent);font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}

@media(max-width:1440px){
  .site-card-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}

@media(max-width:1024px){
  .site-hero__topgrid,.site-card-grid,.site-grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}
  .site-hero__grid,.site-grid-areas,.site-footer__inner--rich{grid-template-columns:1fr}
}

@media(max-width:767px){
  .site-chiprow{gap:8px;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;flex-wrap:nowrap;padding-bottom:4px}
  .site-chiprow::-webkit-scrollbar{display:none}
  .site-chip{flex-shrink:0}
  .site-link-quiet{min-height:40px}
  .site-link-quiet--telegram{width:100%;max-width:320px}
  .site-header__mobile-link{min-height:40px}
  .site-hero__grid{grid-template-columns:1fr}
  .site-grid-areas{grid-template-columns:1fr}
  .site-footer__inner--rich{text-align:left}
  .site-footer__links{justify-content:flex-start;flex-wrap:wrap}
  .site-grid-2,.site-grid-3,.site-card-grid{grid-template-columns:1fr}
}


.page-shell .site-link-quiet,
.page-market-archive .site-link-quiet,
.page-profile .site-link-quiet { color: var(--site-accent-strong); }

.page-shell .site-link-quiet:hover,
.page-market-archive .site-link-quiet:hover,
.page-profile .site-link-quiet:hover { color: var(--site-ink); }

.page-shell .site-section__title,
.page-market-archive .site-section__title,
.page-profile .site-section__title { color: var(--site-ink); }

.page-shell .site-section__intro,
.page-market-archive .site-section__intro,
.page-profile .site-section__intro { color: var(--site-copy); }
