/* ==========================================================================
   SocialLets — Aalay-style theme layer
   Loaded after style.css + app.css. Mirrors the Aalay Housing layout
   (white header, eyebrow hero, left-aligned section heads, bordered 5px
   cards with an accent bar, dark footer) using the SocialLets slate + lime
   palette and existing logo.
   ========================================================================== */

:root {
    --sl-ink: #0f172a;              /* slate-900 — text, primary buttons, footer */
    --sl-ink-hover: #1e293b;
    --sl-footer: #1e293b;           /* slate-800 — a touch lighter than the ink */
    --sl-ink-rgb: 15, 23, 42;
    --sl-lime: #84CC16;             /* brand accent */
    --sl-lime-light: #A3E635;
    --sl-lime-dark: #65A30D;        /* accessible lime for large text */
    --sl-lime-deep: #4d7c0f;        /* accessible lime for small text */
    --sl-lime-rgb: 132, 204, 22;
    --sl-muted: rgba(var(--sl-ink-rgb), 0.66);
    --sl-border: rgba(var(--sl-ink-rgb), 0.12);
    --sl-bg-muted: #f8fafc;
    --sl-hero-wash: rgba(var(--sl-lime-rgb), 0.10);
    --sl-soft: rgba(var(--sl-ink-rgb), 0.06);
    --sl-radius: 5px;
    --sl-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --sl-shadow-md: 0 10px 28px rgba(0, 0, 0, 0.08);

    /* Re-point legacy tokens so older components pick up the new look */
    --radius: var(--sl-radius);
    --radius-sm: var(--sl-radius);
    --radius-md: var(--sl-radius);
    --radius-lg: var(--sl-radius);
    --color-border: var(--sl-border);
    --color-text-muted: var(--sl-muted);
    --shadow: var(--sl-shadow-md);
    --shadow-md: var(--sl-shadow-md);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.10);
    --ring: 0 0 0 4px rgba(var(--sl-lime-rgb), 0.25);
}

body {
    color: var(--sl-ink);
    background: #ffffff;
}

h1, h2, h3, h4 { color: var(--sl-ink); }
h2 { letter-spacing: -0.03em; }
h3 { letter-spacing: -0.02em; }

.text-primary { color: var(--sl-lime-dark); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid var(--sl-border);
}
.header-inner {
    align-items: center;
}

.main-nav { gap: 28px; }

.main-nav a:not(.nav-cta):not(.nav-btn-outline):not(.nav-logout) {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--sl-ink);
    opacity: 0.78;
    transition: opacity var(--transition), color var(--transition);
}
.main-nav a:not(.nav-cta):not(.nav-btn-outline):not(.nav-logout):hover,
.main-nav a:not(.nav-cta):not(.nav-btn-outline):not(.nav-logout).active {
    color: var(--sl-ink);
    opacity: 1;
}
.main-nav a:not(.nav-cta):not(.nav-btn-outline):not(.nav-logout).active::after {
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--sl-lime);
}

.nav-cta,
.main-nav .nav-dashboard {
    margin-left: 4px;
    padding: 12px 20px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    border-radius: var(--sl-radius) !important;
    background: var(--sl-ink) !important;
    border: 1px solid var(--sl-ink) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(var(--sl-ink-rgb), 0.18);
}
.main-nav .nav-cta:hover {
    background: var(--sl-ink-hover) !important;
    border-color: var(--sl-ink-hover) !important;
}
.nav-btn-outline,
.nav-logout {
    border-radius: var(--sl-radius) !important;
}
.nav-logout {
    background: #ffffff !important;
    border: 1px solid var(--sl-border) !important;
    color: var(--sl-ink) !important;
}
.nav-logout:hover {
    background: var(--sl-bg-muted) !important;
    border-color: rgba(var(--sl-ink-rgb), 0.24) !important;
    color: var(--sl-ink) !important;
}

.nav-toggle {
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--sl-border);
    border-radius: var(--sl-radius);
    background: #ffffff;
}
.nav-toggle span { width: 20px; background: var(--sl-ink); }

@media (max-width: 768px) {
    .nav-toggle { transform: none; }
    .main-nav {
        gap: 0;
        padding: 12px 24px 24px;
    }
    .main-nav a:not(.nav-cta):not(.nav-btn-outline):not(.nav-logout) {
        padding: 12px 0;
        border-bottom: 1px solid var(--sl-border);
        opacity: 1;
    }
    .main-nav a:not(.nav-cta):not(.nav-btn-outline):not(.nav-logout).active::after { display: none; }
    .main-nav a:not(.nav-cta):not(.nav-btn-outline):not(.nav-logout).active { color: var(--sl-lime-deep); }
    .main-nav .nav-cta,
    .main-nav .nav-logout,
    .main-nav .nav-dashboard { margin-top: 14px; }
}

/* --------------------------------------------------------------------------
   Buttons — 5px radius, dark primary, lime accent
   -------------------------------------------------------------------------- */
.btn {
    min-height: 46px;
    padding: 12px 22px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--sl-radius);
    letter-spacing: -0.005em;
}
.btn-sm { min-height: 36px; padding: 7px 14px; font-size: 0.875rem; }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 1rem; }

.btn-primary {
    background: var(--sl-ink);
    border-color: var(--sl-ink);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(var(--sl-ink-rgb), 0.18);
}
.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--sl-ink-hover);
    border-color: var(--sl-ink-hover);
    color: #ffffff;
}
.btn-accent {
    background: var(--sl-lime);
    border-color: var(--sl-lime);
    color: var(--sl-ink);
}
.btn-accent:hover {
    background: var(--sl-lime-light);
    border-color: var(--sl-lime-light);
    color: var(--sl-ink);
}
.btn-secondary,
.btn-outline,
.btn-ghost {
    background: #ffffff;
    color: var(--sl-ink);
    border-color: var(--sl-border);
    font-weight: 600;
}
.btn-secondary:hover,
.btn-outline:hover,
.btn-ghost:hover {
    background: var(--sl-bg-muted);
    border-color: rgba(var(--sl-ink-rgb), 0.28);
    color: var(--sl-ink);
}
.btn-white { color: var(--sl-ink); }
.btn-outline-white { border-color: rgba(255, 255, 255, 0.4); }

/* --------------------------------------------------------------------------
   Eyebrow (dot + uppercase label) — replaces pill tags
   -------------------------------------------------------------------------- */
.eyebrow,
.section-tag,
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    margin: 0 0 18px;
    background: none;
    border-radius: 0;
    color: var(--sl-ink);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.eyebrow .dot,
.section-tag::before,
.hero-tag::before {
    content: '';
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 50%;
    background: var(--sl-lime);
    box-shadow: 0 0 0 4px rgba(var(--sl-lime-rgb), 0.22);
}
.eyebrow .dot + * { margin: 0; }
.eyebrow:has(.dot)::before { content: none; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section {
    padding: clamp(64px, 8vw, 96px) 0;
    border-bottom: 1px solid var(--sl-border);
}
.section-alt,
.section--muted { background: var(--sl-bg-muted); }

.section-head,
.section-header {
    text-align: left;
    max-width: none;
    margin: 0 0 40px;
}
.section-head h2,
.section-header h2 {
    font-size: clamp(1.7rem, 2.8vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin: 0 0 10px;
    color: var(--sl-ink);
}
.section-head p,
.section-head__lead,
.section-header p {
    max-width: 680px;
    margin: 4px 0 0;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--sl-muted);
}

/* --------------------------------------------------------------------------
   Home hero
   -------------------------------------------------------------------------- */
.hero.hero--home {
    display: block;
    min-height: 0;
    overflow: hidden;
    border-bottom: 1px solid var(--sl-border);
    background-color: #ffffff;
    background-image:
        linear-gradient(180deg, var(--sl-hero-wash) 0%, rgba(255, 255, 255, 0) 45%),
        url("../images/hero-splash.svg");
    background-repeat: no-repeat, no-repeat;
    background-size: cover, 100% auto;
    background-position: center, center bottom;
    padding: clamp(72px, 9vw, 112px) 0 clamp(240px, 30vw, 460px);
}
.hero--home .hero-inner { max-width: 900px; }
.hero--home .hero-title {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.035em;
    margin: 0 0 22px;
    max-width: none;
    color: var(--sl-ink);
}
.hero--home .hero-title .text-primary { color: var(--sl-lime-dark); }
.hero--home .hero-subtitle {
    max-width: 660px;
    margin: 0 0 30px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--sl-muted);
}

