.search kbd { white-space: nowrap; }

.search input[type="search"] {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
}

.page > h1,
.page .page-head h1 {
    margin: 0 0 8px;
    font-family: var(--display);
    font-size: clamp(34px, 4vw, 48px);
    letter-spacing: -0.03em;
    font-weight: 400;
    line-height: 1.05;
}

.page > h1 + p.muted,
.lede { max-width: 680px; }

.page h2 {
    font-size: 15px;
    letter-spacing: -0.02em;
    margin: 1.6rem 0 0.75rem;
}

.page h3 { letter-spacing: -0.03em; }

.meta { color: var(--muted); font-size: 13px; }

.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 22px;
    align-items: center;
}

.filters input,
.filters select {
    width: auto;
    flex: 1 1 200px;
    min-width: 160px;
}

.filters button {
    width: auto;
    flex: 0 0 auto;
    border: 0;
    border-radius: 999px;
    padding: 11px 16px;
    background: var(--ink);
    color: #fffdf8;
    font-weight: 650;
    cursor: pointer;
}

.filters button:hover { background: #2c241c; }

.tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 18px;
}

a.card.tile {
    display: block;
    padding: 0;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}

a.card.tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    color: inherit;
}

.tile img,
.tile .placeholder {
    width: 100%;
    height: 168px;
    object-fit: cover;
    display: block;
    background: #d8cbb8;
}

.tile .placeholder {
    background: linear-gradient(135deg, #3d3429, #c45c26);
}

.tile-body { padding: 16px 16px 18px; }
.tile h3 { margin: 0 0 4px; font-size: 17px; }

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin: 2rem 0 0.75rem;
}

.section-head h2 { margin: 0; }

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px 24px;
    margin-top: 16px;
}

.panel h2 { margin-top: 0; }

.page table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.page th {
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--surface-2);
    white-space: nowrap;
}

.page td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

.page tr:last-child td { border-bottom: 0; }
.page tbody tr:hover { background: #fbf6ee; }

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.gallery figure {
    margin: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 6px;
    box-shadow: var(--shadow);
}

.gallery img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
}

.gallery figcaption {
    font-size: 13px;
    color: var(--muted);
    margin-top: 6px;
}

.pager {
    margin-top: 18px;
    display: flex;
    gap: 14px;
    align-items: center;
    color: var(--muted);
}

.ok { color: var(--ok); font-weight: 700; }
.missing { color: var(--faint); }

.section-nav,
.search-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}

.section-nav a,
.search-summary a {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink-soft);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 650;
}

.section-nav a:hover,
.search-summary a:hover {
    background: var(--ink);
    color: #fffdf8;
    border-color: var(--ink);
}

.crumb { margin: 0 0 10px; }

article {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px 20px;
    margin-bottom: 12px;
}

.metric-static { cursor: default; }
.metric-static:hover { transform: none; border-color: var(--line); }

.metrics.wide {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.login-body {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 32px 16px;
}

.login-shell { width: min(420px, 100%); }

.login-card h1 {
    margin: 8px 0 0;
    font-family: var(--display);
    font-size: 40px;
    letter-spacing: -0.03em;
    font-weight: 400;
}

.login-card .brand-logo { margin-bottom: 18px; }

.login-card .btn { width: 100%; margin-top: 6px; }

.sign-out {
    margin-top: 10px;
}

.sign-out button {
    border: 0;
    background: transparent;
    color: inherit;
    padding: 0;
    font: inherit;
    cursor: pointer;
    opacity: 0.75;
}

.sign-out button:hover { opacity: 1; }
