/* =============================================================
   Linza Photographics — style.css
   Mobile-first. All design tokens live in :root — edit here
   to retheme, not scattered through the file.
   ============================================================= */

/* ── Tokens ──────────────────────────────────────────────── */

:root {
    --color-bg:          #fafaf7;
    --color-ink:         #1a1a1a;
    --color-ink-muted:   #7a7a7a;
    --color-placeholder: #efefef;
    --color-accent:      #1e2d4a;
    --color-line:        rgba(26, 26, 26, 0.1);

    --font-body: 'Inter', system-ui, sans-serif;
    --font-mono: ui-monospace, 'Courier New', monospace;

    --space-1:  4px;
    --space-2:  8px;
    --space-3:  12px;
    --space-4:  16px;
    --space-6:  24px;
    --space-8:  32px;
    --space-12: 48px;
    --space-16: 64px;

    /* Layout — mobile base, overridden at larger breakpoints */
    --outer-pad: var(--space-4);
    --grid-gap:  8px;
    --sidebar-w: 220px;
    --detail-w:  320px;
}

@media (min-width: 640px) {
    :root {
        --outer-pad: var(--space-6);
        --grid-gap:  12px;
    }
}

@media (min-width: 960px) {
    :root {
        --outer-pad: var(--space-8);
        --grid-gap:  14px;
    }
}

/* ── Reset ───────────────────────────────────────────────── */

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

html { font-size: 16px; }

body {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-ink);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img  { display: block; max-width: 100%; height: auto; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }

/* ── Utility ─────────────────────────────────────────────── */

.mono  { font-family: var(--font-mono); }
.muted { color: var(--color-ink-muted); }

/* CSS-only photo placeholder — used before real images are uploaded.
   Set style="aspect-ratio: {width}/{height}" inline for correct proportions. */
.photo-placeholder {
    background: var(--color-placeholder);
    width: 100%;
}

/* Dev-only helper shown in stub pages */
.placeholder {
    padding: var(--space-8) var(--outer-pad);
    color: var(--color-ink-muted);
    font-size: 13px;
}

/* ── Layout container ────────────────────────────────────── */

.container {
    width: 100%;
    max-width: 1600px;
    margin-inline: auto;
    padding-inline: var(--outer-pad);
}

/* ── Site header / nav ───────────────────────────────────── */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-line);
}

.site-nav {
    /* relative so the mobile dropdown positions against the nav bar */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1600px;
    margin-inline: auto;
    padding: var(--space-3) var(--outer-pad);
}

.nav-logo {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.nav-links {
    display: none;
    gap: var(--space-6);
}

.nav-links a {
    font-size: 12px;
    color: var(--color-ink-muted);
    transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active { color: var(--color-ink); }

/* Mobile nav — shown when toggled open */
.nav-links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    padding: var(--space-4) var(--outer-pad) var(--space-6);
    border-bottom: 1px solid var(--color-line);
    gap: var(--space-4);
    z-index: 99;
}

.nav-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: var(--color-ink);
    padding: var(--space-1);
    line-height: 1;
}

@media (min-width: 640px) {
    .nav-links       { display: flex; }
    .nav-menu-toggle { display: none; }
}

/* ── Site footer ─────────────────────────────────────────── */

.site-footer {
    padding: var(--space-8) var(--outer-pad);
    font-size: 11px;
    color: var(--color-ink-muted);
    border-top: 1px solid var(--color-line);
    font-family: var(--font-mono);
    max-width: 1600px;
    margin-inline: auto;
}

/* ── Gallery — Phase 3 ───────────────────────────────────── */

.gallery-body {
    padding: var(--space-4) var(--outer-pad) var(--space-16);
}

.gallery-main {
    width: 100%;
}

/* Year separator: italic year number, horizontal rule, frame count */
.year-separator {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-6) 0 var(--space-3);
}

.year-num {
    font-size: 22px;
    font-style: italic;
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1;
    flex-shrink: 0;
}

