/* ==========================================================================
   nanashankarsheth.org — local scaffold stylesheet
   Design tokens reconciled against design-mockup/README.md (the authoritative
   visual spec — a refinement pass on claude-design-brief.md). Change values
   here, not per-page, if the palette, type scale, or spacing ever shifts.
   ========================================================================== */

:root {
  --ink: #1C1A17;
  --paper: #F7F3EC;
  --bronze: #9C5B2E;
  --teal: #1F3D3A;
  --muted: #6B655C;
  --border: #E3DCCF;

  --font-headline: 'Playfair Display', 'Source Serif 4', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --container-width: 1100px;

  /* Card/image radius: 6–8px per spec. --radius is the general UI value
     (buttons, nav toggle, small photo blocks); --radius-lg is for cards and
     larger photo/media blocks. Pill radius (badges, chips, buttons, language
     toggle) is 999px, used directly where needed. */
  --radius: 6px;
  --radius-lg: 8px;

  /* Fluid type scale — interpolated between a 375px (mobile) and 1200px
     (desktop) reference width, matching design-mockup's named breakpoints
     (H1 30/38/46, hero 32/44/56, body 15–18) without hard jumps at the
     breakpoints themselves. */
  --h1-size: clamp(30px, 22.7px + 1.94vw, 46px);
  --hero-size: clamp(32px, 21.1px + 2.91vw, 56px);
  --body-size: clamp(15px, 13.6px + 0.36vw, 18px);

  /* Page padding: 24px mobile, 32px tablet (810–1199), 56–72px desktop
     (1200+) per spec — applied via media queries below. */
  --page-padding: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-headline);
  font-weight: 700;
  line-height: 1.15;
  margin-top: 0;
}

h1 { font-size: var(--h1-size); }
h2 { font-size: 1.9rem; margin-top: 2.5rem; }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.2em; }

a { color: var(--bronze); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--page-padding);
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding-top: 10px;
  padding-bottom: 10px;
  flex-wrap: wrap;
}

.site-logo {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1.4rem;
  padding: 4px 10px;
  cursor: pointer;
  color: var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

/* Static language toggle — Marathi content not yet built, so it's a label,
   not an interactive control. Moves inside the mobile menu, not the header
   bar, at narrow widths (explicit brief requirement). */
.lang-pill {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--teal);
  border: 1px solid var(--teal);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--bronze);
  border-bottom-color: var(--bronze);
  text-decoration: none;
}

/* "Ask the Archive" nav entry — bronze fill button per spec, not a text link */
.site-nav a.nav-archive-btn {
  background: var(--bronze);
  color: var(--paper);
  font-weight: 600;
  padding: 9px 16px;
  border-radius: var(--radius);
  border-bottom: none;
}
.site-nav a.nav-archive-btn:hover,
.site-nav a.nav-archive-btn.active {
  background: #7f4a24;
  color: var(--paper);
  border-bottom: none;
  text-decoration: none;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  min-height: 44px;
  line-height: 1.2;
}

