/* Namirembe Guest House — dining.html (hero, signatures, interactive menu, callouts).
   Tokens come from styles.css :root. No left accent bars. Works with css/order.css. */

.dn-tools[hidden], .dn-tabs-wrap[hidden], .dn-search [hidden] { display: none !important; }
.dn-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Hero ---------- */
.dn-hero { padding: clamp(36px, 6vw, 84px) 0 clamp(40px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.dn-hero .container { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.dn-hero h1 { font-family: var(--font-display); font-size: clamp(42px, 6.2vw, 84px); line-height: .96; letter-spacing: -.02em; margin-top: 16px; }
.dn-hero h1 em { font-style: italic; color: var(--clay); }
.dn-hero .lede { margin: 22px 0 0; max-width: 54ch; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.6; color: var(--ink-soft); }
.dn-hours { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 22px; font-size: 14px; color: var(--ink-soft); }
.dn-open { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: var(--paper-deep);
  font: 500 12px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.dn-open::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-muted); }
.dn-open[data-state="open"]::before { background: #2F7D4A; }
.dn-open[data-state="closed"]::before { background: #B23A2E; }
.dn-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; align-items: center; }
.dn-cta .btn { min-height: 48px; }
.dn-dl small { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; opacity: .75; text-transform: none; }
.dn-textlink { color: var(--clay); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; }
.dn-textlink:focus-visible, .dn-chip:focus-visible, .dn-tabs a:focus-visible, .dn-search input:focus-visible, .dn-clear:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }

.dn-collage { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; gap: 14px; }
.dn-collage figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--paper-deep); }
.dn-collage img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dn-collage .c1 { grid-row: span 2; aspect-ratio: 4 / 5; }
.dn-collage .c2, .dn-collage .c3 { aspect-ratio: 1 / 1; }
.dn-collage figcaption { position: absolute; left: 14px; bottom: 14px; max-width: calc(100% - 28px); padding: 10px 14px; border-radius: 12px;
  background: rgba(36, 22, 32, .82); color: var(--paper); font-family: var(--font-display); font-style: italic; font-size: 18px; line-height: 1.25; }
.dn-collage figcaption small { display: block; font: 500 10px var(--font-mono); font-style: normal; letter-spacing: .18em; text-transform: uppercase; opacity: .8; margin-top: 4px; }

/* ---------- Chef story ---------- */
.dn-chef .container { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.dn-chef figure { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-deep); }
.dn-chef figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dn-chef h2, .dn-h2 { font-family: var(--font-display); font-size: clamp(34px, 4.6vw, 60px); line-height: 1; letter-spacing: -.02em; margin-top: 14px; }
.dn-chef h2 em, .dn-h2 em { font-style: italic; color: var(--clay); }
.dn-chef p { color: var(--ink-soft); font-size: 17px; line-height: 1.6; }
.dn-quote { margin: 24px 0 0; padding: 24px 26px; border-radius: var(--radius-sm); background: var(--paper-deep);
  font-family: var(--font-display); font-style: italic; font-size: clamp(19px, 1.8vw, 23px); line-height: 1.4; color: var(--ink); }
.dn-quote p { margin: 0; color: inherit; font-size: inherit; }
.dn-quote footer { margin-top: 12px; font: 500 10px var(--font-mono); font-style: normal; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-muted); }
.dn-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; }
.dn-facts li { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); font-size: 14px; color: var(--ink-soft); line-height: 1.4; }
.dn-facts strong { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 400; color: var(--ink); margin-bottom: 2px; }

/* ---------- Signatures ---------- */
.dn-sig-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); margin-top: clamp(28px, 4vw, 48px); }
.dn-sig { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--paper); border: 1px solid var(--line); }
.dn-sig-media { aspect-ratio: 4 / 3; background: var(--paper-deep); position: relative; }
.dn-sig-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dn-sig-media.type { display: grid; place-items: center; background: var(--cathedral); color: var(--paper); text-align: center; padding: 24px; }
.dn-sig-media.type span { font-family: var(--font-display); font-style: italic; font-size: clamp(28px, 3vw, 40px); line-height: 1.05; }
.dn-sig-media.type small { display: block; margin-top: 10px; font: 500 10px var(--font-mono); font-style: normal; letter-spacing: .2em; text-transform: uppercase; opacity: .8; }
.dn-sig-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.dn-sig h3 { font-family: var(--font-display); font-size: 28px; line-height: 1.05; }
.dn-sig p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.dn-sig .meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.dn-price { font: 500 13px var(--font-mono); letter-spacing: .04em; color: var(--ink); white-space: nowrap; }
.dn-price.ask { color: var(--clay-deep); }
.dn-origin { font: 500 10px var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted); }

