/* ==========================================================================
   FeaturedLane - design system
   --------------------------------------------------------------------------
   Palette      indigo/violet brand on a cool neutral gray ramp. White page,
                light-grey bands for structure. Emerald reads "live", amber
                "staff pick", rose for errors. One accent hue, used sparingly,
                so a primary action is always the brightest thing on screen.
   Type         Plus Jakarta Sans for headings, Inter for everything else,
                JetBrains Mono for code. Sentence case throughout - uppercase
                is reserved for small labels, never for headlines.
   Depth        hairline borders plus layered, low-opacity shadows. Nothing is
                outlined in black; nothing jumps on hover.
   ========================================================================== */

:root {
    /* Brand: indigo-violet. 950 doubles as the dark surface colour. */
    --brand-25:  #F7F8FF;
    --brand-50:  #EEF2FF;
    --brand-100: #E0E7FF;
    --brand-200: #C7D2FE;
    --brand-300: #A5B4FC;
    --brand-400: #818CF8;
    --brand-500: #6366F1;
    --brand-600: #4F46E5;
    --brand-700: #4338CA;
    --brand-800: #3730A3;
    --brand-900: #312E81;
    --brand-950: #1E1B4B;

    /* Cool neutrals */
    --gray-25:  #FCFCFD;
    --gray-50:  #F9FAFB;
    --gray-100: #F2F4F7;
    --gray-200: #EAECF0;
    --gray-300: #D0D5DD;
    --gray-400: #98A2B3;
    --gray-500: #667085;
    --gray-600: #475467;
    --gray-700: #344054;
    --gray-800: #1D2939;
    --gray-900: #101828;

    /* Semantic */
    --success:    #067647;
    --success-bg: #ECFDF3;
    --success-bd: #ABEFC6;
    --warn:       #B54708;
    --warn-bg:    #FFFAEB;
    --warn-bd:    #FEDF89;
    --danger:     #B42318;
    --danger-bg:  #FEF3F2;
    --danger-bd:  #FECDCA;

    /* Aliases, so older rules and inline styles keep resolving. */
    --ink:        var(--gray-900);
    --ink-2:      var(--gray-800);
    --ink-3:      var(--brand-600);
    --flare:      var(--brand-600);
    --flare-dark: var(--brand-700);
    --sea:        var(--success);
    --sun:        var(--warn);
    --paper:      #FFFFFF;
    --mist:       var(--gray-50);
    --line:       var(--gray-200);
    --line-2:     var(--gray-100);
    --muted:      var(--gray-500);
    --body:       var(--gray-600);

    /* Type */
    --display: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --t-xs: 0.75rem;
    --t-sm: 0.8125rem;
    --t-base: 0.9375rem;
    --t-md: 1.0625rem;
    --t-lg: 1.25rem;
    --t-xl: 1.5rem;
    --t-2xl: 2rem;
    --t-3xl: 2.75rem;

    /* Shape */
    --gap: 1.5rem;
    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-pill: 999px;
    --wrap: 1280px;

    /* Depth */
    --shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
    --shadow-sm: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04);
    --shadow-md: 0 4px 8px -2px rgba(16, 24, 40, .08), 0 2px 4px -2px rgba(16, 24, 40, .04);
    --shadow-lg: 0 12px 16px -4px rgba(16, 24, 40, .07), 0 4px 6px -2px rgba(16, 24, 40, .03);
    --shadow-xl: 0 24px 32px -8px rgba(16, 24, 40, .10), 0 8px 12px -6px rgba(16, 24, 40, .04);
    --ring: 0 0 0 4px rgba(79, 70, 229, .16);
    --shadow: var(--shadow-xs);
    --shadow-lift: var(--shadow-md);
}

/* --------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }

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

/* The masthead is sticky, so anchor targets stop below it, not under it. */
:target { scroll-margin-top: 88px; }

/* The page sits on light grey and every surface that holds content - cards,
   panels, the ledger, the footer - is white on top of it. That separation is
   what gives the page depth; pure white on pure white reads as unstyled. */
body {
    margin: 0;
    background: var(--gray-50);
    color: var(--gray-600);
    font-family: var(--ui);
    font-size: var(--t-base);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "cv11", "ss01";
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
    font-family: var(--display);
    color: var(--gray-900);
    line-height: 1.2;
    margin: 0 0 .5em;
    font-weight: 700;
    letter-spacing: -0.021em;
}

h1 { font-size: var(--t-3xl); letter-spacing: -0.032em; line-height: 1.12; }
h2 { font-size: var(--t-xl); letter-spacing: -0.026em; }
h3 { font-size: var(--t-lg); }
h4 { font-size: var(--t-md); font-weight: 600; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-600); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--brand-700); }

img { max-width: 100%; height: auto; }

hr { border: 0; border-top: 1px solid var(--gray-200); margin: 2.5rem 0; }

small { font-size: var(--t-sm); }

code, pre { font-family: var(--mono); font-size: .875em; }

::selection { background: var(--brand-100); color: var(--brand-900); }

:focus-visible {
    outline: 2px solid var(--brand-600);
    outline-offset: 2px;
    border-radius: var(--radius-xs);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--brand-600);
    color: #fff;
    padding: .75rem 1.25rem;
    border-radius: 0 0 var(--radius-sm) 0;
    z-index: 100;
    font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

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

.masthead {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .85);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--gray-200);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .masthead { background: #fff; }
}

/* No blanket `.masthead a` rule: it outranks .btn/.brand on specificity and
   would repaint the submit button and the wordmark. Each element colours
   itself instead. */

.masthead-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-height: 68px;
    padding-top: .65rem;
    padding-bottom: .65rem;
    flex-wrap: wrap;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-family: var(--display);
    font-size: 1.1875rem;
    font-weight: 800;
    letter-spacing: -0.032em;
    color: var(--gray-900);
    flex: 0 0 auto;
}
.brand:hover { color: var(--gray-900); }
.brand-mark { flex: 0 0 auto; display: block; }

.brand-logo { flex: 0 0 auto; display: block; height: 30px; width: auto; }

@media (max-width: 560px) { .brand-logo { height: 26px; } }

.nav {
    display: flex;
    align-items: center;
    gap: .15rem;
    flex: 1 1 auto;
    flex-wrap: wrap;
}

.nav a {
    padding: .45rem .7rem;
    border-radius: var(--radius-xs);
    font-size: var(--t-base);
    font-weight: 500;
    color: var(--gray-600);
    white-space: nowrap;
    transition: color .15s ease, background .15s ease;
}
.nav a:hover { color: var(--gray-900); background: var(--gray-100); }
.nav a[aria-current="page"] { color: var(--brand-700); font-weight: 600; background: var(--brand-50); }

.masthead-tools {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex: 0 0 auto;
}

.searchbox { position: relative; }
.searchbox input[type="search"] {
    -webkit-appearance: none;
    appearance: none;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    color: var(--gray-900);
    border-radius: var(--radius-sm);
    padding: .5rem .9rem .5rem 2.55rem;
    font: inherit;
    font-size: var(--t-sm);
    width: 200px;
    box-shadow: none;
    transition: width .2s ease, border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.searchbox input[type="search"]::placeholder { color: var(--gray-500); }
.searchbox input[type="search"]:focus {
    width: 248px;
    background: #fff;
    border-color: var(--brand-400);
    box-shadow: var(--ring);
    outline: none;
}
.searchbox svg {
    position: absolute; left: .8rem; top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    pointer-events: none;
}
.searchbox input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }

