/* Scoped community sightings styles, v7. */
.sg-sightings-control{display:inline-flex;position:relative;flex:0 0 auto}
.sg-sighting-count{position:absolute;z-index:1;top:-7px;right:-6px;display:flex;align-items:center;justify-content:center;min-width:19px;height:19px;padding:0 4px;box-sizing:border-box;border:2px solid #fff;border-radius:20px;background:#ffb703;color:#111;font:800 11px/1 system-ui,sans-serif;pointer-events:none}
.sg-sighting-count[hidden]{display:none!important}
.sg-other-reports{margin:24px 0;padding:18px;border:2px solid #219ebc;border-radius:12px;background:#f3fafc;color:#111;overflow-wrap:anywhere}
.sg-other-reports[hidden]{display:none!important}
.sg-other-reports h2{margin:0 0 8px;font-size:1.35rem}
.sg-other-intro{margin:0 0 14px;font-size:.9rem}
.sg-other-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:12px}
.sg-other-card{min-width:0;padding:14px;border:1px solid #b5d9e3;border-radius:9px;background:#fff}
.sg-other-card h3{margin:0 0 8px;font-size:1.15rem}
.sg-other-card p{margin:7px 0}
.sg-other-status{font-weight:650;font-size:.85rem;color:#624600}
.sg-other-card .sg-service-actions{display:flex;flex-wrap:wrap;margin-top:12px}
.sg-other-card .sg-other-link{display:inline-flex;align-items:center;border:1px solid #187d96;border-radius:5px;padding:8px 10px;min-height:44px;box-sizing:border-box;background:#edf8fb;color:#12617a;font-size:12px;font-weight:750;text-decoration:none}
.sg-page{max-width:1050px;margin:0 auto;padding:22px 16px 40px;color:#111;font:16px/1.5 system-ui,sans-serif}.sg-page *, .sg-dialog *, .sg-inline *{box-sizing:border-box}.sg-page h1{font-size:clamp(1.65rem,5vw,2.4rem);line-height:1.15;margin:15px 0 8px}.sg-intro{margin:0 0 18px}.sg-breadcrumb{display:flex;justify-content:space-between;gap:12px}.sg-page a,.sg-dialog a,.sg-inline a{color:#12617a;text-decoration:underline}.sg-page button,.sg-dialog button,.sg-inline button,.sg-train-actions button{font:inherit;cursor:pointer;border:1px solid #187d96;border-radius:7px;padding:9px 12px;min-height:42px;width:auto;background:#edf8fb;color:#12617a;font-weight:700;line-height:1.25}.sg-page button:hover,.sg-dialog button:hover,.sg-train-actions button:hover{background:#d2edf4}.sg-page button:disabled,.sg-dialog button:disabled{opacity:.6;cursor:wait}.sg-page :focus-visible,.sg-dialog :focus-visible,.sg-train-actions :focus-visible{outline:3px solid #219ebc;outline-offset:3px}.sg-page input,.sg-page select,.sg-dialog input,.sg-dialog select,.sg-dialog textarea{display:block;max-width:100%;width:100%;min-width:0;font:16px system-ui;line-height:1.4;margin-top:5px;padding:9px;border:1px solid #888;border-radius:6px;background:#fff;color:#111}.sg-page label,.sg-dialog label{display:block;font-size:.9rem;font-weight:650;min-width:0;position:relative}.sg-disclaimer,.sg-callout{background:#fff9e5;border-left:5px solid #ffb703;padding:12px 14px;border-radius:6px}.sg-disclaimer{font-size:.9rem}.sg-actions{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.sg-filter,.sg-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.sg-filter{margin:20px 0;padding:16px;background:#f0f5f7;border-radius:10px}.sg-filter button{align-self:end;justify-self:start}.sg-wide{grid-column:1/-1}.sg-note{font-size:.82rem;font-weight:400;line-height:1.45;color:#555;display:block;margin:7px 0}.sg-report-card{border:1px solid #ccc;border-top:4px solid #219ebc;border-radius:10px;background:#fff;padding:15px;margin:14px 0;overflow-wrap:anywhere}.sg-report-card h3{margin:0 0 8px;font-size:1.03rem}.sg-report-card p{margin:7px 0}.sg-badge{display:inline-block;font-size:.72rem;font-weight:750;border-radius:4px;padding:3px 7px;background:#fff0bd;color:#624600}.sg-report-card details{margin-top:10px;border-top:1px solid #ddd;padding-top:10px}.sg-report-card summary{cursor:pointer;color:#12617a;font-weight:700}.sg-suggestion{border-left:3px solid #bbb;padding:5px 10px;margin:12px 0;background:#fafafa}.sg-suggestion p{margin:4px 0}.sg-stale{color:#666}.sg-dialog{width:min(720px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;border:0;border-radius:12px;background:#fff;color:#111;box-shadow:0 16px 60px #0008;font:16px/1.45 system-ui;overflow:auto}.sg-dialog::backdrop{background:#0009}.sg-dialog-head{position:sticky;top:0;z-index:3;display:flex;justify-content:space-between;gap:12px;align-items:center;background:#000;color:#fff;border-bottom:4px solid #ffb703;padding:12px 16px}.sg-dialog-head h2{font-size:1.2rem;line-height:1.3;margin:0}.sg-dialog-head button{flex:0 0 42px;padding:0;width:42px;border-color:#aaa;background:#111;color:#fff;font-size:1.5rem}.sg-dialog-body{padding:16px}.sg-dialog .sg-check{display:flex;align-items:flex-start;gap:10px;margin:12px 0;font-weight:500}.sg-dialog .sg-check input[type=checkbox]{flex:0 0 18px;width:18px;height:18px;min-height:18px;margin:2px 0 0;padding:0;accent-color:#219ebc}.sg-train-actions{display:flex;gap:5px;flex-wrap:wrap;margin-top:8px;font-size:.76rem}.sg-train-actions button{min-height:36px;padding:6px 9px}.sg-inline{flex-basis:100%;width:100%;font-size:.85rem;white-space:normal}.sg-inline .sg-report-card{padding:10px;margin:8px 0}.sg-inline h3{font-size:.85rem}.sg-owner{padding:16px;border:2px solid #219ebc;border-radius:10px;margin:20px 0}.sg-privacy{margin-top:28px;border-top:1px solid #ccc;padding-top:14px;font-size:.85rem}.sg-privacy summary{font-weight:700;cursor:pointer}.sg-footer{margin-top:30px;color:#555;font-size:.8rem}.sg-honey{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}.sg-options{position:absolute;top:100%;left:0;right:0;max-height:220px;overflow:auto;z-index:5;border:1px solid #888;border-radius:6px;background:white;box-shadow:0 5px 16px #0003}.sg-options button{display:block;text-align:left;width:100%;border:0;border-radius:0;background:#fff;font-weight:400}.sg-options [aria-selected=true]{background:#d2edf4}.sg-error{color:#9b1c25;font-weight:650}.sg-candidate{margin:8px 0;padding:10px;border:1px solid #bbb;border-radius:6px}.sg-candidate button{text-align:left;width:100%}.sg-page [hidden],.sg-dialog [hidden],.sg-train-actions [hidden],.sg-inline [hidden]{display:none!important}
@media(max-width:540px){.sg-fields,.sg-filter{grid-template-columns:minmax(0,1fr)}.sg-wide{grid-column:auto}.sg-dialog{width:calc(100vw - 12px);max-height:calc(100dvh - 12px)}.sg-dialog-body{padding:12px}.sg-page{padding:15px 12px 30px}.sg-dialog .sg-actions button{flex:1 1 120px}}

/* App owns the Sightings sub-link; no additional top-level navigation item. */
.mtb-header .site-global-nav .sg-app-item{display:block;position:relative}
.mtb-header .sg-app-nav{height:100%;position:relative}
.mtb-header .sg-app-nav summary{display:flex;align-items:center;justify-content:center;height:100%;min-height:44px;padding:.55rem .58rem;color:#fff;font:900 .78rem/1.2 Arial,Helvetica,sans-serif;letter-spacing:.025em;text-transform:uppercase;cursor:pointer;list-style:none}
.mtb-header .sg-app-nav summary::-webkit-details-marker{display:none}
.mtb-header .sg-app-nav summary::after{content:'▾';margin-left:6px}
.mtb-header .sg-app-nav[open]>summary,.mtb-header .sg-app-nav summary:hover,.mtb-header .sg-app-nav summary:focus-visible{background:#ffb703;color:#000}
.mtb-header .site-global-nav .sg-app-nav>ul{position:absolute;top:100%;right:0;z-index:40;display:block;min-width:180px;margin:0;padding:4px;background:#000;border:2px solid #ffb703;border-radius:0 0 7px 7px}
.mtb-header .sg-app-nav:not([open])>ul{display:none!important}
.mtb-header .site-global-nav .sg-app-nav>ul>li{display:block}
.mtb-header .site-global-nav .sg-app-nav>ul a{justify-content:flex-start;min-height:44px;height:auto;white-space:normal}
@media(max-width:1160px){.mtb-header .sg-app-nav{height:auto}.mtb-header .sg-app-nav summary{border:1px solid #333;padding:.7rem .35rem}.mtb-header .site-global-nav .sg-app-nav>ul{position:static;min-width:0;width:100%;box-sizing:border-box}.mtb-header .site-global-nav .sg-app-nav>ul a{justify-content:center}}

/* Compact actions share one strip. Expanded sightings get their own table row. */
.sg-service-actions{display:inline-flex;align-items:center;gap:4px;vertical-align:middle;max-width:100%}
.sg-service-actions .sg-train-actions{display:contents;margin:0}
.sg-service-actions .schedule-link,.sg-service-actions .sg-train-actions button{width:auto;min-width:0;min-height:32px;margin:0;padding:5px 7px;border-radius:5px;white-space:nowrap;font-size:12px;line-height:1.2;font-weight:750}
.schedule-cell{width:1%;min-width:0;white-space:nowrap;vertical-align:middle}
.schedule-cell .sg-service-actions .schedule-link{min-width:0}
.sg-sightings-row[hidden]{display:none!important}
.sg-sightings-row>td{padding:0 12px 12px;background:#f5fafb;text-align:left;white-space:normal}
.sg-sightings-row .sg-inline{max-width:1000px;margin:0 auto}
.card .sg-service-actions{display:flex;flex-wrap:wrap;margin-top:10px}
.card .sg-service-actions .schedule-link{width:auto;margin:0}
@media(max-width:900px),(pointer:coarse){.sg-service-actions .schedule-link,.sg-service-actions .sg-train-actions button{min-height:44px;padding:8px 10px}}

/* Keep App submenu sizing inside the shared header on both pages. */
.mtb-header,.mtb-header *{box-sizing:border-box}
.mtb-header .sg-app-nav>summary{height:76px;min-height:44px}
.mtb-header .site-global-nav .sg-app-nav>ul{width:190px;max-width:calc(100vw - 32px)}
.mtb-header .site-global-nav .sg-app-nav>ul a{width:100%;min-height:44px;height:auto;line-height:1.3}
.mtb-header .sg-app-nav:has(a[aria-current="page"])>summary{background:#ffb703;color:#000}
.mtb-header .sg-app-nav[open]>summary,.mtb-header .sg-app-nav>summary:hover,.mtb-header .sg-app-nav>summary:focus-visible{color:#000}
@media(max-width:1160px){
 .mtb-header .sg-app-nav>summary{height:auto;min-height:44px;width:100%}
 .mtb-header .site-global-nav .sg-app-nav>ul{width:100%;max-width:none}
 .mtb-header .site-global-nav .sg-app-item{min-width:0;align-self:start}
}
.sg-sightings-page{margin:0;background:#fff;font-family:system-ui,sans-serif}

/* Same safety strip and rules as the timetable. */
.rail-safety-strip{background:#ffb703;color:#111;border-bottom:1px solid #c68e00;box-shadow:0 2px 5px #0002}
.safety-strip-inner{max-width:1700px;margin:0 auto;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px;padding:9px 16px}
.safety-warning-icon{font-size:1.35rem;line-height:1}
.safety-copy{min-width:0;line-height:1.28}.safety-tip-label{display:block;font-size:.68rem;font-weight:900;letter-spacing:.055em;text-transform:uppercase}.safety-tip-text{font-size:.86rem;font-weight:750}
.safety-next,.safety-rules-link{width:auto;min-height:34px;padding:5px 10px;border:1px solid #111;border-radius:7px;background:#111;color:#fff;font-size:.75rem;font-weight:850;white-space:nowrap}
.safety-actions{display:flex;align-items:center;gap:9px;flex-wrap:nowrap}
.safety-next:hover,.safety-next:focus-visible,.safety-rules-link:hover,.safety-rules-link:focus-visible{background:#fff;color:#111}
.safety-agreement{scroll-margin-top:12px;margin:12px 0 8px;padding:12px 14px;border:2px solid #ffb703;border-radius:10px;background:#fffaf0;color:#333}
.safety-agreement h3{margin:0 0 7px;color:#111;font-size:1rem}.safety-agreement p{margin:7px 0}.safety-agreement ul{margin:8px 0 8px 20px;padding:0}.safety-agreement li{margin:5px 0}
.safety-sources{font-size:.72rem;color:#555}.safety-sources a{font-weight:800;color:#12617a}
@media(max-width:700px){
 .safety-strip-inner{grid-template-columns:auto minmax(0,1fr);gap:7px 9px;padding:8px 10px}
 .safety-tip-text{font-size:.79rem}.safety-warning-icon{font-size:1.2rem}
 .safety-actions{grid-column:2;display:flex;gap:6px;justify-self:start;flex-wrap:nowrap}
 .safety-next,.safety-rules-link{min-height:30px;padding:3px 7px;font-size:.68rem}
}


.sg-sightings-page .safety-next,.sg-sightings-page .safety-rules-link{cursor:pointer;font-family:inherit;min-height:44px}
.sg-sightings-page .safety-agreement{scroll-margin-top:90px}

/* Keep the App label and arrow legible in Safari and every selected/open state. */
.mtb-header .sg-app-nav>summary{-webkit-text-fill-color:currentColor}
.mtb-header .sg-app-nav>summary:focus-visible{outline:2px solid #fff;outline-offset:-4px}

/* v237 website Travels menu, merged into the existing app header. */
/* Website menu matched to the app handover. Scoped to the shared header. */
.mtb-header,.mtb-header *{box-sizing:border-box}
.mtb-header{overflow:visible;background:#000;color:#fff;border-bottom:6px solid #ffb703}
.mtb-header .nav,.mtb-header .header-inner{
  display:flex;align-items:stretch;justify-content:space-between;gap:.5rem;
  width:min(calc(100% - 2rem),1180px);height:76px;min-height:76px;margin-inline:auto;flex-wrap:nowrap
}
.mtb-header .brand{display:flex;align-items:stretch;height:76px;flex:0 0 auto}
.mtb-header .brand img{height:100%;width:auto;max-width:none;object-fit:contain}
.mtb-header .site-global-nav{display:flex;align-items:stretch;justify-content:flex-end;width:auto;min-width:0;flex-wrap:nowrap}
.mtb-header .site-global-nav>ul{display:flex;align-items:stretch;justify-content:flex-end;gap:0;list-style:none;margin:0;padding:0}
.mtb-header .site-global-nav>ul>li{display:flex;min-width:0}
.mtb-header .site-global-nav>ul>li>a,.mtb-header .site-global-nav>ul>li>.cart-button,
.mtb-header .sg-dropdown>summary{
  display:flex;align-items:center;justify-content:center;min-height:44px;height:100%;
  padding:.55rem .48rem;border:0;background:transparent;color:#fff;
  font:900 .74rem/1.2 Arial,Helvetica,sans-serif;letter-spacing:.02em;text-transform:uppercase;
  text-decoration:none;white-space:nowrap;cursor:pointer
}
.mtb-header .site-global-nav>ul>li>a:hover,.mtb-header .site-global-nav>ul>li>a:focus-visible,
.mtb-header .site-global-nav>ul>li>a[aria-current="page"],
.mtb-header .site-global-nav>ul>li>.cart-button:hover,.mtb-header .site-global-nav>ul>li>.cart-button:focus-visible,
.mtb-header .sg-dropdown[open]>summary,.mtb-header .sg-dropdown>summary:hover,.mtb-header .sg-dropdown>summary:focus-visible{
  background:#ffb703;color:#000;-webkit-text-fill-color:currentColor
}
.mtb-header .sg-app-item,.mtb-header .sg-travels-item{position:relative}
.mtb-header .sg-dropdown{position:relative;height:100%}
.mtb-header .sg-dropdown>summary{list-style:none;-webkit-text-fill-color:currentColor}
.mtb-header .sg-dropdown>summary::-webkit-details-marker{display:none}
.mtb-header .sg-dropdown>summary::after{content:"▾";display:inline-block;margin-left:6px;color:currentColor;-webkit-text-fill-color:currentColor}
.mtb-header .sg-dropdown>summary:focus-visible{outline:2px solid #fff;outline-offset:-4px}
.mtb-header .site-global-nav .sg-dropdown>ul{
  position:absolute;top:100%;right:0;z-index:40;display:block;width:190px;
  max-width:calc(100vw - 32px);margin:0;padding:4px;list-style:none;
  background:#000;border:2px solid #ffb703;border-radius:0 0 7px 7px
}
.mtb-header .sg-dropdown:not([open])>ul{display:none!important}
.mtb-header .site-global-nav .sg-dropdown>ul>li{display:block}
.mtb-header .site-global-nav .sg-dropdown>ul a{
  display:flex;align-items:center;min-height:44px;height:auto;width:100%;padding:.7rem .6rem;
  color:#fff;background:#000;font:900 .78rem/1.3 Arial,Helvetica,sans-serif;
  text-decoration:none;text-transform:uppercase;white-space:normal
}
.mtb-header .site-global-nav .sg-dropdown>ul a:hover,
.mtb-header .site-global-nav .sg-dropdown>ul a:focus-visible{background:#ffb703;color:#000}
@media(max-width:1160px){
  .mtb-header .nav,.mtb-header .header-inner{
    display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:0 1rem;
    height:auto;min-height:66px
  }
  .mtb-header .brand{width:100%;height:66px;min-width:0}
  .mtb-header .brand img{width:100%;max-width:100%;min-width:0;object-position:left center}
  .mtb-header .menu-button{display:block;justify-self:end;align-self:center;white-space:nowrap;margin:0}
  .mtb-header .site-global-nav{display:none;grid-column:1/-1;width:100%;height:auto}
  .mtb-header .site-global-nav.open{display:block}
  .mtb-header .site-global-nav>ul{display:grid;width:100%;grid-template-columns:repeat(2,minmax(0,1fr));padding:.5rem 0}
  .mtb-header .site-global-nav>ul>li{min-width:0}
  .mtb-header .site-global-nav>ul>li>a,.mtb-header .site-global-nav>ul>li>.cart-button,
  .mtb-header .sg-dropdown>summary{width:100%;min-height:44px;height:auto;padding:.7rem .35rem;border:1px solid #333;text-align:center;white-space:normal}
  .mtb-header .sg-dropdown{height:auto;width:100%}
  .mtb-header .site-global-nav .sg-dropdown>ul{position:static;width:100%;max-width:none;min-width:0}
  .mtb-header .site-global-nav .sg-dropdown>ul a{justify-content:center;text-align:center}
  .mtb-header::before{height:66px;bottom:auto}
}

/* Travels is selected throughout its section; exact landing links carry aria-current. */
.mtb-header .sg-travels-nav.is-current>summary{background:#ffb703;color:#000;-webkit-text-fill-color:currentColor}
.mtb-header .site-global-nav .sg-travels-nav>ul{width:235px}
@media(max-width:1160px){
  .mtb-header .site-global-nav>ul>.sg-travels-item{grid-column:1/-1;min-width:0}
  .mtb-header .site-global-nav .sg-travels-nav>ul{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0}
  .mtb-header .site-global-nav .sg-travels-nav>ul>li{min-width:0}
  .mtb-header .site-global-nav .sg-travels-nav>ul a{justify-content:center;text-align:center;min-height:48px}
}

/* Community observations remain visually distinct from published schedule rows. */
.sg-other-card{border:3px solid #24738b;border-left-width:8px;background:#edf7fc;color:#111;margin:12px 0;padding:16px;border-radius:12px;overflow-wrap:anywhere}
.sg-other-card .sg-note{color:#34454d}.sg-other-status{font-weight:750;color:#144c60}
.sg-running-observation{display:block;flex-basis:100%;max-width:100%;padding:0;margin:4px 0 0;background:none;color:#31566a;border:0;border-radius:0;font-size:.76rem;font-weight:500;line-height:1.3;text-align:left;text-decoration:none;overflow-wrap:anywhere}
.sg-running-observation:hover{text-decoration:underline}.sg-running-observation:focus-visible{outline:2px solid #219ebc;outline-offset:2px}
.sg-other-card a{color:#12556b;text-decoration:underline}
#reportSightingInstead{background:#165d73;color:#fff;padding:12px 16px;border:0;border-radius:8px;font-weight:700;cursor:pointer}
.report-form [hidden]{display:none!important}
