/* Icons */
.ic { width: 1.2em; height: 1.2em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.22em; }
.ic-live { color: #7fd6a3; width: 1em; height: 1em; }
.brand-logo { width: 42px; height: 42px; flex-shrink: 0; }
.btn-ghost, .btn-hero, .btn-hero-ghost, .btn-publish, .btn-listen, .mobile-tab, .check, .effect-tag, .notif-app, .present-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.check { justify-content: flex-start; }
.check .ic { color: var(--blue); }
.effect-tag .ic { width: 1.05em; height: 1.05em; }
.step-ic { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; }
.step-ic .ic { width: 17px; height: 17px; }
.assistant-icon { color: #fff; }
.assistant-icon .ic { width: 19px; height: 19px; }
.btn-close .ic { width: 22px; height: 22px; }
.notif-app { justify-content: flex-start; }
.mobile-tab .ic { width: 18px; height: 18px; }
.mobile-tab span { display: none; }

/* ===== Presentation mode ===== */
body.presenting .site-header { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.present-intro, .present-bar { display: none; }
body.presenting { background: #fff; padding-bottom: 120px; }
body.presenting .hero,
body.presenting .scenarios,
body.presenting .mobile-tabs,
body.presenting .feedback-cta,
body.presenting .site-footer,
body.presenting .skip-link,
body.presenting .today,
body.presenting .workspace { display: none; }

body.presenting .present-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 600; background: var(--navy); color: #fff; padding: 14px 24px; gap: 20px; align-items: center; justify-content: space-between; border-top: 4px solid var(--green); }
.present-caption { font-size: 18px; line-height: 1.4; max-width: 1000px; }
.present-ctrls { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.present-count { font-size: 14px; color: #b8c4cc; margin-right: 6px; white-space: nowrap; }
.present-btn { min-width: 48px; min-height: 48px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; font-weight: 800; font-size: 16px; }
.present-btn:hover { background: rgba(255,255,255,.1); }
.present-next { background: var(--green-dark); border-color: var(--green-dark); padding: 0 20px; }
.present-next:hover { background: #006e34; }

body.presenting[data-slide="intro"] .present-intro,
body.presenting[data-slide="outro"] .present-intro { display: flex; min-height: calc(100vh - 120px); flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 24px; background: radial-gradient(circle at 50% 40%, #eef5fb 0%, #fff 60%); }
.present-intro h2 { font-size: clamp(32px, 5vw, 60px); line-height: 1.05; letter-spacing: -1px; color: var(--navy); max-width: 900px; }
.present-intro p:last-child { font-size: 20px; color: var(--muted); }

body.presenting[data-slide="today"] .today { display: grid; margin: 4vh auto 0; max-width: 1300px; min-height: 70vh; font-size: 1.15em; }
body.presenting[data-slide="today"] .today h2 { font-size: 30px; }
body.presenting[data-slide="today"] .today-photo { display: block; }

body.presenting[data-slide="compose"] .workspace,
body.presenting[data-slide="website"] .workspace,
body.presenting[data-slide="rider"] .workspace { display: block; max-width: 1000px; margin: 2vh auto 0; padding: 0 16px; }
body.presenting .workspace .panel { display: none; }
body.presenting[data-slide="compose"] .panel-compose,
body.presenting[data-slide="website"] .panel-website,
body.presenting[data-slide="rider"] .panel-rider { display: block; font-size: 1.12em; box-shadow: 0 10px 40px rgba(13,31,44,.12); }
body.presenting[data-slide="compose"] .form-details { display: none; }
body.presenting .chat { max-height: 46vh; }
body.presenting .alert-list { max-height: none; }
body.presenting .phone { max-width: 400px; }

@media (max-width: 820px) {
  .header-meta .btn-ghost span { display: none; }
  .header-meta .btn-ghost { width: 44px; min-height: 44px; padding: 0; }
  .header-meta .btn-ghost .ic { width: 20px; height: 20px; }
  body.presenting { padding-bottom: 170px; }
  body.presenting .present-bar { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 14px; }
  .present-caption { font-size: 15.5px; }
  .present-ctrls { justify-content: flex-end; }
  body.presenting[data-slide="today"] .today { margin: 0; border-radius: 0; min-height: 0; }
  body.presenting[data-slide="today"] .today-photo { display: none; }
  body.presenting[data-slide="compose"] .workspace,
  body.presenting[data-slide="website"] .workspace,
  body.presenting[data-slide="rider"] .workspace { padding: 0 8px; margin-top: 8px; }
  body.presenting .panel { font-size: 1em !important; }
}

/* ===== Accessibility: respect "reduce motion" ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
}

/* ===== How it works ===== */
.how { max-width: 1400px; margin: 28px 20px 4px; }
@media (min-width: 1480px) { .how { margin-inline: auto; } }
.how > h2 { font-size: 24px; letter-spacing: -.3px; color: var(--navy); margin-bottom: 14px; }
.how-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how-steps li { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 12px 16px; display: grid; gap: 6px; align-content: start; }
.how-steps img { width: 100%; height: auto; display: block; border-radius: 12px; }
.how-num { position: absolute; top: 20px; left: 20px; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; display: grid; place-items: center; border: 3px solid #fff; }
.how-steps h3 { font-size: 17px; color: var(--navy); margin-top: 6px; }
.how-steps p { font-size: 14.5px; color: #3e4a54; }
body.presenting .how { display: none; }
body.presenting[data-slide="how"] .how { display: block; max-width: 1240px; margin: 5vh auto 0; padding: 0 16px; }
body.presenting[data-slide="how"] .how > h2 { font-size: 34px; text-align: center; margin-bottom: 20px; }
body.presenting[data-slide="how"] .how-steps h3 { font-size: 21px; }
body.presenting[data-slide="how"] .how-steps p { font-size: 16.5px; }
@media (max-width: 900px) {
  .how { margin: 22px 10px 4px; }
  .how-steps { grid-template-columns: 1fr; }
  .how-steps li { grid-template-columns: 130px 1fr; column-gap: 12px; align-items: center; }
  .how-steps img { grid-row: span 2; }
  .how-steps h3 { margin-top: 0; font-size: 16px; }
  .how-steps p { font-size: 14px; }
  .how-num { top: 16px; left: 16px; width: 26px; height: 26px; font-size: 13px; }
  body.presenting[data-slide="how"] .how { margin-top: 8px; }
  body.presenting[data-slide="how"] .how > h2 { font-size: 24px; }
  body.presenting[data-slide="how"] .how-steps h3 { font-size: 16px; }
  body.presenting[data-slide="how"] .how-steps p { font-size: 14px; }
}

/* ===== Languages ===== */
.lang-bar { padding: 8px 10px; border-bottom: 1px solid var(--line); background: #fafbfc; }
.panel-rider .lang-bar { border: 0; background: none; padding: 0 0 8px; }
.lang-pick { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; }
.lang-pick .ic { color: var(--blue); }
.lang-pick select { flex: 1; min-height: 40px; padding: 6px 10px; font-size: 14px; }
.tr-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-bottom: 4px; }
.tr-tag.reviewed { background: #e3f4ea; color: #0b5a2c; }
.tr-tag.sample, .tr-tag.template { background: #fff1e0; color: #7a3a00; }
.tr-h { display: block; margin-bottom: 2px; }
.alert-es[dir="rtl"] { text-align: right; }
.alert-es .tr-tag { display: flex; width: fit-content; }
.alert-es[dir="rtl"] .tr-tag { margin-left: auto; }
.notif-tr { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 6px; }
.notif-tr[dir="rtl"] { text-align: right; }

.orig-en { font-size: 13px; color: var(--muted); }
.orig-en summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; color: var(--blue); font-weight: 600; }
.orig-en p { margin-top: 4px; }
.browser[dir="rtl"] .alert-card { border-left: 1px solid var(--line); border-right: 5px solid var(--ac); text-align: right; }
.browser[dir="rtl"] .btn-listen { justify-self: end; }
.alert-card > .tr-tag { justify-self: start; }
.browser[dir="rtl"] .alert-card > .tr-tag { justify-self: end; }
.phone[dir="rtl"] .notif { text-align: right; }
.phone .tr-tag { margin-bottom: 2px; }

/* ===== Workflow ===== */
.route-search { margin-bottom: 6px; }
.confirm-box { margin-top: 10px; border: 2px solid var(--green-dark); border-radius: 12px; padding: 12px 14px; background: #f3fbf6; display: grid; gap: 4px; }
.confirm-box[hidden] { display: none; }
.confirm-title { font-weight: 800; font-size: 16px; }
.confirm-sum strong { display: inline-flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.confirm-head { font-weight: 700; }
.confirm-label { font-size: 13px; font-weight: 700; color: var(--muted); margin-top: 4px; }
.confirm-list { list-style: none; display: grid; gap: 4px; font-size: 14px; }
.confirm-list li { display: flex; gap: 8px; align-items: center; }
.confirm-list .ic { color: var(--green-dark); }
.confirm-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 8px; }
.confirm-actions .btn-publish { width: auto; margin: 0; padding: 0 20px; min-height: 46px; }
.edit-banner { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: #fff6df; border: 1px solid #f0d58a; border-radius: 8px; padding: 8px 10px; font-weight: 700; font-size: 14px; margin: 6px 0; }
.edit-banner[hidden] { display: none; }
.active-alerts { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.active-alerts h3 { font-size: 16px; }
.active-list { list-style: none; display: grid; gap: 8px; margin-top: 8px; }
.active-row { border: 1px solid var(--line); border-left: 5px solid var(--ac); border-radius: 8px; padding: 8px 10px; display: grid; gap: 8px; }
.active-info { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.active-head { flex-basis: 100%; font-weight: 700; font-size: 14px; }
.active-meta { flex-basis: 100%; font-size: 12.5px; color: var(--muted); }
.active-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.btn-end { min-height: 40px; padding: 0 14px; border-radius: 8px; border: 1px solid #287A51; background: #fff; color: #1d6b43; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.btn-end:hover { background: #eaf6ef; }
.myroute-bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); background: #fff; flex-wrap: wrap; }
.myroute-bar label { font-size: 13.5px; font-weight: 700; }
.myroute-bar input { flex: 1; min-width: 140px; min-height: 40px; }
.alert-card.is-resolved { background: #f3fbf6; }
.alert-card.is-resolved h4 { text-decoration: line-through; text-decoration-thickness: 1px; }
.resolved-banner { display: flex; align-items: center; gap: 6px; font-weight: 800; color: #1d6b43; font-size: 13.5px; }

/* ===== Hero entry ===== */
.hero-hook { font-size: 15.5px; background: #fff1f0; border-left: 4px solid #d9272d; padding: 8px 12px; border-radius: 0 8px 8px 0; color: #5c1414; max-width: 560px; }
.hero-hook[hidden] { display: none; }
.hero-more { font-size: 14px; color: var(--muted); }
.link-btn { background: none; border: 0; padding: 0; color: #1f6aa5; font-weight: 700; text-decoration: underline; min-height: 24px; }
.pp-icon { font-size: 14px; letter-spacing: -2px; }

@media (max-width: 820px) {
  .header-meta { flex-wrap: nowrap; gap: 6px; }
  .hero-actions { flex-direction: column; }
  .hero-actions > * { width: 100%; }
}

/* ===== All-languages panel ===== */
.tr-panel { border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; margin-bottom: 8px; background: #fbfcfd; }
.tr-panel[hidden] { display: none; }
.tr-panel > summary { cursor: pointer; font-weight: 800; min-height: var(--tap); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tr-list { list-style: none; display: grid; gap: 10px; padding: 4px 0 10px; }
.tr-list li { display: grid; gap: 3px; border-top: 1px solid var(--line); padding-top: 8px; }
.tr-lang { font-weight: 700; font-size: 13.5px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.tr-text { font-size: 14px; }
.tr-text[dir="rtl"] { text-align: right; }
.tr-back { font-size: 12.5px; color: var(--muted); }
.tr-back summary { cursor: pointer; color: #1f6aa5; min-height: 28px; display: flex; align-items: center; }
.tr-tag.ai { background: #e8f1fb; color: #134a7a; }
.tr-tag.aiflag { background: #fdecea; color: #8a1c1c; }

/* ===== Live bus map ===== */
.live-buses { max-width: 1400px; margin: 24px 20px 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; display: grid; gap: 12px; }
@media (min-width: 1480px) { .live-buses { margin-inline: auto; } }
.live-buses h2 { font-size: 22px; letter-spacing: -.3px; display: flex; gap: 8px; align-items: center; }
.live-buses-head p { color: var(--muted); font-size: 15px; max-width: 820px; margin-top: 4px; }
.bus-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bus-chip { min-height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; color: var(--ink, #14212b); }
.bus-chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.bus-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; box-shadow: 0 0 0 1.5px #fff; }
.bus-n { font-weight: 600; opacity: .85; }
.bus-map { height: 460px; border-radius: 12px; border: 1px solid var(--line); z-index: 0; }
@media (max-width: 700px) { .bus-map { height: 360px; } .live-buses { margin: 16px 10px 0; padding: 16px 14px; } }
.bus-pin-wrap { background: none; border: 0; }
.bus-pin { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 20px; padding: 0 4px; border-radius: 6px; background: var(--bc); color: var(--bt); font: 700 11px/1 Inter, system-ui, sans-serif; border: 1.5px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.45); white-space: nowrap; }
.bus-pin.hot { outline: 3px solid #d9272d; outline-offset: 1px; animation: busPulse 1.6s ease-in-out infinite; }
@keyframes busPulse { 50% { outline-offset: 4px; } }
@media (prefers-reduced-motion: reduce) { .bus-pin.hot { animation: none; } }
.bus-pop-alert { color: #b3121a; font-weight: 700; }
.bus-summary { font-size: 15px; }
.bus-hot-note { color: #b3121a; font-weight: 700; }
.bus-list-wrap summary { font-weight: 700; cursor: pointer; min-height: 32px; }
.bus-list { list-style: none; columns: 3 220px; gap: 16px; margin-top: 8px; font-size: 14px; }
.bus-list li { break-inside: avoid; padding: 3px 0; display: flex; gap: 6px; align-items: center; }
.bus-list li.hot { color: #b3121a; }

/* Bus map slide */
body.presenting .live-buses { display: none; }
body.presenting[data-slide="buses"] .live-buses { display: grid; margin: 2vh auto 0; max-width: 1200px; box-shadow: 0 10px 40px rgba(13,31,44,.12); }
body.presenting[data-slide="buses"] .bus-map { height: 58vh; }
body.presenting[data-slide="buses"] .bus-list-wrap { display: none; }