.hero-path-card {
    max-width: 660px;
    padding: 22px;
    background: #ffffff;
    border: 1px solid var(--sl-border);
    border-radius: var(--sl-radius);
    box-shadow: var(--sl-shadow-md);
}
.hero-path-card__label {
    display: block;
    margin: 0 0 10px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sl-ink);
}
.hero-path-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.hero-path-card__actions .btn { width: 100%; margin: 0; }
.hero-path-card__tip {
    margin: 16px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--sl-border);
    font-size: 0.9rem;
    color: var(--sl-muted);
    text-align: center;
}
@media (max-width: 600px) {
    .hero-path-card__actions { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Split (image + prose)
   -------------------------------------------------------------------------- */
.split-about {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
}
.split-about__image img {
    display: block;
    width: 100%;
    height: clamp(280px, 32vw, 440px);
    object-fit: cover;
    border-radius: var(--sl-radius);
    border: 1px solid var(--sl-border);
}
.prose p {
    margin: 0 0 16px;
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--sl-muted);
}
.prose strong { color: var(--sl-ink); }
.prose .btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}
@media (max-width: 900px) {
    .split-about { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Feature cards — bordered, accent bar, round icon
   -------------------------------------------------------------------------- */
.feature-grid,
.features-grid,
.features-grid.features-grid--balanced,
.features-grid.features-grid--quad {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 16px;
    max-width: none;
    margin-inline: 0;
}
@media (min-width: 992px) {
    .feature-grid,
    .features-grid:not(.features-grid--quad) { grid-template-columns: repeat(3, 1fr); }
    .features-grid.features-grid--quad { grid-template-columns: repeat(2, 1fr); }
}
.features-grid.features-grid--balanced .feature-card { max-width: none; }

.feature,
.feature-card {
    position: relative;
    padding: 30px 26px 26px;
    background: #ffffff;
    border: 1px solid var(--sl-border);
    border-radius: var(--sl-radius);
    box-shadow: none;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.feature::before,
.feature-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 26px;
    width: 36px;
    height: 3px;
    background: var(--sl-lime);
    border-radius: 0 0 2px 2px;
}
.feature:hover,
.feature-card:hover {
    border-color: rgba(var(--sl-ink-rgb), 0.22);
    box-shadow: var(--sl-shadow-md);
}
.feature__title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 10px;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
}
.feature__icon,
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(var(--sl-lime-rgb), 0.14);
    color: var(--sl-lime-deep);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0;
}
.feature-card .feature-icon { margin-bottom: 16px; font-size: 0.85rem; }
.feature p,
.feature-card p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--sl-muted);
    white-space: normal;
}
.feature-card h3 { font-size: 1.15rem; font-weight: 700; }

/* --------------------------------------------------------------------------
   Access / pricing cards
   -------------------------------------------------------------------------- */
.pricing-card,
.access-card,
.card {
    border-radius: var(--sl-radius);
    border: 1px solid var(--sl-border);
    box-shadow: none;
}
.pricing-card {
    position: relative;
    background: #ffffff;
}
.pricing-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 26px;
    width: 36px;
    height: 3px;
    background: var(--sl-lime);
    border-radius: 0 0 2px 2px;
}
.pricing-card:hover { box-shadow: var(--sl-shadow-md); }


/* --------------------------------------------------------------------------
   Inner page heroes
   -------------------------------------------------------------------------- */
.page-hero,
.page-header {
    text-align: left;
    padding: clamp(56px, 7vw, 88px) 0 clamp(40px, 5vw, 64px);
    background-color: #ffffff;
    background-image: linear-gradient(180deg, var(--sl-hero-wash) 0%, rgba(255, 255, 255, 0) 70%);
    border-bottom: 1px solid var(--sl-border);
}
.page-hero h1,
.page-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.035em;
    line-height: 1.1;
    margin-bottom: 14px;
    color: var(--sl-ink);
}
.page-hero p,
.page-header p {
    margin: 0;
    max-width: 660px;
    font-size: 1.08rem;
    color: var(--sl-muted);
}

/* --------------------------------------------------------------------------
   CTA band (inner pages)
   -------------------------------------------------------------------------- */


/* --------------------------------------------------------------------------
   Footer — dark, five columns, "Part of Aalay Collective"
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--sl-footer);
    color: rgba(255, 255, 255, 0.82);
    border-top: 0;
    padding-top: clamp(56px, 7vw, 88px);
}
.site-footer .footer-grid {
    grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr));
    gap: 40px;
    padding-bottom: clamp(48px, 6vw, 72px);
}
.site-footer .logo--footer { display: inline-flex; margin: 0 0 18px; }
.site-footer .logo--footer .logo-img { height: 56px; width: auto; }
.site-footer .footer-intro {
    max-width: 340px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.72);
}
.site-footer .footer-affiliations { border-top: 0; padding-top: 4px; }
.site-footer .footer-affiliation img {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}
.footer-col h4 {
    margin: 0 0 16px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sl-lime);
}
.footer-col a {
    display: block;
    margin: 0 0 10px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.82);
}
.footer-col a:hover { color: #ffffff; }
.site-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 20px 0;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.62);
    text-align: left;
}
.site-footer .footer-bottom .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
}
.site-footer .footer-bottom a { color: #ffffff; font-weight: 600; }
.site-footer .footer-bottom a:hover { color: var(--sl-lime); }

@media (max-width: 992px) {
    .site-footer .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-footer .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
    .site-footer .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Forms & misc surfaces pick up the squarer radius */
input, select, textarea { border-radius: var(--sl-radius); }
.cookie-consent { border-radius: var(--sl-radius); }

.hero .eyebrow { color: var(--sl-ink); }
@media (max-width: 600px) {
    .hero.hero--home {
        background-size: cover, auto 230px;
        padding-bottom: 250px;
    }
}


/* ==========================================================================
   Spacing & layout refinements (v3)
   ========================================================================== */

/* Tighter vertical rhythm */
.section { padding: clamp(48px, 6vw, 72px) 0; }
.section-head,
.section-header { margin-bottom: 32px; }

/* Home hero — less empty sky, illustration sits right under the card */
.hero.hero--home {
    padding-top: clamp(48px, 6vw, 80px);
    padding-bottom: clamp(190px, calc(24.4vw + 28px), 420px);
}
@media (max-width: 600px) {
    .hero.hero--home {
        background-size: cover, auto 170px;
        padding-bottom: 190px;
    }
}

/* Home: "Choose your path" centred */
.section-head--center {
    text-align: center;
    margin-inline: auto;
}
.section-head--center p,
.section-head--center .section-head__lead { margin-inline: auto; }
.access-grid {
    max-width: 1000px;
    margin-inline: auto;
    gap: 16px;
}
#get-started .form-hint { text-align: center; }

/* Inner pages */
.about-mission {
    max-width: none;
    text-align: left;
    padding: 28px;
    border-radius: var(--sl-radius);
}
.about-mission__links { justify-content: flex-start; }
.partnership-hero__head { margin: 0 0 28px; max-width: 760px; text-align: left; }
.partnership-hero__head .section-tag { display: inline-flex; }
.partnership-page .partnership-hero .partnership-hero__lead,
.partnership-hero__lead { margin: 0; padding: 0; text-align: left; max-width: 660px; }
.partnership-hero__grid { max-width: none; margin: 0; }
.partnership-panel { max-width: none; border-radius: var(--sl-radius); box-shadow: none; }
.partnership-page .section .form-hint { text-align: left !important; }
.legal-content { max-width: 860px; padding-block: 40px 64px; }

