/* GoToMyCoverage — reskin (2026). Same layout as the original site: left sidebar with the dealer logo,
   menu, Vehicle Details button and mini policy card; a content card with a photo banner and serif title;
   the two big policy buttons; the mail-delivery bar. Colours and type follow JJ's portal mock:
   slate navy + gold, Playfair Display titles over DM Sans text. Phones: sidebar becomes a top bar. */
:root {
  --navy-950: #0b1724;
  --navy-900: #0f1f2e;
  --navy-800: #1a3045;
  --navy-700: #244260;
  --navy-500: #4a7096;
  --navy-300: #8cb4d4;
  --navy-100: #ddeef8;
  --gold-500: #c9a84c;
  --gold-400: #d9bc72;
  --gold-100: #f7efd8;
  --ground: #eef2f6;
  --paper: #ffffff;
  --paper-2: #f7f9fb;
  --line: #dde3e9;
  --line-2: #c9d2db;
  --ink: #1a2e3e;
  --ink-2: #4b6072;
  --ink-3: #6b7f8f;
  --ok: #2f7d5b;     --ok-bg: #e8f4ee;
  --warn: #8a6410;   --warn-bg: #fbf3df;
  --stop: #b53a32;   --stop-bg: #fbecea;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 31, 46, .06), 0 8px 24px -12px rgba(15, 31, 46, .18);
  --rail: 272px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
img, svg { max-width: 100%; }
a { color: var(--navy-500); text-decoration: none; }
a:hover { color: var(--navy-800); text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; color: var(--navy-800); text-wrap: balance; }
p { margin: 0; }
form { margin: 0; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; border-radius: 4px; }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.mono { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--ink-2); }
.subtle { color: var(--ink-3); }
.small { font-size: 13.5px; }
.strong { font-weight: 600; color: var(--ink); }
.missing { color: var(--ink-3); font-weight: 400; font-style: italic; }
.rich br + br { content: ""; display: block; margin-top: 10px; }

/* ================= shell ================= */
.shell { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); min-height: 100vh; }

