/* Robshots.dev - local fonts, custom branding and blue/violet theme */

@font-face { font-display: swap; font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 400; src: url('../fonts/bricolage-grotesque-v9-latin-regular.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 500; src: url('../fonts/bricolage-grotesque-v9-latin-500.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 600; src: url('../fonts/bricolage-grotesque-v9-latin-600.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 700; src: url('../fonts/bricolage-grotesque-v9-latin-700.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Manrope'; font-style: normal; font-weight: 400; src: url('../fonts/manrope-v20-latin-regular.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Manrope'; font-style: normal; font-weight: 500; src: url('../fonts/manrope-v20-latin-500.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Manrope'; font-style: normal; font-weight: 600; src: url('../fonts/manrope-v20-latin-600.woff2') format('woff2'); }

:root {
    --navy: #3568c8;
    --navy-soft: #5279df;
    --navy-light: #7189e8;
    --navy-deep: #21438f;
    --ink: #17345e;
    --muted: #687a9a;
    --surface: #f6f8fd;
    --surface-soft: #eef3fd;
    --surface-panel: #ffffff;
    --white: #ffffff;
    --line: #d9e2f3;
    --accent: #7b6af2;
    --accent-blue: #37bfff;
    --accent-soft: #eef1ff;
    --danger: #b63f57;
    --success: #2e7454;
    --shadow: 0 16px 42px rgba(48, 83, 155, 0.11);
    --shadow-soft: 0 8px 24px rgba(48, 83, 155, 0.075);
    --radius: 12px;
    --shell: 1500px;
    --font-display: 'Bricolage Grotesque', Arial, sans-serif;
    --font-body: 'Manrope', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    background:
        radial-gradient(circle at 90% 4%, rgba(123, 106, 242, 0.075), transparent 28%),
        linear-gradient(180deg, #f9faff 0%, var(--surface) 44%, #f3f6fc 100%);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

main { flex: 1 0 auto; width: 100%; }
::selection { background: var(--accent-soft); color: var(--navy-deep); }
img { max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }
.shell { width: min(calc(100% - 48px), var(--shell)); margin-inline: auto; }
.narrow { max-width: 880px; }

.site-header {
    position: relative;
    z-index: 10;
    background: linear-gradient(116deg, #2c5ab4 0%, #4672d4 58%, #686fe4 100%);
    box-shadow: 0 8px 24px rgba(46, 83, 162, 0.12);
}
.site-header::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background: linear-gradient(90deg, #c2f8ff, #66d6ff 42%, #a084ff 100%);
}
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; min-width: 0; }
.brand-mark { width: 56px; height: 56px; flex: 0 0 auto; filter: drop-shadow(0 8px 16px rgba(12, 33, 88, 0.16)); }
.brand-mark svg { display: block; width: 100%; height: 100%; overflow: visible; }
.brand-wordmark { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.brand-title {
    display: flex;
    align-items: center;
    font-family: var(--font-display);
    font-size: clamp(24px, 2vw, 31px);
    line-height: 1;
    letter-spacing: -0.06em;
    font-weight: 700;
    text-transform: lowercase;
    color: #fff;
    white-space: nowrap;
}
.brand-domain {
    margin-left: 0.03em;
    background: linear-gradient(90deg, #dcfbff 0%, #91e8ff 42%, #c6b9ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.brand-tagline { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.76); white-space: nowrap; }
.main-nav { display: flex; gap: 30px; }
.main-nav a { color: rgba(255,255,255,0.94); text-decoration: none; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; position: relative; }
.main-nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -7px; height: 2px; background: linear-gradient(90deg, #83e3ff, #ae8cff); transition: right 180ms ease; }
.main-nav a:hover { color: #fff; }
.main-nav a:hover::after { right: 0; }

.hero { padding: 78px 0 48px; }
.eyebrow { margin: 0 0 15px; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; }
.hero h1, .prose h1, .admin-shell h1 { margin: 0; font-family: var(--font-display); color: var(--navy-deep); font-size: clamp(48px, 7.2vw, 108px); line-height: 0.95; letter-spacing: -0.05em; font-weight: 600; }
.hero-copy { max-width: 690px; margin: 25px 0 0; font-size: clamp(17px, 1.6vw, 22px); color: var(--muted); }
.hero-rule { width: 106px; height: 3px; border-radius: 99px; background: linear-gradient(90deg, var(--accent-blue), var(--accent)); margin-top: 34px; }

.gallery-wrap { padding: 8px 0 92px; }
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 26px;
    row-gap: 34px;
    align-items: start;
}
.photo-card {
    margin: 0;
    min-width: 0;
    content-visibility: auto;
    contain-intrinsic-size: 500px 420px;
}
.photo-open { display: block; width: 100%; padding: 0; border: 1px solid rgba(255,255,255,0.9); border-radius: var(--radius); background: var(--white); cursor: zoom-in; overflow: hidden; box-shadow: var(--shadow); transition: transform 220ms ease, box-shadow 220ms ease; }
.photo-open img { display: block; width: 100%; height: auto; transition: transform 260ms ease, filter 260ms ease; }
.photo-open:hover { transform: translateY(-2px); box-shadow: 0 20px 50px rgba(48, 83, 155, 0.16); }
.photo-open:hover img { transform: scale(1.01); filter: brightness(0.99); }
.photo-card figcaption { display: flex; flex-direction: column; gap: 2px; padding: 13px 5px 0; }
.photo-title { display: block; font-family: var(--font-display); color: var(--navy-deep); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.photo-location { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; letter-spacing: 0.015em; }
.photo-location::before { content: '•'; margin-right: 7px; color: var(--accent); }
.photo-meta-open {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: zoom-in;
}
.photo-meta-open .photo-title,
.photo-meta-open .photo-location { transition: color 160ms ease; }
.photo-meta-open:hover .photo-title,
.photo-meta-open:focus-visible .photo-title { color: var(--accent); }
.photo-meta-open:hover .photo-location,
.photo-meta-open:focus-visible .photo-location { color: var(--navy-soft); }
.photo-meta-open:focus-visible { outline: 2px solid rgba(87, 216, 255, 0.58); outline-offset: 4px; border-radius: 4px; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 26px; margin-top: 62px; font-size: 14px; color: var(--muted); }
.pager { color: var(--navy-deep); text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.pager.is-disabled { opacity: 0.3; pointer-events: none; }

.empty-state { border: 1px solid var(--line); border-radius: 16px; padding: 52px; text-align: center; background: rgba(255,255,255,0.94); box-shadow: var(--shadow-soft); }
.empty-icon { width: 48px; height: 48px; border: 1px solid var(--accent); color: var(--accent); border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; font-size: 26px; font-weight: 400; }
.empty-state h2 { font-family: var(--font-display); color: var(--navy-deep); font-size: 31px; margin: 0 0 7px; }
.empty-state p { color: var(--muted); margin: 0 0 22px; }

.lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; background: #102653; padding: 34px 88px; }
.lightbox.is-open { display: flex; }
.lightbox-stage { max-width: min(1500px, 92vw); max-height: 92vh; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox-stage img { display: block; max-width: 100%; max-height: calc(92vh - 88px); width: auto; height: auto; object-fit: contain; }
.lightbox-caption { text-align: center; }
.lightbox-title { color: rgba(255,255,255,0.96); font-size: 18px; line-height: 1.25; font-weight: 600; }
.lightbox-location { color: rgba(255,255,255,0.70); font-size: 14px; line-height: 1.35; margin-top: 4px; }
.lightbox-close, .lightbox-nav { position: absolute; border: 1px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.06); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background 160ms ease, border-color 160ms ease; }
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(123,106,242,0.28); border-color: rgba(255,255,255,0.55); }
.lightbox-close { top: 24px; right: 24px; width: 48px; height: 48px; border-radius: 50%; font-size: 30px; line-height: 1; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 70px; border-radius: 28px; font-size: 24px; }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-active { overflow: hidden; }

.prose { padding: 88px 0 104px; }
.prose h1 { font-size: clamp(50px, 7vw, 92px); margin-bottom: 42px; }
.prose p { font-size: clamp(18px, 2vw, 23px); color: #586b8c; }
.prose-last { font-family: var(--font-display); color: var(--navy-deep) !important; font-size: 28px !important; }

.site-footer { color: #fff; background: linear-gradient(116deg, #2b58b0 0%, #4571d1 58%, #636fe1 100%); }
.footer-inner { min-height: 132px; display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.footer-identity { min-width: 0; }
.brand-footer .brand-mark { width: 46px; height: 46px; }
.brand-footer .brand-title { font-size: clamp(21px, 1.8vw, 26px); }
.brand-footer .brand-tagline { font-size: 9px; letter-spacing: 0.12em; }
.site-footer p { color: rgba(255,255,255,0.7); margin: 9px 0 0; font-size: 13px; }
.footer-build-note { max-width: 560px; margin-top: 4px !important; color: rgba(255,255,255,0.56) !important; font-size: 11px !important; line-height: 1.45; }
.footer-link-group { display: grid; justify-items: end; gap: 14px; }
.footer-links { display: flex; align-items: center; gap: 28px; font-size: 13px; }
.footer-links a { color: rgba(255,255,255,0.85); }
.footer-links a:hover { color: #fff; }
.footer-links a, .footer-download-link, .text-link { text-underline-offset: 4px; }
.footer-download-link { color: rgba(255,255,255,0.72); font-size: 12px; }
.footer-download-link:hover { color: #fff; }
.footer-meta {
    min-height: 52px;
    border-top: 1px solid rgba(255,255,255,0.16);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: rgba(255,255,255,0.72);
    font-size: 12px;
}
.footer-development { display: inline-flex; align-items: center; gap: 11px; }
.footer-development > span { color: rgba(255,255,255,0.62); }
.footer-development a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-weight: 600;
}
.footer-development a:hover { color: #fff; }
.footer-development img { width: 24px; height: 24px; object-fit: contain; }

.admin-shell { padding: 70px 0 96px; }
.admin-shell.narrow { max-width: 760px; }
.admin-shell h1 { font-size: clamp(44px, 6vw, 80px); margin-bottom: 15px; }
.admin-heading { display: flex; justify-content: space-between; gap: 30px; align-items: flex-start; margin-bottom: 30px; }
.admin-heading h1 { margin-bottom: 10px; }
.admin-heading .text-link { color: var(--navy-deep); font-weight: 600; }
.admin-grid { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 24px; }
.panel { border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,0.96); padding: 30px; box-shadow: var(--shadow-soft); }
.panel h2, .admin-list-wrap h2 { margin-top: 0; font-family: var(--font-display); color: var(--navy-deep); font-size: 28px; }
.form-stack { display: grid; gap: 18px; }
.form-field { display: grid; gap: 8px; }
.form-stack label, .admin-photo-edit label, .field-label { display: grid; gap: 8px; font-weight: 600; font-size: 14px; color: var(--navy-deep); }
input[type='text'], input[type='password'] { width: 100%; min-height: 48px; border: 1px solid var(--line); background: #fbfcff; color: var(--ink); padding: 10px 12px; border-radius: 8px; }
input:focus { outline: 3px solid rgba(123,106,242,0.14); border-color: var(--accent); }
.field-note { font-size: 12px; font-weight: 400; color: var(--muted); }
.field-label-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.ai-title-button {
    flex: 0 0 auto;
    border: 1px solid rgba(47, 72, 140, 0.22);
    border-radius: 999px;
    background: #f4f7ff;
    color: var(--navy-deep);
    padding: 6px 10px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease, opacity 160ms ease;
}
.ai-title-button:hover:not(:disabled) { background: #e8eefc; border-color: rgba(47, 72, 140, 0.38); transform: translateY(-1px); }
.ai-title-button:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.ai-title-note { margin-top: -2px; }
.ai-title-status { min-height: 16px; color: var(--muted); font-size: 12px; font-weight: 500; }
.ai-title-status:empty { display: none; }
.ai-title-suggestions { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-title-suggestions[hidden] { display: none; }
.ai-title-suggestion {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--navy-deep);
    padding: 7px 11px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    text-align: left;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.ai-title-suggestion:hover { background: var(--surface-soft); border-color: rgba(47, 72, 140, 0.34); transform: translateY(-1px); }
.file-field { display: grid; gap: 8px; }
.file-picker { min-height: 48px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcff; padding: 6px; }
.file-picker input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; pointer-events: none; }
.file-picker-button { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 6px 12px; border-radius: 6px; background: var(--surface-soft); color: var(--navy-deep); font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.file-picker-button:hover { background: #e1e8fa; }
.file-picker-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; border: 1px solid var(--navy); border-radius: 8px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%); color: #fff; text-decoration: none; padding: 10px 18px; cursor: pointer; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; transition: background 170ms ease, border-color 170ms ease, transform 170ms ease; }
.button:hover { background: linear-gradient(135deg, #3aaef2 0%, var(--accent) 100%); border-color: var(--accent); transform: translateY(-1px); }
.button-small { min-height: 40px; padding: 8px 14px; }
.button-ghost { border: 0; background: transparent; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.danger { color: var(--danger); }
.notice { margin-bottom: 24px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-panel); }
.notice.success { border-left: 4px solid var(--success); }
.notice.error { border-left: 4px solid var(--danger); }
.muted { color: var(--muted); }
.admin-stats { display: flex; flex-direction: column; align-items: flex-start; }
.stat-number { font-family: var(--font-display); color: var(--accent); font-size: 76px; line-height: 1; font-weight: 600; }
.admin-list-wrap { margin-top: 48px; }
.admin-photo-list { border-top: 1px solid var(--line); }
.admin-photo-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.admin-photo-row > img { width: 150px; height: 100px; object-fit: cover; border-radius: 8px; background: var(--surface-soft); box-shadow: var(--shadow-soft); }
.admin-photo-edit { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.admin-photo-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.75fr); gap: 12px; }

@media (max-width: 1000px) {
    .admin-photo-fields { grid-template-columns: 1fr; }
}


/* Recently deleted */
.trash-list-wrap { margin-top: 10px; }
.trash-summary { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
.trash-summary h2 { margin-bottom: 14px; }
.trash-count {
    display: inline-flex;
    min-width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--navy-deep);
    font-size: 12px;
    font-weight: 700;
}
.trash-photo-info { display: grid; gap: 5px; min-width: 0; }
.trash-photo-info strong { color: var(--navy-deep); font-size: 15px; }
.trash-photo-info span { color: var(--muted); font-size: 12px; }
.trash-photo-info .trash-retention { color: var(--accent); font-weight: 600; }
.trash-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.trash-actions form { margin: 0; }
.trash-empty { max-width: 720px; }


.scroll-top {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 9999;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(45, 86, 175, 0.18);
    border-radius: 50%;
    background: rgba(255,255,255,0.96);
    color: var(--navy-deep);
    box-shadow: 0 12px 32px rgba(27, 58, 124, 0.24);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px) scale(0.96);
    transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.scroll-top svg { width: 22px; height: 22px; }
.scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}
.scroll-top:hover {
    background: #fff;
    box-shadow: 0 16px 38px rgba(27, 58, 124, 0.32);
    transform: translateY(-2px) scale(1);
}
.scroll-top:focus-visible {
    outline: 3px solid rgba(87, 216, 255, 0.52);
    outline-offset: 3px;
}
.lightbox-active .scroll-top {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@media (max-width: 900px) {
    .hero { padding-top: 62px; }
    .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-grid { grid-template-columns: 1fr; }
    .admin-heading { flex-direction: column; }
    .admin-photo-row { grid-template-columns: 110px 1fr; }
    .admin-photo-row > img { width: 110px; height: 82px; }
    .admin-photo-row > form:last-child { grid-column: 2; }
    .trash-actions { grid-column: 2; align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 640px) {
    .scroll-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
    .shell { width: min(calc(100% - 28px), var(--shell)); }
    .header-inner { min-height: 78px; gap: 14px; }
    .brand { gap: 10px; }
    .brand-mark { width: 44px; height: 44px; }
    .brand-title { font-size: 20px; }
    .brand-tagline { display: none; }
    .main-nav { gap: 14px; }
    .main-nav a { font-size: 9px; letter-spacing: 0.08em; }
    .hero { padding: 54px 0 38px; }
    .hero h1 { font-size: clamp(46px, 17vw, 76px); }
    .hero-copy { margin-top: 21px; }
    .photo-grid { grid-template-columns: 1fr; row-gap: 28px; }
    .empty-state { padding: 40px 24px; }
    .lightbox { padding: 70px 12px 22px; }
    .lightbox-nav { width: 44px; height: 54px; top: auto; bottom: 22px; }
    .lightbox-prev { left: 18px; }
    .lightbox-next { right: 18px; }
    .lightbox-caption { padding: 0 58px 6px; }
    .lightbox-title { font-size: 16px; }
    .lightbox-location { font-size: 13px; }
    .footer-inner { min-height: 150px; flex-direction: column; align-items: flex-start; justify-content: center; }
    .footer-link-group { justify-items: start; }
    .footer-meta { min-height: 76px; padding-block: 14px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; }
    .admin-photo-row { grid-template-columns: 1fr; }
    .admin-photo-row > img { width: 100%; height: 180px; }
    .admin-photo-row > form:last-child { grid-column: 1; }
    .trash-actions { grid-column: 1; align-items: flex-start; }
    .admin-photo-edit { grid-template-columns: 1fr; }
    .admin-photo-fields { grid-template-columns: 1fr; }
    .panel { padding: 22px; }
    .file-picker { align-items: stretch; flex-direction: column; }
    .file-picker-button { align-self: flex-start; }
}
@media (max-width: 430px) {
    .header-inner { align-items: flex-start; padding: 13px 0; }
    .main-nav { gap: 11px; padding-top: 8px; }
    .main-nav a { font-size: 8px; }
}

/* Legal pages */
.legal-page { padding: 78px 0 104px; }
.legal-page > h1 {
    margin: 0 0 26px;
    font-family: var(--font-display);
    color: var(--navy-deep);
    font-size: clamp(46px, 6.5vw, 84px);
    line-height: 0.98;
    letter-spacing: -0.045em;
    font-weight: 600;
}
.legal-lead {
    max-width: 760px;
    margin: 0 0 34px;
    color: var(--muted);
    font-size: 18px;
}
.legal-stack { display: grid; gap: 34px; }
.legal-stack section {
    padding-top: 28px;
    border-top: 1px solid var(--line);
}
.legal-stack h2 {
    margin: 0 0 12px;
    font-family: var(--font-display);
    color: var(--navy-deep);
    font-size: 25px;
    line-height: 1.2;
    font-weight: 600;
}
.legal-stack p,
.legal-stack address {
    margin: 0;
    color: #586b8c;
    font-size: 16px;
    line-height: 1.8;
    font-style: normal;
}
.legal-stack p + p { margin-top: 12px; }
.legal-stack a {
    color: var(--navy-deep);
    text-underline-offset: 3px;
}
.legal-stack strong { color: var(--ink); }
.legal-dev-note {
    margin: 0 0 34px;
    padding: 14px 16px;
    border: 1px solid #e4c96a;
    border-left: 4px solid #d6a924;
    border-radius: 8px;
    background: #fff9df;
    color: #6a5414;
    font-size: 14px;
}
.legal-updated {
    margin: 46px 0 0;
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 640px) {
    .legal-page { padding: 56px 0 76px; }
    .legal-stack { gap: 26px; }
    .legal-stack section { padding-top: 22px; }
    .legal-stack h2 { font-size: 22px; }
    .legal-stack p,
    .legal-stack address { font-size: 15px; }
    .footer-links { flex-wrap: wrap; gap: 14px 20px; }
}

/* About page refresh */
.about-page { max-width: 980px; }
.about-page > h1 { margin-bottom: 48px; }
.about-traits {
    margin: 0 0 56px;
    padding: 28px 32px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255,255,255,0.78);
    box-shadow: var(--shadow-soft);
}
.about-traits h2,
.about-body h2 {
    margin: 0 0 14px;
    font-family: var(--font-display);
    color: var(--navy-deep);
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.08;
    letter-spacing: -0.025em;
    font-weight: 600;
}
.about-traits p {
    margin: 0;
    color: #526785;
    font-size: clamp(16px, 1.25vw, 19px);
    line-height: 1.75;
}
.about-body { max-width: 860px; }
.about-body h2 { margin-top: 0; margin-bottom: 24px; }
.about-body p {
    margin: 0 0 24px;
    color: #586b8c;
    font-size: clamp(16px, 1.25vw, 19px);
    line-height: 1.82;
}
.about-body .prose-last {
    margin-top: 38px;
    margin-bottom: 0;
    font-size: clamp(22px, 2.4vw, 29px) !important;
    line-height: 1.4;
}

@media (max-width: 640px) {
    .about-traits { padding: 24px 22px; margin-bottom: 42px; }
    .about-page > h1 { margin-bottom: 36px; }
}

/* Final admin maintenance helpers: intentionally private and compact. */
.admin-heading-actions,
.admin-inline-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}
.admin-heading-actions .text-link,
.admin-inline-links .text-link,
.login-help-link { color: var(--navy-deep); font-weight: 600; }
.login-help-link { justify-self: start; font-size: 13px; }

.security-page > .muted,
.help-page > .muted { margin-bottom: 28px; }
.security-summary {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding-block: 20px;
    color: var(--navy-deep);
}
.security-summary span { color: var(--muted); }
.security-check-list {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255,255,255,0.96);
    box-shadow: var(--shadow-soft);
}
.security-check-item {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}
.security-check-item:last-child { border-bottom: 0; }
.security-check-item strong { color: var(--navy-deep); }
.security-check-item p { margin: 3px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.security-status { width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: var(--muted); }
.security-status-ok { background: var(--success); }
.security-status-error { background: var(--danger); }
.security-status-warn { background: #c88b18; }
.security-status-info { background: var(--accent); }
.security-page .admin-inline-links,
.help-page .admin-inline-links { margin-top: 26px; }
.help-section { margin-bottom: 18px; }
.help-section p { color: var(--muted); line-height: 1.7; }
.compact-list { margin: 14px 0 0; padding-left: 20px; color: var(--muted); }
.compact-list li + li { margin-top: 8px; }
.code-line {
    display: block;
    overflow-x: auto;
    padding: 12px 14px;
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--navy-deep);
    font: 500 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .admin-heading-actions { gap: 12px 16px; }
    .security-summary { flex-direction: column; }
}


.inline-form { margin: 0; }
.text-button { padding: 0; border: 0; background: transparent; cursor: pointer; font: inherit; }

/* Private albums */
textarea {
    width: 100%;
    min-height: 104px;
    resize: vertical;
    border: 1px solid var(--line);
    background: #fbfcff;
    color: var(--ink);
    padding: 10px 12px;
    border-radius: 8px;
    font: inherit;
    line-height: 1.55;
}
textarea:focus { outline: 3px solid rgba(123,106,242,0.14); border-color: var(--accent); }

.album-access {
    padding: 92px 0 112px;
    text-align: center;
}
.album-access h1,
.album-hero h1 {
    margin: 0;
    font-family: var(--font-display);
    color: var(--navy-deep);
    font-size: clamp(46px, 7vw, 92px);
    line-height: 0.98;
    letter-spacing: -0.045em;
    font-weight: 600;
}
.album-lock-mark {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    margin: 0 auto 24px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    box-shadow: var(--shadow-soft);
    font-size: 25px;
}
.album-access .eyebrow { margin-bottom: 12px; }
.album-lead {
    max-width: 650px;
    margin: 24px auto 0;
    color: var(--muted);
    font-size: 18px;
}
.album-login-form {
    max-width: 520px;
    margin: 34px auto 0;
    text-align: left;
}
.album-access-note {
    max-width: 560px;
    margin: 18px auto 0;
    color: var(--muted);
    font-size: 12px;
}
.album-access > .notice { max-width: 520px; margin: 28px auto -16px; text-align: left; }
.album-access > .text-link { display: inline-block; margin-top: 28px; color: var(--navy-deep); font-weight: 600; }

.album-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    padding: 72px 0 48px;
}
.album-hero > div { min-width: 0; }
.album-hero .hero-copy { max-width: 760px; }
.album-lock-button { white-space: nowrap; color: var(--navy-deep); font-weight: 600; }

.albums-admin-grid { align-items: start; }
.album-admin-list { display: grid; gap: 20px; }
.album-admin-card { position: relative; }
.album-admin-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}
.album-admin-card h3 {
    margin: 8px 0 2px;
    font-family: var(--font-display);
    color: var(--navy-deep);
    font-size: 28px;
    line-height: 1.1;
}
.album-admin-card-head p { margin: 0; color: var(--muted); font-size: 13px; }
.privacy-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--navy-deep);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.album-card-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.album-card-actions .text-link { color: var(--navy-deep); font-weight: 600; font-size: 13px; }
.share-link-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
}
.share-link-row code {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--navy-deep);
    font: 500 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.share-link-row .button-ghost { flex: 0 0 auto; color: var(--navy-deep); font-size: 12px; }
.album-settings-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}
.album-settings-form label {
    display: grid;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--navy-deep);
}
.album-settings-wide { grid-column: 1 / -1; }
.album-settings-actions { display: flex; align-items: center; justify-content: center; padding-top: 2px; }
.album-delete-form { margin-top: 18px; text-align: right; }
.album-delete-form button:disabled { opacity: 0.35; cursor: not-allowed; }

@media (max-width: 760px) {
    .album-hero { align-items: flex-start; flex-direction: column; padding-top: 56px; }
    .album-admin-card-head { flex-direction: column; }
    .album-card-actions { justify-content: flex-start; }
    .album-settings-form { grid-template-columns: 1fr; }
    .album-settings-wide { grid-column: auto; }
    .share-link-row { align-items: flex-start; flex-direction: column; }
    .share-link-row code { width: 100%; }
}

/* Private album bulk upload */
.album-upload-intro {
    margin: -8px 0 20px;
    max-width: 680px;
    line-height: 1.6;
}
.bulk-upload-status {
    margin-top: 22px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-soft);
}
.bulk-upload-status[hidden] { display: none; }
.bulk-upload-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 10px;
    color: var(--navy-deep);
    font-size: 13px;
}
.bulk-upload-status progress {
    display: block;
    width: 100%;
    height: 10px;
    border: 0;
    border-radius: 999px;
    overflow: hidden;
    background: #e7ecf7;
}
.bulk-upload-status progress::-webkit-progress-bar {
    background: #e7ecf7;
    border-radius: 999px;
}
.bulk-upload-status progress::-webkit-progress-value {
    background: var(--accent);
    border-radius: 999px;
}
.bulk-upload-status progress::-moz-progress-bar {
    background: var(--accent);
    border-radius: 999px;
}
.bulk-upload-current { margin: 10px 0 0; }
.bulk-upload-errors {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: var(--danger);
    font-size: 12px;
}
.bulk-upload-errors ul {
    margin: 0;
    padding-left: 18px;
}
.bulk-upload-errors li + li { margin-top: 5px; }
.bulk-upload-reload {
    margin-top: 12px;
    color: var(--navy-deep);
    font-weight: 600;
}
.button:disabled {
    opacity: 0.55;
    cursor: wait;
    transform: none;
}

/* Language switch */
.language-switch {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: rgba(255,255,255,0.54);
    font-size: 11px;
    letter-spacing: 0.08em;
    font-weight: 600;
}
.main-nav .language-switch a {
    font-size: 11px;
    letter-spacing: 0.08em;
    opacity: 0.58;
}
.main-nav .language-switch a::after { display: none; }
.main-nav .language-switch a:hover,
.main-nav .language-switch a.is-active {
    color: #fff;
    opacity: 1;
}
.main-nav .language-switch a.is-active { font-weight: 800; }
.language-separator { user-select: none; }

@media (max-width: 640px) {
    .main-nav { align-items: center; }
    .language-switch { gap: 3px; font-size: 8px; }
    .main-nav .language-switch a { font-size: 8px; letter-spacing: 0.05em; }
}


@media (max-width: 520px) {
    .field-label-row { align-items: flex-start; flex-direction: column; gap: 7px; }
    .ai-title-button { align-self: flex-start; }
    .ai-title-suggestions { display: grid; grid-template-columns: 1fr; }
    .ai-title-suggestion { width: 100%; }
}

/* Robshots Gallery Free download page */
.download-hero { padding: 86px 0 58px; }
.download-hero h1 {
    margin: 0;
    max-width: 980px;
    font-family: var(--font-display);
    color: var(--navy-deep);
    font-size: clamp(52px, 7.2vw, 104px);
    line-height: 0.94;
    letter-spacing: -0.055em;
    font-weight: 600;
}
.download-lead { max-width: 840px; margin: 28px 0 0; color: var(--muted); font-size: clamp(18px, 1.7vw, 23px); }
.download-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 34px; }
.download-primary { min-height: 52px; }
.download-feedback-link { color: var(--navy-deep); font-weight: 600; text-underline-offset: 5px; }
.download-version { margin: 17px 0 0; color: #8290aa; font-size: 12px; letter-spacing: 0.035em; }
.download-content { padding: 6px 0 106px; }
.download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.download-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 34px;
    background: rgba(255,255,255,0.92);
    box-shadow: var(--shadow-soft);
}
.download-card-wide { grid-column: 1 / -1; }
.download-card-kicker { margin: 0 0 10px !important; color: var(--accent) !important; font-size: 10px !important; font-weight: 700; letter-spacing: 0.16em; }
.download-card h2,
.download-install h2,
.download-feedback h2 { margin: 0 0 12px; font-family: var(--font-display); color: var(--navy-deep); font-size: clamp(27px, 3vw, 40px); line-height: 1.05; letter-spacing: -0.03em; }
.download-card p,
.download-install p,
.download-feedback p { margin: 0; color: var(--muted); font-size: 16px; }
.download-list { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.download-list li { position: relative; padding-left: 24px; color: #4f6385; }
.download-list li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--success); font-weight: 700; }
.download-list-muted li::before { content: '–'; color: var(--accent); }
.download-install,
.download-feedback {
    margin-top: 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255,255,255,0.72);
    padding: 34px;
}
.download-install { display: flex; align-items: flex-end; justify-content: space-between; gap: 38px; }
.download-install > div:first-child { max-width: 850px; }
.download-install-links { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; color: var(--navy-deep); font-size: 13px; }
.download-feedback { margin-top: 44px; max-width: 940px; }
.download-email { display: inline-block; margin-top: 18px; color: var(--navy-deep); font-size: 18px; font-weight: 600; text-underline-offset: 5px; }

@media (max-width: 760px) {
    .download-hero { padding: 58px 0 42px; }
    .download-grid { grid-template-columns: 1fr; }
    .download-card-wide { grid-column: auto; }
    .download-card, .download-install, .download-feedback { padding: 26px; }
    .download-install { align-items: flex-start; flex-direction: column; }
    .download-install-links { align-items: flex-start; }
}