.avatar-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    border-radius: var(--radius-pill);
    background: var(--brand-600);
    border: 1px solid var(--brand-600);
    font-size: var(--t-sm);
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
    transition: background .15s ease, box-shadow .15s ease;
}
.avatar-link:hover { background: var(--brand-700); border-color: var(--brand-700); color: #fff; box-shadow: var(--ring); }

/* ------------------------------------------------------------ buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    font-family: var(--ui);
    font-weight: 600;
    font-size: var(--t-base);
    line-height: 1.25;
    padding: .625rem 1.1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--brand-600);
    background: var(--brand-600);
    color: #fff;
    cursor: pointer;
    box-shadow: var(--shadow-xs);
    transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
    text-align: center;
    white-space: nowrap;
}
.btn:hover { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.btn:focus-visible { outline: none; box-shadow: var(--shadow-xs), var(--ring); }

.btn-ghost {
    background: #fff;
    border-color: var(--gray-300);
    color: var(--gray-700);
}
.btn-ghost:hover { background: var(--gray-50); border-color: var(--gray-300); color: var(--gray-900); }

.btn-ink { background: var(--gray-900); border-color: var(--gray-900); color: #fff; }
.btn-ink:hover { background: var(--gray-800); border-color: var(--gray-800); color: #fff; }

.btn-sea { background: var(--success); border-color: var(--success); color: #fff; }
.btn-sea:hover { background: #055C38; border-color: #055C38; color: #fff; }

.btn-quiet {
    background: transparent;
    color: var(--gray-600);
    border-color: transparent;
    box-shadow: none;
    padding: .45rem .7rem;
    font-size: var(--t-sm);
}
.btn-quiet:hover { background: var(--gray-100); color: var(--gray-900); border-color: transparent; }

.btn-danger { background: #fff; border-color: var(--danger-bd); color: var(--danger); }
.btn-danger:hover { background: var(--danger-bg); border-color: var(--danger); color: var(--danger); }

.btn-sm { padding: .45rem .8rem; font-size: var(--t-sm); border-radius: var(--radius-xs); }
.btn-lg { padding: .8rem 1.5rem; font-size: var(--t-md); }
.btn-block { display: flex; width: 100%; }

/* -------------------------------------------------------- page shells */

.layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 344px;
    gap: 2.5rem;
    align-items: start;
    padding-top: 2.5rem;
    padding-bottom: 4rem;
}

.rail { position: sticky; top: 90px; }

.page { padding-top: 2.5rem; padding-bottom: 4rem; }
.page-narrow { max-width: 760px; }
.page-wide { max-width: 1080px; }
.page-wide .lede { max-width: 68ch; }
.page-wide .lede-tight { max-width: none; }

/* ----------------------------------------------------------- chips, tags */

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.tag-cloud { display: flex; flex-wrap: wrap; gap: .4rem; }

.tag {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .7rem;
    border-radius: var(--radius-pill);
    background: #fff;
    border: 1px solid var(--gray-200);
    font-size: var(--t-sm);
    font-weight: 500;
    color: var(--gray-700);
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.tag:hover { background: var(--brand-50); border-color: var(--brand-200); color: var(--brand-700); }
.tag-count { color: var(--gray-500); font-size: var(--t-xs); font-variant-numeric: tabular-nums; }
.tag:hover .tag-count { color: var(--brand-500); }

/* "required" tag beside a field label. */
.req {
    display: inline-block;
    margin-left: .4rem;
    padding: .05rem .45rem;
    border-radius: var(--radius-pill);
    background: var(--danger-bg);
    color: var(--danger);
    font-family: var(--ui);
    font-size: var(--t-xs);
    font-weight: 600;
    vertical-align: middle;
}

/* --------------------------------------------------------------- panels */

.panel {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-xs);
}

.panel-tint { background: var(--gray-100); box-shadow: none; }

.panel-title {
    font-family: var(--ui);
    font-size: var(--t-xs);
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: .65rem;
}
.panel-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

/* ------------------------------------------------- section headings */

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.section-head h1, .section-head h2 { margin: 0; letter-spacing: -0.028em; }
.section-head p { margin: .4rem 0 0; color: var(--gray-500); font-size: var(--t-sm); }

.eyebrow {
    display: inline-block;
    font-size: var(--t-xs);
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--brand-600);
    margin-bottom: .5rem;
}

.lede { font-size: var(--t-md); color: var(--gray-600); line-height: 1.6; }

/* =====================================================================
   SIGNATURE: the ledger row
   One rounded, hairlined block holding the whole list. Each row is a grid
   split by a divider, with a tabular rank numeral in its own gutter. The
   top three carry the brand colour; nothing else is tinted.
   ===================================================================== */

.pass-list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
}

.pass {
    position: relative;
    display: grid;
    grid-template-columns: 58px 1fr;
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    transition: background .15s ease;
}
.pass:last-child { border-bottom: 0; }
.pass:hover { background: var(--gray-50); }

.pass-stub {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--gray-200);
    background: var(--gray-25);
}

.pass-rank {
    font-family: var(--ui);
    font-size: var(--t-md);
    font-weight: 600;
    color: var(--gray-500);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.pass:nth-child(1) .pass-stub { background: var(--brand-50); border-right-color: var(--brand-100); }
.pass:nth-child(1) .pass-rank,
.pass:nth-child(2) .pass-rank,
.pass:nth-child(3) .pass-rank { color: var(--brand-600); font-weight: 700; }

.pass-body {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.15rem 1.25rem;
    min-width: 0;
}

.pass-logo {
    flex: 0 0 auto;
    width: 52px; height: 52px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    background: #fff;
    object-fit: contain;
    padding: 6px;
    box-shadow: var(--shadow-xs);
}

.pass-logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-600);
    background: var(--brand-50);
    border-color: var(--brand-100);
    text-transform: uppercase;
}

.pass-main { min-width: 0; flex: 1 1 auto; }

.pass-title {
    font-family: var(--display);
    font-size: var(--t-md);
    font-weight: 700;
    letter-spacing: -0.018em;
    color: var(--gray-900);
    margin: 0 0 .25rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    overflow-wrap: anywhere;
}
.pass-title a { color: inherit; }
.pass-title a:hover { color: var(--brand-600); }

.pass-desc {
    margin: 0;
    color: var(--gray-500);
    font-size: var(--t-base);
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.pass-meta {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin-top: .7rem;
    font-size: var(--t-sm);
    color: var(--gray-500);
    flex-wrap: wrap;
}
.pass-meta a { color: var(--gray-500); font-weight: 500; }
.pass-meta a:hover { color: var(--brand-600); }

.pass-vote {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .1rem;
    min-width: 62px;
    padding: .5rem .35rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--gray-900);
    font-weight: 600;
    font-size: var(--t-md);
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
    cursor: pointer;
    font-family: var(--ui);
    box-shadow: var(--shadow-xs);
    transition: border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}