/* left rail (old blue sidebar) */
.rail { background: linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%); color: var(--navy-100); display: flex; flex-direction: column; position: relative; }
.rail::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 50% at 100% 0%, rgba(201, 168, 76, .10), transparent 60%); }
.rail > * { position: relative; z-index: 1; }
.logo-tile { background: #fff; display: grid; place-items: center; min-height: 112px; padding: 18px 22px; border-bottom: 3px solid var(--gold-500); }
.logo-tile img { max-width: 210px; max-height: 76px; width: auto; height: auto; display: block; }
.logo-tile .dealer-name { font-family: var(--serif); font-size: 20px; color: var(--navy-800); text-align: center; line-height: 1.2; }

.menu { display: flex; flex-direction: column; padding: 34px 0 18px; }
.menu a { position: relative; display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 12px 34px 12px 20px; color: var(--navy-100); font-size: 17px; font-weight: 400; letter-spacing: .01em; }
.menu a:hover { color: #fff; text-decoration: none; background: rgba(255, 255, 255, .04); }
.menu a .i { display: none; }
.menu a.m-only { display: none; }
.menu a.on { color: var(--gold-400); font-weight: 500; }
/* the original site's notch pointing at the page you're on */
.menu a.on::after { content: ""; position: absolute; right: -14px; top: 50%; transform: translateY(-50%); border: 14px solid transparent; border-left-color: #182d41; border-right-width: 0; }

.rail-btn { align-self: center; display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 22px; padding: 9px 18px; border: 1px solid rgba(201, 168, 76, .55); border-radius: 8px; color: var(--gold-400); font-size: 14px; font-weight: 500; }
.rail-btn:hover { background: rgba(201, 168, 76, .12); color: var(--gold-100); text-decoration: none; }
.rail-btn.on { background: var(--gold-500); color: var(--navy-900); border-color: var(--gold-500); }

.rail .mini-card { margin: 0 18px; }
.rail-foot { margin-top: auto; padding: 26px 18px 22px; text-align: center; }
.rail-foot .admin-by { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--navy-300); margin-bottom: 10px; }
.rail-foot .admin-logo { background: #fff; border-radius: 8px; padding: 10px 14px; display: inline-block; }
.rail-foot .admin-logo img { max-width: 180px; max-height: 54px; display: block; }
.rail-foot .admin-name { font-family: var(--serif); font-size: 16px; color: #fff; line-height: 1.3; }
.rail-foot .copy { font-size: 11px; color: var(--navy-300); margin-top: 16px; opacity: .8; }

/* main column */
.main { min-width: 0; display: flex; flex-direction: column; align-items: center; padding: 0 40px 48px; }
.main > * { width: 100%; max-width: 780px; }
.main > .scrim { width: auto; max-width: none; } /* the dialog backdrop covers the whole window */
.topline { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; font-size: 14px; color: var(--ink-2); }
.topline b { color: var(--navy-800); font-weight: 600; }
.topline .logout { display: inline-flex; align-items: center; gap: 6px; color: var(--navy-700); font-weight: 500; }
.topline .logout .i { width: 16px; height: 16px; }

/* content card (old stacked-paper panel) */
.sheet-card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.banner { display: block; width: 100%; height: 172px; object-fit: cover; }
.banner.short { height: 128px; }
/* home-warranty photo: a house needs more height than the road strips, or the roof and porch get cut */
.banner.home, .banner.short.home { height: clamp(170px, 28vw, 220px); }
.sheet-body { padding: 30px 34px 34px; }
.page-title { font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 2.4vw, 31px); line-height: 1.2; color: var(--navy-800); }
.page-title em { font-style: italic; color: var(--gold-500); }
.eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-500); margin-bottom: 8px; }
.lead { margin-top: 14px; color: var(--ink-2); max-width: 64ch; }
.sheet-body > * + .section { margin-top: 28px; }

/* status banner inside the card */
.status { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 22px; border: 1px solid; }
.status .i { width: 20px; height: 20px; margin-top: 1px; }
.status-cancelled { background: var(--stop-bg); color: #7a221c; border-color: #efcdc9; }
.status-cancelled .i { color: var(--stop); }
.status-expired { background: var(--warn-bg); color: #5d430a; border-color: #efdcae; }
.status-expired .i { color: var(--warn); }
.status-info { background: var(--paper-2); color: var(--ink-2); border-color: var(--line); }
.status-info .i { color: var(--navy-500); }
.status-ok { background: var(--ok-bg); color: #1f5a40; border-color: #c8e3d5; }
.status-ok .i { color: var(--ok); }

/* two-column info blocks (Customer | Policy Information) */
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 36px; }
.section-h { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--navy-700); padding-bottom: 8px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.facts { margin: 0; display: grid; gap: 7px; font-size: 14.5px; }
.facts > div { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 10px; }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
@media (max-width: 640px) { .cols2 { grid-template-columns: minmax(0, 1fr); } }

/* company rows (payment processor / policy administrator) */
.org { display: grid; gap: 8px; font-size: 14.5px; }
.org .name { font-weight: 600; color: var(--ink); }
.org .line { display: flex; align-items: center; gap: 8px; color: var(--ink-2); overflow-wrap: anywhere; }
.org .line .i { color: var(--navy-500); width: 17px; height: 17px; }

/* About Us help box */
.help-box { background: var(--paper-2); border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; }
.help-box h2 { font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.25; display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.help-box h2 .i { color: var(--gold-500); width: 26px; height: 26px; }
.help-box dl { margin: 0; display: grid; gap: 14px; }
.help-box dt { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.help-box dd { margin: 2px 0 0; font-size: 17px; font-weight: 600; }
.help-box dd a { color: var(--navy-700); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 30px; align-items: start; }
@media (max-width: 760px) { .about-grid { grid-template-columns: minmax(0, 1fr); } }

/* the two big policy buttons */
.cta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.cta a, .cta button { display: flex; align-items: center; gap: 16px; padding: 16px 20px; min-height: 74px; border-radius: var(--radius); border: 0; background: var(--navy-800); color: #fff; font-family: var(--serif); font-size: 19px; font-weight: 500; text-align: left; cursor: pointer; box-shadow: var(--shadow); transition: background .15s, transform .15s; }
.cta a:hover, .cta button:hover { background: var(--navy-700); color: #fff; text-decoration: none; transform: translateY(-1px); }
.cta .doc { width: 34px; height: 42px; flex: none; color: var(--gold-400); }
.cta .doc .i { width: 34px; height: 42px; stroke-width: 1.3; }
.cta small { display: block; font-family: var(--sans); font-size: 12.5px; font-weight: 400; color: var(--navy-300); margin-top: 2px; }
.cta .off { background: var(--paper); color: var(--ink-3); cursor: default; box-shadow: none; border: 1px dashed var(--line-2); }
.cta .off:hover { background: var(--paper); color: var(--ink-3); transform: none; }
.cta .off .doc { color: var(--line-2); }
.cta .off small { color: var(--ink-3); }
.cta.single { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 560px) { .cta { grid-template-columns: minmax(0, 1fr); } }

/* mail delivery bar */
.mailbar { display: flex; align-items: center; justify-content: space-between; gap: 10px 18px; flex-wrap: wrap; margin-top: 14px; padding: 12px 18px; border-radius: var(--radius); background: var(--navy-900); color: var(--navy-100); font-size: 14px; }
.mailbar .left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mailbar .i { color: var(--gold-400); }
.mailbar a { color: var(--gold-400); font-weight: 500; display: inline-flex; gap: 6px; align-items: center; }
.mailbar a:hover { color: var(--gold-100); }

.foot { margin-top: 28px; font-size: 12px; color: var(--ink-3); text-align: center; }

/* ================= mini policy card (sidebar) + dialog card ================= */
.mini-card { background: #fff; border-radius: 10px; overflow: hidden; color: var(--ink); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .45); }
.mini-card .mc-head { display: flex; justify-content: space-between; align-items: center; background: var(--navy-950); color: var(--gold-400); font-size: 12.5px; font-weight: 600; letter-spacing: .16em; padding: 8px 12px; }
.mini-card .mc-head button { background: none; border: 0; color: var(--navy-300); font-size: 11.5px; letter-spacing: .02em; font-weight: 500; cursor: pointer; padding: 0; }
.mini-card .mc-head button:hover { color: #fff; }
.mini-card .mc-body { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px 12px; font-size: 11.5px; line-height: 1.45; }
.mini-card .mc-body > div:first-child { flex: 1; min-width: 0; }
.mini-card .mc-photo { flex: none; width: 86px; }
.mini-card .mc-body b { display: block; font-size: 12px; color: var(--navy-800); margin-top: 2px; }
.mini-card .mc-body b + span, .mini-card .mc-body span { display: block; color: var(--ink-2); overflow-wrap: anywhere; }
.mini-card .mc-photo { text-align: center; align-self: center; }
.mini-card .mc-photo img { width: 86px; height: 62px; object-fit: contain; display: block; margin: 0 auto 2px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.mini-card .mc-photo span { font-size: 10.5px; font-weight: 600; color: var(--navy-800); }

.scrim { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(11, 23, 36, .55); }
.dialog { width: min(520px, 100%); max-height: calc(100% - 16px); overflow: auto; background: #fff; border-radius: 14px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .5); }
.dialog .mini-card { box-shadow: none; border-radius: 0; }
.dialog .mini-card .mc-head { font-size: 15px; padding: 12px 18px; }
.dialog .mini-card .mc-body { padding: 18px; font-size: 14px; gap: 16px; }
.dialog .mini-card .mc-photo { width: 150px; }
.dialog .mini-card .mc-body b { font-size: 14px; margin-top: 6px; }
.dialog .mini-card .mc-photo img { width: 150px; height: 108px; }
.dialog .mini-card .mc-photo span { font-size: 13px; }
.dialog-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--paper-2); }
.dialog-foot p { font-size: 13px; color: var(--ink-3); }
@media (max-width: 480px) { .dialog .mini-card .mc-body { flex-direction: column-reverse; } .dialog .mini-card .mc-photo { width: 100%; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 8px; border: 1px solid transparent; font-weight: 500; font-size: 14.5px; cursor: pointer; text-decoration: none !important; white-space: nowrap; -webkit-appearance: none; appearance: none; transition: background .15s, border-color .15s; }
.btn .i { width: 17px; height: 17px; }
.btn-primary { background: var(--navy-800); color: #fff; }
.btn-primary:hover { background: var(--navy-700); color: #fff; }
.btn-gold { background: var(--gold-500); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-400); color: var(--navy-900); }
.btn-outline { background: #fff; color: var(--navy-800); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--navy-500); color: var(--navy-800); }
.btn[disabled], .btn.aspNetDisabled { opacity: .45; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-lg { height: 48px; }

/* forms */
.form-grid { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px 16px; align-items: center; max-width: 560px; margin-top: 20px; }
.form-grid > label { font-weight: 500; color: var(--ink-2); font-size: 14.5px; }
.form-grid .pair { display: grid; grid-template-columns: 110px auto minmax(0, 140px); gap: 12px; align-items: center; }
.form-grid .pair label { font-weight: 500; color: var(--ink-2); font-size: 14.5px; justify-self: end; }
.input { width: 100% !important; height: 44px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); font-size: 15px; }
.input:focus { outline: none; border-color: var(--navy-500); box-shadow: 0 0 0 3px rgba(74, 112, 150, .15); }
select.input { -webkit-appearance: none; appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%234a7096' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.input.invalid { border-color: var(--stop); box-shadow: 0 0 0 3px rgba(181, 58, 50, .12); }
.err { grid-column: 2; margin-top: -8px; color: var(--stop); font-size: 12.5px; font-weight: 500; }
.checkline { display: flex; gap: 10px; align-items: center; font-size: 14.5px; }
.checkline input { width: 18px; height: 18px; accent-color: var(--navy-800); margin: 0; }
.form-actions { grid-column: 2; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
@media (max-width: 560px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .form-grid > label { margin-top: 8px; }
  .form-grid .pair { grid-template-columns: minmax(0, 1fr) 120px; gap: 6px 12px; }
  .form-grid .pair label { display: none; }
  .err, .form-actions { grid-column: 1; margin-top: 0; }
}

/* vehicle details */
.spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.spec-grid .facts > div { padding: 8px 0; border-bottom: 1px solid var(--line); }
.warranty { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.warranty th { text-align: left; font-weight: 500; color: var(--ink-3); width: 34%; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.warranty td { padding: 9px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.recall { padding: 16px 0; border-bottom: 1px solid var(--line); }
.recall:last-child { border-bottom: 0; }
.recall h3 { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--ink); }
.recall .meta { font-size: 12.5px; color: var(--ink-3); margin: 2px 0 8px; }
.recall p { font-size: 14px; color: var(--ink-2); }
.recall p b { color: var(--ink); font-weight: 600; }
.recall p + p { margin-top: 6px; }
.veh-head { display: flex; gap: 20px; align-items: center; }
.veh-head img { width: 180px; height: 120px; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; background: #fff; flex: none; }
@media (max-width: 560px) { .spec-grid { grid-template-columns: minmax(0, 1fr); } .veh-head { flex-direction: column; align-items: flex-start; } }

table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--ink-3); padding: 0 12px 8px 0; border-bottom: 1px solid var(--line); }
table.data td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.scroll-x { overflow-x: auto; }

/* mobile copy of the policy card, shown under the buttons on phones */
.mini-card.in-main { display: none; margin-top: 18px; }

/* ================= phones & small tablets: the rail becomes a top bar ================= */
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .rail { flex-direction: row; flex-wrap: wrap; align-items: stretch; position: sticky; top: 0; z-index: 30; }
  .logo-tile { min-height: 0; height: 60px; padding: 8px 14px; border-bottom: 0; border-right: 3px solid var(--gold-500); flex: none; }
  .logo-tile img { max-height: 44px; max-width: 140px; }
  .logo-tile .dealer-name { font-size: 15px; }
  .rail .m-logout { margin-left: auto; align-self: center; padding: 0 16px; color: var(--navy-100); font-size: 14px; }
  .menu { order: 3; width: 100%; flex-direction: row; padding: 0 6px; overflow-x: auto; scrollbar-width: none; border-top: 1px solid rgba(255, 255, 255, .08); }
  .menu a { justify-content: center; padding: 12px 12px; font-size: 14.5px; white-space: nowrap; flex: 1 0 auto; }
  .menu a.on::after { right: 50%; top: auto; bottom: -1px; transform: translateX(50%); border: 9px solid transparent; border-bottom-color: var(--ground); border-top-width: 0; }
  .rail-btn, .rail .mini-card, .rail-foot { display: none; }
  .menu a.m-only { display: flex; }
  .main { padding: 0 16px 32px; }
  .topline { min-height: 52px; }
  .topline .logout { display: none; }
  .banner { height: 130px; }
  .banner.short { height: 104px; }
  .sheet-body { padding: 22px 20px 26px; }
  .mini-card.in-main { display: block; }
  .rail-foot.in-main { display: block; margin-top: 6px; padding: 18px 0 0; }
  .rail-foot.in-main .admin-by { color: var(--ink-3); }
  .rail-foot.in-main .admin-name { color: var(--navy-800); }
  .rail-foot.in-main .copy { color: var(--ink-3); }
}
@media (min-width: 901px) { .rail .m-logout { display: none; } .rail-foot.in-main { display: none; } }

/* ================= sign-in + forgot password (Go To My Coverage) =================
   Full-bleed road photo (the original site's background) in a navy duotone, one serif line, a white sign-in card. */
body.auth { background: var(--navy-950); }
.login { position: relative; isolation: isolate; overflow: hidden; min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); gap: 56px; align-items: center; padding: 104px clamp(24px, 5.5vw, 88px) 72px; }
.login::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("../img/roadbg.jpg") 55% 72% / cover no-repeat; filter: grayscale(1) contrast(1.2) brightness(.92); }
.login::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(96deg, rgba(11, 23, 36, .97) 0%, rgba(11, 23, 36, .86) 34%, rgba(15, 31, 46, .5) 72%, rgba(15, 31, 46, .38) 100%), linear-gradient(0deg, rgba(26, 48, 69, .55), rgba(26, 48, 69, .55)); }
.wordmark { position: absolute; top: 34px; left: clamp(24px, 5.5vw, 88px); display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.wordmark:hover { text-decoration: none; color: #fff; }
.wordmark .mark { width: 40px; height: auto; display: block; }
.wordmark .mono-g { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(201, 168, 76, .7); font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--gold-400); line-height: 1; padding-bottom: 2px; }
.wordmark .wm { font-size: 17px; font-weight: 500; letter-spacing: .01em; color: #fff; }
.wordmark .wm em { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--gold-400); font-size: 19px; margin-left: 2px; }
.story { max-width: 620px; }
.story h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 4.6vw, 66px); line-height: 1.06; letter-spacing: -.01em; color: #fff; }
.story h1 em { font-style: italic; color: var(--gold-400); }
.story .sub { margin-top: 24px; max-width: 42ch; color: rgba(221, 238, 248, .82); font-size: 17px; font-weight: 300; line-height: 1.65; }
.story .rule { display: block; width: 56px; height: 1px; margin: 34px 0 16px; background: var(--gold-500); }
.story .meta { color: var(--navy-300); font-size: 13px; letter-spacing: .02em; }
.login-card { background: #fff; border-radius: 18px; padding: 40px 38px 30px; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .06); }
.login-card h2 { font-family: var(--serif); font-weight: 500; font-size: 32px; line-height: 1.15; color: var(--navy-800); }
.login-card .sub { margin-top: 8px; color: var(--ink-3); font-size: 14.5px; line-height: 1.55; }
.login-card .fields { display: grid; gap: 18px; margin-top: 28px; }
.login-card .input { height: 50px; border-radius: 10px; background: var(--paper-2); border-color: var(--line); font-size: 15.5px; transition: border-color .15s, box-shadow .15s, background .15s; }
.login-card .input:hover { border-color: var(--line-2); }
.login-card .input:focus { background: #fff; border-color: var(--gold-500); box-shadow: 0 0 0 4px rgba(201, 168, 76, .18); }
.login-card .input::placeholder { color: #a9b6c2; }
.field { display: grid; gap: 7px; }
.field label, .label-row { font-size: 13px; font-weight: 500; color: var(--ink); }
.label-row { display: flex; justify-content: space-between; align-items: baseline; }
.label-row a, .login-card .link { font-size: 13px; font-weight: 500; color: var(--navy-500); }
.help { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.affix { position: relative; }
.affix .input { padding-right: 64px; }
.affix button { position: absolute; right: 6px; top: 7px; height: 36px; padding: 0 11px; border: 0; border-radius: 7px; background: transparent; color: var(--navy-500); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.affix button:hover { background: #fff; }
.btn-go { position: relative; width: 100%; height: 52px; margin-top: 4px; border: 0; border-radius: 10px; background: var(--navy-800); color: #fff; font: 500 15.5px var(--sans); letter-spacing: .01em; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none !important; transition: background .15s, transform .15s; }
.btn-go:hover { background: var(--navy-700); color: #fff; }
.btn-go:active { transform: translateY(1px); }
.btn-go .i { color: var(--gold-400); width: 18px; height: 18px; transition: transform .2s; }
.btn-go:hover .i { transform: translateX(3px); }
.login-card .card-foot { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.55; color: var(--ink-3); }
.login-card .back { justify-self: center; }
.ring { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 20px; background: var(--ok-bg); color: var(--ok); }
.ring.warn { background: var(--warn-bg); color: var(--warn); }
.ring .i { width: 22px; height: 22px; vertical-align: 0; }
@media (max-width: 980px) {
  .login { grid-template-columns: minmax(0, 1fr); gap: 28px; align-content: start; padding: 96px 20px 32px; }
  .wordmark { left: 20px; top: 26px; }
  .story h1 { font-size: clamp(32px, 8.5vw, 44px); }
  .story .sub { margin-top: 14px; font-size: 15.5px; }
  .story .rule, .story .meta { display: none; }
  .login-card { padding: 30px 22px 22px; }
  .login::before { background-position: 60% 80%; }
}
@media (prefers-reduced-motion: reduce) { .btn-go .i { transition: none; } }

/* terms page */
.terms { max-width: 720px; margin: 0 auto; padding: 0 16px 48px; }
.terms-head { background: var(--navy-800); border-bottom: 3px solid var(--gold-500); }
.terms-head .in { max-width: 720px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; }
.terms-head .tile { background: #fff; border-radius: 8px; padding: 6px 12px; display: grid; place-items: center; min-height: 48px; }
.terms-head .tile img { max-height: 40px; max-width: 160px; }
.legal { font-size: 13.5px; line-height: 1.65; color: var(--ink-2); background: var(--paper-2); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; }
.legal b { color: var(--ink); }
.legal p + p { margin-top: 10px; }
.actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.about-portal { margin-top: 18px; font-size: 12.5px; color: var(--ink-3); }
.about-portal summary { cursor: pointer; font-weight: 500; color: var(--ink-2); }
.about-portal p { margin-top: 8px; line-height: 1.6; }
@media (max-width: 560px) { .actions { flex-direction: column-reverse; } .actions .btn { width: 100%; } }

/* ================= print: only the policy card ================= */
/* ================= wallet policy card (View / Print) ================= */
.wallet-dialog { width: min(780px, 100%); }
.wallet { padding: 26px 22px; background: var(--paper-2); }
.wallet-note { display: none; }
.wallet-pair { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }
.pcard { position: relative; width: 340px; max-width: 100%; aspect-ratio: 1.586; border-radius: 12px; overflow: hidden; font-size: 10px; display: flex; flex-direction: column; box-shadow: 0 14px 30px -14px rgba(11, 23, 36, .5), 0 0 0 1px rgba(11, 23, 36, .08); }
.pc-front { background: #fff repeating-linear-gradient(135deg, rgba(26, 48, 69, .035) 0 1px, transparent 1px 6px); color: var(--ink); }
.pc-band { flex: none; height: 27%; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 0 1.2em; background: linear-gradient(115deg, var(--navy-800), var(--navy-950)); border-bottom: 2px solid var(--gold-500); }
.pc-logo { height: 68%; max-width: 52%; display: flex; align-items: center; padding: .3em .7em; background: #fff; border-radius: 6px; }
.pc-logo img { max-height: 100%; max-width: 100%; display: block; }
.pc-logo b { font-size: 1.1em; color: var(--navy-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-kind { text-align: right; color: var(--navy-300); font-size: .78em; line-height: 1.35; }
.pc-kind b { display: block; color: var(--gold-400); font-size: 1.18em; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.pc-body { flex: 1; min-height: 0; display: flex; gap: .9em; padding: .7em 1.2em .35em; }
.pc-info { flex: 1; min-width: 0; }
.pc-k { display: block; font-size: .7em; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.pc-name { display: block; margin-bottom: .35em; font-family: var(--serif); font-size: 1.6em; line-height: 1.15; color: var(--navy-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-grid { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .28em .8em; }
.pc-grid .two { grid-column: span 2; }
.pc-grid .wide { grid-column: 1 / -1; }
.pc-grid dt { font-size: .68em; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.pc-grid dd { margin: 0; font-size: 1em; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-mono { font-family: var(--mono); font-weight: 500 !important; letter-spacing: .03em; }
.pc-photo { flex: none; width: 33%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3em; }
.pc-photo img { width: 100%; height: auto; max-height: 7.2em; object-fit: contain; }
.pc-photo span { font-size: .82em; font-weight: 600; color: var(--navy-800); text-align: center; }
.pc-foot { flex: none; display: flex; justify-content: space-between; align-items: center; padding: .5em 1.2em; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .8); }
.pc-foot span { font-size: .72em; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.pc-foot b { font-size: 1.15em; color: var(--navy-800); letter-spacing: .02em; }
.pc-void { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-10deg); padding: .15em .8em; border: 2px solid var(--stop); color: var(--stop); background: rgba(255, 255, 255, .82); font-size: 1.7em; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.pc-back { justify-content: space-between; padding: 1.1em 1.3em 1em; color: #fff; background: linear-gradient(150deg, var(--navy-800), var(--navy-950)); }
.pc-back::after { content: ""; position: absolute; top: -40%; right: -18%; width: 70%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(201, 168, 76, .18); pointer-events: none; }
.pc-back > * { position: relative; }
.pc-back-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1em; padding-bottom: .5em; border-bottom: 1px solid rgba(201, 168, 76, .35); }
.pc-back-head b { font-family: var(--serif); font-weight: 500; font-size: 1.5em; color: var(--gold-400); }
.pc-back-head span { font-family: var(--mono); font-size: .8em; color: var(--navy-300); white-space: nowrap; }
.pc-calls { margin: .2em 0 0; display: grid; gap: .5em; }
.pc-calls div { display: flex; justify-content: space-between; align-items: baseline; gap: 1em; }
.pc-calls dt { font-size: .88em; color: var(--navy-300); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-calls dd { margin: 0; font-size: 1.35em; font-weight: 600; white-space: nowrap; }
.pc-fine { font-size: .72em; line-height: 1.4; color: var(--navy-300); }

/* ================= print ================= */
@page wallet { size: letter portrait; margin: 0; }
@media print {
  body { background: #fff; }
  .rail, .topline, .cta, .mailbar, .foot, .mini-card.in-main, .rail-foot.in-main { display: none !important; }
  body:not(.printing-card) .scrim { display: none !important; }
  body.printing-card .main > *:not(.scrim) { display: none !important; }
  body.printing-card .shell, body.printing-card .main { display: block; padding: 0; }
  body.printing-card .scrim { position: static; background: none; padding: 0; display: block !important; }
  body.printing-card .dialog { box-shadow: none; width: auto; max-height: none; overflow: visible; border-radius: 0; }
  body.printing-card .dialog-foot { display: none !important; }
  /* the card sheet: real CR80 size, front and back side by side so it folds along the middle */
  body.printing-card { page: wallet; }            /* on body, not .wallet: a named page on a child forces a blank first page */
  body.printing-card .wallet { padding: .8in .6in; background: none; }
  body.printing-card .wallet-note { display: block; margin: 0 0 12pt; text-align: center; font-size: 8.5pt; color: #666; }
  body.printing-card .wallet-pair { gap: 0; flex-wrap: nowrap; }
  body.printing-card .pcard { width: 3.375in; height: 2.125in; aspect-ratio: auto; font-size: 7.2pt; box-shadow: none; border: 1px dashed #9aa5b1; }
  body.printing-card .pc-front { border-radius: .125in 0 0 .125in; border-right-style: dotted; }
  body.printing-card .pc-back { border-radius: 0 .125in .125in 0; border-left: 0; }
  .pcard, .pcard *, .mini-card, .mini-card * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ================= motion: transitions, skeletons, optimistic feedback =================
   Subtle on purpose: short fades and small rises, nothing that bounces or loops except loading shimmer. */
@view-transition { navigation: auto; }                      /* cross-page fade instead of a white flash (Chrome/Edge 126+) */
.rail { view-transition-name: rail; }                       /* the sidebar stays put; only the page content changes */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; animation-timing-function: var(--ease, ease); }
:root { --ease: cubic-bezier(.2, .7, .2, 1); }

@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }

/* page content eases in, in reading order */
.main > .status, .main > .sheet-card, .main > .cta, .main > .mailbar, .main > .mini-card.in-main { animation: rise .42s var(--ease) both; }
.main > .sheet-card { animation-delay: .03s; }
.main > .cta { animation-delay: .09s; }
.main > .mailbar, .main > .mini-card.in-main { animation-delay: .14s; }
.reveal { animation: rise .6s var(--ease) both; }
.login .reveal + .reveal { animation-delay: .12s; }
.login::before { animation: fade 1.1s ease both; }

/* micro-interactions */
.menu a { transition: color .18s, background-color .18s; }
.menu a.on::after { transition: transform .2s var(--ease); }
.rail-btn, .btn, .cta a, .cta button, .mini-card .mc-head button, .topline .logout { transition: background-color .18s, border-color .18s, color .18s, transform .18s, box-shadow .18s; }
.cta a:active, .cta button:active, .btn:active { transform: translateY(1px) scale(.995); }
.input { transition: border-color .15s, box-shadow .15s, background-color .15s; }

/* images fade in over a shimmer instead of popping */
.img-wait { background-image: linear-gradient(90deg, #e7ecf2 0%, #f4f7fa 45%, #e7ecf2 90%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
img.fade-in { opacity: 0; transition: opacity .45s ease; }
img.fade-in.loaded { opacity: 1; }

/* skeleton blocks */
.skel { display: block; border-radius: 6px; background-image: linear-gradient(90deg, #e7ecf2 0%, #f4f7fa 45%, #e7ecf2 90%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
.skel.line { height: 12px; margin: 10px 0; }
.skel.title { height: 30px; width: 55%; margin-bottom: 18px; }
.skel.banner { height: 172px; border-radius: 0; }
.skel.short { width: 40%; }
.skel.mid { width: 72%; }
.skel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.skel-card .sheet-body { padding: 30px 34px; }
@media (max-width: 560px) { .skel-grid { grid-template-columns: minmax(0, 1fr); } }

/* optimistic navigation: the clicked menu item lights up and a skeleton stands in while the next page loads */
body.navigating .main > .sheet-card:not(.skel-card), body.navigating .main > .status { display: none; }
body.navigating .main > .cta, body.navigating .main > .mailbar { opacity: .55; transition: opacity .2s; }

/* busy buttons (sign in, submit, continue) */
.is-busy { pointer-events: none; opacity: .85; }
.is-busy .i { display: none; }
.is-busy::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
input.is-busy::before { content: none; }

/* async sections (Vehicle Details) fade in when they arrive */
.loaded-in { animation: fade .35s ease both; }

/* dialog */
.scrim:not([hidden]) { animation: fade .18s ease both; }
.scrim:not([hidden]) .dialog { animation: pop .26s var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  @view-transition { navigation: none; }
  img.fade-in { opacity: 1; }
}
