/* ============================================================
   T1-OVP / RRSP AND TFSA OVER-CONTRIBUTION LANDING PAGE
   (core/templates/core/service_pages/t1-ovp.html)

   Loaded with service-pages.css, which supplies the shared pieces (.cs-grid,
   sticky .cs-rail, cards, quote factors, FAQ grid, reviews, offices, related).
   Everything here is prefixed .ov- and is this page's own look.

   DESIGN BRIEF: every CRA page must look different. This one is warm CREAM paper
   with COCOA ink and a TANGERINE accent, sage green for "safe" and sand for the
   free buffer. The hero is an editorial split (big headline left, introduction and
   buttons right) above a full-width dark "room meter": RRSP/TFSA tabs, two or four
   inputs, a ruler with three zones and a needle, a 12-month strip and a plain
   result card. Body: the two forms as tickets with a notched perforation, receipt
   cards for the worked examples, a numbered sequence for the fix (a true sequence)
   and three side-by-side routes for a notice (alternatives, so no numbers). No
   thick accent bars on cards; cards are tinted with an icon tile, a dot before the
   title, a dashed outline or a scalloped edge.

   Palette: cream #fbf5ea / paper #fffaf0 / sand #f4ead6 (line #e1cd9f); cocoa
   #2b1a10 (text on cream 15:1) / #3d271a / #4b3123; tangerine #fb923c (cocoa text
   on it 7:1) and #c2410c (white text on it 5.2:1); orange ink #9a3412 on cream
   6.7:1; sage #2f5239 on paper 8:1 with tints #e4eedc / #b7cfa9. No red, nothing
   loops: the only motion is a short hover lift and the ruler easing to its value.
   ============================================================ */

