/* Gitcoom design system
   Coral from the logo (#ff7d7d) with a deeper coral for text and buttons (5.2:1 on white), navy ink from
   the wordmark, system typography, card UI. Motion uses transform/opacity only and is off under
   prefers-reduced-motion. Mobile first. */

:root {
    --brand: #ff7d7d;
    --brand-strong: #c7374a;
    --brand-deep: #a42a3c;
    --brand-tint: #fff1f1;
    --brand-tint-2: #ffe3e3;
    --ink: #1e1e2e;
    --ink-2: #3a3a4c;
    --muted: #64647a;
    --subtle: #8a8a9c;
    --line: #e7e5ea;
    --line-soft: #f1eff3;
    --surface: #f7f6f8;
    --white: #fff;

    --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --pill: 999px;

    --shadow-1: 0 1px 2px rgba(30, 30, 46, .04), 0 1px 3px rgba(30, 30, 46, .06);
    --shadow-2: 0 2px 6px rgba(30, 30, 46, .04), 0 12px 28px rgba(30, 30, 46, .08);
    --shadow-3: 0 8px 18px rgba(30, 30, 46, .06), 0 24px 52px rgba(30, 30, 46, .12);

    --ease: cubic-bezier(.2, .7, .2, 1);
    --fast: 160ms;
    --med: 320ms;
    --slow: 640ms;

    --container: 1200px;
    --gutter: clamp(18px, 4vw, 40px);
    --header-h: 64px;
    --focus: 0 0 0 3px #fff, 0 0 0 5px var(--brand-strong);
}

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
a { color: var(--brand-strong); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 780px; }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: 16px; top: -100px; z-index: 100; padding: 10px 16px;
    background: var(--ink); color: #fff; border-radius: var(--pill); font-weight: 600;
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* ---------- Typography ---------- */

.eyebrow {
    display: inline-block; margin-bottom: 10px;
    font-size: 13px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase;
    color: var(--brand-strong);
}
.display { font-size: clamp(2.5rem, 1.3rem + 5vw, 4.75rem); line-height: 1.02; font-weight: 750; letter-spacing: -.04em; }
.display em { font-style: normal; color: var(--brand-strong); }
.title-1 { font-size: clamp(1.95rem, 1.2rem + 2.6vw, 3.1rem); line-height: 1.08; font-weight: 720; letter-spacing: -.03em; overflow-wrap: anywhere; }
.title-2 { font-size: clamp(1.6rem, 1.1rem + 1.7vw, 2.4rem); line-height: 1.1; font-weight: 720; letter-spacing: -.025em; }
.title-3 { font-size: 1.25rem; line-height: 1.25; font-weight: 650; letter-spacing: -.012em; }
.lead { font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem); line-height: 1.5; color: var(--muted); letter-spacing: -.005em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 24px; border-radius: var(--pill); border: 1px solid transparent;
    font-size: 16px; font-weight: 620; letter-spacing: -.005em; line-height: 1;
    text-decoration: none; white-space: nowrap;
    transition: transform var(--fast) var(--ease), background-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease), color var(--fast) var(--ease), border-color var(--fast) var(--ease);
    -webkit-tap-highlight-color: transparent;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--brand-strong); color: #fff; }