.btn-primary {
  background: var(--bronze);
  color: var(--paper);
}
.btn-primary:hover { background: #7f4a24; text-decoration: none; }

.btn-secondary {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn-secondary:hover { background: var(--teal); color: var(--paper); text-decoration: none; }

.btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 28px 0;
}

/* ---------- Hero ---------- */

.hero {
  padding: 64px 0 40px;
  text-align: center;
}

.hero-image,
.photo-placeholder {
  border-radius: var(--radius-lg);
  aspect-ratio: 3 / 4; /* Standard Portrait */
  margin: 24px 0;
}

/* Placeholder-only styling — doesn't apply once .hero-image is a real <img> */
.photo-placeholder {
  background: #EDE6D8;
  border: 1px dashed var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

img.hero-image {
  display: block;
  width: 100%;
  object-fit: contain; /* Fit without cropping */
  background-color: var(--paper); /* Matting background */
  border: none;
}

.photo-placeholder.portrait { aspect-ratio: 3 / 4; max-width: 360px; margin-left: auto; margin-right: auto; }

/* Real photos — replaces a .photo-placeholder div once an actual image
   file is ready to drop in. See site/assets/. */
.site-photo {
  display: block;
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  object-fit: contain; /* Fit without cropping */
  background-color: var(--paper); /* Matting background */
  margin: 20px 0;
}

.hero h1 { font-size: var(--hero-size); margin-bottom: 14px; max-width: 14ch; margin-left: auto; margin-right: auto; }
.hero .subhead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 10px;
}

.hero-byline {
  margin-top: 40px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Pull-quote ---------- */

blockquote.pull-quote {
  border-left: 3px solid var(--bronze);
  margin: 40px 0;
  padding: 6px 0 6px 26px;
  font-family: var(--font-headline);
  font-size: 20px;
  font-weight: 600;
  font-style: italic;
  color: var(--bronze);
}

blockquote.pull-quote.centered {
  border-left: none;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 10px;
  text-align: center;
  font-size: 20px;
}

/* Pull-quotes are a two-step scale (20px / 26px) — deliberately not fluid,
   and never allowed to collapse into body text at any size. */
@media (min-width: 810px) {
  blockquote.pull-quote,
  blockquote.pull-quote.centered {
    font-size: 26px;
  }
}

/* ---------- Cards / grids ---------- */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 32px 0;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: #FBF9F4;
}

.card h3 { margin-bottom: 10px; }

/* ---------- Built list (What He Built) ---------- */
/* Full-width stacked sections, not a card grid — content lengths vary too much
   category to category for equal-height columns to work without either huge
   dead whitespace or awkward truncation. Photo + text side by side at desktop,
   stacked on mobile. */

/* Stat band — a scannable summary above the full sections, one cell per
   category with its strongest researched comparison. Every cell must have a
   real hook before shipping; an empty/apologetic cell here is a content gap
   to go fix, not a layout problem to paper over. */
.built-stat-band {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  background-color: var(--teal);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 28px 0 48px;
}
.built-stat-cell {
  display: block;
  background: var(--teal);
  padding: 18px 20px;
  text-decoration: none;
  color: #fff;
  border-right: 1px solid rgba(255,255,255,0.1);
  transition: background 0.18s ease;
}
.built-stat-cell:last-child { border-right: none; }
.built-stat-cell:hover { background: #274e4a; text-decoration: none; }
.built-stat-cell .cat {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #A8C5BF;
  margin-bottom: 6px;
}
.built-stat-cell .hook {
  font-family: var(--font-headline);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
}
.built-stat-cell .hook em { color: #D4A96A; font-style: normal; }

@media (min-width: 810px) {
  .built-stat-band { grid-template-columns: repeat(5, 1fr); }
  .built-stat-cell { padding: 22px 18px; }
}

.built-list { margin: 40px 0; }

.built-section {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.built-section:first-child { padding-top: 0; }
.built-section:last-child { border-bottom: none; padding-bottom: 0; }

.built-media {
  flex: 0 0 300px;
  width: 300px;
}
.built-media .photo-placeholder,
.built-media .site-photo {
  aspect-ratio: 16 / 9; /* Standard Widescreen */
  margin: 0;
}

.built-text {
  flex: 1;
  min-width: 0;
  max-width: 65ch;
}
.built-text h2 { margin: 6px 0 14px; }

@media (max-width: 809px) {
  .built-section { flex-direction: column; gap: 20px; }
  .built-media { width: 100%; flex: none; }
}

/* ---------- Verified marker ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.badge-verified {
  background: rgba(31, 61, 58, 0.1);
  color: var(--teal);
  border: 1px solid rgba(31, 61, 58, 0.35);
}

.badge-unverified {
  background: rgba(31, 61, 58, 0.05);
  color: var(--muted);
  border: 1px dashed var(--muted);
}

/* ---------- Walk Mumbai ---------- */

.map-hero,
.map-functional {
  border-radius: var(--radius-lg);
  margin: 20px 0;
}

/* Placeholder-only styling — .map-functional stays a placeholder until a
   real Google My Maps embed replaces it; .map-hero is now a real <img>. */
.map-functional {
  border: 1px dashed var(--border);
  background: #EDE6D8;
  color: var(--muted);
  padding: 40px 20px;
  text-align: center;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

img.map-hero {
  display: block;
  width: 100%;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  height: auto; /* image is portrait (1122x1402) — don't force a landscape crop */
}

/* Below desktop, .map-functional and .stop-list just stack in source order
   (map above list). At desktop, this becomes a two-column layout with the
   map pinned in a sticky left column — see the 1200px+ rule below. */
.walk-layout { display: block; }

.stop-list { margin: 40px 0; }

.stop {
  display: flex;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.stop-number {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--bronze);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headline);
  font-weight: 600;
}

.stop-body h3 { margin-bottom: 6px; }
.stop-body p { margin-bottom: 8px; }

.audio-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  background: var(--teal);
  color: var(--paper);
  border-radius: 999px;
  width: 44px;
  height: 44px;
  padding: 0;
  font-size: 0.85rem;
  cursor: not-allowed;
}

/* ---------- Sources ---------- */

.source-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.source-table th, .source-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  vertical-align: top;
}
.source-table th { font-family: var(--font-headline); font-weight: 600; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding: 40px 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer a { color: var(--muted); text-decoration: underline; }

/* ---------- TODO flag ---------- */

.todo-flag {
  display: inline-block;
  background: #FDECC8;
  color: #6b4a06;
  border: 1px solid #E8C878;
  border-radius: var(--radius);
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 8px;
}

/* ---------- Callout (researched asides — comparisons, corrections, legacy notes) ---------- */
/* Distinct from .card (neutral, structural) and .pull-quote (restates the text) — a callout
   interrupts the reading flow on purpose with a fact the main narrative doesn't carry. Bronze-
   accented since these are meant to be noticed, not just referenced. */

.callout {
  border: 1px solid var(--bronze);
  background: rgba(156, 91, 46, 0.06);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin: 28px 0;
}

.callout-kicker {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 8px;
}

.callout p {
  margin: 0 0 8px;
  font-size: 0.95rem;
  line-height: 1.6;
}
.callout p:last-child { margin-bottom: 0; }

.callout .callout-source {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ---------- Ask the Archive (modal) ---------- */

.archive-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(28, 26, 23, 0.5);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.archive-modal-backdrop.open { display: flex; }

.archive-modal {
  background: var(--paper);
  border-radius: 10px;
  max-width: 560px;
  width: 100%;
  max-height: 80vh;
  overflow: auto;
  padding: 32px;
  position: relative;
}

.archive-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.archive-modal-header h2 {
  font-size: 24px;
  margin: 0;
}

.archive-modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  flex: 0 0 auto;
}
.archive-modal-close:hover { color: var(--ink); }

.archive-modal-intro {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.archive-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.archive-chip {
  font: 500 13px var(--font-body);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: none;
  color: var(--muted);
  cursor: pointer;
}

.archive-chip.active {
  border-color: var(--bronze);
  color: var(--bronze);
  background: rgba(156, 91, 46, 0.08);
}

.archive-answer {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 18px;
}

.archive-source {
  border-left: 3px solid var(--teal);
  background: rgba(31, 61, 58, 0.05);
  padding: 14px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 18px;
}

.archive-source blockquote {
  font: italic 400 14px/1.6 var(--font-headline);
  color: var(--ink);
  margin: 0 0 6px;
}

.archive-source cite {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: normal;
}

.archive-disclaimer {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ==========================================================================
   Responsive breakpoints — matches design-mockup/README.md exactly:
   mobile <=480, large-mobile/tablet 481-809, tablet 810-1199, desktop 1200+
   ========================================================================== */

@media (max-width: 809px) {
  .site-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    gap: 4px;
  }
  .site-nav.open { display: flex; }
  .nav-toggle { display: inline-block; }
  .btn-row { flex-direction: column; }
  .btn-row .btn { text-align: center; }
  .site-nav a.nav-archive-btn { margin-top: 6px; }
}

@media (min-width: 481px) and (max-width: 1199px) {
  :root { --page-padding: 32px; }
}

@media (min-width: 810px) and (max-width: 1199px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  .hero-image { aspect-ratio: 16 / 9; }
}

@media (min-width: 1200px) {
  :root { --page-padding: clamp(56px, 4vw, 72px); }
  .card-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-image { aspect-ratio: 16 / 9; } /* Standard Widescreen */

  /* Walk Mumbai: functional map becomes a sticky 360px left column beside
     the scrolling stop list, per design-mockup's spec. */
  .walk-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 40px;
    align-items: start;
  }
  .walk-layout .map-functional {
    position: sticky;
    top: 88px; /* header height (68px) + a little breathing room */
    margin: 0;
  }
  .walk-layout .stop-list { margin: 0; }
}

/* ==========================================================================
   Sub-page Editorial Reader Styles
   ========================================================================== */

.article-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-top: 24px;
}

.article-sidebar {
  flex: 0 0 240px;
  width: 240px;
  position: sticky;
  top: 98px; /* Header height (68px) + padding */
}

.toc-container {
  background: #FDFCF9;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.toc-title {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 12px;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toc-list li {
  margin: 0;
  padding: 0;
}

.toc-list a {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.3;
}

.toc-list a:hover {
  color: var(--bronze);
  text-decoration: none;
}

.article-body {
  flex: 1;
  min-width: 0;
  max-width: 65ch;
  margin-bottom: 40px;
}

.article-title {
  font-family: var(--font-headline);
  font-size: 2.2rem;
  line-height: 1.15;
  color: var(--ink);
  margin-top: 0;
  margin-bottom: 20px;
}

.article-prose {
  font-family: var(--font-headline);
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--ink);
}

.article-prose p {
  margin-top: 0;
  margin-bottom: 1.6em;
}

.article-prose h3 {
  font-family: var(--font-headline);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--teal);
  margin-top: 2.2rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
  scroll-margin-top: 98px; /* Stop anchor jumps from hiding behind the sticky header */
}

