/* ==========================================================================
   Musina Hotel & Conference Centre
   Static rebuild of the Replit/React staging site - conversion, not redesign.
   Design tokens lifted verbatim from client/src/index.css :root and
   tailwind.config.ts; every measurement verified against the live staging DOM.
   ========================================================================== */

:root {
  --background: hsl(0, 0%, 100%);
  --foreground: hsl(0, 0%, 10%);
  --card: hsl(0, 0%, 98%);
  --primary: hsl(110, 60%, 45%);
  --secondary: hsl(0, 0%, 15%);
  --muted: hsl(0, 0%, 96%);
  --muted-foreground: hsl(0, 0%, 35%);
  --border: hsl(0, 0%, 85%);
  --radius: 0.5rem;
  --font-sans: 'Roboto', sans-serif;
  --font-serif: 'Oswald', sans-serif;
  --avis-red: #D8232A;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* --- reset (Tailwind preflight subset) --- */
*, *::before, *::after { box-sizing: border-box; border: 0 solid var(--border); margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-serif); font-size: inherit; font-weight: inherit; }
img, svg, iframe { display: block; vertical-align: middle; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; cursor: pointer; }
svg { flex-shrink: 0; }
hr { border-top-width: 1px; }

/* --- layout primitives --- */
.wrap { max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .wrap { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .wrap { padding: 0 2rem; } }
.wrap-narrow { max-width: 56rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .wrap-narrow { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .wrap-narrow { padding: 0 2rem; } }

.section-padding { padding-top: 5rem; padding-bottom: 5rem; }
.page-hero { padding-top: 4rem; padding-bottom: 4rem; background: #e5e7eb; }
.bg-white { background: #fff; }
.bg-muted { background: var(--muted); }
.bg-gray-100 { background: #f3f4f6; }
.page { padding-top: 4rem; }

/* --- typography --- */
.h1 { font-family: var(--font-serif); font-size: 2.25rem; line-height: 2.5rem; margin-bottom: 1rem; }
.h2 { font-family: var(--font-serif); font-size: 1.875rem; line-height: 2.25rem; margin-bottom: 1rem; }
.h3 { font-family: var(--font-serif); font-size: 1.5rem; line-height: 2rem; margin-bottom: 1.5rem; }
.h3-lg { font-family: var(--font-serif); font-size: 1.5rem; line-height: 2rem; margin-bottom: 1rem; }
.h4 { font-family: var(--font-serif); font-size: 1.25rem; line-height: 1.75rem; }
.h5 { font-family: var(--font-serif); font-size: 1.125rem; line-height: 1.75rem; }
@media (min-width: 768px) {
  .h1 { font-size: 3rem; line-height: 1; }
  .h2 { font-size: 2.25rem; line-height: 2.5rem; }
  .h3-lg { font-size: 1.875rem; line-height: 2.25rem; }
}
.lead { font-size: 1.25rem; line-height: 1.75rem; color: var(--muted-foreground); }
.section-sub { font-size: 1.125rem; line-height: 1.75rem; color: var(--muted-foreground); }
.muted { color: var(--muted-foreground); }
.small { font-size: 0.875rem; line-height: 1.25rem; }
.xs { font-size: 0.75rem; line-height: 1rem; }
.semibold { font-weight: 600; }
.medium { font-weight: 500; }
.bold { font-weight: 700; }
/* NOTE: deliberately no global `p + p { margin-top }`. The original set every
   paragraph gap with an explicit utility, and a blanket rule silently pushed
   apart stacked lines that are meant to be tight (the two reception numbers). */

/* --- grids --- */
.grid { display: grid; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.items-center { align-items: center; }
@media (min-width: 768px) {
  .md-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .lg-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  .xl-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* --- navbar --- */
.navbar {
  position: fixed; top: 0; width: 100%; z-index: 50;
  background: #fff; box-shadow: var(--shadow-sm);
}
.navbar .inner { display: flex; justify-content: center; align-items: center; height: 5rem; position: relative; }
.navbar .logo img { height: 4rem; width: auto; }
.navbar .links { display: none; align-items: center; gap: 1.5rem; }
.navbar .links a { font-size: 0.875rem; font-weight: 500; color: #4b5563; transition: color .15s; }
.navbar .links a:hover { color: var(--foreground); }
.navbar .links a[aria-current="page"] { color: var(--foreground); font-weight: 700; }
@media (min-width: 768px) {
  .navbar .links { display: flex; }
  .navbar .logo { position: absolute; left: 1rem; }
}
@media (min-width: 1024px) { .navbar .logo { left: 2rem; } }

/* --- hero (home) --- */
.hero-section {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff;
  background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('/assets/img/hero-1920.jpg');
  background-size: cover; background-position: center;
}
@media (max-width: 767px) {
  .hero-section { background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('/assets/img/hero-960.jpg'); }
}
@supports (background-image: image-set(url('/assets/img/hero-960.webp') type('image/webp'))) {
  .hero-section {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
      image-set(url('/assets/img/hero-1920.webp') type('image/webp'), url('/assets/img/hero-1920.jpg') type('image/jpeg'));
  }
  @media (max-width: 767px) {
    .hero-section {
      background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
        image-set(url('/assets/img/hero-960.webp') type('image/webp'), url('/assets/img/hero-960.jpg') type('image/jpeg'));
    }
  }
}
.hero-inner { max-width: 56rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .hero-inner { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .hero-inner { padding: 0 2rem; } }
.hero-title { font-family: var(--font-serif); font-size: 2.25rem; line-height: 2.5rem; font-weight: 700; margin-bottom: 1.5rem; }
.hero-sub { font-size: 1.25rem; line-height: 1.75rem; font-weight: 500; margin-bottom: 2rem; }
.hero-body { font-size: 1.125rem; line-height: 1.625; max-width: 48rem; margin: 0 auto; }
.hero-copy { margin-bottom: 2rem; }
.hero-actions { display: flex; flex-direction: column; gap: 1rem; justify-content: center; }
@media (min-width: 640px) { .hero-actions { flex-direction: row; } }
@media (min-width: 768px) {
  .hero-title { font-size: 3.75rem; line-height: 1; }
  .hero-sub { font-size: 1.5rem; line-height: 2rem; }
  .hero-body { font-size: 1.25rem; }
}

/* --- buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 2.75rem; padding: 0 2rem;
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.875rem; font-weight: 500;
  color: #fff; white-space: nowrap;
  transition: transform .2s ease, background-color .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn svg { margin-right: 0.5rem; width: 1rem; height: 1rem; }
.btn-primary { background: var(--primary); }
.btn-primary:hover { background: hsl(110, 60%, 42%); }
.btn-secondary { background: var(--secondary); }
.btn-secondary:hover { background: hsl(0, 0%, 13%); }
.btn-foreground { background: var(--foreground); }
.btn-avis { background: var(--avis-red); width: 100%; }
.btn-avis:hover { opacity: .9; }
.btn-sm { height: 2.5rem; padding: 0 1.5rem; }
.btn-block { width: 100%; }

/* --- cards --- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  height: 100%;
  display: flex; flex-direction: column;
}
.card-flat { border: 0; }
.card-bordered { border: 2px solid #d1d5db; }
.card-white { background: #fff; }
.card-body { padding: 1.5rem; }
.card-body-sm { padding: 1rem; }
.card-pad { padding: 1.5rem; text-align: center; }
.card img { width: 100%; object-fit: cover; }
.card .img-64 { height: 16rem; }
.card .img-48 { height: 12rem; }
.card-hover-lift { transition: transform .3s ease; }
.card-hover-lift:hover { transform: scale(1.05); }
.card-hover-shadow { transition: box-shadow .15s ease; }
.card-hover-shadow:hover { box-shadow: var(--shadow-md); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.rounded { border-radius: var(--radius); }
.rounded-img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; }

/* --- feature lists --- */
.feature-list li { display: flex; align-items: center; font-size: 0.875rem; line-height: 1.25rem; }
.feature-list li + li { margin-top: 0.5rem; }
.feature-list svg { width: 1rem; height: 1rem; color: #22c55e; margin-right: 0.5rem; flex-shrink: 0; }
.feature-list-xs li { font-size: 0.75rem; line-height: 1rem; }
.feature-list-xs li + li { margin-top: 0.25rem; }
.feature-list-xs svg { width: 0.75rem; height: 0.75rem; }
.dot-list li { display: flex; align-items: center; font-size: 0.875rem; line-height: 1.25rem; }
.dot-list li + li { margin-top: 0.5rem; }
.dot { width: 0.5rem; height: 0.5rem; background: #22c55e; border-radius: 9999px; margin-right: 0.75rem; flex-shrink: 0; }
.icon-heading { display: flex; align-items: center; margin-bottom: 1rem; }
.icon-heading svg { width: 1.25rem; height: 1.25rem; margin-right: 0.5rem; color: var(--foreground); }
.icon-lg { width: 3rem; height: 3rem; margin: 0 auto 1rem; color: var(--secondary); }
.icon-md { width: 1.5rem; height: 1.5rem; margin: 0 auto 0.75rem; color: var(--foreground); }
.icon-lg-dark { color: var(--foreground); }
.icon-lg-avis { color: var(--avis-red); }
.special { background: #fff; padding: 0.5rem; border-radius: var(--radius); margin-top: auto; }
.special p { font-size: 0.75rem; font-weight: 500; }
.special-muted { background: var(--muted); padding: 0.75rem; border-radius: var(--radius); margin-top: auto; }
.special-muted p { font-size: 0.875rem; font-weight: 500; }
/* the 5th room card is centred at half width only from lg up (lg:col-span-2
   lg:max-w-[calc(50%-1rem)] lg:mx-auto). Applying it at every width squeezed
   the card on mobile and added ~1000px to the page. */
@media (min-width: 1024px) {
  .room-wide { grid-column: 1 / -1; max-width: calc(50% - 1rem); margin-inline: auto; }
}

/* --- stats row (home) --- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; text-align: center; }
.stats h3 { font-size: 1.5rem; line-height: 2rem; font-weight: 700; font-family: var(--font-serif); }
.stats p { font-size: 0.875rem; color: var(--muted-foreground); }

/* --- inline icon rows --- */
.icon-row { display: flex; align-items: center; }
.icon-row + .icon-row { margin-top: 0.5rem; }
.icon-row svg { width: 1.25rem; height: 1.25rem; margin-right: 0.5rem; color: var(--foreground); }
.icon-row-sm svg { width: 1rem; height: 1rem; }
.feature-pair { display: flex; align-items: flex-start; }
.feature-pair svg { width: 1.25rem; height: 1.25rem; margin-right: 0.5rem; margin-top: 0.25rem; flex-shrink: 0; color: var(--foreground); }
.feature-pair h4 { font-weight: 600; font-size: 0.875rem; }
.feature-pair p { font-size: 0.75rem; color: var(--muted-foreground); }

/* --- galleries --- */
.gallery-item { cursor: pointer; }
.gallery-frame { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: box-shadow .15s; }
.gallery-item:hover .gallery-frame { box-shadow: var(--shadow-lg); }
.gallery-frame img { width: 100%; height: 16rem; object-fit: cover; transition: transform .3s ease; }
.gallery-item:hover .gallery-frame img { transform: scale(1.05); }
.gallery-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0); transition: background-color .3s; pointer-events: none;
}
.gallery-item:hover .gallery-overlay { background: rgba(0,0,0,.2); }
.gallery-overlay span { color: #fff; font-weight: 500; opacity: 0; transition: opacity .3s; }
.gallery-item:hover .gallery-overlay span { opacity: 1; }
.gallery-caption { text-align: center; margin-top: 0.75rem; font-weight: 600; }

.sq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (min-width: 768px) { .sq-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .sq-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sq {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  border-radius: var(--radius); box-shadow: var(--shadow-md); cursor: pointer;
  transition: box-shadow .15s;
}
.sq:hover { box-shadow: var(--shadow-xl); }
.sq img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.sq:hover img { transform: scale(1.05); }

/* --- reviews carousel --- */
.reviews { position: relative; }
.reviews-viewport { overflow: hidden; }
.reviews-track { display: flex; transition: transform .5s ease-in-out; }
.reviews-slide { width: 100%; flex-shrink: 0; }
.reviews-slide .grid { grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 1.5rem; }
@media (min-width: 768px) { .reviews-slide .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.review-card { min-height: 280px; text-align: center; padding: 1.5rem; border: 0; box-shadow: var(--shadow-sm); }
.review-card .logo { margin-bottom: 1rem; display: flex; justify-content: center; }
.review-card .logo svg { width: 3.75rem; height: 3.75rem; filter: grayscale(1); opacity: .8; }
.review-card h4 { font-size: 1.5rem; line-height: 2rem; font-family: var(--font-serif); font-weight: 700; }
.review-card .count { color: var(--muted-foreground); margin-bottom: 0.75rem; }
.review-card .platform { font-size: 0.875rem; font-weight: 500; margin-top: 0.75rem; display: inline-block; }
.reviews-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 2.25rem; height: 2.25rem; display: flex; align-items: center; justify-content: center;
  border-radius: 9999px; background: var(--secondary); color: #fff; border: 1px solid var(--secondary);
}
.reviews-btn:hover { background: hsl(0, 0%, 13%); }
.reviews-btn svg { width: 1rem; height: 1rem; }
.reviews-prev { left: 1rem; }
.reviews-next { right: 1rem; }
.reviews-dots { display: flex; justify-content: center; margin-top: 1.5rem; gap: 0.5rem; }
.reviews-dots button { width: 0.75rem; height: 0.75rem; border-radius: 9999px; background: #d1d5db; transition: background-color .15s; }
.reviews-dots button[aria-selected="true"] { background: var(--foreground); }

/* --- map --- */
.map-4-3 { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.map-4-3 iframe { width: 100%; height: 100%; border: 0; }
.map-tall { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.map-tall iframe { width: 100%; height: 450px; border: 0; }

/* --- AVIS section --- */
.avis-section {
  background: linear-gradient(to bottom, #f9fafb, #fff);
  border-top: 4px solid var(--avis-red);
  border-bottom: 4px solid var(--avis-red);
}
.avis-logo-plate {
  display: inline-block; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 1.5rem 2rem; margin-bottom: 1.5rem;
  border: 2px solid var(--avis-red);
}
.avis-logo-plate img { height: 4rem; width: auto; object-fit: contain; margin: 0 auto; }
@media (min-width: 768px) { .avis-logo-plate img { height: 5rem; } }
.avis-title { color: var(--avis-red); }
.avis-contact-card { border: 2px solid #e5e7eb; box-shadow: var(--shadow-lg); max-width: 56rem; margin: 0 auto; background: #fff; }
.avis-contact-card .card-body { padding: 2rem; }
.avis-contact-card hr { margin: 2rem 0; }

/* --- conference packages --- */
.pkg-desktop { display: none; }
.pkg-mobile { display: block; }
@media (min-width: 1024px) {
  .pkg-desktop { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
  .pkg-mobile { display: none; }
}
.pkg-card ul { margin-bottom: 1.5rem; font-size: 0.875rem; }
.pkg-card ul li + li { margin-top: 0.5rem; }
.accordion-item { border: 2px solid #d1d5db; border-radius: var(--radius); background: #fff; }
.accordion-item + .accordion-item { margin-top: 1rem; }
.accordion-head { display: flex; }
.accordion-trigger {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 1rem 1.5rem; text-align: left; font-weight: 500;
}
.accordion-trigger .label { display: flex; align-items: center; gap: 0.75rem; }
.accordion-trigger .label svg { width: 1.5rem; height: 1.5rem; }
.accordion-trigger .label span { font-family: var(--font-serif); font-size: 1.125rem; }
.accordion-trigger .chev { width: 1rem; height: 1rem; transition: transform .2s; }
.accordion-trigger[aria-expanded="true"] .chev { transform: rotate(180deg); }
.accordion-panel { display: none; padding: 0 1.5rem 1.5rem; }
.accordion-panel[data-open="true"] { display: block; }

/* --- contact cards --- */
.contact-card { text-align: center; padding: 1.5rem; border: 2px solid #d1d5db; background: #fff; box-shadow: var(--shadow-md); }
.contact-card .rows p { display: flex; align-items: center; justify-content: center; font-size: 0.875rem; }
.contact-card .rows p + p { margin-top: 0.5rem; }
.contact-card .rows svg { width: 1rem; height: 1rem; margin-right: 0.5rem; color: var(--foreground); }
.address-card { border: 2px solid #d1d5db; background: #f3f4f6; box-shadow: var(--shadow-md); margin-bottom: 1.5rem; }
.address-card .divider { border-top: 1px solid var(--border); padding-top: 1rem; margin-top: 1rem; }

/* --- footer --- */
.footer { background: var(--secondary); color: #fff; }
.footer .top { padding: 3rem 0; }
.footer .grid { grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 2rem; }
@media (min-width: 768px) { .footer .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .footer .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.footer img.brand { height: 4rem; width: auto; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer p, .footer a { color: rgba(255,255,255,.9); }
.footer h5 { font-family: var(--font-serif); font-size: 1.125rem; font-weight: 600; margin-bottom: 1rem; }
.footer .links li + li { margin-top: 0.5rem; }
.footer .links a:hover { color: #fff; }
.footer .contact > div + div { margin-top: 0.75rem; }
.footer .contact .label { display: flex; align-items: center; margin-bottom: 0.25rem; }
.footer .contact .label svg { width: 1rem; height: 1rem; margin-right: 0.5rem; }
.footer .contact .value, .footer .contact .value a { color: #fff; }
.footer .social { display: flex; gap: 1rem; }
.footer .social svg { width: 2rem; height: 2rem; }
.footer .bottom { background: rgba(0,0,0,.2); padding: 1rem 0; }
.footer .bottom p { font-size: 0.875rem; text-align: center; }
.footer .book { margin-bottom: 1rem; }

/* --- mobile bottom nav --- */
.mobile-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  background: #fff; border-top: 1px solid #e5e7eb; box-shadow: var(--shadow-lg);
}
.mobile-nav .row { display: flex; justify-content: space-around; align-items: center; height: 4rem; max-width: 32rem; margin: 0 auto; padding: 0 0.5rem; }
.mobile-nav a, .mobile-nav button {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex: 1 1 0%; height: 100%; color: #4b5563;
}
.mobile-nav svg { width: 1.25rem; height: 1.25rem; margin-bottom: 0.25rem; }
.mobile-nav span { font-size: 0.75rem; }
.mobile-nav a[aria-current="page"] { color: var(--primary); }
.mobile-nav a[aria-current="page"] span { font-weight: 600; }
@media (min-width: 768px) { .mobile-nav { display: none; } }
main { padding-bottom: 4rem; }
@media (min-width: 768px) { main { padding-bottom: 0; } }

/* --- mobile menu sheet --- */
.sheet { position: fixed; inset: 0; z-index: 60; display: none; }
.sheet[data-open="true"] { display: block; }
.sheet-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.8); }
.sheet-panel {
  position: absolute; inset: 0 auto 0 0; width: 100%; background: #fff;
  display: flex; flex-direction: column;
  animation: sheet-in .3s ease;
}
@keyframes sheet-in { from { transform: translateX(-100%); } to { transform: none; } }
.sheet-head { display: flex; align-items: center; justify-content: center; padding: 1.5rem 0; border-bottom: 1px solid #e5e7eb; position: relative; }
.sheet-head img { height: 4rem; width: auto; }
.sheet-close { position: absolute; right: 1rem; top: 1rem; padding: 0.5rem; }
.sheet-close svg { width: 1.25rem; height: 1.25rem; }
.sheet-links { flex: 1; padding: 1rem 0.5rem; overflow-y: auto; }
.sheet-links a {
  display: block; padding: 1rem 1.5rem; font-size: 1.125rem; font-weight: 500;
  color: #374151; border-bottom: 1px solid #f3f4f6;
}
.sheet-links a[aria-current="page"] { color: var(--primary); background: hsl(110 60% 45% / .1); font-weight: 600; }

/* --- lightbox --- */
.lightbox { position: fixed; inset: 0; z-index: 70; display: none; align-items: center; justify-content: center; padding: 1rem; }
.lightbox[data-open="true"] { display: flex; }
.lightbox-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.8); }
.lightbox-inner { position: relative; max-width: 56rem; width: 100%; }
.lightbox-inner img { width: 100%; height: auto; border-radius: var(--radius); }
.lightbox-close {
  position: absolute; top: 0.5rem; right: 0.5rem; z-index: 10;
  background: rgba(0,0,0,.5); color: #fff; border-radius: 9999px;
  width: 2.25rem; height: 2.25rem; display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { background: rgba(0,0,0,.7); }
.lightbox-close svg { width: 1rem; height: 1rem; }

/* --- 404 --- */
.notfound { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 4rem 1rem; text-align: center; }
.notfound .code { font-family: var(--font-serif); font-size: 4rem; line-height: 1; color: var(--primary); margin-bottom: 1rem; }
.notfound h1 { font-family: var(--font-serif); font-size: 1.875rem; margin-bottom: 1rem; }
.notfound p { color: var(--muted-foreground); margin-bottom: 2rem; }
.notfound .actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* --- misc --- */
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 100; background: #fff; padding: .5rem 1rem; border-radius: var(--radius); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.stack-tight > * + * { margin-top: 0.5rem; }
.center-col { display: flex; flex-direction: column; align-items: center; }
.max-w-2xl { max-width: 42rem; margin: 0 auto; }
/* --------------------------------------------------------------------------
   Utility layer - LAST on purpose. In Tailwind these live in @layer utilities
   and therefore beat component styles; same-specificity source order is what
   reproduces that here. Moving this block up silently shrinks every heading
   margin (mb-12 loses to .h2) and every card that uses `small relaxed`.
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.relaxed { line-height: 1.625; }
.mb-0 { margin-bottom: 0; }
.mb-12 { margin-bottom: 3rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .btn:hover, .card-hover-lift:hover, .sq:hover img, .gallery-item:hover .gallery-frame img { transform: none; }
}