.btn--primary:hover { background: var(--brand-deep); box-shadow: 0 8px 20px rgba(199, 55, 74, .28); }
.btn--secondary { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn--secondary:hover { border-color: #cfccd4; background: var(--surface); }
.btn--light { background: #fff; color: var(--brand-deep); }
.btn--light:hover { background: #fff5f5; }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--outline-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn--block { width: 100%; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 15px; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 620; }
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--fast) var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--med) var(--ease), box-shadow var(--med) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(30, 30, 46, .06); }
.header-bar { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; min-height: 44px; border-radius: 8px; }
.brand img { width: 132px; height: auto; }
.nav { display: none; margin-left: auto; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.nav-link {
    display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 14px;
    border-radius: var(--pill); border: 0; background: none; color: var(--ink-2);
    font-size: 15px; font-weight: 520;
    transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.nav-link:hover { background: var(--surface); color: var(--ink); text-decoration: none; }
.nav-link[aria-current="page"] { color: var(--brand-strong); }
.nav-link svg { width: 14px; height: 14px; transition: transform var(--fast) var(--ease); }
.nav-link[aria-expanded="true"] svg { transform: rotate(180deg); }
.dropdown {
    position: absolute; top: calc(100% + 8px); left: 50%; width: min(580px, 90vw); padding: 24px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-3);
    opacity: 0; visibility: hidden; transform: translate(-50%, -6px);
    transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease), visibility 0s linear var(--fast);
}
.dropdown.is-open { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease), visibility 0s; }
.dropdown h2 { font-size: 12px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--subtle); margin-bottom: 8px; }
.dropdown a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; margin-inline: -10px; border-radius: var(--radius-sm); color: var(--ink); font-size: 15px; }
.dropdown a:hover { background: var(--surface); text-decoration: none; }
.dropdown a span { color: var(--subtle); font-size: 13px; font-variant-numeric: tabular-nums; }
.dropdown .dropdown-all { color: var(--brand-strong); font-weight: 620; margin-top: 6px; }

.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.header-cta { display: none; }
.icon-btn {
    display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--pill);
    border: 0; background: transparent; color: var(--ink-2);
    transition: background-color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.icon-btn:hover { background: var(--surface); color: var(--ink); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 20px; height: 20px; }
.menu-toggle .bars { position: relative; width: 20px; height: 14px; }
.menu-toggle .bars span {
    position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor;
    transition: transform var(--med) var(--ease), opacity var(--fast) var(--ease), top var(--med) var(--ease);
}
.menu-toggle .bars span:nth-child(1) { top: 0; }
.menu-toggle .bars span:nth-child(2) { top: 6px; }
.menu-toggle .bars span:nth-child(3) { top: 12px; }
.menu-toggle[aria-expanded="true"] .bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; transform: scaleX(.3); }
.menu-toggle[aria-expanded="true"] .bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.mobile-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--med) var(--ease); border-top: 1px solid transparent; }
.mobile-panel > div { overflow: hidden; }
.mobile-panel.is-open { grid-template-rows: 1fr; border-top-color: var(--line); }
.mobile-panel-inner {
    padding: 8px var(--gutter) 28px; max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    opacity: 0; transform: translateY(-8px); transition: opacity var(--med) var(--ease), transform var(--med) var(--ease);
}
.mobile-panel.is-open .mobile-panel-inner { opacity: 1; transform: none; }
.mobile-nav a {
    display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line-soft);
    color: var(--ink); font-size: 20px; font-weight: 650; letter-spacing: -.015em;
}
.mobile-nav a:hover { text-decoration: none; color: var(--brand-strong); }
.mobile-panel h2 { margin: 24px 0 10px; font-size: 12px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--subtle); }

@media (min-width: 900px) {
    .nav { display: flex; }
    .header-actions { margin-left: 8px; }
    .header-cta { display: inline-flex; }
    .menu-toggle, .mobile-panel { display: none; }
}

/* ---------- Breadcrumbs ---------- */

.breadcrumbs { padding-top: 18px; }
.breadcrumbs ol { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 14px; color: var(--muted); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.breadcrumbs li + li::before {
    content: ""; width: 6px; height: 6px; margin-right: 4px;
    border-right: 1.5px solid #bcb9c2; border-top: 1.5px solid #bcb9c2; transform: rotate(45deg);
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand-strong); }
.breadcrumbs [aria-current] { color: var(--ink-2); max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Sections ---------- */

.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(36px, 5vw, 64px); }
.section--surface { background: var(--surface); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 32px; margin-bottom: clamp(24px, 4vw, 44px); }
.section-head > div { max-width: 640px; }
.section-head .lead { margin-top: 10px; }

/* ---------- Hero and search ---------- */

