/* CDH Productions — modern directory + software publisher.
   Mobile-first. Inter via Google Fonts (loaded in layout.twig).
   Single deep-teal accent. Generous whitespace. Soft elevation. */

:root {
    --c-text:        #0e1a26;
    --c-text-muted:  #54657a;
    --c-text-soft:   #7d8a9a;
    --c-border:      #e6ecf2;
    --c-border-hard: #d2dbe4;
    --c-bg:          #ffffff;
    --c-bg-alt:      #f4f7fa;
    --c-bg-tint:     #e9f3f5;
    --c-accent:      #0c6e7a;
    --c-accent-hover:#085761;
    --c-accent-soft: #e0f0f2;
    --c-accent-text: #0a4f59;
    --c-success:     #0f7a3f;
    --c-error:       #b3261e;
    --c-warn:        #b86b00;
    --c-gold:        #e0a416;

    --radius:    10px;
    --radius-lg: 16px;
    --radius-pill: 999px;

    --shadow-sm:  0 1px 2px rgba(15, 30, 50, 0.06);
    --shadow-md:  0 4px 12px rgba(15, 30, 50, 0.08), 0 1px 2px rgba(15, 30, 50, 0.04);
    --shadow-lg:  0 12px 32px rgba(15, 30, 50, 0.10), 0 4px 8px rgba(15, 30, 50, 0.05);
    --shadow-xl:  0 24px 60px rgba(15, 30, 50, 0.14);

    --max-width: 76rem;
    --header-h:  72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.55;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; height: auto; display: block; }

a {
    color: var(--c-accent);
    text-decoration: none;
    transition: color .15s ease;
}
a:hover { color: var(--c-accent-hover); }

p { margin: 0 0 1rem; }
h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 0.6em; letter-spacing: -0.01em; color: var(--c-text); }
h1 { font-size: clamp(2rem, 4.5vw, 2.875rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2rem);   font-weight: 700; letter-spacing: -0.015em; }
h3 { font-size: 1.125rem; font-weight: 600; }
h4 { font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--c-text-soft); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }
.lede { font-size: 1.125rem; color: var(--c-text-muted); }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0; border: 0;
    clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}
.skip-link {
    position: absolute; left: -1000px; top: 0;
    background: var(--c-accent); color: #fff;
    padding: 0.5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ============ Header ============ */
.site-header {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(140%) blur(8px);
    border-bottom: 1px solid var(--c-border);
    position: sticky;
    top: 0;
    z-index: 50;
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    height: var(--header-h);
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--c-accent);
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: -0.01em;
}
.brand:hover { color: var(--c-accent-hover); }
.brand-mark { color: currentColor; flex-shrink: 0; }
.brand-name { color: var(--c-text); }

