.nmh-header{position:relative;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:18px 28px;background:#f4efe3;color:#2c2519;z-index:20}
.nmh-header .nmh-home{justify-self:start;font-family:Inter,Arial,sans-serif;font-size:14px;letter-spacing:.08em;color:#2c2519;text-decoration:none;min-height:44px;display:inline-flex;align-items:center;padding-right:8px}
.nmh-header .nmh-title{justify-self:center;text-align:center;font-family:"Playfair Display",Georgia,serif;color:#2c2519}
.nmh-header .nmh-menu-btn{justify-self:end;background:none;border:0;color:#2c2519;font-size:26px;cursor:pointer;min-width:44px;min-height:44px;display:flex;align-items:center;justify-content:center;padding:0}
.nmh-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.28);z-index:9998}
.nmh-overlay.open{display:block}
.nmh-menu{position:fixed;top:0;right:0;width:min(340px,70vw);height:100vh;overflow-y:auto;padding:72px 28px 40px;background:#f4efe3;z-index:9999;box-shadow:-8px 0 30px rgba(0,0,0,.12);transform:translateX(100%);transition:transform .28s ease}
.nmh-menu.open{transform:translateX(0)}
.nmh-menu a{display:block;margin:0 0 18px;text-decoration:none;font-family:"Playfair Display",Georgia,serif;color:#2c2519;font-size:19px}
.nmh-menu a:hover{color:#4e5d44}
.nmh-menu-close{position:absolute;top:16px;right:20px;background:none;border:0;font-size:28px;color:#2c2519;cursor:pointer;min-width:44px;min-height:44px;display:flex;align-items:center;justify-content:center;padding:0}
.nmh-footer{display:flex;gap:22px;justify-content:center;padding:30px 20px;font-family:Inter,Arial,sans-serif;color:#2c2519;font-size:14px}
body{background-color:#f4efe3}
/* Suppress old navigation bars only — preserve all content headers */
header.housebar,
header.topbar:not(.csja-home-topbar) { display: none !important; }
.nav{display:none!important}
.nav-links{display:none!important}
@media(max-width:720px){.nmh-header{padding:16px}.nmh-title{font-size:14px}.nmh-footer{flex-wrap:wrap}}

/* R6 finish corrections */
.nmh-header { position: sticky; top: 0; border-bottom: 1px solid rgba(44,37,25,.10); }
.nmh-footer a { color:#6b5f47; font-size:13px; letter-spacing:.065em; text-transform:uppercase; text-decoration:none; }
.nmh-footer a:hover { color:#2c2519; }
@media (max-width:720px){ .nmh-header + * { margin-top:0 !important; } .hero { margin-top:0 !important; } }


@media (max-width:720px){
  .house-specials-hero img,
  .room-hero img{
    max-height:55vh;
    object-fit:cover;
  }
}

/* R8.1 — Reading room bottom nav: mobile elegant layout */
@media (max-width: 720px) {
  .room-journey {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
  }
  .room-journey .journey-home {
    order: -1;
    width: 100%;
    text-align: center;
    margin-bottom: .4rem;
    font-size: .85rem;
    white-space: normal;
    word-break: break-word;
  }
  .room-journey a {
    flex: 0 0 auto;
  }
}

/* ── You Are Here — quiet room plaque ──────────────────────────────────────
   Small fixed element, bottom-right. Whispers the room name.
   Not a button. Not a widget. A small plaque on the door.
   ─────────────────────────────────────────────────────────────────────── */
.nmh-yah{
  display:block;
  position:fixed;
  bottom:calc(env(safe-area-inset-bottom, 0px) + 1.4rem);
  right:1.2rem;
  z-index:8000;
  font-family:Inter,Arial,sans-serif;
  font-size:.64rem;
  letter-spacing:.06em;
  opacity:1;
  transition:opacity .3s ease, transform .3s ease;
}
.nmh-yah.hidden{
  opacity:0;
  pointer-events:none;
  transform:translateY(6px);
}
.nmh-yah-pill{
  display:flex;
  align-items:center;
  gap:.35rem;
  background:rgba(244,239,227,.94);
  border:1px solid rgba(78,93,68,.18);
  border-radius:3px;
  padding:.3rem .6rem;
  cursor:pointer;
  color:#4e5d44;
  text-decoration:none;
  white-space:nowrap;
  max-width:200px;
  overflow:hidden;
  text-overflow:ellipsis;
}
.nmh-yah-pill:hover{
  border-color:rgba(78,93,68,.38);
  background:rgba(238,232,220,.97);
}
.nmh-yah-icon{
  display:none;
}
.nmh-yah-text{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.nmh-yah-text::after{
  content:' →';
}
@media(max-width:480px){
  .nmh-yah{
    bottom:calc(env(safe-area-inset-bottom, 0px) + 1rem);
    right:.8rem;
  }
  .nmh-yah-pill{
    max-width:160px;
    font-size:.62rem;
    padding:.28rem .55rem;
    min-height:44px;
    align-items:center;
  }
}
}
.nmh-yah-icon{
  font-size:.85rem;
  flex-shrink:0;
}
.nmh-yah-text{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
@media(max-width:480px){
  .nmh-yah{
    bottom:calc(env(safe-area-inset-bottom, 0px) + 1rem);
    right:.8rem;
  }
  .nmh-yah-pill{
    max-width:180px;
    font-size:.65rem;
    padding:.6rem .9rem;
    min-height:44px;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   NMH HOUSE NAVIGATION — R15 RESTORATION
   Navigation Foundation additions only.
   Old CSS preserved below. No purge until QA confirms 0 references.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Centre Title: two-span system ─────────────────────────────────
   nmh-title-property: always shown, full weight
   nmh-title-context:  episode/issue/room number, quieter
   has-divider:        adds · separator, applied in HTML only where needed
   ─────────────────────────────────────────────────────────────────── */
.nmh-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.25;
  gap: 0.1em;
  min-width: 0;
  overflow: hidden;
}
.nmh-title-property {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 14px;
  color: #2c2519;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.nmh-title-context {
  font-family: Inter, Arial, sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.07em;
  color: #2c2519;
  opacity: 0.65;
  white-space: nowrap;
}
.nmh-title-context.has-divider::before {
  content: '· ';
}
@media (min-width: 640px) {
  .nmh-title {
    flex-direction: row;
    gap: 0.35em;
    align-items: baseline;
  }
  .nmh-title-context {
    font-size: 11px;
  }
}

/* ── Unified Back Navigation — nmh-back-nav ─────────────────────────
   Replaces: .reader-nav, .story-nav, .room-journey, .back-link
   Old classes kept in CSS until QA confirms 0 HTML references.
   ─────────────────────────────────────────────────────────────────── */
.nmh-back-nav {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line, rgba(44,37,25,.16));
  max-width: 760px;
  width: 100%;
  box-sizing: border-box;
}
.nmh-back-nav a {
  font-family: Inter, Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  color: var(--leaf, #4e5d44);
  text-decoration: none;
  border: 1px solid var(--leaf, #4e5d44);
  padding: 0.65rem 1.4rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.nmh-back-nav a:hover {
  background: var(--leaf, #4e5d44);
  color: var(--paper, #f4efe3);
}
.nmh-back-nav a.nmh-next {
  background: var(--leaf, #4e5d44);
  color: var(--paper, #f4efe3);
  border-color: var(--leaf, #4e5d44);
}
.nmh-back-nav a.nmh-next:hover {
  background: var(--leaf-dark, #3c4934);
  border-color: var(--leaf-dark, #3c4934);
}
@media (max-width: 640px) {
  .nmh-back-nav {
    flex-direction: column;
    gap: 0.65rem;
    /* Match house-foundation.css mobile page padding (1.15rem).
       If that value changes, update here too.
       These two must always stay in sync. */
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }
  .nmh-back-nav a {
    width: 100%;
    justify-content: center;
    /* Full width on mobile — easier tap target */
  }
}

/* ── House Note ─────────────────────────────────────────────────────
   Quiet host suggestion. Not a feature. Hospitality.
   Appears below nmh-back-nav, above footer.
   ─────────────────────────────────────────────────────────────────── */
.nmh-house-note {
  max-width: 760px;
  margin: 2.5rem auto 0;
  padding-top: 1.8rem;
  text-align: center;
}
.nmh-house-note-text {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-soft, #6b5f47);
  display: block;
  margin-bottom: 0.6rem;
}
.nmh-house-note-link {
  font-family: Inter, Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--leaf, #4e5d44);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}
.nmh-house-note-link:hover {
  border-bottom-color: var(--leaf, #4e5d44);
}

/* ── Reading Room & Study Room title alignment ──────────────────────
   House rule: all reading room and study room titles centred.
   Applies to all properties equally.
   Properties with existing rules already set text-align:center — no conflict.
   Fixes alignment on: Kabir, Axiom, Stills, My Study reading rooms.
   Match house-foundation.css and property CSS if typography changes.
   ─────────────────────────────────────────────────────────────────── */
.reading-room-title,
.study-room-title {
  text-align: center;
}