/* Contact — form beside a short info panel instead of a lone centred card */
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: start;
}
.contact-layout .form-card { max-width: none; margin: 0; }
.contact-aside h2 {
    font-size: clamp(1.4rem, 2.2vw, 1.75rem);
    margin: 0 0 10px;
}
.contact-aside > p { color: var(--sl-muted); margin: 0 0 24px; line-height: 1.65; }
.contact-aside__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-aside__list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px;
    background: #ffffff;
    border: 1px solid var(--sl-border);
    border-radius: var(--sl-radius);
}
.contact-aside__list strong { display: block; color: var(--sl-ink); margin-bottom: 2px; }
.contact-aside__list span.txt { color: var(--sl-muted); font-size: 0.95rem; line-height: 1.55; }
.contact-aside__list a { font-weight: 600; color: var(--sl-ink); text-decoration: underline; text-decoration-color: var(--sl-lime); text-underline-offset: 3px; }
@media (max-width: 900px) {
    .contact-layout { grid-template-columns: 1fr; }
}

/* CTA band — light lime panel with the street illustration, dark text */
.cta-section {
    position: relative;
    overflow: hidden;
    padding: clamp(48px, 6vw, 72px) 0;
    border-top: 1px solid var(--sl-border);
    border-bottom: 1px solid var(--sl-border);
    background-color: #f7fee7;
    background-image:
        linear-gradient(90deg, #f7fee7 0%, #f7fee7 38%, rgba(247, 254, 231, 0.75) 55%, rgba(247, 254, 231, 0) 75%),
        url("../images/hero-splash.svg");
    background-repeat: no-repeat, no-repeat;
    background-size: 100% 100%, auto 100%;
    background-position: left top, right bottom;
    color: var(--sl-ink);
}
.cta-section .cta-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 14px;
    min-height: 200px;
}
.cta-section .cta-inner > * { max-width: 560px; }
.cta-section h2,
.cta-section .cta-text h2 { color: var(--sl-ink); margin: 0; font-size: clamp(1.6rem, 2.6vw, 2.1rem); letter-spacing: -0.03em; }
.cta-section p,
.cta-section .cta-text p { color: var(--sl-muted); margin: 0; }
.cta-section .hero-actions,
.cta-section .cta-actions { margin: 8px 0 0; gap: 10px; }
.cta-section .btn-white,
.cta-section .btn-accent {
    background: var(--sl-ink);
    border-color: var(--sl-ink);
    color: #ffffff;
}
.cta-section .btn-white:hover,
.cta-section .btn-accent:hover { background: var(--sl-ink-hover); border-color: var(--sl-ink-hover); color: #ffffff; }
.cta-section .btn-outline-white {
    background: #ffffff;
    border-color: var(--sl-border);
    color: var(--sl-ink);
}
.cta-section .btn-outline-white:hover { background: var(--sl-bg-muted); border-color: rgba(var(--sl-ink-rgb), 0.28); color: var(--sl-ink); }
@media (max-width: 768px) {
    .cta-section {
        background-image: url("../images/hero-splash.svg");
        background-size: auto 150px;
        background-position: center bottom;
        padding-bottom: 170px;
    }
}

/* Footer — less padding, brand column no longer leaves a wide gap */
.site-footer { padding-top: clamp(44px, 5vw, 64px); }
.site-footer .footer-grid {
    grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr));
    gap: 32px;
    padding-bottom: clamp(32px, 4vw, 48px);
}
.site-footer .footer-affiliations { margin-top: 12px; }
.site-footer .logo--footer { margin-bottom: 14px; }
@media (max-width: 992px) {
    .site-footer .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
    .site-footer .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ==========================================================================
   Header v2 — taller bar, Aalay-style links (no underline), same width
   ========================================================================== */
@media (min-width: 769px) {
    :root { --header-h: 112px; }
}
.site-header .header-inner { height: var(--header-h); }

.main-nav a:not(.nav-cta):not(.nav-btn-outline):not(.nav-logout) {
    padding: 4px 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(var(--sl-ink-rgb), 0.66);
    opacity: 1;
    align-self: center;
}
.main-nav a:not(.nav-cta):not(.nav-btn-outline):not(.nav-logout):hover {
    color: var(--sl-ink);
}
.main-nav a:not(.nav-cta):not(.nav-btn-outline):not(.nav-logout).active {
    color: var(--sl-ink);
    font-weight: 600;
}
.main-nav a:not(.nav-cta):not(.nav-btn-outline):not(.nav-logout)::after,
.main-nav a:not(.nav-cta):not(.nav-btn-outline):not(.nav-logout).active::after {
    content: none;
    display: none;
}
.nav-cta,
.main-nav .nav-dashboard {
    padding: 10px 18px !important;
    font-size: 0.95rem !important;
    box-shadow: none;
}
@media (max-width: 768px) {
    .site-header .header-inner { padding: 8px var(--layout-gutter); }
}

/* ==========================================================================
   Partnership — form at 2/3 width with an explainer column
   ========================================================================== */
.partnership-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: clamp(24px, 3vw, 40px);
    align-items: start;
}
.partnership-layout__form .partnership-panel { margin: 0; background: #ffffff; }
.partnership-aside {
    display: grid;
    gap: 16px;
    position: sticky;
    top: calc(var(--header-h) + 24px);
}
.partnership-aside__card {
    position: relative;
    padding: 26px 24px 24px;
    background: #ffffff;
    border: 1px solid var(--sl-border);
    border-radius: var(--sl-radius);
}
.partnership-aside__card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 24px;
    width: 36px;
    height: 3px;
    background: var(--sl-lime);
    border-radius: 0 0 2px 2px;
}
.partnership-aside__card h2 { font-size: 1.3rem; margin: 0 0 18px; }
.partnership-aside__card h3 { font-size: 1.05rem; margin: 0 0 14px; }
.partnership-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.partnership-steps li { display: flex; gap: 14px; align-items: flex-start; }
.partnership-steps__num {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(var(--sl-lime-rgb), 0.16);
    color: var(--sl-lime-deep);
    font-weight: 700;
    font-size: 0.9rem;
}
.partnership-steps strong { display: block; color: var(--sl-ink); margin-bottom: 2px; }
.partnership-steps .txt { display: block; color: var(--sl-muted); font-size: 0.93rem; line-height: 1.55; }
.partnership-benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.partnership-benefits li {
    display: flex;
    gap: 12px;
    align-items: baseline;
    color: var(--sl-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}
.partnership-benefits i { color: var(--sl-lime-deep); width: 16px; text-align: center; flex: 0 0 16px; }
.partnership-aside__contact { margin: 0; font-size: 0.93rem; color: var(--sl-muted); }
.partnership-aside__contact a { font-weight: 600; color: var(--sl-ink); }
@media (max-width: 992px) {
    .partnership-layout { grid-template-columns: 1fr; }
    .partnership-aside { position: static; }
}

/* ==========================================================================
   Partnership hero — illustration, icon cards with links
   ========================================================================== */
.partnership-page .partnership-hero {
    position: relative;
    padding: clamp(48px, 6vw, 72px) 0 clamp(40px, 5vw, 56px);
    background-color: #ffffff;
    background-image:
        linear-gradient(90deg, #ffffff 0%, #ffffff 45%, rgba(255, 255, 255, 0.6) 62%, rgba(255, 255, 255, 0) 80%),
        linear-gradient(180deg, var(--sl-hero-wash) 0%, rgba(255, 255, 255, 0) 70%),
        url("../images/hero-splash.svg");
    background-repeat: no-repeat;
    background-size: 100% 100%, 100% 100%, auto 250px;
    background-position: left top, left top, right 0 top 8px;
    text-align: left;
}
.partnership-hero__head { margin: 0 0 36px; max-width: 640px; min-height: 180px; }
.partnership-hero__head h1 { font-size: clamp(2.2rem, 4.2vw, 3.2rem); margin-bottom: 14px; }
.partnership-hero__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    max-width: none;
    margin: 0;
}
.partnership-hero__card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px 24px 22px;
    background: #ffffff;
    border: 1px solid var(--sl-border);
    border-radius: var(--sl-radius);
    box-shadow: var(--sl-shadow-sm);
    transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.partnership-hero__card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 24px;
    width: 36px;
    height: 3px;
    background: var(--sl-lime);
    border-radius: 0 0 2px 2px;
}
.partnership-hero__card:hover {
    border-color: rgba(var(--sl-ink-rgb), 0.22);
    box-shadow: var(--sl-shadow-md);
    transform: translateY(-2px);
}
.partnership-hero__card h2.partnership-hero__title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 12px;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--sl-ink);
}
.partnership-hero__card p {
    flex: 1;
    margin: 0 0 18px;
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--sl-muted);
}
.partnership-hero__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding-top: 14px;
    width: 100%;
    border-top: 1px solid var(--sl-border);
    font-size: 0.93rem;
    font-weight: 700;
    color: var(--sl-ink);
}
.partnership-hero__link i { color: var(--sl-lime-deep); font-size: 0.85em; transition: transform var(--transition); }
.partnership-hero__link:hover { color: var(--sl-ink); }
.partnership-hero__link:hover i { transform: translateX(3px); }
@media (max-width: 992px) {
    .partnership-page .partnership-hero {
        background-image:
            linear-gradient(180deg, var(--sl-hero-wash) 0%, rgba(255, 255, 255, 0) 70%);
        background-size: 100% 100%;
    }
    .partnership-hero__head { min-height: 0; }
    .partnership-hero__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Sign in — calm, centred card on the street illustration
   ========================================================================== */
.login-page .auth-page {
    min-height: calc(100vh - var(--header-h));
    padding: clamp(40px, 6vw, 72px) 0 clamp(170px, 18vw, 260px);
    background-color: #ffffff;
    background-image:
        linear-gradient(180deg, var(--sl-hero-wash) 0%, rgba(255, 255, 255, 0) 55%),
        url("../images/hero-splash.svg");
    background-repeat: no-repeat, repeat-x;
    background-size: 100% 100%, auto clamp(150px, 16vw, 240px);
    background-position: top, center bottom;
    border-bottom: 1px solid var(--sl-border);
}
.login-page .auth-card {
    position: relative;
    max-width: 440px;
    padding: 36px 32px 28px;
    background: #ffffff;
    border: 1px solid var(--sl-border);
    border-radius: var(--sl-radius);
    box-shadow: var(--sl-shadow-md);
}
.login-page .auth-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 32px;
    width: 36px;
    height: 3px;
    background: var(--sl-lime);
    border-radius: 0 0 2px 2px;
}
.login-page .auth-card__eyebrow { margin: 0 0 10px; font-size: 0.8rem; }
.login-page .auth-card h1 {
    text-align: left;
    font-size: 2rem;
    letter-spacing: -0.035em;
    margin: 0 0 8px;
}
.login-page .auth-card .subtitle {
    text-align: left;
    margin: 0 0 26px;
    font-size: 0.97rem;
    line-height: 1.6;
}
.login-page .auth-card .form-group label { font-size: 0.9rem; }
.login-page .auth-card input { min-height: 46px; }
.login-page .auth-card .btn-block { min-height: 48px; margin-top: 4px; }
.login-page .auth-footer {
    margin: 22px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--sl-border);
    text-align: center;
    font-size: 0.95rem;
}
.login-page .auth-footer a,
.login-page .auth-help a { font-weight: 700; color: var(--sl-ink); }
.login-page .auth-help { margin: 8px 0 0; text-align: center; font-size: 0.88rem; color: var(--sl-muted); }
@media (max-width: 520px) {
    .login-page .auth-card { padding: 30px 22px 24px; }
}

