/* Self-contained: tokens, reset, header, list, footer. All rules .lc2-. */

:root {
    /* Ground and text */
    --lc2-bg: #ffffff;
    --lc2-ink: #22262c;
    --lc2-muted: #59616d;
    --lc2-faint: #8a929e;
    --lc2-inverse: #ffffff;

    /* Lines and washes */
    --lc2-line: #e7e9ee;
    --lc2-wash: #f6f8fb;

    /* Brand accent, fixed across sites. */
    --lc2-blue: #1a56d6;
    --lc2-blue-dark: #1442a8;

    /* Savings badge and rating glyph */
    --lc2-deal: #0f8a43;
    --lc2-star: #f5a623;
    --lc2-star-off: #d7dbe2;

    --lc2-radius-sm: 6px;
    --lc2-radius-md: 10px;
    --lc2-radius-full: 9999px;

    --lc2-header-height: 56px;
    --lc2-container: 820px;
    --lc2-header-w: 960px;

    --lc2-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --lc2-disp: "Figtree", var(--lc2-sans);

    /* Score glyph, inlined so the row costs no request. */
    --lc2-star-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E");
    /* Diagonal wash behind a card that has no image yet. */
    --lc2-empty-weave: repeating-linear-gradient(135deg, rgba(26, 86, 214, 0.05) 0 12px, transparent 12px 24px);
}

