/* Site-wide fixes, loaded last on every page */

/* Progress tracks visible on any background */
.stage-bar, .cb-bar, .cb-bar.t-visa, .cb-bar.t-acc, .cb-bar.t-ess { background: rgba(14,133,159,.14); }
.progress-bar { background: rgba(14,133,159,.14); }

/* Help cards: four in a row instead of three plus an orphan */
.help-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

/* After You Arrive: checklist rows with an aligned link column */
.stay li { grid-template-columns: minmax(0, 1fr) 112px; }
.stay li .olink { justify-self: stretch; justify-content: center; }

/* Sections nav and hero tabs never wrap into a second row */
@media (max-width: 1100px) {
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; }
  .sitenav { width: max-content; max-width: 100%; }
  .next-grid { grid-template-columns: 1fr; }
}

/* Mobile */
@media (max-width: 900px) {
  .side .side-sticky { display: none; }
}
@media (max-width: 640px) {
  .snav .i { display: none; }
  .snav { padding: 0 12px; }
  .tl-item { flex-wrap: wrap; }
  .tl-item .tl-body { flex: 1 1 calc(100% - 64px); min-width: 0; }
  .tl-item .tl-price { flex: 1 1 100%; text-align: left; padding-left: 56px; display: flex; align-items: baseline; gap: 8px; }
  .stay li { grid-template-columns: 1fr; }
  .stay li .olink { justify-self: start; }
  .from-bar { gap: 8px; }
  .from-hint { width: 100%; }
}