/* ==========================================================================
   v8 — About, FAQs, Get started, wizard options, declutter
   ========================================================================== */

/* About */
.about-story { align-items: center; }
.about-story .prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 0 0 16px; }
.about-quote {
    margin: 24px 0 0;
    padding: 18px 22px;
    border-left: 3px solid var(--sl-lime);
    background: #f7fee7;
    border-radius: 0 var(--sl-radius) var(--sl-radius) 0;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.55;
    color: var(--sl-ink);
}
@media (min-width: 1100px) {
    .feature-grid.feature-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 640px) and (max-width: 1099px) {
    .feature-grid.feature-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* FAQs */
.faq-layout { gap: clamp(24px, 3vw, 40px); }
.faq-nav {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    align-self: start;
    border-radius: var(--sl-radius);
    border: 1px solid var(--sl-border);
    box-shadow: none;
}
.faq-nav-links a { border-radius: var(--sl-radius); }
.faq-nav-links a.is-active { background: rgba(var(--sl-lime-rgb), 0.14); color: var(--sl-ink); font-weight: 600; }
.faq-help {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--sl-border);
}
.faq-help strong { display: block; color: var(--sl-ink); margin-bottom: 2px; }
.faq-help p { margin: 0 0 12px; font-size: 0.92rem; color: var(--sl-muted); }
.faq-group {
    position: relative;
    border-radius: var(--sl-radius);
    border: 1px solid var(--sl-border);
    box-shadow: none;
    scroll-margin-top: calc(var(--header-h) + 24px);
}
.faq-group::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 24px;
    width: 36px;
    height: 3px;
    background: var(--sl-lime);
    border-radius: 0 0 2px 2px;
}
.faq-group h2 { font-size: 1.2rem; letter-spacing: -0.02em; }
.faq-q-text { font-weight: 600; }
.faq-q-icon { border-radius: 50%; }

/* Wizard option tiles (partnership + get started) */
.partnership-option {
    border: 1px solid var(--sl-border);
    border-radius: var(--sl-radius);
}
.partnership-option:hover,
.partnership-option.selected {
    border-color: var(--sl-lime-dark);
    background: #f7fee7;
    box-shadow: 0 0 0 3px rgba(var(--sl-lime-rgb), 0.18);
}
.partnership-option .feature-icon { margin-bottom: 14px; font-size: 1.05rem; }
.partnership-options--choices .partnership-option {
    padding: 14px 16px;
    justify-content: center;
}
.partnership-options--choices .partnership-option strong { margin: 0; font-size: 0.97rem; }

/* The page hero already introduces the partnership form */
.partnership-page .partnership-panel__intro { display: none; }
.partnership-panel .partnership-progress { margin-top: 0; }
.signup-page .section .container.partnership-layout { max-width: var(--layout-max); }
.signup-wizard { max-width: none; }
@media (max-width: 900px) {
    .faq-nav { position: static; order: 2; }
    .faq-nav-title, .faq-nav-links { display: none; }
    .faq-help { margin-top: 0; padding-top: 0; border-top: 0; }
}

/* Header logo +10% */
:root { --header-logo-max-h: calc((83px - 12px) * 1.099328125 * 1.05 * 1.2 * 0.70125 * 1.1); }
@media (max-width: 768px) {
    :root { --header-logo-max-h: calc((77px - 12px) * 1.099328125 * 0.70125 * 1.1); }
}

/* ==========================================================================
   Dashboards (admin, landlord, provider) — aligned with the public site
   ========================================================================== */
.admin-body,
.admin-main { background: var(--sl-bg-muted); }

