/* Muehlenbeck Center Guide — community bulletin stylesheet
   Mobile-first, no frameworks. */

:root {
  --sand: #FBF6EE;
  --sand-deep: #F3EADB;
  --paper: #FFFDF8;
  --teal: #0F5257;
  --teal-soft: #DCEBEA;
  --teal-mid: #6FA6A8;
  --coral: #E2674A;
  --coral-ink: #B04428;
  --coral-btn: #C4502F;
  --coral-tint: #FCE8E0;
  --ink: #24292E;
  --ink-soft: #4A5259;
  --line: #E2D7C5;
  --radius: 10px;
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --font-head: "Bricolage Grotesque", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --tiles: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='42' height='14' viewBox='0 0 42 14'%3E%3Crect x='1' y='1' width='12' height='12' rx='2' fill='%230F5257'/%3E%3Crect x='15' y='1' width='12' height='12' rx='2' fill='%236FA6A8'/%3E%3Crect x='29' y='1' width='12' height='12' rx='2' fill='%23E2674A'/%3E%3C/svg%3E");
  --tiles-soft: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Crect x='1' y='1' width='10' height='10' rx='1.5' fill='%23DCEBEA'/%3E%3C/svg%3E");
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--coral-ink); }
a:focus-visible, button:focus-visible, summary:focus-visible, iframe:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--teal);
  line-height: 1.2;
  margin: 0 0 var(--space-4);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 6.4vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 4.2vw, 2.1rem); font-weight: 800; margin-top: var(--space-7); }
h3 { font-size: 1.25rem; font-weight: 700; margin-top: var(--space-6); }
p, ul, ol { margin: 0 0 var(--space-4); }
li { margin-bottom: var(--space-2); }
strong { font-weight: 600; }
small { font-size: .875rem; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--teal); color: #fff; padding: var(--space-2) var(--space-4); z-index: 50;
}
.skip:focus { left: var(--space-4); top: var(--space-2); color: #fff; }

.wrap { width: 100%; max-width: 74rem; margin: 0 auto; padding: 0 1rem; }

/* ---------- Header ---------- */
.site-header { background: var(--sand); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--teal); }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; line-height: 1.05; }
.brand-name span { display: block; font-family: var(--font-body); font-weight: 600; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--coral-ink); }

.nav-toggle {
  display: none;
  font: 600 .95rem var(--font-body);
  color: var(--teal); background: var(--paper);
  border: 2px solid var(--teal); border-radius: 8px;
  padding: .4rem .85rem; cursor: pointer;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.site-nav li { margin: 0; }
.site-nav a { display: inline-block; padding: .35rem .1rem; font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--ink); border-bottom: 3px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--teal); border-bottom-color: var(--coral); }

/* JS-enhanced mobile menu: overlay panel, so opening it never shifts content */
@media (max-width: 859px) {
  .js .nav-toggle { display: inline-block; }
  .js .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper);
    border-bottom: 3px solid var(--teal);
    box-shadow: 0 10px 20px rgba(36, 41, 46, .08);
  }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; padding: .5rem 1rem 1rem; gap: 0; }
  .js .site-nav a { display: block; padding: .7rem 0; border-bottom: 1px solid var(--line); }
  html:not(.js) .site-header .header-inner { flex-wrap: wrap; }
  html:not(.js) .site-nav { width: 100%; padding-bottom: .5rem; }
}
@media (max-width: 420px) {
  .brand svg { width: 34px; height: 34px; }
  .brand-name { font-size: 1rem; }
  .brand-name span { font-size: .6rem; letter-spacing: .06em; }
  .nav-toggle { padding: .35rem .7rem; font-size: .9rem; }
}