/* Custom image layout in prose */
.article-prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  margin: 16px 0;
  display: block;
}

/* Mobile dropdown TOC styles */
.mobile-toc-selector {
  display: none;
  position: relative;
  margin-bottom: 24px;
}

.mobile-toc-trigger {
  width: 100%;
  text-align: left;
  background: #FDFCF9;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-toc-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #FDFCF9;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 90;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  max-height: 250px;
  overflow-y: auto;
  padding: 8px 0;
}

.mobile-toc-dropdown.show {
  display: block;
}

.mobile-toc-dropdown a {
  display: block;
  padding: 10px 16px;
  color: var(--ink);
  font-size: 0.92rem;
  text-decoration: none;
}

.mobile-toc-dropdown a:hover {
  background: #F5EFE4;
  color: var(--bronze);
}

@media (max-width: 809px) {
  .article-layout {
    flex-direction: column;
    gap: 0;
  }
  .article-sidebar {
    display: none;
  }
  .mobile-toc-selector {
    display: block;
  }
  .article-body {
    max-width: 100%;
  }
  .article-title {
    font-size: 1.8rem;
  }
  .article-prose {
    font-size: 1.05rem;
  }
}

/* ==========================================================================
   Premium Mockup Dashboard Styles (What He Built)
   Faithful to the approved mockup: large sepia-frame photo, bronze kicker
   with ornamental rules, dark verified badge, compact FOR SCALE pill,
   serif narrative, and oval READ button.
   ========================================================================== */