.hero {
    position: relative; overflow: hidden;
    padding-block: clamp(48px, 9vw, 120px) clamp(48px, 7vw, 96px);
    background:
        radial-gradient(60rem 30rem at 12% -10%, var(--brand-tint-2), transparent 60%),
        radial-gradient(40rem 26rem at 100% 0%, #fff4e8, transparent 60%),
        var(--white);
}
.hero .lead { max-width: 620px; margin-top: 18px; }
.hero .display { max-width: 14ch; }

.search-panel {
    display: grid; gap: 10px; margin-top: clamp(24px, 4vw, 40px); padding: 10px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-2);
    max-width: 980px;
    transition: box-shadow var(--med) var(--ease), border-color var(--med) var(--ease);
}
.search-panel:focus-within { border-color: #f3b9bf; box-shadow: 0 0 0 4px var(--brand-tint), var(--shadow-2); }
.search-panel--page { box-shadow: var(--shadow-1); margin-top: 22px; }
.field { position: relative; display: flex; align-items: center; min-width: 0; }
.field svg { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--subtle); pointer-events: none; }
.field input, .field select {
    width: 100%; min-height: 50px; padding: 0 14px 0 42px; border: 1px solid var(--line-soft); border-radius: 14px;
    background: var(--surface); font-size: 16px; color: var(--ink); appearance: none; -webkit-appearance: none;
    transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.field select { padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--subtle) 50%), linear-gradient(135deg, var(--subtle) 50%, transparent 50%); background-position: right 18px center, right 13px center; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field select:focus { outline: none; background-color: #fff; border-color: #f0aeb5; }
.search-panel .btn { min-height: 50px; border-radius: 14px; }
@media (min-width: 760px) {
    .search-panel { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) auto; }
}
.hero-stats { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; color: var(--muted); font-size: 15px; }
.hero-stats strong { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }

.inline-search {
    position: relative; display: flex; gap: 8px; align-items: center; max-width: 560px; margin-top: 22px;
}
.inline-search svg { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--subtle); pointer-events: none; }
.inline-search input {
    flex: 1; min-width: 0; min-height: 46px; padding: 0 14px 0 42px; border: 1px solid var(--line); border-radius: var(--pill);
    background: #fff; font-size: 16px;
}
.inline-search input:focus { outline: none; border-color: #f0aeb5; box-shadow: 0 0 0 4px var(--brand-tint); }

/* ---------- Grids, tiles, cards ---------- */

.grid { display: grid; gap: clamp(14px, 2vw, 24px); }
.grid--tiles { grid-template-columns: 1fr; }
.grid--cards { grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid--tiles, .grid--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .grid--tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } .grid--cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.tile {
    display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 14px 16px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink);
    transition: transform var(--med) var(--ease), box-shadow var(--med) var(--ease), border-color var(--med) var(--ease);
}
.tile:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: transparent; }
.tile:active { transform: scale(.98); }
.tile-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-tint); color: var(--brand-strong); transition: background-color var(--med) var(--ease), color var(--med) var(--ease); }
.tile:hover .tile-icon { background: var(--brand-strong); color: #fff; }
.tile-icon svg { width: 22px; height: 22px; }
.tile-body { display: grid; min-width: 0; flex: 1; }
.tile-title { font-weight: 640; letter-spacing: -.01em; line-height: 1.25; overflow-wrap: anywhere; }
.tile-meta { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tile-arrow { width: 18px; height: 18px; flex: none; color: var(--subtle); transition: transform var(--fast) var(--ease), color var(--fast) var(--ease); }
.tile:hover .tile-arrow { transform: translateX(3px); color: var(--brand-strong); }

.type-list { display: flex; flex-wrap: wrap; gap: 10px; }
.type-pill {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
    border-radius: var(--pill); background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 560;
    transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.type-pill span { color: var(--muted); font-weight: 500; font-size: 14px; font-variant-numeric: tabular-nums; }
.type-pill:hover { text-decoration: none; border-color: #f0aeb5; background: var(--brand-tint); }
.type-pill:active { transform: scale(.97); }

.card {
    position: relative; display: flex; flex-direction: column; overflow: hidden;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    transition: transform var(--med) var(--ease), box-shadow var(--med) var(--ease), border-color var(--med) var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-3); border-color: transparent; }
.card:active { transform: scale(.99); }
.card-media { position: relative; aspect-ratio: 16 / 9; background: var(--surface); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--slow) var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.placeholder {
    position: relative; display: grid; place-items: center; width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--brand-tint) 0%, #fff7ef 100%); color: var(--brand-strong);
}
.placeholder span { font-size: 54px; font-weight: 760; letter-spacing: -.04em; color: rgba(199, 55, 74, .16); }
.placeholder svg { position: absolute; width: 34px; height: 34px; opacity: .9; }
.badge {
    position: absolute; left: 12px; top: 12px; padding: 5px 10px; border-radius: var(--pill);
    background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    color: var(--ink-2); font-size: 12px; font-weight: 650; letter-spacing: .01em;
}
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 20px 0; }
.card--plain .card-body { padding-top: 14px; }
.avatar {
    display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 14px;
    background: var(--brand-tint); color: var(--brand-strong); transition: background-color var(--med) var(--ease), color var(--med) var(--ease);
}
.avatar svg { width: 22px; height: 22px; }
.card--plain:hover .avatar { background: var(--brand-strong); color: #fff; }
.badge--inline { position: static; background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
.card-title { font-size: 1.08rem; line-height: 1.3; font-weight: 660; letter-spacing: -.012em; overflow-wrap: anywhere; }
.card-link { color: var(--ink); }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card-link:hover { text-decoration: none; color: var(--brand-strong); }
.card-meta { display: flex; align-items: flex-start; gap: 6px; font-size: 14px; color: var(--muted); }
.card-meta svg { width: 15px; height: 15px; flex: none; margin-top: 3px; }
.card-text { font-size: 15px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 4px; font-size: 13px; color: var(--subtle); }
.card-foot svg { width: 14px; height: 14px; }

/* ---------- Chips ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: var(--pill);
    background: var(--surface); border: 1px solid transparent; color: var(--ink-2); font-size: 15px; font-weight: 520;
    transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.chip span { color: var(--subtle); font-size: 13px; font-variant-numeric: tabular-nums; }
.chip svg { width: 14px; height: 14px; }
.chip:hover { text-decoration: none; background: var(--brand-tint); color: var(--brand-deep); }
.chip:active { transform: scale(.97); }
.chip--quiet { background: transparent; border-color: var(--line); }

/* ---------- Page head, archives ---------- */

.page-head { padding-block: clamp(20px, 4vw, 40px) clamp(24px, 4vw, 40px); }
.page-head .title-1 { max-width: 22ch; }
.page-head .lead { margin-top: 12px; max-width: 60ch; }
.answer { margin-top: 16px; max-width: 70ch; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--ink-2); }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; font-size: 14px; color: var(--muted); }
.meta-row > * { display: inline-flex; align-items: center; gap: 6px; }
.meta-row a { color: var(--muted); }
.meta-row a:hover { color: var(--brand-strong); }
.meta-row svg { width: 15px; height: 15px; }
.subnav { margin-top: 28px; }
.subnav h2 { margin-bottom: 12px; font-size: 12px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--subtle); }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-block: clamp(32px, 5vw, 56px) clamp(48px, 6vw, 80px); }
.pagination a, .pagination span[aria-current] {
    display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: var(--pill);
    font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-2);
    transition: background-color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.pagination a:hover { background: var(--surface); text-decoration: none; }
.pagination a:active { transform: scale(.94); }
.pagination span[aria-current] { background: var(--ink); color: #fff; }
.pagination .gap { color: var(--subtle); padding: 0 4px; }
.pagination svg { width: 18px; height: 18px; }
.grid--cards + .pagination:empty { display: none; }
section.container > .grid--cards:last-child { margin-bottom: clamp(48px, 6vw, 80px); }

.empty { display: grid; justify-items: center; gap: 14px; padding-block: clamp(40px, 8vw, 96px); text-align: center; }
.empty .lead { max-width: 46ch; }
.empty .chips, .empty .inline-search { justify-content: center; margin-inline: auto; }
.empty .inline-search { width: 100%; }
.empty-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--brand-tint); color: var(--brand-strong); }
.empty-icon svg { width: 28px; height: 28px; }
.not-found .title-1 { max-width: none; }

