/* ==========================================================================
   FoamGuard Pay — pay.css
   Same tokens as site.css (logo blue / gold / red / light blue on white),
   self-contained so the payment pages load one small stylesheet.
   ========================================================================== */

@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("/assets/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap; src: url("/assets/fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 400; font-display: swap; src: url("/assets/fonts/archivo-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 500; font-display: swap; src: url("/assets/fonts/archivo-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 600; font-display: swap; src: url("/assets/fonts/archivo-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 700; font-display: swap; src: url("/assets/fonts/archivo-latin-700-normal.woff2") format("woff2"); }

:root {
  --bg: #FFFFFF;
  --ink: #0B1421;
  --blue: #1B5FCC;
  --blue-deep: #12408F;
  --gold: #EDC748;
  --gold-hi: #FCCC00;
  --red: #C0272F;
  --red-deep: #9E1F26;
  --teal: #00A8CC;
  --green: #1E9E5A;
  --paper: #F5F4F0;
  --line: #DDDBD4;
  --line-2: #EEECE6;
  --text: #16202E;
  --text-2: #56606E;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --shell: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 4px;
  --ease-out: cubic-bezier(.2,.7,.2,1);
  --swoop: cubic-bezier(.16,1,.3,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
::selection { background: var(--gold-hi); color: var(--ink); }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: .95; margin: 0; color: var(--ink); letter-spacing: -.005em; }
p { margin: 0; }
.visually-hidden, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.shell { width: min(var(--shell), 100% - 2 * var(--gutter)); margin-inline: auto; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .92em; letter-spacing: 0; }
.small { font-size: 12px; }
.muted { color: var(--text-2); }
.link { color: var(--blue); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.i { width: 20px; height: 20px; flex: none; }

.rule4 { height: 5px; display: grid; grid-template-columns: 3fr 1fr 1fr 1fr; }
.rule4 i:nth-child(1) { background: var(--blue); }
.rule4 i:nth-child(2) { background: var(--gold-hi); }
.rule4 i:nth-child(3) { background: var(--red); }
.rule4 i:nth-child(4) { background: var(--teal); }
.ruler { height: 14px; margin-top: 18px; max-width: 240px; color: var(--blue); opacity: .85;
  background: repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 12px) 0 0 / 100% 6px no-repeat,
              repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 48px) 0 0 / 100% 14px no-repeat; }

.testbar { background: var(--gold-hi); color: var(--ink); text-align: center; font-size: 13px; font-weight: 700; padding: 6px 12px; letter-spacing: .02em; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 26px; border-radius: var(--radius);
  font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; text-align: center;
  transition: transform .18s var(--ease-out), background-color .18s, box-shadow .18s, color .18s; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 24px -8px rgba(192,39,47,.55); }
.btn-primary:hover:not(:disabled) { background: var(--red-deep); }
.btn-ghost { color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); background: #fff; }
.btn-ghost:hover:not(:disabled) { background: var(--ink); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-deep); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 18px; }
.btn .i { width: 20px; height: 20px; }

/* ---------- Header (focused: logo, secure, phone) ---------- */
.pay-top { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95); backdrop-filter: saturate(140%) blur(10px); }
.pay-top .bar { height: 68px; display: flex; align-items: center; gap: 16px; }
.brand img { height: 46px; width: auto; }
.secure { display: none; align-items: center; gap: 8px; margin-left: 6px; padding-left: 16px; border-left: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--text-2); }
.secure .i { width: 16px; height: 16px; color: var(--green); }
.phone { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: .02em; color: var(--ink); white-space: nowrap; }
.phone .i { width: 18px; height: 18px; color: var(--blue); }
@media (min-width: 640px) { .secure { display: inline-flex; } .brand img { height: 52px; } .pay-top .bar { height: 76px; } }
@media (max-width: 420px) { .phone span { display: none; } .phone { width: 44px; height: 44px; justify-content: center; border: 2px solid var(--line); border-radius: var(--radius); } }

/* ---------- Page ---------- */
.pay-main { padding: clamp(28px, 5vw, 64px) 0 clamp(72px, 9vw, 120px); }
.pay-main.narrow { max-width: 760px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); margin-bottom: 14px; }
.pay-hero h1 { font-size: clamp(44px, 8vw, 88px); text-wrap: balance; }
.pay-hero h1 em { font-style: normal; color: var(--blue); }
.pay-hero .lede { margin-top: 16px; font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); max-width: 46ch; }
.pay-hero .lede b { color: var(--ink); }
.pay-hero.handoff { padding-top: 40px; }