.ov-hero {
    position: relative;
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, sans-serif;
    color: #2b1a10;
    background:
        radial-gradient(circle at 1px 1px, rgba(154, 52, 18, 0.1) 1px, transparent 1.5px) 0 0 / 22px 22px,
        linear-gradient(180deg, #fbf5ea 0%, #f6ecd8 100%) !important;
    border-bottom: 4px solid #fb923c;
    padding: clamp(1.25rem, 2.5vw, 2rem) 0 clamp(1.75rem, 3.5vw, 2.75rem) !important;
    overflow: clip;
}
/* Same left/right edge as the rest of the redesign (see .cs-body in service-pages.css). */
.ov-hero > .container {
    position: relative;
    max-width: none;
    width: 100%;
    padding-left: clamp(1.5rem, 6vw, 7rem);
    padding-right: clamp(1.5rem, 6vw, 7rem);
}
@media (min-width: 1280px) {
    .ov-hero > .container { padding-right: max(clamp(1.5rem, 6vw, 7rem), 108px); }
}

.ov-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #5a3d29;
    margin-bottom: clamp(0.9rem, 2.5vw, 1.4rem);
}
.ov-crumbs a { display: inline-flex; align-items: center; min-height: 36px; color: #5a3d29; text-decoration: none; }
.ov-crumbs a:hover { color: #9a3412; text-decoration: underline; }
.ov-crumbs span[aria-current] { color: #2b1a10; }
.ov-crumbs span[aria-hidden] { color: #a8896b; }

.ov-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #9a3412;
    background: #fde6cf;
    border: 1px solid #f0b98a;
    border-radius: 999px;
    padding: 0.32rem 0.85rem;
    margin-bottom: 1rem;
}

/* Editorial split: the headline on its own, the introduction beside it. */
.ov-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 2rem); align-items: start; }
.ov-head { max-width: 60rem; }
@media (min-width: 1100px) {
    .ov-hero-grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: clamp(2rem, 4vw, 4rem); }
    .ov-hero-grid .ov-console { margin-top: 0; }
    .ov-hero-grid .ov-head { position: sticky; top: 1.25rem; }
    .ov-hero-grid .ov-console-body { grid-template-columns: minmax(0, 1fr); }
}
.ov-hero h1 {
    font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
    font-size: clamp(2rem, 4.4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.07;
    letter-spacing: -0.025em;
    color: #2b1a10;
    margin: 0 0 1rem;
}
.ov-intro { max-width: 46rem; font-size: 1.06rem; line-height: 1.7; color: #3b2a1e; margin: 0 0 1.1rem; }
.ov-gloss { list-style: none; margin: 0 0 1.4rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 0.7rem; }
.ov-gloss li { display: flex; align-items: baseline; gap: 0.45rem; padding: 0.4rem 0.8rem; font-size: 0.86rem; line-height: 1.4; color: #3b2a1e; background: #fffaf0; border: 1px dashed #c9a56a; border-radius: 16px; }
.ov-gloss strong { flex: 0 0 auto; white-space: nowrap; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 0.95rem; color: #9a3412; }
.ov-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.ov-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.8rem 1.45rem;
    font-size: 0.95rem;
    font-weight: 800;
    text-decoration: none;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.ov-btn .cs-ico { width: 17px; height: 17px; }
.ov-btn-tang { color: #2b1a10; background: #fb923c; box-shadow: 0 4px 0 #9a3412; }
.ov-btn-ghost { color: #2b1a10; background: transparent; border-color: #2b1a10; }
.ov-btn:focus-visible, .ov-tab:focus-visible, .ov-send:focus-visible { outline: 3px solid #c2410c; outline-offset: 3px; }
.ov-noscript { margin: 1.25rem 0 0; padding: 0.9rem 1.1rem; font-size: 0.9rem; color: #2b1a10; background: #fffaf0; border: 1px dashed #c2410c; border-radius: 14px; }

/* ---------- The room meter (light card: fewer heavy blocks in the hero) ---------- */
.ov-console { margin-top: clamp(1.5rem, 3vw, 2.25rem); padding: clamp(1rem, 2.4vw, 1.6rem); color: #2b1a10; background: #fffaf0; border: 2px solid #e1cd9f; border-radius: 22px; box-shadow: 0 30px 46px -36px rgba(43, 26, 16, 0.55); }
.ov-console[hidden] { display: none; }
.ov-console-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem 1.5rem; margin-bottom: 1.1rem; }
.ov-console h2 { margin: 0; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: clamp(1.3rem, 2.4vw, 1.65rem); font-weight: 700; color: #2b1a10; }
.ov-sub { margin: 0.15rem 0 0; font-size: 0.86rem; color: #5a4636; }

.ov-tabs { display: inline-flex; gap: 0.3rem; padding: 0.3rem; background: #f4ead6; border-radius: 14px; }
.ov-tab { display: flex; flex-direction: column; align-items: flex-start; min-width: 110px; min-height: 48px; padding: 0.4rem 0.95rem; font: inherit; text-align: left; color: #2b1a10; background: transparent; border: 0; border-radius: 11px; cursor: pointer; transition: background 0.2s ease, color 0.2s ease; }
.ov-tab-name { font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1rem; font-weight: 700; line-height: 1.2; }
.ov-tab-form { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; color: #5a4636; }
.ov-tab[aria-selected="true"] { color: #fffaf0; background: #2b1a10; }
.ov-tab[aria-selected="true"] .ov-tab-form { color: #f0d9b0; }

.ov-console-body { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(1.25rem, 3vw, 2.25rem); align-items: start; }
.ov-inputs { display: grid; gap: 0.8rem; }
.ov-pane { display: grid; gap: 0.8rem; }
.ov-pane[hidden] { display: none; }
.ov-field { display: grid; gap: 0.25rem; }
.ov-field label { font-size: 0.84rem; font-weight: 700; line-height: 1.35; color: #2b1a10; }
.ov-field input[type="text"], .ov-field select { width: 100%; min-height: 44px; padding: 0.5rem 0.75rem; font: inherit; font-size: 1rem; font-weight: 600; color: #2b1a10; background: #ffffff; border: 2px solid #e1cd9f; border-radius: 12px; }
.ov-field input[type="text"]:focus, .ov-field select:focus { outline: 3px solid #fb923c; outline-offset: 1px; border-color: #c2410c; }
.ov-hint { font-size: 0.76rem; line-height: 1.4; color: #5a4636; }
.ov-check { display: flex !important; align-items: flex-start; gap: 0.6rem; cursor: pointer; }
.ov-check input { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 0.05rem; accent-color: #c2410c; }
.ov-row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }

/* Ruler: three zones, a needle with a tag above it, the limit tag below. */
.ov-meter { min-width: 0; }
.ov-ruler { position: relative; padding: 44px 0 30px; }
.ov-track { position: relative; display: flex; height: 44px; overflow: hidden; background: #efe3c8; border-radius: 12px; }
.ov-track::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0, transparent calc(10% - 1px), rgba(43, 26, 16, 0.18) calc(10% - 1px), rgba(43, 26, 16, 0.18) 10%); pointer-events: none; }
.ov-z { height: 100%; flex: 0 0 auto; width: 0; transition: width 0.45s ease; }
.ov-z-ok { background: #7bb384; }
.ov-z-buf { background: repeating-linear-gradient(135deg, #ecd6a0 0, #ecd6a0 6px, #d9bd7c 6px, #d9bd7c 12px); }
.ov-z-tax { background: #fb923c; flex: 1 1 auto; }
.ov-ruler.is-empty .ov-z-tax { background: transparent; }
.ov-needle { position: absolute; top: 32px; bottom: 30px; width: 4px; margin-left: -2px; background: #2b1a10; border-radius: 3px; box-shadow: 0 0 0 2px #fffaf0; transition: left 0.45s ease; }
.ov-needle[hidden], .ov-scale-limit[hidden] { display: none; }
.ov-needle-tag { position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 0.22rem 0.6rem; font-size: 0.8rem; font-weight: 800; color: #fffaf0; background: #2b1a10; border-radius: 8px; }
.ov-needle.is-end .ov-needle-tag { left: auto; right: -2px; transform: none; }
.ov-needle.is-start .ov-needle-tag { left: -2px; transform: none; }
.ov-scale { position: absolute; left: 0; right: 0; bottom: 0; height: 24px; }
.ov-scale-limit { position: absolute; top: 4px; transform: translateX(-50%); white-space: nowrap; font-size: 0.78rem; font-weight: 700; color: #2b1a10; transition: left 0.45s ease; }
.ov-scale-limit::before { content: ""; position: absolute; left: 50%; top: -8px; width: 2px; height: 8px; background: #2b1a10; transform: translateX(-50%); }
.ov-scale-limit.is-end { transform: translateX(-100%); }
.ov-scale-limit.is-end::before { left: auto; right: 0; transform: none; }
.ov-scale-limit.is-start { transform: none; }
.ov-scale-limit.is-start::before { left: 0; transform: none; }

.ov-legend { list-style: none; margin: 0.4rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; font-size: 0.8rem; font-weight: 600; color: #3b2a1e; }
.ov-legend li[hidden] { display: none; }
.ov-legend li { display: inline-flex; align-items: center; gap: 0.4rem; }
.ov-sw { width: 14px; height: 14px; border-radius: 4px; }
.ov-sw-ok { background: #7bb384; }
.ov-sw-buf { background: repeating-linear-gradient(135deg, #ecd6a0 0, #ecd6a0 3px, #d9bd7c 3px, #d9bd7c 6px); }
.ov-sw-tax { background: #fb923c; }

.ov-months { list-style: none; margin: 0.9rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0.25rem; }
.ov-months[hidden] { display: none; }
.ov-months li { padding: 0.35rem 0; text-align: center; font-size: 0.68rem; font-weight: 700; color: #5a4636; background: #efe3c8; border-radius: 6px; transition: background 0.3s ease, color 0.3s ease; }
.ov-months li.is-on { color: #2b1a10; background: #fb923c; }

.ov-result { margin-top: 1rem; }
.ov-empty { margin: 0; padding: 1rem 1.1rem; font-size: 0.92rem; color: #5a4636; border: 1.5px dashed #c9a56a; border-radius: 14px; }
.ov-res { padding: 1.05rem 1.15rem 1.15rem; color: #2b1a10; background: #f4ead6; border-radius: 16px; }
.ov-res-title { display: flex; align-items: center; gap: 0.55rem; margin: 0 0 0.35rem; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.3rem; font-weight: 700; line-height: 1.2; }
.ov-res-title::before { content: ""; flex: 0 0 12px; width: 12px; height: 12px; border-radius: 50%; background: #2f5239; }
.ov-res-ok .ov-res-title { color: #2f5239; }
.ov-res-buf .ov-res-title { color: #6b4a12; }
.ov-res-buf .ov-res-title::before { background: #c9a048; }
.ov-res-tax .ov-res-title { color: #9a3412; }
.ov-res-tax .ov-res-title::before { background: #ea6a1a; }
.ov-res-text { margin: 0 0 0.7rem; font-size: 0.93rem; line-height: 1.6; color: #3b2a1e; }
.ov-res-due { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.7rem; margin: 0 0 0.7rem; padding: 0.55rem 0.8rem; font-size: 0.86rem; color: #3b2a1e; background: #fffaf0; border: 1px dashed #c9a56a; border-radius: 12px; }
.ov-res-due strong { font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.02rem; color: #2b1a10; }
.ov-res-points { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.35rem; }
.ov-res-points li { font-size: 0.88rem; line-height: 1.55; color: #3b2a1e; }
.ov-res-points li::marker { color: #c2410c; }
.ov-send { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 46px; margin-top: 0.9rem; padding: 0.6rem 0.9rem; font: inherit; font-size: 0.92rem; font-weight: 800; color: #fffaf0; background: #2b1a10; border: 0; border-radius: 12px; box-shadow: 0 4px 0 #000000; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.ov-send:active { transform: translateY(2px); box-shadow: 0 2px 0 #000000; }
.ov-disclaimer { display: block; margin-top: 0.6rem; font-size: 0.76rem; line-height: 1.45; color: #5a4636; text-align: center; }

/* ---------- Body ---------- */
.ov-body .cs-sec h2::after { content: ""; display: block; width: 54px; height: 4px; margin-top: 0.55rem; background: linear-gradient(90deg, #2b1a10, #fb923c); border-radius: 4px; }
.ov-body .cs-jump a:hover { background: #fde6cf; color: #9a3412; }
.ov-sub-h { margin: 2rem 0 0.25rem; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.3rem; color: #2b1a10; }
.ov-note { display: flex; gap: 0.75rem; align-items: flex-start; margin: 1rem 0 0; padding: 0.95rem 1.1rem; background: #fbf5ea; border: 1px dashed #d4a86e; border-radius: 14px; }
.ov-note .cs-ico { flex-shrink: 0; width: 22px; height: 22px; margin-top: 0.1rem; color: #9a3412; }
.ov-note span { font-size: 0.9rem; line-height: 1.6; color: #3b2a1e; }
.ov-more { margin: 0.8rem 0 0; }
.ov-more a, .ov-route-link a { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 36px; font-size: 0.92rem; font-weight: 800; color: #9a3412; text-decoration: underline; text-underline-offset: 3px; }

/* Tickets: two forms, side by side, with a notched perforation */
.ov-tickets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.ov-ticket { position: relative; background: #fffaf0; border: 1.5px solid #e1cd9f; border-radius: 18px; }
.ov-ticket-top { position: relative; padding: 1.15rem 1.1rem 1.05rem; background: #f4ead6; border-radius: 16px 16px 0 0; border-bottom: 2px dashed #c9a56a; }
.ov-ticket-top::before, .ov-ticket-top::after { content: ""; position: absolute; bottom: -11px; width: 20px; height: 20px; background: #ffffff; border: 1.5px solid #e1cd9f; border-radius: 50%; z-index: 1; }
.ov-ticket-top::before { left: -11px; clip-path: inset(0 0 0 50%); }
.ov-ticket-top::after { right: -11px; clip-path: inset(0 50% 0 0); }
.ov-ticket-ico { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 0.6rem; color: #fb923c; background: #2b1a10; border-radius: 13px; }
.ov-ticket-ico .cs-ico { width: 23px; height: 23px; }
.ov-ticket-tag { display: block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #9a3412; }
.ov-ticket h3 { margin: 0.15rem 0 0.2rem; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.25rem; color: #2b1a10; }
.ov-ticket-lead { margin: 0; font-size: 0.92rem; font-weight: 700; color: #3b2a1e; }
.ov-ticket ul { margin: 0; padding: 1.15rem 1.1rem 1.15rem 2.2rem; display: grid; gap: 0.45rem; }
.ov-ticket li { font-size: 0.88rem; line-height: 1.55; color: #3b2a1e; }
.ov-ticket li::marker { color: #c2410c; }

/* Tables */
.ov-table-wrap { overflow-x: auto; border: 1px solid #e1cd9f; border-radius: 16px; background: #ffffff; }
.ov-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.ov-table thead th { padding: 0.8rem 1rem; text-align: left; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #fffaf0; background: #2b1a10; }
.ov-table tbody th, .ov-table tbody td { padding: 0.8rem 1rem; text-align: left; vertical-align: top; line-height: 1.55; color: #3b2a1e; border-top: 1px solid #efe3c8; }
.ov-table tbody th { width: 22%; font-weight: 700; color: #2b1a10; }
.ov-table tbody tr:nth-child(even) { background: #fdf9ef; }

/* What counts */
.ov-counts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.ov-count { padding: 1.15rem 1.1rem 1.15rem; border-radius: 18px; border: 1.5px solid; }
.ov-count-rrsp { background: #f4ead6; border-color: #e1cd9f; }
.ov-count-tfsa { background: #e4eedc; border-color: #b7cfa9; }
.ov-count-ico { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 0.6rem; border-radius: 13px; }
.ov-count-ico .cs-ico { width: 23px; height: 23px; }
.ov-count-rrsp .ov-count-ico { color: #fb923c; background: #2b1a10; }
.ov-count-tfsa .ov-count-ico { color: #fffaf0; background: #2f5239; }
.ov-count-tag { display: block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.ov-count-rrsp .ov-count-tag { color: #9a3412; }
.ov-count-tfsa .ov-count-tag { color: #2f5239; }
.ov-count h3 { margin: 0.15rem 0 0.55rem; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.2rem; color: #2b1a10; }
.ov-count ul { margin: 0; padding-left: 1.05rem; display: grid; gap: 0.4rem; }
.ov-count li { font-size: 0.88rem; line-height: 1.55; color: #3b2a1e; }
.ov-count-rrsp li::marker { color: #c2410c; }
.ov-count-tfsa li::marker { color: #2f5239; }

.ov-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; }
.ov-way { padding: 1rem 0.95rem 1.05rem; background: #fffaf0; border: 1px solid #eadfc4; border-radius: 16px; }
.ov-way-ico { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 0.55rem; color: #9a3412; background: #fde6cf; border-radius: 50%; }
.ov-way-ico .cs-ico { width: 21px; height: 21px; }
.ov-way h4 { margin: 0 0 0.25rem; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1rem; line-height: 1.3; color: #2b1a10; }
.ov-way p { margin: 0; font-size: 0.84rem; line-height: 1.55; color: #3b2a1e; }

/* Receipts: the arithmetic, on paper with a scalloped lower edge */
.ov-receipts { display: grid; gap: 1.6rem; }
.ov-receipt { position: relative; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); background: #fffdf7; border: 1px solid #e1cd9f; border-bottom: 0; border-radius: 10px 10px 0 0; box-shadow: 0 18px 28px -24px rgba(43, 26, 16, 0.6); }
.ov-receipt::after { content: ""; position: absolute; left: -1px; right: -1px; top: 100%; height: 10px; background: radial-gradient(circle at 9px 0, transparent 7px, #fffdf7 7.5px) repeat-x; background-size: 18px 10px; filter: drop-shadow(0 1px 0 #e1cd9f); }
.ov-receipt-head { padding: 1.15rem 1.15rem 1.2rem; border-right: 2px dashed #d9bd7c; }
.ov-receipt-kicker { display: inline-block; margin-bottom: 0.5rem; padding: 0.22rem 0.65rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #9a3412; background: #fde6cf; border-radius: 999px; }
.ov-receipt h3 { margin: 0 0 0.35rem; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.15rem; line-height: 1.25; color: #2b1a10; }
.ov-receipt-head p { margin: 0; font-size: 0.86rem; line-height: 1.6; color: #3b2a1e; }
.ov-receipt-body { padding: 1.15rem 1.15rem 1.2rem; display: grid; align-content: space-between; gap: 0.9rem; }
.ov-receipt-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.ov-receipt-lines li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.1rem 0.8rem; align-items: baseline; }
.ov-rl-label { font-size: 0.88rem; font-weight: 700; color: #2b1a10; }
.ov-rl-calc { grid-column: 1; font-size: 0.8rem; color: #5a4636; font-variant-numeric: tabular-nums; }
.ov-rl-amt { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.05rem; font-weight: 700; color: #2b1a10; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ov-receipt-total { display: flex; justify-content: space-between; align-items: baseline; gap: 0.8rem; margin: 0; padding-top: 0.8rem; border-top: 2px dashed #d9bd7c; }
.ov-receipt-total span { font-size: 0.84rem; font-weight: 700; color: #3b2a1e; }
.ov-receipt-total strong { font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.45rem; color: #9a3412; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* The fix: a true sequence, numbered */
.ov-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.95rem; counter-reset: ovstep; }
.ov-steps li { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0.9rem; align-items: start; }
.ov-steps li:not(:last-child)::before { content: ""; position: absolute; left: 21px; top: 46px; bottom: -0.95rem; width: 2px; background: repeating-linear-gradient(180deg, #d4a86e 0, #d4a86e 6px, transparent 6px, transparent 12px); }
.ov-step-num { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.15rem; font-weight: 700; color: #ffffff; background: #c2410c; border-radius: 50%; box-shadow: 0 0 0 4px #fde6cf; }
.ov-step-card { display: flex; gap: 0.85rem; align-items: flex-start; padding: 0.95rem 1.05rem; background: #fffaf0; border: 1px solid #eadfc4; border-radius: 16px; }
.ov-step-ico { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; color: #fb923c; background: #2b1a10; border-radius: 12px; }
.ov-step-ico .cs-ico { width: 21px; height: 21px; }
.ov-step-card h3 { margin: 0 0 0.2rem; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.05rem; color: #2b1a10; }
.ov-step-card p { margin: 0; font-size: 0.88rem; line-height: 1.6; color: #3b2a1e; }

/* A notice: three routes, alternatives, no numbers */
.ov-routes { display: grid; gap: 0.9rem; }
.ov-route { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.15rem 1.15rem; border: 1.5px solid; border-radius: 18px; }
.ov-route:nth-child(1) { background: #f4ead6; border-color: #e1cd9f; }
.ov-route:nth-child(2) { background: #e4eedc; border-color: #b7cfa9; }
.ov-route:nth-child(3) { background: #fdebd5; border-color: #f0b98a; }
.ov-route-ico { display: grid; place-items: center; flex: 0 0 52px; width: 52px; height: 52px; color: #fb923c; background: #2b1a10; border-radius: 16px; }
.ov-route-ico .cs-ico { width: 27px; height: 27px; }
.ov-route-main { min-width: 0; }
.ov-route-tag { display: inline-block; margin-bottom: 0.35rem; padding: 0.2rem 0.65rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #2b1a10; background: rgba(255, 250, 240, 0.85); border: 1px solid rgba(43, 26, 16, 0.25); border-radius: 999px; }
.ov-route h3 { margin: 0 0 0.3rem; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.15rem; color: #2b1a10; }
.ov-route p { margin: 0 0 0.55rem; font-size: 0.9rem; line-height: 1.6; color: #3b2a1e; }
.ov-route ul { margin: 0; padding-left: 1.05rem; display: grid; gap: 0.3rem; }
.ov-route li { font-size: 0.86rem; line-height: 1.5; color: #3b2a1e; }
.ov-route li::marker { color: #9a3412; }
.ov-route-link { margin: 0.5rem 0 0 !important; }
.ov-clock { list-style: none; margin: 0.9rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem; }
.ov-clock li { padding: 0.95rem 1rem; background: #2b1a10; border-radius: 16px; }
.ov-clock strong { display: block; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.9rem; line-height: 1.1; color: #fb923c; }
.ov-clock span { display: block; margin-top: 0.25rem; font-size: 0.84rem; line-height: 1.45; color: #f6ead2; }

/* Late return */
.ov-pen { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
.ov-pen li { display: flex; gap: 0.8rem; align-items: flex-start; padding: 0.95rem 1rem; background: #fdebd5; border: 1px solid #f0b98a; border-radius: 16px; }
.ov-pen li:last-child { background: #e4eedc; border-color: #b7cfa9; }
.ov-pen-ico { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; color: #9a3412; background: #fffaf0; border-radius: 11px; }
.ov-pen li:last-child .ov-pen-ico { color: #2f5239; }
.ov-pen-ico .cs-ico { width: 20px; height: 20px; }
.ov-pen h3 { margin: 0 0 0.15rem; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1rem; color: #2b1a10; }
.ov-pen p { margin: 0; font-size: 0.86rem; line-height: 1.55; color: #3b2a1e; }

/* Mistakes: a dot before the title, no bar */
.ov-mistakes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; }
.ov-mistake { padding: 1rem 1.05rem; background: #fffaf0; border: 1px solid #eadfc4; border-radius: 16px; }
.ov-mistake h3 { display: flex; align-items: flex-start; gap: 0.55rem; margin: 0 0 0.25rem; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1rem; line-height: 1.3; color: #2b1a10; }
.ov-mistake h3::before { content: ""; flex: 0 0 11px; width: 11px; height: 11px; margin-top: 0.3rem; background: #ea6a1a; border-radius: 50%; }
.ov-mistake p { margin: 0; padding-left: 1.55rem; font-size: 0.86rem; line-height: 1.55; color: #3b2a1e; }

/* Included, decides, sources */
.ov-incl .cs-tile, .ov-decides .cs-tile { color: #2b1a10; background: linear-gradient(140deg, #fffaf0, #fde6cf); border-color: #f0b98a; transition: transform 0.3s cubic-bezier(0.3, 1.5, 0.5, 1), background 0.25s, color 0.25s; }
.ov-incl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem 1.25rem; }
.ov-incl li { display: flex; gap: 0.8rem; align-items: flex-start; }
.ov-incl h3 { margin: 0 0 0.15rem; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1rem; color: #2b1a10; }
.ov-incl p { margin: 0; font-size: 0.87rem; line-height: 1.55; color: #3b2a1e; }
.ov-decides { display: flex; gap: 0.9rem; align-items: flex-start; margin-top: 1.2rem; padding: 1.05rem 1.2rem; background: #2b1a10; border-radius: 16px; }
.ov-decides .cs-tile { flex-shrink: 0; }
.ov-decides strong { display: block; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.05rem; color: #fb923c; margin-bottom: 0.2rem; }
.ov-decides p { margin: 0; font-size: 0.9rem; line-height: 1.6; color: #f6ead2; }
.ov-sources { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.ov-source { display: flex; align-items: center; gap: 0.8rem; min-height: 62px; padding: 0.75rem 0.9rem; color: inherit; text-decoration: none; background: #ffffff; border: 1px solid #e1cd9f; border-radius: 14px; box-shadow: 0 2px 0 #f4ead6; transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease; }
.ov-source:focus-visible { outline: 3px solid #c2410c; outline-offset: 2px; }
.ov-source-ico { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; color: #fb923c; background: #2b1a10; border-radius: 11px; }
.ov-source-ico .cs-ico { width: 20px; height: 20px; }
.ov-source-text { flex: 1 1 auto; min-width: 0; }
.ov-source-text strong { display: block; font-size: 0.92rem; line-height: 1.3; color: #2b1a10; }
.ov-source-text em { display: block; font-style: normal; font-size: 0.78rem; font-weight: 600; color: #5a4636; }
.ov-source-go { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; color: #2b1a10; background: #fb923c; border-radius: 50%; transition: transform 0.2s ease; }
.ov-source-go .cs-ico { width: 16px; height: 16px; }

/* ---------- Hover (mouse only) ---------- */
@media (hover: hover) and (pointer: fine) {
    .ov-btn-tang:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #9a3412, 0 16px 26px -14px rgba(251, 146, 60, 0.8); }
    .ov-btn-ghost:hover { background: #2b1a10; color: #fffaf0; }
    .ov-tab[aria-selected="false"]:hover { background: #efe3c8; }
    .ov-send:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #000000, 0 14px 22px -12px rgba(43, 26, 16, 0.6); }
    .ov-way:hover { border-color: #fb923c; }
    .ov-incl li:hover .cs-tile { transform: rotate(-8deg) scale(1.1); color: #fb923c; background: #2b1a10; border-color: transparent; }
    .ov-source:hover { border-color: #c2410c; background: #fffaf0; transform: translateY(-3px); box-shadow: 0 2px 0 #f4ead6, 0 16px 26px -16px rgba(43, 26, 16, 0.5); }
    .ov-source:hover .ov-source-go { transform: translate(2px, -2px); }
}
@media (prefers-reduced-motion: reduce) {
    .ov-btn, .ov-tab, .ov-send, .ov-z, .ov-needle, .ov-scale-limit, .ov-months li, .ov-incl .cs-tile, .ov-source, .ov-source-go { transition: none !important; }
    .ov-btn:hover, .ov-send:hover, .ov-incl li:hover .cs-tile, .ov-source:hover, .ov-source:hover .ov-source-go { transform: none !important; }
}

/* ============ Responsive ============ */
@media (max-width: 1200px) {
    .ov-ways { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
    .ov-console-body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
    .ov-tickets, .ov-counts, .ov-pen, .ov-mistakes, .ov-incl, .ov-sources, .ov-clock { grid-template-columns: minmax(0, 1fr); }
    .ov-receipt { grid-template-columns: minmax(0, 1fr); }
    .ov-receipt-head { border-right: 0; border-bottom: 2px dashed #d9bd7c; }
    .ov-table-wrap { border: 0; background: transparent; overflow: visible; }
    .ov-table, .ov-table thead, .ov-table tbody, .ov-table tr, .ov-table th, .ov-table td { display: block; }
    .ov-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .ov-table tbody tr { margin-bottom: 0.75rem; background: #ffffff; border: 1px solid #e1cd9f; border-radius: 14px; overflow: hidden; }
    .ov-table tbody tr:nth-child(even) { background: #ffffff; }
    .ov-table tbody th, .ov-table tbody td { width: auto; border-top: 0; padding: 0.55rem 0.95rem; }
    .ov-table tbody th { background: #f4ead6; padding-top: 0.75rem; }
    .ov-table tbody td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 0.1rem; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: #5a4636; }
}
@media (max-width: 640px) {
    .ov-actions .ov-btn { width: 100%; }
    .ov-ways { grid-template-columns: minmax(0, 1fr); }
    .ov-route { flex-direction: column; gap: 0.7rem; }
    .ov-tabs { width: 100%; }
    .ov-tab { flex: 1 1 0; min-width: 0; }
    .ov-months { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .ov-send { width: 100%; }
    .ov-steps li { grid-template-columns: 38px minmax(0, 1fr); gap: 0.7rem; }
    .ov-step-num { width: 38px; height: 38px; font-size: 1rem; }
    .ov-steps li:not(:last-child)::before { left: 18px; top: 40px; }
    .ov-step-card { flex-direction: column; gap: 0.6rem; }
}
@media (max-width: 400px) {
    .ov-row2 { grid-template-columns: minmax(0, 1fr); }
}
