:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #5d6678;
  --surface: #ffffff;
  --canvas: #f5f6f8;
  --line: #d9dde5;
  --accent: #2459a9;
  --accent-dark: #173f7b;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); line-height: 1.55; }
a { color: var(--accent-dark); text-underline-offset: .18em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #f0a400; outline-offset: 3px; }
.touch-link { min-height: 2.75rem; display: inline-flex; align-items: center; }
.site-header { min-height: 4.25rem; padding: .75rem max(1rem, calc((100% - 70rem) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: #14233c; color: white; }
.site-name { color: white; font-weight: 750; font-size: 1.15rem; text-decoration: none; }
.header-link { color: white; }
.header-link:visited { color: white; }
.admin-nav-link { font-size: .85rem; }
.account-link { font-size: .8rem; }
.account-name { font-size: .9rem; font-weight: 650; }
.site-tools { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 1rem; }
.account, .account form { display: flex; align-items: center; gap: .75rem; }
.site-search { position: relative; width: min(24rem, 38vw); }
.site-search input { width: 100%; min-height: 2.75rem; padding: .55rem 2.5rem .55rem .75rem; border: 1px solid #9eabc0; border-radius: .4rem; background: white; color: var(--ink); font: inherit; }
.site-search kbd { position: absolute; top: .62rem; right: .65rem; padding: .08rem .38rem; border: 1px solid #aab2bf; border-radius: .25rem; background: #eef0f3; color: #4b5565; font: .8rem system-ui, sans-serif; }
.search-results { position: absolute; z-index: 10; top: calc(100% + .35rem); right: 0; width: min(28rem, 90vw); max-height: min(28rem, 70vh); overflow-y: auto; list-style: none; margin: 0; padding: .35rem; border: 1px solid var(--line); border-radius: .45rem; background: white; color: var(--ink); box-shadow: 0 .5rem 1.5rem rgb(0 0 0 / 18%); }
.search-results[hidden] { display: none; }
.search-results a { display: block; padding: .65rem .75rem; border-radius: .3rem; color: var(--ink); text-decoration: none; }
.search-results small { display: block; color: var(--muted); }
.search-results [aria-selected="true"] a, .search-results a:hover { background: #e9f0fb; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.text-button { border: 1px solid #9eabc0; border-radius: .35rem; padding: .55rem .75rem; color: white; background: transparent; font: inherit; cursor: pointer; }
.page { width: min(70rem, calc(100% - 2rem)); margin: 0 auto; padding: 2rem 0 4rem; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .35rem; }
.page-heading { margin: 1.25rem 0 2rem; }
.heading-with-actions, .section-heading, .context-actions, .action-bar, .inline-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem 1rem; }
.heading-with-actions > div > :first-child { margin-top: 0; }
.heading-with-actions > div > :last-child { margin-bottom: 0; }
.context-actions { justify-content: flex-end; margin: .5rem 0; }
.section-heading h2 { margin: 0; }
.page-heading h1, h2, h3 { line-height: 1.2; }
.page-heading h1 { margin: .15rem 0 .5rem; font-size: clamp(2rem, 7vw, 3.5rem); }
.eyebrow { margin: 0; color: var(--accent-dark); font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.lede, .page-heading > p:last-child, .example-date { color: var(--muted); }
.card-list, .photo-grid { list-style: none; margin: 0; padding: 0; }
.card-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1rem; }
.card-link { min-height: 4.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: .6rem; background: var(--surface); font-size: 1.1rem; font-weight: 700; text-decoration: none; box-shadow: 0 2px 8px rgb(23 32 51 / 6%); }
.card-link:hover { border-color: var(--accent); }
.compact-item-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2rem; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.compact-item-link { min-height: 4.5rem; display: flex; align-items: center; gap: .65rem; padding: .45rem .25rem; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.compact-item-link:hover { background: #e9f0fb; }
.compact-item-link small { display: block; color: var(--muted); font-size: .78rem; font-weight: 400; line-height: 1.35; }
.item-link-label { flex: 1; }
.item-name { display: block; font-weight: 700; }
.item-thumbnail { width: 3.75rem; height: 3.25rem; flex: 0 0 auto; object-fit: cover; border: 1px solid var(--line); border-radius: .35rem; background: #e8ebf0; }
.item-thumbnail-placeholder { display: flex; align-items: center; justify-content: center; }
.item-thumbnail-placeholder img { width: 100%; height: 100%; object-fit: contain; }
.photo-status { color: #765600 !important; }
.item-sort-form { display: flex; align-items: center; justify-content: flex-end; gap: .5rem; margin: 0 0 .75rem; }
.item-sort-form label { font-weight: 700; }
.item-sort-form select { min-height: 2.75rem; max-width: 100%; padding: .45rem 2rem .45rem .65rem; border: 1px solid #7a8495; border-radius: .35rem; background: white; color: var(--ink); font: inherit; }
.last-edited { margin: 2rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.item-overview::after { content: ""; display: table; clear: both; }
.item-heading { margin-bottom: 1rem; }
.item-cover { float: right; width: clamp(16rem, 40%, 28rem); height: auto; margin: 0 0 1.5rem 2rem; display: block; border: 1px solid var(--line); border-radius: .65rem; background: #e8ebf0; }
.item-cover-trigger { float: right; width: clamp(16rem, 40%, 28rem); margin: 0 0 1.5rem 2rem; }
.item-cover-trigger .item-cover { float: none; width: 100%; margin: 0; }
.photo-inspector-trigger { display: block; padding: 0; border: 0; border-radius: .4rem; background: transparent; cursor: zoom-in; }
.photo-inspector-trigger:hover img { outline: 3px solid var(--accent); outline-offset: 2px; }
.photo-inspector-trigger:focus-visible { outline: 3px solid #f0a400; outline-offset: 3px; }
.photo-grid .photo-inspector-trigger { width: 100%; }
.photo-inspector { width: min(96vw, 80rem); height: min(94vh, 60rem); padding: 0; border: 0; border-radius: .65rem; background: var(--surface); color: var(--ink); box-shadow: 0 1rem 3rem rgb(0 0 0 / 35%); }
.photo-inspector::backdrop { background: rgb(10 18 30 / 82%); }
.photo-inspector[open] { display: flex; flex-direction: column; }
.photo-inspector-header, .photo-inspector-controls { display: flex; align-items: center; gap: .5rem; padding: .65rem 1rem; border-bottom: 1px solid var(--line); }
.photo-inspector-header { justify-content: space-between; }
.photo-inspector-header h2 { margin: 0; font-size: 1.15rem; }
.photo-inspector-controls output { min-width: 3.5rem; text-align: center; }
.photo-inspector-viewport { flex: 1; min-height: 0; overflow: auto; background: #20242b; }
.photo-inspector-image { display: block; width: 100%; max-width: none; height: auto; margin: auto; transform-origin: top left; }
.photo-inspector-caption { min-height: 1.5rem; margin: 0; padding: .55rem 1rem; color: var(--muted); }
.panel, .empty-state { padding: clamp(1rem, 4vw, 1.75rem); border: 1px solid var(--line); border-radius: .65rem; background: var(--surface); }
.panel { margin-bottom: 2rem; }
.panel > :first-child { margin-top: 0; }
.panel > :last-child { margin-bottom: 0; }
.recipe-fields { margin: 0; }
.recipe-fields div { padding: .9rem 0; border-top: 1px solid var(--line); }
.recipe-fields div:first-child { border-top: 0; }
.recipe-fields dt { font-weight: 750; }
.recipe-fields dd { margin: .2rem 0 0; }
.recipe-content { margin-bottom: 2rem; }
.content-edit-link { margin: 0 0 .5rem; }
.notice, .error { padding: .8rem 1rem; border-left: .3rem solid #a85000; background: #fff3df; }
.example-list { display: grid; gap: 1.25rem; }
.example { margin: 0; }
.example header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; }
.example-date { margin: 0; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1rem; margin-top: 1.25rem; }
figure { margin: 0; }
figure img { width: 100%; height: auto; display: block; border-radius: .4rem; }
figcaption { margin-top: .4rem; color: var(--muted); }
.auth-panel { max-width: 32rem; margin: 3rem auto; }
.auth-panel label { display: block; font-weight: 700; }
.auth-panel input { width: 100%; min-height: 2.75rem; padding: .5rem; border: 1px solid #7a8495; border-radius: .35rem; font: inherit; }
.primary-button, .secondary-button, .danger-button { min-height: 2.75rem; padding: .55rem 1rem; border: 0; border-radius: .35rem; font: inherit; font-weight: 700; cursor: pointer; }
.primary-button { background: var(--accent-dark); color: white; }
.secondary-button { border: 1px solid #7a8495; background: white; color: var(--ink); }
.danger-button { background: #9b2626; color: white; }
.action-link { display: inline-flex; align-items: center; text-decoration: none; }
.form-actions { justify-content: flex-start; }
.danger-link { color: #8b2020; }
.messages { margin-bottom: 1.5rem; }
.message { padding: .8rem 1rem; border-left: .3rem solid #287548; background: #eaf7ef; }
.request-form, .content-form { max-width: 42rem; }
.form-field { margin-bottom: 1.25rem; }
.form-field label { display: block; margin-bottom: .3rem; font-weight: 700; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 2.75rem; padding: .55rem; border: 1px solid #7a8495; border-radius: .35rem; background: white; font: inherit; }
.help-text { margin: .35rem 0 0; color: var(--muted); }
.error ul { margin: 0; }
.checkbox-label { display: flex !important; align-items: center; gap: .5rem; }
.checkbox-label input { width: auto !important; min-height: auto !important; }
.management-list { list-style: none; margin: 0; padding: 0; }
.management-list .panel { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.management-list small { display: block; color: var(--muted); }
.archived-label { color: #8b2020 !important; font-weight: 750 !important; }
.inline-actions { justify-content: flex-start; margin-top: .5rem; }

@media (max-width: 70rem) {
  .compact-item-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 52rem) {
  .site-header { flex-wrap: wrap; }
  .site-tools { flex-basis: 100%; justify-content: space-between; }
  .site-search { width: min(24rem, 50vw); }
}

@media (max-width: 36rem) {
  .site-header { align-items: flex-start; }
  .site-tools { width: 100%; align-items: stretch; flex-direction: column-reverse; gap: .5rem; }
  .site-search { width: 100%; }
  .account { align-items: flex-end; flex-direction: column; gap: .25rem; }
  .page { padding-top: 1.25rem; }
  .item-cover, .item-cover-trigger { float: none; width: 100%; margin: 0 0 1rem; }
  .item-cover-trigger .item-cover { margin: 0; }
  .compact-item-list { grid-template-columns: 1fr; }
  .item-sort-form { align-items: stretch; flex-direction: column; }
  .photo-inspector { width: 100vw; height: 100dvh; max-width: none; max-height: none; border-radius: 0; }
}

/* Administrator photo reconciliation. */
.review-filters { display:flex; flex-wrap:wrap; gap:1rem; align-items:end; margin:1.5rem 0; }
.review-filters label { flex:1 1 180px; }
.review-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr)); gap:1rem; }
.review-card { display:block; color:inherit; text-decoration:none; border:1px solid #d5dce1; border-radius:12px; padding:1rem; background:#fff; }
.review-card:hover { border-color:#355f6f; }
.review-card h2 { font-size:1rem; overflow-wrap:anywhere; margin-top:1rem; }
.review-thumbnails { display:flex; height:200px; gap:4px; background:#f1f3f4; }
.review-thumbnails img { width:50%; flex:1; min-width:0; object-fit:contain; }
.review-unavailable { align-self:center; text-align:center; padding:1rem; }
.review-workspace { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); gap:2rem; }
.review-photo { margin:0 0 1.5rem; padding:1rem; border:1px solid #d5dce1; border-radius:12px; }
.review-photo img { display:block; width:100%; max-height:650px; object-fit:contain; background:#f1f3f4; }
.review-photo figcaption, .review-hash { overflow-wrap:anywhere; }
.review-actions, .review-pagination { display:flex; flex-wrap:wrap; gap:1rem; align-items:center; margin:1.5rem 0; }
.review-workspace details { padding:1rem; border:1px solid #d5dce1; margin:1rem 0; }
.review-workspace summary { cursor:pointer; font-weight:600; }
@media(max-width:760px) { .review-workspace { grid-template-columns:1fr; } .site-tools { flex-wrap:wrap; } }