body.lc2-template *,
body.lc2-template *::before,
body.lc2-template *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.lc2-template {
    margin: 0;
    padding: 0;
    background: var(--lc2-bg);
    color: var(--lc2-ink);
    font-family: var(--lc2-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
/* Base link colour at zero specificity so each component's own colour wins. */
:where(body.lc2-template a) { color: var(--lc2-blue); text-decoration: none; }
:where(body.lc2-template a:hover) { color: var(--lc2-blue-dark); text-decoration: underline; }
body.lc2-template h1,
body.lc2-template h2 { margin: 0; color: var(--lc2-ink); font-family: var(--lc2-disp); font-weight: 800; line-height: 1.2; }
body.lc2-template p { margin: 0 0 12px; }
body.lc2-template ol,
body.lc2-template ul { margin: 0; padding: 0; list-style: none; }
body.lc2-template img { max-width: 100%; height: auto; }

.lc2-container {
    max-width: var(--lc2-container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------------------------------------------------------------- header */

.lc2-header {
    background: var(--lc2-bg);
    border-bottom: 1px solid var(--lc2-line);
}
.lc2-header-inner {
    max-width: var(--lc2-header-w);
    margin: 0 auto;
    min-height: var(--lc2-header-height);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}
.lc2-logo { display: inline-flex; align-items: center; gap: 9px; }
.lc2-logo-img { display: block; max-height: 28px; width: auto; }
/* Text lockup used when no logo image is present. */
.lc2-logo-mark {
    width: 26px;
    height: 26px;
    border-radius: var(--lc2-radius-sm);
    background: var(--lc2-blue);
    color: var(--lc2-inverse);
    display: inline-grid;
    place-items: center;
    font-family: var(--lc2-disp);
    font-size: 12px;
    font-weight: 800;
}
.lc2-logo-text { font-family: var(--lc2-disp); font-weight: 800; font-size: 19px; color: var(--lc2-ink); letter-spacing: -0.01em; }
.lc2-nav { margin-left: auto; }
.lc2-nav-menu { display: flex; gap: 22px; }
.lc2-nav-link { color: var(--lc2-muted); font-size: 14px; font-weight: 600; }
.lc2-nav-link:hover { color: var(--lc2-blue); text-decoration: none; }

.lc2-menu-toggle {
    display: none;
    margin-left: auto;
    width: 38px;
    height: 32px;
    padding: 6px;
    border: 0;
    background: none;
    cursor: pointer;
}
.lc2-menu-toggle span {
    display: block;
    height: 2px;
    margin: 4px 0;
    background: var(--lc2-ink);
    border-radius: 2px;
}

.lc2-disclosure-bar {
    background: var(--lc2-wash);
    border-bottom: 1px solid var(--lc2-line);
}
.lc2-disclosure {
    max-width: var(--lc2-header-w);
    margin: 0 auto;
    padding: 8px 20px;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--lc2-faint);
    text-align: center;
}
.lc2-disclosure a { color: var(--lc2-blue); text-decoration: underline; }

/* ------------------------------------------------------------------ lede */

.lc2-page { padding: 0; }
.lc2-lede { padding: 40px 0 26px; }

.lc2-headline {
    margin: 0;
    font-size: clamp(30px, 5.4vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    font-weight: 800;
    text-wrap: balance;
}

.lc2-byline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin-top: 14px;
    font-size: 13.5px;
    color: var(--lc2-faint);
}
.lc2-avatar {
    width: 30px;
    height: 30px;
    border-radius: var(--lc2-radius-full);
    object-fit: cover;
    background: var(--lc2-wash);
    flex: none;
}
.lc2-avatar-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--lc2-inverse);
    background: var(--lc2-blue);
}
.lc2-byline-name { font-weight: 600; color: var(--lc2-muted); }
.lc2-byline-date { color: var(--lc2-faint); }
.lc2-byline-disc { color: var(--lc2-blue); font-weight: 600; }

.lc2-hero {
    margin: 22px 0 0;
    border-radius: var(--lc2-radius-md);
    overflow: hidden;
    border: 1px solid var(--lc2-line);
}
.lc2-hero img { display: block; width: 100%; }

.lc2-intro { margin: 18px 0 0; color: var(--lc2-muted); font-size: 17px; }
.lc2-intro p { margin: 0 0 14px; }
.lc2-intro p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ list */

.lc2-item {
    padding: 30px 0;
    border-top: 1px solid var(--lc2-line);
    scroll-margin-top: 70px;
}

.lc2-head { margin-bottom: 4px; }

.lc2-title {
    font-family: var(--lc2-disp);
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -0.01em;
    font-weight: 700;
}
.lc2-rank { color: var(--lc2-blue); font-weight: 800; }
.lc2-title a { color: var(--lc2-ink); }
.lc2-title a:hover { color: var(--lc2-blue); }
.lc2-sep { color: var(--lc2-muted); font-weight: 600; }
.lc2-kicker { font-weight: 600; color: var(--lc2-muted); }

/* Best-for hook, in the savings colour, directly under the title. */
.lc2-hook {
    margin: 4px 0 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--lc2-deal);
}

/* One glyph, three fill states, drawn with a mask so no image request is made. */
.lc2-star {
    width: 14px;
    height: 14px;
    display: inline-block;
    background: var(--lc2-star-off);
    -webkit-mask: var(--lc2-star-shape) center / contain no-repeat;
    mask: var(--lc2-star-shape) center / contain no-repeat;
}
.lc2-star.is-on { background: var(--lc2-star); }
.lc2-star.is-half { background: linear-gradient(90deg, var(--lc2-star) 50%, var(--lc2-star-off) 50%); }

/* 16:9 media block. The container reserves the box before bytes arrive, so the
   list does not shift as media resolves; the media fills it and is cropped. */