/* ---------- Menu ---------- */
.dn-menu { background: var(--paper-deep); }
.dn-menu-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.dn-menu-head p { max-width: 52ch; color: var(--ink-soft); line-height: 1.55; margin: 14px 0 0; }
.dn-tools { margin-top: clamp(24px, 3vw, 36px); display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 14px 20px; align-items: center; }
.dn-search { position: relative; }
.dn-search label { display: block; font: 500 10px var(--font-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 6px; }
.dn-search input { width: 100%; min-height: 48px; padding: 0 44px 0 42px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--paper);
  font: 400 16px var(--font-body); color: var(--ink); -webkit-appearance: none; appearance: none; }
.dn-search input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.dn-search svg { position: absolute; left: 15px; bottom: 15px; width: 18px; height: 18px; stroke: var(--ink-muted); fill: none; stroke-width: 2; pointer-events: none; }
.dn-search .dn-clear-x { position: absolute; right: 4px; bottom: 2px; width: 44px; height: 44px; border: 0; background: none; border-radius: 50%; font-size: 20px; color: var(--ink-muted); cursor: pointer; }
.dn-search .dn-clear-x[hidden] { display: none; }
.dn-diet { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dn-diet .lbl { font: 500 10px var(--font-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-muted); margin-right: 4px; width: 100%; }
.dn-chip { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink-soft);
  font: 500 13px var(--font-body); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.dn-chip[aria-pressed="true"] { background: var(--cathedral); border-color: var(--cathedral); color: var(--paper); }
.dn-chip:hover { border-color: var(--ink); }

.dn-tabs-wrap { position: sticky; top: var(--dn-sticky-top, 72px); z-index: 30; margin: 22px calc(var(--gutter) * -1) 0; padding: 10px var(--gutter);
  background: rgba(236, 226, 220, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.dn-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 2px; scroll-padding: 0 12px; }
.dn-tabs::-webkit-scrollbar { display: none; }
.dn-tabs a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--paper); color: var(--ink); font: 500 14px var(--font-body); text-decoration: none; white-space: nowrap; }
.dn-tabs a .n { font: 500 11px var(--font-mono); color: var(--ink-muted); }
.dn-tabs a[aria-current="true"] { background: var(--clay); border-color: var(--clay); color: #fff; }
.dn-tabs a[aria-current="true"] .n { color: rgba(255, 255, 255, .85); }
.dn-tabs a.is-empty { opacity: .45; }
.dn-status { margin: 14px 0 0; font-size: 14px; color: var(--ink-soft); min-height: 1.4em; }

.menu-board { margin-top: 8px; }
.menu-board .menu-section { margin: 0; padding-top: clamp(26px, 3vw, 40px); scroll-margin-top: calc(var(--dn-sticky-top, 72px) + 70px); }
.menu-board .menu-section[hidden] { display: none; }
.menu-board .menu-section > header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--line-strong); }
.menu-board .menu-section h3 { font-family: var(--font-display); font-size: clamp(28px, 3vw, 40px); line-height: 1; }
.menu-board .menu-section .cat-sub { font: 500 10px var(--font-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-muted); }
.menu-board .dish-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; margin: 16px 0 0; padding: 0; list-style: none; }

.menu-board .menu-item.dish { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: start; padding: 12px; border: 1px solid transparent;
  border-bottom: 0; border-radius: 14px; background: var(--paper); }
