/* ==========================================================================
   SASS pilgrim-first theme layer (Nov 2026)
   Loaded after styles.css. New chrome uses the sx- prefix, pilgrim tools pg-.
   Tokens match the Swamiye Saranam app: navy / saffron / gold / cream,
   Marcellus (display) + Plus Jakarta Sans (UI).
   ========================================================================== */
:root {
  --navy-950: #050f22;
  --navy-900: #081831;
  --navy-800: #0f2547;
  --navy-700: #1a3560;
  --saffron: #d96a15;
  --saffron-deep: #b4520b;
  --gold: #d6a848;
  --gold-soft: #f0d99a;
  --cream: #fdf8ef;
  --cream-2: #f6ecd9;
  --line: #e6d8bd;
  --forest: #1f5a43;
  --forest-soft: #e3f0e8;
  --alert: #a3261c;
  --alert-soft: #fbe9e4;
  --text: #1d1a16;
  --text-soft: #5d554b;
  --display: "Marcellus", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --ui: "Plus Jakarta Sans", "Segoe UI", Aptos, Arial, sans-serif;
  --sx-wrap: min(1200px, calc(100% - 40px));
}

body { font-family: var(--ui); font-size: 16px; color: var(--text); background: var(--cream); }
h1, h2, .related-heading h2 { font-family: var(--display); font-weight: 400; letter-spacing: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- helpline strip ---------- */
.sx-alert { background: var(--navy-950); color: #fff; font-size: 13px; }
.sx-alert-in { width: var(--sx-wrap); margin: 0 auto; display: flex; align-items: center; gap: 6px 18px; min-height: 36px; flex-wrap: wrap; padding: 4px 0; }
.sx-alert b { color: var(--gold-soft); font-weight: 700; }
.sx-alert a { color: #fff; text-decoration: none; white-space: nowrap; }
.sx-alert a:hover { text-decoration: underline; }
.sx-alert a strong { color: var(--gold-soft); font-weight: 700; margin-left: 4px; }
.sx-alert .sx-alert-all { margin-left: auto; color: var(--gold-soft); font-weight: 600; }

/* ---------- header ---------- */
.sx-header { position: sticky; top: 0; z-index: 60; background: var(--navy-900); color: #fff; border-bottom: 1px solid rgba(214,168,72,.35); }
.sx-bar { width: var(--sx-wrap); margin: 0 auto; min-height: 72px; display: flex; align-items: center; gap: 20px; }
.sx-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; flex: none; }
.sx-brand img { width: 50px; height: 50px; }
.sx-brand strong { display: block; font-family: var(--display); font-weight: 400; font-size: 18px; line-height: 1.15; }
.sx-brand small { display: block; color: var(--gold-soft); font-size: 12px; margin-top: 2px; }
.sx-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.sx-nav-item { position: relative; }
.sx-nav-item > a { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 8px; color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; }
.sx-nav-item > a:hover, .sx-nav-item:focus-within > a { background: rgba(255,255,255,.09); }
.sx-nav-item > a[aria-current="page"] { color: var(--gold-soft); }
.sx-nav-item > a svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2.4; opacity: .7; }
.sx-drop { position: absolute; top: 100%; left: 0; min-width: 260px; padding: 8px; background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 22px 44px rgba(8,24,49,.22); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; }
.sx-nav-item:last-child .sx-drop, .sx-nav-item:nth-last-child(2) .sx-drop { left: auto; right: 0; }
.sx-nav-item:hover .sx-drop, .sx-nav-item:focus-within .sx-drop { opacity: 1; visibility: visible; transform: none; }
.sx-drop a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--navy-900); text-decoration: none; font-weight: 600; font-size: 15px; }
.sx-drop a small { display: block; font-weight: 400; color: var(--text-soft); font-size: 13px; }
.sx-drop a:hover { background: var(--cream-2); }
.sx-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.sx-icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); color: #fff; background: none; cursor: pointer; }
.sx-icon-btn:hover { background: rgba(255,255,255,.1); }
.sx-icon-btn svg, .sx-donate svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sx-donate { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--saffron); color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; }
.sx-donate:hover { background: var(--saffron-deep); }
.sx-menu-btn { display: none; }
.sx-mobile { display: none; }

