/* How to use Readanah (tour.html). Navy, gold and pearl, like the rest of the platform. */
.tour-page { background: var(--ivory); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold-hi); color: var(--navy); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 10px; }

/* ----- hero ----- */
.tour-hero {
  position: relative; overflow: hidden; color: var(--ivory);
  background: radial-gradient(900px 420px at 78% 0%, rgba(241, 213, 138, 0.16), rgba(241, 213, 138, 0) 70%), radial-gradient(700px 400px at 5% 100%, rgba(66, 112, 176, 0.35), rgba(66, 112, 176, 0) 70%), linear-gradient(180deg, #0B1F3A 0%, #12305A 100%);
  padding: clamp(40px, 7vw, 84px) 20px clamp(48px, 7vw, 76px);
}
.tour-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--hairline); }
.tour-hero-inner { max-width: 1040px; margin: 0 auto; }
.tour-eyebrow { margin: 0 0 12px; font-family: var(--font-display); font-style: italic; color: var(--gold-hi); font-size: 1.15rem; letter-spacing: 0.02em; }
.tour-hero h1 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.02; font-size: clamp(2.5rem, 7.2vw, 5rem); letter-spacing: -0.01em; max-width: 17ch; }
.tour-hero h1 em { color: var(--gold-hi); font-weight: 500; }
.tour-lede { margin: 20px 0 0; max-width: 62ch; font-size: clamp(1.02rem, 1.6vw, 1.2rem); line-height: 1.6; color: #D8E0EE; }

.role-switch { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 0; }
.role-btn {
  appearance: none; cursor: pointer; text-align: left; min-width: 220px; min-height: 64px; padding: 12px 22px 12px 18px;
  border-radius: 16px; border: 1.5px solid rgba(241, 213, 138, 0.38); background: rgba(255, 255, 255, 0.05); color: var(--ivory);
  display: flex; flex-direction: column; gap: 2px; transition: background 0.18s, border-color 0.18s, transform 0.18s;
}
.role-btn:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--gold-hi); }
.role-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; line-height: 1.1; }
.role-sub { font-size: 0.86rem; color: #C3CEE2; }
.role-btn[aria-pressed="true"] { background: var(--gold-leaf); border-color: #E7C878; color: var(--navy); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25); }
.role-btn[aria-pressed="true"] .role-sub { color: #3D3114; }
.tour-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* ----- chapter bar ----- */
.tour-nav { position: sticky; top: var(--header-h); z-index: 20; background: rgba(252, 250, 244, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.tour-nav ol { list-style: none; margin: 0 auto; padding: 8px 16px; max-width: 1180px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; }
.tour-nav a {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; min-height: 40px; padding: 6px 14px 6px 8px; border-radius: 999px;
  text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: 0.95rem; border: 1px solid transparent;
}
.tour-nav a b { display: inline-grid; place-items: center; min-width: 26px; height: 26px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-deep); font-size: 0.74rem; }
.tour-nav a:hover { background: var(--pearl); border-color: var(--line); color: var(--navy); }
.tour-nav a[aria-current="true"] { background: var(--navy); color: var(--ivory); }
.tour-nav a[aria-current="true"] b { background: var(--gold-hi); color: var(--navy); }

/* ----- chapters and sections ----- */
.tour { max-width: 1180px; margin: 0 auto; padding: 8px 20px 64px; outline: none; }
.chapter { padding-top: clamp(40px, 6vw, 72px); scroll-margin-top: calc(var(--header-h) + 60px); }
.ch-head { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.ch-no {
  flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--navy);
  background: radial-gradient(circle at 35% 30%, #FFF6D8, #E9CC85 55%, #B98B2F); box-shadow: 0 8px 20px rgba(185, 139, 47, 0.35), inset 0 -3px 6px rgba(120, 80, 10, 0.25);
}
.ch-head h2 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.05; }
.ch-head p { margin: 6px 0 0; color: var(--ink-soft); font-size: 1.04rem; }

.sec {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(20px, 3.4vw, 44px); align-items: start;
  background: var(--pearl); border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 3vw, 36px); margin-bottom: 26px; box-shadow: var(--shadow-card);
  scroll-margin-top: calc(var(--header-h) + 70px);
}
.sec.flip .sec-text { order: 2; }
.sec.no-media { grid-template-columns: minmax(0, 1fr); }
.sec-where { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--ivory); border: 1px solid var(--line); font-size: 0.84rem; color: var(--ink-soft); }
.sec-where span { padding: 2px 10px; border-radius: 999px; background: var(--navy); color: var(--gold-hi); font-weight: 600; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; }
.sec h3 { margin: 0 0 10px; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.55rem, 2.6vw, 2.1rem); line-height: 1.1; }
.sec-lead { margin: 0 0 14px; font-size: 1.1rem; line-height: 1.55; color: var(--navy); }
.sec-points { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.sec-points li { position: relative; padding-left: 28px; color: #2B3B52; line-height: 1.5; }
.sec-points li::before { content: ""; position: absolute; left: 2px; top: 0.42em; width: 13px; height: 13px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #EFE6CF 55%, #C9B891); box-shadow: 0 1px 3px rgba(11, 31, 58, 0.3); }
.sec-tip { margin: 0 0 14px; padding: 12px 16px; border-left: 4px solid var(--gold); background: #FBF3DC; border-radius: 0 12px 12px 0; line-height: 1.5; }
.sec-tip strong { color: var(--gold-deep); }

/* pictures in a window frame */
.sec-media { display: grid; gap: 22px; }
.shot { margin: 0; }
.shot-frame { border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid #D5CBB3; box-shadow: 0 18px 44px rgba(11, 31, 58, 0.18), 0 2px 6px rgba(11, 31, 58, 0.08); }
.shot-chrome { display: flex; gap: 6px; align-items: center; height: 26px; padding: 0 12px; background: linear-gradient(180deg, #F3EEE0, #E8E0CB); border-bottom: 1px solid #D5CBB3; }
.shot-chrome i { width: 10px; height: 10px; border-radius: 50%; background: #CBBF9F; }
.shot-chrome i:first-child { background: #D9A07F; }
.shot-chrome i:nth-child(2) { background: #E2C778; }
.shot-chrome i:nth-child(3) { background: #A9C59B; }
.shot-open { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #fff; cursor: zoom-in; }
.shot-open img { width: 100%; height: auto; }
.shot-zoom {
  position: absolute; right: 12px; bottom: 12px; padding: 6px 14px; border-radius: 999px; background: rgba(11, 31, 58, 0.88); color: var(--gold-hi); font-size: 0.8rem; font-weight: 600;
  opacity: 0; transform: translateY(4px); transition: opacity 0.18s, transform 0.18s;
}
.shot-open:hover .shot-zoom, .shot-open:focus-visible .shot-zoom { opacity: 1; transform: none; }
.shot figcaption { margin-top: 10px; text-align: center; font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: var(--ink-soft); }

/* picture viewer */
.lightbox { max-width: min(1240px, 96vw); width: 96vw; max-height: 94vh; padding: 14px; border: 1px solid var(--gold); border-radius: 18px; background: var(--navy); color: var(--ivory); }
.lightbox::backdrop { background: rgba(5, 14, 28, 0.82); }
.lightbox img { width: 100%; height: auto; max-height: calc(94vh - 110px); object-fit: contain; border-radius: 10px; background: transparent; }
.lightbox p { margin: 10px 0 0; text-align: center; font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: var(--gold-hi); }
.lightbox form { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.lb-close { min-height: 40px; padding: 6px 18px; border-radius: 999px; border: 1px solid var(--gold); background: transparent; color: var(--gold-hi); font-weight: 600; cursor: pointer; }
.lb-close:hover { background: rgba(241, 213, 138, 0.14); }

/* ----- student version: a little warmer ----- */
body[data-role="student"] .sec { background: linear-gradient(180deg, #FFFEFA, #FBF6E8); }

/* ----- small screens ----- */
@media (max-width: 880px) {
  .sec, .sec.flip { grid-template-columns: minmax(0, 1fr); }
  .sec.flip .sec-text { order: 0; }
  .ch-no { width: 52px; height: 52px; font-size: 1.3rem; }
  .role-btn { flex: 1 1 100%; }
  .tour-nav { top: 0; position: static; }
}
@media (prefers-reduced-motion: reduce) { .role-btn, .shot-zoom { transition: none; } }

/* ----- print: the guide as plain pages with the footnote ----- */
@media print {
  .bar, .tour-nav, .role-switch, .tour-cta, .skip, .shot-zoom, .lightbox { display: none !important; }
  .tour-hero { background: none; color: #000; padding: 0 0 12px; }
  .tour-hero h1, .tour-hero h1 em, .tour-eyebrow, .tour-lede { color: #000; }
  .sec { break-inside: avoid; box-shadow: none; grid-template-columns: 1fr 1fr; }
  .footer { display: block; }
}
