/* Legacy snapshot pages (template-parts/legacy/*.html).
   The markup is the original YOOtheme builder output and the content is not
   touched here: this sheet only moves the page onto the current design tokens —
   type scale, section rhythm, surfaces, radii, buttons and links — so a rebuilt
   page reads as part of the shop instead of a 2019 microsite. */

.kin-legacy {
    background: var(--bg);
    color: var(--text);
}

/* ── Layout ─────────────────────────────────────────────────────────────── */
.kin-legacy .uk-container {
    max-width: var(--content-max);
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

/* Builder sections default to 140px gutters; the shop rhythm is tighter. */
.kin-legacy .uk-section {
    padding-top: 56px;
    padding-bottom: 56px;
}
.kin-legacy .uk-section-small {
    padding-top: 32px;
    padding-bottom: 32px;
}
.kin-legacy .uk-section-large,
.kin-legacy .uk-section-xlarge {
    padding-top: 72px;
    padding-bottom: 72px;
}
.kin-legacy .uk-section-default,
.kin-legacy .uk-section-muted,
.kin-legacy .uk-section-secondary {
    background: transparent;
    color: var(--text);
}

/* ── Type ───────────────────────────────────────────────────────────────── */
.kin-legacy h1,
.kin-legacy .uk-h1 {
    font-size: clamp(26px, 2.8vw, 38px);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -.015em;
    color: var(--text);
}
.kin-legacy h2,
.kin-legacy .uk-h2 {
    font-size: clamp(21px, 2.2vw, 28px);
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--text);
}
.kin-legacy h3,
.kin-legacy .uk-h3 {
    font-size: 19px;
    line-height: 1.3;
    font-weight: 600;
    color: var(--text);
}
.kin-legacy h4,
.kin-legacy .uk-h4 {
    font-size: 16px;
    line-height: 1.35;
    font-weight: 600;
    color: var(--text);
}
.kin-legacy .uk-text-lead {
    font-size: 17px;
    line-height: 1.55;
    color: var(--text2);
}
.kin-legacy p,
.kin-legacy li,
.kin-legacy .el-content {
    color: var(--text2);
    line-height: 1.62;
}
.kin-legacy .uk-text-muted {
    color: var(--muted) !important;
}
.kin-legacy .uk-text-emphasis {
    color: var(--accent-ink) !important;
}

/* ── Links ──────────────────────────────────────────────────────────────── */
.kin-legacy a {
    color: var(--accent-ink);
}
.kin-legacy a:hover {
    color: var(--accent);
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.kin-legacy .uk-button {
    min-height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: var(--r-pill);
    font-weight: 600;
    line-height: 44px;
    text-transform: none;
}
.kin-legacy .uk-button-primary {
    background: var(--accent);
    color: #fff;
}
.kin-legacy .uk-button-primary:hover {
    background: var(--accent-hover);
    color: #fff;
}
.kin-legacy .uk-button-default {
    background: var(--surface);
    color: var(--text);
    box-shadow: inset 0 0 0 1px var(--line2);
}
.kin-legacy .uk-button-default:hover {
    background: var(--accent);
    color: #fff;
    box-shadow: none;
}
.kin-legacy .uk-button-secondary {
    background: var(--surface2);
    color: var(--text);
}
.kin-legacy .uk-button-text {
    color: var(--accent-ink);
}

/* ── Surfaces & media ───────────────────────────────────────────────────── */
.kin-legacy .uk-card-default,
.kin-legacy .uk-tile-default,
.kin-legacy .uk-tile-muted {
    background: var(--surface);
    box-shadow: none;
}
.kin-legacy .uk-card-secondary,
.kin-legacy .uk-tile-secondary {
    background: var(--surface2);
    color: var(--text);
}
.kin-legacy .uk-card,
.kin-legacy .uk-tile,
.kin-legacy .el-item > .uk-panel {
    border-radius: var(--r-md);
}
.kin-legacy img {
    border-radius: 10px;
}
.kin-legacy hr {
    border-color: var(--line);
}
.kin-legacy .uk-heading-bullet::before {
    border-left-color: var(--accent);
}
.kin-legacy .uk-divider-icon::before,
.kin-legacy .uk-divider-icon::after {
    border-color: var(--line);
}

/* The builder reveals blocks through uk-scrollspy; on a page opened from a
   snapshot, anything that never enters the viewport (or arrives before UIkit
   initialises) stays invisible. Content must not depend on the animation. */
.kin-legacy [uk-scrollspy-class] {
    opacity: 1 !important;
    transform: none !important;
}

/* The builder highlights some tiles with a 6px mint frame (#7ed3b4) from its
   inline per-element CSS. Keep the emphasis, drop the 2019 weight. Only tiles
   that already declare a border are affected. */
.kin-legacy .uk-tile {
    border-width: 2px !important;
    border-color: color-mix(in srgb, var(--accent) 55%, var(--line2)) !important;
    border-radius: var(--r-md);
}

/* ── Phones ─────────────────────────────────────────────────────────────── */
/* The snapshots are builder markup: its own classes handle the column count,
   what is left for us is the rhythm — 72px section gutters and 2019 heading
   sizes eat a 390px screen for breakfast. */
@media (max-width: 720px) {
    .kin-legacy .uk-section {
        padding-top: 32px;
        padding-bottom: 32px;
    }

    .kin-legacy .uk-section-large,
    .kin-legacy .uk-section-xlarge {
        padding-top: 44px;
        padding-bottom: 44px;
    }

    .kin-legacy h1,
    .kin-legacy .uk-h1 {
        font-size: clamp(26px, 7vw, 34px);
    }

    .kin-legacy h2,
    .kin-legacy .uk-h2 {
        font-size: clamp(21px, 5.4vw, 28px);
    }

    /* Slide arrows sit outside the track on desktop and hang off the screen */
    .kin-legacy .el-slidenav {
        display: none;
    }
}