/* ---------- Listing detail ---------- */

.detail { display: grid; gap: clamp(24px, 4vw, 48px); padding-bottom: clamp(48px, 7vw, 96px); }
.detail-main { display: grid; gap: 28px; align-content: start; min-width: 0; }
@media (min-width: 960px) { .detail { grid-template-columns: minmax(0, 1fr) 360px; } }
.facts { padding: clamp(20px, 3vw, 28px); border-radius: var(--radius-lg); background: linear-gradient(160deg, var(--brand-tint) 0%, #fff 70%); border: 1px solid #f7dcdf; }
.facts h2 { font-size: 12px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--brand-strong); margin-bottom: 10px; }
.facts p { font-size: 1.08rem; color: var(--ink); }
.facts dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin-top: 18px; font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { color: var(--ink); overflow-wrap: anywhere; }
.detail-media { border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.detail-media img { width: 100%; max-height: 520px; object-fit: cover; }
.aside { display: grid; gap: 16px; align-content: start; }
@media (min-width: 960px) { .aside { position: sticky; top: calc(var(--header-h) + 20px); } }
.panel { display: grid; gap: 12px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); }
.panel h2 { font-size: 1.15rem; font-weight: 680; letter-spacing: -.015em; }
.contact-list { display: grid; gap: 14px; margin-top: 4px; }
.contact-list li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; }
.contact-list svg { width: 18px; height: 18px; color: var(--brand-strong); margin-top: 2px; }
.contact-list .label { display: block; font-size: 13px; color: var(--muted); }
.contact-list .value { display: block; color: var(--ink); overflow-wrap: anywhere; }
.contact-list a.value { color: var(--brand-strong); }
.hours { width: 100%; border-collapse: collapse; font-size: 15px; }
.hours th, .hours td { padding: 7px 0; border-bottom: 1px solid var(--line-soft); text-align: left; }
.hours th { font-weight: 560; color: var(--ink-2); }
.hours td { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.faq details { border-bottom: 1px solid var(--line); padding-block: 14px; }
.faq summary { cursor: pointer; font-weight: 620; }
.faq details p { margin-top: 8px; color: var(--ink-2); }
.call-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 10px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
}
.call-bar .btn { flex: 1; }
.has-call-bar .site-footer { padding-bottom: 88px; }
@media (min-width: 960px) { .call-bar { display: none; } .has-call-bar .site-footer { padding-bottom: 0; } }

/* ---------- Articles ---------- */

.article-head { padding-block: clamp(20px, 4vw, 40px) 24px; }
.article-media { margin-bottom: 32px; }
.article-media img { width: 100%; border-radius: var(--radius-lg); max-height: 520px; object-fit: cover; }
.prose { font-size: 18px; line-height: 1.7; color: var(--ink-2); overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); line-height: 1.25; letter-spacing: -.015em; margin-top: 1.6em; }
.prose h2 { font-size: 1.5rem; }
.prose h3 { font-size: 1.25rem; }
.prose img { height: auto; border-radius: var(--radius); }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(199, 55, 74, .35); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose blockquote { margin: 0; padding-left: 18px; border-left: 3px solid var(--brand); color: var(--ink); }
.prose iframe { max-width: 100%; border: 0; border-radius: var(--radius); }
.prose figure { margin-inline: 0; }
.prose .wp-caption, .prose figcaption { font-size: 14px; color: var(--muted); }
.container--narrow .subnav { margin-bottom: clamp(48px, 6vw, 80px); }

/* ---------- Search ---------- */