/* ---- Page header (portrait + title) ---- */
.built-header {
  text-align: center;
  margin-bottom: 0;
  padding-bottom: 32px;
}

.built-header-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  max-width: 960px;
  margin: 0 auto 24px;
}

.built-header-side-text {
  flex: 1;
  font-family: var(--font-headline);
  font-size: 0.88rem;
  font-style: italic;
  color: var(--muted);
  line-height: 1.5;
}

.built-header-side-text.left {
  text-align: right;
}

.built-header-side-text.right {
  text-align: left;
}

.built-avatar-container {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--bronze);
  background: #EDE6D8;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 5px #F0E8D8;
}

.built-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.built-avatar-placeholder {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 8px;
  line-height: 1.3;
}

.built-main-title {
  font-family: var(--font-headline);
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin: 0 auto;
  line-height: 1.25;
  text-transform: uppercase;
  max-width: 800px;
}

/* ---- Pillar section list ---- */
.built-list {
  margin: 0;
}

.built-section {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 32px;
  padding: 56px 0;
  border-top: 1px solid var(--border);
}

.filigree-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 16px 0 24px;
}

/* ---- Mockup Sub-Navigation Bar ---- */
.built-subnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1.5px solid #E3DCCF;
  padding: 16px 40px;
  background-color: #F7F3EC;
}

