/*
Theme Name:  Clusterlane
Theme URI:   https://clusterlane.app
Author:      Clusterlane
Description: Official theme for clusterlane.app — landing page and documentation for the Clusterlane plugin. Content clusters drawn as a transit map.
Version:     2.0.0
Requires WP: 6.4
Tested up to: 7.1
Requires PHP: 8.0
License:     Proprietary
Text Domain: clusterlane
*/

/* Overpass, served from the theme (1.5.2) instead of Google Fonts: one server fewer
   before the text shows. SIL Open Font License — assets/fonts/OFL.txt. */
@font-face { font-family: 'Overpass'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/overpass-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Overpass'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/overpass-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Overpass'; font-style: italic; font-weight: 400; font-display: swap; src: url('assets/fonts/overpass-latin-ext-400-italic.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Overpass'; font-style: italic; font-weight: 400; font-display: swap; src: url('assets/fonts/overpass-latin-400-italic.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Overpass'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/fonts/overpass-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Overpass'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/fonts/overpass-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Overpass'; font-style: normal; font-weight: 800; font-display: swap; src: url('assets/fonts/overpass-latin-ext-800-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Overpass'; font-style: normal; font-weight: 800; font-display: swap; src: url('assets/fonts/overpass-latin-800-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* ==========================================================================
   Tokens
   The line colours are the plugin's own role colours (Pillar, Support,
   Light, Orphan), used here as transit-line colours. Paper and ink are the
   map; nothing else is decorative.
   ========================================================================== */
:root {
    --paper:    #F6F7F4;
    --paper-2:  #ECEEE8;
    --card:     #FFFFFF;
    --ink:      #16223A;
    --ink-2:    #3A4760;
    --ink-3:    #6B7588;
    --rule:     #D9DDD3;

    --orange:   #E76C2E;   /* Pillar  — Museums line */
    --yellow:   #F5C842;   /* Support — Djurgården line */
    --green:    #90B865;   /* Light   — Gamla Stan line */
    --blue:     #5BA4CF;   /* Orphan */
    --orange-ink: #B24A12; /* orange for text on paper (contrast) */

    --font: 'Overpass', 'Helvetica Neue', Arial, sans-serif;
    --measure: 68ch;
    --wrap: 1180px;
    --radius: 6px;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink-2);
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 { color: var(--ink); font-family: var(--font); line-height: 1.12; margin: 0 0 .5em; }
h1 { font-weight: 800; letter-spacing: -0.02em; }
h2 { font-weight: 800; letter-spacing: -0.015em; }
h3 { font-weight: 600; }
p  { margin: 0 0 1em; }
a  { color: var(--ink); text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--orange-ink); }
img { max-width: 100%; height: auto; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }

/* WordPress block wrappers should not add their own gaps around our sections */
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }

/* ==========================================================================
   Buttons and links
   ========================================================================== */
.btn, .btn-primary, .btn-ghost, .header-cta, .pricing-card__cta {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    min-height: 46px; padding: .7em 1.3em;
    font: 600 1rem/1.1 var(--font);
    border-radius: var(--radius); border: 2px solid var(--ink);
    text-decoration: none; cursor: pointer;
    transition: background-color .15s, color .15s, border-color .15s;
}
.btn--primary, .btn-primary, .header-cta { background: var(--ink); color: var(--paper); }
.btn--primary:hover, .btn-primary:hover, .header-cta:hover { background: var(--orange-ink); border-color: var(--orange-ink); color: #fff; }
.btn--quiet, .btn-ghost, .pricing-card__cta { background: transparent; color: var(--ink); }
.btn--quiet:hover, .btn-ghost:hover, .pricing-card__cta:hover { border-color: var(--orange-ink); color: var(--orange-ink); }
.btn--small { min-height: 38px; padding: .45em 1em; font-size: .9375rem; }

.text-link { font-weight: 600; }

/* ==========================================================================
   Header — a station sign: name left, lines right
   ========================================================================== */
.site-header { background: var(--paper); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 50; }
.admin-bar .site-header { top: 32px; }
.site-header__inner { max-width: var(--wrap); margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 32px; }
.site-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.site-logo__mark { display: inline-flex; width: 30px; height: 30px; }
.site-logo__mark svg { width: 100%; height: 100%; }
.site-logo__name { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.01em; color: var(--ink); }
.site-logo__name span { color: inherit; }
.primary-nav { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; gap: 28px; }
.primary-nav a { color: var(--ink-2); font-weight: 600; text-decoration: none; padding: 6px 0; border-bottom: 3px solid transparent; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--orange); }
.header-cta { min-height: 40px; padding: .5em 1em; }
@media (max-width: 380px) { .site-logo { gap: 8px; } .site-logo__name { font-size: 1.05rem; } .header-cta { padding: .45em .8em; font-size: .9rem; } } /* the longer name (2.0.0): logo and button stay on one row on small phones */
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 720px) {
    .site-header__inner { flex-wrap: wrap; gap: 10px 20px; }
    .primary-nav { order: 3; width: 100%; margin: 0; gap: 4px 18px; flex-wrap: wrap; }
    .header-cta { margin-left: auto; }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 96px 24px; }
.section--mist, .section--paper2 { background: var(--paper-2); }
.section--dark { background: var(--ink); color: #CBD2DF; }
.section--dark .section__title, .section--dark h2 { color: #fff; }
.section__inner { max-width: var(--wrap); margin: 0 auto; }
.section__header { max-width: var(--measure); margin-bottom: 48px; }
.section__title { font-size: clamp(1.75rem, 3.2vw, 2.5rem); max-width: 22ch; }
.section__lead, .section__body { font-size: 1.1875rem; color: var(--ink-2); max-width: var(--measure); margin-bottom: 48px; }
.section__header .section__body { margin-bottom: 0; }

/* The old eyebrow: now a line name — a short coloured bar, sentence case */
.section__eyebrow {
    display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
    font-size: .9375rem; font-weight: 600; color: var(--ink-3);
}
.section__eyebrow::before { content: ""; width: 28px; height: 6px; border-radius: 3px; background: var(--orange); }

/* ==========================================================================
   Front page — hero map
   ========================================================================== */
.hero-map {
    padding: 72px 24px 40px;
    background-color: var(--paper);
    /* map paper: a faint 40px grid */
    background-image:
        linear-gradient(rgba(22,34,58,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22,34,58,.045) 1px, transparent 1px);
    background-size: 40px 40px;
    border-bottom: 1px solid var(--rule);
}
.hero-map__inner { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.hero-map__kicker { font-weight: 600; color: var(--ink-3); margin-bottom: 18px; }
.hero-map__title { font-size: clamp(2.6rem, 5.4vw, 4.4rem); line-height: 1.02; max-width: 11ch; margin-bottom: 24px; }
.hero-map__lead { font-size: 1.1875rem; max-width: 46ch; }
.hero-map__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-map__figure { margin: 0; background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 18px 18px 14px; }
.hero-map__caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--rule); margin-top: 8px; padding-top: 12px; }
.hero-map__status { font-weight: 600; color: var(--ink); }
.hero-map__legend { max-width: var(--wrap); margin: 28px auto 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: .9375rem; color: var(--ink-3); }
.hero-map__legend li { display: inline-flex; align-items: center; gap: 8px; }

.swatch { display: inline-block; width: 26px; height: 6px; border-radius: 3px; }
.swatch--museums    { background: var(--orange); }
.swatch--djurgarden { background: var(--yellow); }
.swatch--gamlastan  { background: var(--green); }
.swatch--pillar { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); }
.swatch--orphan { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px dashed var(--blue); }

/* The map itself */
.tmap { width: 100%; height: auto; display: block; overflow: visible; }
.tmap__line { fill: none; stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; }
.tmap__line--museums    { stroke: var(--orange); }
.tmap__line--djurgarden { stroke: var(--yellow); }
.tmap__line--gamlastan  { stroke: var(--green); }
.tmap__stop   { fill: #fff; stroke: var(--ink); stroke-width: 3; }
.tmap__pillar { fill: #fff; stroke: var(--ink); stroke-width: 5; }
.tmap__orphan { fill: #fff; stroke: var(--blue); stroke-width: 3; stroke-dasharray: 4 3; transition: fill .3s .9s, stroke .3s .9s; }
.tmap__labels text { font: 600 13px var(--font); fill: var(--ink); paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.tmap__labels .tmap__label-pillar { font-weight: 800; font-size: 15px; }
.tmap__labels .tmap__label-orphan { fill: #2F6F96; }
.tmap__labels .tmap__note { font-weight: 400; font-size: 12px; fill: var(--ink-3); transition: opacity .3s .9s; }

/* The missing link: hidden, then drawn on Apply */
.tmap__link { fill: none; stroke: var(--orange); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round;
              stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0; transition: stroke-dashoffset .9s ease-out, opacity .1s; }
.is-linked .tmap__link   { stroke-dashoffset: 0; opacity: 1; }
.is-linked .tmap__orphan { fill: var(--blue); stroke: var(--ink); stroke-dasharray: none; }
.is-linked .tmap__note:last-of-type { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
    .tmap__link, .tmap__orphan, .tmap__labels .tmap__note { transition: none; }
}

@media (max-width: 960px) {
    .hero-map { padding-top: 48px; }
    .hero-map__inner { grid-template-columns: 1fr; gap: 32px; }
    .hero-map__title { max-width: 14ch; }
}

/* ==========================================================================
   Front page — the route (a real sequence, drawn as one line)
   ========================================================================== */
.route { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 28px; position: relative; }
.route::before { content: ""; position: absolute; left: 12px; right: 12px; top: 11px; height: 8px; border-radius: 4px; background: var(--ink); }
.route__stop { position: relative; padding-top: 52px; }
.route__stop::before { content: ""; position: absolute; top: 0; left: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--card); border: 5px solid var(--ink); }
.route__stop--end::before { background: var(--orange); }
.route__stop h3 { font-size: 1.25rem; margin-bottom: .4em; }
.route__stop p { font-size: 1rem; color: var(--ink-2); }
@media (max-width: 960px) {
    .route { grid-template-columns: 1fr; gap: 28px; padding-left: 52px; }
    .route::before { left: 11px; right: auto; top: 12px; bottom: 12px; width: 8px; height: auto; }
    .route__stop { padding-top: 0; }
    .route__stop::before { left: -52px; }
}

/* ==========================================================================
   Split block + advice example
   ========================================================================== */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split__text p { max-width: 52ch; }
.advice { background: var(--card); border: 1px solid var(--rule); border-left: 6px solid var(--orange); border-radius: var(--radius); padding: 20px 22px; }
.advice + .advice { margin-top: 16px; border-left-color: var(--yellow); }
.advice__label { font-size: .875rem; font-weight: 600; color: var(--ink-3); margin-bottom: 4px; }
.advice__title { font-weight: 800; color: var(--ink); font-size: 1.125rem; line-height: 1.3; margin-bottom: 6px; }
.advice__why { font-size: .9375rem; margin-bottom: 12px; }
.advice__go { display: inline-block; padding: 5px 12px; border-radius: 999px; border: 2px solid var(--ink); font-weight: 600; font-size: .875rem; color: var(--ink); }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* ==========================================================================
   Plans (front page) and pricing cards (pricing page)
   ========================================================================== */
.plans, .pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan, .pricing-card {
    position: relative; display: flex; flex-direction: column;
    background: var(--card); border: 1px solid var(--rule); border-top: 6px solid var(--ink-3); border-radius: var(--radius);
    padding: 28px 26px;
}
.plan--featured, .pricing-card--featured { border-top-color: var(--orange); }
.plan:nth-child(3), .pricing-card:nth-child(3) { border-top-color: var(--ink); }
.plan__name, .pricing-card__plan { font-size: 1.375rem; font-weight: 800; color: var(--ink); margin: 0 0 4px; }
.plan__price, .pricing-card__price { font-size: 2.5rem; font-weight: 800; color: var(--ink); line-height: 1.1; margin: 0 0 10px; }
.plan__price span, .pricing-card__price span { font-size: 1rem; font-weight: 400; color: var(--ink-3); }
.pricing-card__price sup { font-size: .55em; vertical-align: .6em; margin-right: 1px; }
.plan__desc, .pricing-card__desc { color: var(--ink-2); margin-bottom: 18px; }
.plan__list, .pricing-card__features { list-style: none; margin: 0 0 24px; padding: 0; flex: 1; }
.plan__list li, .pricing-card__features li { position: relative; padding: 7px 0 7px 22px; border-top: 1px solid var(--paper-2); font-size: .98rem; }
.plan__list li::before, .pricing-card__features li::before { content: ""; position: absolute; left: 0; top: 15px; width: 10px; height: 10px; border-radius: 50%; border: 2.5px solid var(--ink); background: #fff; }
.plan__cta, .pricing-card__cta { width: 100%; }
.plan--featured .plan__cta, .pricing-card--featured .pricing-card__cta { background: var(--ink); color: var(--paper); }
.pricing-card__badge { position: absolute; top: -34px; left: 0; font-size: .875rem; font-weight: 600; color: var(--orange-ink); }
.plans__more { margin: 28px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
@media (max-width: 960px) { .plans, .pricing-grid, .pricing-grid.pricing-grid--three { grid-template-columns: 1fr; max-width: 520px; } .pricing-card__badge { position: static; margin-bottom: 6px; } }

/* Pricing comparison table */
.pricing-table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); }
.pricing-table { width: 100%; border-collapse: collapse; font-size: .98rem; color: var(--ink-2); }
.pricing-table th, .pricing-table td { padding: 12px 16px; border-bottom: 1px solid var(--paper-2); text-align: center; }
.pricing-table th:first-child, .pricing-table td:first-child { text-align: left; }
.pricing-table thead th { color: var(--ink); font-weight: 800; border-bottom: 2px solid var(--ink); }
.pricing-table__featured { box-shadow: inset 0 4px 0 var(--orange); }
.pricing-table__group { background: var(--paper); font-weight: 800; color: var(--ink); text-align: left !important; }

/* FAQ */
.faq-list { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item__q { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; font-weight: 600; font-size: 1.0625rem; color: var(--ink); position: relative; }
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; border: 3px solid var(--ink); background: #fff; }
.faq-item[open] .faq-item__q::after { background: var(--orange); border-color: var(--orange); }
.faq-item__a { margin: 0 0 20px; max-width: var(--measure); }

/* ==========================================================================
   Features page
   ========================================================================== */
.hero, .hero--compact {
    padding: 72px 24px 56px; background: var(--paper); border-bottom: 1px solid var(--rule);
}
.hero__inner { max-width: var(--wrap); margin: 0 auto; }
.hero__badge { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink-3); margin-bottom: 16px; }
.hero__badge::before { content: ""; width: 28px; height: 6px; border-radius: 3px; background: var(--orange); }
.hero__title { font-size: clamp(2.2rem, 4.6vw, 3.6rem) !important; line-height: 1.05; max-width: 18ch; }
.hero__title em { font-style: normal; }
.hero__sub { font-size: 1.1875rem; max-width: var(--measure); margin-top: 16px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.feat-section { padding: 88px 24px; }
.feat-section__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.feat-section--flipped .feat-section__text { order: 2; }
.feat-section__title { font-size: clamp(1.6rem, 2.8vw, 2.2rem); max-width: 20ch; }
.feat-section__body { font-size: 1.125rem; max-width: 56ch; }
.feat-list { list-style: none; margin: 20px 0 0; padding: 0; }
.feat-list li { position: relative; padding: 6px 0 6px 24px; }
.feat-list li::before { content: ""; position: absolute; left: 0; top: 14px; width: 10px; height: 10px; border-radius: 50%; border: 2.5px solid var(--ink); background: #fff; }
.feat-media-placeholder {
    aspect-ratio: 4 / 3; border-radius: 10px; border: 2px dashed var(--rule); background: var(--card);
    display: flex; align-items: flex-end; padding: 18px;
}
.feat-media-placeholder__icon { display: none; }
.feat-media-placeholder__label { font-size: .9375rem; color: var(--ink-3); }
@media (max-width: 960px) {
    .feat-section__inner { grid-template-columns: 1fr; gap: 28px; }
    .feat-section--flipped .feat-section__text { order: 0; }
}

/* Old feature grid (still used on docs pages) */
.features-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature-card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px; }
.feature-card__icon { display: none; }
.feature-card__title { font-size: 1.125rem; }
@media (max-width: 960px) { .features-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Changelog — a timeline is a line with stations
   ========================================================================== */
.changelog-wrap { max-width: 860px; margin: 0 auto; position: relative; padding-left: 44px; }
.changelog-wrap::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 8px; border-radius: 4px; background: var(--ink); }
.cl-entry { position: relative; padding-bottom: 56px; }
.cl-entry::before { content: ""; position: absolute; left: -44px; top: 2px; width: 30px; height: 30px; border-radius: 50%; background: var(--card); border: 5px solid var(--ink); }
.cl-entry:first-child::before { background: var(--orange); }
.cl-entry__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 8px; }
.cl-entry__version { font-weight: 800; color: var(--ink); font-size: 1.125rem; }
.cl-entry__date { color: var(--ink-3); }
.cl-entry__title { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.cl-entry__list { list-style: none; margin: 16px 0 0; padding: 0; }
.cl-entry__list li { padding: 7px 0; border-top: 1px solid var(--rule); display: flex; gap: 12px; align-items: baseline; }
.cl-tag { flex-shrink: 0; font-size: .8125rem; font-weight: 600; padding: 1px 8px; border-radius: 3px; border: 1.5px solid currentColor; }
.cl-entry__meta .cl-tag { display: none; }
.cl-tag--new     { color: var(--orange-ink); }
.cl-tag--improve { color: #4F6E2A; }
.cl-tag--fix     { color: #2F6F96; }
.cl-older-placeholder { color: var(--ink-3); }

/* ==========================================================================
   Docs
   ========================================================================== */
.docs-quicklinks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.docs-ql-card { display: flex; gap: 14px; align-items: flex-start; padding: 20px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); text-decoration: none; color: var(--ink-2); }
.docs-ql-card:hover { border-color: var(--ink); }
.docs-ql-card__icon { flex-shrink: 0; width: 14px; height: 14px; margin-top: 6px; border-radius: 50%; border: 3px solid var(--ink); background: #fff; font-size: 0; overflow: hidden; }
.docs-ql-card:nth-child(3n+1) .docs-ql-card__icon { border-color: var(--orange); }
.docs-ql-card:nth-child(3n+2) .docs-ql-card__icon { border-color: #C9A21F; }
.docs-ql-card:nth-child(3n+3) .docs-ql-card__icon { border-color: #6E9447; }
.docs-ql-card__title { font-weight: 800; color: var(--ink); margin-bottom: 2px; }
.docs-ql-card__sub { font-size: .9375rem; color: var(--ink-3); }
@media (max-width: 960px) { .docs-quicklinks { grid-template-columns: 1fr; } }

.docs-index-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; }
.docs-index-section__title { font-size: 1.25rem; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.docs-index-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.docs-index-list__link { font-weight: 600; color: var(--ink); text-decoration: none; }
.docs-index-list__link:hover { color: var(--orange-ink); text-decoration: underline; }
.docs-index-list__sub { font-size: .9375rem; color: var(--ink-3); margin: 2px 0 0; }
.docs-empty-state { padding: 32px; border: 2px dashed var(--rule); border-radius: var(--radius); color: var(--ink-3); }

.docs-wrap { max-width: var(--wrap); margin: 0 auto; padding: 48px 24px 96px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; }
.docs-sidebar { position: sticky; top: 90px; align-self: start; }
.docs-sidebar__section { margin-bottom: 24px; }
.docs-sidebar__section-title { font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.docs-sidebar__nav { list-style: none; margin: 0; padding: 0 0 0 12px; border-left: 4px solid var(--rule); }
.docs-sidebar__nav a { display: block; padding: 5px 10px; color: var(--ink-2); text-decoration: none; font-size: .9375rem; margin-left: -16px; border-left: 4px solid transparent; }
.docs-sidebar__nav a:hover { color: var(--ink); border-left-color: var(--ink-3); }
.docs-sidebar__nav a.current { color: var(--ink); font-weight: 600; border-left-color: var(--orange); }

.docs-content { min-width: 0; max-width: 76ch; }
.docs-content h1 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.docs-content h2 { font-size: 1.5rem; margin-top: 2.2em; }
.docs-content h3 { font-size: 1.2rem; margin-top: 1.8em; }
.docs-content p, .docs-content li { line-height: 1.7; }
.docs-content code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; background: var(--paper-2); padding: .1em .35em; border-radius: 3px; color: var(--ink); }
.docs-content pre { background: var(--ink); color: #E6EAF2; padding: 18px 20px; border-radius: var(--radius); overflow-x: auto; font-size: .9rem; }
.docs-content pre code { background: none; color: inherit; padding: 0; }
.docs-content blockquote { margin: 1.5em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--orange); color: var(--ink); }
.docs-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; }
.docs-content th { text-align: left; padding: 10px 12px; border-bottom: 2px solid var(--ink); color: var(--ink); }
.docs-content td { padding: 10px 12px; border-bottom: 1px solid var(--rule); }
.heading-anchor { margin-left: 8px; color: var(--ink-3); text-decoration: none; opacity: 0; }
.docs-content h2:hover .heading-anchor, .docs-content h3:hover .heading-anchor { opacity: 1; }

.doc-breadcrumb { font-size: .9375rem; color: var(--ink-3); margin-bottom: 16px; }
.doc-breadcrumb a { color: var(--ink-3); }

.docs-nav-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.docs-nav-pair a { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--card); text-decoration: none; }
.docs-nav-pair a:hover { border-color: var(--ink); }
.docs-nav-pair a:last-child { text-align: right; }
.docs-nav-pair__dir { font-size: .875rem; color: var(--ink-3); }
.docs-nav-pair__title { font-weight: 600; color: var(--ink); }

.callout { display: flex; gap: 12px; padding: 14px 18px; margin: 1.5em 0; border-radius: var(--radius); background: var(--card); border: 1px solid var(--rule); border-left-width: 6px; }
.callout--info    { border-left-color: var(--blue); }
.callout--warning { border-left-color: var(--orange); }
.callout--tip     { border-left-color: var(--green); }
.callout__icon { flex-shrink: 0; }

@media (max-width: 900px) {
    .docs-wrap { grid-template-columns: 1fr; gap: 24px; }
    .docs-sidebar { position: static; }
    .docs-nav-pair { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Footer — the end of the line
   ========================================================================== */
.site-footer { background: var(--ink); color: #A9B3C4; padding: 56px 24px 40px; }
.site-footer__inner { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: start; }
.site-footer .site-logo, .site-footer .site-logo__name { color: #fff !important; }
.site-footer .site-logo__name span { color: #fff !important; }
.site-footer__brand p { color: #A9B3C4 !important; font-size: .9375rem !important; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.site-footer__links a { color: #E6EAF2; text-decoration: none; font-weight: 600; }
.site-footer__links a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--orange); }
.site-footer__copy { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; font-size: .9375rem; }
.site-footer__copy p { margin: 0; }
@media (max-width: 720px) { .site-footer__inner { grid-template-columns: 1fr; } }

/* Header nav sits right; on dark sections buttons invert */
.site-header__inner > nav { margin-left: auto; }
.site-header__inner > nav .primary-nav { margin-left: 0; }
.section--dark .btn-primary, .section--dark .btn--primary { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.section--dark .btn-primary:hover, .section--dark .btn--primary:hover { background: #fff; border-color: #fff; color: var(--ink); }
.section--dark .btn-ghost, .section--dark .btn--quiet { color: #fff; border-color: rgba(255,255,255,.6); }
.section--dark .btn-ghost:hover, .section--dark .btn--quiet:hover { border-color: #fff; color: #fff; }
.section--dark .section__body { color: #CBD2DF; }
@media (max-width: 720px) { .site-header__inner > nav { order: 3; width: 100%; margin: 0; } }

/* Small screens: the map scales down, so its labels scale up */
@media (max-width: 600px) {
    .hero-map__figure { padding: 12px 10px 12px; }
    .tmap__labels text { font-size: 24px; stroke-width: 6px; }
    .tmap__labels .tmap__label-pillar { font-size: 26px; }
    .tmap__labels .tmap__note { font-size: 20px; }
    .tmap__labels .tmap__minor { display: none; }
}

/* ==========================================================================
   Guides (1.3.0)
   ========================================================================== */
.guide { max-width: var(--wrap); margin: 0 auto; padding: 48px 24px 96px; }
.guide__article { margin: 0 auto; max-width: 72ch; }
.guide__article h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; }
.guide__lead, .guide__lead p { font-size: 1.25rem; color: var(--ink); line-height: 1.5; }
.guide__article ul, .guide__article ol { padding-left: 1.3em; }
.guide__article li { margin-bottom: .35em; }

/* "In Clusterlane": the plugin's part, set apart from the advice */
.iq-note { margin: 1.8em 0; padding: 16px 20px 16px 22px; background: var(--card); border: 1px solid var(--rule); border-left: 6px solid var(--orange); border-radius: var(--radius); }
.iq-note__title { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); margin: 0 0 6px; }
.iq-note__title::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--ink); background: #fff; flex-shrink: 0; }
.iq-note p:last-child { margin-bottom: 0; }

.guide-related { margin-top: 56px; padding-top: 24px; border-top: 2px solid var(--ink); }
.guide-related__back { font-weight: 600; }
.guide-related__title { font-size: 1.25rem; margin-top: 12px; }
.guide-related ul { list-style: none; padding: 0; margin: 0; }
.guide-related li { position: relative; padding: 6px 0 6px 24px; }
.guide-related li::before { content: ""; position: absolute; left: 0; top: 13px; width: 10px; height: 10px; border-radius: 50%; border: 2.5px solid var(--ink); background: #fff; }

/* Guides index: the pillar as the interchange, supports as a line */
.guides-index { max-width: 860px; }
.guide-pillar { display: grid; gap: 6px; padding: 26px 28px; margin-bottom: 40px; background: var(--card); border: 1px solid var(--rule); border-top: 6px solid var(--orange); border-radius: var(--radius); text-decoration: none; color: var(--ink-2); }
.guide-pillar:hover { border-color: var(--ink); border-top-color: var(--orange); }
.guide-pillar__role { font-weight: 600; color: var(--orange-ink); }
.guide-pillar__title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: var(--ink); line-height: 1.15; }
.guide-line { list-style: none; margin: 0; padding: 0 0 0 44px; position: relative; }
.guide-line::before { content: ""; position: absolute; left: 11px; top: 10px; bottom: 10px; width: 8px; border-radius: 4px; background: var(--orange); }
.guide-line__stop { position: relative; padding-bottom: 28px; }
.guide-line__stop::before { content: ""; position: absolute; left: -44px; top: 2px; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 5px solid var(--ink); }
.guide-line__stop a { font-size: 1.25rem; font-weight: 800; color: var(--ink); text-decoration: none; }
.guide-line__stop a:hover { text-decoration: underline; text-decoration-color: var(--orange); }
.guide-line__stop p { margin: 4px 0 0; color: var(--ink-3); }

/* Features: real screenshots, framed like a sheet on the map table */
.feat-shot { margin: 0; }
.feat-shot img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--rule); background: var(--card); box-shadow: 0 1px 2px rgba(22,34,58,.06), 0 12px 32px rgba(22,34,58,.10); }

/* Gap Analysis example (illustrative, no screenshot yet) */
.gap-mock { background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 20px; display: grid; gap: 12px; }
.gap-mock__label { margin: 0; font-size: .9375rem; font-weight: 600; color: var(--ink-3); }
.gap-mock__item { display: grid; gap: 4px; padding: 14px 16px; border-left: 6px solid var(--green); background: var(--paper); border-radius: var(--radius); }
.gap-mock__item strong { color: var(--ink); }
.gap-mock__item span { font-size: .9375rem; }
.gap-mock__item em { justify-self: start; margin-top: 4px; font-style: normal; font-weight: 600; font-size: .875rem; padding: 3px 10px; border: 2px solid var(--ink); border-radius: 999px; color: var(--ink); }

/* Zoomable screenshots */
a.zoom { position: relative; display: block; cursor: zoom-in; border-radius: 10px; }
a.zoom img { transition: transform .2s ease; }
.zoom__hint { position: absolute; right: 12px; bottom: 12px; padding: 5px 10px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: .8125rem; font-weight: 600; opacity: 0; transition: opacity .15s; pointer-events: none; }
a.zoom:hover .zoom__hint, a.zoom:focus-visible .zoom__hint { opacity: 1; }
@media (hover: none) { .zoom__hint { opacity: .9; } }
.zoom-dialog { border: 0; padding: 0; max-width: min(96vw, 1600px); max-height: 94vh; background: transparent; overflow: visible; }
.zoom-dialog::backdrop { background: rgba(22,34,58,.82); }
.zoom-dialog img { display: block; max-width: min(96vw, 1600px); max-height: 86vh; width: auto; height: auto; border-radius: 8px; background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.zoom-dialog__caption { margin: 10px 0 0; color: #E6EAF2; font-size: .9375rem; max-width: 80ch; }
.zoom-dialog__close { position: absolute; top: -44px; right: 0; min-height: 36px; padding: 0 14px; border-radius: var(--radius); border: 2px solid #fff; background: transparent; color: #fff; font: 600 .9375rem var(--font); cursor: pointer; }
.zoom-dialog__close:hover { background: #fff; color: var(--ink); }

/* Front page: the real cluster graph, large */
.real-graph__figure { margin: 0; }
.real-graph__figure img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--rule); background: #fff; box-shadow: 0 1px 2px rgba(22,34,58,.06), 0 18px 48px rgba(22,34,58,.14); }
.real-graph__notes { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 32px; }
.real-graph__notes li { display: flex; gap: 12px; align-items: flex-start; font-size: .98rem; }
.real-graph__notes .swatch { flex-shrink: 0; margin-top: 9px; }
.swatch--ink { background: var(--ink); height: 3px; }
@media (max-width: 900px) { .real-graph__notes { grid-template-columns: 1fr; } }

/* ==========================================================================
   1.5.0 — four plans, launch status, Report and "works with" on Features
   ========================================================================== */
.plans--four, .pricing-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.plans--four .plan, .pricing-grid--four .pricing-card { padding: 26px 22px; }
.plans--four .plan:nth-child(3), .pricing-grid--four .pricing-card:nth-child(3) { border-top-color: var(--yellow); }
.plans--four .plan:nth-child(4), .pricing-grid--four .pricing-card:nth-child(4) { border-top-color: var(--ink); }
.plan__sites, .pricing-card__sites { margin: 0 0 10px; font-size: .9375rem; font-weight: 600; color: var(--ink-3); }
.plan__was, .pricing-card__was { font-size: 1.125rem; font-weight: 600; color: var(--ink-3); text-decoration-thickness: 2px; text-decoration-color: var(--orange); margin-left: 4px; }
.pricing-grid__note { margin: 26px 0 0; color: var(--ink-3); font-size: .9375rem; }
.guarantee { color: var(--ink); font-weight: 600; }
.guarantee::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--green); vertical-align: 1px; }
@media (max-width: 1100px) {
    .plans--four, .pricing-grid--four, .pricing-grid.pricing-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; }
    .pricing-grid--four .pricing-card__badge { position: static; margin-bottom: 6px; }
}
@media (max-width: 640px) {
    .plans--four, .pricing-grid--four, .pricing-grid.pricing-grid--four { grid-template-columns: 1fr; max-width: 520px; }
}

/* Buttons that will work at launch: "Coming soon" until then */
.is-soon { cursor: default; border-style: dashed !important; border-color: var(--ink-3) !important; background: transparent !important; color: var(--ink-3) !important; }
.is-soon:hover { color: var(--ink-3) !important; }

.launch-bar { background: var(--ink); color: #DCE2EC; font-size: .9375rem; }
.launch-bar__inner { max-width: var(--wrap); margin: 0 auto; padding: 9px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.launch-bar strong { color: #fff; }
.launch-bar a { color: #fff; font-weight: 600; text-decoration-color: var(--orange); }
.launch-bar a:hover { color: var(--yellow); }
.launch-bar__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(231,108,46,.25); flex-shrink: 0; }
@media (prefers-reduced-motion: no-preference) {
    .launch-bar__dot { animation: launch-pulse 2.4s ease-in-out infinite; }
    @keyframes launch-pulse { 50% { box-shadow: 0 0 0 7px rgba(231,108,46,.08); } }
}
.launch-note { background: var(--paper-2); padding: 36px 24px 0; }
.launch-note__inner { max-width: var(--wrap); margin: 0 auto; padding: 14px 18px; font-size: 1.0625rem; color: var(--ink-2); background: var(--card); border: 1px solid var(--rule); border-left: 6px solid var(--orange); border-radius: var(--radius); }
.launch-note__inner strong { color: var(--orange-ink); }
.launch-note + .section--mist { padding-top: 56px; }

/* Report example (Features) */
.report-mock { background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 20px; display: grid; gap: 14px; }
.report-mock__label { margin: 0; font-size: .9375rem; font-weight: 600; color: var(--ink-3); }
.report-mock__kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.report-mock__kpis div { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--radius); background: var(--ink); color: #B9C2D3; }
.report-mock__kpis span { font-size: .8125rem; }
.report-mock__kpis strong { font-size: 1.6rem; font-weight: 800; color: #fff; line-height: 1.1; }
.report-mock__kpis em { font-style: normal; font-size: .8125rem; }
.report-mock em.is-up { color: #7ED39A; font-weight: 600; }
.report-mock__chart { width: 100%; height: 80px; background: var(--paper); border-radius: var(--radius); }
.report-mock__chart path { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.report-mock__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.report-mock__rows li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 42px 34px; align-items: center; gap: 10px; font-size: .9375rem; }
.report-mock__rows b { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report-mock__rows i { height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--orange) 0 8%, var(--yellow) 8% var(--w), var(--paper-2) var(--w)); }
.report-mock__rows span { font-weight: 700; color: var(--ink); text-align: right; }
.report-mock__rows em { font-style: normal; text-align: right; }
.report-mock__rows em.is-up { color: #3F7A22; }
@media (max-width: 520px) { .report-mock__kpis { grid-template-columns: 1fr; } }

/* "Works with your site" (Features) */
.compat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.compat-grid li { display: grid; gap: 6px; align-content: start; padding: 20px 22px; background: var(--card); border: 1px solid var(--rule); border-left: 6px solid var(--green); border-radius: var(--radius); }
.compat-grid li:nth-child(3n+2) { border-left-color: var(--yellow); }
.compat-grid li:nth-child(3n) { border-left-color: var(--blue); }
.compat-grid strong { color: var(--ink); font-size: 1.125rem; }
.compat-grid span { font-size: .98rem; }
@media (max-width: 960px) { .compat-grid { grid-template-columns: 1fr; } }
.pricing-table th:not(:first-child), .pricing-table td:not(:first-child) { white-space: nowrap; }
@media (max-width: 640px) { .launch-bar__dot { display: none; } .launch-bar__inner { padding: 9px 16px; } }
/* Phones: the five menu items on one line where they fit, wrapping (never cut off) where they don't */
@media (max-width: 480px) {
    .site-header__inner { padding: 12px 16px; }
    .primary-nav { gap: 2px 14px; }
    .primary-nav a { font-size: .9375rem; }
}