.pay-grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "hero" "due" "sched"; }
.pay-hero { grid-area: hero; }
.due { grid-area: due; }
.sched { grid-area: sched; }
@media (min-width: 980px) {
  .pay-grid { grid-template-columns: minmax(0, 1.25fr) minmax(360px, .9fr); grid-template-areas: "hero due" "sched due"; column-gap: clamp(36px, 5vw, 72px); row-gap: 44px; align-items: start; }
  .pay-grid > .due { position: sticky; top: 104px; }
}

/* ---------- Flash (after checkout) ---------- */
.flash { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--radius); margin-bottom: 30px; border: 1.5px solid var(--line); background: #fff;
  animation: flashIn .6s var(--swoop) both; }
.flash b { display: block; font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; color: var(--ink); text-transform: uppercase; letter-spacing: .01em; }
.flash span { display: block; margin-top: 4px; color: var(--text-2); font-size: 16px; }
.flash-ok { border-color: var(--green); box-shadow: 0 24px 48px -36px rgba(30,158,90,.7); }
.flash-ok b { color: var(--green); }
.flash-bad { border-color: var(--red); }
.flash-bad b { color: var(--red); }
.flash-info { background: var(--paper); border-color: var(--line); }
.tickmark { width: 52px; height: 52px; flex: none; }
.tickmark circle { fill: none; stroke: var(--green); stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .7s var(--ease-out) .15s forwards; }
.tickmark path { fill: none; stroke: var(--green); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .45s var(--ease-out) .7s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes flashIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* ---------- Due card ---------- */
.due { background: #fff; border: 1.5px solid var(--ink); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); position: relative; overflow: hidden;
  box-shadow: 0 40px 80px -48px rgba(11,20,33,.5); display: grid; gap: 12px; }
.due::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--blue) 0 55%, var(--gold-hi) 55% 70%, var(--red) 70% 85%, var(--teal) 85% 100%); }
.kicker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; font-weight: 600; color: var(--text-2); margin-top: 4px; }
.due-title { font-size: clamp(32px, 4vw, 40px); }
.due-when { color: var(--text-2); font-size: 15px; margin-top: -6px; }
.due-amt { font-family: var(--display); font-weight: 800; font-size: clamp(60px, 9vw, 84px); line-height: .9; color: var(--ink); letter-spacing: -.01em; margin: 6px 0 4px; }
.due-amt .c { font-size: .5em; vertical-align: .72em; margin-left: 2px; letter-spacing: 0; }
.due-copy { color: var(--text-2); font-size: 16px; }
.due-copy b { color: var(--ink); }
.pay-actions { display: grid; gap: 10px; margin-top: 4px; }
.pay-actions .btn { width: 100%; }
.pay-actions .btxt { flex: 1; text-align: left; }
.btn-bank .tag { font-family: var(--body); font-weight: 700; font-size: 12px; letter-spacing: .06em; background: #fff; color: var(--red); padding: 4px 8px; border-radius: 3px; }

.pay-actions .hint { font-size: 13px; color: var(--text-2); margin: -2px 2px 6px; }
.pay-actions.busy .btn { pointer-events: none; }
.pay-actions .btn.loading { opacity: .85; }
.pay-actions .btn.loading .btxt::after { content: "…"; }
.fine { font-size: 13px; color: var(--text-2); }
.fine.note { background: var(--paper); padding: 10px 12px; border-left: 3px solid var(--gold-hi); }

.steps { list-style: none; margin: 6px 0 4px; padding: 0; display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line-2); }
.step:first-child { border-top: 0; padding-top: 6px; }
.step .n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 22px; }
.step.now .n { background: var(--red); color: #fff; }
.step.locked .n { background: var(--paper); color: var(--text-2); box-shadow: inset 0 0 0 1.5px var(--line); }
.step.locked .n .i { width: 18px; height: 18px; }
.step b { display: block; font-size: 17px; color: var(--ink); line-height: 1.25; }
.step span { display: block; font-size: 14px; color: var(--text-2); margin-top: 2px; }
.step .btn { margin-top: 12px; }
.step.locked b { color: var(--text-2); }

.next { background: var(--paper); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 2px; }
.next span { font-size: 14px; color: var(--text-2); }
.next b { font-family: var(--display); font-weight: 800; font-size: 26px; color: var(--ink); line-height: 1.1; }

details.other { border-top: 1px solid var(--line-2); padding-top: 12px; margin-top: 4px; }
details.other summary { cursor: pointer; font-weight: 600; font-size: 15px; color: var(--ink); list-style: none; display: flex; align-items: center; gap: 8px; }
details.other summary::-webkit-details-marker { display: none; }
details.other summary::after { content: "+"; font-family: var(--display); font-size: 22px; line-height: 1; color: var(--blue); margin-left: auto; }
details.other[open] summary::after { content: "–"; }
.other-body { display: grid; gap: 12px; margin-top: 12px; }
.way { display: grid; gap: 2px; font-size: 14px; color: var(--text-2); }
.way b { color: var(--ink); font-size: 15px; }
.way strong { color: var(--ink); }
.report { display: grid; gap: 6px; }
.report-row { display: flex; gap: 8px; }
.report select { flex: 1; min-height: 44px; border: 2px solid var(--line); border-radius: var(--radius); padding: 0 10px; font: inherit; font-size: 15px; background: #fff; }
.lbl { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text-2); }

/* ---------- Direct bank transfer (3.0.1): the customer sends it from their bank; FoamGuard covers the bank's fee ---------- */
details.wire { border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .18s; }
details.wire[open] { border-color: var(--ink); }
details.wire summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 60px; }
details.wire summary::-webkit-details-marker { display: none; }
details.wire summary::after { content: "+"; font-family: var(--display); font-size: 24px; line-height: 1; color: var(--blue); margin-left: auto; padding-left: 4px; }
details.wire[open] summary::after { content: "–"; }
details.wire summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.w-ico { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #E8F0FC; color: var(--blue-deep); }
.w-txt { display: grid; gap: 2px; min-width: 0; }
.w-txt b { font-size: 16px; color: var(--ink); line-height: 1.2; }
.w-txt span { font-size: 13.5px; color: var(--text-2); line-height: 1.35; }
.wire-body { display: grid; gap: 12px; padding: 0 14px 14px; }
.w-sum { background: var(--paper); border-radius: var(--radius); padding: 4px 12px; }
.w-sum div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; font-size: 14.5px; color: var(--text-2); border-top: 1px solid var(--line); }
.w-sum div:first-child { border-top: 0; }
.w-sum dd { margin: 0; font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; white-space: nowrap; }
.w-sum .cr dd { color: var(--green); }
.w-sum .send { border-top: 1.5px solid var(--ink); }
.w-sum .send dt { color: var(--ink); font-weight: 700; }
.w-sum .send dd { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1; }
.w-note { font-size: 14px; color: var(--text-2); }
.w-note b { color: var(--ink); font-weight: 600; }
.w-det { border: 1px solid var(--line); border-radius: var(--radius); }
.w-det div { display: grid; grid-template-columns: minmax(0, 7.6em) minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 10px; border-top: 1px solid var(--line-2); font-size: 14px; }
.w-det div:first-child { border-top: 0; }
.w-det dt { color: var(--text-2); }
.w-det dd { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--ink); font-weight: 600; min-width: 0; }
.w-det dd > span { min-width: 0; overflow-wrap: anywhere; }
.w-det dd > span.mono { white-space: nowrap; overflow-wrap: normal; font-size: 15px; letter-spacing: .02em; }
.w-det .copy { flex: none; font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--blue); background: #fff;
  border: 1.5px solid currentColor; border-radius: 3px; padding: 0 10px; min-height: 32px; cursor: pointer; }