.year-rule {
    flex: 1;
    height: 1px;
    background: var(--color-line);
}

.year-count {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--color-ink-muted);
    flex-shrink: 0;
}

/* Mini hero — mobile version: row above the grid */
.mini-hero-mobile {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) 0 var(--space-4);
}

/* Mini hero — desktop version: lives inside the grid, hidden on mobile */
.mini-hero-desktop {
    display: none;
}

.mini-hero-portrait {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-placeholder);
    flex-shrink: 0;
}

.mini-hero-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-ink);
    line-height: 1.3;
}

.mini-hero-bio {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--color-ink-muted);
    margin-top: 2px;
}

/* Photo grid: 2 columns on mobile, fixed photo heights for a clean look */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--grid-gap);
    margin-bottom: var(--space-8);
}

.photo-thumb {
    display: block;
    overflow: hidden;
}

.photo-thumb img {
    display: block;
    width: 100%;
    height: 140px;
    object-fit: cover;
    transition: opacity 0.2s;
}

.photo-thumb .photo-placeholder {
    height: 140px;
}

/* Feature photo: taller and full-width on mobile */
.photo-feature {
    grid-column: 1 / -1;
}

.photo-feature img,
.photo-feature .photo-placeholder {
    height: 200px;
}

.photo-thumb:hover img {
    opacity: 0.85;
}

/* Empty state when no photos match the current filter */
.gallery-empty {
    padding: var(--space-12) 0;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--color-ink-muted);
}

.gallery-empty a {
    color: var(--color-ink);
    text-decoration: underline;
}

/* Tablet: 4-column grid, slightly taller photos */
@media (min-width: 640px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .photo-feature {
        grid-column: span 2;
    }

    .photo-thumb img             { height: 160px; }
    .photo-feature img           { height: 260px; }
    .photo-thumb .photo-placeholder      { height: 160px; }
    .photo-feature .photo-placeholder    { height: 260px; }
}

/* Desktop: 6-column cascade grid with 60px auto-rows */
@media (min-width: 960px) {
    .gallery-body {
        display: flex;
        align-items: flex-start;
        gap: var(--space-12);
    }

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

    /* Hide the mobile mini hero above the grid; show the in-grid version instead */
    .mini-hero-mobile  { display: none; }
    .mini-hero-desktop {
        display: flex;
        align-items: center;
        gap: var(--space-4);
        grid-column: span 3;
        grid-row: span 2;
        padding: 0 var(--space-4);
        border-left: 1px solid var(--color-line);
    }

    .mini-hero-portrait {
        width: 50px;
        height: 50px;
    }

    .gallery-grid {
        grid-template-columns: repeat(6, 1fr);
        grid-auto-rows: 60px;
    }

    /* Feature: left 3 columns, 6 rows tall */
    .photo-feature {
        grid-column: 1 / span 3;
        grid-row: span 6;
    }

    /* Supporting photos: right 3 columns, height from --row-span */
    .photo-thumb:not(.photo-feature) {
        grid-column: span 3;
        grid-row: span var(--row-span, 4);
    }

    /* Photos fill their grid cell on desktop */
    .photo-thumb img,
    .photo-feature img,
    .photo-thumb .photo-placeholder,
    .photo-feature .photo-placeholder {
        height: 100%;
        object-fit: cover;
    }

    .year-num { font-size: 30px; }
}

/* ── Photo sidebar — Phase 3 ─────────────────────────────── */

/* Overlay dims the gallery when the sidebar is open.
   Only shown on desktop — on mobile the sidebar is full-screen. */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(250, 250, 247, 0.7);
    z-index: 300;
    cursor: pointer;
}
@media (min-width: 960px) {
    .sidebar-overlay.is-open { display: block; }
}

/* The sliding panel — full-screen on mobile, right drawer on desktop */
.photo-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: var(--color-bg);
    overflow-y: auto;
    z-index: 400;
    transform: translateX(100%);
    transition: transform 0.25s ease;
}
.photo-sidebar.is-open { transform: translateX(0); }