/* ---------- Info strip ---------- */
.info-strip { background: var(--teal); color: #fff; position: relative; }
.info-strip::before, .info-strip::after { content: ""; display: block; height: 14px; background: var(--tiles) repeat-x; background-color: var(--sand); }
.info-strip .wrap { display: grid; gap: .6rem 1.5rem; padding-top: .85rem; padding-bottom: .85rem; }
.info-strip .label { display: block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: #CFE5E3; font-weight: 600; }
.info-strip a { color: #fff; font-weight: 600; }
.info-strip a:hover { color: #FFD9CC; }
.info-strip .item { line-height: 1.4; font-size: .95rem; }
.info-strip .strip-note { font-size: .78rem; color: #CFE5E3; grid-column: 1 / -1; margin: 0; }
.open-badge { display: inline-block; margin-left: .35rem; padding: 0 .45rem; border-radius: 99px; font-size: .75rem; font-weight: 600; background: #fff; color: var(--teal); }
.open-badge.closed { background: var(--coral-tint); color: var(--coral-ink); }
@media (min-width: 720px) {
  .info-strip .wrap { grid-template-columns: 1.2fr .8fr 1.2fr; align-items: center; }
}

/* ---------- Layout ---------- */
main { display: block; }
.page { padding: var(--space-6) 0 var(--space-8); }
.measure { max-width: 70ch; }
.prose > section > *, .prose > * { max-width: 70ch; }
.prose > section > .amenity-grid, .prose > section > .fee-cards { max-width: none; }
.prose > section > .table-wrap { max-width: 52rem; }
.prose > section > .table-wrap.narrow { max-width: 34rem; }
.layout { display: grid; gap: var(--space-6); grid-template-columns: minmax(0, 1fr); }
.layout > * { min-width: 0; }
@media (min-width: 1024px) {
  .layout { grid-template-columns: minmax(0, 1fr) 19rem; gap: var(--space-7); align-items: start; }
  .layout aside { position: sticky; top: 1rem; }
}

.kicker { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--coral-ink); margin-bottom: var(--space-3); }
.lede { font-size: 1.15rem; color: var(--ink); }
.byline { font-size: .9rem; color: var(--ink-soft); border-left: 3px solid var(--coral); padding-left: .75rem; margin-bottom: var(--space-5); }

.crumbs ol { list-style: none; padding: 0; margin: 0 0 var(--space-4); display: flex; flex-wrap: wrap; gap: .25rem; font-size: .88rem; color: var(--ink-soft); }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin: 0 .4rem 0 .15rem; color: var(--teal-mid); }

/* ---------- Tile divider ---------- */
.tile-rule { height: 14px; background: var(--tiles) repeat-x; margin: var(--space-7) 0 0; border: 0; opacity: .9; }
.tile-rule.short { width: 126px; margin: 0 0 var(--space-4); }

/* ---------- Home hero ---------- */
.hero { display: grid; gap: var(--space-5); align-items: center; }
.hero-art { display: none; }
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .hero-art { display: block; }
}

/* ---------- Boxes ---------- */
.quick-answer {
  background: var(--paper);
  border: 2px solid var(--teal);
  border-radius: var(--radius);
  padding: var(--space-5);
  margin: var(--space-5) 0;
  position: relative;
}
.quick-answer::before { content: ""; position: absolute; left: -2px; right: -2px; top: -16px; height: 14px; background: var(--tiles) repeat-x; }
.quick-answer h2 { margin-top: 0; font-size: 1.3rem; }
.quick-answer dl { display: grid; grid-template-columns: 1fr; gap: .35rem 1rem; margin: var(--space-4) 0 0; }
.quick-answer dt { font-weight: 600; color: var(--teal); }
.quick-answer dd { margin: 0 0 .5rem; }
@media (min-width: 600px) {
  .quick-answer dl { grid-template-columns: 9rem 1fr; }
  .quick-answer dd { margin: 0; }
}

.note, .heads-up {
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-5);
  margin: var(--space-5) 0;
}
.note { background: var(--teal-soft); border-left: 6px solid var(--teal); }
.heads-up { background: var(--coral-tint); border-left: 6px solid var(--coral); }
.note > :last-child, .heads-up > :last-child { margin-bottom: 0; }
.note strong:first-child, .heads-up strong:first-child { color: var(--teal); }

.official-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-5);
  margin: var(--space-5) 0;
}
.official-card h3 { margin-top: 0; }
.official-card .tag { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; background: var(--teal); color: #fff; padding: .15rem .55rem; border-radius: 4px; margin-bottom: var(--space-3); }
.official-card ul { list-style: none; padding: 0; }

.toc {
  background: var(--paper);
  border: 1px dashed var(--teal-mid);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-5);
  margin: var(--space-5) 0;
}
.toc h2 { font-size: 1.1rem; margin: 0 0 var(--space-3); }
.toc ol { margin: 0; padding-left: 1.25rem; columns: 1; }
.toc li { margin-bottom: .3rem; }
@media (min-width: 700px) { .toc ol { columns: 2; column-gap: 2rem; } }