.pass-vote span { font-size: var(--t-xs); font-weight: 500; color: var(--gray-500); }
.pass-vote:hover { border-color: var(--brand-300); background: var(--brand-25); color: var(--brand-700); }
.pass-vote:hover span { color: var(--brand-500); }
.pass-vote.is-voted { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.pass-vote.is-voted span { color: rgba(255, 255, 255, .72); }
.pass-vote.is-voted:hover { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.pass-vote svg { display: block; }

/* --------------------------------------------------------- status badges */

.stamp {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-family: var(--ui);
    font-size: var(--t-xs);
    font-weight: 500;
    letter-spacing: 0;
    padding: .125rem .55rem;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    white-space: nowrap;
    line-height: 1.5;
}

.stamp-live      { color: var(--success); background: var(--success-bg); border-color: var(--success-bd); }
.stamp-scheduled { color: var(--warn);    background: var(--warn-bg);    border-color: var(--warn-bd); }
.stamp-review    { color: #C4320A;        background: #FFF6ED;           border-color: #F9DBAF; }
.stamp-draft     { color: var(--gray-600); background: var(--gray-50);    border-color: var(--gray-200); }
.stamp-rejected  { color: var(--danger);  background: var(--danger-bg);  border-color: var(--danger-bd); }
.stamp-featured  { color: var(--warn);    background: var(--warn-bg);    border-color: var(--warn-bd); }
.stamp-count     { color: var(--brand-700); background: var(--brand-50); border-color: var(--brand-200); }
.stamp-verified  { color: var(--brand-700); background: var(--brand-50); border-color: var(--brand-200); }
.stamp-premium   { color: var(--brand-700); background: var(--brand-50); border-color: var(--brand-200); }

/* The hero-state pill - used once per page. */
.stamp-large {
    font-size: var(--t-sm);
    font-weight: 600;
    padding: .3rem .75rem;
}

/* ---------------------------------------------------------- rail lists */

.rail-list { list-style: none; margin: 0; padding: 0; }

.rail-item {
    display: flex;
    gap: .7rem;
    align-items: center;
    padding: .65rem 0;
    border-bottom: 1px solid var(--gray-100);
}
.rail-item:last-child { border-bottom: 0; padding-bottom: 0; }

.rail-index {
    flex: 0 0 auto;
    width: 20px;
    font-family: var(--ui);
    font-weight: 600;
    color: var(--brand-600);
    font-size: var(--t-sm);
    font-variant-numeric: tabular-nums;
}

.rail-logo {
    flex: 0 0 auto;
    width: 32px; height: 32px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
    background: #fff;
    object-fit: contain;
    padding: 3px;
}

.rail-body { min-width: 0; }
.rail-name {
    display: block;
    font-weight: 600;
    color: var(--gray-900);
    font-size: var(--t-sm);
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.rail-name:hover { color: var(--brand-600); }
.rail-note { font-size: var(--t-xs); color: var(--gray-500); }

/* ------------------------------------------------------------ CTA card */

.cta-card {
    background:
        radial-gradient(120% 120% at 100% 0%, rgba(129, 140, 248, .35) 0%, rgba(129, 140, 248, 0) 55%),
        linear-gradient(160deg, var(--brand-800) 0%, var(--brand-950) 100%);
    color: var(--brand-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.cta-card h3 { color: #fff; font-size: var(--t-lg); margin-bottom: .45rem; }
.cta-card p { font-size: var(--t-sm); color: rgba(224, 231, 255, .8); line-height: 1.6; }
.cta-card .btn {
    margin-top: 1rem;
    background: #fff;
    border-color: #fff;
    color: var(--brand-800);
}
.cta-card .btn:hover { background: var(--brand-50); border-color: var(--brand-50); color: var(--brand-900); }
.cta-card::after {
    content: "";
    position: absolute;
    right: -70px; bottom: -70px;
    width: 180px; height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(165, 180, 252, .22) 0%, rgba(165, 180, 252, 0) 70%);
    pointer-events: none;
}

/* ---------------------------------------------------------------- cards */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.25rem;
}

.card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.35rem;
    box-shadow: var(--shadow-xs);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.card:hover { border-color: var(--gray-300); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card h3 { font-size: var(--t-md); margin-bottom: .4rem; overflow-wrap: anywhere; }
.card h3 a { color: inherit; }
.card h3 a:hover { color: var(--brand-600); }
.card p { color: var(--gray-500); font-size: var(--t-sm); margin: 0; }
.card-foot {
    margin-top: auto;
    padding-top: 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: var(--t-xs);
    color: var(--gray-500);
    flex-wrap: wrap;
}

.card-cover {
    display: block;
    aspect-ratio: 16 / 9;
    width: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
    background: var(--gray-100);
    margin-bottom: 1rem;
}

/* ----------------------------------------------------------- blog pages */

.blog-index-page { padding-top: 2rem; }

.blog-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 2rem;
    align-items: stretch;
    padding: 2rem;
    margin-bottom: 2rem;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.blog-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 680px;
}

.blog-hero-copy h1 {
    max-width: 11ch;
    margin: 0;
    font-size: var(--t-3xl);
    line-height: 1.02;
    letter-spacing: -0.028em;
}

.blog-hero-copy p {
    max-width: 620px;
    margin: 1rem 0 0;
    color: var(--gray-600);
    font-size: var(--t-md);
    line-height: 1.65;
}

.blog-topic-row {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: 1.35rem;
}

.blog-topic-row span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: .35rem .7rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    color: var(--gray-700);
    background: var(--gray-50);
    font-size: var(--t-xs);
    font-weight: 600;
}

.blog-featured-card,
.blog-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
}

.blog-featured-card {
    min-height: 100%;
    padding: 1.35rem;
    justify-content: flex-end;
    background: var(--gray-50);
}

.blog-featured-label {
    margin-bottom: auto;
    color: var(--brand-700);
    font-size: var(--t-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.blog-featured-card h2,
.blog-card h3 {
    margin: .8rem 0 .55rem;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
}

.blog-featured-card h2 { font-size: var(--t-xl); line-height: 1.15; }
.blog-featured-card a,
.blog-card a { color: inherit; }
.blog-featured-card a:hover,
.blog-card a:hover { color: var(--brand-600); }

.blog-featured-card p,
.blog-card p {
    margin: 0;
    color: var(--gray-600);
    line-height: 1.65;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.blog-card {
    padding: 1.35rem;
    min-height: 260px;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.blog-card:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.blog-card h3 {
    font-size: var(--t-lg);
    line-height: 1.2;
}

.blog-post-page { padding-top: 2rem; }

.blog-post-shell {
    display: grid;
    grid-template-columns: minmax(0, 760px) 300px;
    gap: 3rem;
    align-items: start;
}

.blog-article {
    max-width: 760px;
}

.blog-article-header {
    padding-bottom: 1.5rem;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid var(--gray-200);
}

.blog-article-header h1 {
    max-width: 780px;
    margin: 0;
    font-size: var(--t-3xl);
    line-height: 1.08;
    letter-spacing: -0.028em;
}

.blog-article-meta {
    margin: .8rem 0 0;
    color: var(--gray-500);
    font-size: var(--t-sm);
}

.blog-article .prose {
    color: var(--gray-700);
}

.blog-article .prose > p:first-child {
    font-size: var(--t-lg);
    line-height: 1.65;
    color: var(--gray-800);
}

.blog-post-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 1.5rem;
    margin-top: 2rem;
    border-top: 1px solid var(--line);
}

.blog-rail {
    top: 96px;
}

/* --------------------------------------------------------- contact page */

.contact-page { padding-top: 2rem; }

.contact-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 2rem;
    align-items: stretch;
    margin-bottom: 2rem;
    padding: 2rem;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.contact-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 680px;
}

.contact-copy h1 {
    max-width: 12ch;
    margin: 0;
    font-size: var(--t-3xl);
    line-height: 1.04;
    letter-spacing: -0.028em;
}

.contact-copy p {
    max-width: 640px;
    margin: 1rem 0 0;
    color: var(--gray-600);
    font-size: var(--t-md);
    line-height: 1.65;
}

.contact-route-list {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: 1.35rem;
}

.contact-route-list span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: .35rem .7rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--gray-50);
    color: var(--gray-700);
    font-size: var(--t-xs);
    font-weight: 600;
}

.contact-service-card,
.contact-form-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
}

.contact-service-card {
    padding: 1.35rem;
    background: var(--gray-50);
}

.contact-service-card h2,
.contact-note h2 {
    margin: 0 0 1rem;
    font-size: var(--t-lg);
    letter-spacing: -0.02em;
}

.contact-shell {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.contact-note {
    position: sticky;
    top: 96px;
    color: var(--gray-600);
    line-height: 1.65;
}

.contact-note p { margin: 0 0 1rem; }

.contact-form-card {
    padding: 1.35rem;
}

/* -------------------------------------------------------- listing page */

.listing-detail-page { padding-top: 2rem; }

.listing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 2rem;
    align-items: stretch;
    padding: 1.65rem;
    margin-bottom: 2rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(247, 249, 252, .96)),
        #fff;
    box-shadow: var(--shadow-sm);
}

.listing-hero-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.listing-identity {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.listing-kicker {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    min-width: 0;
    color: var(--gray-500);
    font-size: var(--t-sm);
    font-weight: 500;
}

.listing-hero h1 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.04;
    margin: 0 0 .85rem;
    overflow-wrap: anywhere;
}

.listing-lede {
    max-width: 68ch;
    margin: 0;
    color: var(--gray-600);
    font-size: var(--t-lg);
    line-height: 1.65;
}

.listing-tagline {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: 1.35rem;
}

.listing-action-card {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    min-width: 0;
    padding: 1.1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-xs);
}

