/* Shared flat site chrome (header + line row + footer) for main pages still on bangalore-theme.css.
   One header on every page (batch E, 2026-10-29): home, tools, line, station pages.
   Flat: no shadows, no gradients; line colour is the only saturated hue.
   Rules: .claude/skills/bengalurumetro-design/SKILL.md */

.mh, .mh-lines, .mf {
  --mh-ink: #16141a; --mh-ink-2: #4b4752; --mh-ink-3: #6f6a76;
  --mh-bg: #fbfaf8; --mh-card: #ffffff; --mh-panel: #f1efec; --mh-rule: #dcd8d2;
  --mh-purple: #7b3a92; --mh-green: #00874a; --mh-yellow: #f2c200;
  --mh-pink: #c2185b; --mh-blue: #1f5fbf; --mh-red: #c62828; --mh-orange: #b54d00;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
.mh *, .mh-lines *, .mf * { box-sizing: border-box; }
.mh-wrap { max-width: 1100px; margin: 0 auto; padding-inline: 16px; }
.mh a, .mh-lines a, .mf a { touch-action: manipulation; }
.mh :focus-visible, .mh-lines :focus-visible, .mf :focus-visible { outline: 2px solid #1f6fb5; outline-offset: 2px; }

/* top row: logo + utility links (scrolls sideways on phones) */
.mh { position: sticky; top: 0; z-index: 1000; background: var(--mh-bg); border-bottom: 1px solid var(--mh-rule); }
.mh .mh-wrap { display: flex; align-items: center; gap: 12px; min-height: 56px; }
.mh-logo { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; flex-shrink: 0; font-weight: 700; font-size: 1rem; letter-spacing: -.01em; color: var(--mh-ink) !important; text-decoration: none !important; }
.mh-mark { display: inline-flex; gap: 2px; }
.mh-mark i { display: block; width: 6px; height: 18px; border-radius: 2px; }
.mh-nav { margin-left: auto; display: flex; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.mh-nav::-webkit-scrollbar { display: none; }
.mh-nav a { flex-shrink: 0; display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--mh-ink-2) !important; text-decoration: none !important; font-size: .875rem; font-weight: 500; white-space: nowrap; }
.mh-nav a[aria-current="page"] { color: var(--mh-ink) !important; font-weight: 700; box-shadow: inset 0 -2px 0 var(--mh-ink); }
@media (max-width: 900px) {
  .mh-nav { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent); }
  .mh-nav::after { content: ""; flex: 0 0 16px; }
}
@media (hover: hover) and (pointer: fine) { .mh-nav a:hover { color: var(--mh-ink) !important; } }

/* line row: every line page one tap away, kept quiet (batch E, owner 10-29):
   one text row, small colour dot, regular weight; the current line is underlined in its colour */
.mh-lines { background: var(--mh-bg); border-bottom: 1px solid var(--mh-rule); }
.mh-lines .mh-wrap { display: flex; overflow-x: auto; scrollbar-width: none; }
.mh-lines .mh-wrap::-webkit-scrollbar { display: none; }
@media (max-width: 900px) { .mh-lines .mh-wrap { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent); } .mh-lines .mh-wrap::after { content: ""; flex: 0 0 16px; } }
.mh-lines a { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 9px; color: var(--mh-ink-2) !important; text-decoration: none !important; font-size: .8125rem; font-weight: 500; white-space: nowrap; }
.mh-lines a:first-child { padding-left: 0; }
.mh-lines a i { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex-shrink: 0; }
.mh-lines a[aria-current="page"] { color: var(--mh-ink) !important; font-weight: 600; box-shadow: inset 0 -2px 0 var(--c, var(--mh-ink)); }
@media (hover: hover) and (pointer: fine) { .mh-lines a:hover { color: var(--mh-ink) !important; } }

/* older templates (news/blog, station-info, routes) style bare `header`/`body`: keep the shared header neutral there */
.mh { box-shadow: none; text-align: left; margin: 0; }
body:has(> .mh) { margin: 0; }

/* station and line pages: header aligns with their narrower content column */
.st .mh-wrap { max-width: 720px; }

/* footer */
.mf { background: var(--mh-bg); border-top: 1px solid var(--mh-rule); margin-top: 48px; padding-block: 24px 40px; color: var(--mh-ink-3); font-size: .875rem; line-height: 1.5; }
.mf h2 { margin: 0 0 8px; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mh-ink-3); font-weight: 700; }
.mf ul { display: flex; flex-wrap: wrap; gap: 0 4px; margin: 0 0 16px; padding: 0; list-style: none; }
.mf li { margin: 0; }
.mf li a { display: inline-flex; align-items: center; min-height: 44px; padding-right: 12px; color: var(--mh-ink-2) !important; text-decoration: none !important; }
@media (hover: hover) and (pointer: fine) { .mf li a:hover { color: var(--mh-ink) !important; text-decoration: underline !important; } }
.mf p { margin: 4px 0 0; max-width: 65ch; }

@media (prefers-reduced-motion: reduce) { .mh *, .mh-lines *, .mf * { transition: none !important; } }