/* Sidebar — slate like the footer, light logo, icon nav */
.admin-sidebar {
    background: var(--sl-footer);
    border-right: 0;
    box-shadow: none;
    color: rgba(255, 255, 255, 0.82);
}
.admin-sidebar-brand {
    padding: 22px 22px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 12px;
}
.admin-logo { margin: 0; }
.admin-logo .logo-img { height: 50px; width: auto; max-width: 180px; }
.admin-badge {
    margin: 0;
    padding: 0;
    background: none;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
}
.admin-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sl-lime);
    box-shadow: 0 0 0 3px rgba(var(--sl-lime-rgb), 0.25);
}
.admin-sidebar-nav { padding: 16px 12px; gap: 2px; }
.admin-sidebar-nav a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--sl-radius);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.93rem;
    font-weight: 500;
}
.admin-sidebar-nav a i { width: 18px; text-align: center; font-size: 0.95rem; color: rgba(255, 255, 255, 0.5); transition: color var(--transition); }
.admin-sidebar-nav a:hover { background: rgba(255, 255, 255, 0.06); color: #ffffff; }
.admin-sidebar-nav a:hover i { color: #ffffff; }
.admin-sidebar-nav a.active {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-weight: 600;
}
.admin-sidebar-nav a.active i { color: var(--sl-lime); }
.admin-sidebar-nav a.active::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--sl-lime);
}
.admin-sidebar-foot {
    padding: 12px;
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    gap: 2px;
}
.admin-sidebar-foot__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--sl-radius);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
    font-weight: 500;
}
.admin-sidebar-foot__link i { width: 18px; text-align: center; color: rgba(255, 255, 255, 0.5); }
.admin-sidebar-foot__link:hover { background: rgba(255, 255, 255, 0.06); color: #ffffff; }
@media (min-width: 993px) {
    .admin-sidebar { width: 248px; }
    .admin-main { margin-left: 248px; }
}
@media (max-width: 992px) and (min-width: 769px) {
    .admin-sidebar-nav a.active::before { display: none; }
    .admin-sidebar-foot { display: flex; flex-wrap: wrap; }
}

/* Top bar — like the site header */
.admin-topbar {
    min-height: 76px;
    padding: 14px var(--layout-gutter);
    background: #ffffff;
    backdrop-filter: none;
    border-bottom: 1px solid var(--sl-border);
}
.admin-topbar h1 {
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    letter-spacing: -0.03em;
    color: var(--sl-ink);
}
.dashboard-nav-toggle {
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--sl-border);
    border-radius: var(--sl-radius);
    background: #ffffff;
}
.dashboard-nav-toggle span { width: 18px; background: var(--sl-ink); }

.admin-content { padding: 28px var(--layout-gutter) 56px; }

/* Privacy notice — quiet lime note */
.privacy-banner {
    border: 1px solid var(--sl-border);
    border-left: 3px solid var(--sl-lime);
    background: #ffffff;
    border-radius: var(--sl-radius);
    padding: 12px 16px;
    color: var(--sl-muted);
    font-size: 0.9rem;
}
.privacy-banner::before { content: none; }

/* Stat cards */
.stat-cards { gap: 16px; margin-bottom: 24px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.stat-card {
    position: relative;
    padding: 22px 22px 20px;
    background: #ffffff;
    border: 1px solid var(--sl-border);
    border-radius: var(--sl-radius);
    box-shadow: none;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 22px;
    width: 32px;
    height: 3px;
    background: var(--sl-lime);
    border-radius: 0 0 2px 2px;
}
.stat-card .value { color: var(--sl-ink); font-size: 2rem; font-weight: 700; line-height: 1.1; margin-bottom: 4px; }
.stat-card .label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sl-muted);
}

/* Cards */
.admin-content .card {
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid var(--sl-border);
    border-radius: var(--sl-radius);
    box-shadow: none;
}
.admin-content .card:hover { box-shadow: none; transform: none; }
.admin-content .card > h2:first-child,
.admin-content .card h2 { font-size: 1.15rem; letter-spacing: -0.02em; margin: 0 0 6px; color: var(--sl-ink); }
.admin-content .card > .form-hint { margin-bottom: 18px; }
.admin-card, .admin-stat { border-radius: var(--sl-radius); box-shadow: none; }

/* Tables */
.table-wrap {
    border: 1px solid var(--sl-border);
    border-radius: var(--sl-radius);
    overflow-x: auto;
}
.admin-table th {
    background: var(--sl-bg-muted);
    color: var(--sl-muted);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    padding: 12px 16px;
}
.admin-table td { padding: 14px 16px; font-size: 0.92rem; color: var(--sl-ink); }
.admin-table tr:hover td { background: #f7fee7; }
.admin-table .muted { color: var(--sl-muted); }
.btn-link { color: var(--sl-ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--sl-lime); text-underline-offset: 3px; }
.btn-link:hover { color: var(--sl-ink); text-decoration-color: var(--sl-ink); }

/* Badges */
.badge { border-radius: var(--sl-radius); padding: 3px 9px; font-size: 0.75rem; font-weight: 600; }
.badge-success { background: rgba(var(--sl-lime-rgb), 0.16); color: var(--sl-lime-deep); }
.badge-info { background: #eef2ff; color: #3730a3; }
.badge-secondary { background: rgba(var(--sl-ink-rgb), 0.07); color: rgba(var(--sl-ink-rgb), 0.7); }

/* Empty states */
.empty-state {
    padding: 40px 24px;
    border: 1px dashed rgba(var(--sl-ink-rgb), 0.18);
    border-radius: var(--sl-radius);
    background: var(--sl-bg-muted);
}
.empty-state h3 { font-size: 1.05rem; color: var(--sl-ink); }
.empty-state p { max-width: 520px; margin: 0 auto 16px; }

/* Forms inside dashboards */
.admin-content .listing-edit-form.form-card {
    border-radius: var(--sl-radius);
    border: 1px solid var(--sl-border);
    box-shadow: none;
}
.form-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--sl-ink);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.form-section-title::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sl-lime);
    box-shadow: 0 0 0 3px rgba(var(--sl-lime-rgb), 0.22);
}
input:not([type=checkbox]):not([type=radio]):focus,
select:focus,
textarea:focus {
    border-color: var(--sl-lime-dark);
    box-shadow: 0 0 0 3px rgba(var(--sl-lime-rgb), 0.22);
    outline: none;
}
input[type=checkbox], input[type=radio] { accent-color: var(--sl-lime-dark); }

/* Match board */
.match-pair, .match-card { border-radius: var(--sl-radius); border-color: var(--sl-border); }
.match-score strong { color: var(--sl-ink); }
.match-side .section-tag { margin-bottom: 8px; font-size: 0.72rem; }

/* ==========================================================================
   Admin — landlord & provider directory and profiles
   ========================================================================== */
.people-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.people-toolbar h2 { margin-bottom: 4px; }
.people-toolbar .form-hint { margin: 0; }
.people-search { display: flex; gap: 8px; align-items: center; flex-wrap: nowrap; }
@media (max-width: 640px) { .people-search { flex-wrap: wrap; width: 100%; } .people-search input[type=search] { flex: 1 1 100%; } }
.people-search input[type=search] {
    min-width: min(320px, 100%);
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid var(--sl-border);
    border-radius: var(--sl-radius);
    font: inherit;
    font-size: 0.92rem;
}
.people-name { font-weight: 700; color: var(--sl-ink); }
.people-name:hover { text-decoration: underline; text-decoration-color: var(--sl-lime); text-underline-offset: 3px; }
.admin-table a:not(.btn):not(.btn-link):not(.people-name) { color: var(--sl-ink); }

.person-layout {
    display: grid;
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}
.admin-content .person-card { margin-bottom: 0; }
.person-aside { display: grid; gap: 16px; align-self: start; }
.admin-content .person-aside .card { margin-bottom: 0; }
.person-card__role { margin: 0 0 10px; font-size: 0.75rem; }
.admin-content .person-card h2 { font-size: 1.35rem; margin-bottom: 4px; }
.person-card__sub { margin: 0 0 10px; }
.person-details { margin: 18px 0 0; display: grid; gap: 0; }
.person-details > div {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid var(--sl-border);
}
.person-details dt { font-size: 0.8rem; color: var(--sl-muted); font-weight: 600; }
.person-details dd { margin: 0; font-size: 0.93rem; color: var(--sl-ink); word-break: break-word; }
.person-details a { color: var(--sl-ink); font-weight: 600; }
.person-card__about { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--sl-border); }
.person-card__about h3 { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sl-muted); margin: 0 0 6px; }
.person-card__about p { margin: 0; font-size: 0.93rem; line-height: 1.6; color: var(--sl-ink); }