.action-card-label {
    color: var(--gray-500);
    font-size: var(--t-xs);
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.action-card-domain {
    margin-top: .35rem;
    color: var(--gray-900);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.listing-action-card .listing-actions {
    display: grid;
    gap: .55rem;
    margin-top: 1rem;
}

.listing-action-card .listing-actions form { margin: 0; }
.listing-action-card .btn-block { justify-content: center; }

.listing-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .55rem;
    margin: auto 0 0;
    padding-top: 1rem;
}

.listing-stats div {
    min-width: 0;
    padding: .7rem .55rem;
    border-radius: var(--radius-xs);
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
}

.listing-stats dt {
    color: var(--gray-500);
    font-size: var(--t-xs);
    font-weight: 600;
}

.listing-stats dd {
    margin: .2rem 0 0;
    color: var(--gray-900);
    font-size: var(--t-sm);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.listing-head {
    display: flex;
    gap: 1.75rem;
    align-items: flex-start;
    flex-wrap: wrap;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 2rem;
}

.listing-logo {
    width: 88px; height: 88px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    background: #fff;
    object-fit: contain;
    padding: 10px;
    flex: 0 0 auto;
    box-shadow: var(--shadow-sm);
}

.listing-headline { flex: 1 1 320px; min-width: 0; }
.listing-headline h1 {
    font-size: var(--t-2xl);
    margin-bottom: .5rem;
    overflow-wrap: anywhere;
}
.listing-headline .lede { color: var(--gray-500); margin-bottom: 1.1rem; }

.listing-actions { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }

.listing-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 3rem;
    align-items: start;
}

.listing-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.listing-section {
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-200);
}

.listing-section:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.listing-section > h2,
.listing-section-head h2 {
    font-size: var(--t-xl);
    margin: 0 0 .9rem;
}

.listing-section-head { margin-bottom: 1rem; }

.listing-insight-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

.listing-insight {
    min-width: 0;
    padding: 1.1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-xs);
}

.listing-insight h3 {
    font-size: var(--t-md);
    margin: 0 0 .85rem;
}

.listing-insight .feature-list {
    margin-bottom: 0;
    color: var(--gray-700);
}

.listing-detail-panel + .listing-detail-panel,
.listing-owner-card + .listing-detail-panel,
.listing-detail-panel + .listing-owner-card {
    margin-top: 1rem;
}

.prose { font-size: var(--t-md); color: var(--gray-600); line-height: 1.75; }
.prose p { margin-bottom: 1.15em; }
.prose h2 { font-size: var(--t-xl); margin-top: 1.9em; }
.prose h3 { font-size: var(--t-lg); margin-top: 1.7em; }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1.15em; }
.prose li { margin-bottom: .45em; }
.prose blockquote {
    margin: 1.75em 0;
    padding: .25rem 0 .25rem 1.35rem;
    border-left: 3px solid var(--brand-300);
    color: var(--gray-800);
    font-family: var(--display);
    font-size: var(--t-lg);
    line-height: 1.5;
    letter-spacing: -0.015em;
}
.prose a { color: var(--brand-600); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: var(--brand-200); }
.prose a:hover { color: var(--brand-700); text-decoration-color: var(--brand-400); }
.prose img { border-radius: var(--radius); border: 1px solid var(--gray-200); }
.prose code {
    background: var(--gray-100);
    padding: .1rem .35rem;
    border-radius: var(--radius-xs);
    border: 1px solid var(--gray-200);
    color: var(--gray-800);
}

.shots { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.shots img {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    background: var(--gray-50);
    box-shadow: var(--shadow-xs);
}

.meta-list { list-style: none; margin: 0; padding: 0; font-size: var(--t-sm); }
.meta-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .55rem 0;
    border-bottom: 1px solid var(--gray-100);
}
.meta-list li:last-child { border-bottom: 0; }
.meta-list dt, .meta-list .k { color: var(--gray-500); }
.meta-list .v { color: var(--gray-900); font-weight: 600; text-align: right; overflow-wrap: anywhere; }

.social-row { display: flex; flex-wrap: wrap; gap: .45rem; }
.social-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .75rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-pill);
    font-size: var(--t-sm);
    font-weight: 500;
    color: var(--gray-700);
    background: #fff;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.social-chip:hover { border-color: var(--brand-200); background: var(--brand-50); color: var(--brand-700); }

/* ------------------------------------------------------------ comments */

.comment {
    display: flex;
    gap: .9rem;
    padding: 1.15rem 0;
    border-bottom: 1px solid var(--gray-100);
}
.comment:last-child { border-bottom: 0; }

.comment-avatar {
    flex: 0 0 auto;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--brand-50);
    border: 1px solid var(--brand-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--t-sm);
    font-weight: 600;
    color: var(--brand-600);
    text-transform: uppercase;
}
.comment-body { min-width: 0; }
.comment-who { font-weight: 600; color: var(--gray-900); font-size: var(--t-sm); }
.comment-when { color: var(--gray-500); font-size: var(--t-xs); }
.comment-text { margin-top: .3rem; overflow-wrap: anywhere; }

/* --------------------------------------------------------------- forms */

.form-row { margin-bottom: 1.35rem; }

label, .label {
    display: block;
    font-weight: 600;
    font-size: var(--t-sm);
    color: var(--gray-700);
    margin-bottom: .4rem;
}

.hint { display: block; font-weight: 400; color: var(--gray-500); font-size: var(--t-sm); margin-bottom: .45rem; }

input[type="text"], input[type="email"], input[type="password"], input[type="url"],
input[type="search"], input[type="number"], select, textarea {
    width: 100%;
    font: inherit;
    font-size: var(--t-base);
    color: var(--gray-900);
    background: #fff;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    padding: .625rem .875rem;
    box-shadow: var(--shadow-xs);
    transition: border-color .15s ease, box-shadow .15s ease;
}

input::placeholder, textarea::placeholder { color: var(--gray-500); }

input:focus, select:focus, textarea:focus {
    border-color: var(--brand-400);
    box-shadow: var(--ring);
    outline: none;
}

select {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23667085' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    padding-right: 2.25rem;
}

input[type="file"] { font-size: var(--t-sm); box-shadow: none; }

textarea { min-height: 150px; resize: vertical; line-height: 1.7; }

.field-error {
    display: block;
    color: var(--danger);
    font-size: var(--t-sm);
    margin-top: .4rem;
}

input.has-error, textarea.has-error { border-color: var(--danger-bd); }
input.has-error:focus, textarea.has-error:focus { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(180, 35, 24, .12); }

.counter {
    display: flex;
    justify-content: space-between;
    font-size: var(--t-xs);
    color: var(--gray-500);
    margin-top: .35rem;
    font-variant-numeric: tabular-nums;
}
.counter .count-under { color: var(--danger); font-weight: 600; }
.counter .count-ok { color: var(--success); font-weight: 600; }

.form-actions {
    display: flex;
    gap: .75rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1.75rem;
    padding-top: 1.35rem;
    border-top: 1px solid var(--gray-200);
}

.check {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    font-weight: 400;
    color: var(--gray-600);
}
.check input { width: auto; margin-top: .3rem; box-shadow: none; accent-color: var(--brand-600); }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }

.auth-card {
    max-width: 440px;
    margin: 3.5rem auto;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: var(--shadow-lg);
}
.auth-card h1 { font-size: var(--t-xl); }

