.guide-page { background: var(--paper-light); }
.guide-page .site-header { background: rgba(23, 21, 15, 0.82); backdrop-filter: blur(12px); }
.guide-page .site-header.scrolled { background: rgba(242, 234, 220, 0.97); }
.guide-hero {
  position: relative;
  min-height: 72svh;
  display: flex;
  align-items: flex-end;
  padding: 10rem var(--pad) 5rem;
  color: white;
  background: var(--blue) center / cover no-repeat;
  overflow: hidden;
}
.guide-hero::before { content: ""; position: absolute; inset: 0; background: rgba(10, 14, 18, 0.48); }
.guide-hero::after {
  content: attr(data-label);
  position: absolute;
  right: -0.2em;
  bottom: -0.3em;
  color: rgba(255,255,255,0.08);
  font-family: var(--serif);
  font-size: clamp(8rem, 22vw, 22rem);
  line-height: .8;
  white-space: nowrap;
  pointer-events: none;
}
.guide-hero-inner { position: relative; z-index: 1; width: min(76rem, 100%); }
.guide-hero h1 { max-width: 73rem; font-size: clamp(3.9rem, 9vw, 9rem); }
.guide-hero p:not(.eyebrow) { max-width: 48rem; margin: 2rem 0 0; font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.55rem); line-height: 1.45; }
.guide-hero-meta { display: flex; flex-wrap: wrap; gap: .7rem 1.4rem; margin-top: 2.2rem; font-size: .62rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.guide-breadcrumbs { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.2rem; font-size: .65rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.guide-breadcrumbs a { color: inherit; text-underline-offset: .2rem; }
.guide-breadcrumbs span { opacity: .65; }

.guide-subnav {
  position: relative;
  z-index: 3;
  display: flex;
  gap: .7rem;
  padding: 1rem var(--pad);
  overflow-x: auto;
  color: white;
  background: var(--ink);
  scrollbar-width: none;
}
.guide-subnav::-webkit-scrollbar { display: none; }
.guide-subnav a { flex: 0 0 auto; padding: .6rem .85rem; border: 1px solid rgba(255,255,255,.25); color: white; text-decoration: none; font-size: .62rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.guide-subnav a:hover, .guide-subnav a[aria-current="page"] { color: var(--ink); background: var(--paper); border-color: var(--paper); }

.guide-intro { display: grid; grid-template-columns: .7fr 1.5fr; gap: clamp(2rem, 7vw, 9rem); padding: clamp(5rem, 10vw, 9rem) var(--pad); }
.guide-intro-mark { color: var(--red); font-family: var(--serif); font-size: clamp(4rem, 8vw, 8rem); font-style: italic; line-height: 1; }
.guide-intro-copy .lead { margin: 0 0 1.5rem; font-family: var(--serif); font-size: clamp(1.8rem, 3.3vw, 3.1rem); line-height: 1.25; }
.guide-intro-copy > p:not(.lead) { max-width: 49rem; color: #514b42; }

.guide-layout { display: grid; grid-template-columns: minmax(13rem, .62fr) minmax(0, 2fr); gap: clamp(3rem, 7vw, 8rem); padding: 0 var(--pad) clamp(7rem, 12vw, 12rem); }
.guide-toc { position: sticky; top: 7rem; align-self: start; padding-top: 1.2rem; border-top: 1px solid var(--ink); }
.guide-toc h2 { margin-bottom: 1rem; font-family: var(--sans); font-size: .65rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.guide-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.guide-toc li { counter-increment: toc; border-bottom: 1px solid var(--line); }
.guide-toc a { display: grid; grid-template-columns: 2.2rem 1fr; gap: .4rem; padding: .7rem 0; color: #3b3730; text-decoration: none; font-family: var(--serif); font-size: .98rem; line-height: 1.25; }
.guide-toc a::before { content: counter(toc, decimal-leading-zero); color: var(--red); font-family: var(--sans); font-size: .56rem; font-weight: 800; letter-spacing: .1em; }
.guide-toc a:hover { color: var(--red); }

.guide-body { min-width: 0; }
.guide-section { padding: 1.5rem 0 5.5rem; border-top: 1px solid var(--ink); scroll-margin-top: 7rem; }
.guide-section .section-label { margin: 0 0 .8rem; color: var(--red); font-size: .62rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.guide-section h2 { max-width: 54rem; margin-bottom: 1.8rem; font-size: clamp(2.8rem, 5vw, 5.2rem); }
.guide-section h3 { margin: 2.5rem 0 .7rem; font-family: var(--serif); font-size: clamp(1.45rem, 2.2vw, 2rem); font-weight: 400; line-height: 1.15; }
.guide-section p { max-width: 49rem; color: #464139; }
.guide-section p a, .guide-note a, .source-list a { color: var(--red); text-underline-offset: .18rem; }
.guide-section ul:not(.clean-list), .guide-section ol:not(.clean-list) { max-width: 48rem; padding-left: 1.3rem; color: #464139; }
.guide-section li { margin-bottom: .45rem; }
.guide-image { margin: 2.5rem 0; }
.guide-image img { max-height: 38rem; object-fit: cover; }
.guide-image figcaption { display: flex; justify-content: space-between; gap: 1rem; padding-top: .65rem; border-top: 1px solid var(--line); margin-top: .7rem; font-size: .58rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.guide-image figcaption a { color: inherit; }
.tip-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; margin: 2rem 0; background: var(--line); border: 1px solid var(--line); }
.tip-grid > article { min-height: 12rem; padding: 1.5rem; background: var(--paper-light); }
.tip-grid .tip-number { color: var(--red); font-size: .6rem; font-weight: 800; letter-spacing: .12em; }
.tip-grid h3 { margin: 1rem 0 .55rem; font-size: 1.5rem; }
.tip-grid p { margin: 0; font-size: .9rem; }
.guide-note { max-width: 49rem; margin: 2rem 0; padding: 1.4rem 1.5rem; border-left: 3px solid var(--red); background: var(--paper); color: #3f3a32; }
.guide-note strong { display: block; margin-bottom: .3rem; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; }
.clean-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.clean-list li { display: grid; grid-template-columns: 8rem 1fr; gap: 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.clean-list strong { font-family: var(--serif); font-weight: 400; }
.route-card { display: grid; grid-template-columns: 8.5rem 1fr; gap: clamp(1.3rem, 4vw, 4rem); padding: 2rem 0; border-bottom: 1px solid var(--line); }
.route-icon { width: 7rem; height: 7rem; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--blue); font-family: var(--serif); font-size: 2.6rem; font-style: italic; }
.route-card h3 { margin-top: 0; }
.route-steps { margin: 1rem 0; padding: 0; list-style: none; counter-reset: route; }
.route-steps li { counter-increment: route; display: grid; grid-template-columns: 2rem 1fr; gap: .8rem; padding: .65rem 0; border-top: 1px solid var(--line); }
.route-steps li::before { content: counter(route); width: 1.45rem; height: 1.45rem; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--red); font-size: .58rem; font-weight: 800; }
.app-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; margin-top: 1.5rem; }
.app-link { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 5rem; padding: 1rem 1.2rem; border: 1px solid var(--line); text-decoration: none; background: var(--paper); }
.app-link:hover { color: white; background: var(--blue); }
.app-link strong { display: block; font-family: var(--serif); font-size: 1.25rem; font-weight: 400; }
.app-link small { display: block; font-size: .58rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.faq details { max-width: 50rem; border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { padding: 1.1rem 2rem 1.1rem 0; cursor: pointer; font-family: var(--serif); font-size: 1.25rem; }
.faq details p { margin: 0 0 1.2rem; }
.source-list { max-width: 50rem; margin: 0; padding: 0; list-style: none; }
.source-list li { padding: .75rem 0; border-bottom: 1px solid var(--line); }
.metro-map { max-width: 54rem; margin: 2rem 0; padding: clamp(1.2rem, 3vw, 2.2rem); color: white; background: var(--ink); }
.metro-line { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1.2rem; align-items: start; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.metro-line:last-child { border-bottom: 0; }
.line-badge { width: 3.6rem; height: 3.6rem; display: grid; place-items: center; border-radius: 50%; color: white; background: #e44d35; font-family: var(--sans); font-size: 1.15rem; font-weight: 850; }
.line-badge.l2 { background: #2974af; }
.line-badge.l6 { background: #276d83; }
.line-badge.fx { background: #6a8233; }
.metro-line h3 { margin: 0 0 .35rem; color: white; font-size: 1.4rem; }
.metro-line p { margin: 0; color: rgba(255,255,255,.76); font-size: .9rem; }
.network-table { width: 100%; margin: 1.5rem 0 2rem; border-collapse: collapse; font-size: .88rem; }
.network-table th, .network-table td { padding: .85rem .7rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.network-table th { color: var(--red); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; }
.network-table td:first-child { font-family: var(--serif); font-size: 1.05rem; }

.guide-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; padding: 0 var(--pad) clamp(7rem, 12vw, 12rem); }
.guide-card { position: relative; min-height: 29rem; display: flex; flex-direction: column; justify-content: flex-end; padding: 2rem; overflow: hidden; color: white; text-decoration: none; background: var(--blue); }
.guide-card img { position: absolute; inset: 0; height: 100%; object-fit: cover; transition: transform 600ms ease; }
.guide-card::after { content: ""; position: absolute; inset: 0; background: rgba(10,12,14,.5); }
.guide-card > *:not(img) { position: relative; z-index: 1; }
.guide-card small { font-size: .62rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.guide-card h2 { margin: .7rem 0 1rem; font-size: clamp(2.5rem, 4vw, 4rem); }
.guide-card p { max-width: 29rem; margin: 0; font-family: var(--serif); font-size: 1.05rem; }
.guide-card:hover img { transform: scale(1.035); }

.guide-cta { display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; gap: 2rem; padding: clamp(4rem, 8vw, 7rem) var(--pad); color: white; background: var(--red); }
.guide-cta h2 { font-size: clamp(3rem, 6vw, 6.5rem); }
.guide-cta p { max-width: 30rem; }
.guide-cta .button { justify-self: end; }
.credits { padding: 1.2rem var(--pad); color: #625c52; background: var(--paper); font-size: .58rem; line-height: 1.5; }
.credits a { color: inherit; }

@media (max-width: 900px) {
  .guide-layout { grid-template-columns: 1fr; }
  .guide-toc { position: static; }
  .guide-toc ol { display: grid; grid-template-columns: repeat(2, 1fr); }
  .guide-toc li:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 1rem; }
  .guide-toc li:nth-child(even) { padding-left: 1rem; }
}

@media (max-width: 700px) {
  .guide-hero { min-height: 68svh; padding-top: 8rem; }
  .guide-intro { grid-template-columns: 1fr; }
  .guide-intro-mark { font-size: 4rem; }
  .guide-toc ol { grid-template-columns: 1fr; }
  .guide-toc li:nth-child(odd), .guide-toc li:nth-child(even) { border-right: 0; padding-left: 0; padding-right: 0; }
  .tip-grid, .app-links, .guide-cards { grid-template-columns: 1fr; }
  .clean-list li { grid-template-columns: 1fr; gap: .2rem; }
  .route-card { grid-template-columns: 1fr; }
  .route-icon { width: 5rem; height: 5rem; font-size: 2rem; }
  .guide-cta { grid-template-columns: 1fr; }
  .guide-cta .button { justify-self: start; }
  .guide-card { min-height: 25rem; }
  .metro-line { grid-template-columns: 4rem 1fr; }
  .network-table, .network-table tbody, .network-table tr, .network-table td { display: block; }
  .network-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .network-table tr { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .network-table td { padding: .25rem 0; border: 0; }
  .network-table td::before { content: attr(data-label); display: block; color: var(--red); font-family: var(--sans); font-size: .55rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
}

/* Tourism-first guide template */
.guide-page { background: #fffdf8; }
.guide-page .site-header,
.guide-page .site-header.scrolled { color: var(--ink); background: rgba(255,253,248,.97); }
.guide-hero {
  min-height: 62svh;
  align-items: center;
  margin-top: 5.2rem;
  padding-top: 6rem;
  padding-bottom: 4rem;
  background-position: center 55%;
}
.guide-hero::before { background: linear-gradient(90deg, rgba(3,44,66,.82), rgba(3,44,66,.26)); }
.guide-hero::after { display: none; }
.guide-hero-inner { width: min(80rem, 100%); margin-inline: auto; }
.guide-hero h1 { max-width: 55rem; font-size: clamp(3.2rem, 7vw, 6.7rem); }
.guide-hero p:not(.eyebrow) { font-family: var(--sans); font-size: clamp(1rem, 1.6vw, 1.22rem); }
.guide-hero-meta span { padding: .42rem .7rem; border-radius: 999px; background: rgba(255,255,255,.14); }
.guide-subnav { position: sticky; top: 4.65rem; color: var(--ink); background: white; box-shadow: 0 8px 25px rgba(11,63,91,.08); }
.guide-subnav a { border-color: var(--line); border-radius: 999px; color: var(--ink); }
.guide-subnav a:hover, .guide-subnav a[aria-current="page"] { color: white; background: var(--blue); border-color: var(--blue); }
.guide-intro { width: min(80rem, 100%); margin-inline: auto; padding-block: clamp(4rem, 7vw, 6rem); }
.guide-intro-mark { color: var(--ochre); }
.guide-intro-copy .lead { font-size: clamp(1.55rem, 2.7vw, 2.55rem); }
.guide-layout { width: min(88rem, 100%); margin-inline: auto; gap: clamp(2rem,5vw,5rem); }
.guide-toc { padding: 1.2rem; border: 1px solid var(--line); border-radius: 1rem; background: #f4fbfd; }
.guide-section { margin-bottom: 1.4rem; padding: 2rem clamp(1.1rem, 3vw, 2.5rem) 3rem; border: 1px solid var(--line); border-radius: 1.25rem; background: white; box-shadow: 0 12px 32px rgba(11,63,91,.05); }
.guide-section h2 { font-size: clamp(2.2rem, 4vw, 4rem); }
.guide-image img { border-radius: 1rem; }
.tip-grid { gap: .8rem; border: 0; background: transparent; }
.tip-grid > article { border: 1px solid var(--line); border-radius: .9rem; background: #f7fcfd; }
.guide-note { border-left: 4px solid var(--ochre); border-radius: 0 .8rem .8rem 0; background: #fff7df; }
.route-card { margin: 1rem 0; padding: 1.5rem; border: 1px solid var(--line); border-radius: 1rem; background: #f7fcfd; }
.route-icon { color: var(--ink); background: #ffe7a3; }
.app-link { border-radius: .8rem; background: #f7fcfd; }
.metro-map { border-radius: 1rem; background: #072f48; }
.guide-cards { width: min(88rem, 100%); margin-inline: auto; }
.guide-card { min-height: 25rem; border-radius: 1.25rem; }
.guide-card::after { background: linear-gradient(0deg, rgba(3,44,66,.82), rgba(3,44,66,.08)); }
.guide-cta { margin-top: 2rem; background: linear-gradient(135deg, var(--blue), #0781a8); }

@media (max-width: 700px) {
  .guide-hero { min-height: 58svh; margin-top: 4.8rem; }
  .guide-subnav { top: 4.8rem; }
  .guide-section { padding-inline: 1rem; border-radius: .9rem; }
}