@media (min-width: 960px) {
    .photo-sidebar { width: min(480px, 90vw); }
}

/* Sidebar content padding */
.sidebar-content {
    padding: var(--space-4) var(--space-6) var(--space-12);
}

/* Header row: ‹ back (mobile) · #007 of 124 · × close */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--color-line);
}

.sidebar-back {
    font-size: 18px;
    color: var(--color-ink);
    line-height: 1;
}

.sidebar-num {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--color-ink-muted);
}

.sidebar-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--color-ink);
    line-height: 1;
    padding: 0;
}

/* On desktop, hide the back arrow — × close is enough */
@media (min-width: 960px) {
    .sidebar-back { display: none; }
}

/* Photo — full width of the sidebar */
.sidebar-photo {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: var(--space-4);
}

.sidebar-title {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: var(--space-2);
}

.sidebar-meta {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--color-ink-muted);
    margin-bottom: var(--space-4);
}

.sidebar-description {
    font-size: 13px;
    line-height: 1.6;
    color: var(--color-ink-muted);
    margin-bottom: var(--space-4);
}

.sidebar-divider {
    border: none;
    border-top: 1px solid var(--color-line);
    margin: var(--space-4) 0;
}

.sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
}

.sidebar-print-btn {
    display: block;
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: var(--color-ink);
    color: var(--color-bg);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    text-align: center;
    margin-bottom: var(--space-6);
}
.sidebar-print-btn:hover { opacity: 0.85; }

.sidebar-nav {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 11px;
}

.sidebar-nav-link { color: var(--color-ink); }
.sidebar-nav-link:hover { text-decoration: underline; }

.sidebar-nav-disabled { color: var(--color-ink-muted); }

.sidebar-loading,
.sidebar-error {
    padding: var(--space-8) var(--space-6);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--color-ink-muted);
    text-align: center;
}

/* ── Photo full page (no-JS fallback) ────────────────────── */

.photo-page {
    padding: var(--space-6) var(--outer-pad) var(--space-16);
    max-width: 1200px;
    margin-inline: auto;
}

.photo-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--color-line);
}

.photo-page-back {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-ink-muted);
    transition: color 0.1s;
}
.photo-page-back:hover { color: var(--color-ink); }

.photo-page-num {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--color-ink-muted);
}

/* Stack on mobile, side-by-side on desktop */
.photo-page-body {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.photo-page-image img {
    display: block;
    width: 100%;
    height: auto;
}

.photo-page-image .photo-placeholder {
    width: 100%;
}

.photo-page-title {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: var(--space-2);
}

.photo-page-meta {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-ink-muted);
    margin-bottom: var(--space-4);
}

.photo-page-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-ink-muted);
    margin-bottom: var(--space-4);
}

.photo-page-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
}

.photo-page-print {
    display: inline-block;
    padding: var(--space-3) var(--space-6);
    background: var(--color-ink);
    color: var(--color-bg);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    margin-bottom: var(--space-6);
}
.photo-page-print:hover { opacity: 0.85; }

.photo-page-nav {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 11px;
    border-top: 1px solid var(--color-line);
    padding-top: var(--space-4);
}
.photo-page-nav a { color: var(--color-ink); }
.photo-page-nav a:hover { text-decoration: underline; }

@media (min-width: 960px) {
    .photo-page-body {
        flex-direction: row;
        align-items: flex-start;
        gap: var(--space-12);
    }

    .photo-page-image { flex: 1; min-width: 0; }
    .photo-page-detail { width: 360px; flex-shrink: 0; }
}

/* ── Filter — Phase 3 ────────────────────────────────────── */

/* Mobile/tablet: chip row bar above the gallery */
.gallery-filter-bar {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--outer-pad);
    border-bottom: 1px solid var(--color-line);
    overflow: hidden;
}