.divider {
    display: flex;
    align-items: center;
    gap: .85rem;
    color: var(--gray-500);
    font-size: var(--t-xs);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 500;
    margin: 1.35rem 0;
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--gray-200); }

.btn-google {
    background: #fff;
    color: var(--gray-700);
    border-color: var(--gray-300);
}
.btn-google:hover { background: var(--gray-50); color: var(--gray-900); border-color: var(--gray-300); }

/* -------------------------------------------------------------- flashes */

.flash {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    padding: .9rem 1.1rem;
    border-radius: var(--radius);
    border: 1px solid;
    margin-bottom: 1rem;
    font-size: var(--t-base);
}
.flash-success { background: var(--success-bg); border-color: var(--success-bd); color: #05603A; }
.flash-error   { background: var(--danger-bg);  border-color: var(--danger-bd);  color: #912018; }
.flash-warning { background: var(--warn-bg);    border-color: var(--warn-bd);    color: #93370D; }
.flash-info    { background: var(--brand-50);   border-color: var(--brand-200);  color: var(--brand-800); }
.flash strong { font-weight: 600; }

.flash-stack { margin: 1.5rem 0 0; }

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

.steps {
    display: flex;
    align-items: center;
    gap: .5rem;
    list-style: none;
    margin: 0 0 2.25rem;
    padding: 0;
    flex-wrap: wrap;
    font-size: var(--t-sm);
}
.steps li {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--gray-500);
}
.steps li + li::before {
    content: "";
    width: 28px;
    border-top: 2px solid var(--gray-200);
    display: inline-block;
}
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px; height: 26px;
    border-radius: 50%;
    border: 1px solid var(--gray-200);
    font-weight: 600;
    font-size: var(--t-xs);
    color: var(--gray-500);
    background: #fff;
}
.steps .is-current { color: var(--gray-900); font-weight: 600; }
.steps .is-current .step-num { border-color: var(--brand-600); background: var(--brand-600); color: #fff; box-shadow: var(--ring); }
.steps .is-done { color: var(--gray-600); }
.steps .is-done .step-num { border-color: var(--success-bd); background: var(--success-bg); color: var(--success); }

/* --------------------------------------------------------- submit flow */

.submit-url-card {
    padding: 1.5rem;
}

.submit-url-card .form-row {
    margin-bottom: 1.25rem;
}

.submit-url-card input[type="text"] {
    font-size: var(--t-md);
}

.submit-section {
    padding: 1.35rem;
}

.submit-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.submit-section-head h2 {
    margin: 0 0 .25rem;
    font-size: var(--t-lg);
    letter-spacing: -0.02em;
}

.submit-section-head p {
    margin: 0;
    color: var(--gray-500);
    font-size: var(--t-sm);
    line-height: 1.55;
}

.submit-section .grid-2 + .grid-2,
.submit-section .grid-2 + .form-row,
.submit-section .form-row + .form-row {
    margin-top: 1.1rem;
}

/* ------------------------------------------------------- choice cards */

.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.35rem; }

.choice {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    background: #fff;
    box-shadow: var(--shadow-xs);
    transition: border-color .18s ease, box-shadow .18s ease;
}
.choice:hover { border-color: var(--gray-300); box-shadow: var(--shadow-lg); }
.choice-primary { border-color: var(--brand-300); box-shadow: var(--shadow-md); }
.choice h2 { font-size: var(--t-lg); margin-bottom: .35rem; }
.choice ul { list-style: none; margin: 1.1rem 0 1.4rem; padding: 0; font-size: var(--t-base); }
.choice li { display: flex; gap: .55rem; padding: .35rem 0; color: var(--gray-600); }
.choice li::before { content: "\2192"; color: var(--brand-500); flex: 0 0 auto; }
.choice form { margin-top: auto; }

/* ---------------------------------------------------------- code blocks */

.codeblock {
    position: relative;
    background: var(--gray-900);
    color: #E4E7EC;
    border-radius: var(--radius);
    padding: 1.1rem 1.15rem;
    overflow-x: auto;
    font-family: var(--mono);
    font-size: var(--t-sm);
    line-height: 1.7;
    white-space: pre;
    margin: 0 0 .75rem;
    -webkit-overflow-scrolling: touch;
}
.copy-btn {
    position: absolute;
    top: .6rem; right: .6rem;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    color: #fff;
    border-radius: var(--radius-xs);
    padding: .25rem .65rem;
    font-family: var(--ui);
    font-size: var(--t-xs);
    font-weight: 500;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}
.copy-btn:hover { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }

.codeblock-tight {
    max-height: 78px;
    overflow: auto;
    margin-bottom: .5rem;
    font-size: var(--t-xs);
}

.badge-preview {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    padding: 1.1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--gray-100);
    margin-bottom: 1rem;
}
.badge-preview .on-dark { background: var(--gray-900); padding: .85rem; border-radius: var(--radius-sm); }

.tabs { display: flex; gap: .3rem; margin-bottom: .85rem; flex-wrap: wrap; }
.tab {
    padding: .35rem .85rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--gray-200);
    background: #fff;
    font-family: var(--ui);
    font-size: var(--t-sm);
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.tab:hover { background: var(--gray-50); color: var(--gray-900); }
.tab[aria-selected="true"] { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }

/* --------------------------------------- the last screen of the submit flow */

.review-url {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: .8rem 1rem;
    margin-bottom: 1.75rem;
}

.review-url-label {
    display: block;
    font-size: var(--t-xs);
    text-transform: uppercase;
    letter-spacing: .07em;
    font-weight: 600;
    color: var(--gray-500);
}

.review-url-value {
    font-family: var(--mono);
    font-size: var(--t-sm);
    color: var(--gray-900);
    overflow-wrap: anywhere;
}

.final-steps-head {
    margin-bottom: 1.1rem;
    padding-bottom: .7rem;
    border-bottom: 1px solid var(--gray-200);
}
.final-steps-head h2 { font-size: var(--t-lg); margin: 0 0 .2rem; }
.final-steps-head p { margin: 0; font-size: var(--t-sm); color: var(--gray-500); }

.final-step { margin-bottom: 1.75rem; }

.final-step-head {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: .8rem;
}
.final-step-head > div:first-of-type { flex: 1 1 auto; min-width: 0; }

.final-step-num {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--brand-600);
    color: #fff;
    font-size: var(--t-xs);
    font-weight: 600;
}
.final-step-num.is-done { background: var(--success); }

.final-step-title { font-size: var(--t-md); margin: 0 0 .15rem; }
.final-step-note { margin: 0; font-size: var(--t-sm); color: var(--gray-500); }

.badge-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1rem;
    background: #fff;
    box-shadow: var(--shadow-xs);
}
.badge-row-img { flex: 0 0 auto; }
.badge-row-code { flex: 1 1 320px; min-width: 0; }

/* ----------------------------------------------------- golive / plans */

.golive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.golive-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.85rem;
    box-shadow: var(--shadow-xs);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.golive-card:hover { border-color: var(--gray-300); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.golive-card-dofollow { background: var(--brand-25); border-color: var(--brand-200); position: relative; overflow: hidden; }

.golive-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    border-radius: var(--radius);
    margin-bottom: 1.15rem;
    color: #fff;
}
.golive-icon.is-flare { background: var(--brand-600); }
.golive-icon.is-sea   { background: var(--success); }
.golive-icon.is-sun   { background: var(--warn); color: #fff; }

.golive-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    margin-bottom: .35rem;
}
.golive-card h2.panel-title { font-size: var(--t-md); margin: 0 0 .7rem; }
.golive-card-lede { font-size: var(--t-sm); color: var(--gray-500); margin: 0 0 1.2rem; line-height: 1.6; }

.golive-card ul {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .65rem;
    flex: 1 1 auto;
}
.golive-card li { display: flex; align-items: flex-start; gap: .6rem; font-size: var(--t-base); line-height: 1.55; }
.golive-card li svg { flex: 0 0 auto; margin-top: .25rem; }
.golive-card-dofollow li svg { color: var(--success); }
.golive-card:not(.golive-card-dofollow) li svg { color: var(--brand-500); }