.built-subnav-logo {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.built-subnav-logo:hover {
  text-decoration: none;
  color: var(--bronze);
}

.built-subnav-menu {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.built-subnav-item a {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.built-subnav-item a:hover {
  color: var(--bronze);
}

.built-subnav-item.active a {
  background-color: var(--teal);
  color: #FFFFFF;
}

/* Styled Archival Image Placeholders */
.built-photo-placeholder {
  width: 100%;
  height: 250px;
  background: linear-gradient(135deg, #EADFC9 0%, #D4C4A8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--muted);
  font-family: var(--font-headline);
  font-size: 1rem;
  font-style: italic;
  letter-spacing: 0.05em;
  border: 1px solid var(--border);
  box-shadow: inset 0 0 20px rgba(0,0,0,0.05);
  text-align: center;
  padding: 16px;
}

.built-section:first-child {
  border-top: none;
  padding-top: 40px;
}

/* ---- Kicker line (— Health —) with ornamental side rules ---- */
.built-section-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-family: var(--font-headline);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--bronze);
  margin-bottom: 8px;
}

.built-section-kicker::before,
.built-section-kicker::after {
  content: '';
  display: block;
  width: 80px;
  height: 1px;
  background: #C4B295;
}

.built-section-header {
  text-align: center;
  margin-bottom: 32px;
}

.built-section-headline {
  font-family: var(--font-headline);
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
  margin: 0 0 6px;
  line-height: 1.2;
  text-transform: uppercase;
}

.built-section-subhead {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

/* ---- Two-column body: photo left, content right ---- */
.built-section-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* ---- Framed photo / placeholder (left column) ---- */
.built-media-framed {
  background: #FAF6EE;
  border: 1px solid #C4B295;
  border-radius: 2px;
  padding: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.built-photo-container {
  border: 1px solid #1C1A17;
  overflow: hidden;
  aspect-ratio: 16 / 9; /* Standard Widescreen */
  background-color: var(--paper); /* Matting background */
  display: flex;
  align-items: center;
  justify-content: center;
}

.built-photo {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Fit without cropping */
  display: block;
}

.built-photo-caption {
  padding: 12px 0 0;
  font-family: var(--font-body);
  text-align: center;
  margin: 0;
  line-height: 1.4;
}

.built-photo-caption strong {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
  display: block;
  margin-bottom: 2px;
}

.built-photo-caption span {
  font-size: 0.65rem;
  color: var(--muted);
  display: block;
}

/* ---- Right column content ---- */
.built-section-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Verified badge row layout */
.built-verified-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  flex-wrap: wrap;
  gap: 12px;
}

.built-verified-title-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.built-verified-title {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--teal);
  letter-spacing: 0.02em;
}

.built-verified-subtitle {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.built-verified-stamp-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stamp-gold-circle {
  width: 24px;
  height: 24px;
  background-color: #B68656;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(182,134,86,0.2);
}

.stamp-gold-text {
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  color: #8C6A3E;
  letter-spacing: 0.02em;
}

/* Narrative text */
.built-narrative {
  font-family: var(--font-headline);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  margin: 0 0 16px;
}

.built-narrative strong {
  font-weight: 700;
}

/* FOR SCALE pill horizontal layout */
.built-scale-capsule {
  display: flex;
  align-items: center;
  border: 1px solid #D1C5B0;
  border-radius: 100px;
  padding: 6px 14px;
  background-color: #FAF8F4;
  margin: 24px 0;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
}

.built-scale-tag {
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #FAF6EE;
  background-color: #B68656;
  padding: 3px 8px;
  border-radius: 100px;
  letter-spacing: 0.05em;
  line-height: 1;
}

.built-scale-text {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ink);
  margin-left: 12px;
  letter-spacing: 0.05em;
  line-height: 1.45;
}

/* READ THE FULL RESEARCH button */
.btn-mockup,
.btn-bronze-outline {
  display: inline-block;
  border: 1px solid #9C5B2E;
  color: #9C5B2E;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 9px 24px;
  border-radius: 100px;
  text-decoration: none;
  background-color: transparent;
  transition: all 0.18s ease;
  margin-top: 0;
}

.btn-mockup:hover,
.btn-bronze-outline:hover {
  background-color: #9C5B2E;
  color: #FAF6EE;
  text-decoration: none;
}

/* Ornamental divider between sections */
.built-ornament {
  text-align: center;
  margin: 8px 0;
  color: var(--border);
  font-size: 1.1rem;
  letter-spacing: 0.3em;
}

/* ---- Responsive ---- */
@media (max-width: 809px) {
  .built-header-row {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  .built-header-side-text {
    text-align: center !important;
  }
  .built-section-body {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .built-media-framed {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
  }
  .built-scale-capsule {
    flex-direction: column;
    border-radius: var(--radius-lg);
    align-items: flex-start;
    padding: 10px 14px;
    gap: 8px;
  }
  .built-scale-text {
    margin-left: 0;
    line-height: 1.45;
  }
}

/* ==========================================================================
   Framed Page Layout matching Mockup
   ========================================================================== */
body.framed-body {
  background-color: #1a2323; /* Dark slate teal background */
  background-image: radial-gradient(circle at center, #263333 0%, #101515 100%);
  margin: 0;
  padding: 40px 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.site-frame {
  width: 1080px;
  max-width: 95%;
  background-color: #F7F3EC; /* Parchment cream */
  border: 1px solid #D3C6AE;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  box-sizing: border-box;
  overflow: hidden;
}

/* Adjust header and footer when inside the frame */
body.framed-body .site-header {
  background-color: #F7F3EC;
  border-bottom: 1px solid #E3DCCF;
  padding: 20px 40px;
}

body.framed-body .site-header .container {
  max-width: 100%;
  padding: 0;
}

body.framed-body main.container {
  max-width: 100%;
  padding: 40px 50px;
  margin: 0;
}

body.framed-body .site-footer {
  background-color: #F0EADF;
  border-top: 1px solid #E3DCCF;
  padding: 30px 50px;
  margin-top: 40px;
}

body.framed-body .site-footer .container {
  max-width: 100%;
  padding: 0;
}

/* Active state for Table of Contents sidebar list links */
.toc-list li.active a {
  color: var(--teal);
  font-weight: 700;
  background-color: rgba(31, 61, 58, 0.08); /* subtle active teal tint backdrop */
}

/* Collapsible card narrative blocks */
.built-narrative-extra {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease-out;
  opacity: 0;
}
.built-narrative-extra.open {
  opacity: 1;
}

/* Elegant Read More inline toggle button */
.btn-read-more {
  background: none;
  border: none;
  color: var(--bronze);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 6px 0;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.18s ease;
}
.btn-read-more:hover {
  color: var(--teal);
}

/* Visual sub-navigation offset bar */
.built-subnav {
  background-color: #FAF8F5 !important; /* Subtle tint offset from main paper background */
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(28, 26, 23, 0.03); /* Micro shadow for physical layering */
}
.built-subnav-menu a {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Left TOC Sidebar Menu Spacing and Hover Highlights */
.toc-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.toc-list li {
  margin: 0;
}
.toc-list li a {
  display: block;
  padding: 8px 12px !important;
  font-size: 0.92rem;
  line-height: 1.4;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.2s ease;
}
.toc-list li a:hover {
  background-color: rgba(156, 91, 46, 0.06); /* subtle bronze tint hover */
  color: var(--bronze);
}

/* Streamlined Verified Stamp Badge */
.built-verified-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 20px;
}
.built-verified-title {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}
.built-verified-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(31, 61, 58, 0.08);
  border: 1px solid rgba(31, 61, 58, 0.25);
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 4px;
}

/* Walk Mumbai layout stop photo placeholders */
.photo-placeholder {
  border: 1px dashed var(--border) !important;
  background: #FAF8F5 !important;
  color: var(--muted) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: var(--font-headline) !important;
  font-style: italic !important;
  font-size: 0.9rem !important;
  border-radius: var(--radius) !important;
  margin-bottom: 16px !important;
  width: 100% !important;
}

/* Audio button disabled style alignment */
.audio-btn {
  background: var(--teal) !important;
  color: var(--paper) !important;
  border-radius: var(--radius) !important;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  cursor: not-allowed !important;
  opacity: 0.75 !important;
  padding: 10px 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  transition: all 0.2s ease !important;
  height: auto !important;
  width: auto !important;
}

.stop-body h3 {
  font-family: var(--font-headline);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
}

/* Standardized Aspect Ratios */
.aspect-16-9 {
  aspect-ratio: 16 / 9 !important;
}
.aspect-3-4 {
  aspect-ratio: 3 / 4 !important;
}
.aspect-1-1 {
  aspect-ratio: 1 / 1 !important;
}

/* ==========================================================================
   Photo Lightbox Overlay Modal Style Guide Specs
   ========================================================================== */
.photo-lightbox-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(16, 21, 21, 0.88); /* Premium dark slate backdrop */
  backdrop-filter: blur(8px); /* Sleek glassmorphism blur */
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.photo-lightbox-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.photo-lightbox-container {
  width: 100%;
  max-width: 900px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.photo-lightbox-close {
  position: absolute;
  top: -20px;
  right: 24px;
  background: none;
  border: none;
  color: #C4B295; /* Premium bronze color */
  font-size: 2.8rem;
  font-weight: 200;
  cursor: pointer;
  z-index: 10100;
  transition: transform 0.2s ease, color 0.2s ease;
  line-height: 1;
}

.photo-lightbox-close:hover {
  color: var(--white);
  transform: rotate(90deg);
}

.photo-lightbox-wrapper {
  width: 100%;
  max-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  background-color: var(--paper); /* Aged parchment frame look */
  border: 1px solid #1C1A17;
  padding: 12px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.6);
}

.photo-lightbox-img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  transition: transform 0.1s ease-out; /* Smooth pinch-to-zoom movement */
  user-select: none;
  -webkit-user-drag: none;
  touch-action: none; /* Disables browser-default gestures to let JS capture them */
}

.photo-lightbox-caption {
  margin-top: 16px;
  color: #C4B295; /* Bronze */
  font-family: var(--font-headline); /* Elegant serif */
  font-size: 1.05rem;
  text-align: center;
  max-width: 600px;
  line-height: 1.5;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
@media (max-width: 809px) {
  .photo-lightbox-close {
    top: -40px;
    right: 12px;
  }
}

/* Walk Tabs Styling */
.walk-tabs-container {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 32px 0 40px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 16px;
}

.walk-tab-btn {
  background: none;
  border: none;
  padding: 12px 24px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-headline);
  border-radius: var(--radius);
  transition: all 0.3s ease;
  color: var(--muted);
}

.walk-tab-btn .tab-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.1;
}

.walk-tab-btn .tab-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.walk-tab-btn.active {
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  color: var(--bronze);
}

.walk-tab-btn.active .tab-num {
  color: var(--bronze);
}

.walk-tab-btn:hover:not(.active) {
  color: var(--text);
  background: rgba(182, 134, 86, 0.05);
}

.walk-tab-content {
  display: none;
}

.walk-tab-content.active {
  display: block;
  animation: walkFadeIn 0.4s ease forwards;
}

@keyframes walkFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Naming Honors Grid Styling */
.honors-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin: 40px 0;
}

@media (min-width: 768px) {
  .honors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .honors-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.honor-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.honor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.honor-card-top {
  margin-bottom: 16px;
}

.honor-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bronze);
  font-weight: 600;
  margin-bottom: 8px;
  display: inline-block;
}

.honor-title {
  font-family: var(--font-headline);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
  line-height: 1.25;
}

.honor-location {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.honor-photo-frame {
  margin-bottom: 18px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-dark);
}

.honor-photo-frame.aspect-16-9 {
  aspect-ratio: 16/9;
}

.honor-photo-frame.aspect-3-4 {
  aspect-ratio: 3/4;
}

.honor-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.honor-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-dark);
  color: var(--muted);
  font-size: 0.8rem;
  font-style: italic;
  text-align: center;
  padding: 16px;
  border: 1px dashed var(--border);
}

.honor-narrative {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 16px;
}

.honor-significance {
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--muted);
  background: var(--paper-dark);
  padding: 12px 16px;
  border-left: 3px solid var(--bronze);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 16px;
  font-style: italic;
}

.honor-meta {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.honor-spelling-label {
  font-size: 0.75rem;
  color: var(--muted);
}

.honor-spelling-pill {
  background: var(--paper-dark);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: monospace;
  font-weight: 500;
  border: 1px solid var(--border);
}