.primary-nav { flex: 1; }
.primary-nav ul {
    list-style: none; padding: 0; margin: 0;
    display: flex; gap: 1.5rem;
    justify-content: center;
}
.primary-nav a {
    color: var(--c-text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.25rem;
    position: relative;
}
.primary-nav a:hover { color: var(--c-text); }

.header-cta { display: flex; align-items: center; gap: 0.5rem; }

/* ============ Buttons ============ */
.btn-primary, .btn-ghost, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 1.1rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s ease;
    line-height: 1;
}
.btn-primary {
    background: var(--c-accent);
    color: #fff;
    border-color: var(--c-accent);
    box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, var(--shadow-sm);
}
.btn-primary:hover { background: var(--c-accent-hover); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary {
    background: var(--c-bg);
    color: var(--c-text);
    border-color: var(--c-border-hard);
}
.btn-secondary:hover { background: var(--c-bg-alt); color: var(--c-text); }
.btn-ghost { background: transparent; color: var(--c-text-muted); }
.btn-ghost:hover { background: var(--c-bg-alt); color: var(--c-text); }

/* ============ Hero ============ */
.hero {
    background:
        radial-gradient(ellipse at top right, rgba(12,110,122,0.08) 0%, transparent 60%),
        radial-gradient(ellipse at top left, rgba(12,110,122,0.04) 0%, transparent 50%),
        linear-gradient(180deg, #f7fbfc 0%, #ffffff 100%);
    padding: 4rem 0 5rem;
    position: relative;
    overflow: hidden;
}
.hero::before {
    /* subtle wave decoration */
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 600' preserveAspectRatio='none'%3E%3Cpath d='M0,300 C200,200 400,400 600,300 C800,200 1000,400 1200,300' stroke='%230c6e7a' stroke-width='1' fill='none' opacity='0.08'/%3E%3Cpath d='M0,400 C200,300 400,500 600,400 C800,300 1000,500 1200,400' stroke='%230c6e7a' stroke-width='1' fill='none' opacity='0.05'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    pointer-events: none;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    position: relative;
    z-index: 1;
}
@media (min-width: 64rem) {
    .hero-inner { grid-template-columns: 1.05fr 1fr; align-items: center; }
}

.hero-copy h1 .accent { color: var(--c-accent); }
.hero-copy .lede { max-width: 32rem; }
.hero-search {
    margin-top: 1.5rem;
    display: flex;
    background: var(--c-bg);
    border: 1px solid var(--c-border-hard);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    max-width: 32rem;
}
.hero-search input {
    flex: 1;
    border: 0;
    padding: 0.95rem 1rem;
    font: inherit;
    color: var(--c-text);
    background: transparent;
    outline: none;
}
.hero-search input::placeholder { color: var(--c-text-soft); }
.hero-search button {
    background: var(--c-accent);
    color: #fff;
    border: 0;
    padding: 0 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}
.hero-search button:hover { background: var(--c-accent-hover); }

.popular-tags {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.85rem;
    align-items: center;
    color: var(--c-text-soft);
    font-size: 0.875rem;
}
.popular-tags strong { color: var(--c-text-muted); font-weight: 600; margin-right: 0.25rem; }
.popular-tags a {
    color: var(--c-accent);
    font-weight: 500;
}

/* ============ Hero "laptop" composition ============ */
.hero-art {
    position: relative;
    min-height: 380px;
    display: none;
}
@media (min-width: 64rem) {
    .hero-art { display: block; }
}
/* If a hero.png is dropped at /assets/hero.png, the user can override with this class. */
.hero-art img.hero-photo {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
}

.laptop {
    position: relative;
    width: 100%;
    max-width: 540px;
    margin-left: auto;
    aspect-ratio: 16 / 10;
    background: linear-gradient(160deg, #d8dce1 0%, #b8c0c8 100%);
    border-radius: 12px 12px 6px 6px;
    padding: 14px 14px 22px;
    box-shadow: var(--shadow-xl);
}
.laptop::after {
    /* base / hinge */
    content: '';
    position: absolute;
    bottom: -8px;
    left: -8%;
    right: -8%;
    height: 14px;
    background: linear-gradient(180deg, #b8c0c8 0%, #8d96a0 100%);
    border-radius: 0 0 14px 14px;
    box-shadow: 0 8px 16px rgba(15, 30, 50, 0.2);
}
.laptop-screen {
    width: 100%;
    height: 100%;
    background: var(--c-bg);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}
.laptop-screen .ls-header {
    background: var(--c-accent);
    color: #fff;
    padding: 0.55rem 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
}
.laptop-screen .ls-header .ls-mark {
    width: 14px; height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    flex-shrink: 0;
}
.laptop-screen .ls-search {
    background: var(--c-bg-alt);
    margin: 0.85rem 0.85rem 0.65rem;
    padding: 0.45rem 0.7rem;
    border-radius: 6px;
    color: var(--c-text-soft);
    font-size: 0.65rem;
    display: flex; align-items: center; gap: 0.4rem;
    border: 1px solid var(--c-border);
}
.laptop-screen .ls-cats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    padding: 0 0.85rem 0.65rem;
}
.laptop-screen .ls-cat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0.55rem 0.25rem;
    background: var(--c-bg-alt);
    border-radius: 6px;
    color: var(--c-text-muted);
    font-size: 0.55rem;
    font-weight: 500;
    text-align: center;
}
.laptop-screen .ls-cat svg { width: 16px; height: 16px; color: var(--c-accent); }
.laptop-screen .ls-list {
    margin: 0;
    padding: 0 0.85rem 0.85rem;
    list-style: none;
    flex: 1;
    overflow: hidden;
}
.laptop-screen .ls-list li {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--c-border);
    font-size: 0.6rem;
    color: var(--c-text);
    display: flex; align-items: center; gap: 0.35rem;
}
.laptop-screen .ls-list li:last-child { border-bottom: 0; }
.laptop-screen .ls-list .ls-rank {
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--c-accent-soft);
    color: var(--c-accent-text);
    font-size: 0.55rem;
    font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.hero-chip {
    position: absolute;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 0.7rem 0.9rem;
    display: flex; align-items: center; gap: 0.6rem;
    max-width: 16rem;
    z-index: 2;
}
.hero-chip .chip-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: var(--c-accent-soft);
    color: var(--c-accent);
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.hero-chip .chip-text strong { display: block; font-size: 0.875rem; color: var(--c-text); margin-bottom: 1px; }
.hero-chip .chip-text span { display: block; font-size: 0.75rem; color: var(--c-text-muted); line-height: 1.35; }

.hero-chip.chip-tl { top: 6%;   left: -10%; }
.hero-chip.chip-mr { top: 38%;  right: -8%; }
.hero-chip.chip-bl { bottom: 4%; left: -6%; }
@media (max-width: 80rem) {
    .hero-chip.chip-tl { left: 0; }
    .hero-chip.chip-mr { right: 0; }
    .hero-chip.chip-bl { left: 0; }
}

/* ============ Sections ============ */
.section { padding: 4rem 0; }
.section-tight { padding: 3rem 0; }
.section-alt { background: var(--c-bg-alt); }
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}
.section-head h2 { margin: 0; }
.section-head .section-link {
    color: var(--c-accent);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ============ Browse Categories grid ============ */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
}
@media (min-width: 30rem) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 64rem) { .cat-grid { grid-template-columns: repeat(8, 1fr); } }