.record-list { display: grid; gap: 14px; }
.record {
    padding: 18px 20px;
    border: 1px solid var(--sl-border);
    border-radius: var(--sl-radius);
    background: #ffffff;
}
.record__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.record__head h3 { font-size: 1.05rem; margin: 0 0 2px; }
.record__head p { margin: 0; font-size: 0.9rem; }
.record__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px 18px;
    margin: 0;
    padding: 14px 0 0;
    border-top: 1px solid var(--sl-border);
}
.record__grid dt { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sl-muted); }
.record__grid dd { margin: 2px 0 0; font-size: 0.93rem; font-weight: 600; color: var(--sl-ink); }
.record__desc {
    margin: 14px 0 0;
    padding: 12px 14px;
    background: var(--sl-bg-muted);
    border-radius: var(--sl-radius);
    font-size: 0.93rem;
    line-height: 1.6;
    color: var(--sl-ink);
}
@media (max-width: 1100px) {
    .person-layout { grid-template-columns: 1fr; }
    .admin-content .person-card { position: static; }
}

/* Sidebar sections */
.admin-sidebar-nav__heading {
    display: block;
    margin: 18px 14px 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
}
.admin-sidebar-nav__heading:first-child { margin-top: 4px; }
@media (max-width: 992px) and (min-width: 769px) {
    .admin-sidebar-nav__heading { display: none; }
}

/* People toolbar — keep search inside the card, no horizontal scroll */
.people-toolbar { flex-wrap: wrap; align-items: flex-end; }
.people-toolbar > div { flex: 1 1 280px; min-width: 0; }
.people-search {
    flex: 0 1 440px;
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0;
}
.people-search input[type=search] {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    margin: 0;
}
.people-search .btn { flex: 0 0 auto; margin: 0; white-space: nowrap; }
@media (max-width: 640px) {
    .people-search { flex: 1 1 100%; }
}

.people-table td { vertical-align: top; }
.people-contact { overflow-wrap: anywhere; min-width: 180px; }
.people-table .muted i { font-size: 0.8em; margin-right: 2px; }
.people-table td.table-actions { vertical-align: middle; }

/* Admin add / edit */
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.admin-content .card .card-head h2 { margin: 0; }
.record__actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.admin-topbar-actions .btn i { font-size: 0.85em; }
.password-field { display: flex; gap: 8px; }
.password-field input { flex: 1 1 auto; min-width: 0; }
.password-field .btn { flex: 0 0 auto; }

