/* BOE Photo — site styles. Brand: black #16181D, red #D61F28, blue #00B4F0, grey ground #F2F3F5. Square corners throughout. */
:root {
  --ink: #16181D; --muted: #4A4E55; --ground: #F2F3F5; --line: #DFE1E5; --line-strong: #C6C9CE; --chip: #E6E8EB;
  --red: #D61F28; --blue: #00B4F0; --link: #0073B0; --white: #FFFFFF;
  --head: Montserrat, system-ui, sans-serif; --body: Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 16px/1.5 var(--body); }
a { color: var(--link); } a:hover { color: var(--ink); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 760px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.h1 { font: 500 clamp(36px, 5vw, 60px)/1.05 var(--head); letter-spacing: -0.02em; margin: 0; }
.h2 { font: 500 clamp(26px, 3vw, 36px)/1.1 var(--head); letter-spacing: -0.01em; margin: 0; }
.h3 { font: 500 20px/1.2 var(--head); margin: 0 0 8px; }
.eyebrow { margin: 0 0 12px; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); }
.muted { color: var(--muted); }

/* Header & footer */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { height: 38px; width: auto; display: block; }
.nav { display: flex; flex-wrap: wrap; gap: 28px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; padding: 10px 0; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.site-footer { background: var(--white); border-top: 1px solid var(--line); margin-top: 64px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 28px; font-size: 14px; color: var(--muted); }

/* Buttons & inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 0; background: var(--ink); color: var(--white); font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { color: var(--white); background: #000; }
.btn-red { background: var(--red); } .btn-red:hover { background: #B51820; }
.btn-blue { background: var(--blue); color: var(--ink); } .btn-blue:hover { background: #0AA0D6; color: var(--ink); }
.btn-ghost { background: var(--white); color: var(--ink); border: 1px solid var(--ink); } .btn-ghost:hover { background: var(--chip); color: var(--ink); }
.btn[disabled] { opacity: 0.55; cursor: progress; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-weight: 600; font-size: 14px; }
.input, .textarea, .select { min-height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); background: var(--white); font-size: 15px; width: 100%; }
.textarea { padding: 10px 12px; min-height: 90px; resize: vertical; }
.input:focus, .textarea:focus, .select:focus, .btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Hero & search */
.hero { padding-top: 72px; padding-bottom: 36px; }
.search { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.search-box { flex: 999 1 420px; display: flex; align-items: center; gap: 12px; background: var(--white); border: 1px solid var(--line-strong); padding: 0 18px; min-height: 60px; }
.search-box input { flex: 1; min-width: 0; border: 0; outline: none; font-size: 18px; background: transparent; }
.search .btn { flex: 1 1 200px; min-height: 60px; }
.filters { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.seg { display: inline-flex; background: var(--chip); padding: 4px; gap: 4px; }
.seg button { min-height: 40px; padding: 0 18px; border: 0; background: transparent; font-size: 14px; font-weight: 600; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.chip { min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); background: var(--white); font-size: 14px; cursor: pointer; }
.chip:hover { background: var(--chip); }
.divider { width: 1px; height: 28px; background: var(--line-strong); margin: 0 6px; }

/* Grid of square tiles */
.results-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0; }
.grid.small { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.tile { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--line); color: var(--white); text-decoration: none; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.tile:hover img { transform: scale(1.04); }
.tile:hover, .tile:focus-visible { color: var(--white); }
.tile .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.tile .cap b { display: block; font-weight: 600; font-size: 14px; }
.tile .cap span { display: block; margin-top: 2px; font-size: 12px; }
.badge { position: absolute; right: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; background: var(--red); color: var(--white); font-size: 13px; font-weight: 500; }
.badge.ed { right: auto; left: 10px; background: var(--ink); }
.empty { padding: 48px; text-align: center; background: var(--white); border: 1px dashed var(--line-strong); color: var(--muted); }

/* Map */
.map { width: 100%; height: min(62vh, 560px); border: 1px solid var(--line-strong); background: #D3EEF9; }
.pin { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 999px; background: var(--red); color: var(--white); border: 2px solid var(--white); box-shadow: 0 1px 4px rgba(0,0,0,.35); font: 700 13px var(--body); }
.pin.on { background: var(--blue); color: var(--ink); width: 38px; height: 38px; }

/* Item page */
.item-layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-top: 20px; }
.item-media { flex: 999 1 640px; min-width: 0; }
.item-side { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.preview { position: relative; background: var(--line); }
.preview img, .preview video { display: block; width: 100%; height: auto; }
.wm { pointer-events: none; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; transform: rotate(-18deg); font: 600 clamp(22px, 4vw, 44px) var(--head); color: rgba(255,255,255,.28); letter-spacing: .1em; white-space: nowrap; text-shadow: 0 1px 2px rgba(0,0,0,.15); }
.meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; font-size: 14px; color: var(--muted); }
.tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; background: var(--chip); color: var(--ink); text-decoration: none; font-size: 14px; }
.usage { display: flex; flex-wrap: wrap; gap: 8px; }
.usage span { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; background: var(--chip); font-size: 13px; }
.dot { width: 8px; height: 8px; border-radius: 999px; background: var(--ink); }
.dot.ok { background: var(--blue); } .dot.no { background: var(--red); }
.notice { display: flex; gap: 12px; padding: 14px 16px; background: var(--white); border: 2px solid var(--red); font-size: 14px; }
.lic { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--white); border: 1px solid #D3D6DA; cursor: pointer; }
.lic:has(input:checked) { border: 2px solid var(--ink); }
.lic input { margin: 3px 0 0; width: 18px; height: 18px; accent-color: var(--red); }
.lic .top { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.lic .desc { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.includes { border-top: 1px solid var(--line); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); }
.panel { background: var(--white); border: 1px solid var(--line); padding: 24px; }
.error { color: var(--red); font-weight: 600; }

@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .nav { gap: 18px; }
  .hero { padding-top: 40px; }
}