.cat-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1.2rem 0.5rem;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    color: var(--c-text);
    text-align: center;
    transition: all 0.15s ease;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
}
.cat-tile:hover {
    background: var(--c-bg);
    border-color: var(--c-accent);
    color: var(--c-accent-text);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.cat-tile .cat-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: var(--c-accent-soft);
    color: var(--c-accent);
    display: inline-flex; align-items: center; justify-content: center;
}
.cat-tile .cat-icon svg { width: 22px; height: 22px; }

/* ============ Cat-grid + Featured Software side-by-side ============ */
.cat-software-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 64rem) {
    .cat-software-grid { grid-template-columns: 1.4fr 1fr; }
}

/* ============ Featured Software cards ============ */
.fs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 48rem) and (max-width: 64rem) { .fs-grid:not(.fs-grid-stack) { grid-template-columns: repeat(3, 1fr); } }

.fs-card {
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: all 0.15s ease;
}
.fs-card:hover { box-shadow: var(--shadow-md); border-color: var(--c-border-hard); transform: translateY(-2px); }
.fs-card .fs-head {
    display: flex; align-items: center; gap: 0.75rem;
}
.fs-card .fs-mark {
    width: 44px; height: 44px;
    border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
    color: #fff;
    background: var(--c-accent);
    font-size: 0.85rem;
}
.fs-card .fs-mark.fs-mark-warm { background: linear-gradient(135deg, #ee6c2c 0%, #d94a16 100%); }
.fs-card .fs-mark.fs-mark-cool { background: linear-gradient(135deg, #2c8ddc 0%, #1264b4 100%); }
.fs-card .fs-mark.fs-mark-deep { background: linear-gradient(135deg, #1f2735 0%, #060a14 100%); }
.fs-card h3 { margin: 0; font-size: 1rem; }
.fs-card p { margin: 0; color: var(--c-text-muted); font-size: 0.875rem; }
.fs-card .fs-link {
    color: var(--c-accent);
    font-weight: 600;
    font-size: 0.875rem;
    margin-top: auto;
    display: inline-flex; align-items: center; gap: 0.25rem;
}

/* ============ Top Listings table-like card ============ */
.top-listings {
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    overflow: hidden;
}
.top-row {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--c-border);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}
.top-row:hover { background: var(--c-bg-alt); color: var(--c-text); }
.top-row:last-child { border-bottom: 0; }
.top-row .top-rank {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--c-accent-soft);
    color: var(--c-accent-text);
    font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.875rem;
}
.top-row.is-1 .top-rank { background: var(--c-gold); color: #fff; }
.top-row.is-2 .top-rank { background: #c4cad1; color: #1f2735; }
.top-row.is-3 .top-rank { background: #d09150; color: #fff; }
.top-row .top-info strong { font-size: 0.9375rem; display: block; color: var(--c-text); }
.top-row .top-info .top-meta { font-size: 0.8125rem; color: var(--c-text-muted); }
.top-row .top-bid {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--c-text-muted);
    white-space: nowrap;
}

/* ============ Featured Categories pill row ============ */
.featured-cats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}
@media (min-width: 36rem) { .featured-cats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 48rem) { .featured-cats { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 72rem) { .featured-cats { grid-template-columns: repeat(8, 1fr); } }

.fc-pill {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.85rem 1rem;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--c-text);
    transition: all 0.15s ease;
    font-size: 0.875rem;
}
.fc-pill:hover { border-color: var(--c-accent); background: var(--c-bg); color: var(--c-accent-text); }
.fc-pill .fc-icon {
    width: 34px; height: 34px;
    border-radius: 8px;
    background: var(--c-accent-soft);
    color: var(--c-accent);
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.fc-pill .fc-icon svg { width: 18px; height: 18px; }
.fc-pill .fc-text strong { display: block; font-weight: 600; font-size: 0.875rem; }
.fc-pill .fc-text span { display: block; color: var(--c-text-soft); font-size: 0.75rem; }

/* ============ Trust strip ============ */
.trust-strip {
    background: linear-gradient(135deg, #0c6e7a 0%, #074a52 100%);
    color: #d8edf0;
}
.trust-strip .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
}
@media (min-width: 48rem) { .trust-strip .container { grid-template-columns: repeat(4, 1fr); } }
.trust-item { display: flex; align-items: center; gap: 0.75rem; }
.trust-item svg {
    width: 32px; height: 32px;
    color: #fff;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 6px;
    flex-shrink: 0;
}
.trust-item strong { display: block; color: #fff; font-size: 0.9375rem; font-weight: 600; }
.trust-item span   { display: block; font-size: 0.8125rem; color: #b9d6da; }

/* ============ Footer ============ */
.site-footer {
    margin-top: 0;
    padding: 3rem 0 1.5rem;
    background: #0e1a26;
    color: #b9c5d2;
}
.site-footer h4 { color: #fff; }
.site-footer .footer-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 36rem) { .site-footer .footer-cols { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .site-footer .footer-cols { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

.site-footer .footer-brand .brand-name { color: #fff; }
.site-footer .footer-brand .brand { color: #fff; }
.site-footer .footer-tag { margin-top: 0.75rem; color: #8a99a8; max-width: 22rem; font-size: 0.875rem; }
.site-footer ul {
    list-style: none; padding: 0; margin: 0;
    display: grid; gap: 0.5rem;
}
.site-footer li a { color: #b9c5d2; font-size: 0.875rem; }
.site-footer li a:hover { color: #fff; }
.footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #1c2a3a;
    display: flex; flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.8125rem;
    color: #6f7d8d;
}
.footer-also a { color: #b9c5d2; }
.footer-also a:hover { color: #fff; }

/* ============ Listings (used on category, search, etc.) ============ */
.page-head {
    padding: 2.5rem 0 1.5rem;
    background: linear-gradient(180deg, var(--c-bg-alt) 0%, var(--c-bg) 100%);
    border-bottom: 1px solid var(--c-border);
}
.page-head .breadcrumb { margin-bottom: 0.5rem; }
.page-head h1 { margin-bottom: 0.25rem; }

.breadcrumb ol {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-wrap: wrap; gap: 0.4rem;
    font-size: 0.875rem; color: var(--c-text-soft);
}
.breadcrumb a { color: var(--c-text-muted); }
.breadcrumb a:hover { color: var(--c-text); }
.breadcrumb li + li::before { content: "›"; margin-right: 0.4rem; color: var(--c-border-hard); }

.listings {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    display: grid;
    gap: 1rem;
    counter-reset: listing;
}
.listing {
    counter-increment: listing;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    background: var(--c-bg);
    transition: all 0.15s ease;
    position: relative;
}
.listing:hover { box-shadow: var(--shadow-md); border-color: var(--c-border-hard); }
.listing-title { margin: 0 0 0.25rem; font-size: 1.125rem; font-weight: 600; }
.listing-title a { color: var(--c-text); }
.listing-title a:hover { color: var(--c-accent); }
.listing-title::before {
    content: counter(listing) ". ";
    color: var(--c-text-soft);
    font-weight: 500;
    margin-right: 0.25rem;
}
.listing-meta { margin: 0 0 0.5rem; color: var(--c-text-soft); font-size: 0.8125rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }
.listing-meta a { color: var(--c-text-muted); }
.listing-meta .listing-url { color: var(--c-accent); }
.listing-desc { margin: 0; color: var(--c-text-muted); font-size: 0.9375rem; }

/* ============ Forms ============ */
.form-card {
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 2rem;
    max-width: 36rem;
}
.form-row { margin-bottom: 1.1rem; display: grid; gap: 0.35rem; }
.form-row label { font-weight: 600; font-size: 0.9375rem; }
.form-row input, .form-row select, .form-row textarea {
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--c-border-hard);
    border-radius: var(--radius);
    font: inherit;
    color: var(--c-text);
    background: var(--c-bg);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
    outline: none;
    border-color: var(--c-accent);
    box-shadow: 0 0 0 3px var(--c-accent-soft);
}
.form-row textarea { font-family: inherit; min-height: 6rem; }
.form-row small { color: var(--c-text-soft); font-size: 0.8125rem; }
.field-error { color: var(--c-error); margin: 0.25rem 0 0; font-size: 0.875rem; }

.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}
.alert-error { background: #fdecea; color: var(--c-error); border: 1px solid #f4c1bd; }

/* ============ Admin ============ */
.metric-grid {
    list-style: none; padding: 0; margin: 1.5rem 0 2rem;
    display: grid; gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}
.metric {
    padding: 1.25rem;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
}
.metric-label { color: var(--c-text-soft); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.metric-value { font-size: 2.25rem; font-weight: 700; line-height: 1.1; margin-top: 0.4rem; color: var(--c-text); }

.status-tabs {
    display: flex; gap: 0.5rem;
    border-bottom: 1px solid var(--c-border);
    margin: 1.25rem 0 1.5rem;
}
.status-tabs a {
    padding: 0.65rem 1rem;
    color: var(--c-text-muted);
    border-bottom: 2px solid transparent;
    font-weight: 500;
    font-size: 0.9375rem;
}
.status-tabs a:hover { color: var(--c-text); }
.status-tabs a.active {
    color: var(--c-accent-text);
    border-bottom-color: var(--c-accent);
    font-weight: 600;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    overflow: hidden;
}
.data-table th, .data-table td {
    text-align: left;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--c-border);
    vertical-align: top;
    font-size: 0.9375rem;
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table th {
    background: var(--c-bg-alt);
    font-weight: 600;
    color: var(--c-text-muted);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.inline-form { display: inline-block; margin: 0; }
.btn-inline {
    border: 1px solid var(--c-border-hard);
    background: var(--c-bg);
    border-radius: var(--radius);
    padding: 0.4rem 0.8rem;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--c-text);
    margin-right: 0.25rem;
    transition: all 0.15s ease;
}
.btn-inline:hover { background: var(--c-bg-alt); }
.btn-approve { border-color: var(--c-success); color: var(--c-success); }
.btn-approve:hover { background: var(--c-success); color: #fff; }
.btn-reject { border-color: var(--c-error); color: var(--c-error); }
.btn-reject:hover { background: var(--c-error); color: #fff; }
.actions { white-space: nowrap; }
.action-row { display: flex; gap: 0.75rem; align-items: center; margin-top: 1.5rem; }

dl.summary { display: grid; grid-template-columns: 11rem 1fr; gap: 0.5rem 1.25rem; margin: 1rem 0 1.75rem; padding: 1.25rem; background: var(--c-bg-alt); border-radius: var(--radius); }
dl.summary dt { font-weight: 600; color: var(--c-text-muted); font-size: 0.875rem; }
dl.summary dd { margin: 0; font-size: 0.9375rem; }

/* ============ Misc & responsive ============ */
@media (max-width: 48rem) {
    .header-inner { gap: 0.75rem; }
    .primary-nav { display: none; }
    .header-cta .btn-primary { padding: 0.5rem 0.85rem; font-size: 0.875rem; }
    .hero { padding: 2.5rem 0 3rem; }
    .section { padding: 2.5rem 0; }
}