@media (max-width: 1080px) {
  .sx-nav { display: none; }
  .sx-actions { margin-left: auto; }
  .sx-menu-btn { display: grid; }
  .sx-mobile { background: var(--navy-900); border-top: 1px solid rgba(255,255,255,.12); max-height: calc(100vh - 72px); overflow: auto; padding: 8px 20px 24px; }
  .sx-mobile.is-open { display: block; }
  .sx-mobile > a, .sx-mobile summary { display: block; padding: 14px 4px; color: #fff; font-weight: 700; font-size: 17px; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.1); cursor: pointer; list-style: none; }
  .sx-mobile summary::-webkit-details-marker { display: none; }
  .sx-mobile summary::after { content: "+"; float: right; color: var(--gold-soft); font-weight: 400; font-size: 22px; line-height: 1; }
  .sx-mobile details[open] summary::after { content: "–"; }
  .sx-mobile details a { display: block; padding: 11px 16px; color: #e9e3d6; text-decoration: none; font-size: 16px; }
}
@media (max-width: 560px) {
  .sx-brand strong { font-size: 15px; }
  .sx-brand small { display: none; }
  .sx-brand img { width: 42px; height: 42px; }
  .sx-donate span { display: none; }
  .sx-donate { padding: 0; width: 42px; height: 42px; justify-content: center; }
  .sx-alert-in { gap: 2px 14px; }
  .sx-alert .sx-hide-s { display: none; }
  .sx-bar { min-height: 64px; gap: 10px; }
}

/* ---------- footer ---------- */
.sx-footer { background: var(--navy-950); color: #d9d2c3; margin-top: 0; }
.sx-footer-in { width: var(--sx-wrap); margin: 0 auto; padding: 56px 0 28px; }
.sx-footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 36px; }
.sx-footer h2 { font-family: var(--ui); font-weight: 700; font-size: 14px; color: var(--gold-soft); margin: 0 0 12px; }
.sx-footer a { color: #e9e3d6; text-decoration: none; }
.sx-footer a:hover { color: #fff; text-decoration: underline; }
.sx-footer-grid > div > a { display: block; padding: 5px 0; font-size: 15px; }
.sx-footer-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.sx-footer-brand img { width: 60px; height: 60px; }
.sx-footer-brand strong { font-family: var(--display); font-weight: 400; color: #fff; font-size: 20px; line-height: 1.2; display: block; }
.sx-footer-brand span { color: var(--gold-soft); font-size: 13px; }
.sx-footer p { margin: 0 0 10px; font-size: 14px; line-height: 1.6; }
.sx-footer-sos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sx-footer-sos a { border: 1px solid rgba(214,168,72,.45); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; }
.sx-footer-note { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: #b8b0a0; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.sx-footer-disclaimer { margin-top: 14px; font-size: 13px; color: #a39b8b; max-width: 90ch; }
@media (max-width: 900px) { .sx-footer-grid { grid-template-columns: 1fr 1fr; } .sx-footer-grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- legacy inner pages: quieter, cleaner ---------- */
.page-hero { background: var(--navy-900); }
.page-context, .article-summary { display: none; }
.page-hero-grid { grid-template-columns: 1fr; }
.page-hero h1 { font-family: var(--display); font-weight: 400; }
.content-article h2, .content-article h3 { font-family: var(--display); font-weight: 400; }
.content-article p, .content-article li { max-width: 74ch; }
.content-article::before, .content-article::after { display: none; }
.content-article > .article-section:first-of-type, .content-article > .article-summary + .article-section, .content-article > .travel-note + .article-summary + .article-section { border-top: 0; padding-top: 0; margin-top: 0; }
.content-article, .content-article p, .content-article li, .content-article td, .content-article th { font-family: var(--ui); }
.content-article h3, .content-article h4 { font-family: var(--ui); font-weight: 700; color: var(--navy-900); }
.content-side { align-self: start; margin-top: 0; top: 96px; }
.side-card h2 { font-family: var(--ui); font-weight: 700; font-size: 16px; }
.page-hero .button-primary { background: var(--saffron); box-shadow: none; }
.pg-legacy { max-width: none; }
.pg-legacy h3 { margin-top: 26px; }
.pg-legacy img { border-radius: 10px; margin: 12px 0; }

/* ==========================================================================
   Pilgrim pages
   ========================================================================== */
.pg-wrap { width: var(--sx-wrap); margin: 0 auto; }
.pg-hero { background: var(--navy-900); color: #fff; padding: 44px 0 48px; position: relative; overflow: hidden; }
.pg-hero::after { content: ""; position: absolute; right: 0; bottom: 0; width: min(46%, 520px); height: 100%; background:
    linear-gradient(to top, rgba(214,168,72,.20), rgba(214,168,72,0) 70%);
  -webkit-mask: repeating-linear-gradient(to top, #000 0 5px, transparent 5px 11px); mask: repeating-linear-gradient(to top, #000 0 5px, transparent 5px 11px);
  clip-path: polygon(0 100%, 100% 100%, 100% 0); pointer-events: none; }
.pg-hero .pg-wrap { position: relative; z-index: 1; }
.pg-crumb { font-size: 14px; color: #c9c0ae; margin: 0 0 10px; }
.pg-crumb a { color: var(--gold-soft); text-decoration: none; }
.pg-crumb a:hover { text-decoration: underline; }
.pg-hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.1; margin: 0 0 12px; color: #fff; max-width: 20ch; }
.pg-hero p.pg-lede { font-size: 18px; line-height: 1.55; color: #e6dfd0; max-width: 62ch; margin: 0; }
.pg-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.pg-body { padding: 40px 0 64px; }
.pg-body > section { margin-bottom: 48px; }
.pg-body h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.2; color: var(--navy-900); margin: 0 0 10px; }
.pg-body h3 { font-family: var(--ui); font-weight: 700; font-size: 18px; color: var(--navy-900); margin: 0 0 6px; }
.pg-body p { max-width: 72ch; margin: 0 0 14px; }
.pg-body .pg-intro { color: var(--text-soft); font-size: 17px; margin-bottom: 22px; }
.pg-body ul.pg-ul { padding-left: 20px; margin: 0 0 14px; max-width: 72ch; }
.pg-body ul.pg-ul li { margin-bottom: 6px; }
.pg-body a:not([class]) { color: var(--saffron-deep); font-weight: 600; }

.pg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 999px; font: 700 15px var(--ui); text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.pg-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.pg-btn-primary { background: var(--saffron); color: #fff; }
.pg-btn-primary:hover { background: var(--saffron-deep); }
.pg-btn-light { background: #fff; color: var(--navy-900); border-color: var(--line); }
.pg-btn-light:hover { border-color: var(--navy-900); }
.pg-btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); background: none; }
.pg-btn-ghost:hover { background: rgba(255,255,255,.1); }
.pg-btn-call { background: var(--forest); color: #fff; }
.pg-btn-call:hover { background: #17432f; }

/* page layout with sticky section nav */
.pg-cols { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 48px; align-items: start; }
.pg-toc { position: sticky; top: 96px; display: grid; gap: 2px; font-size: 15px; border-left: 2px solid var(--line); }
.pg-toc a { padding: 7px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--text-soft); text-decoration: none; }
.pg-toc a:hover { color: var(--navy-900); border-left-color: var(--saffron); }
.pg-cols > div > section { margin-bottom: 52px; scroll-margin-top: 96px; }
@media (max-width: 900px) { .pg-cols { grid-template-columns: minmax(0, 1fr); gap: 20px; } .pg-toc { position: static; display: flex; flex-wrap: nowrap; overflow-x: auto; border-left: 0; border-bottom: 1px solid var(--line); gap: 0; } .pg-toc a { white-space: nowrap; border-left: 0; margin: 0; padding: 10px 12px; } }

/* cards & grids */
.pg-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.pg-grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.pg-cols .pg-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
@media (max-width: 400px) { .pg-cols .pg-grid, .pg-grid-2 { grid-template-columns: minmax(0, 1fr); } }
.pg-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.pg-card p:last-child, .pg-card ul:last-child { margin-bottom: 0; }
.pg-card .pg-meta { font-size: 14px; color: var(--text-soft); margin: 0 0 6px; }
.pg-card .pg-figure { font-family: var(--display); font-size: 30px; color: var(--saffron-deep); line-height: 1.1; display: block; margin-bottom: 4px; }
a.pg-card { text-decoration: none; color: inherit; display: block; transition: border-color .15s, box-shadow .15s; }
a.pg-card:hover { border-color: var(--saffron); box-shadow: 0 10px 26px rgba(8,24,49,.08); }

.pg-callout { border-radius: 14px; padding: 18px 22px; border: 1px solid var(--line); background: var(--cream-2); margin: 0 0 22px; }
.pg-callout h3 { margin-bottom: 4px; }
.pg-callout p:last-child { margin-bottom: 0; }
.pg-callout-alert { background: var(--alert-soft); border-color: #eabfb6; }
.pg-callout-alert h3 { color: var(--alert); }
.pg-callout-go { background: var(--forest-soft); border-color: #bcd9c7; }
.pg-callout-go h3 { color: var(--forest); }
.pg-callout-dark { background: var(--navy-900); border-color: var(--navy-900); color: #ece5d6; }
.pg-callout-dark h3, .pg-callout-dark h2 { color: #fff; }
.pg-callout-dark a:not([class]) { color: var(--gold-soft); }

.pg-source { font-size: 14px; color: var(--text-soft); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 8px; max-width: 86ch; }
.pg-source a { color: var(--saffron-deep); }

/* tables */
.pg-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.pg-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.pg-table th { text-align: left; background: var(--cream-2); color: var(--navy-900); font-weight: 700; padding: 12px 16px; white-space: nowrap; }
.pg-table td { padding: 11px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.pg-table td:first-child { font-weight: 600; }

/* do / don't */
.pg-dodont { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.pg-dodont ul { list-style: none; margin: 0; padding: 0; }
.pg-dodont li { padding: 9px 0 9px 30px; position: relative; border-top: 1px solid var(--line); }
.pg-dodont li:first-child { border-top: 0; }
.pg-dodont li::before { content: ""; position: absolute; left: 2px; top: 14px; width: 16px; height: 16px; background: no-repeat center / contain; }
.pg-do li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f5a43' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12l5 5L20 6'/%3E%3C/svg%3E"); }
.pg-dont li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3261c' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); }
.pg-do h3 { color: var(--forest); } .pg-dont h3 { color: var(--alert); }

/* numbered sequence (real sequences only) */
.pg-seq { list-style: none; margin: 0; padding: 0; counter-reset: seq; display: grid; gap: 14px; }
.pg-seq > li { counter-increment: seq; position: relative; padding: 18px 22px 18px 74px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.pg-seq > li::before { content: counter(seq); position: absolute; left: 20px; top: 16px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-900); color: var(--gold-soft); font-family: var(--display); font-size: 20px; }
.pg-seq p:last-child { margin-bottom: 0; }

/* controls */
.pg-tools { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; margin-bottom: 14px; }
.pg-search { flex: 1 1 260px; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #cdbf9f; border-radius: 12px; padding: 0 14px; min-height: 50px; }
.pg-search:focus-within { border-color: var(--navy-900); box-shadow: 0 0 0 3px rgba(214,168,72,.35); }
.pg-search svg { width: 20px; height: 20px; stroke: var(--text-soft); fill: none; stroke-width: 2; flex: none; }
.pg-search input { border: 0; outline: 0; background: none; font: 16px var(--ui); width: 100%; color: var(--text); min-height: 46px; }
.pg-select { min-height: 50px; border: 1px solid #cdbf9f; border-radius: 12px; background: #fff; font: 600 15px var(--ui); color: var(--navy-900); padding: 0 12px; max-width: 100%; }
.pg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pg-chips.pg-scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
.pg-chip { min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid #cdbf9f; background: #fff; font: 600 14px var(--ui); color: var(--navy-900); cursor: pointer; white-space: nowrap; }
.pg-chip:hover { border-color: var(--navy-900); }
.pg-chip[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.pg-chip small { font-weight: 500; opacity: .7; margin-left: 4px; }
.pg-count { font-size: 14px; color: var(--text-soft); margin: 0 0 10px; }
.pg-empty { padding: 28px; text-align: center; background: #fff; border: 1px dashed #cdbf9f; border-radius: 14px; color: var(--text-soft); }

/* rows (helplines, facilities, trains) */
.pg-rows { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.pg-rows > li { display: flex; gap: 10px 16px; align-items: center; flex-wrap: wrap; padding: 13px 18px; border-top: 1px solid var(--line); }
.pg-rows > li:first-child { border-top: 0; }
.pg-row-main { flex: 1 1 240px; min-width: 0; }
.pg-row-main b { display: block; font-weight: 700; color: var(--navy-900); }
.pg-row-main span { display: block; font-size: 14px; color: var(--text-soft); }
.pg-row-main span.pg-tag { display: inline-block; font-size: 12px; }
.pg-row-main b small { font-weight: 500; color: var(--text-soft); }
.pg-tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--cream-2); color: #6b5327; margin-right: 6px; }
.pg-row-main span.pg-tag-go, .pg-tag-go { background: var(--forest-soft); color: var(--forest); }
.pg-row-main span.pg-tag-warn, .pg-tag-warn { background: var(--alert-soft); color: var(--alert); }
.pg-row-main span.pg-tag-navy, .pg-tag-navy { background: #e4eaf4; color: var(--navy-700); }
.pg-row-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.pg-tel, .pg-dir { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px; border-radius: 10px; font: 700 14px var(--ui); text-decoration: none; white-space: nowrap; }
.pg-tel { background: var(--forest-soft); color: var(--forest); }
.pg-tel:hover { background: var(--forest); color: #fff; }
.pg-dir { background: #e4eaf4; color: var(--navy-700); }
.pg-dir:hover { background: var(--navy-900); color: #fff; }
.pg-tel svg, .pg-dir svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pg-more { display: block; margin: 16px auto 0; }

/* SOS dial tiles */
.pg-sos { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.pg-sos a { display: block; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--alert); border-radius: 12px; padding: 14px 16px; text-decoration: none; color: var(--text); }
.pg-sos a:hover { border-color: var(--alert); }
.pg-sos strong { display: block; font-family: var(--display); font-size: 28px; line-height: 1.1; color: var(--alert); }
.pg-sos span { font-size: 14px; color: var(--text-soft); }

/* live temple board */
.pg-board { background: var(--navy-950); color: #fff; border: 1px solid rgba(214,168,72,.45); border-radius: 18px; padding: 22px 24px; }
.pg-board-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; font-size: 14px; color: #c9c0ae; }
.pg-board-state { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 26px; line-height: 1.2; margin: 10px 0 4px; color: #fff; }
.pg-dot { width: 12px; height: 12px; border-radius: 50%; background: #8f8a80; flex: none; }
.pg-board[data-state="open"] .pg-dot { background: #53d08f; box-shadow: 0 0 0 5px rgba(83,208,143,.2); }
.pg-board[data-state="break"] .pg-dot { background: var(--gold); }
.pg-board-sub { color: #d9d2c3; margin: 0 0 14px; font-size: 15px; }
.pg-board-now { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pg-board-now div { background: rgba(255,255,255,.06); border-radius: 12px; padding: 12px 14px; }
.pg-board-now small { display: block; color: var(--gold-soft); font-size: 13px; font-weight: 600; }
.pg-board-now b { display: block; font-size: 16px; line-height: 1.3; }
.pg-board-now span { font-size: 14px; color: #c9c0ae; }
.pg-board-foot { margin-top: 14px; font-size: 13px; color: #b8b0a0; }
.pg-board-foot a { color: var(--gold-soft); font-weight: 600; }
@media (max-width: 420px) { .pg-board-now { grid-template-columns: 1fr; } }

/* schedule timeline */
.pg-sched { list-style: none; margin: 0; padding: 0; }
.pg-sched li { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 13px 16px; border-top: 1px solid var(--line); align-items: baseline; }
.pg-sched li:first-child { border-top: 0; }
.pg-sched time { font-weight: 700; color: var(--navy-900); font-variant-numeric: tabular-nums; }
.pg-sched b { display: block; }
.pg-sched span { color: var(--text-soft); font-size: 14px; }
.pg-sched li.is-now { background: #fff6e2; box-shadow: inset 4px 0 0 var(--saffron); }
.pg-sched li.is-now b::after { content: "Now"; margin-left: 8px; font-size: 12px; background: var(--saffron); color: #fff; padding: 2px 8px; border-radius: 6px; vertical-align: 2px; }
.pg-sched li.is-next b::after { content: "Next"; margin-left: 8px; font-size: 12px; background: var(--navy-900); color: #fff; padding: 2px 8px; border-radius: 6px; vertical-align: 2px; }
.pg-sched-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 14px 16px; background: var(--navy-900); color: #fff; font-weight: 700; }
.pg-sched-head span { color: var(--gold-soft); font-weight: 600; }
.pg-sched-box { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 18px; }
@media (max-width: 560px) { .pg-sched li { grid-template-columns: 1fr; gap: 2px; } }

/* eighteen steps */
.pg-steps18 { display: grid; grid-template-columns: repeat(18, 1fr); align-items: end; gap: 3px; height: 150px; margin: 6px 0 20px; }
.pg-steps18 i { display: block; background: linear-gradient(to top, var(--saffron-deep), var(--gold)); border-radius: 3px 3px 0 0; }
.pg-steps18 i[data-g="2"] { background: linear-gradient(to top, #8a5a12, var(--gold-soft)); }
.pg-steps18 i[data-g="3"] { background: linear-gradient(to top, var(--navy-700), #7f95bb); }
.pg-steps18 i[data-g="4"] { background: linear-gradient(to top, var(--forest), #8fc3a5); }

/* price list + bill */
.pg-price { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pg-rows > li.pg-price .pg-row-main { flex: 1 1 130px; }
.pg-price .pg-row-main span[lang] { font-size: 15px; color: var(--text-soft); }
.pg-amt { font-family: var(--display); font-size: 24px; color: var(--navy-900); min-width: 64px; text-align: right; }
.pg-qty { display: inline-flex; align-items: center; border: 1px solid #cdbf9f; border-radius: 10px; overflow: hidden; background: #fff; }
.pg-qty button { width: 40px; height: 40px; border: 0; background: var(--cream-2); font: 700 20px var(--ui); color: var(--navy-900); cursor: pointer; }
.pg-qty button:hover { background: var(--gold-soft); }
.pg-qty output { min-width: 34px; text-align: center; font-weight: 700; }
.pg-bill { position: sticky; bottom: 12px; z-index: 20; margin-top: 18px; background: var(--navy-900); color: #fff; border-radius: 16px; padding: 16px 20px; box-shadow: 0 18px 40px rgba(8,24,49,.3); display: none; }
.pg-bill.is-on { display: block; }
.pg-bill-row { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; }
.pg-bill-total { font-family: var(--display); font-size: 30px; color: var(--gold-soft); line-height: 1; }
.pg-bill small { color: #c9c0ae; display: block; font-size: 13px; }
.pg-bill input { width: 130px; min-height: 44px; border-radius: 10px; border: 0; padding: 0 12px; font: 700 16px var(--ui); }
.pg-bill-verdict { margin: 10px 0 0; font-weight: 600; font-size: 15px; }
.pg-bill-verdict.is-over { color: #ffb4a6; } .pg-bill-verdict.is-ok { color: #9fe3bf; }
.pg-bill button.pg-link { background: none; border: 0; color: var(--gold-soft); font: 600 14px var(--ui); cursor: pointer; text-decoration: underline; padding: 0; }

/* trains */
.pg-train time { font-family: var(--display); font-size: 26px; color: var(--navy-900); min-width: 78px; }
.pg-train.is-gone { opacity: .55; }
.pg-train.is-next { background: #fff6e2; box-shadow: inset 4px 0 0 var(--saffron); }

/* ==========================================================================
   Home
   ========================================================================== */
.hm-hero { position: relative; background: var(--navy-900); color: #fff; overflow: hidden; }
.hm-hero-bg { position: absolute; inset: 0; }
.hm-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.hm-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,15,34,.96) 0%, rgba(5,15,34,.86) 42%, rgba(5,15,34,.55) 100%); }
.hm-hero-in { position: relative; width: var(--sx-wrap); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; padding: 64px 0 72px; }
.hm-hero h1 { font-size: clamp(36px, 5.2vw, 62px); line-height: 1.06; margin: 0 0 18px; color: #fff; max-width: 15ch; }
.hm-hero p.hm-lede { font-size: 19px; line-height: 1.55; color: #e6dfd0; max-width: 54ch; margin: 0 0 26px; }
.hm-chant { font-family: var(--display); color: var(--gold-soft); font-size: 18px; margin: 0 0 14px; }
.hm-find { display: flex; gap: 8px; max-width: 560px; background: #fff; border-radius: 16px; padding: 6px; }
.hm-find input { flex: 1; min-width: 0; border: 0; outline: 0; font: 16px var(--ui); padding: 0 14px; min-height: 48px; border-radius: 12px; color: var(--text); }
.hm-find button { border: 0; border-radius: 12px; background: var(--saffron); color: #fff; font: 700 15px var(--ui); padding: 0 20px; cursor: pointer; }
.hm-find button:hover { background: var(--saffron-deep); }
.hm-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; font-size: 14px; color: #c9c0ae; align-items: center; }
.hm-quick a { color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 6px 12px; font-weight: 600; }
.hm-quick a:hover { background: rgba(255,255,255,.12); }
.hm-find-results { max-width: 560px; margin-top: 8px; background: #fff; border-radius: 14px; overflow: hidden; }
.hm-find-results a { display: block; padding: 11px 16px; text-decoration: none; color: var(--navy-900); border-top: 1px solid var(--line); }
.hm-find-results a:first-child { border-top: 0; }
.hm-find-results a:hover { background: var(--cream-2); }
.hm-find-results a small { display: block; color: var(--text-soft); font-size: 13px; }
.hm-find-results a b { font-weight: 700; }
@media (max-width: 940px) { .hm-hero-in { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 44px 0 52px; } }

.hm-section { padding: 64px 0; }
.hm-section-alt { background: var(--cream-2); }
.hm-head { max-width: 62ch; margin-bottom: 28px; }
.hm-head h2 { font-size: clamp(28px, 3.8vw, 40px); line-height: 1.15; color: var(--navy-900); margin: 0 0 8px; }
.hm-head p { color: var(--text-soft); font-size: 17px; margin: 0; }

.hm-desk { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.hm-tile { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s, box-shadow .15s; }
.hm-tile:hover { border-color: var(--saffron); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(8,24,49,.1); }
.hm-tile i { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--navy-900); color: var(--gold-soft); }
.hm-tile i svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hm-tile strong { display: block; font-size: 17px; color: var(--navy-900); line-height: 1.25; margin-bottom: 3px; }
.hm-tile span { font-size: 14px; color: var(--text-soft); line-height: 1.45; display: block; }
.hm-tile-sos i { background: var(--alert); color: #fff; }
@media (max-width: 1040px) { .hm-desk { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .hm-desk { grid-template-columns: 1fr; } .hm-section { padding: 44px 0; } }

.hm-rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
.hm-rules > div { padding: 22px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.hm-rules h3 { font: 700 17px var(--ui); color: var(--navy-900); margin: 0 0 6px; }
.hm-rules p { margin: 0 0 8px; font-size: 15px; color: var(--text-soft); }
.hm-rules a { color: var(--saffron-deep); font-weight: 700; font-size: 15px; }

.hm-live { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.hm-live a { display: block; padding: 18px 20px; border-radius: 14px; background: var(--navy-900); color: #fff; text-decoration: none; border: 1px solid transparent; }
.hm-live a:hover { border-color: var(--gold); }
.hm-live strong { display: block; font-size: 17px; margin-bottom: 4px; }
.hm-live span { font-size: 14px; color: #c9c0ae; display: block; }
.hm-live em { font-style: normal; font-size: 13px; color: var(--gold-soft); font-weight: 600; display: block; margin-top: 8px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .sx-alert, .sx-header, .sx-footer, .pg-tools, .pg-chips, .pg-bill { display: none !important; } }

.page-hero h1, .page-hero p, .pg-hero h1 { overflow-wrap: anywhere; }