.w-det .copy:hover { background: #E8F0FC; }
.w-det .copy.ok { color: var(--green); }
.w-safe { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-2); background: var(--paper); padding: 10px 12px; border-left: 3px solid var(--gold-hi); }
.w-safe .i { width: 18px; height: 18px; color: var(--green); margin-top: 1px; }
.w-safe a { color: var(--ink); font-weight: 600; white-space: nowrap; }
.w-report { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.w-report span { font-size: 13px; color: var(--text-2); flex: 1 1 12em; }
@media (max-width: 520px) { .w-det div { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 8px 12px; } .w-det dt { font-size: 12.5px; } }
/* 3.1.2: bank transfer only: the transfer is the payment block itself (open, numbered steps, confirmation number, call for help) */
.wire.main { border: 1.5px solid var(--ink); border-radius: var(--radius); background: #fff; }
.wire.main .w-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 60px; }
.w-steps { margin: 0; padding: 0; list-style: none; counter-reset: wst; display: grid; gap: 8px; }
.w-steps li { counter-increment: wst; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 14.5px; color: var(--text-2); line-height: 1.4; }
.w-steps li::before { content: counter(wst); width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 15px; line-height: 1; }
.w-steps b { color: var(--ink); font-weight: 600; }
.w-conf { display: grid; gap: 4px; flex: 1 1 100%; font-size: 13px; color: var(--text-2); }
.w-conf i { font-style: normal; color: var(--text-3, #7A8494); }
.w-conf input { min-height: 44px; border: 2px solid var(--line); border-radius: var(--radius); padding: 0 12px; font: inherit; font-size: 15px; background: #fff; width: 100%; }
.w-conf input:focus { outline: none; border-color: var(--blue); }
.wire.main .w-report .btn-primary { min-height: 52px; padding-inline: 26px; }
.w-help { font-size: 14px; color: var(--text-2); border-top: 1px solid var(--line-2); padding-top: 10px; }
.w-help a { color: var(--ink); font-weight: 700; white-space: nowrap; }
@media (max-width: 520px) { .wire.main .w-report .btn-primary { width: 100%; } }
@media print { .w-det .copy, .w-report, .mobile-bar { display: none !important; } }
/* 3.1.3: two choices, direct bank transfer and bank sign-in; one open at a time (details name=payopt; pay.js backs up older browsers) */
.pay-choice { display: grid; gap: 10px; min-width: 0; }
.pay-choice > details { min-width: 0; max-width: 100%; }
.pay-choice details.wire.opt summary::after { flex: none; }
.pay-choice .signin .btn-bank { padding: 0 16px; gap: 8px; }
.pay-choice .signin .btn-bank .btxt { white-space: nowrap; text-align: left; line-height: 1.2; }
.pay-choice .signin .btn-bank .tag { flex: none; }
.pay-choice .signin .w-steps li { min-width: 0; } .pay-choice .signin .w-steps li span { min-width: 0; overflow-wrap: anywhere; }
.pay-choice details.wire.opt summary { min-height: 64px; }
.pay-choice details.wire.opt[open] { border-color: var(--ink); }
.pay-choice details.wire.opt:not([open]) { background: var(--paper); }
.pay-choice details.wire.opt:not([open]) summary::after { content: "Choose"; font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--blue); }
.pay-choice details.wire.opt[open] summary::after { content: "–"; }
.pay-choice .signin .w-ico { background: #E3F4EA; color: #146B3D; }
.pay-choice .signin .pay-actions { margin: 0; }
.pay-choice .signin .btn-bank { width: 100%; justify-content: center; }

/* ---------- Chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; padding: 4px 9px; border-radius: 3px; line-height: 1.2; white-space: nowrap; }
.chip-due { background: var(--red); color: #fff; }
.chip-paid { background: #E3F4EA; color: #146B3D; }
.chip-proc { background: #FFF4C2; color: #6B5400; }
.chip-next { background: var(--paper); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line); }
.chip-wait { background: #E8F0FC; color: var(--blue-deep); }

/* ---------- Schedule ---------- */
.sched-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sched-head h2 { font-size: clamp(30px, 4vw, 44px); }
.sched-head p { color: var(--text-2); font-size: 15px; }
.sched-head p b { color: var(--ink); }
.meter { position: relative; display: flex; height: 16px; margin: 16px 0 6px; background: var(--paper); border-radius: 2px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.meter::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(90deg, rgba(11,20,33,.35) 0 1px, transparent 1px 10%) 0 100% / 100% 6px no-repeat; }
.meter i { display: block; height: 100%; }
.meter .m-paid { background: var(--blue); transition: width 1.2s var(--ease-out); }
.meter .m-proc { background: repeating-linear-gradient(135deg, var(--gold-hi) 0 6px, #F6DD6A 6px 12px); }
.meter.sm { height: 8px; margin: 10px 0 8px; }
.meter.sm::after { display: none; }

.ms-list { list-style: none; margin: 18px 0 0; padding: 0; position: relative; }
.ms { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 16px 0; border-top: 1px solid var(--line-2); position: relative; }
.ms:last-child { border-bottom: 1px solid var(--line-2); }
.ms .dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 2px var(--line); color: var(--text-2); }
.ms .dot b { font-family: var(--display); font-weight: 800; font-size: 19px; }
.ms .dot .i { width: 18px; height: 18px; }
.ms.st-paid .dot { background: var(--green); color: #fff; box-shadow: none; }
.ms.st-processing .dot { background: var(--gold-hi); color: var(--ink); box-shadow: none; }
.ms.st-due .dot { box-shadow: inset 0 0 0 2px var(--red); color: var(--red); }
.ms.is-focus { background: linear-gradient(90deg, rgba(27,95,204,.06), transparent 70%); margin-inline: -12px; padding-inline: 12px; }
.ms-body b { display: block; font-size: 17px; color: var(--ink); line-height: 1.3; }
.ms-body span { display: block; font-size: 14px; color: var(--text-2); }
.ms-body small { display: block; font-size: 13px; color: var(--text-2); margin-top: 4px; }
.ms-body small a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.ms-amt { text-align: right; display: grid; justify-items: end; gap: 6px; }
.ms-amt .num { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1; color: var(--ink); }
.ms.st-void .ms-amt .num { text-decoration: line-through; color: var(--text-2); }

.totals { margin: 18px 0 0; display: grid; gap: 0; }
.totals div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; font-size: 15px; color: var(--text-2); }
.totals dd, .totals dt { margin: 0; }
.totals dd { color: var(--ink); font-weight: 600; }
.totals .grand { border-top: 2px solid var(--ink); margin-top: 4px; padding-top: 11px; color: var(--ink); font-weight: 700; }
.totals .bal { font-weight: 700; color: var(--ink); }
.totals .bal dd { font-family: var(--display); font-size: 26px; font-weight: 800; line-height: 1; }
.totals.sm .bal dd { font-size: 22px; }

.proj { margin: 26px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px 24px; padding: 18px; background: var(--paper); border-radius: var(--radius); }
.proj div { display: grid; gap: 2px; align-content: start; }
.proj dt { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-2); }
.proj dd { margin: 0; font-size: 15px; color: var(--ink); }

/* ---------- Notes ---------- */
.notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin-top: clamp(40px, 6vw, 72px); padding-top: clamp(28px, 4vw, 40px); border-top: 1px solid var(--line-2); }
.note-card { display: flex; gap: 14px; }
.note-card > .i { width: 26px; height: 26px; color: var(--blue); margin-top: 2px; }
.note-card b { display: block; font-size: 16px; color: var(--ink); }
.note-card p { font-size: 14px; color: var(--text-2); margin-top: 4px; }

/* ---------- Footer ---------- */
.pay-foot { border-top: 1px solid var(--line); background: var(--paper); padding: 28px 0 40px; font-size: 13px; color: var(--text-2); }
.pay-foot .shell { display: grid; gap: 8px; }
.pay-foot .proc { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text); }
.pay-foot .proc .i { width: 18px; height: 18px; color: var(--green); margin-top: 2px; }
.pay-foot a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Mobile quick bar ---------- */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; grid-template-columns: 1fr 2fr; gap: 1px; background: var(--line); padding-bottom: env(safe-area-inset-bottom); }
.mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 58px; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: .02em; text-transform: uppercase; }
.mobile-bar .call { background: var(--ink); color: #fff; }
.mobile-bar .quote { background: var(--red); color: #fff; }
.mobile-bar .i { width: 20px; height: 20px; }
@media (max-width: 979px) { body.has-bar .mobile-bar { display: grid; } body.has-bar .pay-foot { padding-bottom: 100px; } }
.mobile-bar.hide { transform: translateY(110%); }
.mobile-bar { transition: transform .25s var(--ease-out); }

/* ---------- Receipt ---------- */
.crumb { font-size: 14px; margin-bottom: 18px; }
.crumb a { color: var(--blue); font-weight: 600; }
.receipt { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); position: relative; box-shadow: 0 30px 60px -40px rgba(11,20,33,.4); }
.receipt::before { content: ""; position: absolute; inset: 10px; border: 2px solid var(--gold-hi); border-radius: 2px; pointer-events: none; }
.receipt::after { content: ""; position: absolute; inset: 16px; border: 1px solid var(--blue); opacity: .45; border-radius: 2px; pointer-events: none; }
.r-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 3px solid var(--red); padding-bottom: 14px; }
.r-head img { height: 42px; width: auto; }
.r-head div { text-align: right; }
.r-head b { display: block; font-family: var(--display); font-weight: 800; font-size: 24px; text-transform: uppercase; color: var(--ink); }
.r-head span { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; color: var(--text-2); }
.r-stamp { display: inline-block; margin-top: 24px; font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: .12em; text-transform: uppercase; color: var(--green); border: 2.5px solid var(--green); padding: 2px 12px; transform: rotate(-3deg); }
.r-stamp.refunded { color: var(--red); border-color: var(--red); }
.r-amt { font-family: var(--display); font-weight: 800; font-size: clamp(56px, 10vw, 88px); line-height: 1; color: var(--ink); margin-top: 10px; }
.r-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 24px; margin: 24px 0 0; }
.r-grid div, .r-tot div { display: grid; gap: 2px; align-content: start; }
.r-grid dt { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-2); }
.r-grid dd { margin: 0; font-size: 16px; color: var(--ink); }
.r-tot { margin: 26px 0 0; border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 4px; }
.r-tot div { display: flex; justify-content: space-between; font-size: 15px; color: var(--text-2); }
.r-tot dd { margin: 0; color: var(--ink); font-weight: 600; }
.r-tot .bal { font-weight: 700; color: var(--ink); }
.r-foot { margin-top: 26px; font-size: 12px; color: var(--text-2); position: relative; z-index: 1; }
.r-actions { margin-top: 18px; display: flex; gap: 10px; }
@media print {
  .pay-top, .pay-foot, .r-actions, .crumb, .testbar, .mobile-bar { display: none !important; }
  .receipt { box-shadow: none; }
  body { font-size: 12pt; }
}