.golive-card-estimate {
    display: inline-flex;
    align-items: baseline;
    gap: .4rem;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-pill);
    padding: .3rem .85rem;
    font-size: var(--t-xs);
    color: var(--gray-500);
    margin: 0 0 1.15rem;
    align-self: flex-start;
}
.golive-card-estimate strong { color: var(--gray-900); font-size: var(--t-sm); }

.golive-card .btn { margin-top: auto; }

.pricing-amount {
    display: block;
    font-family: var(--display);
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--gray-900);
    margin: 0 0 1.15rem;
}
.pricing-amount-note { font-size: var(--t-sm); font-weight: 500; color: var(--gray-500); }

.pricing-card-featured { position: relative; }
.pricing-badge {
    position: absolute;
    top: 1.15rem; right: 1.15rem;
    background: var(--brand-600);
    color: #fff;
    border-radius: var(--radius-pill);
    padding: .2rem .7rem;
    font-size: var(--t-xs);
    font-weight: 600;
}

.pricing-was {
    font-family: var(--ui);
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-400);
    margin-right: .4rem;
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.35rem;
    align-items: stretch;
}
.plan-card { position: relative; }
.plan-card.is-selected { border-color: var(--brand-400); box-shadow: var(--ring); }
.plan-card.is-current { border-color: var(--success-bd); }
.plan-card .pricing-badge { top: -.7rem; }
.plan-card .stamp { margin-top: auto; align-self: flex-start; }
.plan-card form { margin-top: auto; }
.plan-card .tiny { margin-bottom: .35rem; }

/* -------------------------------------------------- support / vote grid */

.support-meter {
    flex: 0 0 auto;
    min-width: 160px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: .6rem .8rem;
}
.support-meter-track {
    height: 6px;
    border-radius: var(--radius-pill);
    background: var(--gray-200);
    overflow: hidden;
}
.support-meter-fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: var(--radius-pill);
    background: var(--brand-600);
    transition: width .3s ease;
}
.support-meter.is-met .support-meter-fill { background: var(--success); }
.support-meter-text { margin: .4rem 0 0; font-size: var(--t-xs); color: var(--gray-500); white-space: nowrap; }
.support-meter-text strong { color: var(--gray-900); }

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: .9rem;
    list-style: none;
    margin: 0 0 1.75rem;
    padding: 0;
}

@media (min-width: 880px) {
    .support-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.support-card {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow-xs);
}
.support-card.is-voted { border-color: var(--success-bd); background: var(--success-bg); }

.support-card-head { display: flex; align-items: center; gap: .6rem; }

.support-logo {
    flex: 0 0 auto;
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--gray-200);
}

.support-logo-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--display);
    font-weight: 700;
    color: var(--brand-600);
    background: var(--brand-50);
}

.support-card-name { min-width: 0; }
.support-card-name a { font-weight: 600; color: var(--gray-900); overflow-wrap: anywhere; }
.support-card-name a:hover { color: var(--brand-600); }

.support-card-desc { flex: 1 1 auto; margin: 0; font-size: var(--t-sm); color: var(--gray-500); }

.vote-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .8rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--gray-200);
    background: #fff;
    font-family: var(--ui);
    font-size: var(--t-sm);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--gray-700);
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.vote-btn:hover { border-color: var(--brand-300); background: var(--brand-25); color: var(--brand-700); }
.vote-btn.is-voted { background: var(--success); border-color: var(--success); color: #fff; }
.vote-btn.is-voted:hover { background: #055C38; border-color: #055C38; color: #fff; }

.support-finish { display: flex; flex-direction: column; align-items: center; margin-top: 1.75rem; }

.btn.is-locked,
.btn.is-locked:disabled {
    background: var(--gray-100);
    border-color: var(--gray-200);
    color: var(--gray-400);
    box-shadow: none;
    cursor: not-allowed;
}
.btn.is-locked:hover { background: var(--gray-100); border-color: var(--gray-200); color: var(--gray-400); }

.support-lock { opacity: .75; }

/* ----------------------------------------- "How a listing gets here" block
   A dark band between two light surfaces. Four steps on one line, joined by
   hairlines, each numbered rather than illustrated. */

.how {
    background:
        radial-gradient(90% 120% at 85% 0%, rgba(99, 102, 241, .28) 0%, rgba(99, 102, 241, 0) 60%),
        linear-gradient(180deg, var(--brand-950) 0%, #14122F 100%);
    color: var(--brand-200);
    padding: 4.5rem 0;
}

.how-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2.75rem;
}

.how-title {
    font-size: var(--t-2xl);
    color: #fff;
    margin: 0;
    max-width: 22ch;
    letter-spacing: -0.032em;
}

.how-lede {
    max-width: 44ch;
    margin: 0;
    font-size: var(--t-base);
    line-height: 1.6;
    color: rgba(199, 210, 254, .75);
}

.how-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.how-step {
    position: relative;
    padding: 1.75rem 1.75rem 0 0;
    border-right: 1px solid rgba(255, 255, 255, .12);
}
.how-step:last-child { border-right: 0; padding-right: 0; }
.how-step:first-child { padding-left: 0; }
.how-step + .how-step { padding-left: 1.75rem; }

.how-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(165, 180, 252, .35);
    background: rgba(99, 102, 241, .16);
    font-family: var(--ui);
    font-size: var(--t-xs);
    font-weight: 600;
    color: var(--brand-300);
    margin-bottom: 1rem;
}

.how-step h3 {
    font-family: var(--display);
    font-size: var(--t-md);
    font-weight: 700;
    letter-spacing: -0.018em;
    color: #fff;
    margin: 0 0 .45rem;
}

.how-step p { margin: 0; font-size: var(--t-sm); line-height: 1.6; color: rgba(199, 210, 254, .7); }

.how-foot {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
    margin: 2.75rem 0 0;
}
.how-foot .btn { background: #fff; border-color: #fff; color: var(--brand-800); }
.how-foot .btn:hover { background: var(--brand-50); border-color: var(--brand-50); color: var(--brand-900); }
.how-foot .btn-quiet { background: transparent; border-color: transparent; color: rgba(199, 210, 254, .85); }
.how-foot .btn-quiet:hover { background: rgba(255, 255, 255, .08); color: #fff; }

@media (max-width: 780px) {
    .how { padding: 3.25rem 0; }
    .how-steps { grid-template-columns: 1fr; border-top: 0; }
    .how-step {
        border-right: 0;
        border-top: 1px solid rgba(255, 255, 255, .12);
        padding: 1.5rem 0 0 !important;
    }
    .how-step:first-child { border-top: 0; }
}

/* ------------------------------------------------------------- tables */

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
    background: #fff;
}

table.data {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--t-sm);
    background: #fff;
}
table.data th, table.data td {
    text-align: left;
    padding: .8rem .9rem;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
}
table.data th {
    font-size: var(--t-xs);
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--gray-500);
    background: var(--gray-50);
    white-space: nowrap;
    border-bottom-color: var(--gray-200);
}
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover td { background: var(--gray-25); }

.cell-actions { white-space: nowrap; }
.cell-actions > * { display: inline-block; vertical-align: middle; }
.cell-actions > * + * { margin-left: .35rem; }
.cell-actions .inline-form { margin: 0; }
table.data td.small { overflow-wrap: anywhere; }

.marketing-listings { list-style: none; margin: 0; padding: 0; font-size: var(--t-sm); }
.marketing-listings li { padding: .25rem 0; }
.marketing-listings li + li { border-top: 1px solid var(--gray-100); }
.marketing-listings a { font-weight: 600; color: var(--gray-900); }
.marketing-listings .stamp { margin-left: .3rem; }

/* ------------------------------------------------------------ empty state */