/* Wrapper clips the chip row and hosts the fade pseudo-elements */
.chip-row-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

/* Left and right fade gradients — toggled by JS based on scroll position */
.chip-row-wrap::before,
.chip-row-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 32px;
    pointer-events: none; /* clicks pass through to the chips */
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 1;
}
.chip-row-wrap::before {
    left: 0;
    background: linear-gradient(to right, var(--color-bg), transparent);
}
.chip-row-wrap::after {
    right: 0;
    background: linear-gradient(to left, var(--color-bg), transparent);
}
.chip-row-wrap.fade-left::before  { opacity: 1; }
.chip-row-wrap.fade-right::after  { opacity: 1; }

/* Horizontally scrollable row of tag chips */
.chip-row {
    display: flex;
    gap: var(--space-2);
    overflow-x: auto;
    scrollbar-width: none; /* hide scrollbar on Firefox */
}
.chip-row::-webkit-scrollbar { display: none; }

/* Individual tag chip */
.chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 4px 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    border: 1px solid var(--color-line);
    white-space: nowrap;
    color: var(--color-ink-muted);
    transition: color 0.1s, background 0.1s;
}
.chip:hover { color: var(--color-ink); }

/* Active/selected chip: inverted */
.chip.chip-active {
    background: var(--color-ink);
    color: var(--color-bg);
    border-color: var(--color-ink);
}

.chip-count { opacity: 0.6; }

/* Filter toggle button — opens the bottom sheet on mobile */
.filter-sheet-toggle {
    flex-shrink: 0;
    background: none;
    border: 1px solid var(--color-line);
    padding: 4px var(--space-3);
    font-family: var(--font-mono);
    font-size: 11px;
    cursor: pointer;
    color: var(--color-ink);
    white-space: nowrap;
}

/* Desktop filter sidebar */
.filter-sidebar {
    display: none; /* hidden on mobile/tablet */
}

.sidebar-section {
    margin-bottom: var(--space-8);
}

/* Uppercase mono section label */
.sidebar-label {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-ink-muted);
    margin-bottom: var(--space-3);
}

.sidebar-tag {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-ink-muted);
    padding: 3px 0;
    transition: color 0.1s;
}
.sidebar-tag:hover          { color: var(--color-ink); }
.sidebar-tag.sidebar-tag-active { color: var(--color-ink); }

/* Filled dot that appears on the active tag */
.sidebar-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
}
.sidebar-tag.sidebar-tag-active .sidebar-dot {
    background: var(--color-ink);
}

.sidebar-count {
    margin-left: auto;
    padding-left: var(--space-2);
    color: var(--color-ink-muted);
}

/* Show the sidebar on desktop; hide the chip row */
@media (min-width: 960px) {
    .gallery-filter-bar { display: none; }

    .filter-sidebar {
        display: block;
        width: var(--sidebar-w);
        flex-shrink: 0;
        position: sticky;
        top: var(--space-12);
        padding-top: var(--space-6);
    }
}

/* Mobile filter bottom sheet */
.filter-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 26, 0.45);
    z-index: 200;
}
.filter-overlay.is-open { display: block; }

.filter-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-bg);
    z-index: 201;
    padding: var(--space-4) var(--outer-pad) var(--space-8);
    border-radius: 12px 12px 0 0;
    transform: translateY(100%);
    transition: transform 0.25s ease;
    max-height: 80vh;
    overflow-y: auto;
}
.filter-sheet.is-open { transform: translateY(0); }

.filter-sheet-handle {
    width: 40px;
    height: 4px;
    background: var(--color-line);
    border-radius: 2px;
    margin: 0 auto var(--space-4);
}

.filter-sheet-title {
    font-style: italic;
    font-weight: 300;
    font-size: 22px;
    margin-bottom: var(--space-6);
    line-height: 1;
}

.filter-sheet-label {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-ink-muted);
    margin-bottom: var(--space-3);
}