/* ==========================================================================
   Admin (mobile-first: Dan uses this from the truck)
   ========================================================================== */
body.adm { background: #FAFAF8; }
.adm-top .bar { height: 64px; }
.adm-top .brand img { height: 38px; }
.adm-nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.adm-nav a, .adm-nav button { padding: 8px 10px; font-weight: 600; font-size: 15px; color: var(--text-2); border-radius: var(--radius); }
.adm-nav a:hover, .adm-nav button:hover { background: var(--paper); color: var(--ink); }
.adm-nav a.new { color: var(--red); }
.adm-nav form { margin: 0; }
@media (max-width: 520px) { .adm-nav button { display: none; } }
.adm-main { padding: 22px 0 80px; }
.adm-main.narrow { max-width: 460px; }
.adm-h1 { font-size: clamp(36px, 6vw, 56px); }
.adm-h1 em { font-style: normal; color: var(--blue); }
.adm-login { padding-top: 40px; display: grid; gap: 18px; }
.adm-login h1 { font-size: 56px; }
.adm-login h1 em { font-style: normal; color: var(--blue); }
.stack { display: grid; gap: 14px; }
.adm-flash { padding: 12px 16px; border-radius: var(--radius); background: #E3F4EA; color: #0F5130; font-weight: 600; font-size: 15px; margin: 0 0 18px; border-left: 4px solid var(--green); }
.adm-flash.bad { background: #FBE9EA; color: #7A1117; border-left-color: var(--red); }
.adm-flash ul { margin: 6px 0 0; padding-left: 18px; font-weight: 500; }
.crumb { margin: 0 0 10px; }
input, select, textarea { font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 10px 12px; min-height: 46px; width: 100%; }
textarea { min-height: 0; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(27,95,204,.16); }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; min-height: 0; accent-color: var(--blue); flex: none; }
code { font-family: ui-monospace, Menlo, monospace; background: var(--paper); padding: 1px 5px; border-radius: 3px; font-size: .9em; }

.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 6px 0 18px; }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tiles div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: grid; gap: 2px; }
.tiles span { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-2); }
.tiles b { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; color: var(--ink); }
.tiles div:first-child b { color: var(--red); }
.adm-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.seg { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 3px; }
.seg a { padding: 7px 12px; font-size: 14px; font-weight: 600; color: var(--text-2); border-radius: 3px; }
.seg a[aria-current] { background: var(--ink); color: #fff; }
.search { flex: 1; min-width: 180px; }
.search input { min-height: 44px; }
.plan-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 900px) { .plan-list { grid-template-columns: 1fr 1fr; } }
.plan-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; transition: border-color .15s, box-shadow .15s; }
.plan-card:hover { border-color: var(--ink); box-shadow: 0 16px 30px -24px rgba(11,20,33,.5); }
.plan-card.hot { border-left: 4px solid var(--red); }
.pc-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.pc-top b { font-size: 17px; color: var(--ink); }
.pc-top .mono { font-size: 12px; color: var(--text-2); }
.pc-proj { font-size: 14px; color: var(--text-2); }
.pc-foot { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--text-2); flex-wrap: wrap; }
.pc-foot b { color: var(--ink); }
.empty { text-align: center; padding: 50px 16px; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); display: grid; gap: 12px; justify-items: center; }
.empty h2 { font-size: 32px; }
.empty p { color: var(--text-2); max-width: 44ch; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-top: 16px; }
.panel h2 { font-size: 26px; margin-bottom: 8px; }
.panel-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.panel.warn { border-color: var(--gold); background: #FFFBEA; }
.panel.danger summary { color: var(--text-2); font-size: 14px; font-weight: 600; cursor: pointer; }
.panel p.muted { font-size: 14px; margin-bottom: 10px; }
.panel details > summary { cursor: pointer; }
.ph { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.ph .muted { font-size: 14px; margin-top: 6px; }
.ph-money { text-align: right; }
.ph-money b { display: block; font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1; color: var(--ink); }
.ph-money span { font-size: 13px; color: var(--text-2); }
.linkbox { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-top: 12px; display: grid; gap: 8px; }
.linkrow { display: flex; gap: 8px; }
.linkrow input { flex: 1; font-size: 13px; min-width: 0; }
.linkbtn { color: var(--blue); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; }
.linkbtn .i { width: 16px; height: 16px; }
.linkbtn:disabled { color: var(--text-2); cursor: not-allowed; }
.linkbtn.quiet { color: var(--text-2); font-weight: 500; font-size: 13px; }
.inline { margin: 0; }
.signed { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; font-weight: 600; color: #146B3D; }
.signed .i { width: 18px; height: 18px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0 0; }
.row input:not([type=checkbox]), .row select { flex: 1; min-width: 140px; width: auto; }
.row.wrap > * { flex: 1 1 140px; }
.row .btn { flex: none; }
.check { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; color: var(--text); font-weight: 500; }
.adm-ms { list-style: none; margin: 8px 0 0; padding: 0; }
.adm-ms > li { border-top: 1px solid var(--line-2); padding: 14px 0; }
.am-main { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.am-main b { display: block; font-size: 17px; color: var(--ink); }
.am-main span { font-size: 13px; color: var(--text-2); }
.am-amt { display: grid; justify-items: end; gap: 4px; }
.am-amt .num { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1; }
.am-note { font-size: 13px; color: var(--text-2); margin-top: 6px; }
.am-note.hot { color: #7A1117; font-weight: 600; background: #FBE9EA; padding: 8px 10px; border-radius: 3px; }
.am-actions { display: grid; gap: 4px; margin-top: 6px; }
details.act > summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--blue); padding: 6px 0; }
.adm-ms > li.st-paid details.act > summary { color: var(--text-2); font-weight: 500; font-size: 13px; }
.tablewrap { overflow-x: auto; }
.ledger { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 640px; }
.ledger th { text-align: left; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--text-2); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.ledger td { padding: 8px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.num { font-variant-numeric: tabular-nums; }
.st { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 3px; background: var(--paper); color: var(--text-2); }
.st-succeeded { background: #E3F4EA; color: #146B3D; }
.st-processing { background: #FFF4C2; color: #6B5400; }
.st-failed, .st-expired, .st-canceled { background: #FBE9EA; color: #7A1117; }
.st-refunded { background: #E8F0FC; color: var(--blue-deep); }
.log { list-style: none; margin: 0; padding: 0; font-size: 13px; display: grid; gap: 6px; max-height: 360px; overflow: auto; }
.log li { display: grid; grid-template-columns: 110px 1fr; gap: 10px; }
.log time { color: var(--text-2); }
.kv { display: grid; gap: 0; margin: 0; }
.kv div { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line-2); font-size: 14px; }
.kv dt { color: var(--text-2); font-weight: 600; font-family: var(--body); }
.kv dd { margin: 0; word-break: break-all; }
@media (max-width: 560px) { .kv div { grid-template-columns: 1fr; gap: 2px; } }

/* plan form */
.plan-form { display: grid; gap: 14px; margin-top: 14px; }
.plan-form fieldset { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 16px; margin: 0; display: grid; gap: 12px; min-width: 0; }
.plan-form legend { font-family: var(--display); font-weight: 800; font-size: 22px; text-transform: uppercase; letter-spacing: .02em; color: var(--ink); padding: 0 6px; }
.g2, .g3, .g4 { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .g2 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); } }
.radios { display: grid; gap: 8px; font-size: 15px; }
.radios label, .checks label { display: flex; gap: 10px; align-items: center; }
.checks { display: grid; gap: 8px; font-size: 15px; align-content: start; }
.lbl-t { font-size: 14px; font-weight: 600; color: var(--text-2); }
.hicpa { font-size: 13px; color: var(--text-2); }
.hicpa.bad { color: #7A1117; font-weight: 600; background: #FBE9EA; padding: 8px 10px; border-radius: 3px; }
.tpl { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--text-2); }
.chipbtn { border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 600; color: var(--ink); background: #fff; }
.chipbtn:hover { border-color: var(--ink); }
.ms-edit { width: 100%; border-collapse: collapse; }
.ms-edit th { text-align: left; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--text-2); padding: 4px 6px 6px 0; }
.ms-edit td { padding: 6px 6px 6px 0; vertical-align: top; }
.ms-edit td:nth-child(2) { width: 170px; }
.ms-edit td:nth-child(3) { width: 140px; }
.ms-edit td:nth-child(4) { width: 36px; }
.ms-edit input.sub { margin-top: 6px; font-size: 14px; min-height: 38px; padding: 6px 10px; }
.ms-edit tr.locked td { color: var(--text-2); font-size: 14px; padding: 10px 6px 10px 0; }
.ms-edit .x { width: 36px; height: 46px; font-size: 22px; color: var(--text-2); }
.ms-edit .x:hover { color: var(--red); }
@media (max-width: 640px) {
  .ms-edit thead { display: none; }
  .ms-edit tr[data-row] { display: grid; grid-template-columns: 1fr 1fr 36px; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line-2); }
  .ms-edit tr[data-row] td { padding: 0; width: auto !important; }
  .ms-edit tr[data-row] td:first-child { grid-column: 1 / -1; }
}
.rowtools { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.rowtools [data-sum] { font-weight: 600; color: var(--text-2); }
.rowtools [data-sum].bad { color: var(--red); }
.rowtools [data-sum].ok { color: #146B3D; }
.submitbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; position: sticky; bottom: 0; background: rgba(250,250,248,.96); padding: 12px 0; border-top: 1px solid var(--line); }
/* 2.4.2 the Name box finds the lead (replaces the .fgpay import) */
.lsearch { position: relative; }
.lsearch input[data-lsearch] { padding-left: 38px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2356606E' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E") no-repeat 12px 50% / 18px 18px; }
.lsr { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; margin-top: 4px; background: #fff; border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: 0 22px 40px -18px rgba(11,20,33,.45); max-height: min(340px, 55vh); overflow-y: auto; overscroll-behavior: contain; padding: 4px; }
.lsr[hidden] { display: none; }
.lsr-i { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: baseline; width: 100%; text-align: left; padding: 10px 12px; border-radius: 3px; color: var(--text); font-weight: 500; min-height: 48px; }
.lsr-i + .lsr-i { border-top: 1px solid var(--line-2); }
.lsr-i:hover, .lsr-i.on { background: #EAF1FC; }
.lsr-i.on { box-shadow: inset 3px 0 0 var(--blue); }
.lsr-n { font-size: 16px; font-weight: 700; color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lsr-n mark { background: var(--gold-hi); color: var(--ink); border-radius: 2px; padding: 0 1px; }
.lsr-st { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 3px; background: var(--paper); color: var(--text-2); white-space: nowrap; }
.lsr-s { grid-column: 1 / -1; font-size: 13px; color: var(--text-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lsr-s b { color: #7A1117; font-weight: 700; }
.lsr-none { padding: 12px; font-size: 14px; color: var(--text-2); }
.lnote { font-size: 14px; color: #0F5130; }
.lnote:empty { display: none; }
.lnote:not(:empty) { background: #E3F4EA; border-left: 4px solid var(--green); padding: 10px 12px; border-radius: 3px; }
.lnote .bad { display: inline-block; margin-top: 6px; color: #7A1117; font-weight: 600; }
.lnote .bad a { color: inherit; text-decoration: underline; }
@media (max-width: 560px) { .lsr-s { white-space: normal; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
/* 2.4.1 inside the back office's home-screen app: room for the status bar */
.adm-nav a.bo { font-weight: 700; }
.adm-nav a { white-space: nowrap; }
@media (max-width: 520px) { .adm-nav a { padding: 8px 7px; font-size: 14px; } .adm-top .brand img { height: 32px; } }
@media (max-width: 400px) { .adm-nav a[href$="?a=settings"] { display: none; } }
@media (display-mode: standalone) {
  body.adm { padding-top: env(safe-area-inset-top, 0px); }
  body.adm::before { content: ""; position: fixed; z-index: 100; left: 0; right: 0; top: 0; height: env(safe-area-inset-top, 0px); background: #0B1421; pointer-events: none; }
  body.adm .pay-top { top: env(safe-area-inset-top, 0px); }
}

/* ---- 3.8.2: the front door (/pay/ without a link): number or email -> code -> payment page ---- */
.find { margin-top: 28px; max-width: 560px; }
.find .lbl { gap: 8px; }
.find .lbl span { font-size: 14px; font-weight: 600; color: var(--text-2); }
.find-row { display: grid; gap: 12px; align-items: end; }
@media (min-width: 600px) { .find-row { grid-template-columns: minmax(0, 1fr) auto; } }
.find input[type=text] { min-height: 58px; font-size: 18px; padding: 0 14px; }
.find input::placeholder { color: #9AA1AB; }
.find .btn { min-height: 58px; }
.find .fine, .find-again .fine { margin-top: 14px; line-height: 1.5; max-width: 60ch; }
.find-again { max-width: 560px; }
.code-in { font-family: var(--display); font-weight: 700; font-size: 38px; letter-spacing: .32em; text-align: center; text-indent: .32em; min-height: 72px; }
.code-in::placeholder { letter-spacing: .32em; color: #C9CDD3; }
.linkbtn-text { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.linkbtn-text:hover { color: var(--blue-deep); }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.pay-hero .flash { margin: 22px 0 0; }
.proj-list { display: grid; gap: 12px; margin-top: 26px; }
.proj-card { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 18px 20px; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); text-decoration: none;
  transition: border-color .18s, box-shadow .18s, transform .18s var(--ease-out); }
.proj-card:hover { border-color: var(--blue); box-shadow: 0 16px 32px -24px rgba(27,95,204,.5); transform: translateY(-1px); }
.proj-main { flex: 1 1 240px; min-width: 0; }
.proj-main b { display: block; font-size: 18px; line-height: 1.25; }
.proj-meta { display: block; margin-top: 4px; font-size: 14px; color: var(--text-2); }
.proj-right { display: flex; align-items: center; gap: 12px; flex: none; margin-left: auto; }
.proj-right .i { width: 22px; height: 22px; color: var(--blue); }