/* Notifications */
.icon-btn { cursor: pointer; }
.icon-btn .dot[hidden] { display: none; }
.jf-notif { position: absolute; z-index: 60; width: 340px; max-width: calc(100vw - 32px); background: var(--card); border-radius: 24px; box-shadow: 0 20px 50px rgba(15,40,60,.22); padding: 20px; color: var(--body); }
.jf-notif[hidden] { display: none; }
.jn-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.jn-title { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--heading); }
.jn-close { width: 32px; height: 32px; border-radius: 12px; border: 0; background: var(--page); color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1; }
.jn-list { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }
.jn-list a { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; background: var(--page); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .jn-list a:hover { background: var(--tint-teal); } }
.jn-ic { width: 32px; height: 32px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--badge-teal-bg); color: var(--brand); font-size: 13px; }
.jn-ic.warn { background: var(--badge-orange-bg); color: var(--accent-ink); }
.jn-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.jn-t { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--heading); line-height: 1.35; }
.jn-s { font-size: 13px; color: var(--muted); line-height: 1.4; }
.jn-empty { padding: 16px; border-radius: 12px; background: var(--page); font-size: 14px; color: var(--muted); }
.jn-foot { margin-top: 12px; font-size: 12px; color: var(--muted); }
@media (max-width: 640px) {
  .sitenav { gap: 2px; }
  .snav { font-size: 14px; padding: 0 8px; }
}
/* Phones: icons for the other sections, label for the current one */
@media (max-width: 640px) {
  .snav .i { display: inline-block; font-size: 16px; }
  .snav { padding: 0 12px; min-width: 40px; justify-content: center; }
  .snav:not(.on) .l-full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .snav .snav-badge { min-width: 34px; height: 20px; font-size: 11px; }
}
@media (max-width: 640px) {
  .snav:not(.on) { padding: 0 8px; min-width: 34px; }
  .snav.on { padding: 0 12px; }
  .sitenav { padding: 4px; }
}
/* "Synced with your Checklist" note on guide checklists */
.sync-chip { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--brand-deep); text-decoration: none; }
.sync-chip .i { font-size: 12px; }
@media (hover: hover) and (pointer: fine) { .sync-chip:hover { text-decoration: underline; } }
/* One colour per section, used everywhere a section is shown */
/* Sections are told apart by icon and name, not colour: colour only means something (green free, orange warning, teal brand) */
:root { --sec-visa: var(--brand); --sec-visa-bg: var(--badge-teal-bg); --sec-acc: var(--brand); --sec-acc-bg: var(--badge-teal-bg); --sec-ess: var(--brand); --sec-ess-bg: var(--badge-teal-bg); --sec-docs: var(--brand); --sec-docs-bg: var(--badge-teal-bg); }
.sec-visa .pc-ic { background: var(--sec-visa-bg); color: var(--sec-visa); }
.sec-ess .pc-ic { background: var(--sec-ess-bg) !important; color: var(--sec-ess) !important; }
.sec-docs .pc-ic { background: var(--sec-docs-bg); color: var(--sec-docs); }
.sec-visa .pc-bar span { background: var(--sec-visa); } .sec-ess .pc-bar span { background: var(--sec-ess); } .sec-docs .pc-bar span { background: var(--sec-docs); }
#progWrap[hidden] { display: none; }
/* Checklist "Explore the Guides" and hub cards follow the section colours */
#more .more-card[href*="visa/"] .more-ic { background: var(--sec-visa-bg); color: var(--sec-visa); }
#more .more-card[href*="accommodation/"] .more-ic { background: var(--sec-acc-bg); color: var(--sec-acc); }
#more .more-card[href="essentials.html"] .more-ic { background: var(--sec-ess-bg); color: var(--sec-ess); }
#more .more-card[href="documents.html"] .more-ic { background: var(--sec-docs-bg); color: var(--sec-docs); }
/* Quick start box on guides */
.quickstart { margin-top: 24px; padding: 20px 20px; border-radius: 16px; background: var(--tint-teal); border: 1px solid var(--border-teal); }
.qs-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.qs-title { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--heading); }
.qs-all { border: 0; background: none; font: 600 14px var(--font-display); color: var(--brand-deep); cursor: pointer; padding: 4px 0; }
@media (hover: hover) and (pointer: fine) { .qs-all:hover { text-decoration: underline; } }
.qs-list { list-style: none; display: grid; gap: 6px; margin: 0; padding: 0; }
.qs-list a { display: flex; align-items: center; gap: 12px; padding: 12px 12px; border-radius: 12px; background: var(--card); text-decoration: none; transition: box-shadow .15s var(--ease); }
@media (hover: hover) and (pointer: fine) { .qs-list a:hover { box-shadow: var(--shadow-card); } }
.qs-n { width: 26px; height: 26px; flex: none; border-radius: 8px; display: grid; place-items: center; background: var(--brand); color: #fff; font: 600 13px var(--font-display); }
.qs-t { flex: 1; font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--heading); }
.qs-arrow { font-size: 11px; color: var(--icon-muted); }
/* Folding sections */
.sect-head { position: relative; }
.sect-toggle { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); font: 600 14px var(--font-display); color: var(--brand-deep); cursor: pointer; }
.sect-toggle .i { font-size: 12px; transition: transform .2s var(--ease); }
.sect-toggle[aria-expanded="true"] .i { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) { .sect-toggle:hover { border-color: var(--brand); } }
section.folded .sect-body { display: none; }
/* Browsers with hidden="until-found": folded text stays in the page so Find can reach it */
.jf-uf section.folded .sect-body[hidden] { display: block !important; content-visibility: hidden; }
section.folded .sect-head { margin-bottom: 0 !important; }
/* Phones: a guide's checklist comes before its content */
@media (max-width: 900px) { .layout:has(.quickstart) .side { order: -1; } }
/* Glossary terms */
abbr.gl { text-decoration: underline dotted var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1.5px; cursor: help; border: 0; }
abbr.gl:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 3px; }
.gl-tip { position: absolute; z-index: 90; display: flex; flex-direction: column; gap: 6px; padding: 16px 16px; border-radius: 12px; background: var(--heading); color: #fff; box-shadow: 0 16px 40px rgba(10,30,40,.3); font-size: 14px; line-height: 1.5; }
.gl-tip[hidden] { display: none; }
/* Dark mode (23 Nov 2026): the box above takes the heading colour, which is near-white in dark mode, so its white
   text could not be read. It gets its own dark surface with a thin edge, here and on every page with a glossary. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .gl-tip { background: #1d313a; color: #eef4f6; border: 1px solid rgba(255,255,255,.16); } }
:root[data-theme="dark"] .gl-tip { background: #1d313a; color: #eef4f6; border: 1px solid rgba(255,255,255,.16); }
.gl-tip strong { font-family: var(--font-display); font-size: 15px; }
.gl-tip a { color: #8fe3f2; font-weight: 600; font-size: 13px; }
/* Setup prompt on other pages */
.setup-hint { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 16px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow-card); border: 1px solid var(--border-teal); position: relative; z-index: 3; font-size: 14px; color: var(--body); }
.setup-hint > .i { color: var(--brand); font-size: 16px; flex: none; }
.setup-hint > span { flex: 1 1 260px; }
.setup-hint strong { color: var(--heading); }
.sh-x { width: 32px; height: 32px; border-radius: 12px; border: 0; background: var(--page); color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.setup-hint { margin-bottom: 24px; box-shadow: none; background: var(--tint-teal); }
@media (max-width: 640px) {
  .route { flex-wrap: wrap; }
  .route-info { flex: 1 1 calc(100% - 60px); }
  .route .route-price { margin-left: 48px; }
  .setup-hint { padding: 12px; }
  .setup-hint > span { flex-basis: 100%; }
}
.setup-hint .btn { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px; background: var(--brand); color: #fff; font: 600 14px var(--font-display); text-decoration: none; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .setup-hint .btn:hover { background: var(--brand-ink, #0e859f); } }
/* Hero section tabs stay on one row at every width; long guides scroll sideways instead of wrapping */
.tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; }
@media (min-width: 1101px) and (max-width: 1400px) { .tabs .tab { padding-left: 16px; padding-right: 16px; } }
/* Work hours tracker */
.wt { display: grid; gap: 20px; }
.wt-loading { color: var(--muted); font-size: 14px; }
.wt-h { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--heading); margin-bottom: 12px; }
.wt-h .i { color: var(--brand); font-size: 16px; }
.wt-setup, .wt-form, .wt-list { background: var(--card); border: 1px solid var(--border); border-radius: 24px; padding: 20px; }
.wt-field { display: grid; gap: 8px; padding: 12px 0; border-top: 1px solid var(--border); }
.wt-field:first-of-type { border-top: 0; padding-top: 0; }
.wt-lab { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--heading); }
.wt-hint { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0; }
.wt-seg { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wt-opt input { position: absolute; opacity: 0; pointer-events: none; }
.wt-opt span { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); font: 600 14px var(--font-display); color: var(--body); cursor: pointer; }
.wt-opt input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.wt-opt input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.wt input[type=date], .wt input[type=time], .wt input[type=text], .wt input[type=number], .wt select { width: 100%; min-width: 0; height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--card); font: 500 15px var(--font-body, Inter, sans-serif); color: var(--heading); box-sizing: border-box; }
.wt-custom { width: 110px !important; }
.wt input:focus, .wt select:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.wt-vlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.wt-vrow { display: grid; grid-template-columns: 1fr 1fr 1.4fr auto; gap: 12px; align-items: end; }
.wt-vrow label, .wt-grid label { display: grid; gap: 4px; min-width: 0; }
.wt-vrow label span, .wt-grid label span { font-size: 13px; font-weight: 600; color: var(--muted); }
.wt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); font: 600 14px var(--font-display); color: var(--brand-deep); cursor: pointer; justify-self: start; }
.wt-btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
@media (hover: hover) and (pointer: fine) { .wt-btn.primary:hover { filter: brightness(.95); } }
.wt-btn[disabled] { opacity: .45; cursor: not-allowed; }
.wt-btn .i { font-size: 14px; }
.wt-ibtn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border); background: var(--card); color: var(--muted); cursor: pointer; display: grid; place-items: center; flex: none; }
@media (hover: hover) and (pointer: fine) { .wt-ibtn:hover { color: #c0392b; border-color: #e3b4ad; } }
.wt-link { border: 0; background: none; padding: 4px 0; font: 600 14px var(--font-display); color: var(--brand-deep); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.wt-row-end { display: flex; justify-content: flex-end; padding-top: 12px; border-top: 1px solid var(--border); }
.wt-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; }
.wt-week { border-radius: 24px; padding: 20px; background: var(--tint-teal); border: 1px solid var(--border-teal); }
.wt-week.s-close { background: #fff6e8; border-color: #f4d29b; }
.wt-week.s-at, .wt-week.s-over { background: #fdeceb; border-color: #f1b8b2; }
.wt-week.s-free { background: var(--page); border-color: var(--border); }
.wt-wtop { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.wt-wt { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--heading); display: flex; flex-direction: column; }
.wt-wt small { font: 500 13px var(--font-body, Inter, sans-serif); color: var(--muted); }
.wt-kind { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); background: rgba(255,255,255,.7); padding: 4px 12px; border-radius: 999px; }
.wt-kind .i { font-size: 12px; }
.wt-big { font-family: var(--font-display); font-weight: 600; font-size: 40px; color: var(--heading); margin: 12px 0 12px; line-height: 1; }
.wt-big small { font-size: 15px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.wt-bar { position: relative; display: flex; height: 12px; border-radius: 999px; background: rgba(14,133,159,.14); overflow: hidden; }
.wt-w { background: var(--brand); }
.wt-p { background: repeating-linear-gradient(45deg, var(--brand) 0 5px, rgba(0,151,178,.45) 5px 10px); }
.s-close .wt-w { background: #e08a00; } .s-close .wt-p { background: repeating-linear-gradient(45deg, #e08a00 0 5px, rgba(224,138,0,.45) 5px 10px); }
.s-at .wt-w, .s-over .wt-w { background: #d64532; } .s-at .wt-p, .s-over .wt-p { background: repeating-linear-gradient(45deg, #d64532 0 5px, rgba(214,69,50,.45) 5px 10px); }
.wt-lim { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--heading); }
.wt-legend { display: flex; gap: 16px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.wt-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; background: var(--brand); }
.wt-legend i.lp { background: repeating-linear-gradient(45deg, var(--brand) 0 3px, rgba(0,151,178,.45) 3px 6px); }
.wt-msg { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: var(--body-strong, var(--body)); }
.wt-msg .i { flex: none; margin-top: 4px; color: var(--brand); }
.s-close .wt-msg .i { color: #b86e00; } .s-at .wt-msg .i, .s-over .wt-msg .i { color: #c0392b; }
.wt-bar2 { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.wt-bar2 > span { display: inline-flex; align-items: center; gap: 8px; }
.wt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.wt-fend { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 16px 0 8px; }
.wt-prev { font-family: var(--font-display); font-weight: 600; color: var(--heading); font-size: 15px; }
.wt-warn, .wt-ok { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 12px 0 0; padding: 12px 16px; border-radius: 12px; font-size: 14px; line-height: 1.45; }
.wt-warn { background: #fdeceb; color: #8a2a1e; } .wt-ok { background: var(--tint-teal); color: var(--heading); }
.wt-warn > span, .wt-ok > span { flex: 1 1 220px; }
.wt-warn .i { color: #c0392b; } .wt-ok .i { color: var(--brand); }
.wt-empty { display: flex; gap: 12px; align-items: center; padding: 16px; border-radius: 12px; background: var(--page); color: var(--muted); font-size: 14px; }
.wt-weeks { display: grid; gap: 8px; margin-bottom: 12px; }
.wt-wk { border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
.wt-wk summary { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; list-style: none; }
.wt-wk summary::-webkit-details-marker { display: none; }
.wt-wk summary > .i { color: var(--icon-muted); font-size: 12px; transition: transform .2s; }
.wt-wk[open] summary > .i { transform: rotate(180deg); }
.wt-wr { flex: 1; min-width: 0; font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--heading); }
.wt-wr em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--brand-deep); margin-left: 8px; }
.wt-wn { font-family: var(--font-display); font-weight: 600; color: var(--heading); }
.wt-wn small { font-weight: 500; color: var(--muted); }
.wt-chip { font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.c-ok { background: var(--badge-teal-bg); color: var(--brand-deep); } .c-close { background: #fdebc8; color: #8a5300; } .c-at, .c-over { background: #fbd9d4; color: #8a2a1e; } .c-free { background: var(--page); color: var(--muted); }
.wt-shifts { list-style: none; margin: 0; padding: 0 16px 12px; display: grid; gap: 6px; }
.wt-shifts li { display: grid; grid-template-columns: 110px 1fr auto auto; grid-template-areas: "d t h x" "d e h x"; column-gap: 12px; align-items: center; padding: 12px 12px; border-radius: 12px; background: var(--page); font-size: 14px; }
.wt-sd { grid-area: d; font-weight: 600; color: var(--heading); } .wt-st { grid-area: t; color: var(--body); } .wt-se { grid-area: e; color: var(--muted); font-size: 13px; } .wt-se b { color: var(--brand-deep); }
.wt-sh { grid-area: h; font-family: var(--font-display); font-weight: 600; color: var(--heading); } .wt-shifts .wt-ibtn { grid-area: x; width: 34px; height: 34px; border-radius: 12px; }
.wt-acts { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wt-dlst { font-size: 13px; color: var(--muted); }
.wt-note { display: flex; gap: 12px; align-items: flex-start; margin: 20px 0 0; font-size: 13px; line-height: 1.55; color: var(--muted); }
.wt-note .i { flex: none; margin-top: 4px; color: var(--brand); }
@media (max-width: 640px) {
  .wt-grid { grid-template-columns: 1fr 1fr; }
  .wt-vrow { grid-template-columns: 1fr 1fr auto; } .wt-vname { grid-column: 1 / 3; grid-row: 2; }
  .wt-setup, .wt-form, .wt-list { padding: 16px; }
  .wt-shifts li { grid-template-columns: 1fr auto auto; grid-template-areas: "d h x" "t h x" "e h x"; }
  .wt-wk summary { flex-wrap: wrap; row-gap: 6px; } .wt-wr { flex-basis: calc(100% - 30px); }
  .wt-big { font-size: 32px; }
}
/* Budget planner and year view (shares .wt-* form styles with the hours tracker) */
.bp { display: grid; gap: 20px; }
.bp input[type=number], .bp input[type=text], .bp select { width: 100%; min-width: 0; height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--card); font: 500 15px var(--font-body, Inter, sans-serif); color: var(--heading); box-sizing: border-box; }
.bp input:focus, .bp select:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.bp input:disabled { background: var(--page); color: var(--muted); }
.bp-top { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: flex-end; }
.bp-top .wt-field { border: 0; padding: 0; }
.bp-src { flex-basis: 100%; }
.bp-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.bp-card { background: var(--card); border: 1px solid var(--border); border-radius: 24px; padding: 20px; display: grid; gap: 12px; }
.bp-row { display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 12px; align-items: center; padding: 6px 0; border-top: 1px solid var(--border); }
.bp-card .wt-h + .bp-row { border-top: 0; }
.bp-l { display: flex; flex-direction: column; min-width: 0; }
.bp-l span { font-weight: 600; font-size: 15px; color: var(--heading); }
.bp-l small { font-size: 13px; color: var(--muted); line-height: 1.4; }
.bp-in { position: relative; display: block; min-width: 0; }
.bp-in i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); font-size: 14px; pointer-events: none; }
.bp-in input { padding-left: 28px !important; text-align: right; }
.bp-rent { display: grid; gap: 8px; padding: 4px 0 12px 12px; border-left: 3px solid var(--border-teal); margin-left: 2px; }
.bp-weeks { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.bp-weeks input { width: 90px !important; }
.bp-weeks i { font-style: normal; }
.bp-job { display: grid; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.bp-tog { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; color: var(--heading); cursor: pointer; }
.bp-tog input { width: 18px; height: 18px; accent-color: var(--brand); }
.bp-jobf { display: grid; gap: 12px; }
.bp-jobf[hidden] { display: none; }
.bp-jgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bp-jgrid label { display: grid; gap: 4px; min-width: 0; }
.bp-jgrid label span { font-size: 13px; font-weight: 600; color: var(--muted); }
.bp-res { border-radius: 24px; padding: 20px; background: var(--tint-teal); border: 1px solid var(--border-teal); display: grid; gap: 12px; }
.bp-res.bad { background: #fdeceb; border-color: #f1b8b2; }
.bp-res .wt-msg { margin: 0; }
.bp-res.bad .wt-msg .i { color: #c0392b; }
.bp-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bp-nums > div { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; background: rgba(255,255,255,.75); border-radius: 12px; min-width: 0; }
.bp-nums span { font-size: 13px; font-weight: 600; color: var(--muted); }
.bp-nums b { font-family: var(--font-display); font-size: 24px; color: var(--heading); overflow-wrap: anywhere; }
.bp-nums.sm b { font-size: 18px; }
.bp-cur .bp-nums > div { background: var(--page); }
.bp-left b { color: var(--brand-deep); } .bp-res.bad .bp-left b { color: #c0392b; }
.bp-safe { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--body-strong, var(--body)); }
.bp-safe .i { flex: none; color: var(--brand); margin-top: 4px; }
.bp-safe b { color: var(--heading); }
.by-eds { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 20px; align-items: start; }
.by-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.by-list li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.by-list li.by-ev { grid-template-columns: minmax(0, 1.3fr) 80px minmax(0, 1fr) auto; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.by-list li.by-ev input[data-f="label"] { grid-column: 1 / -1; }
.by-acts, .by-presets { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.wt-btn.sm { height: 36px; padding: 0 12px; font-size: 13px; }
.by-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.by-m { border: 1px solid var(--border); background: var(--card); border-radius: 16px; padding: 16px; display: grid; gap: 6px; align-content: start; }
.by-m.big { border-color: #f4d29b; background: #fffaf0; }
.by-m.short { border-color: #f1b8b2; background: #fdf1ef; }
.by-mh { display: flex; align-items: baseline; justify-content: space-between; }
.by-mh b { font-family: var(--font-display); font-size: 16px; color: var(--heading); }
.by-mh span { font-size: 12px; color: var(--muted); }
.by-row { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }
.by-row b { color: var(--heading); font-weight: 600; }
.by-bal { padding-top: 4px; border-top: 1px solid var(--border); font-size: 14px; }
.by-bal b { font-family: var(--font-display); font-size: 15px; }
.short .by-bal b { color: #c0392b; }
.by-bar { height: 6px; border-radius: 999px; background: rgba(14,133,159,.12); overflow: hidden; }
.by-bar span { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.by-bar span.neg { background: #d64532; }
.by-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.by-tag { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--page); color: var(--body); }
.t-rent { background: var(--badge-teal-bg); color: var(--brand-deep); } .t-out { background: #fdebc8; color: #8a5300; } .t-in { background: var(--badge-green-bg); color: #1f6b47; } .t-gap { background: #fbd9d4; color: #8a2a1e; }
#byGrid .wt-warn, #byGrid .wt-ok, #byGrid .wt-msg { margin-top: 0; }
@media (max-width: 900px) { .by-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .bp-cols { grid-template-columns: 1fr; } .bp-nums { grid-template-columns: 1fr 1fr; } .bp-nums .bp-left { grid-column: 1 / -1; } .by-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .bp-row { grid-template-columns: minmax(0, 1fr) 112px; }
  .bp-card, .bp-res { padding: 16px; }
  .by-list li.by-ev { grid-template-columns: 1fr 80px auto; } .by-list li.by-ev select[data-f="m"] { grid-column: 1 / -1; }
  /* Rent instalments on phones: the month gets its own line so "September 2027" fits */
  .by-list li:not(.by-ev) { grid-template-columns: minmax(0, 1fr) auto; }
  .by-list li:not(.by-ev) select[data-f="m"] { grid-column: 1 / -1; }
}
.sync-chip.acc-all { display: flex; margin-top: 4px; }
/* Accommodation: "Which home is yours?" switch, section labels and comparison table */
.hs-wrap { margin: 0 0 28px; }
.hs { background: var(--card); border: 1px solid var(--border-teal); border-radius: 24px; padding: 20px 20px; display: grid; gap: 12px; }
.hs-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.hs-q { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--heading); }
.hs-hint { font-size: 13px; color: var(--muted); }
.hs-msg { margin: 0; padding: 12px 12px; border-radius: 12px; background: var(--tint-teal); font-size: 14px; color: var(--heading); }
.hs-note { margin: 0; padding: 12px 16px; border-radius: 12px; background: #fff6e8; border: 1px solid #f4d29b; font-size: 14px; line-height: 1.5; color: var(--body-strong, var(--body)); }
.hs-link { justify-self: start; font: 600 14px var(--font-display); color: var(--brand-deep); text-decoration: underline; text-underline-offset: 3px; }
.cmp-h { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--heading); margin: 32px 0 6px; }
.cmp-table th:first-child, .cmp-table td:first-child { font-weight: 600; color: var(--heading); min-width: 120px; }
.cmp-table th, .cmp-table td { min-width: 140px; vertical-align: top; font-size: 14px; line-height: 1.45; }
.cmp-table .col-on { background: var(--tint-teal); }
.cmp-table th.col-on { color: var(--brand-deep); box-shadow: inset 0 -3px 0 var(--brand); }
/* Your Home details */
.hd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.hd-f { display: grid; gap: 4px; min-width: 0; }
.hd-f > span:first-child { font-size: 13px; font-weight: 600; color: var(--muted); }
.hd-tog { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--heading); cursor: pointer; }
.hd-tog input { width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.hd-sub { grid-column: 1 / -1; }
.hd-sub[hidden] { display: none; }
.hd-rent { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 8px; }
.hd-acts { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; padding-top: 6px; }
.hd-acts a.wt-btn { text-decoration: none; }
.hd-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.hd-name { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--heading); }
.hd-rows { display: grid; gap: 0; }
.hd-r { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-top: 1px solid var(--border); font-size: 14px; }
.hd-r span { color: var(--muted); } .hd-r b { font-weight: 600; color: var(--heading); overflow-wrap: anywhere; }
.hd-rem { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hd-rem li { display: flex; gap: 12px; padding: 12px 12px; border-radius: 12px; background: var(--tint-teal); font-size: 14px; line-height: 1.45; }
.hd-rem li.warn { background: #fdeceb; } .hd-rem li .i { flex: none; margin-top: 4px; color: var(--brand); } .hd-rem li.warn .i { color: #c0392b; }
.hd-rem b { display: block; color: var(--heading); }
#jfHomeCard input, #jfHomeCard select { width: 100%; min-width: 0; height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--card); font: 500 15px var(--font-body, Inter, sans-serif); color: var(--heading); box-sizing: border-box; }
#jfHomeCard input[type=checkbox] { width: 18px; height: 18px; }
#jfHomeCard .bp-in input { padding-left: 28px; }
@media (max-width: 640px) { .hd-grid { grid-template-columns: 1fr; } .hd-r { grid-template-columns: 1fr; gap: 2px; } .hs { padding: 16px; } .hs .wt-seg .wt-opt span { height: 36px; padding: 0 12px; font-size: 13px; } }
/* Accommodation filter */
.f-hide { display: none !important; }
.section.f-stub > :not(.sect-head) { display: none !important; }
.section.f-stub .sect-intro, .section.f-stub .sect-toggle { display: none; }
.section.f-stub { padding-top: 28px !important; padding-bottom: 28px !important; min-height: 0 !important; }
.section.f-stub .sect-head { margin-bottom: 0 !important; }
.section.f-stub .sect-title { font-size: 22px; }
.f-stubnote { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.f-more { margin: 16px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--page); border: 1px dashed var(--border); font-size: 14px; color: var(--muted); }
.side .f-more { margin: 12px 0 0; }
.toc-row.f-dim { opacity: .45; }
.hs-save { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 14px; }
.hs-saved { color: var(--heading); }
.hs-seg { gap: 6px; }
.cmp-table td.col-on, .cmp-table th.col-on { background: var(--tint-teal); }
.em-all { display: inline-block; margin-top: 12px; font: 600 13px var(--font-display); color: var(--brand-deep); text-decoration: underline; text-underline-offset: 3px; }
/* Label above a hero pill row ("Visa guides", "Jump to a section"): the same on every page */
.hero .sub-label { margin-top: 28px; font-size: 12px; letter-spacing: .06em; color: rgba(255,255,255,.8); }
.hero .sub-label + .tabs { margin-top: 12px; }
/* Hero title block starts at the same height on every page: the breadcrumb sits 56px under the
   menu, and the title 14px under the breadcrumb, whether or not the page has a progress card */
.hero .vhero { margin-top: 0; }
.hero .back + .hero-title { margin-top: 16px; }
/* Progress card beside the title: its top lines up with the breadcrumb on every page */
@media (min-width: 901px) { .hero .vhero { align-items: flex-start; } .hero .vhero > .vprog-card { margin-top: 56px; } }
/* ── Contrast (WCAG AA 4.5:1) in light mode ──
   The header teal is a little deeper so white text passes, buttons/links/teal text use #0b7a92,
   and small grey text is a little darker. Dark mode keeps its own values (its :root rules
   are more specific). Jurnified Teal #0097b2 stays in the logo. */
:root {
  --brand: #0b7a92;
  --brand-ink: #0a6c83;
  --muted: #5f6676;
  --accent-ink: #b54708; /* orange used as text */
  --hero: linear-gradient(100deg, #0b7c95 0%, #0c7e97 45%, #0c809a 100%);
}
/* White text in the header at full strength */
.hero-lead, .hero .hero-lead span, .hero .sub-label, .who-role, .vprog-label, .vprog-sub, .vprog-meta, .hero .back, .hero .back span { color: #fff; opacity: 1; }
/* See-through layers in the header: a faint dark tint (not white) keeps white text above 4.5:1 */
.sitenav { background: rgba(4,50,63,.12); }
.hero .tabs { background: rgba(4,50,63,.12); }
.hero .vprog-card { background: rgba(4,50,63,.12); }
/* Banner text on teal at full white */
.cta p { color: #fff; opacity: 1; }
/* Orange badges: dark text on the same orange */
.snav-badge, #jfBadge { color: #2b1203; }
.filter.active .fcount { background: rgba(0,0,0,.18); }
/* ── Contrast in dark mode ── the bright teal used in dark mode needs dark text, the header
   is deepened so its see-through pills pass, and the Budget page's warning panels get a dark tint */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) :is(.btn.primary, .catchip.active, .city-tab.active, .filter.active, .seg-btn.on, .step-num, .help-num, .nx-n, .pack-ic, .qs-n, .su-ic) { color: #052329; }
  :root:not([data-theme="light"]) .filter.active .fcount { color: #052329; background: rgba(255,255,255,.35); }
  :root:not([data-theme="light"]) .cta p { color: #fff; opacity: 1; }
  :root:not([data-theme="light"]) .by-m.short, :root:not([data-theme="light"]) .bp-res.bad { background: rgba(240,68,56,.16); }
}
:root[data-theme="dark"] :is(.btn.primary, .catchip.active, .city-tab.active, .filter.active, .seg-btn.on, .step-num, .help-num, .nx-n, .pack-ic, .qs-n, .su-ic) { color: #052329; }
  :root[data-theme="dark"] .filter.active .fcount { color: #052329; background: rgba(255,255,255,.35); }
  :root[data-theme="dark"] .cta p { color: #fff; opacity: 1; }
  :root[data-theme="dark"] .by-m.short, :root[data-theme="dark"] .bp-res.bad { background: rgba(240,68,56,.16); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .wt-opt input:checked + span { color: #052329; }
  :root:not([data-theme="light"]) .bp-nums > div { background: rgba(255,255,255,.06); }
  :root:not([data-theme="light"]) :is(.short .by-bal b, .bp-res.bad .bp-left b) { color: #ff8a80; }
  :root:not([data-theme="light"]) .hd-rem li.warn { background: rgba(240,68,56,.16); }
}
:root[data-theme="dark"] .wt-opt input:checked + span { color: #052329; }
  :root[data-theme="dark"] .bp-nums > div { background: rgba(255,255,255,.06); }
  :root[data-theme="dark"] :is(.short .by-bal b, .bp-res.bad .bp-left b) { color: #ff8a80; }
  :root[data-theme="dark"] .hd-rem li.warn { background: rgba(240,68,56,.16); }

@media (prefers-color-scheme: dark) {
  /* every place that puts white on the bright dark-mode teal: use dark text/icons instead */
  :root:not([data-theme="light"]) :is(.wt-btn.primary, .setup-hint .btn, .su-opt input:checked + span, .strip-btn.active, .join-btn, .ck-doing, .jn.now .jn-dot, .ac-n, .wz-tn, .s-doing .vnum, .wz-st:has(input:checked) .wz-ic, .wz-dots li.on .wz-n, .wz-dots li.done .wz-n, .ibtn.ok, .faq-item.open .faq-chevron, .toc-row.active .toc-icon, .check-row input:checked + .check-box, .ck-main input:checked + .tbox, .task input:checked + .tbox, .check-field input:checked + .tbox, .hcard-ic, .tool-head > .i, .pf-ic, .drop[open] .drop-chev, .stage-ic) { color: #052329; }
}
/* every place that puts white on the bright dark-mode teal: use dark text/icons instead */
  :root[data-theme="dark"] :is(.wt-btn.primary, .setup-hint .btn, .su-opt input:checked + span, .strip-btn.active, .join-btn, .ck-doing, .jn.now .jn-dot, .ac-n, .wz-tn, .s-doing .vnum, .wz-st:has(input:checked) .wz-ic, .wz-dots li.on .wz-n, .wz-dots li.done .wz-n, .ibtn.ok, .faq-item.open .faq-chevron, .toc-row.active .toc-icon, .check-row input:checked + .check-box, .ck-main input:checked + .tbox, .task input:checked + .tbox, .check-field input:checked + .tbox, .hcard-ic, .tool-head > .i, .pf-ic, .drop[open] .drop-chev, .stage-ic) { color: #052329; }

/* ── Phones: the menu becomes a labelled bar floating just above the bottom of the screen (rounded, 21 Nov 2026;
   it was a full-width bar fixed to the edge before). --bar-gap is the space under and beside it. ── */
@media (max-width: 640px) {
  :root { --bar-gap: max(10px, calc(var(--safe-bottom) - 12px)); }
  /* until site.js moves it, keep it out of the header so the page doesn't jump up when it goes */
  .topbar > .sitenav:not(.jf-bar) { display: none; }
  .sitenav.jf-bar {
    position: fixed; left: 10px; right: 10px; bottom: var(--bar-gap); z-index: 60; order: 0;
    display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0;
    width: auto; max-width: 520px; margin: 0 auto; padding: 4px;
    border: 1px solid var(--border); border-radius: 24px; overflow: visible;
    background: color-mix(in srgb, var(--card) 90%, transparent);
    -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
    box-shadow: 0 8px 24px rgba(16,24,40,.14), 0 1px 3px rgba(16,24,40,.08);
  }
  .sitenav.jf-bar .snav {
    position: relative; flex-direction: column; justify-content: center; gap: 4px;
    height: auto; min-height: 52px; padding: 6px 0 !important; border-radius: 20px;
    color: var(--body); font: 600 11px/1.2 var(--font-display); box-shadow: none;
  }
  .sitenav.jf-bar .snav .i { font-size: 18px; width: 18px; height: 18px; opacity: 1; color: inherit; }
  .sitenav.jf-bar .snav .l-full {
    position: static !important; width: auto !important; height: auto !important; clip: auto !important;
    display: block !important; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .sitenav.jf-bar .snav.on { background: var(--tint-teal); color: var(--brand-deep); }
  .sitenav.jf-bar .snav.on .i { color: var(--brand); }
  @media (hover: hover) and (pointer: fine) { .sitenav.jf-bar .snav:hover { background: var(--tint-teal); } }
  /* the badge sits on the icon's top-right corner, ringed in the bar's colour so the icon stays readable (18 Nov 2026) */
  .sitenav.jf-bar .snav-badge { position: absolute; top: 1px; left: calc(50% + 5px); min-width: 0; height: 16px; padding: 0 4px; font-size: 10.5px; line-height: 16px; box-shadow: 0 0 0 2px var(--card); }
  body { padding-bottom: calc(78px + var(--bar-gap)); }
}
/* Very small phones: slimmer margins and 10px labels so "Essentials" fits */
@media (max-width: 350px) {
  .sitenav.jf-bar { left: 6px; right: 6px; padding-left: 3px; padding-right: 3px; }
  .sitenav.jf-bar .snav { font-size: 10px; }
}
/* Narrow phones (most Android phones are 360px): tighter letters so "Essentials" has room to spare */
@media (max-width: 374px) { .sitenav.jf-bar .snav { letter-spacing: -.02em; } }
@media (max-width: 640px) {
  .sitenav.jf-bar .snav[aria-label="Documents"] .l-full { font-size: 0; }
  .sitenav.jf-bar .snav[aria-label="Documents"] .l-full::after { content: "Docs"; font-size: 11px; }
  /* Compact header so the first card shows on the first screen */
  .hero .back { margin-top: 16px; }
  .hero .back + .hero-title { margin-top: 12px; }
  .hero .hero-lead { font-size: 16px; line-height: 1.5; margin-top: 8px; }
  .hero .vhero { gap: 16px; }
  .hero .vprog-card:has(.vprog-num) { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; row-gap: 6px; align-items: center; padding: 12px 16px; border-radius: 16px; max-width: none; }
  .hero .vprog-card:has(.vprog-num) .vprog-label { display: none; }
  .hero .vprog-card:has(.vprog-num) .vprog-num { grid-column: 1; grid-row: 1 / span 2; margin: 0; }
  .hero .vprog-card:has(.vprog-num) .vprog-num > :first-child { font-size: 26px; }
  .hero .vprog-card:has(.vprog-num) .vprog-bar, .hero .vprog-card:has(.vprog-num) .vprog-meta { grid-column: 2; margin: 0; }
  .hero .sub-label { margin-top: 16px; }
  .hero .sub-label + .tabs { margin-top: 8px; }
}
/* Footer logo: the Jurnified wordmark image (images/jurnified-logo.png) */
.footer-logo { display: block; height: 28px; width: auto; }
/* Tips inside foldable sections: the same gap above them as tips placed directly in a section
   (folding wraps section content in .sect-body, so ".section > .tip" no longer matched) */
.sect-body > * + .tip { margin-top: 32px; }
.sect-body > .tip:last-child { margin-bottom: 0; }
@media (max-width: 720px) { .sect-body > * + .tip { margin-top: 24px; } }
/* Broadband comparison on SIM & data (one place for it; Home essentials links here).
   The dropdown card copies Home essentials' .drop style, scoped to this section. */
#wifi .bb-drop { margin-top: 32px; background: var(--card); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); transition: box-shadow .2s var(--ease); }
@media (hover: hover) and (pointer: fine) { #wifi .bb-drop:hover { box-shadow: var(--shadow-raised); } }
#wifi .bb-drop[open] { box-shadow: 0 0 0 1px var(--border-teal), var(--shadow-card); }
#wifi .drop-sum { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 20px; padding: 20px 24px; }
#wifi .drop-sum::-webkit-details-marker { display: none; }
#wifi .drop-head { flex: 1; min-width: 0; display: flex; flex-direction: column; }
#wifi .drop-meta { flex: none; text-align: right; display: flex; flex-direction: column; }
#wifi .drop-chev { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--chip); color: var(--muted); font-size: 13px; transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease); }
#wifi .bb-drop[open] .drop-chev { transform: rotate(180deg); background: var(--brand); color: #fff; }
#wifi .drop-body { padding: 4px 24px 24px; border-top: 1px solid var(--border-subtle); }
#wifi .drop-body > :first-child { margin-top: 20px; }
#wifi .table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); }
#wifi .bb-drop .cost-table { min-width: 600px; }
#wifi .bb-drop .cost-table td:last-child { min-width: 220px; }
#wifi .table-note { font-size: 13px; color: var(--muted); margin-top: 12px; }
#wifi .drop-tips { list-style: none; display: flex; flex-direction: column; gap: 12px; margin: 20px 0 0; padding: 0; }
#wifi .drop-tips li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.55; color: var(--body); }
#wifi .drop-tips li .i { color: var(--brand); font-size: 14px; margin-top: 4px; flex: none; }
#wifi .drop-tips strong { color: var(--heading); font-weight: 600; }
@media (max-width: 720px) {
  #wifi .drop-sum { flex-wrap: wrap; padding: 16px; gap: 12px 16px; }
  #wifi .drop-sum .tl-icon { width: 44px; height: 44px; font-size: 18px; }
  #wifi .drop-head { flex-basis: calc(100% - 110px); }
  #wifi .drop-meta { order: 4; flex-basis: 100%; flex-direction: row; gap: 8px; align-items: baseline; padding-left: 56px; text-align: left; }
  #wifi .drop-body { padding: 4px 16px 20px; }
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) #wifi .bb-drop[open] .drop-chev { color: #052329; } }
:root[data-theme="dark"] #wifi .bb-drop[open] .drop-chev { color: #052329; }

/* Brand logos in icon placeholders (images/logos/*.jpg, 128px squares) */
.has-logo { background: none !important; padding: 0 !important; overflow: hidden; box-shadow: 0 0 0 1px var(--border); }
.has-logo img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: inherit; }
/* Two brands on one card (Rightmove & Zoopla): two smaller logos, overlapping corner to corner */
.has-logo.logo-pair { position: relative; overflow: visible; box-shadow: none; }
.has-logo.logo-pair img { position: absolute; width: 70%; height: 70%; border-radius: 10px; box-shadow: 0 0 0 2px var(--card); }
.has-logo.logo-pair img:first-child { top: 0; left: 0; }
.has-logo.logo-pair img:last-child { right: 0; bottom: 0; }
/* Three brands on one card (ChatGPT, Claude & Grammarly): a diagonal row of three */
.has-logo.logo-trio { position: relative; overflow: visible; box-shadow: none; }
.has-logo.logo-trio img { position: absolute; width: 56%; height: 56%; border-radius: 8px; box-shadow: 0 0 0 2px var(--card); }
.has-logo.logo-trio img:nth-child(1) { top: 0; left: 0; }
.has-logo.logo-trio img:nth-child(2) { top: 22%; left: 22%; }
.has-logo.logo-trio img:nth-child(3) { right: 0; bottom: 0; }
/* ── Apple-style polish (from the apple-design review, 2 Nov 2026) ── */
/* 1. Respect the device's "reduce motion" setting: no slides, spins or smooth scrolling */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
/* 2. Instant feedback the moment something is pressed (phones have no hover) */
:is(.ess-tick, .snav, .strip-btn, .filter, .catchip, .city-tab, .seg-btn, .join-btn, .ck-nabtn, .qs-list a, .mg, .more-card, .hcard, .drop-link, .wt-opt span, .me-photo-btn, .avatar-generic) { -webkit-tap-highlight-color: transparent; }
:is(.ess-tick, .snav, .strip-btn, .filter, .catchip, .city-tab, .seg-btn, .join-btn, .ck-nabtn, .qs-list a, .mg, .more-card, .hcard, .drop-link, .me-photo-btn, .avatar-generic, .tel-link, .footer-about, .miss-x, .jf-search-btn, .jf-signin, .lp-risk summary):active { scale: .97; }
.wt-opt:active span { scale: .97; }
/* full-width rows dim slightly instead of shrinking */
:is(.check-row, .toc-row, .drop-sum, .faq-q) { -webkit-tap-highlight-color: transparent; }
:is(.check-row, .toc-row, .drop-sum, .faq-q, .pack-tg):active { background-image: linear-gradient(rgba(16,24,40,.06), rgba(16,24,40,.06)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(.check-row, .toc-row, .drop-sum, .faq-q, .pack-tg):active { background-image: linear-gradient(rgba(255,255,255,.07), rgba(255,255,255,.07)); } }
:root[data-theme="dark"] :is(.check-row, .toc-row, .drop-sum, .faq-q, .pack-tg):active { background-image: linear-gradient(rgba(255,255,255,.07), rgba(255,255,255,.07)); }

/* 3. Dropdown cards open and close smoothly from their header (browsers without support stay instant) */
@supports (interpolate-size: allow-keywords) {
  details.drop { interpolate-size: allow-keywords; }
  details.drop::details-content { block-size: 0; overflow: clip; transition: block-size .25s ease-out, content-visibility .25s allow-discrete; }
  details.drop[open]::details-content { block-size: auto; }
}
/* 4. "Reduce transparency" and "increase contrast": solid bars instead of see-through, blurred ones */
@media (prefers-reduced-transparency: reduce) {
  * { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .strip, .sitenav.jf-bar { background: var(--card) !important; }
  .sitenav:not(.jf-bar), .hero .tabs, .hero .vprog-card { background: rgba(4,50,63,.4) !important; }
}
@media (prefers-contrast: more) {
  * { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .strip, .sitenav.jf-bar { background: var(--card) !important; border-color: var(--heading) !important; }
  .sitenav:not(.jf-bar), .hero .tabs, .hero .vprog-card { background: rgba(0,30,40,.5) !important; border: 1px solid rgba(255,255,255,.8) !important; }
  .card, .drop, .tip, .panel, .intro-card, .me-card, .dcard, .check-row, .faq-item { border-color: var(--body) !important; }
}

/* "Based on the dates you entered…" guardrail line under calculated dates (J.basis in visa/shared.js) */
.jf-basis { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.jf-basis .i { flex: none; margin-top: 4px; color: var(--brand); }
.jf-basis[hidden] { display: none; }

/* Keep words like Wi-Fi from breaking at the hyphen */
.nobr { white-space: nowrap; }

/* Card badges and facts (Nov 2026): one quiet badge style; colour only carries meaning.
   Green = free or saves money, orange = a warning or cost to watch, grey = everything else. */
.badge.b-teal { background: var(--badge-gray-bg); color: var(--badge-gray-fg); }
/* Tag and stat-pill rows read as one plain line of facts: "100GB · 12-month plan · eSIM via app" */
/* Each fact carries its dot in a 16px left gutter; the row is shifted 16px left and that strip is
   clipped, so the first fact on every line (including after a wrap) never shows a leading dot. */
.card-stat, .tags, .net-brands { gap: 0; align-items: baseline; margin-left: -16px; clip-path: inset(0 0 0 16px); }
.stat-pill, .tag, .card.featured .stat-pill { display: inline; height: auto; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; font: 500 14px/1.5 var(--font-body); color: var(--muted); white-space: normal; }
:is(.stat-pill, .tag) { position: relative; padding-left: 16px !important; }
:is(.stat-pill, .tag)::before { content: "·"; position: absolute; left: 5px; color: var(--icon-muted); }

/* Icon tiles (Nov 2026): one brand style, light teal tile with a teal icon, instead of unrelated
   bright colours. Company logos (.has-logo) keep their own artwork. */
:is(.tile-teal, .tile-navy, .tile-green, .tile-coral, .tile-dark):not(.has-logo) { background: var(--badge-teal-bg) !important; color: var(--brand) !important; }

/* ── Desktop sizing (Nov 2026) ──
   At 100% the header, titles, margins and padding felt oversized while body text was already
   13–15px. These rules tighten only those big parts on screens wider than 900px; body text and
   phones are unchanged. The first card now starts around 380px down at 1440×900 (was ~490px). */
@media (min-width: 901px) {
  .topbar { padding-top: 24px; }
  .hero { padding-bottom: 100px; }
  .hero .back { margin-top: 32px; }
  .hero .vhero > .vprog-card { margin-top: 32px; }
  h1.hero-title { font-size: clamp(32px, 3vw, 40px); }
  .hero .sub-label { margin-top: 20px; }
  .tabs { padding: 4px; }
  .tab { height: 40px; padding: 0 16px; font-size: 14px; }
  .dhero-top { margin-top: 28px; }
  .journey { margin-top: 24px; }
  /* Home journey bar: stage icon beside its name, progress bar underneath */
  .jn > a { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 10px; row-gap: 0; align-items: center; padding: 10px 12px; }
  .jn > a .jn-dot { grid-row: span 2; }
  .jn > a .jn-bar { grid-column: 1 / -1; margin-top: 8px; }
  h2.sect-title { font-size: 26px; }
  .main { gap: 72px; }
  .card { padding: 24px; }
  .cta-btn { height: 44px; padding: 0 24px; }
}
@media (min-width: 1241px) { :root { --gutter: 56px; } }

/* Tappable phone numbers in number lists (prose numbers use .content-link) */
.tel-link { color: inherit; text-decoration: none; border-radius: 6px; }
@media (hover: hover) and (pointer: fine) { .tel-link:hover { text-decoration: underline; text-underline-offset: 3px; } }
/* Footer logo opens the welcome page */
.footer-about { display: inline-block; border-radius: 8px; }

/* Search (site.js): a panel near the top of the screen with results from every guide */
.jf-search { position: fixed; inset: 0; z-index: 90; background: rgba(4,30,40,.45); display: flex; justify-content: center; align-items: flex-start; padding: 72px 16px 16px; }
.jf-search[hidden] { display: none; }
.jf-search-open { overflow: hidden; }
.js-panel { width: 100%; max-width: 640px; max-height: calc(100vh - 96px); max-height: calc(100dvh - 96px); display: flex; flex-direction: column; background: var(--card); color: var(--body); border-radius: 24px; box-shadow: 0 20px 50px rgba(15,40,60,.28); overflow: hidden; }
.js-bar { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--border); }
.js-bar > .i { width: 18px; height: 18px; color: var(--muted); flex: none; }
.js-in { flex: 1; min-width: 0; height: 44px; border: 0; background: transparent; color: var(--heading); font: 500 16px var(--font-body); outline: none; }
.js-in::-webkit-search-cancel-button { display: none; }
.js-close { flex: none; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--body); font: 600 13px var(--font-display); cursor: pointer; }
.js-out { overflow-y: auto; overscroll-behavior: contain; padding: 8px; }
.js-hint { padding: 16px 12px; font-size: 14px; color: var(--muted); }
.js-list { list-style: none; display: grid; gap: 4px; }
.js-list a { display: grid; gap: 2px; padding: 12px; border-radius: 16px; text-decoration: none; }
.js-list a:focus-visible { background: var(--tint-teal, rgba(14,133,159,.08)); outline: none; }
@media (hover: hover) and (pointer: fine) { .js-list a:hover { background: var(--tint-teal, rgba(14,133,159,.08)); outline: none; } }
.js-t { font: 600 15px/1.35 var(--font-display); color: var(--heading); }
.js-where { font-size: 12px; font-weight: 600; color: var(--brand); }
.js-x { font-size: 13px; line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Phones: search fills the screen, like an app's search screen */
@media (max-width: 640px) {
  .jf-search { padding: 0; align-items: stretch; }
  .js-panel { max-width: none; height: 100vh; height: 100dvh; max-height: none; border-radius: 0; padding-top: var(--safe-top); padding-bottom: var(--safe-bottom); box-shadow: none; animation: jf-fade-in .14s ease-out; }
  .js-bar { padding: 8px 8px 8px 16px; }
  .js-close { min-height: 44px; border: 0; background: none; color: var(--brand); font-size: 15px; }
}
@keyframes jf-sheet-up { from { transform: translateY(100%); } }
/* search fades in where it is: if it slid up, iPhones would open the keyboard while the box was still moving and scroll the page to chase it */
@keyframes jf-fade-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .js-panel, .vw-card { animation: none !important; } }
@media (prefers-reduced-transparency: reduce) { .jf-search { background: rgba(4,30,40,.8); } }
/* "You may also need" / "More about scams" links at the end of a section */
.see-also { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 14px; line-height: 1.7; color: var(--muted); }
.see-also > span { font-weight: 600; color: var(--body); margin-right: 4px; }
/* "Sign in" beside the person icon in the header, shown by site.js while nobody is signed in on this device.
   Phones leave it out to keep the compact header; they sign in from the landing page or Profile */
.jf-signin { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; margin-right: 8px; border-radius: 999px; border: 1.5px solid currentColor; color: inherit; font: 600 14px/1 var(--font-display); text-decoration: none; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .jf-signin:hover { background: rgba(4,50,63,.12); text-decoration: none; } }
.jf-signin:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }
@media (max-width: 640px) { .jf-signin { display: none; } }

/* Header icons stay round and on screen. Below 1560px the "International Student" label goes; on laptops the
   menu takes its own row, as it already does on tablets, so Sign in and the profile icon are never cut off. */
.topbar-right, .topbar .icon-btn { flex: none; }
@media (max-width: 1580px) { .topbar .who, .topbar .topbar-div { display: none; } }
@media (min-width: 1101px) and (max-width: 1400px) {
  .topbar { display: grid; grid-template-columns: 1fr auto; row-gap: 20px; }
  .sitenav { grid-row: 2; grid-column: 1 / -1; justify-self: start; width: max-content; max-width: 100%; margin: 0; }
}

/* Computers and tablets show the site at 90% (owner decision, 11 Nov 2026: everything looked too large at
   100% browser zoom). Phones (640px and below) stay at 100% (owner decision, 12 Nov 2026), so text and
   buttons are normal app sizes. --z is the zoom in use, for rules that must cancel it out. */
html { --z: 1; }
@media (min-width: 641px) { html { zoom: .9; --z: .9; } }

/* ── Home screen app (11 Nov 2026) ──────────────────────────────────────────
   Rules in "display-mode: standalone" apply only when Jurnified is opened from
   the icon on a phone's home screen; the website in a browser is unchanged. */

/* iPhone and iPad zoom the page in when a text box under 16px is tapped. Text boxes show at 16.2px:
   18px on iPads (zoomed to 90%), 16.2px on phones (100%). iOS only. */
@supports (-webkit-touch-callout: none) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea { font-size: calc(16.2px / var(--z)) !important; }
}
/* Date boxes (18 Nov 2026): iPhone gives them a built-in minimum width, so in a narrow card they ran past its edge
   while the text boxes above lined up. Without the built-in look they take the width they're given, like a text
   box, and the date sits on the left as typed text does (iPhone centres it). */
input:is([type="date"], [type="month"], [type="time"], [type="datetime-local"]) { min-width: 0; max-width: 100%; -webkit-appearance: none; appearance: none; }
input:is([type="date"], [type="month"], [type="time"], [type="datetime-local"])::-webkit-date-and-time-value { text-align: left; margin: 0; }

/* No grey flash on tap anywhere: every tappable item has its own press feedback */
a, button, label, summary { -webkit-tap-highlight-color: transparent; }

@media (display-mode: standalone) {
  /* Teal behind the time and battery. The pages ask iOS to draw the status bar over
     the page (apple-mobile-web-app-status-bar-style), so this fixed strip fills that
     space and the page starts below it. 0px on phones with no status bar overlap.
     Divided by --z because tablets are zoomed to 90% (html { zoom: .9 }), which would otherwise
     make the strip 10% shorter than the real status bar. */
  body { padding-top: calc(var(--safe-top) / var(--z)); }
  body::before {
    content: ""; position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: calc(var(--safe-top) / var(--z)); background: var(--hero, #0b7c95); pointer-events: none;
  }
  .strip { top: calc(var(--safe-top) / var(--z)); }

  /* Menus, buttons and cards behave like app controls: no link pop-up on a long
     press and no text selected by accident. Links inside guide text keep both. */
  :is(nav, button, .tab, .strip-btn, .snav, .guide, .more-card, .toc-row, .check-row, .faq-q, .qs-list a, .cta-btn, .btn) {
    -webkit-touch-callout: none; -webkit-user-select: none; user-select: none;
  }

  /* Already using the app, so hide the "Add Jurnified to your phone" prompts */
  a.guide[href="app.html"], .panel-app { display: none; }
}


/* Guide checklists on phones (12 Nov 2026): a Hide button shrinks the checklist above the guide to one line
   with its progress; tap the line or Show to open it again (guide.js). Desktop keeps it in the side column. */
.ck-toggle, .ck-sum { display: none; }
@media (max-width: 900px) {
  .ck-panel { position: relative; }
  .ck-panel .panel-title { padding-right: 88px; flex-wrap: wrap; row-gap: 2px; }
  .ck-toggle { display: inline-flex; align-items: center; gap: 6px; position: absolute; top: 18px; right: 16px; height: 36px; padding: 0 14px;
    border-radius: 999px; border: 1px solid var(--border); background: var(--card); font: 600 14px var(--font-display); color: var(--brand-deep); cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .ck-toggle .i { font-size: 12px; transition: transform .2s var(--ease); }
  .ck-toggle[aria-expanded="true"] .i { transform: rotate(180deg); }
  .ck-toggle:active { scale: .97; }
  .ck-panel.ck-folded { padding-top: 20px; padding-bottom: 20px; }
  .ck-panel.ck-folded .panel-title { cursor: pointer; }
  .ck-panel.ck-folded > :not(.panel-title):not(.ck-toggle) { display: none; }
  .ck-panel.ck-folded .ck-toggle { top: 50%; transform: translateY(-50%); }
  .ck-panel.ck-folded .ck-toggle:active { scale: .97; }
  .ck-panel.ck-folded .ck-sum { display: block; flex-basis: 100%; font: 500 14px var(--font-body); color: var(--body); }
}
/* Phones feel native (mobile-native check, 12 Nov 2026). Hover effects everywhere are wrapped in
   @media (hover: hover) and (pointer: fine), so a tap on a phone doesn't leave them stuck on; keep new
   :hover rules inside that wrapper. Below: no grey flash anywhere, no text enlarging when the phone turns
   sideways, and taps that respond straight away (no waiting to see if it's a double-tap zoom). */
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
a, button, label, summary, input, select, textarea, [role="button"] { touch-action: manipulation; }

/* Phones: everything you tap is at least 44px, Apple's minimum for a fingertip (12 Nov 2026).
   Links inside sentences are exempt. The breadcrumb keeps its look but gets a bigger invisible hit area. */
@media (max-width: 640px) {
  .tab, .strip-btn { height: 44px; min-height: 44px; }
  .sect-toggle, .ck-toggle, .qs-all, .btn.sm { min-height: 44px; height: 44px; }
  .topbar .icon-btn, .topbar a.avatar-generic, .topbar .avatar { width: 44px; height: 44px; }
  .sh-x { width: 44px; height: 44px; }
  /* found in the alignment review (14 Nov 2026) */
  .cd-btn, .miss-x, .ck-nabtn, .dmain .ck-nabtn, .dmain .doc-pill + .ck-nabtn, .catchip, .seg-btn { min-height: 44px; height: 44px; }
  .ibtn, .pk-na, .pack-top .pack-nabtn { width: 44px; height: 44px; }
  .wt-link, .btn.link { display: inline-flex; align-items: center; min-height: 44px; }
  .back, .wm-link, .footer-about { position: relative; }
  .back::after, .wm-link::after, .footer-about::after { content: ""; position: absolute; inset: -12px -8px; }
}

/* Phones: the bottom menu's highlight is a separate layer (.jf-ind, added by site.js) so it can slide
   between items when pages change in the home screen app */
@media (max-width: 640px) {
  .sitenav.jf-bar .snav { isolation: isolate; }
  .sitenav.jf-bar .snav.on { background: transparent; }
  .jf-ind { position: absolute; inset: 0; z-index: -1; border-radius: 20px; background: var(--tint-teal); pointer-events: none; }
  /* Rows of pills you swipe sideways stop on a whole pill, and a sideways swipe doesn't move the page */
  .tabs, .strip-inner, .journey { scroll-snap-type: x proximity; scroll-padding-inline: 4px; overscroll-behavior-x: contain; }
  .tabs > *, .strip-inner > *, .journey > * { scroll-snap-align: start; }
}
.sitenav:not(.jf-bar) .jf-ind { display: none; }
/* Moving between pages on phones (18 Nov 2026, second version; the first used the browser's own cross-document
   page transitions, which an iPhone screen recording showed not playing at all: every switch was a one-frame cut).
   Jurnified now animates it itself, with plain CSS that every phone browser runs:
   - leaving: a tap on another bottom menu item dims the page's own content a little and nudges it the way
     you're going (.jf-leaving, set by site.js). It plays while the next page loads, so it adds no waiting.
   - arriving: the page's content starts dimmed and a little to the side the menu went (jf-pre, set by the
     <head> script; data-navdir gives the side), and eases in once the first frame has been drawn (first-paint.js
     swaps jf-pre for jf-in). An animation that simply started with the page was over before an iPhone drew
     anything. If first-paint.js never runs, the content shows by itself after 2 seconds.
     The teal header, the logo row and the bottom menu never move.
   - the menu's highlight glides from the old item to the new one (.jf-glide, --jf-from set by site.js).
   Only the page's own blocks move (never <body>), so bars fixed to the screen are unaffected.
   Off with reduced motion, on the device or in Profile > Appearance. */
@media (max-width: 640px) and (prefers-reduced-motion: no-preference) {
  html.jf-pre .hero-inner > :not(.topbar), html.jf-pre body > .layout, html.jf-pre body > .page-footer {
    opacity: .4; transform: translate3d(var(--jf-dx, 0px), 6px, 0); animation: jf-shown 0s 2s forwards; }
  html.jf-in .hero-inner > :not(.topbar), html.jf-in body > .layout, html.jf-in body > .page-footer {
    transition: opacity .26s cubic-bezier(.2, .8, .2, 1), transform .26s cubic-bezier(.2, .8, .2, 1); }
  html[data-navdir="r"] { --jf-dx: 14px; }
  html[data-navdir="l"] { --jf-dx: -14px; }
  html.jf-leaving:not([data-motion="reduce"]) .hero-inner > :not(.topbar),
  html.jf-leaving:not([data-motion="reduce"]) body > .layout,
  html.jf-leaving:not([data-motion="reduce"]) body > .page-footer { opacity: .4; transform: translate3d(var(--jf-out, 0px), 0, 0); transition: opacity .12s ease-out, transform .12s ease-out; }
  .sitenav.jf-bar .snav.on { z-index: -1; }   /* so the gliding highlight passes under the other items' icons */
  html:not([data-motion="reduce"]) .jf-ind.jf-glide { animation: jf-ind-glide .3s cubic-bezier(.2, .8, .2, 1) backwards; }
}
@keyframes jf-shown { to { opacity: 1; transform: none; } }
/* The jump bar that drops in once a page's pills scroll away is truly hidden until then. It used to be hidden
   only by being moved up by its own height, so when the phone's title bar space was added just after a page
   opened, the bar dipped into view at the top for a moment (seen frame by frame, 18 Nov 2026). */
.strip { visibility: hidden; transition: transform .2s var(--ease), visibility 0s .2s; }
.strip.show { visibility: visible; transition: transform .2s var(--ease), visibility 0s; }
@keyframes jf-ind-glide { from { transform: translateX(var(--jf-from, 0px)); } }
/* Home screen app on phones: the website footer becomes a short, quiet note (the guidance line stays) */
@media (display-mode: standalone) and (max-width: 640px) {
  .page-footer { padding-top: 24px; padding-bottom: 24px; }
  .page-footer .footer-about { display: none; }
  .page-footer .footer-note { font-size: 12px; text-align: center; }
}

/* Phones: slim title bar that appears once the page title scrolls away (site.js adds .jf-title) */
.jf-title { display: none; }
@media (max-width: 640px) {
  .jf-title {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, auto) minmax(0, 1fr); align-items: center;
    position: fixed; left: 0; right: 0; z-index: 55; top: calc(var(--safe-top) / var(--z)); height: 48px; padding: 0 4px;
    background: color-mix(in srgb, var(--card) 92%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border); transform: translateY(-120%); visibility: hidden;
    transition: transform .2s var(--ease), visibility 0s .2s;
  }
  .jf-title.show { transform: none; visibility: visible; transition: transform .2s var(--ease), visibility 0s; }
  .jt-back { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; max-width: 100%; padding: 0 4px 0 0; border-radius: 12px;
    color: var(--brand); font: 600 15px var(--font-display); text-decoration: none; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
  .jt-back svg { flex: none; width: 22px; height: 22px; }
  .jt-back span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .jt-back:active { opacity: .6; }
  .jt-name { max-width: 52vw; text-align: center; font: 600 16px var(--font-display); color: var(--heading); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* guide pages: the jump bar slides in under the title bar */
  .has-jt .strip { top: calc(var(--safe-top) / var(--z) + 48px); }
  .has-jt .strip:not(.show) { transform: translateY(calc(-100% - 64px - var(--safe-top))); }
}

/* "You're offline" note (site.js): above the bottom menu on phones, bottom corner on bigger screens */
.jf-offline { position: fixed; z-index: 58; left: 16px; right: 16px; bottom: 16px; max-width: 480px; margin: 0 auto;
  padding: 10px 16px; border-radius: 14px; background: var(--heading); color: var(--card); font: 500 14px/1.4 var(--font-body);
  box-shadow: 0 8px 24px rgba(16,24,40,.18); text-align: center; }
.jf-offline[hidden] { display: none; }
@media (max-width: 640px) { .jf-offline { bottom: calc(72px + var(--bar-gap)); } }

/* Page opening without jumps (12 Nov 2026): site.js adds the search button before the bell once its script has
   run; until then this keeps the same 44px space, so the header doesn't shift as each page opens */
.topbar-right:has(> .icon-btn):not(:has(> .jf-search-btn))::before { content: ""; flex: none; width: 44px; height: 44px; }
/* Visa roadmap: hold the space roadmap.js fills in the "Next up" card (sizes measured 12 Nov 2026) */
#nextDesc:empty { min-height: 59px; display: block; }
#nextActions:empty { min-height: 44px; }
@media (min-width: 1101px) { #nextDesc:empty { min-height: 30px; } }
@media (max-width: 640px) { #nextDesc:empty { min-height: 89px; } }

/* Mobile review, 12 Nov 2026 */
/* 1. Everything you tap responds the moment it's pressed: cards and buttons shrink slightly, list rows dim */
:is(.guide, .sect-toggle, .stat, .dc-link, .tab, .btn, .cta-btn, .panel-link, .dg-locked, .bk-more):active { scale: .97; }
:is(.js-list a, .nx-list a, #actions a):active { background-image: linear-gradient(rgba(16,24,40,.06), rgba(16,24,40,.06)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(.js-list a, .nx-list a, #actions a):active { background-image: linear-gradient(rgba(255,255,255,.07), rgba(255,255,255,.07)); } }
:root[data-theme="dark"] :is(.js-list a, .nx-list a, #actions a):active { background-image: linear-gradient(rgba(255,255,255,.07), rgba(255,255,255,.07)); }

/* 2. Phones: the bottom menu steps aside while you type, like an app's tab bar when the keyboard is up. The slim
   title bar and the jump bar at the top slide away too (18 Nov 2026), so they never cover the box being filled in
   or the date picker above it. */
@media (max-width: 640px) and (pointer: coarse) {
  body:has(:is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([readonly]), textarea, select):focus) :is(.sitenav.jf-bar, .jf-offline) { display: none; }
  body:has(:is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([readonly]), textarea, select):focus) :is(.strip, .jf-title) { transform: translateY(calc(-100% - 64px - var(--safe-top))) !important; visibility: hidden !important; transition: transform .2s var(--ease), visibility 0s .2s !important; }
}
/* 6. Phones turned sideways: keep the bars clear of the notch on either side */
@media (max-width: 1000px) and (orientation: landscape) {
  .sitenav.jf-bar { left: max(10px, env(safe-area-inset-left, 0px)); right: max(10px, env(safe-area-inset-right, 0px)); }
  .jf-title { padding-left: max(4px, env(safe-area-inset-left, 0px)); padding-right: max(4px, env(safe-area-inset-right, 0px)); }
  .jf-offline { left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); }
  .js-panel, .vw-card { padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
}
/* 7. "New here?" bar: its space is held from the first frame (.jf-hint, set in <head>) until site.js adds it
   (.jf-hint-done), on pages where it can appear. Sizes measured 12 Nov 2026: 72px tall on bigger screens
   (80px before the 90% zoom), 178px on phones, plus its 24px gap. */
.jf-hint:not(.jf-hint-done) .main:not(:has(section.setup, [data-setup-note])) .intro-card::before { content: ""; display: block; height: 80px; margin-bottom: 24px; }
@media (max-width: 640px) { .jf-hint:not(.jf-hint-done) .main:not(:has(section.setup, [data-setup-note])) .intro-card::before { height: 178px; } }

/* 8. Alignment review (14 Nov 2026) */
/* Button labels stay on one line (a wrapped "Add share code" pushed its text off-centre); a long label
   shrinks the button's padding before it would wrap. */
.btn { white-space: nowrap; }
/* Every drop-down looks the same in every browser: our own chevron, the text clear of it, Inter like the text boxes */
select:not([multiple]):not([size]) { -webkit-appearance: none !important; appearance: none !important; padding-right: 40px !important; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238796a0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 16px center !important; background-size: 12px 8px !important; }
.dsel { font: 500 15px var(--font-body); color: var(--heading); }
/* Boxes in a row line up at the bottom, so a label that wraps to two lines doesn't push its box lower
   (the planner's "Planned application date (optional)") */
.fields-row { align-items: end; }
@media (max-width: 640px) { .vactions .btn { height: 44px; } }
/* "Add share code" gets its own row under the boxes, so it never has to squeeze into a narrow column */
.code-form > .btn { grid-column: 1 / -1; justify-self: start; }

/* 9. Appearance (14 Nov 2026; Profile → Appearance, profile/appearance.html). A tiny script at the top of every
   page's <head> reads jurnified-look ({ theme, text, motion }, this device only) and sets data-theme, data-text
   and data-motion on <html> before the page draws. Dark mode: every dark rule has a :root[data-theme="dark"]
   copy beside its @media (prefers-color-scheme: dark) version, guarded by :root:not([data-theme="light"]). */
/* Text size: the whole page scales, so layouts keep their proportions. --z stays equal to the zoom in use.
   Small (17 Nov 2026) is a gentler step than Large: about 8% smaller on phones and 6% on computers, whose
   standard is already 90%, so the smallest print stays readable (11px on computers, 12px on phones). */
html[data-text="s"] { zoom: .92; --z: .92; }
html[data-text="l"] { zoom: 1.1; --z: 1.1; }
html[data-text="xl"] { zoom: 1.2; --z: 1.2; }
@media (min-width: 641px) {
  html[data-text="s"] { zoom: .85; --z: .85; }
  html[data-text="l"] { zoom: .99; --z: .99; }
  html[data-text="xl"] { zoom: 1.08; --z: 1.08; }
}
/* Less motion: the same as the phone's "Reduce motion" setting */
html[data-motion="reduce"] *, html[data-motion="reduce"] *::before, html[data-motion="reduce"] *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
html[data-motion="reduce"] { scroll-behavior: auto !important; }
html[data-motion="reduce"]::view-transition-group(*), html[data-motion="reduce"]::view-transition-old(*), html[data-motion="reduce"]::view-transition-new(*) { animation: none !important; }
/* The bottom menu on phones keeps its normal size, or its six labels get cut off at larger text */
/* Small on phones: the page is 92%, so the things you tap are drawn at 48px to stay 44px on screen */
@media (max-width: 640px) {
  html[data-text="s"] :is(.btn, .tab, .strip-btn, .sect-toggle, .ck-toggle, .qs-all, .cd-btn, .miss-x, .ck-nabtn, .dmain .doc-pill + .ck-nabtn, .catchip, .seg-btn, .wt-link, .cta-btn, .js-close, .jt-back, .faq-q, .pack-tg, select) { min-height: 48px; }
  html[data-text="s"] .dg-copy { width: 48px; height: 48px; }
  html[data-text="s"] :is(.topbar .icon-btn, .topbar a.avatar-generic, .topbar .avatar, .sh-x, .ibtn, .pk-na, .pack-top .pack-nabtn) { width: 48px; height: 48px; }
}
@media (max-width: 640px) { html[data-text="s"] .jf-bar { zoom: 1.087; } html[data-text="l"] .jf-bar { zoom: .9091; } html[data-text="xl"] .jf-bar { zoom: .8334; } }

/* 10. Student illustrations (14 Nov 2026): friendly drawn students in the brand colours, made by
   tools/draw-students.py into images/ill/*.svg (each follows the page's light or dark mode). Used once per page
   at most: in each guide's "Getting started" card, on sign-in, the error and offline pages, and in a few empty or
   all-done states. Decorative, so alt="" (the words beside them say the same). */
.intro-card:has(> .intro-ill) { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 32px; }
.intro-card:has(> .intro-ill) > * { grid-column: 1 / -1; }
.intro-card:has(> .intro-ill) > :is(.intro-title, .intro-text) { grid-column: 1; }
.intro-card > .intro-ill { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 150px; height: auto; margin: -16px -8px -8px 0; }
@media (max-width: 640px) {
  .intro-card:has(> .intro-ill) { column-gap: 12px; }
  .intro-card > .intro-ill { grid-row: 1; width: 84px; margin: -12px -6px -8px 0; }
  .intro-card:has(> .intro-ill) > .intro-text { grid-column: 1 / -1; }
}
/* With the "New here?" bar at the top of the card (or its held space, before site.js adds it), the bar takes the
   first row and the drawing moves down beside the title. Without this the drawing kept rows 1 and 2, so the
   full-width bar was pushed under it and left an empty band at the top of the card (24 Nov 2026). */
.intro-card:has(> .intro-ill) > .setup-hint, .jf-hint:not(.jf-hint-done) .main:not(:has(section.setup, [data-setup-note])) .intro-card:has(> .intro-ill)::before { grid-column: 1 / -1; grid-row: 1; }
.intro-card:has(> .setup-hint) > .intro-ill, .jf-hint:not(.jf-hint-done) .main:not(:has(section.setup, [data-setup-note])) .intro-card > .intro-ill { grid-row: 2 / span 2; }
@media (max-width: 640px) { .intro-card:has(> .setup-hint) > .intro-ill, .jf-hint:not(.jf-hint-done) .main:not(:has(section.setup, [data-setup-note])) .intro-card > .intro-ill { grid-row: 2; } }
.ill-empty { display: block; width: 120px; height: auto; margin: 0 auto 4px; }
/* at the top of a standalone card: sign-in, page not found, offline */
.ill-top { display: block; width: 170px; height: auto; margin: -16px 0 12px -8px; }
.ill-top.ill-si { width: 210px; }
@media (max-width: 640px) { .ill-top { width: 130px; margin: -8px 0 8px -4px; } .ill-top.ill-si { width: 160px; } }
.jn-empty:has(.ill-empty), .js-none { text-align: center; }
.jn-empty .ill-empty { width: 110px; }

/* ── 11. Motion rules (owner, 18 Nov 2026), for desktop and phones ──
   Entrances start at scale .97 and opacity 0, never from scale 0. Buttons scale to .97 while pressed (the scale
   property, 150ms ease-out). A wrong password shakes its box as well as turning it red. Steps slide in from the
   way you're going. Accordions animate to their real height. Moving things use transform or translate, never
   top or left. Nothing animates while the theme changes. Only the first tooltip waits. (Flicks, drags and
   carousels have their own rules in CLAUDE.md; Jurnified has none yet.) */
:root { interpolate-size: allow-keywords; }
@keyframes jf-pop { from { opacity: 0; scale: .97; } }
.jf-notif:not([hidden]), .gl-tip:not([hidden]), dialog.vd[open], .tour-card { animation: jf-pop .18s ease-out; }
@media (min-width: 641px) { .jf-search:not([hidden]) .js-panel { animation: jf-pop .18s ease-out; } }
:is(.ess-tick, .snav, .strip-btn, .filter, .catchip, .city-tab, .seg-btn, .join-btn, .ck-nabtn, .qs-list a, .mg, .more-card, .hcard, .drop-link, .me-photo-btn, .avatar-generic, .tel-link, .footer-about, .miss-x, .jf-search-btn, .jf-signin, .lp-risk summary, .wt-opt span, .guide, .sect-toggle, .stat, .dc-link, .tab, .btn, .cta-btn, .panel-link, .dg-locked, .bk-more, .ck-toggle, .qd-a button, .me-eye, .ap-opt, .ct-opt, .si-show, .join-btn, .lp-btn, .lp-open) { transition: scale 150ms ease-out, transform .15s var(--ease), background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease), opacity .15s var(--ease); }
:is(.lp-btn, .lp-open):active { scale: .97; }
@keyframes jf-shake { 0%, 100% { transform: translateX(0); } 16.7% { transform: translateX(-10px); } 33.3% { transform: translateX(10px); } 50% { transform: translateX(-6px); } 66.7% { transform: translateX(6px); } 83.3% { transform: translateX(-3px); } }
.jf-shake { animation: jf-shake .36s ease-in-out; }
input.jf-bad { border-color: #d92d20 !important; box-shadow: 0 0 0 3px rgba(217, 45, 32, .18) !important; }
@keyframes jf-step-f { from { opacity: 0; transform: translateX(32px); } }
@keyframes jf-step-b { from { opacity: 0; transform: translateX(-32px); } }
#setup[data-dir="f"] > * { animation: jf-step-f .28s cubic-bezier(.2, .8, .2, 1); }
#setup[data-dir="b"] > * { animation: jf-step-b .28s cubic-bezier(.2, .8, .2, 1); }
@supports (interpolate-size: allow-keywords) {
  .faq-a { max-height: none; height: 0; transition: height .25s var(--ease); }
  .faq-item.open .faq-a { max-height: none; height: auto; }
}
.theme-switching, .theme-switching *, .theme-switching *::before, .theme-switching *::after { transition: none !important; }

/* "Swipe the table sideways" line above a table that doesn't fit (guide.js; here because Banking, SIM and Transport don't load guide.css) */
p.tw-hint, .section p.tw-hint { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font: 500 13px/1.4 var(--font-display); color: var(--muted); }
.tw-hint[hidden] { display: none; }
.tw-hint .i { font-size: 12px; color: var(--brand); flex: none; }
@media (prefers-reduced-motion: no-preference) { :root:not([data-motion="reduce"]) .tw-hint .i { animation: tw-nudge 1.6s ease-in-out 2; } }
@keyframes tw-nudge { 0%, 100% { translate: 0 0; } 50% { translate: 4px 0; } }

/* Visa guidance's contents list (18 Nov 2026): its sections fold on phones and tablets like the guides', so it lists them there */
.quickstart.qs-toc { margin: 0; }
@media (min-width: 901px) { .quickstart.qs-toc { display: none; } }