.empty {
    text-align: center;
    padding: 3.5rem 1.5rem;
    border: 1px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    background: #fff;
}
.empty h3 { margin-bottom: .4rem; }
.empty p { color: var(--gray-500); max-width: 44ch; margin: 0 auto 1.25rem; }

/* ------------------------------------------------------------ pagination */

.pager {
    display: flex;
    gap: .4rem;
    align-items: center;
    justify-content: center;
    margin-top: 2.25rem;
    flex-wrap: wrap;
}
.pager a, .pager span {
    display: inline-flex;
    align-items: center;
    padding: .45rem .85rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
    background: #fff;
    font-size: var(--t-sm);
    font-weight: 500;
    color: var(--gray-700);
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.pager a:hover { border-color: var(--brand-300); background: var(--brand-25); color: var(--brand-700); }
.pager .is-current { background: var(--brand-600); border-color: var(--brand-600); color: #fff; font-weight: 600; }
.pager .is-disabled { color: var(--gray-300); border-color: var(--gray-100); background: var(--gray-50); }

/* ------------------------------------------------------------ breadcrumb */

.crumbs {
    display: flex;
    gap: .45rem;
    flex-wrap: wrap;
    font-size: var(--t-sm);
    color: var(--gray-500);
    margin-bottom: 1.25rem;
    list-style: none;
    padding: 0;
}
.crumbs li { display: flex; gap: .45rem; align-items: center; }
.crumbs li + li::before { content: "/"; color: var(--gray-300); }
.crumbs a { color: var(--gray-500); font-weight: 500; }
.crumbs a:hover { color: var(--brand-600); }

/* ----------------------------------------------------------- featured on */

.featured-on {
    padding: 2.5rem 0 0;
    text-align: center;
    transform: scale(.8);
    transform-origin: center;
}
.home-featured-on {
    transform: none;
    background: #fff;
    padding: 3.5rem 0;
}
.featured-on h4 {
    font-family: var(--ui);
    font-size: var(--t-xs);
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin: 0 0 2rem;
}
.featured-on-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    max-width: 100%;
    margin: .85rem 0;
}
.featured-on-badges > a { display: inline-flex; align-items: center; height: 32px; }
.featured-on-badges > a img { height: 100%; width: auto; max-width: none; }

/* Paged slider, switched on by site.js once the badges are in a strip. Each
   badge takes an equal fraction of the row, so a whole page of them fits the
   line exactly and the strip can step by one full page at a time. */
.featured-on-badges.is-slider { display: block; overflow: hidden; }

.featured-on-slides {
    --fo-cols: 6;
    --fo-gap: 1rem;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: var(--fo-gap);
    transition: transform 900ms ease;
}
.featured-on-slides > a {
    flex: 0 0 calc((100% - (var(--fo-cols) - 1) * var(--fo-gap)) / var(--fo-cols));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
}
.featured-on-slides > a img { height: 100%; width: auto; max-width: 100%; object-fit: contain; }

@media (max-width: 900px) { .featured-on-slides { --fo-cols: 4; } }
@media (max-width: 640px) { .featured-on-slides { --fo-cols: 2; } }

/* ------------------------------------------------------------ as seen on */

.seen-on { max-width: 640px; margin: 0 auto; text-align: center; padding: 2rem 0 3rem; }
.seen-on .eyebrow { display: inline-block; }
.seen-on-title { font-size: var(--t-3xl); margin: .5rem 0 0; }
.seen-on-lede { font-size: var(--t-md); color: var(--gray-500); margin: .9rem auto 0; max-width: 42ch; }
.seen-on-badges { margin-top: 2rem; }

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

.footer {
    background: #fff;
    color: var(--gray-500);
    padding: 3.5rem 0 2rem;
    border-top: 1px solid var(--gray-200);
}
.footer a { color: var(--gray-600); }
.footer a:hover { color: var(--brand-600); }

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--gray-200);
}
.footer h4 {
    color: var(--gray-900);
    font-family: var(--ui);
    font-size: var(--t-xs);
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    margin-bottom: .9rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; font-size: var(--t-sm); }
.footer li { margin-bottom: .55rem; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 1.75rem;
    font-size: var(--t-sm);
    color: var(--gray-500);
}
.footer-brand {
    color: var(--gray-900);
    font-family: var(--display);
    font-size: var(--t-lg);
    font-weight: 800;
    letter-spacing: -0.03em;
}
.footer-blurb { font-size: var(--t-sm); max-width: 36ch; margin-top: .65rem; line-height: 1.6; }
.footer-legal { margin: .75rem 0 0; font-size: .68rem; color: var(--gray-500); }

/* --------------------------------------------------------------- admin */

.admin-shell {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 2.5rem;
    padding-top: 2.5rem;
    padding-bottom: 4rem;
}

.admin-nav { position: sticky; top: 90px; list-style: none; margin: 0; padding: 0; }
.admin-nav a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
    padding: .55rem .75rem;
    border-radius: var(--radius-sm);
    color: var(--gray-600);
    font-size: var(--t-base);
    font-weight: 500;
    transition: background .15s ease, color .15s ease;
}
.admin-nav a:hover { background: var(--gray-100); color: var(--gray-900); }
.admin-nav a[aria-current="page"] { background: var(--brand-50); color: var(--brand-700); font-weight: 600; }
.admin-nav .pill {
    background: var(--brand-600);
    color: #fff;
    border-radius: var(--radius-pill);
    padding: 0 .5rem;
    font-size: var(--t-xs);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1rem 1.15rem;
    background: #fff;
    box-shadow: var(--shadow-xs);
}
.stat .n {
    font-family: var(--display);
    font-size: var(--t-2xl);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--gray-900);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.stat .k { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .07em; font-weight: 500; color: var(--gray-500); margin-top: .4rem; }

.email-preview {
    display: block;
    width: 100%;
    height: 720px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: #fff;
}
.email-text {
    margin: 0;
    padding: 1.1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: #fff;
    font-family: var(--mono);
    font-size: var(--t-sm);
    line-height: 1.65;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    max-height: 480px;
    overflow: auto;
}

/* --------------------------------------------------- featured surfaces */

.panel-featured { border-color: var(--warn-bd); background: var(--warn-bg); }
.panel-featured .panel-title .tiny { font-weight: 400; letter-spacing: 0; text-transform: none; }
.rail-logo.pass-logo-fallback { width: 32px; height: 32px; font-size: .9rem; }

.featured-pin {
    margin: 0 0 2rem;
    padding: 1.35rem 1.35rem 1.6rem;
    border: 1px solid var(--warn-bd);
    border-radius: var(--radius-lg);
    background: var(--warn-bg);
}
.featured-pin .section-head { margin-bottom: .85rem; }
.featured-pin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

/* ------------------------------------------------------------ analytics */

.analytics-chart {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 170px;
    padding: .5rem 0 0;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: .5rem;
}
.analytics-day {
    flex: 1 1 0;
    display: flex;
    align-items: flex-end;
    gap: 1px;
    height: 100%;
    min-width: 0;
}
.analytics-day .bar { flex: 1 1 0; min-height: 2px; border-radius: 3px 3px 0 0; }
.bar-views    { background: var(--brand-500); }
.bar-clicks   { background: var(--brand-300); }
.bar-featured { background: var(--warn); }
.legend {
    display: inline-block;
    width: 10px; height: 10px;
    border-radius: 3px;
    vertical-align: middle;
    margin: 0 .2rem 0 .4rem;
}
.legend-views    { background: var(--brand-500); }
.legend-clicks   { background: var(--brand-300); }
.legend-featured { background: var(--warn); }

@media (max-width: 640px) {
    .analytics-chart { height: 120px; gap: 2px; }
    .analytics-day { gap: 0; }
}

/* --------------------------------------------------------- domain rating */