.search-results { padding-bottom: clamp(48px, 6vw, 80px); }
.results-status { color: var(--muted); font-size: 15px; margin-bottom: 18px; min-height: 1.5em; }
.results-status strong { color: var(--ink); }
.results { display: grid; gap: 10px; }
.result {
    display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center;
    padding: 12px 16px 12px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink);
    animation: rise var(--med) var(--ease) both; animation-delay: var(--delay, 0ms);
    transition: box-shadow var(--med) var(--ease), border-color var(--med) var(--ease), transform var(--med) var(--ease);
}
.result:hover { text-decoration: none; border-color: transparent; box-shadow: var(--shadow-2); transform: translateY(-1px); }
.result-thumb { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: var(--brand-tint); display: grid; place-items: center; color: var(--brand-strong); font-weight: 760; font-size: 22px; }
.result-thumb img { width: 100%; height: 100%; object-fit: cover; }
.result-body { display: grid; gap: 2px; min-width: 0; }
.result-title { font-weight: 640; letter-spacing: -.01em; overflow-wrap: anywhere; }
.result-title mark { background: none; color: var(--brand-strong); }
.result-meta { font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-type { font-size: 12px; font-weight: 650; color: var(--ink-2); background: var(--surface); padding: 4px 10px; border-radius: var(--pill); white-space: nowrap; }
@media (max-width: 599px) { .result { grid-template-columns: 48px minmax(0, 1fr); } .result-thumb { width: 48px; height: 48px; } .result-type { display: none; } }
.results-more { display: flex; justify-content: center; margin-top: 24px; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Directory ---------- */

.directory { display: grid; gap: 28px; padding-bottom: clamp(48px, 6vw, 80px); }
.directory-group { padding-top: 20px; border-top: 1px solid var(--line); }
.directory-letter { font-size: 1.25rem; font-weight: 700; letter-spacing: -.015em; margin-bottom: 12px; }
.directory-letter a { color: var(--ink); }
.directory-letter span, .directory-items span { color: var(--subtle); font-weight: 500; font-size: 13px; font-variant-numeric: tabular-nums; margin-left: 4px; }
.directory-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 20px; }
.directory-items a { padding: 6px 0; color: var(--ink-2); overflow-wrap: anywhere; }
.directory-items a:hover { color: var(--brand-strong); }
.empty-filter { color: var(--muted); }

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

.cta {
    position: relative; overflow: hidden; display: grid; gap: 14px; justify-items: start;
    padding: clamp(32px, 6vw, 64px); border-radius: 28px; color: #fff;
    background: radial-gradient(36rem 20rem at 90% 0%, rgba(255, 125, 125, .55), transparent 60%), linear-gradient(135deg, #1e1e2e 0%, #33233a 100%);
}
.cta p { max-width: 52ch; color: rgba(255, 255, 255, .82); font-size: 1.1rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

/* ---------- Footer ---------- */

.site-footer { margin-top: auto; background: #16161f; color: rgba(255, 255, 255, .72); font-size: 15px; }
.footer-top { display: grid; gap: 24px; padding-block: clamp(40px, 6vw, 64px) 28px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
@media (min-width: 800px) { .footer-top { grid-template-columns: 1fr minmax(280px, 380px); align-items: end; } }
.footer-brand img { width: 140px; height: auto; margin-bottom: 14px; }
.footer-brand p { max-width: 44ch; }
.footer-search { position: relative; }
.footer-search svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: rgba(255, 255, 255, .5); }
.footer-search input {
    width: 100%; min-height: 48px; padding: 0 16px 0 44px; border-radius: var(--pill); border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .06); color: #fff; font-size: 16px;
}
.footer-search input::placeholder { color: rgba(255, 255, 255, .5); }
.footer-search input:focus { outline: none; border-color: var(--brand); background: rgba(255, 255, 255, .1); }
.footer-grid { display: grid; gap: 32px; padding-block: 32px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.site-footer h2 { margin-bottom: 14px; font-size: 12px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 16px; }
.footer-links a { display: block; padding-block: 6px; color: rgba(255, 255, 255, .72); line-height: 1.35; overflow-wrap: anywhere; transition: color var(--fast) var(--ease); }
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-links .footer-more { color: var(--brand); font-weight: 600; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 22px 28px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: rgba(255, 255, 255, .5); }

/* ---------- Motion ---------- */

.reveal-ready .reveal { opacity: 0; transform: translateY(14px); transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); transition-delay: var(--delay, 0ms); }
.reveal-ready .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
    .reveal-ready .reveal { opacity: 1; transform: none; }
    .card:hover, .tile:hover, .result:hover { transform: none; }
    .card:hover .card-media img { transform: none; }
}