.lc2-media {
    position: relative;
    margin: 16px 0 0;
    aspect-ratio: 16 / 9;
    border-radius: var(--lc2-radius-md);
    border: 1px solid var(--lc2-line);
    background: #0d1420;
    overflow: hidden;
}
.lc2-media-link { display: block; width: 100%; height: 100%; }
.lc2-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.lc2-videoel {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

/* Bottom scrim so the corner chips stay legible over any photo. */
.lc2-scrim {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 52%;
    pointer-events: none;
    background: linear-gradient(to top, rgba(10, 14, 20, 0.72), rgba(10, 14, 20, 0));
}

/* Corner chips riding the media. */
.lc2-ov {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
}
.lc2-ov-deal {
    top: 12px;
    right: 12px;
    padding: 6px 10px;
    border-radius: var(--lc2-radius-sm);
    background: var(--lc2-deal);
    color: var(--lc2-inverse);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.lc2-ov-score {
    left: 12px;
    bottom: 12px;
    gap: 7px;
    padding: 5px 9px;
    border-radius: 8px;
    background: var(--lc2-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    white-space: nowrap;
}
.lc2-ov-score b {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--lc2-ink);
    font-variant-numeric: tabular-nums;
}
.lc2-stars { display: inline-flex; align-items: center; gap: 1px; }

/* The box a card with neither video nor image falls back to: a monogram on the
   card's soft ground, sized to the same 16:9, overlays still riding. */
.lc2-media-empty { background: var(--lc2-wash); }
.lc2-empty-fill {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    background-image: var(--lc2-empty-weave);
}
.lc2-empty-mono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: var(--lc2-radius-full);
    background: var(--lc2-blue);
    color: var(--lc2-inverse);
    font-family: var(--lc2-disp);
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
}
.lc2-empty-cap {
    font-size: 12.5px;
    color: var(--lc2-faint);
}

/* ------------------------------------------------------------------ body */

.lc2-body { margin-top: 16px; }
.lc2-sell { margin: 0 0 8px; font-weight: 600; color: var(--lc2-ink); }
.lc2-text { color: var(--lc2-muted); font-size: 15.5px; }

.lc2-points { margin: 14px 0 0; display: grid; gap: 7px; }
.lc2-points li {
    position: relative;
    padding-left: 26px;
    font-size: 14.5px;
    color: var(--lc2-ink);
}
/* Blue checkmark, drawn with borders so no image request is made. */
.lc2-points li::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 6px;
    width: 9px;
    height: 5px;
    border-left: 2px solid var(--lc2-blue);
    border-bottom: 2px solid var(--lc2-blue);
    transform: rotate(-45deg);
}

.lc2-actions { margin: 0; }
.lc2-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    background: var(--lc2-blue);
    color: var(--lc2-inverse);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: background 0.15s ease;
}
.lc2-cta:hover { background: var(--lc2-blue-dark); color: var(--lc2-inverse); text-decoration: none; }

/* ---------------------------------------------------------------- footer */

.lc2-footer {
    border-top: 1px solid var(--lc2-line);
    background: var(--lc2-bg);
    padding: 26px 0;
}
.lc2-footer-inner {
    max-width: var(--lc2-header-w);
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}
.lc2-footer-logo-img { max-height: 26px; width: auto; margin-bottom: 12px; }
.lc2-footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-bottom: 12px;
}
.lc2-footer-nav a { font-size: 12.5px; color: var(--lc2-faint); }
.lc2-footer-nav a:hover { color: var(--lc2-blue); }
.lc2-copyright { margin: 0; font-size: 12.5px; color: var(--lc2-faint); }

/* ---------------------------------------------------------------- narrow */

@media (max-width: 700px) {
    .lc2-title { font-size: 19px; }
    .lc2-menu-toggle { display: block; }
    .lc2-nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        display: none;
        background: var(--lc2-bg);
        border-bottom: 1px solid var(--lc2-line);
        z-index: 20;
    }
    .lc2-nav.open { display: block; }
    .lc2-nav-menu { flex-direction: column; gap: 0; padding: 6px 20px 12px; }
    .lc2-nav-link { display: block; padding: 9px 0; }
}

/* Visible focus for every interactive target. */
body.lc2-template a:focus-visible,
body.lc2-template .lc2-cta:focus-visible,
body.lc2-template .lc2-menu-toggle:focus-visible,
body.lc2-template video:focus-visible {
    outline: 2px solid var(--lc2-blue);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    body.lc2-template * { transition: none !important; animation: none !important; }
}