.filter-sheet-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
}

.filter-sheet-apply {
    display: block;
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: var(--color-ink);
    color: var(--color-bg);
    border: none;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    cursor: pointer;
}

/* Bottom sheet is only for mobile/tablet; desktop has the sidebar */
@media (min-width: 960px) {
    .filter-overlay,
    .filter-sheet { display: none !important; }
}

/* ============================================================
   About + Contact
   ============================================================ */

.about-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-12);
    padding: var(--space-8) var(--outer-pad);
    max-width: 960px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .about-layout {
        grid-template-columns: 1fr 1fr;
        padding: var(--space-12) var(--outer-pad);
    }

    .about-contact {
        border-left: 1.5px dashed var(--color-line);
        padding-left: var(--space-8);
    }
}

/* Portrait placeholder */
.about-portrait {
    width: 160px;
    aspect-ratio: 4 / 5;
    background: var(--color-placeholder);
    margin-bottom: var(--space-6);
}

/* Bio */
.about-heading {
    font-size: 2.25rem;
    font-style: italic;
    font-weight: 400;
    line-height: 1.1;
    margin: 0 0 var(--space-4);
    color: var(--color-ink);
}

.about-body {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--color-ink-muted);
    max-width: 420px;
    margin: 0 0 var(--space-4);
}

.about-social {
    list-style: none;
    padding: 0;
    margin: var(--space-4) 0 0;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--color-ink-muted);
    line-height: 1.9;
}

/* Contact */
.about-contact-heading {
    font-size: 1.75rem;
    font-style: italic;
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 var(--space-4);
    color: var(--color-ink);
}

.about-contact-blurb {
    font-size: 0.85rem;
    color: var(--color-ink-muted);
    line-height: 1.6;
    max-width: 360px;
    margin: 0 0 var(--space-6);
}

/* Form */
.contact-form {
    display: grid;
    gap: var(--space-4);
    max-width: 360px;
}

.form-field {
    display: grid;
    gap: var(--space-1);
}

.form-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--color-ink-muted);
    letter-spacing: 0.03em;
}

.form-input {
    width: 100%;
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--color-line);
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-ink);
    outline: none;
    box-sizing: border-box;
    border-radius: 0;
    -webkit-appearance: none;
}

.form-input:focus {
    border-color: var(--color-ink-muted);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    margin-top: var(--space-2);
}

.form-submit {
    padding: var(--space-2) var(--space-6);
    background: var(--color-ink);
    color: var(--color-bg);
    border: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    letter-spacing: 0.02em;
}

.form-submit:hover {
    background: var(--color-accent);
}

.form-note {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--color-ink-muted);
    margin: 0;
    opacity: 0.7;
}

/* ── Contact form — validation states ───────────────────────── */

.form-field--error .form-input {
    border-color: #c0392b;
}

.form-error {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: #c0392b;
    margin-top: var(--space-1);
    display: block;
}

.form-success {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-ink);
    background: #f0f4ec;
    border-left: 3px solid #4a7c59;
    padding: var(--space-3) var(--space-4);
    margin-bottom: var(--space-6);
}

/* Photo prefill — locked display shown when arriving from a print request. */
.form-prefill-display {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) 0;
}

.form-prefill-display img {
    width: 56px;
    height: auto;
    flex-shrink: 0;
    display: block;
}

.form-prefill-title {
    font-size: 0.85rem;
    color: var(--color-ink);
    flex: 1;
}

/* Remove + Select actions below the prefill display or text input. */
.form-prefill-actions {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-2);
}

.form-prefill-btn {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: var(--color-ink);
    color: var(--color-bg);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.04em;
    border: 1px solid var(--color-ink);
    cursor: pointer;
    text-decoration: none;
}

.form-prefill-btn:hover {
    opacity: 0.8;
}

/* Remove button — border only, no fill. */
.form-prefill-btn--outline {
    background: transparent;
    color: var(--color-ink);
}