/* Users — filters, status, account management */
.users-filters { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--sl-bg-muted); border: 1px solid var(--sl-border); border-radius: var(--sl-radius); }
.filter-tabs a { padding: 7px 12px; border-radius: 4px; font-size: 0.9rem; font-weight: 600; color: var(--sl-muted); }
.filter-tabs a span { margin-left: 4px; font-size: 0.78rem; font-weight: 700; color: rgba(var(--sl-ink-rgb), 0.45); }
.filter-tabs a:hover { color: var(--sl-ink); }
.filter-tabs a.is-active { background: #ffffff; color: var(--sl-ink); box-shadow: 0 1px 2px rgba(0,0,0,0.06); }
.filter-tabs a.is-active span { color: var(--sl-lime-deep); }
.people-search select { min-height: 38px; padding: 6px 30px 6px 10px; border: 1px solid var(--sl-border); border-radius: var(--sl-radius); font: inherit; font-size: 0.9rem; background-color: #fff; }
.users-summary { margin: -4px 0 14px; }
.users-summary a { font-weight: 700; color: var(--sl-ink); }
.sort-link { color: inherit; }
.sort-link:hover, .sort-link.is-active { color: var(--sl-ink); }
.admin-table tr.is-suspended td { background: #fdf6f6; }
.admin-table tr.is-suspended .people-name { color: rgba(var(--sl-ink-rgb), 0.6); }
.stat-card--link { display: block; color: inherit; transition: border-color var(--transition), box-shadow var(--transition); }
.stat-card--link:hover { border-color: rgba(var(--sl-ink-rgb), 0.25); box-shadow: var(--sl-shadow-md); color: inherit; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.pager div { display: flex; gap: 8px; }
.badge-danger { background: #fdecec; color: #b42318; }
.btn-danger { background: #b42318; border-color: #b42318; color: #fff; }
.btn-danger:hover { background: #912018; border-color: #912018; color: #fff; }
.btn-link-danger { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: #b42318; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.account-alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin-bottom: 20px; border-radius: var(--sl-radius); border: 1px solid; font-size: 0.93rem; line-height: 1.55; }
.account-alert i { margin-top: 3px; }
.account-alert strong { display: block; }
.account-alert--danger { background: #fdf3f2; border-color: #f4c7c3; color: #7a1d15; }
.account-alert--info { background: #f7fee7; border-color: rgba(var(--sl-lime-rgb), 0.5); color: var(--sl-ink); }
.temp-password { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1rem; padding: 2px 8px; background: #fff; border: 1px solid var(--sl-border); border-radius: 4px; user-select: all; }

.admin-content .account-card h2 { font-size: 1rem; margin-bottom: 12px; }
.account-actions { display: grid; gap: 2px; margin: 0 -8px; }
.account-actions form { margin: 0; }
.account-action {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 9px 8px; border: 0; border-radius: var(--sl-radius); background: none;
    font: inherit; font-size: 0.93rem; font-weight: 600; color: var(--sl-ink); text-align: left; cursor: pointer;
}
.account-action i { width: 18px; text-align: center; color: var(--sl-lime-deep); }
.account-action:hover { background: var(--sl-bg-muted); color: var(--sl-ink); }
.account-block { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--sl-border); }
.account-block summary { cursor: pointer; font-weight: 700; font-size: 0.93rem; color: var(--sl-ink); list-style: none; display: flex; align-items: center; justify-content: space-between; }
.account-block summary::-webkit-details-marker { display: none; }
.account-block summary::after { content: '+'; font-weight: 700; color: var(--sl-muted); }
.account-block[open] summary::after { content: '–'; }
.account-block form { margin-top: 12px; }
.account-block .form-group { margin-bottom: 10px; }
.account-block--danger summary { color: #b42318; }

/* Row action buttons (All users) */
.admin-table td, .admin-table td.table-actions, .people-table td.table-actions { vertical-align: top; }
.row-actions { display: flex; justify-content: flex-end; align-items: flex-start; gap: 6px; flex-wrap: nowrap; margin-top: -4px; }
.row-actions form { margin: 0; display: inline-flex; }
.admin-table td.table-actions .row-actions > * { margin-left: 0; }
.btn-xs { min-height: 30px; padding: 5px 10px; font-size: 0.8rem; font-weight: 700; gap: 6px; line-height: 1.2; box-shadow: none; }
.btn-xs i { font-size: 0.85em; }
.btn-warning-outline { background: #fff; color: #9a3412; border: 1px solid #fed7aa; }
.btn-warning-outline:hover { background: #fff7ed; border-color: #fdba74; color: #7c2d12; }
.row-actions .btn-danger { background: #fff; color: #b42318; border: 1px solid #f4c7c3; }
.row-actions .btn-danger:hover { background: #b42318; border-color: #b42318; color: #fff; }

/* Admin "view as" bar */
.impersonation-bar {
    position: sticky; top: 0; z-index: 2000;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px;
    padding: 8px 16px; background: #fef3c7; border-bottom: 1px solid #f59e0b;
    color: #78350f; font-size: 0.9rem; text-align: center;
}
.impersonation-bar i { margin-right: 4px; }
.impersonation-bar form { margin: 0; }
.impersonation-bar__btn { background: #78350f; border: 1px solid #78350f; color: #fff; }
.impersonation-bar__btn:hover { background: #451a03; border-color: #451a03; color: #fff; }
body:has(.impersonation-bar) .site-header { top: 38px; }
body:has(.impersonation-bar) .admin-topbar { top: 38px; }
body:has(.impersonation-bar) .admin-sidebar { top: 38px; }

/* Dashboard sidebar logo +20% */
.admin-logo .logo-img { height: 60px; max-width: 216px; }
.admin-sidebar .admin-logo .logo-img { height: 60px !important; max-height: none !important; width: auto !important; max-width: 216px !important; }

/* Lease, compliance and photo fields */
.compliance-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; margin-bottom: 20px; }
.compliance-item { margin: 0; padding: 14px 16px; border: 1px solid var(--sl-border); border-radius: var(--sl-radius); background: #fff; }
.compliance-item legend { padding: 0 4px; margin-left: -4px; font-weight: 700; font-size: 0.9rem; color: var(--sl-ink); }
.choice-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.choice-pills label { position: relative; cursor: pointer; margin: 0; }
.choice-pills input { position: absolute; opacity: 0; pointer-events: none; }
.choice-pills span { display: inline-block; padding: 6px 12px; border: 1px solid var(--sl-border); border-radius: var(--sl-radius); font-size: 0.85rem; font-weight: 600; color: var(--sl-muted); background: #fff; transition: all var(--transition); }
.choice-pills label:hover span { border-color: rgba(var(--sl-ink-rgb), 0.3); color: var(--sl-ink); }
.choice-pills input:checked + span { background: #f7fee7; border-color: var(--sl-lime-dark); color: var(--sl-ink); box-shadow: 0 0 0 2px rgba(var(--sl-lime-rgb), 0.2); }
.choice-pills input:focus-visible + span { outline: 2px solid var(--sl-lime-dark); outline-offset: 2px; }
.form-checkboxes--wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.form-checkboxes--wrap .form-group { margin-bottom: 6px; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.photo-tile { border: 1px solid var(--sl-border); border-radius: var(--sl-radius); overflow: hidden; background: #fff; }
.photo-tile img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--sl-bg-muted); }
.photo-tile__controls { display: flex; justify-content: space-between; gap: 6px; padding: 8px 10px; font-size: 0.8rem; font-weight: 600; }
.photo-tile__controls label { display: inline-flex; align-items: center; gap: 4px; margin: 0; cursor: pointer; }
.photo-tile__remove { color: #b42318; }
.photo-tile:has(.photo-tile__remove input:checked) img { opacity: 0.35; }
.photo-upload input[type=file] { display: block; width: 100%; padding: 14px; border: 1px dashed rgba(var(--sl-ink-rgb), 0.25); border-radius: var(--sl-radius); background: var(--sl-bg-muted); cursor: pointer; }
.photo-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.photo-preview img { width: 96px; height: 72px; object-fit: cover; border-radius: 4px; border: 1px solid var(--sl-border); }
.postcode-status { margin: 6px 0 0; min-height: 0; }
.postcode-status:empty { display: none; }
.postcode-status.is-error { color: #b42318; }
input.is-autofilled { background-color: #f7fee7 !important; transition: background-color 1s ease; }
.record__photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.record__photos img { width: 120px; height: 90px; object-fit: cover; border-radius: 4px; border: 1px solid var(--sl-border); }

/* Space between section divider line and heading */
.form-section-title { padding-top: 20px; }
.form-section-title:first-of-type { padding-top: 0; }

/* EPC register lookup */
.epc-lookup select[data-epc-pick] { margin-bottom: 8px; }
.epc-lookup .btn-sm { display: inline-flex; align-items: center; gap: 6px; }
.epc-lookup .form-hint.is-error { color: #b45309; }
.epc-card { display: flex; align-items: center; gap: 14px; margin: 4px 0 20px; padding: 12px 16px; border: 1px solid var(--sl-border); border-left: 4px solid var(--sl-lime); border-radius: var(--sl-radius); background: var(--sl-bg-muted); }
.epc-card[hidden] { display: none; }
.epc-card__band { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: var(--sl-radius); font-size: 1.25rem; font-weight: 800; color: #fff; background: #64748b; }
.epc-band-a { background: #008054; } .epc-band-b { background: #19b459; } .epc-band-c { background: #8dce46; }
.epc-band-d { background: #ffd500; color: var(--sl-ink); } .epc-band-e { background: #fcaa65; color: var(--sl-ink); }
.epc-band-f { background: #ef8023; } .epc-band-g { background: #e9153b; }
.epc-card__body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; font-size: 0.9rem; color: #475569; min-width: 0; }
.epc-card__body strong { color: var(--sl-ink); font-size: 0.95rem; }
.epc-card__expired { color: #b91c1c; font-style: normal; font-weight: 600; }
.epc-card__link { flex: 0 0 auto; font-size: 0.875rem; font-weight: 600; color: var(--sl-lime-deep); white-space: nowrap; }
.epc-card__link:hover { color: var(--sl-ink); }
@media (max-width: 640px) { .epc-card { flex-wrap: wrap; } .epc-card__link { width: 100%; } }

/* Town / county locked after a successful postcode lookup */
input.is-locked, input.is-locked:focus { background: var(--sl-bg-muted); color: #475569; cursor: default; box-shadow: none; }
.postcode-status .postcode-edit { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--sl-lime-deep); text-decoration: underline; cursor: pointer; }
.postcode-status .postcode-edit:hover { color: var(--sl-ink); }

/* EPC rating picker (A–G buttons in EPC colours) */
.epc-picker { margin: 0; padding: 0; border: 0; min-width: 0; }
.epc-picker legend { padding: 0; margin-bottom: 8px; font-weight: 600; color: var(--sl-ink); font-size: 0.9rem; }
.epc-scale { display: flex; flex-wrap: wrap; gap: 6px; }
.epc-option { position: relative; margin: 0; cursor: pointer; }
.epc-option input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.epc-option span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 10px; border-radius: var(--sl-radius); font-size: 1.1rem; font-weight: 800; color: #fff; background: #64748b; border: 2px solid transparent; opacity: 0.55; transition: opacity .15s, transform .15s, box-shadow .15s; user-select: none; }
.epc-option.epc-band-a span { background: #008054; }
.epc-option.epc-band-b span { background: #19b459; }
.epc-option.epc-band-c span { background: #8dce46; }
.epc-option.epc-band-d span { background: #ffd500; color: var(--sl-ink); }
.epc-option.epc-band-e span { background: #fcaa65; color: var(--sl-ink); }
.epc-option.epc-band-f span { background: #ef8023; }
.epc-option.epc-band-g span { background: #e9153b; }
.epc-option--unknown span { background: #fff; color: #475569; border-color: var(--sl-border); font-size: 0.85rem; font-weight: 600; opacity: 1; }
.epc-option:hover span { opacity: 0.9; }
.epc-option input:checked + span { opacity: 1; transform: translateY(-2px); border-color: var(--sl-ink); box-shadow: 0 0 0 2px #fff inset, 0 4px 10px rgba(15, 23, 42, 0.18); }
.epc-option--unknown input:checked + span { background: var(--sl-ink); color: #fff; border-color: var(--sl-ink); box-shadow: none; }
.epc-option input:focus-visible + span { outline: 3px solid var(--sl-lime); outline-offset: 2px; }
.epc-picker.is-autofilled .epc-option input:checked + span { box-shadow: 0 0 0 2px #fff inset, 0 0 0 4px var(--sl-lime); }
.epc-scale { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; max-width: 420px; }
.epc-option span { width: 100%; min-width: 0; padding: 0; }
.epc-option--unknown { grid-column: 1 / -1; justify-self: start; margin-top: 2px; }
.epc-option--unknown span { width: auto; height: 32px; padding: 0 12px; }

/* EPC: Look up button beside G, register details in the right-hand column */
.epc-scale { grid-template-columns: repeat(7, minmax(34px, 1fr)) auto; max-width: none; }
.epc-find { grid-column: 8; grid-row: 1; height: 44px; margin-left: 6px; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 0.875rem; }
.epc-option--unknown { grid-row: 2; }
.epc-lookup .epc-card { margin: 0 0 8px; padding: 10px 12px; gap: 12px; flex-wrap: wrap; }
.epc-lookup .epc-card__body { flex: 1 1 180px; }
.epc-lookup .epc-card__link { margin-left: auto; }
.epc-lookup .form-hint:empty { display: none; }
@media (max-width: 560px) {
    .epc-scale { grid-template-columns: repeat(7, minmax(0, 1fr)); }
    .epc-find { grid-column: 4 / -1; grid-row: 2; justify-self: end; margin-left: 0; margin-top: 2px; height: 32px; }
    .epc-option--unknown { grid-column: 1 / 4; }
}
.epc-lookup .epc-card { flex-wrap: nowrap; align-items: flex-start; }
.epc-lookup .epc-card__body { flex: 1 1 auto; font-size: 0.875rem; }
.epc-lookup .epc-card__body strong { font-size: 0.925rem; }
.epc-lookup .epc-card__link { margin-left: 0; white-space: nowrap; }
.epc-find.btn { line-height: 1; }
@media (max-width: 560px) { .epc-find.btn { height: 32px; padding: 0 12px; min-height: 0; } }

.epc-option--unknown[hidden] { display: none; }

/* Safety and compliance: one row per document with a segmented control */
.compliance-list { margin: 8px 0 20px; border: 1px solid var(--sl-border); border-radius: var(--sl-radius); background: #fff; }
.compliance-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 24px; padding: 14px 16px; }
.compliance-row + .compliance-row { border-top: 1px solid var(--sl-border); }
.compliance-row__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.compliance-row__label { font-weight: 700; font-size: 0.925rem; color: var(--sl-ink); }
.compliance-row__hint { font-size: 0.8rem; color: #64748b; }
.segmented { display: grid; grid-template-columns: repeat(4, 124px); gap: 6px; }
.segmented__opt { position: relative; margin: 0; cursor: pointer; }
.segmented__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.segmented__opt span { display: flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 8px; border: 1px solid var(--sl-border); border-radius: var(--sl-radius); background: #fff; font-size: 0.825rem; font-weight: 600; color: #475569; text-align: center; line-height: 1.15; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.segmented__opt span i { font-size: 0.8rem; }
.segmented__opt:hover span { border-color: #94a3b8; color: var(--sl-ink); }
.segmented__opt input:focus-visible + span { outline: 2px solid var(--sl-lime-dark); outline-offset: 2px; }
.segmented__opt--yes input:checked + span { background: #ecfccb; border-color: var(--sl-lime-dark); color: #365314; }
.segmented__opt--no input:checked + span { background: #fef2f2; border-color: #f87171; color: #991b1b; }
.segmented__opt--na input:checked + span { background: #f1f5f9; border-color: #64748b; color: var(--sl-ink); }
.segmented__opt--unsure input:checked + span { background: var(--sl-bg-muted); border-color: #94a3b8; color: var(--sl-ink); }
@media (max-width: 900px) {
    .compliance-row { grid-template-columns: 1fr; }
    .segmented { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .segmented__gap { display: none; }
}
.compliance-list { container-type: inline-size; }
@container (max-width: 860px) {
    .compliance-row { grid-template-columns: 1fr; gap: 10px; }
    .segmented { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@container (max-width: 480px) {
    .segmented { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .segmented__gap { display: none; }
}

/* EPC buttons: soften once a rating has been chosen */
.epc-scale:has(.epc-option:not(.epc-option--unknown) input:checked) .epc-option:not(.epc-option--unknown) input:not(:checked) + span { opacity: 0.22; filter: saturate(0.5); }
.epc-scale:has(.epc-option:not(.epc-option--unknown) input:checked) .epc-option:not(.epc-option--unknown):hover input:not(:checked) + span { opacity: 0.6; filter: none; }
.epc-option input:checked + span { box-shadow: 0 0 0 2px #fff inset, 0 2px 6px rgba(15, 23, 42, 0.12); transform: none; }

/* Minimum EPC (providers): chosen band and everything better stay coloured */
.epc-scale--min { grid-template-columns: repeat(5, minmax(34px, 56px)); }
.epc-scale--min .epc-option--unknown { grid-row: 2; grid-column: 1 / -1; }
.epc-scale--min .epc-option:not(.epc-option--unknown):has(~ .epc-option:not(.epc-option--unknown) input:checked) input + span { opacity: 0.8 !important; filter: none !important; }
.epc-picker--min + .form-hint { margin-top: 8px; }

/* band classes colour the button face only, not the wrapping label */
label.epc-option { background: transparent !important; color: inherit; }

/* Two-option segmented control (provider requirements) */
.segmented--2 { grid-template-columns: repeat(2, 150px); }
@container (max-width: 860px) { .segmented--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .segmented--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Matching: things to check (compliance gaps, lease differences) */
.match-reasons--concerns { margin-top: -4px; }
.match-reasons--concerns li { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.match-reasons--concerns li i { margin-right: 4px; font-size: 0.75rem; }

/* Admin match details */
.md-back { margin: 0 0 12px; font-size: 0.9rem; }
.md-back a { color: var(--sl-lime-deep); font-weight: 600; text-decoration: none; }
.md-picker .form-row { margin-bottom: 8px; }
.md-picker__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.md-picker__actions .form-hint { margin: 0; }
.md-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.md-summary__score { flex: 0 0 auto; width: 104px; height: 104px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--sl-bg-muted); border: 4px solid var(--sl-border); }
.md-summary__score strong { font-size: 1.75rem; line-height: 1; color: var(--sl-ink); }
.md-summary__score span { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: #64748b; margin-top: 4px; }
.md-summary__score.is-good { border-color: var(--sl-lime); background: #f7fee7; }
.md-summary__score.is-low { border-color: #fbbf24; background: #fffbeb; }
.md-summary__score.is-excluded { border-color: #f87171; background: #fef2f2; }
.md-summary__body { flex: 1 1 320px; min-width: 0; }
.md-summary__body h2 { margin: 0 0 8px; font-size: 1.2rem; }
.md-summary__body p { margin: 0 0 6px; }
.md-arrow { color: var(--sl-lime-dark); margin: 0 4px; }
.md-summary__meta { color: #64748b; font-size: 0.875rem; }
.md-exclusions { list-style: none; margin: 6px 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.md-exclusions li { color: #991b1b; font-size: 0.875rem; font-weight: 600; }
.md-exclusions i { margin-right: 6px; }
.md-summary__actions { flex: 1 1 100%; }
.md-summary__actions form { display: flex; flex-wrap: wrap; gap: 8px; }
.md-summary__actions input[type="text"] { flex: 1 1 260px; }
.md-sides { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; margin-bottom: 16px; }
.md-sides .card { margin: 0; }
.md-side h3 { margin: 6px 0 12px; }
.md-facts { display: grid; gap: 6px; margin: 0; }
.md-facts div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px; font-size: 0.9rem; }
.md-facts dt { color: #64748b; font-weight: 600; }
.md-facts dd { margin: 0; color: var(--sl-ink); }
.md-facts a { color: var(--sl-lime-deep); font-weight: 600; }
.md-desc { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--sl-border); font-size: 0.875rem; color: #475569; }
.md-table td, .md-table th { vertical-align: top; }
.md-table .md-group th { background: var(--sl-bg-muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: #475569; padding-top: 10px; padding-bottom: 10px; }
.md-table .md-base td { color: #475569; }
.md-points { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 700; }
.md-points.is-plus { color: var(--sl-lime-deep); }
.md-points.is-minus { color: #b91c1c; }
.md-table tfoot td { border-top: 2px solid var(--sl-ink); font-size: 1rem; }
.md-status { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
.md-status.md-pass { background: #ecfccb; color: #3f6212; }
.md-status.md-fail { background: #fee2e2; color: #991b1b; }
.md-status.md-warn { background: #fef3c7; color: #92400e; }
.md-status.md-info { background: #f1f5f9; color: #64748b; }
.md-status.md-excluded { background: #991b1b; color: #fff; }
.md-note { display: block; margin-top: 4px; font-size: 0.8rem; color: #64748b; }
.md-info-row td { color: #64748b; }
.md-excluded-row td { background: #fef2f2; }
.match-card__tools { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 720px) {
    .md-table thead { display: none; }
    .md-table tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--sl-border); }
    .md-table td { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px; border: 0; padding: 4px 12px; text-align: left; }
    .md-table td::before { content: attr(data-label); font-weight: 600; color: #64748b; font-size: 0.8rem; }
    .md-table .md-base td, .md-table tfoot td { display: table-cell; }
    .md-table .md-base td::before, .md-table tfoot td::before { content: none; }
    .md-table .md-group th { display: block; }
}