.menu-board .menu-item.dish[hidden] { display: none; }
.menu-board .dish-media { width: 112px; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--paper-deep); display: grid; place-items: center; }
.menu-board .dish-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.menu-board .dish-media .mono { font-family: var(--font-display); font-style: italic; font-size: 30px; color: var(--clay); }
.menu-board .dish-body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.menu-board .dish-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.menu-board .dish .name { font-family: var(--font-display); font-size: 21px; line-height: 1.15; margin: 0; }
.menu-board .dish .price { font: 500 12.5px var(--font-mono); letter-spacing: .03em; color: var(--ink); white-space: nowrap; }
.menu-board .dish .price.ask { color: var(--clay-deep); }
.menu-board .dish .desc { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-soft); font-style: normal; }
.menu-board .dish-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.menu-board .dish-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.menu-board .dish-tags li, .dn-sig .dish-tags li { font: 500 10px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; background: var(--paper-deep); color: var(--ink-soft); }
.dish-tags li.t-veg { background: #E3EEDF; color: #2C5530; }
.dish-tags li.t-fish { background: #E1EAF1; color: #23465F; }
.dish-tags li.t-meat { background: #F2E3DF; color: #6A2C1F; }
.dish-tags li.t-share { background: #F1E1EC; color: var(--clay-deep); }
.menu-board .dish .od-add { min-height: 40px; }
.menu-board .dish .od-incart { font: 500 10.5px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--clay-deep); }
.menu-board .dish-ask { font-size: 13px; color: var(--ink-muted); }
.menu-board .dish-ask a { color: var(--clay); }
.dn-empty { margin-top: 26px; padding: 26px; border-radius: 14px; background: var(--paper); text-align: center; color: var(--ink-soft); }
.dn-empty[hidden] { display: none; }
.dn-empty .btn { margin-top: 12px; }
.dn-menu-foot { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; font-size: 14px; color: var(--ink-soft); }
.dn-menu-foot p { margin: 0; max-width: 62ch; line-height: 1.5; }
.dn-menu .od-tools { margin-top: 14px; }

/* ---------- Callouts ---------- */
.dn-callouts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.dn-callout { border-radius: var(--radius); overflow: hidden; display: grid; grid-template-rows: auto 1fr; background: var(--paper); border: 1px solid var(--line); }
.dn-callout.dark { background: var(--cathedral); color: var(--paper); border-color: var(--cathedral); }
.dn-callout figure { margin: 0; aspect-ratio: 16 / 7; overflow: hidden; background: var(--paper-deep); }
.dn-callout figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dn-callout .in { padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; gap: 12px; }
.dn-callout h2 { font-family: var(--font-display); font-size: clamp(30px, 3.4vw, 44px); line-height: 1; letter-spacing: -.01em; }
.dn-callout h2 em { font-style: italic; color: var(--clay); }
.dn-callout.dark h2 em { color: #E7A6D8; }
.dn-callout p { margin: 0; line-height: 1.55; color: var(--ink-soft); }
.dn-callout.dark p, .dn-callout.dark li { color: rgba(246, 241, 236, .82); }
.dn-callout ul { margin: 0; padding-left: 18px; line-height: 1.6; color: var(--ink-soft); }
.dn-callout .acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 8px; }
.dn-callout.dark .btn.ghost { color: var(--paper); border-color: rgba(246, 241, 236, .5); }
.dn-callout.dark .btn.ghost:hover { background: var(--paper); color: var(--ink); }
.dn-callout.dark .eyebrow { color: rgba(246, 241, 236, .7); }

@media (prefers-reduced-motion: no-preference) {
  [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
  [data-reveal].in { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .dn-hero .container, .dn-chef .container { grid-template-columns: 1fr; }
  .dn-sig-grid { grid-template-columns: 1fr 1fr; }
  .dn-tools { grid-template-columns: 1fr; }
  .menu-board .dish-list { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .dn-sig-grid, .dn-callouts { grid-template-columns: 1fr; }
  .dn-facts { grid-template-columns: 1fr; }
  .dn-collage .c1 { aspect-ratio: 4 / 4.4; }
}
@media (max-width: 560px) {
  .dn-cta .btn { flex: 1 1 100%; justify-content: center; }
  .menu-board .menu-item.dish { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 10px; }
  .menu-board .dish-media { width: 84px; }
  .menu-board .dish .name { font-size: 19px; }
  .menu-board .dish-head { flex-direction: column; gap: 2px; }
  .menu-board .menu-item.od-item { grid-template-columns: 84px minmax(0, 1fr); }
  .dn-collage figcaption { font-size: 15px; }
}
