html, body {
    margin: 0;
    font-family: Roboto, "Segoe UI", Arial, sans-serif;
}

/* ---- Sign-in and static pages ---- */

.jg-center {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f5f7fa;
    padding: 16px;
    box-sizing: border-box;
}

.jg-card {
    width: 100%;
    max-width: 380px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    padding: 24px;
}

.jg-card h1 {
    font-size: 1.5rem;
    margin: 0 0 16px;
}

.jg-card label {
    display: block;
    font-size: 0.875rem;
    margin: 12px 0 4px;
}

.jg-card input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #c4c9d0;
    border-radius: 4px;
}

.jg-card button {
    margin-top: 16px;
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 0;
    border-radius: 4px;
    background: #1b5e20;
    color: #fff;
    cursor: pointer;
}

.jg-error {
    color: #b71c1c;
}

.jg-hint {
    color: #5f6b7a;
    font-size: 0.8rem;
    margin-top: 16px;
}

/* Staff second factor (docs/26 F-27): step-up, authenticator set-up, recovery codes shown once. */
.jg-card h2 {
    font-size: 1.1rem;
    margin: 16px 0 8px;
}

.jg-card .jg-choice {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0;
}

.jg-card .jg-choice input {
    width: auto;
}

.jg-staff-who {
    color: #5f6b7a;
}

.jg-totp-secret {
    word-break: break-all;
    background: #f5f7fa;
    padding: 8px;
    border-radius: 4px;
}

.jg-totp-secret code,
.jg-recovery-codes code {
    font-family: "Roboto Mono", Consolas, monospace;
    font-size: 1.05rem;
    letter-spacing: 0.08em;
}

.jg-recovery-codes {
    columns: 2;
    padding-left: 24px;
}

/* Email-first sign-in (contract 1.4.2): the phone code folds under the email form; the link's landing page. */
.jg-phone-option {
    margin-top: 20px;
    border-top: 1px solid #e3e7ec;
    padding-top: 12px;
}

.jg-phone-option summary {
    cursor: pointer;
    color: #1b5e20;
    font-size: 0.9rem;
}

.jg-card .jg-link-missing[hidden],
.jg-card form[hidden] {
    display: none;
}

/* ---- Portal layout ---- */

.jg-page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.jg-page-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.jg-range {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.jg-range .mud-input-control {
    max-width: 170px;
}

.jg-pager {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 8px;
}

.cursor-pointer {
    cursor: pointer;
}

.jg-kv th {
    text-align: left;
    white-space: nowrap;
    width: 36%;
    color: #5f6b7a;
    font-weight: 500;
}

.jg-stat-value {
    font-variant-numeric: tabular-nums;
}

/* ---- Drill-down tiles and rows: a number that opens the filtered list behind it ---- */

.jg-stat-link {
    display: block;
    color: inherit;
    text-decoration: none;
    border-radius: 4px;
}

.jg-stat-link .jg-stat-clickable {
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.jg-stat-link:hover .jg-stat-clickable {
    border-color: #1565c0;
    box-shadow: 0 1px 4px rgba(21, 101, 192, 0.25);
}

.jg-stat-link:focus-visible {
    outline: 3px solid #1565c0;
    outline-offset: 2px;
}

.jg-stat-more {
    color: #1565c0;
}

.jg-breakdown a.jg-row-link {
    color: inherit;
    text-decoration: none;
    display: block;
}

.jg-breakdown tr.jg-row-clickable:hover {
    background: rgba(21, 101, 192, 0.08);
    cursor: pointer;
}

.jg-breakdown a.jg-row-link:focus-visible {
    outline: 2px solid #1565c0;
    outline-offset: 1px;
}

/* ---- Breakdown bars ---- */

.jg-bar {
    height: 10px;
    border-radius: 5px;
    background: #66bb6a;
    min-width: 2px;
}

/* ---- Charts ---- */

.jg-chart-svg {
    width: 100%;
    height: auto;
    display: block;
}

.jg-chart-grid {
    stroke: #e0e4ea;
    stroke-width: 1;
}

.jg-chart-label {
    font-size: 11px;
    fill: #5f6b7a;
}

.jg-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.8rem;
    margin-top: 4px;
}

.jg-chart-key {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.jg-chart-swatch {
    display: inline-block;
    width: 12px;
    height: 3px;
    border-radius: 2px;
}

/* ---- Photos ---- */

.jg-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.jg-photo img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 4px;
    background: #eceff1;
}

/* ---- Maps ---- */

.jg-map {
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    background: #e8ecef;
}

.jg-marker {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

/* ---- Blazor error UI ---- */

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* ---- Park-and-ride picker map (pickmap.js): rail stations prominent, bus stops small, the car-park pin draggable ---- */

.jg-station-marker {
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.jg-station-rail {
    width: 18px;
    height: 18px;
    background: #1565c0;
}

.jg-station-bus {
    width: 10px;
    height: 10px;
    background: #78909c;
}

.jg-station-chosen {
    background: #2e7d32;
    width: 22px;
    height: 22px;
}

.jg-station-marker:focus-visible {
    outline: 3px solid #ff9800;
    outline-offset: 2px;
}

.jg-carpark-pin {
    width: 22px;
    height: 22px;
    cursor: grab;
}

.jg-carpark-pin-head {
    width: 22px;
    height: 22px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    background: #c62828;
    border: 2px solid #fff;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.6);
    cursor: grab;
}

/* ---- BM | EN switch (owner 2026-10-29) ---- */

.jg-lang {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
}

.jg-lang-option {
    color: inherit;
    text-decoration: none;
    padding: 2px 6px;
    border-radius: 4px;
    opacity: 0.75;
}

.jg-lang-option:hover,
.jg-lang-option:focus-visible {
    opacity: 1;
    text-decoration: underline;
}

.jg-lang-option.jg-active {
    font-weight: 700;
    opacity: 1;
    outline: 1px solid currentColor;
}

.jg-lang-sep {
    opacity: 0.5;
}

.jg-lang-signin {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
    color: #1b5e20;
}

.jg-brand-mark {
  vertical-align: middle;
  margin-right: 8px;
}

.jg-card > .jg-brand-mark, .jg-signin > .jg-brand-mark, .jg-signin-link > .jg-brand-mark {
  display: block;
  margin: 0 auto 8px;
}