.dr-card {
    display: inline-flex;
    align-items: center;
    gap: .85rem;
    padding: .65rem 1rem .65rem .65rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: #fff;
    color: var(--gray-900);
    box-shadow: var(--shadow-xs);
    max-width: 100%;
}
.dr-ring {
    --dr: 0;
    flex: 0 0 auto;
    width: 52px; height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: conic-gradient(var(--brand-600) calc(var(--dr) * 1%), var(--gray-200) 0);
    position: relative;
}
.dr-ring::before {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    background: #fff;
}
.dr-ring-value {
    position: relative;
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -.03em;
    color: var(--gray-900);
}
.dr-card-body { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.dr-card-title { font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: -.02em; }
.dr-card-scale { font-weight: 500; font-size: .8rem; color: var(--gray-500); }
.dr-card-note  { font-size: .75rem; color: var(--gray-500); }

.dr-card-dark { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #fff; box-shadow: none; }
.dr-card-dark .dr-ring { background: conic-gradient(var(--brand-300) calc(var(--dr) * 1%), rgba(255, 255, 255, .14) 0); }
.dr-card-dark .dr-ring::before { background: var(--brand-900); }
.dr-card-dark .dr-ring-value, .dr-card-dark .dr-card-title { color: #fff; }
.dr-card-dark .dr-card-scale, .dr-card-dark .dr-card-note { color: rgba(199, 210, 254, .75); }

.dr-pill {
    display: inline-flex;
    align-items: baseline;
    gap: .25rem;
    padding: .05rem .5rem;
    border-radius: var(--radius-pill);
    background: var(--brand-50);
    border: 1px solid var(--brand-200);
    color: var(--brand-700);
    font-family: var(--ui);
    font-weight: 600;
    font-size: .8em;
    line-height: 1.5;
    white-space: nowrap;
    vertical-align: baseline;
}
.dr-pill-label { font-size: .75em; letter-spacing: .06em; }

.dr-strip { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-bottom: 1.25rem; }
.dr-strip p { margin: 0; max-width: 34rem; }

/* ------------------------------------------------- features / use cases */

.feature-list { list-style: none !important; padding-left: 0 !important; }
.feature-list li { position: relative; padding-left: 1.6rem; }
.feature-list li::before {
    content: "";
    position: absolute;
    left: 0; top: .5em;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--success-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 6.2l2.2 2.2 4.8-4.8' stroke='%23067647' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/10px 10px no-repeat;
}

/* --------------------------------------------------------------- FAQs */

.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: .95rem 1.1rem;
    margin-bottom: .75rem;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.faq-item:hover { border-color: var(--gray-300); }
.faq-item[open] { box-shadow: var(--shadow-xs); }
.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--gray-900);
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    float: right;
    color: var(--gray-400);
    font-weight: 400;
    font-size: 1.25rem;
    line-height: 1.2;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-answer { margin-top: .7rem; color: var(--gray-600); }
.faq-item .faq-answer p:last-child { margin-bottom: 0; }

/* ------------------------------------------- repeatable form field rows */

[data-repeater] .repeater-row {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    margin-bottom: .5rem;
}
[data-repeater] .repeater-row[hidden] { display: none; }
[data-repeater] .repeater-row input,
[data-repeater] .repeater-row textarea { flex: 1; }
.repeater-faq-fields { flex: 1; display: flex; flex-direction: column; gap: .4rem; }
.repeater-remove { flex: 0 0 auto; line-height: 1; padding: .55rem .75rem; }
.hint-inline { font-weight: 400; color: var(--gray-500); font-size: var(--t-sm); }

/* ----------------------------------------------------- loading + waiting */

.pulse {
    width: 54px; height: 54px;
    border-radius: 50%;
    border: 3px solid var(--gray-200);
    border-top-color: var(--brand-600);
    animation: spin 900ms linear infinite;
    margin: 0 auto 1.35rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

.reading-card {
    max-width: 480px;
    margin: 4rem auto;
    text-align: center;
    padding: 2.75rem 2rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-lg);
}

/* -------------------------------------------------------------- utility */

.stack > * + * { margin-top: 1.25rem; }
.muted { color: var(--gray-500); }
.small { font-size: var(--t-sm); }
.tiny { font-size: var(--t-xs); }
.strong { font-weight: 600; color: var(--gray-900); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.75rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.75rem; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.nowrap { white-space: nowrap; }
.inline-form { display: inline; }

/* ---------------------------------------------------------- responsive */

@media (max-width: 1080px) {
    .layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 2rem; }
    .blog-hero,
    .blog-post-shell,
    .contact-hero,
    .contact-shell { grid-template-columns: minmax(0, 1fr); }
    .blog-hero-copy h1 { max-width: 14ch; }
    .blog-rail,
    .contact-note { position: static; }
    .listing-hero { grid-template-columns: minmax(0, 1fr); }
    .listing-action-card { align-self: auto; }
    .listing-action-card .listing-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .listing-columns { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 820px) {
    :root { --t-3xl: 2.125rem; --t-2xl: 1.75rem; --t-xl: 1.375rem; }
    .layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .rail { position: static; }
    .rail-right { order: 4; }
    .admin-shell { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
    .admin-nav { position: static; display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .5rem; }
    .admin-nav li { flex: 0 0 auto; }
    .masthead { position: static; }
    .masthead-inner { min-height: 0; gap: 1rem; }
    .nav { order: 3; width: 100%; overflow-x: auto; padding-bottom: .25rem; }
    .searchbox input[type="search"],
    .searchbox input[type="search"]:focus { width: 160px; }
    .blog-grid { grid-template-columns: minmax(0, 1fr); }
    .listing-action-card .listing-actions,
    .listing-insight-grid { grid-template-columns: minmax(0, 1fr); }
    .listing-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .wrap { padding: 0 1.15rem; }
    .masthead-tools { flex-wrap: wrap; width: 100%; }
    .searchbox { flex: 1 1 100%; order: -1; }
    .searchbox input[type="search"],
    .searchbox input[type="search"]:focus { width: 100%; }

    .pass { grid-template-columns: 46px 1fr; }
    .pass-body { padding: 1rem .9rem; gap: .8rem; flex-wrap: wrap; }
    .pass-logo { width: 42px; height: 42px; border-radius: var(--radius-sm); }
    .pass-vote { order: 3; flex-direction: row; gap: .45rem; min-width: 0; padding: .35rem .7rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
    .auth-card { margin: 1.5rem auto; padding: 1.5rem; }
    .listing-logo { width: 64px; height: 64px; border-radius: var(--radius); }
    .listing-head { gap: 1.25rem; }
    .listing-detail-page { padding-top: 1.25rem; }
    .listing-hero { padding: 1rem; border-radius: var(--radius); gap: 1.25rem; }
    .listing-identity { align-items: flex-start; }
    .listing-lede { font-size: var(--t-md); }
    .listing-stats { grid-template-columns: minmax(0, 1fr); }
    .listing-section { padding-bottom: 1.5rem; }
    .blog-index-page,
    .blog-post-page,
    .contact-page { padding-top: 1.25rem; }
    .blog-hero,
    .contact-hero { padding: 1rem; gap: 1.25rem; }
    .blog-hero-copy h1,
    .blog-article-header h1,
    .contact-copy h1 { font-size: var(--t-2xl); max-width: none; }
    .blog-card,
    .blog-featured-card,
    .contact-service-card,
    .contact-form-card { padding: 1rem; min-height: 0; }
    .submit-section,
    .submit-url-card { padding: 1rem; }
    .submit-section-head { display: block; }
    .submit-section-head .req { margin-top: .65rem; }
}

/* --------------------------------------------------- motion + printing */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
    .pass:hover, .card:hover, .btn:hover, .golive-card:hover { transform: none; }
}

@media print {
    .masthead, .footer, .rail, .listing-actions, .listing-action-card, .how { display: none; }
    body { color: #000; }
    .panel, .card, .pass-list { box-shadow: none; }
}
