/* The National Museum, Vellmar: a national museum's website of 2026.
   Black and white with a warm stone ground, big grotesque type, photographs first; opening status live in the top bar.
   Object pages carry the object number, dimensions, materials, provenance and whether the thing is on display. */

html.shell-museum {
  --body-font: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --head-font: 'Instrument Sans', system-ui, sans-serif;
  --display: 'Instrument Serif', Georgia, serif;
  --ui: var(--body-font);
  --paper: #ffffff; --ink: #111111; --accent: #b3261e; --rule: #d9d4cc; --muted: #5e5a55; --rule-soft: #ebe7e1; --panel: #f4f1ec;
  --measure: 70ch; --fs: 17px; --lh: 1.55; --gap: 1rem; --block: 2rem; --h-weight: 600;
  --rule-w: 1px; --rule-style: solid;
}
.shell-museum body { background: #fff; font-variant-numeric: lining-nums; }
.shell-museum a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(0,0,0,.35); text-underline-offset: .18em; }
.shell-museum a:hover { text-decoration-color: var(--accent); color: var(--accent); }
.nm-in { max-width: 1240px; margin: 0 auto; padding: 0 2rem; }
.nm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- header ---------- */
.nm-status { background: #111; color: #fff; font-size: .85rem; }
.nm-status .nm-in { display: flex; justify-content: space-between; gap: 1rem; padding-top: .45rem; padding-bottom: .45rem; }
.nm-open::before { content: ""; display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: #bbb; margin-right: .5rem; vertical-align: .05em; }
.nm-open.is-open::before { background: #3ecf6e; }
.nm-open.is-closed::before { background: #e5484d; }
.nm-free { color: #cfcfcf; }
.nm-header { background: #fff; border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 20; }
.nm-header-in { display: flex; align-items: center; gap: 2rem; padding-top: .9rem; padding-bottom: .9rem; }
.nm-logo { display: flex; align-items: center; gap: .7rem; color: #111 !important; text-decoration: none !important; flex: none; }
.nm-mark { color: #111; display: flex; }
.nm-word { display: flex; flex-direction: column; line-height: 1; }
.nm-word b { font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; }
.nm-word small { font-size: .8rem; color: var(--muted); margin-top: .2rem; letter-spacing: .08em; text-transform: uppercase; }
.nm-nav { display: flex; gap: 1.6rem; margin-left: 1rem; }
.nm-nav a { font-weight: 600; font-size: 1rem; text-decoration: none; color: #111; padding: .3rem 0; border-bottom: 2px solid transparent; }
.nm-nav a:hover { border-bottom-color: #111; color: #111; }
.nm-cta { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.nm-search-link { color: #111 !important; display: flex; }
.nm-btn { display: inline-block; background: #111; color: #fff !important; text-decoration: none !important; font-weight: 600; padding: .6rem 1.1rem; border-radius: 999px; font-size: .95rem; border: 2px solid #111; }
.nm-btn:hover { background: var(--accent); border-color: var(--accent); }
.nm-btn.light { background: #fff; color: #111 !important; border-color: #fff; }
.nm-btn.ghost { background: transparent; color: #fff !important; border-color: #fff; }
.nm-btn.ghost:hover { background: rgba(255,255,255,.15); }

/* ---------- page ---------- */
.shell-museum main.nm-main { max-width: 1240px; padding: 0 2rem 3rem; }
.shell-museum h1, .shell-museum h2, .shell-museum h3 { font-family: var(--head-font); letter-spacing: -.015em; color: #111; }
.shell-museum h1 { font-size: 2.6rem; font-weight: 700; line-height: 1.08; }
.shell-museum h2 { font-size: 1.5rem; font-weight: 700; }
.shell-museum h3 { font-size: 1.1rem; font-weight: 600; }
.shell-museum .kicker { font-family: var(--body-font); text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--muted); font-variant: normal; }
.shell-museum .lede { color: var(--muted); font-size: 1.1rem; }
.shell-museum th { font-family: var(--body-font); font-size: .82rem; color: var(--muted); font-weight: 600; border-bottom: 1px solid #111; letter-spacing: 0; font-variant: normal; }
.nm-crumbs { font-size: .85rem; color: var(--muted); margin: 1.2rem 0 1rem; }
.nm-crumbs a { color: var(--muted); }
.nm-eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 600; color: var(--muted); margin: 0 0 .5rem; }
.nm-page-head { margin: 0 0 1.5rem; }
.nm-page-head h1 { margin: 0 0 .5rem; }
.nm-section { margin: 3rem 0 0; }
.nm-section-head { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid #111; padding-top: .7rem; margin-bottom: 1.2rem; }
.nm-section-head h2 { margin: 0; font-size: 1.75rem; }
.nm-section-head a { font-weight: 600; }
.nm-searchbar { display: flex; max-width: 40rem; margin: 0 0 1.5rem; border: 2px solid #111; border-radius: 999px; overflow: hidden; }
.nm-searchbar input { flex: 1; font: inherit; font-size: 1.05rem; padding: .65rem 1.2rem; border: 0; background: #fff; }
.nm-searchbar button { font: inherit; font-weight: 600; background: #111; color: #fff; border: 0; padding: 0 1.4rem; cursor: pointer; }

/* hero */
.nm-hero { position: relative; margin: 0 calc(50% - 50vw); height: min(62vh, 560px); min-height: 380px; overflow: hidden; background: #222; }
.nm-hero img { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(.72); max-width: none; }
.nm-hero-text { position: absolute; left: max(2rem, calc(50vw - 620px + 2rem)); right: 2rem; bottom: 2.4rem; color: #fff; max-width: 44rem; }
.nm-hero-text h1 { color: #fff; font-family: var(--display); font-weight: 400; font-size: clamp(2.4rem, 5vw, 4.2rem); letter-spacing: -.01em; margin: 0 0 .6rem; }
.nm-hero-text h1 a { color: #fff; text-decoration: none; }
.nm-hero-text p { color: #f1f1f1; max-width: none; font-size: 1.1rem; }
.nm-hero-text .nm-eyebrow { color: #eee; }
.nm-hero-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.2rem; }
.shell-museum body { overflow-x: clip; }

/* visit strip */
.nm-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--panel); margin: 0 calc(50% - 50vw); padding: 1.6rem max(2rem, calc(50vw - 620px + 2rem)); }
.nm-quick > div { padding: 0 1.4rem; border-left: 1px solid var(--rule); }
.nm-quick > div:first-child { border-left: 0; padding-left: 0; }
.nm-quick h2 { font-size: 1rem; margin: 0 0 .3rem; }
.nm-quick p { font-size: .93rem; margin: 0; color: #333; }

/* cards */
.nm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }
.nm-card { display: flex; flex-direction: column; }
.nm-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--panel); }
.nm-card h3 { font-size: 1.25rem; margin: .5rem 0 .3rem; }
.nm-card p { font-size: .95rem; margin: 0 0 .4rem; }
.nm-tag { font-size: .75rem !important; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-weight: 600; margin: .8rem 0 0 !important; }
.nm-when { font-weight: 600; font-size: .9rem !important; }
.nm-objects { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.2rem; }
.nm-object { margin: 0; }
.nm-object img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: #eee; }
.nm-object figcaption { font-size: .9rem; color: #111; margin-top: .45rem; max-width: none; }
.nm-object figcaption b { display: block; font-weight: 600; }
.nm-object figcaption span { color: var(--muted); font-size: .82rem; }
.nm-split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.nm-list { list-style: none; padding: 0; }
.nm-list li { border-bottom: 1px solid var(--rule-soft); padding: .45rem 0; font-size: .93rem; max-width: none; }
.nm-list li span { display: inline-block; width: 3.3rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* galleries */
.roomlist { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 2rem; }
.roomlist li { break-inside: avoid; padding: .6rem 0; border-bottom: 1px solid var(--rule-soft); max-width: none; font-weight: 600; }
.roomlist li b { display: inline-block; width: 5rem; color: var(--muted); font-weight: 500; }
.roomlist li span { display: block; margin-left: 5rem; font-size: .88rem; color: var(--muted); font-weight: 400; }
.roomlist li a { text-decoration: none; }
.roomlist li.closed { background: #fdf0ef; padding-left: .5rem; padding-right: .5rem; }
.roomlist li.closed a { color: var(--accent); text-decoration: underline; }

/* collection search and results */
.nm-results-layout { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.nm-filters h2 { font-size: 1.1rem; margin-top: 0; }
.nm-filters fieldset { border: 0; border-top: 1px solid var(--rule); padding: .7rem 0; margin: 0; }
.nm-filters legend { font-weight: 600; font-size: .9rem; padding: 0; }
.nm-filters label { display: flex; align-items: center; gap: .45rem; font-size: .92rem; margin: .35rem 0; color: #333; }
.nm-filters label span { margin-left: auto; color: var(--muted); font-size: .82rem; }
.nm-count { font-size: .9rem; color: var(--muted); margin: 0 0 1rem; }
.nm-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.6rem 1.3rem; }
.nm-result { max-width: none; margin: 0; }
.nm-result > a { display: block; }
.nm-result img, .nm-noimg { width: 100%; aspect-ratio: 1; object-fit: cover; display: flex; background: var(--panel); }
.nm-noimg { align-items: center; justify-content: center; flex-direction: column; text-align: center; color: var(--muted); font-size: .82rem; border: 1px solid var(--rule); background:
  repeating-linear-gradient(135deg, transparent 0 14px, rgba(0,0,0,.035) 14px 15px), var(--panel); text-decoration: none; }
.nm-noimg::before { content: attr(data-type); display: block; font-family: var(--display); font-size: 1.4rem; color: #444; margin-bottom: .3rem; padding: 0 1rem; }
.nm-noimg small { display: block; font-size: .8rem; margin-top: .3rem; padding: 0 2rem; }
.nm-noimg.large { aspect-ratio: 4 / 3; }
.nm-result h3 { font-size: 1rem; line-height: 1.3; margin: .55rem 0 .3rem; font-weight: 600; }
.nm-result h3 a { text-decoration: none; }
.nm-result p { margin: .1rem 0; font-size: .85rem; }
.nm-objtype { color: var(--accent); text-transform: uppercase; letter-spacing: .07em; font-size: .72rem !important; font-weight: 600; margin-top: .5rem !important; }
.nm-objnum { font-variant-numeric: tabular-nums; color: #333; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .8rem !important; }
.nm-loc { color: var(--muted); }
.nm-loc.closed { color: var(--accent); }

/* object page */
.nm-object-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 3rem; align-items: start; margin-bottom: 2rem; }
.nm-object-image { margin: 0; background: var(--panel); padding: 2rem; }
.nm-object-image img { width: 100%; display: block; }
.nm-object-image figcaption { font-size: .85rem; color: var(--muted); margin-top: .7rem; max-width: none; }
.nm-object-info h1 { font-size: 2rem; line-height: 1.15; }
.nm-status-chip { display: inline-block; font-weight: 600; font-size: .88rem; padding: .3rem .8rem; border-radius: 999px; background: #eef4ee; color: #1e5b30; margin: .4rem 0 1rem; }
.nm-status-chip::before { content: "● "; }
.nm-status-chip.closed { background: #fdf0ef; color: var(--accent); }
dl.nm-facts { display: grid; grid-template-columns: 9.5rem 1fr; margin: 0; border-top: 1px solid #111; }
dl.nm-facts dt, dl.nm-facts dd { margin: 0; padding: .55rem 0; border-bottom: 1px solid var(--rule-soft); font-size: .95rem; max-width: none; }
dl.nm-facts dt { font-weight: 600; color: var(--muted); }

/* the older museum furniture, kept */
.shell-museum { --panel: #f4f1ec; }
.museum .kicker a { text-decoration: none; }
.museum-masthead { display: block; border: 0; padding: 0; margin-bottom: 1rem; }
.museum-masthead h1 { margin: 0 0 .5rem; }
.museum-masthead h1 a { text-decoration: none; }
.museum-masthead img.seal { display: none; }
.museum .lede { margin: 0; }
.museum h2 { font-variant: normal; letter-spacing: -.01em; color: #111; border-bottom: 0; }
.museum .twocol { grid-template-columns: 3fr 2fr; gap: 0 3rem; }
.museum aside.visit dl.facts { grid-template-columns: minmax(6rem, 7rem) 1fr; }
.museum pre.verbatim, .museum pre.catalogue { font-family: 'Courier New', Courier, monospace; font-size: .88rem; line-height: 1.5; color: #2b2b2b; border: 1px solid #cfc6b6; border-top: 4px solid #b3261e;
  background: repeating-linear-gradient(transparent 0 calc(1.5em - 1px), rgba(80,110,170,.25) calc(1.5em - 1px) 1.5em), #fbf8f0; padding: 1.2rem 1.4rem 1.2rem 2.2rem; box-shadow: 0 2px 8px rgba(0,0,0,.12); max-width: 44rem; }
.museum .closed-notice, .nm-alert { border: 0; border-left: 6px solid var(--accent); background: #fdf0ef; padding: 1.1rem 1.3rem; margin: 0 0 2rem; }
.museum .closed-notice h2 { margin-top: 0; border: 0; font-size: 1.2rem; color: var(--accent); }
.museum p.record { font-size: 1.15rem; border-left: 3px solid #111; padding-left: 1rem; font-family: var(--display); font-size: 1.35rem; line-height: 1.35; }
.museum table.files td:first-child { white-space: nowrap; font-size: .85rem; }
.museum .mentions { font-size: .85rem; color: var(--muted); }
.museum ul.timeline li { padding-left: 0; text-indent: 0; border-bottom: 1px solid var(--rule-soft); padding-bottom: .45rem; }
.museum ul.timeline .sc { font-variant: normal; font-weight: 600; letter-spacing: 0; color: #111; }
.museum figure.plate img { background: var(--panel); border: 0; }
.shell-museum .colophon { border-top: 1px solid var(--rule); margin-top: 3rem; }

/* ---------- footer ---------- */
.shell-museum footer.nm-footer { background: #111; color: #cfcfcf; text-align: left; border: 0; padding: 3rem 0 1.5rem; font-size: .92rem; }
.nm-foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 2rem; margin-bottom: 2rem; }
.nm-foot-brand b { font-size: 1.5rem; color: #fff; letter-spacing: -.02em; }
.nm-footer h2 { color: #fff; font-size: 1rem; margin: 0 0 .6rem; font-family: var(--body-font); }
.nm-footer ul { list-style: none; padding: 0; margin: 0; }
.nm-footer li { margin: 0 0 .35rem; }
.nm-footer a { color: #fff !important; text-decoration: none !important; }
.nm-footer a:hover { text-decoration: underline !important; }
.nm-footer p { max-width: none; }
.nm-news label { display: block; margin-bottom: .4rem; }
.nm-news div { display: flex; }
.nm-news input { flex: 1; font: inherit; padding: .5rem .8rem; border: 1px solid #555; background: #222; color: #fff; border-radius: 999px 0 0 999px; }
.nm-news button { font: inherit; font-weight: 600; padding: 0 1rem; border: 1px solid #555; background: #333; color: #aaa; border-radius: 0 999px 999px 0; }
.nm-legal { font-size: .82rem; color: #9a9a9a; border-top: 1px solid #333; padding-top: 1rem; }
.nm-footer .vmt { color: #9a9a9a; }

/* ---------- small screens ---------- */
@media (max-width: 980px) {
  .nm-nav { display: none; }
  .nm-quick { grid-template-columns: 1fr 1fr; gap: 1.2rem 0; }
  .nm-quick > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .nm-split, .nm-object-layout, .nm-results-layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .nm-foot-grid { grid-template-columns: 1fr 1fr; }
  .museum .twocol { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nm-in { padding: 0 16px; }
  .nm-free { display: none; }
  .nm-header-in { gap: 1rem; }
  .nm-cta .nm-btn { padding: .45rem .8rem; font-size: .85rem; }
  .shell-museum main.nm-main { padding: 0 16px 2rem; }
  .shell-museum h1 { font-size: 2rem; }
  .nm-hero { min-height: 420px; }
  .nm-hero-text { left: 16px; right: 16px; bottom: 1.4rem; }
  .nm-quick { grid-template-columns: 1fr; padding: 1.2rem 16px; }
  .nm-quick > div { border-left: 0; padding: 0; }
  .roomlist { columns: 1; }
  .nm-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .nm-object-image { padding: 1rem; }
  dl.nm-facts { grid-template-columns: 1fr; }
  dl.nm-facts dt { border-bottom: 0; padding-bottom: 0; }
  .nm-foot-grid { grid-template-columns: 1fr; }
  .nm-section-head h2 { font-size: 1.4rem; }
}
.nm-hero-text a { color: #fff !important; text-decoration-color: rgba(255,255,255,.6); }
.nm-objects { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.nm-btn { white-space: nowrap; } .nm-search-link { flex: none; }
@media (max-width: 980px) { .nm-header-in { flex-wrap: wrap; row-gap: .4rem; } .nm-nav { display: flex; order: 3; flex-basis: 100%; overflow-x: auto; margin-left: 0; gap: 1.2rem; } .nm-nav a { flex: none; font-size: .92rem; } }
@media (max-width: 640px) { .nm-cta .nm-btn { display: none; } }

/* ---------- timed tickets ---------- */
.nm-book { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.nm-book h1, .ticket-page h1 { font: 400 clamp(2rem, 4vw, 3rem)/1.05 var(--display); margin: .2rem 0 1rem; }
.nm-form fieldset { border: 0; border-top: 1px solid var(--rule); padding: 1rem 0 .4rem; margin: 0; }
.nm-form legend { font-weight: 600; font-size: 1.05rem; padding: 0 0 .5rem; }
.nm-field { display: grid; gap: .3rem; font-weight: 600; margin: 0 0 .8rem; max-width: 26rem; }
.nm-field .small { font-weight: 400; color: var(--muted); }
.nm-form select, .nm-form input[type=text] { font: 400 1rem/1.3 var(--body-font); padding: .6rem .7rem; border: 1px solid #111; border-radius: 8px; background: #fff; width: 100%; }
.nm-slots { display: flex; flex-wrap: wrap; gap: .5rem; }
.nm-slots legend { width: 100%; }
.nm-slots label { position: relative; }
.nm-slots input { position: absolute; opacity: 0; }
.nm-slots span { display: grid; min-width: 6.2rem; text-align: center; padding: .6rem .8rem; border: 1px solid #111; border-radius: 10px; font-weight: 600; cursor: pointer; }
.nm-slots small { font-weight: 400; font-size: .75rem; color: var(--muted); }
.nm-slots input:checked + span { background: #111; color: #fff; }
.nm-slots input:checked + span small { color: #ddd; }
.nm-slots input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.nm-counts { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.nm-counts legend { width: 100%; }
.nm-counts .nm-field { min-width: 11rem; flex: 1 1 11rem; }
.nm-form button.nm-btn { font-size: 1.05rem; padding: .8rem 1.6rem; cursor: pointer; margin-top: .6rem; }
.nm-book-side { background: var(--panel); padding: 1.2rem 1.3rem; border-radius: 14px; }
.nm-book-side h2 { margin-top: 0; font-size: 1.2rem; }
.nm-book-side .nm-list li b { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.nm-ticket { display: grid; grid-template-columns: minmax(0, 1fr) auto; border: 1px solid #111; border-radius: 16px; overflow: hidden; max-width: 46rem; margin: 1rem 0 1.2rem; background: #fff; }
.nm-ticket-main { padding: 1.3rem 1.5rem; }
.nm-ticket-brand { display: flex; align-items: center; gap: .6rem; font-weight: 600; margin: 0; }
.nm-ticket-type { color: var(--muted); margin: .2rem 0 1rem; font-size: .9rem; }
.nm-ticket-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem 1.2rem; margin: 0; }
.nm-ticket-facts dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.nm-ticket-facts dd { margin: 0; font-weight: 600; }
.nm-ticket-facts small { display: block; font-weight: 400; color: var(--muted); }
.nm-ticket-code { display: grid; justify-items: center; align-content: center; gap: .3rem; padding: 1.2rem; border-left: 2px dashed #111; background: var(--panel); font-size: .8rem; }
.nm-ticket-code b { font: 600 .85rem/1 ui-monospace, monospace; }
.nm-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin: 0 0 1rem; }
.nm-actions .nm-btn { cursor: pointer; }
.nm-actions .nm-btn.light { border-color: #111; }
.nm-actions .nm-btn.ghost { color: var(--accent) !important; border-color: var(--accent); }
.nm-cancelled { color: var(--accent); font-weight: 600; }
.nm-route { columns: 1; counter-reset: none; }
.ticket-page .nm-eyebrow { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin: 0; }
.nm-nav .sz-acct { font-size: .9rem; color: var(--muted) !important; }
@media (max-width: 760px) {
  .nm-book { grid-template-columns: 1fr; gap: 1.4rem; }
  .nm-ticket { grid-template-columns: 1fr; }
  .nm-ticket-code { border-left: 0; border-top: 2px dashed #111; }
  .nm-slots span { min-width: 5.2rem; }
}
@media print { .nm-status, .nm-header, .nm-footer, .nm-crumbs, .nm-actions { display: none !important; } .nm-ticket { break-inside: avoid; } }
.nm-grid .nm-result[hidden] { display: none; }