/* ---------- Amenity cards ---------- */
.amenity-grid { list-style: none; padding: 0; display: grid; gap: var(--space-4); grid-template-columns: 1fr; margin: var(--space-5) 0; }
@media (min-width: 600px) { .amenity-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .amenity-grid { grid-template-columns: repeat(3, 1fr); } }
.amenity-grid li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-4); margin: 0; display: flex; gap: .75rem; align-items: flex-start; }
.amenity-grid svg { width: 34px; height: 34px; flex: none; }
.amenity-grid strong { display: block; color: var(--teal); font-family: var(--font-head); font-size: 1.05rem; }
.amenity-grid span { font-size: .93rem; color: var(--ink-soft); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: var(--space-5) 0; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); }
table { border-collapse: collapse; width: 100%; min-width: 30rem; font-size: .95rem; }
.table-wrap.narrow table { min-width: 0; }
caption { text-align: left; padding: .8rem 1rem; font-weight: 600; color: var(--teal); font-family: var(--font-head); font-size: 1.05rem; caption-side: top; }
th, td { padding: .65rem 1rem; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
thead th { background: var(--teal); color: #fff; font-weight: 600; border-top: 0; }
tbody th { font-weight: 600; color: var(--ink); }
tbody tr:nth-child(even) { background: #FAF3E7; }
tr.is-today { background: var(--coral-tint) !important; }
tr.is-today th::after { content: " · today"; color: var(--coral-ink); font-weight: 600; font-size: .8rem; }

/* ---------- Fee cards ---------- */
.fee-cards { display: grid; gap: var(--space-4); grid-template-columns: 1fr; margin: var(--space-5) 0; padding: 0; list-style: none; }
@media (min-width: 560px) { .fee-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .fee-cards.four { grid-template-columns: repeat(4, 1fr); } }
.fee-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0; }
.fee-card h3 { margin: 0; padding: .7rem 1rem; background: var(--teal); color: #fff; font-size: 1.05rem; }
.fee-card h3 small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .8rem; color: #CFE5E3; }
.fee-card dl { margin: 0; padding: .5rem 1rem .9rem; }
.fee-card dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px dotted var(--line); }
.fee-card dl div:last-child { border-bottom: 0; }
.fee-card dt { color: var(--ink-soft); font-size: .92rem; }
.fee-card dd { margin: 0; font-weight: 600; font-family: var(--font-head); font-size: 1.15rem; color: var(--ink); }
.fee-card .accent dd { color: var(--coral-ink); }

/* ---------- Map ---------- */
.map { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; border: 2px solid var(--teal); background: var(--teal-soft); margin: var(--space-5) 0; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (min-width: 760px) { .map { aspect-ratio: 16 / 9; } }

/* ---------- FAQ ---------- */
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: var(--space-3); }
.faq summary { cursor: pointer; padding: .9rem 1rem; font-weight: 600; color: var(--teal); list-style: none; position: relative; padding-right: 2.5rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1rem; top: .75rem; font-size: 1.3rem; color: var(--coral-ink); font-weight: 700; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 1rem .9rem; }
.faq details > div > :last-child { margin-bottom: 0; }

/* ---------- Related & sources ---------- */
.related { margin-top: var(--space-7); }
.related ul { list-style: none; padding: 0; display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 700px) { .related ul { grid-template-columns: repeat(2, 1fr); } }
.related li { margin: 0; }
.related a { display: block; height: 100%; text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-top: 5px solid var(--coral); border-radius: var(--radius); padding: var(--space-4); color: var(--ink); }
.related a strong { display: block; font-family: var(--font-head); color: var(--teal); font-size: 1.1rem; margin-bottom: .25rem; }
.related a span { font-size: .93rem; color: var(--ink-soft); }
.related a:hover { border-color: var(--teal); border-top-color: var(--coral); }

.sources { margin-top: var(--space-7); font-size: .93rem; }
.sources h2 { font-size: 1.35rem; }
.sources ol { padding-left: 1.25rem; }

/* ---------- Aside ---------- */
.glance { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-4) var(--space-5); font-size: .95rem; }
.glance h2 { font-size: 1.15rem; margin: 0 0 var(--space-3); }
.glance ul { list-style: none; padding: 0; margin: 0 0 var(--space-4); }
.glance li { padding: .35rem 0; border-bottom: 1px dotted var(--line); margin: 0; }
.glance li:last-child { border-bottom: 0; }
.glance .tile-rule { margin: 0 0 var(--space-3); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--coral-btn); color: #fff; text-decoration: none;
  font-weight: 600; padding: .65rem 1.1rem; border-radius: 8px; border: 2px solid var(--coral-btn);
  max-width: 100%; overflow-wrap: anywhere;
}
.btn:hover { background: #A8401F; border-color: #A8401F; color: #fff; }
.btn.ghost { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn.ghost:hover { background: var(--teal); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: var(--space-4) 0; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 3rem; margin-bottom: var(--space-4); }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: .1rem;
  width: 2.1rem; height: 2.1rem; border-radius: 6px; background: var(--teal); color: #fff;
  font-family: var(--font-head); font-weight: 800; display: flex; align-items: center; justify-content: center;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--sand-deep); border-top: 1px solid var(--line); padding: 0 0 var(--space-6); font-size: .93rem; color: var(--ink); }
.site-footer::before { content: ""; display: block; height: 14px; background: var(--tiles) repeat-x; margin-bottom: var(--space-6); }
.footer-grid { display: grid; gap: var(--space-5); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { font-size: 1rem; margin: 0 0 var(--space-3); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .35rem; }
.independence { font-weight: 600; color: var(--teal); }
.footer-base { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .85rem; }

/* ---------- 404 ---------- */
.lost { text-align: left; padding: var(--space-7) 0; }
.lost svg { width: 180px; margin-bottom: var(--space-4); }

@media print {
  .site-nav, .nav-toggle, .map, .info-strip::before, .info-strip::after { display: none !important; }
  body { background: #fff; }
}

/* long domains in emails and URLs must wrap on phones */
a[href^="mailto:"], a[href^="http"] { overflow-wrap: anywhere; } /* long domains */
