﻿/* ProcaX — visual language from the Phase 1 scope document. */
:root {
  color-scheme: light dark; /* native controls, scrollbars, date pickers follow the theme */
  /* Brand colours sampled from the ProcaX logo: dark green #02372a, gold #d19217, cream #faf5ef. */
  --brand: #02372a;        /* dark green surfaces: stats band, CTA bands, console (same in both themes) */
  --ink: #02372a;          /* headings and strong text (flips light in dark mode) */
  --fill: #02372a;         /* solid green behind white text (buttons, ribbons) */
  --green: #0b6b4f;        /* links, accents */
  --green-hover: #035240;
  --green-tint: #e4efe9;   /* "Free" badge, icon tiles */
  --gold: #d19217;         /* logo gold: decoration, numbers, borders */
  --gold-text: #8f6205;    /* gold dark enough for small text on light backgrounds */
  --gold-tint: #faf0dc;
  --amber: #d19217;
  --amber-tint: #faf0dc;   /* "Priced" badge */
  --amber-text: #7a5200;
  --cream: #faf5ef;
  --bg: #fcfbf8;
  --surface: #ffffff;
  --line: #e3e3dc;
  --text: #16241f;
  --muted: #5c6662;
  --danger: #b3261e;
  --danger-tint: #fbe9e7;
  --surface-2: #f6f6f1;    /* recessed: inputs, table heads, dropzones */
  --surface-3: #eeeee8;    /* chips, meters, alternate sections */
  --line-strong: #cfd8d2;
  --switch-off: #cfd3cf;
  --header-h: 68px;
  --radius: 14px;
  --font-head: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

/* Dark mode follows the OS setting. Brand surfaces (--brand) stay the same; everything else flips. */
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8f1ec;
    --green: #4cc49a;        /* text/links: brighter so it reads on dark */
    --green-hover: #0e6249;
    --green-tint: #173a2f;
    --amber-tint: #3a2e12;
    --amber-text: #f3c56b;
    --gold-text: #e8b34a;
    --gold-tint: #3a2e12;
    --cream: #121c18;
    --fill: #0b6b4f;         /* buttons need to stand out from the dark page */
    --bg: #0e1613;
    --surface: #16201c;
    --surface-2: #111a17;
    --surface-3: #1e2a25;
    --line: #27352f;
    --line-strong: #3a4a43;
    --text: #dbe5e0;
    --muted: #9aaba3;
    --danger: #ff8a80;
    --danger-tint: #3b1a18;
    --switch-off: #3a4a43;
  }
  .landing img, .service-img { filter: brightness(.9); }
  .site-footer { border-top: 1px solid var(--line); }
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 100%/1.55 var(--font-body); } /* 100%: follows the user's browser text size */
a { color: var(--green); }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: 1.4rem; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* --- Header ----------------------------------------------------------- */
/* Light, translucent bar: logo | links | actions. Below 860px the links move to a scrollable second row. */
.site-header { position: sticky; top: 0; z-index: 25; color: var(--ink); border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); }
html { scroll-padding-top: calc(var(--header-h) + 12px); } /* in-page anchors don't land under the header */
.site-header .inner { max-width: 1140px; margin: 0 auto; padding: 12px 20px; display: flex; gap: 8px 24px; align-items: center; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 1.1rem var(--font-head); flex: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--fill); display: grid; place-items: center; }
.logo img, .logo-img { display: block; height: 34px; width: auto; }
.auth-side .logo-img { height: 38px; }
.console-side .logo-img { height: 26px; }
.console-tag { font: 700 .7rem var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); padding: 3px 7px; border: 1px solid rgba(209,146,23,.5); border-radius: 6px; }
.site-nav { display: flex; align-items: center; gap: 2px; margin: 0 auto; }
.site-nav a { color: var(--muted); text-decoration: none; font: 500 .93rem var(--font-body); padding: 10px 14px; white-space: nowrap; transition: color .15s, box-shadow .15s; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--gold); }
.site-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.site-actions form { margin: 0; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: var(--gold); }
.icon-btn:hover { background: var(--gold-tint); }
.login-link { color: var(--ink); font-weight: 700; font-size: .93rem; text-decoration: none; padding: 10px 12px; }
.login-link:hover { color: var(--green); }
.site-actions .btn { padding: 10px 20px; }
/* Hamburger (shown below 860px). Phones also move Login/Register into the menu (.nav-auth). */
.nav-toggle, .nav-auth, .nav-ico { display: none; }
.nav-toggle { place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 10px; background: none; color: var(--ink); cursor: pointer; }
.nav-toggle:hover { background: var(--surface-3); }
.nav-toggle svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.nav-toggle .cross, .nav-open .nav-toggle .bars { display: none; }
.nav-open .nav-toggle .cross { display: inline; }
@media (max-width: 860px) {
  .site-header .inner { padding: 10px 16px; gap: 8px; }
  .logo img { height: 26px; }
  .site-actions { margin-left: auto; gap: 2px; }
  .site-actions .avatar { width: 30px; height: 30px; font-size: .85rem; }
  .nav-toggle { display: grid; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 29; margin: 0; padding: 8px 16px 16px;
    flex-direction: column; align-items: stretch; gap: 2px; background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 32px rgba(2,55,42,.12); animation: pop .16s ease-out; transform-origin: top center; }
  .nav-open .site-nav { display: flex; }
  .site-nav > a { display: flex; align-items: center; gap: 16px; padding: 14px 14px; border-radius: 12px; font-size: 1.02rem; color: var(--text); }
  .site-nav > a:hover { background: var(--surface-2); }
  .site-nav > a + a::after { content: "›"; margin-left: auto; font-size: 1.5rem; line-height: 1; color: var(--muted); } /* Home has no chevron */
  .site-nav a[aria-current="page"] { box-shadow: none; background: var(--gold-tint); color: var(--ink); }
  .nav-ico { display: block; width: 24px; height: 24px; flex: none; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  [aria-current="page"] > .nav-ico { stroke: var(--gold); }
}
@media (max-width: 560px) {
  .site-actions .login-link, .site-actions .btn-register { display: none; }
  .nav-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
  .site-nav .nav-auth a { padding: 12px; font-size: .95rem; }
  .site-nav .nav-auth .btn { color: #fff; }
  .site-nav .nav-auth .btn-ghost { color: var(--ink); }
}

/* Global search: panel under the header (header itself unchanged), grouped results */
.search-panel { position: absolute; top: calc(100% + 6px); left: 50%; translate: -50% 0; z-index: 30; width: min(880px, calc(100% - 24px));
  max-height: calc(100dvh - var(--header-h) - 24px); overflow-y: auto; padding: 20px; background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px rgba(2,55,42,.2); animation: pop .16s ease-out; transform-origin: top center; }
.search-panel[hidden] { display: none; }
.sp-form { position: relative; margin: 0; }
.sp-form > svg { position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; pointer-events: none; }
.sp-form input { height: 54px; padding: 0 52px 0 50px; font-size: 1.05rem; border: 2px solid var(--brand); border-radius: 12px; }
.sp-form input::-webkit-search-cancel-button { display: none; } /* we have our own ✕ */
.sp-close { position: absolute; right: 8px; top: 50%; translate: 0 -50%; width: 38px; height: 38px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 1.1rem; cursor: pointer; }
.sp-close:hover { background: var(--surface-3); color: var(--ink); }
.sp-results:not(:empty) { margin-top: 16px; }
.sp-foot { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 14px 18px; border-radius: 12px; background: var(--surface-2); color: var(--muted); text-decoration: none; font-size: .86rem; }
.sp-foot:hover { background: var(--green-tint); }
.sp-foot > svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; }
.sp-foot span { flex: 1; display: grid; }
.sp-foot strong { color: var(--ink); font-size: .95rem; font-weight: 600; }
.sp-foot kbd { font: 700 .8rem var(--font-body); color: var(--ink); }

.sr-hint { margin: 4px 0; padding: 18px; text-align: center; color: var(--muted); }
.sr-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.sr-tabs button { padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--ink); font: 600 .9rem var(--font-body); cursor: pointer; }
.sr-tabs button:hover { border-color: var(--line-strong); }
.sr-tabs [aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.sr-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.sr[data-show="tenders"] [data-group="opportunities"], .sr[data-show="opportunities"] [data-group="tenders"] { display: none; }
.sr[data-show="tenders"] .sr-cols, .sr[data-show="opportunities"] .sr-cols { grid-template-columns: 1fr; }
.sr-col + .sr-col { border-left: 1px solid var(--line); padding-left: 28px; }
.sr[data-show]:not([data-show="all"]) .sr-col { border: 0; padding-left: 0; }
.sr-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.sr-head h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.1rem; }
.sr-head h3 > span:last-child { color: var(--muted); font: 500 .9rem var(--font-body); }
.sr-head a { font-weight: 700; font-size: .84rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.sr-head a:hover { color: var(--green); }
.sr-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--gold-tint); color: var(--gold); }
.sr-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sr-list { list-style: none; margin: 0; padding: 0; }
.sr-list li + li { border-top: 1px solid var(--line); }
.sr-list a { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; padding: 12px 30px 12px 4px; color: inherit; text-decoration: none; border-radius: 8px; }
.sr-list a::after { content: ""; position: absolute; right: 4px; top: 50%; width: 18px; height: 18px; translate: 0 -50%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c6662' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
.sr-list a:hover { background: var(--surface-2); }
.sr-list strong { color: var(--ink); font-weight: 600; font-size: .95rem; line-height: 1.3; }
.sr-list a > span:not(.cat-tag), .sr-list small { grid-column: 1; color: var(--muted); font-size: .84rem; }
.sr-list .cat-tag { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.sr-list small { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 16px; font-size: .8rem; }
.sr-list i { display: inline-block; width: 14px; height: 14px; margin-right: -10px; vertical-align: -2px; background: center / contain no-repeat; }
.sr-list .sr-pin { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c6662' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6.2 7-12a7 7 0 0 0-14 0c0 5.8 7 12 7 12z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E"); }
.sr-list .sr-cal { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c6662' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
.sr-none { padding: 14px 4px; color: var(--muted); font-size: .9rem; }

.sr-page-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin: 18px 0 20px; }
.sr-page-form input, .sr-page-form .btn { height: 50px; }
.sr-page { padding: 22px; }

@media (max-width: 760px) {
  .search-panel { padding: 14px; border-radius: 14px; }
  .sr-cols { grid-template-columns: 1fr; gap: 22px; }
  .sr-col + .sr-col { border-left: 0; padding-left: 0; }
  .sp-foot small { display: none; } /* no Enter key hint on touch screens */
}

/* Avatar dropdown (native <details>) */
.user-menu { position: relative; margin-left: 6px; }
.user-menu summary { list-style: none; display: flex; align-items: center; gap: 6px; padding: 4px 8px 4px 4px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary:hover, .user-menu[open] summary { background: var(--surface-3); color: var(--ink); }
.user-menu summary svg { transition: transform .2s; }
.user-menu[open] summary svg { transform: rotate(180deg); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--amber); color: var(--brand); display: grid; place-items: center; font: 800 .95rem var(--font-head); }
.user-menu .menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: 0 12px 32px rgba(12,42,35,.18); animation: pop .16s ease-out; transform-origin: top right; /* grows out of the avatar */ }
.user-menu .menu-head { display: grid; padding: 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; color: var(--ink); }
.user-menu .menu a, .user-menu .menu button { display: block; width: 100%; text-align: left; color: var(--text); padding: 9px 12px; border-radius: 8px;
  border: 0; background: none; font: 500 .92rem var(--font-body); text-decoration: none; cursor: pointer; }
.user-menu .menu form { margin: 0; }
.user-menu .menu a:hover, .user-menu .menu button:hover { background: var(--green-tint); color: var(--ink); }
.user-menu .menu .danger { color: var(--danger); }
.user-menu .menu .danger:hover { background: var(--danger-tint); color: var(--danger); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }

/* Toasts */
.toasts { position: fixed; top: calc(var(--header-h) + 14px); right: 20px; z-index: 30; display: grid; gap: 8px; }
.toast { background: var(--brand); color: #fff; padding: 12px 18px; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.18); animation: pop .2s ease-out; transition: opacity .4s, transform .4s; }
.toast-success { background: var(--fill); }
.toast-error { background: #b3261e; }
.toast.hide { opacity: 0; transform: translateY(-8px); pointer-events: none; }

main { max-width: 1040px; margin: 0 auto; padding: 36px 20px 64px; }
.eyebrow { font: 700 .78rem var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--green); display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--fill); }
.lede { color: var(--muted); font-size: 1.05rem; max-width: 60ch; margin-top: -.2em; }
.muted { color: var(--muted); font-size: .9rem; }

/* --- Buttons & badges ------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--fill); color: #fff; font: 700 .95rem var(--font-body); padding: 11px 18px; border-radius: 10px; border: 1px solid transparent; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, scale 100ms ease-out; }
.btn:hover { background: var(--green-hover); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: var(--ink); opacity: .88; }
.btn-gold-outline { background: transparent; color: var(--gold-text); border-color: var(--gold); }
.btn-gold-outline:hover { background: var(--gold-tint); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--green-tint); }
.btn-block { width: 100%; }
/* Instant press feedback on pointer-down. `scale` (not transform) so it stacks with hover lifts. */
.btn:active, .chip:active { scale: .97; }
.tender-row:active, .service-card:active, .plan-tile:active, .stat:active { scale: .99; }
.chip, .tender-row, .stat { transition: scale 100ms ease-out, border-color .15s, background .15s; }

.badge { display: inline-flex; align-items: center; gap: 5px; font: 700 .78rem var(--font-body); padding: 4px 11px; border-radius: 999px; white-space: nowrap; }
.badge-free { background: var(--green-tint); color: var(--green); }
.badge-priced { background: var(--amber-tint); color: var(--amber-text); }
.badge-soon { background: var(--amber-tint); color: var(--amber-text); }
.badge-tag { background: var(--green-tint); color: var(--ink); }

/* --- Cards, panels, tables -------------------------------------------- */
.card, .panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 14px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.panel-head h2 { margin: 0; }
.empty { text-align: center; color: var(--muted); padding: 36px 16px; }

table { border-collapse: collapse; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
th { font: 700 .75rem var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }

/* --- Forms (covers Django's form.as_p output) ------------------------- */
.form-card { max-width: 560px; }
form p { margin: 0 0 16px; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ink); }
input:where(:not([type=checkbox], [type=radio], [type=hidden])), select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-tint); }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--green); vertical-align: middle; }
.helptext, form p .helptext { display: block; color: var(--muted); font-size: .82rem; margin-top: 4px; }
.errorlist { list-style: none; padding: 0; margin: 0 0 6px; color: var(--danger); font-size: .88rem; }

/* --- Auth pages (login, register, password reset) --------------------- */
@view-transition { navigation: auto; } /* smooth cross-page fade where supported */
/* Full-screen split: brand + live tenders on the left, form on the right. No site header. */
.auth-page { background: var(--surface); }
.auth-page main { max-width: none; padding: 0; }
.auth { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }

.auth-side { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 40px clamp(32px, 5vw, 72px); color: #b9cdc5;
  background: radial-gradient(ellipse at 0% 100%, rgba(18,122,92,.55), transparent 55%), radial-gradient(ellipse at 100% 0%, rgba(243,180,67,.12), transparent 45%), var(--brand); }
.auth-side::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 30% 60%, #000, transparent 75%); }
.auth-side > * { position: relative; z-index: 1; }
.auth-pitch { max-width: 520px; }
.auth-pitch h2 { color: #fff; font-size: clamp(2.2rem, 3.6vw, 3.3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.02; margin-bottom: 16px; }
.auth-pitch h2 em { font-style: normal; color: var(--amber); }
.auth-pitch > p { font-size: 1.08rem; max-width: 42ch; margin: 0 0 32px; }

.showcase { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.showcase li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 14px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09); backdrop-filter: blur(6px);
  animation: rise .5s ease-out both; animation-delay: calc(var(--i) * 90ms + 150ms); }
.showcase li > div:first-child { min-width: 0; }
.showcase strong { display: block; color: #fff; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.showcase span { font-size: .85rem; }
.showcase-meta { display: grid; justify-items: end; gap: 4px; flex: none; }
.showcase-meta small { font-size: .78rem; color: #8fa89e; }
.auth-stat { margin: 0; font-size: .95rem; }
.auth-stat strong { color: #fff; font: 800 1.5rem var(--font-head); margin-right: 4px; }

.auth-main { display: flex; flex-direction: column; padding: 28px clamp(24px, 5vw, 64px); }
.auth-browse { align-self: flex-end; font-size: .88rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.auth-browse:hover { color: var(--green); }
.auth-card { width: 100%; max-width: 400px; margin: auto; padding: 40px 0; view-transition-name: auth-card; animation: rise .4s ease-out; }
.auth-card h1 { font-size: clamp(1.9rem, 2.6vw, 2.3rem); margin-bottom: .25em; }
.auth-card > .muted, .auth-sub { color: var(--muted); margin: 0 0 28px; }
.auth-card .field { margin-bottom: 18px; }
.auth-card input:where(:not([type=checkbox], [type=radio], [type=hidden])) { padding: 13px 14px; border-radius: 12px; background: var(--surface-2); }
.auth-card input:focus { background: var(--surface); }
.btn-lg { padding: 14px 18px; font-size: 1rem; border-radius: 12px; }
.auth-switch { text-align: center; margin: 28px 0 0; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.auth-switch a { font-weight: 700; }
.auth-brand-mobile { display: none; color: var(--ink); margin-bottom: 28px; }
.auth-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--green-tint); color: var(--green); display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 18px; }
.auth-foot { text-align: center; margin-top: 18px; }
.auth .btn:disabled { opacity: .8; cursor: progress; }
.field { margin-bottom: 16px; }
.field .label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ink); }
.field.has-error input { border-color: var(--danger); }
.field .errorlist { margin: 6px 0 0; }
.form-row { display: flex; justify-content: flex-end; margin: -6px 0 18px; font-size: .9rem; font-weight: 600; }
.alert { background: var(--danger-tint); color: var(--danger); border-radius: 10px; padding: 11px 14px; margin-bottom: 16px; font-size: .9rem; animation: shake .35s; }
.auth input { transition: border-color .2s, box-shadow .2s; }

/* Toggle switch (any BooleanField rendered through _fields.html) */
.switch { display: flex; gap: 14px; align-items: flex-start; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 400; transition: border-color .2s, background .2s; }
.switch:has(:checked) { border-color: var(--amber); background: var(--amber-tint); }
.switch input { position: absolute; opacity: 0; }
.switch-ui { flex: none; position: relative; width: 44px; height: 24px; border-radius: 999px; background: var(--switch-off); transition: background .2s; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch input:checked + .switch-ui { background: var(--amber-text); }
.switch input:checked + .switch-ui::after { transform: translateX(20px); }
.switch input:focus-visible + .switch-ui { outline: 3px solid var(--amber); outline-offset: 2px; }
.switch strong { display: block; color: var(--ink); }
.switch .helptext { margin: 2px 0 0; }

/* Multi-file drop zone */
.dropzone { position: relative; display: grid; place-items: center; gap: 4px; margin: 0; padding: 26px 16px; text-align: center; border: 2px dashed var(--line); border-radius: 12px; background: var(--surface-2); color: var(--muted); font-weight: 400; cursor: pointer; transition: border-color .2s, background .2s; }
.dropzone:hover, .dropzone.over { border-color: var(--green); background: var(--green-tint); }
.dropzone strong { color: var(--ink); }
.dropzone u { color: var(--green); font-weight: 600; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.file-list li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: .9rem; background: var(--surface); animation: pop .15s ease-out; }
.file-list li span { color: var(--muted); white-space: nowrap; }

.choice-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice-cards label { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 600; font-size: .88rem; transition: border-color .2s, background .2s; }
.choice-cards label:has(:checked) { border-color: var(--green); background: var(--green-tint); }
.choice-cards input { accent-color: var(--green); margin: 0; }

.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 46px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: none; color: var(--muted); border-radius: 8px; cursor: pointer; }
.pw-toggle:hover { color: var(--ink); background: var(--green-tint); }
.pw-toggle .slash { opacity: 0; transition: opacity .15s; }
.pw-toggle.on .slash { opacity: 1; }

.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
/* Reduced motion: swap movement for short cross-fades rather than removing feedback entirely. */
@keyframes fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-name: fade !important; animation-duration: .15s !important; animation-delay: 0s !important;
    transition-property: opacity, color, background-color, border-color, box-shadow !important; transition-duration: .15s !important; }
  .spinner { animation-name: spin !important; animation-duration: .7s !important; } /* status, not decoration */
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .plan-tile:hover, .service-card:hover, :active { transform: none !important; scale: none !important; }
}
/* Translucent surfaces go solid when the user asks for less transparency or more contrast. */
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .showcase li, .profile-stats a, .profile-stats li > div { background: #1b4237; backdrop-filter: none; border-color: rgba(255,255,255,.4); }
  .site-header { background: var(--brand); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* --- Profile ----------------------------------------------------------- */
/* Dark banner in the same style as the sign-in panel */
.profile-hero { position: relative; overflow: hidden; border-radius: 22px; padding: 34px clamp(22px, 4vw, 44px); margin-bottom: 28px; color: #b9cdc5;
  display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; animation: rise .35s ease-out;
  background: radial-gradient(ellipse at 0% 100%, rgba(18,122,92,.55), transparent 55%), radial-gradient(ellipse at 100% 0%, rgba(243,180,67,.12), transparent 45%), var(--brand); }
.profile-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 20% 60%, #000, transparent 75%); }
.profile-hero > * { position: relative; z-index: 1; }
.profile-id { display: flex; align-items: center; gap: 20px; min-width: 0; }
.profile-id h1 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 4px; }
.profile-id p { margin: 0; overflow-wrap: anywhere; }
.avatar-lg { flex: none; width: 76px; height: 76px; font-size: 1.9rem; object-fit: cover; box-shadow: 0 0 0 4px rgba(255,255,255,.08); }
.profile-stats { list-style: none; padding: 0; margin: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.profile-stats li { animation: rise .5s ease-out both; animation-delay: calc(var(--i) * 90ms + 120ms); }
.profile-stats a, .profile-stats li > div { display: grid; min-width: 120px; padding: 12px 16px; border-radius: 14px; text-decoration: none; color: inherit;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09); transition: background .2s, border-color .2s; }
.profile-stats a:hover { background: rgba(255,255,255,.11); border-color: rgba(255,255,255,.2); }
.profile-stats strong { color: #fff; font: 800 1.3rem var(--font-head); }
.profile-stats span { font-size: .82rem; }
.profile-stats u { color: var(--amber); }

.profile { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: start; }
.profile-nav { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 2px; }
.profile-nav a { padding: 10px 14px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .93rem; transition: background .15s, color .15s; }
.profile-nav a:hover { background: var(--green-tint); color: var(--ink); }
.profile-nav a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: inset 3px 0 0 var(--green), 0 1px 3px rgba(0,0,0,.05); }
.profile .profile-main { max-width: 720px; padding: 0; animation: rise .4s ease-out; }
.profile-main h2 { font-size: 1.6rem; margin-bottom: .2em; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-grid > .alert, .form-grid > .form-actions, .form-grid .field:has(textarea), .form-grid .field:has(input[type=file]) { grid-column: 1 / -1; }
.form-grid input:where(:not([type=checkbox], [type=radio], [type=hidden], [type=file])) { padding: 13px 14px; border-radius: 12px; background: var(--surface-2); }
.form-grid input:focus, .form-grid textarea:focus { background: var(--surface); }
.form-grid .ts-wrapper .ts-control { min-height: 50px; border-radius: 12px; background: var(--surface-2); }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--line); margin-top: 6px; }
.form-narrow { grid-template-columns: 1fr; max-width: 440px; }
.profile-main { padding: 28px; }
.profile-main .panel-head { margin-bottom: 4px; }
.profile-main > .muted { margin: 0 0 20px; }
.profile-main textarea { height: 100px; resize: vertical; }
.profile-main input[type=file] { padding: 9px; background: var(--surface-2); border-style: dashed; cursor: pointer; }
.profile-main .btn:disabled { opacity: .8; cursor: progress; }

/* --- Tender board ----------------------------------------------------- */
.chips { display: flex; gap: 6px; }
.chip { font: 700 .82rem var(--font-body); padding: 6px 14px; border-radius: 999px; text-decoration: none; background: var(--surface-3); color: var(--ink); }
.chip.free { background: var(--green-tint); color: var(--green); }
.chip.priced { background: var(--amber-tint); color: var(--amber-text); }
.chip[aria-current="true"] { box-shadow: inset 0 0 0 2px currentColor; }

/* Board: filter sidebar + results */
.board { display: grid; grid-template-columns: 270px 1fr; gap: 20px; align-items: start; margin-top: 28px; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); margin: 0; }
.filters-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.filters-head h3 { margin: 0; }
.filters-head a { font-size: .85rem; font-weight: 600; }
.filters label { margin: 14px 0 6px; }
.filters label:first-of-type { margin-top: 0; }
.results { margin: 0; min-width: 0; transition: opacity .2s; }
.results.loading { opacity: .5; } /* dim, but stay clickable while the next page loads */
.results .count { font: 500 .9rem var(--font-body); margin-left: 6px; }
.search-bar { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-bottom: 16px; }
.search-bar > input, .search-bar > .btn { height: 46px; }

/* Until Tom Select loads, hold the space instead of flashing native list boxes */
.ts-pending select[data-search] { visibility: hidden; height: 46px; overflow: hidden; }

/* Tom Select, restyled to match our inputs */
.ts-wrapper .ts-control { min-height: 46px; border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; font: inherit; font-size: .95rem; box-shadow: none; background: var(--surface); }
.ts-wrapper.focus .ts-control { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-tint); }
.ts-wrapper.multi .ts-control > div { background: var(--green-tint); color: var(--ink); border: 0; border-radius: 6px; padding: 2px 4px 2px 8px; font-weight: 600; font-size: .85rem; }
.ts-wrapper.multi .ts-control > div .remove { border-left: 0; color: var(--muted); }
.ts-wrapper.plugin-remove_button .item .remove:hover { background: none; color: var(--danger); }
.ts-dropdown { border: 1px solid var(--line); border-radius: 10px; margin-top: 4px; box-shadow: 0 12px 32px rgba(12,42,35,.14); font-size: .92rem; overflow: hidden; animation: pop .14s ease-out; transform-origin: top; }
.ts-dropdown, .ts-control input { background: var(--surface); color: var(--text); }
.ts-dropdown .option { padding: 8px 12px; }
.ts-dropdown .active { background: var(--green-tint); color: var(--ink); }
.ts-dropdown .selected { font-weight: 600; }
.search-bar input { padding-left: 40px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%235c6662' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 13px center; }

.tender-list { display: grid; gap: 10px; }
.tender-row { position: relative; display: grid; grid-template-columns: 44px 1fr auto auto; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.tender-row:hover { border-color: var(--green); }
.tender-row h3 { margin: 0 0 2px; font-family: var(--font-body); font-size: 1rem; }
.tender-row h3 a { color: var(--ink); text-decoration: none; }
.tender-row h3 a::after { content: ""; position: absolute; inset: 0; } /* whole row clickable */
.tender-row .date { color: var(--muted); font-size: .88rem; min-width: 52px; text-align: right; }
.icon-tile { width: 44px; height: 44px; border-radius: 10px; background: var(--green-tint); color: var(--green); display: grid; place-items: center; }

/* --- Tender board (mockup v2): photo hero, floating search bar, filter sidebar, tender cards ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #b57c0f; }
.btn-sm { padding: 7px 14px; font-size: .85rem; border-radius: 8px; }

/* Three layers in one box: full-bleed photo, SVG white curtain with a feathered curved edge, then the copy. */
.board-hero { position: relative; isolation: isolate; overflow: hidden; min-height: 340px; padding: clamp(40px, 5vw, 58px) 0 88px; background: var(--bg); }
.board-hero__img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.board-hero__overlay { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.board-hero__overlay stop { stop-color: var(--bg); }
.board-hero__overlay .feather { fill: var(--bg); opacity: .35; } /* soft halo just past the curve */
.board-hero__content { position: relative; z-index: 2; }
@media (min-width: 961px) { .landing .board-hero .board-hero__content > * { max-width: min(560px, 42vw); } } /* text stays on the solid white part of the veil */
/* Photos with people in the middle: start the photo a third of the way in so nobody sits under the veil. */
.board-hero--people .board-hero__img { left: auto; right: 0; width: 58%; object-position: 62% center; 
  mask-image: linear-gradient(90deg, transparent, #000 18%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%); } /* no hard edge where the photo starts */
.board-hero h1 { font-size: clamp(2.6rem, 6vw, 4rem); letter-spacing: -.035em; margin: 0 0 10px; }
.board-hero .lede { max-width: 44ch; margin: 0; color: var(--text); }
.trust-4 li { max-width: 17ch; }

.board-search { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) 230px auto; gap: 10px; align-items: center;
  margin: -34px 0 28px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 36px rgba(2,55,42,.1); }
.board-search label { position: relative; display: block; margin: 0; }
.board-search svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.board-search input, .board-search select { height: 48px; padding-left: 46px; border: 0; background: transparent; box-shadow: none !important; }
.board-search-loc { border-left: 1px solid var(--line); }
.board-search-loc svg { stroke: var(--gold); }
.board-search .btn { height: 48px; padding: 0 30px; }

.landing .board { grid-template-columns: 260px minmax(0, 1fr); gap: 24px; margin: 0 0 64px; }
.landing .filters { padding: 22px; }
.landing .filters h3 { font-size: 1.15rem; margin: 0; }
.filters-toggle summary { list-style: none; margin-bottom: 18px; pointer-events: none; } /* not collapsible on desktop */
.filters-toggle summary::-webkit-details-marker { display: none; }
.landing .filters label, .landing .filters legend { display: block; margin: 0 0 8px; font-size: .9rem; font-weight: 700; color: var(--ink); }
.landing .filters fieldset { border: 0; padding: 0; margin: 20px 0; }
.landing .filters .ts-wrapper, .landing .filters select { margin-bottom: 20px; }
.landing .filters label.check { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-weight: 400; color: var(--text); cursor: pointer; }
.landing .filters label.check input { margin: 0; }
.landing .filters .date-field { margin-bottom: 8px; }
.reset-link { display: flex; align-items: center; gap: 8px; margin: 6px 0 14px; font-weight: 700; font-size: .92rem; color: var(--ink); text-decoration: none; }
.reset-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.reset-link:hover { color: var(--green); }

.results-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.results-head p { margin: 0; color: var(--text); }
.results-tools { display: flex; align-items: center; gap: 10px; }
.sort { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 400; color: var(--muted); white-space: nowrap; }
.sort select { width: auto; padding: 9px 34px 9px 12px; }

.tender-cards { display: grid; gap: 12px; }
.tender-card { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto; gap: 18px; align-items: center;
  padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; transition: border-color .15s, box-shadow .15s; }
.tender-card:hover { border-color: var(--gold); box-shadow: 0 10px 26px rgba(2,55,42,.07); }
.tender-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 12px; background: var(--green-tint); color: var(--ink); }
.tender-card.alt .tender-icon { background: var(--gold-tint); color: var(--gold-text); }
.tender-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tender-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.sector-tag { font: 700 .68rem var(--font-body); letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; background: var(--green-tint); color: var(--green); }
.tender-card.alt .sector-tag { background: var(--gold-tint); color: var(--gold-text); }
.tender-tags .badge { padding: 2px 8px; font-size: .7rem; }
.tender-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.tender-card h3 a { color: var(--ink); text-decoration: none; }
.tender-card h3 a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.tender-meta { display: flex; gap: 6px 22px; flex-wrap: wrap; margin: 0; color: var(--muted); font-size: .86rem; }
.tender-meta span { display: inline-flex; align-items: center; gap: 6px; }
.tender-meta svg, .deadline svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.new-tag { align-self: start; padding: 3px 10px; border-radius: 6px; background: #fde4e4; color: #c0262d; font: 700 .72rem var(--font-body); }
.tender-side { display: grid; justify-items: start; gap: 10px; min-width: 150px; }
.deadline { display: flex; gap: 8px; margin: 0; font-size: .78rem; color: var(--muted); }
.deadline svg { color: #c0262d; margin-top: 2px; }
.deadline strong { display: block; color: var(--ink); font-size: .9rem; font-weight: 600; }
.deadline.soon strong { color: #c0262d; }
.tender-side .btn { position: relative; z-index: 1; width: 100%; } /* above the card-wide link */

.pager-nums { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 26px; }
.pager-nums a, .pager-nums span { display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 6px; border-radius: 8px; color: var(--ink); font-weight: 600; text-decoration: none; }
.pager-nums a:hover { background: var(--surface-3); }
.pager-nums [aria-current] { background: var(--brand); color: #fff; }
.pager-nums a:first-child, .pager-nums a:last-child, .pager-nums .off { border: 1px solid var(--line); }
.pager-nums .off { color: var(--line-strong); }
.pager-nums .gap { color: var(--muted); }

@media (prefers-color-scheme: dark) {
  .new-tag { background: #3b1a18; color: #ff8a80; }
  .board-hero__img { filter: brightness(.75); }
}
@media (max-width: 960px) {
  .landing .board { grid-template-columns: 1fr; }
  .landing .filters { position: static; }
  .board-hero__overlay { width: 150%; } /* curve slides right: the white covers most of the text area */
  .filters-toggle summary { pointer-events: auto; cursor: pointer; display: flex; justify-content: space-between; align-items: center; margin: 0; }
  .filters-toggle summary::after { content: "+"; font: 700 1.4rem/1 var(--font-body); color: var(--gold); }
  .filters-toggle[open] summary { margin-bottom: 18px; }
  .filters-toggle[open] summary::after { content: "–"; }
}
@media (max-width: 700px) {
  .board-search { grid-template-columns: 1fr; }
  .board-hero__overlay { width: 230%; }
  .trust-4 { display: grid; grid-template-columns: 1fr 1fr; }
  .board-search-loc { border-left: 0; border-top: 1px solid var(--line); }
  .tender-card { grid-template-columns: 44px minmax(0, 1fr); gap: 12px 14px; }
  .tender-icon { width: 44px; height: 44px; }
  .new-tag { position: absolute; top: 14px; right: 14px; }
  .tender-side { grid-column: 1 / -1; grid-template-columns: 1fr auto; align-items: center; }
  .tender-side .btn { width: auto; }
}

/* --- Breadcrumbs (tender board + detail heroes) -------------------------------------------------- */
.crumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; font-size: .86rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--text); }

/* --- Tender detail v2 ------------------------------------------------------------------------------ */
.tender-hero { padding-bottom: clamp(32px, 4vw, 48px); }
.tender-hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: -.025em; max-width: 22ch; margin: 6px 0 10px; }
.tender-hero .lede { max-width: 58ch; margin: 0; color: var(--text); }
.tender-hero .tender-tags { margin-bottom: 8px; }
.hero-facts { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 14px 34px; }
.hero-facts li { display: flex; align-items: center; gap: 10px; }
.hero-facts svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero-facts .gold svg { stroke: var(--gold); }
.hero-facts span { display: grid; font-size: .8rem; color: var(--muted); line-height: 1.35; }
.hero-facts strong { color: var(--ink); font-size: .92rem; font-weight: 600; overflow-wrap: anywhere; }
.hero-facts li { min-width: 0; }

.section-tabs { position: sticky; top: var(--header-h); z-index: 5; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px); border-block: 1px solid var(--line); }
.section-tabs .inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.section-tabs a { padding: 14px 16px; white-space: nowrap; color: var(--muted); font-weight: 500; font-size: .93rem; text-decoration: none; }
.section-tabs a:hover { color: var(--ink); }
.section-tabs a[aria-current] { color: var(--ink); font-weight: 700; box-shadow: inset 0 -3px 0 var(--ink); }
html:has(.section-tabs) { scroll-padding-top: calc(var(--header-h) + 64px); }

.tender-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; padding-top: 24px !important; padding-bottom: 64px !important; }
.tender-body { margin: 0; padding: clamp(20px, 3vw, 32px); }
.tsec + .tsec { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 26px; }
.tsec h2 { display: flex; align-items: center; gap: 14px; font-size: 1.3rem; margin: 0 0 14px; }
.tsec > p, .tsec > ul, .tsec > .table-scroll, .tsec > .address-box, .tsec > .doc-item { margin-left: 50px; }
.tsec > p { color: var(--text); }
.tsec-icon { display: grid; place-items: center; width: 36px; height: 36px; flex: none; color: var(--gold); }
.tsec-icon svg, .address-box svg, .btn-ico, .why svg, .sub-callout svg, .share svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dots { list-style: none; padding: 0; display: grid; gap: 8px; }
.dots li { position: relative; padding-left: 20px; }
.dots li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.scope { font-size: .9rem; }
.scope th { background: var(--gold-tint); color: var(--ink); text-transform: none; letter-spacing: 0; font-size: .85rem; }
.address-box { display: flex; gap: 14px; padding: 16px 18px; border-radius: 12px; background: var(--gold-tint); }
.address-box svg { color: var(--gold); flex: none; }
.address-box strong { display: block; color: var(--gold-text); margin-bottom: 4px; }

/* Locked view: blurred placeholder bars + centred call to action */
.tender-body.locked { position: relative; min-height: 640px; overflow: hidden; }
.skeleton { filter: blur(3px); opacity: .55; }
.sk-block { display: grid; grid-template-columns: 36px 1fr; gap: 10px 14px; padding: 18px 0; }
.sk-block + .sk-block { border-top: 1px solid var(--line); }
.sk-block span { display: block; height: 11px; border-radius: 6px; background: var(--surface-3); grid-column: 2; }
.sk-block .sk-icon { grid-column: 1; grid-row: span 4; width: 30px; height: 30px; border-radius: 8px; background: var(--gold-tint); }
.sk-block .sk-title { width: 40%; height: 18px; }
.sk-block .short { width: 60%; }
.lock-card { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 24px; text-align: center;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--surface) 92%, transparent) 30%, transparent 75%); }
.lock-card h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 6px 0 0; }
.lock-card p { margin: 0; max-width: 46ch; color: var(--text); }
.lock-card .btn { margin: 10px 0 4px; }
.lock-icon { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--gold-tint); color: var(--gold); }
.lock-icon svg { width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Sidebar */
.tender-aside { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 64px); }
.tender-aside .panel { margin: 0; }
.tender-aside h3 { font-size: 1.1rem; margin: 0 0 12px; }
.deadline-card { display: grid; gap: 10px; }
.deadline-box { display: flex; gap: 14px; padding: 16px; border-radius: 12px; background: var(--green-tint); color: var(--ink); }
.deadline-box svg { width: 34px; height: 34px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.deadline-box div { display: grid; font-size: .85rem; }
.deadline-box strong { font: 800 1.35rem/1.2 var(--font-head); }
.deadline-card form { margin: 0; }
.btn-ico { width: 18px; height: 18px; }
.btn-locked { background: #8fa79f; cursor: not-allowed; }
.btn-locked:hover { background: #8fa79f; }
.center { text-align: center; margin: 0; }
.quick { display: grid; grid-template-columns: auto 1fr; margin: 0; font-size: .85rem; }
.quick dt, .quick dd { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--line); }
.quick dt { color: var(--muted); padding-right: 12px; }
.quick dd { color: var(--ink); font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.quick dt:last-of-type, .quick dd:last-of-type { border-bottom: 0; }
.share { display: flex; gap: 10px; }
.share a, .share button { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; border: 0; background: var(--green-tint); color: var(--ink); font: 800 .9rem var(--font-body); text-decoration: none; cursor: pointer; }
.share a:hover, .share button:hover { background: var(--gold-tint); }
.share svg { width: 20px; height: 20px; }
.share .done { background: var(--fill); color: #fff; }
.sub-callout { background: var(--gold-tint); border-color: color-mix(in srgb, var(--gold) 35%, transparent); }
.sub-callout h3 { display: flex; align-items: center; gap: 10px; color: var(--gold-text); font-size: 1rem; }
.sub-callout svg { width: 22px; height: 22px; color: var(--gold); }
.sub-callout p { font-size: .88rem; margin: 0 0 14px; }
.why { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; font-size: .9rem; }
.why li { display: flex; align-items: center; gap: 12px; }
.why svg { flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 9px; background: var(--gold-tint); color: var(--gold); }
.small-link { font-size: .85rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.similar { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.similar a { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; color: inherit; text-decoration: none; }
.similar a:hover { border-color: var(--gold); }
.similar .tender-icon { width: 44px; height: 44px; }
.similar .tender-icon svg { width: 22px; height: 22px; }
.similar a.alt .tender-icon { background: var(--gold-tint); color: var(--gold-text); }
.similar a.alt .sector-tag { background: var(--gold-tint); color: var(--gold-text); }
.similar strong { display: block; margin-top: 4px; color: var(--ink); font-size: .88rem; line-height: 1.3; }
.similar small { color: var(--muted); font-size: .78rem; }
.similar .sector-tag { font-size: .6rem; }

@media (max-width: 960px) {
  .tender-layout { grid-template-columns: minmax(0, 1fr); } /* minmax: wide tables scroll instead of widening the page */
  .tender-aside { position: static; }
}
@media (max-width: 560px) {
  .tsec > p, .tsec > ul, .tsec > .table-scroll, .tsec > .address-box, .tsec > .doc-item { margin-left: 0; }
  .hero-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tender-body.locked { min-height: 560px; }
}

/* --- Opportunities v2: organisation logos, category tags, cards, process steps ------------------------- */
.org-logo { display: block; width: 44px; height: 44px; flex: none; border-radius: 10px; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.org-logo--lg { width: 88px; height: 88px; border-radius: 14px; padding: 6px; }
.org-logo--initials { display: grid; place-items: center; padding: 0; border: 0; color: #fff; font: 800 1rem var(--font-head); letter-spacing: .02em; }
.org-logo--initials.org-logo--lg { font-size: 1.7rem; }
.tile-0 { background: var(--brand); } .tile-1 { background: var(--gold); } .tile-2 { background: #0b6b4f; }
.tile-3 { background: #7a5200; } .tile-4 { background: #3d5a80; }

.cat-tag { font: 700 .68rem var(--font-body); letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; background: var(--green-tint); color: var(--green); }
.cat-scholarship, .cat-volunteer { background: var(--gold-tint); color: var(--gold-text); }
.cat-job { background: #e3ecfa; color: #24548f; }
.cat-grant { background: #ede6fa; color: #5b3b9a; }
.cat-fellowship { background: #fde4e4; color: #b4232b; }
@media (prefers-color-scheme: dark) {
  .cat-job { background: #1b2a40; color: #9cc0f0; } .cat-grant { background: #2a2140; color: #c8b2f0; } .cat-fellowship { background: #3b1a18; color: #ff9a92; }
  .org-logo:not(.org-logo--initials) { background: #fff; }
}

.landing .filters label.check span { flex: 1; }
.landing .filters label.check small { color: var(--muted); font-size: .82rem; }
.landing .filters input[type=text] { margin-bottom: 20px; }

.opp-card { position: relative; display: grid; grid-template-columns: 88px minmax(0, 1fr) 190px auto; gap: 20px; align-items: center;
  padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; transition: border-color .15s, box-shadow .15s; }
.opp-card:hover { border-color: var(--gold); box-shadow: 0 10px 26px rgba(2,55,42,.07); }
.opp-card h3 { margin: 0 0 6px; font-size: 1.08rem; }
.opp-card h3 a { color: var(--ink); text-decoration: none; }
.opp-card h3 a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.opp-summary { margin: 8px 0 0; color: var(--muted); font-size: .88rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.opp-facts-mini { display: grid; gap: 10px; margin: 0; }
.opp-facts-mini div { display: flex; gap: 10px; align-items: flex-start; }
.opp-facts-mini dt { width: 18px; height: 18px; flex: none; margin-top: 2px; background-position: center; background-size: contain; background-repeat: no-repeat; }
.opp-facts-mini dd { display: grid; margin: 0; font-size: .76rem; color: var(--muted); line-height: 1.3; }
.opp-facts-mini strong { color: var(--ink); font-size: .86rem; font-weight: 600; }
.ico-cal { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c0262d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
.ico-people { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2302372a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20a6.5 6.5 0 0 1 13 0'/%3E%3Ccircle cx='17.5' cy='9' r='2.5'/%3E%3Cpath d='M16 14.5a5 5 0 0 1 5.5 5.5'/%3E%3C/svg%3E"); }
.ico-pin { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2302372a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6.2 7-12a7 7 0 0 0-14 0c0 5.8 7 12 7 12z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E"); }
.more-link { position: relative; z-index: 1; white-space: nowrap; font-weight: 700; color: var(--gold-text); text-decoration: none; }
.more-link:hover { color: var(--ink); }

.process { list-style: none; padding: 0; margin: 8px 0 0 50px; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 18px; text-align: center; }
.process li { position: relative; display: grid; justify-items: center; gap: 4px; }
.process li + li::before { content: "→"; position: absolute; top: 14px; left: -14px; color: var(--muted); }
.process span { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 6px; border-radius: 50%; background: var(--surface-3); color: var(--ink); font: 800 1.05rem var(--font-head); }
.process li:first-child span { background: var(--gold); color: #fff; }
.process strong { color: var(--ink); font-size: .9rem; }
.process small { color: var(--muted); font-size: .8rem; line-height: 1.35; }
.org-box { display: flex; align-items: center; gap: 14px; margin: 14px 0 0 50px; padding: 14px 16px; border-radius: 12px; background: var(--green-tint); }
.org-box div { flex: 1; display: grid; gap: 2px; }
.org-box strong { color: var(--ink); font-size: .92rem; }
.org-box small { color: var(--muted); font-size: .8rem; }
.org-box .btn { flex: none; }
.tsec > p + .org-box { margin-top: 16px; }

.similar-opps a { grid-template-columns: 44px minmax(0, 1fr) auto; }
.similar-opps time { color: var(--muted); font-size: .76rem; white-space: nowrap; }

@media (max-width: 1100px) {
  .opp-card { grid-template-columns: 72px minmax(0, 1fr) 180px; }
  .opp-card .org-logo--lg { width: 72px; height: 72px; }
  .opp-card .more-link { grid-column: 2 / -1; justify-self: end; }
}
@media (max-width: 700px) {
  .opp-card { grid-template-columns: 52px minmax(0, 1fr); gap: 12px 14px; }
  .opp-card .org-logo--lg { width: 52px; height: 52px; font-size: 1.1rem; border-radius: 10px; }
  .opp-facts-mini { grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .opp-card .more-link { grid-column: 1 / -1; justify-self: start; }
  .process, .org-box { margin-left: 0; }
  .process { grid-template-columns: 1fr 1fr; }
  .process li + li::before { display: none; }
  .org-box { flex-wrap: wrap; }
}

/* --- Services page (mockup): cards with gold icons, steps row, why-choose, closing band ------------- */
/* This photo's two people sit further left than in the other heroes, so the curve stops earlier here. */
@media (min-width: 961px) {
  .svc-hero .board-hero__overlay { width: 84%; }
  .svc-hero .board-hero__img { object-position: 78% center; }
}
.svc-section { padding: clamp(36px, 5vw, 56px) 0; }
.svc-section .section-head { margin-bottom: 22px; }
.svc-section .section-head h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.svc-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 22px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s, box-shadow .2s, translate .2s; }
@media (hover: hover) { .svc-card:hover { border-color: var(--gold); box-shadow: 0 14px 32px rgba(2,55,42,.08); translate: 0 -2px; } }
.svc-img { width: calc(100% + 44px); max-width: none !important; margin: -22px -22px 6px; aspect-ratio: 16 / 9; object-fit: cover; }
.svc-icon { display: grid; place-items: center; width: 58px; height: 58px; flex: none; border-radius: 50%; background: var(--gold-tint); color: var(--gold); margin-bottom: 6px; }
.svc-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.svc-card h3 { margin: 0; font-size: 1.08rem; }
.svc-card h3 a { color: var(--ink); text-decoration: none; }
.svc-card h3 a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.svc-card p { margin: 0; flex: 1; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.svc-foot { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; }
.svc-foot .more { font-weight: 700; font-size: .92rem; color: var(--ink); }
.svc-foot small { color: var(--muted); font-size: .78rem; }
.svc-card:hover .more { color: var(--gold-text); }

.svc-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc-steps li { position: relative; display: grid; grid-template-columns: auto auto 1fr; gap: 14px; align-items: start; }
.svc-steps li + li::before { content: "⟶"; position: absolute; left: -22px; top: 16px; color: var(--muted); font-size: 1.1rem; }
.svc-steps .num { display: grid; place-items: center; width: 30px; height: 30px; margin-top: 14px; border-radius: 50%; background: var(--gold); color: #fff; font: 800 .95rem var(--font-head); }
.svc-steps .svc-icon { margin: 0; }
.svc-steps h3 { margin: 6px 0 4px; font-size: 1rem; }
.svc-steps p { margin: 0; color: var(--muted); font-size: .88rem; }

.why-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.why-grid li { display: flex; gap: 14px; padding: 4px 20px; }
.why-grid li:first-child { padding-left: 0; }
.why-grid li + li { border-left: 1px solid var(--line); }
.why-grid svg { width: 36px; height: 36px; flex: none; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.why-grid h3 { margin: 4px 0; font-size: .98rem; }
.why-grid p { margin: 0; color: var(--muted); font-size: .86rem; }

.svc-cta { position: relative; overflow: hidden; background: var(--brand); color: #cfe0d8; margin-top: clamp(24px, 4vw, 40px); }
.svc-cta > img { position: absolute; right: 0; top: 0; width: 52%; height: 100%; object-fit: cover; clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); }
.svc-cta .inner { position: relative; padding-top: clamp(36px, 5vw, 56px) !important; padding-bottom: clamp(36px, 5vw, 56px) !important; }
.svc-cta .inner > * { max-width: min(520px, 46vw); }
.svc-cta .kicker { color: var(--gold); }
.svc-cta h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0 0 8px; }
.svc-cta p { margin: 0; }
.svc-cta .cta-actions { margin-top: 22px; }

@media (max-width: 960px) {
  .svc-steps { grid-template-columns: 1fr; gap: 18px; }
  .svc-steps li + li::before { display: none; }
  .why-grid { grid-template-columns: 1fr 1fr; gap: 22px 0; }
  .why-grid li:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 700px) {
  .svc-cta > img { position: static; width: 100%; height: 180px; clip-path: none; }
  .svc-cta .inner > * { max-width: none; }
}
@media (max-width: 560px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-grid li { padding: 0 !important; border: 0 !important; }
}

/* --- Service detail (mockup): highlights, included checklist, process row, FAQs, provider card ---------- */
.svc-detail-hero .board-hero__img { object-position: 70% 30%; }
.svc-body { padding: 0; }
.svc-body .tsec > p, .svc-body .tsec > ul, .svc-body .tsec > ol, .svc-body .tsec > div { margin-left: 0; }
.svc-body .tsec h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); }
.svc-highlights { list-style: none; padding: 18px !important; margin-top: 18px !important; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: var(--surface-2); border-radius: 14px; }
.svc-highlights li { display: grid; gap: 4px; align-content: start; padding: 4px 16px; }
.svc-highlights li + li { border-left: 1px solid var(--line); }
.svc-highlights .svc-icon { width: 46px; height: 46px; margin-bottom: 8px; }
.svc-highlights .svc-icon svg { width: 24px; height: 24px; }
.svc-highlights strong { color: var(--ink); font-size: .92rem; }
.svc-highlights small { color: var(--muted); font-size: .82rem; line-height: 1.4; }
.svc-included { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; }
.checks.checks-solid li::before { background: var(--brand); color: #fff; }
.process-row { margin-left: 0 !important; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); text-align: left; }
.process-row li { justify-items: start; }
.process-row li + li::before { left: -16px; }
.process-row span { background: var(--gold) !important; color: #fff !important; }
.faqs { display: grid; gap: 8px; }
.faqs details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.faqs summary { list-style: none; display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; font-weight: 600; color: var(--ink); cursor: pointer; }
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; line-height: 1; }
.faqs details[open] summary::after { content: "–"; }
.faqs details p { margin: 0; padding: 0 16px 16px; color: var(--muted); }

.help-card { display: grid; gap: 12px; background: var(--green-tint); border-color: transparent; }
.help-head { display: flex; gap: 14px; align-items: flex-start; }
.help-head .svc-icon { width: 52px; height: 52px; margin: 0; background: var(--surface); }
.help-head .svc-icon svg { width: 26px; height: 26px; }
.help-head h3 { margin: 2px 0 4px !important; font-size: 1.15rem !important; }
.help-head p { margin: 0; color: var(--muted); font-size: .88rem; }
.help-card .checks { margin: 0 0 4px; font-size: .9rem; gap: 8px; }
.btn-ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.related-svc { list-style: none; margin: 0; padding: 0; }
.related-svc li + li { border-top: 1px solid var(--line); }
.related-svc a { display: flex; align-items: center; gap: 12px; padding: 10px 2px; color: var(--ink); font-weight: 600; font-size: .92rem; text-decoration: none; }
.related-svc a::after { content: "›"; margin-left: auto; color: var(--muted); font-size: 1.3rem; }
.related-svc a:hover { color: var(--gold-text); }
.related-svc .svc-icon { width: 34px; height: 34px; margin: 0; border-radius: 8px; }
.related-svc .svc-icon svg { width: 18px; height: 18px; }

/* Enquiry and quote request pages: form + "what happens next" aside */
.form-page { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; margin-top: 8px; }
.form-page h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.form-page form.panel { padding: 24px; margin-top: 18px; }
.form-aside { position: sticky; top: calc(var(--header-h) + 16px); margin-top: 92px; }
.form-aside h3 { margin-top: 0; }
.mini-steps { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 12px; font-size: .9rem; color: var(--muted); }
.mini-steps strong { display: block; color: var(--ink); }
.enquiry-about { grid-column: 1 / -1; margin: 0 0 14px; padding: 12px 14px; border-radius: 10px; background: var(--gold-tint); color: var(--text); }
@media (max-width: 860px) {
  .form-page { grid-template-columns: 1fr; }
  .form-aside { position: static; margin-top: 0; }
}

@media (max-width: 960px) {
  .svc-highlights { grid-template-columns: 1fr 1fr; gap: 16px 0; }
  .svc-highlights li:nth-child(3) { border-left: 0; }
}
@media (max-width: 560px) {
  .svc-highlights, .svc-included { grid-template-columns: 1fr; }
  .svc-highlights li { border-left: 0 !important; padding: 0; }
}

/* --- Company and legal pages (about, help, privacy, terms, cookies, refunds) ------------------------- */
.board-hero h1 em { font-style: normal; color: var(--gold); }
.page-band { padding: clamp(32px, 5vw, 52px) 0 clamp(24px, 4vw, 36px); background: radial-gradient(ellipse at 0% 0%, var(--cream), transparent 60%), var(--surface-2); border-bottom: 1px solid var(--line); }
.page-band h1 { font-size: clamp(2rem, 4.4vw, 3rem); letter-spacing: -.03em; margin: 0 0 10px; }
.page-band .lede { margin: 0 0 8px; }
.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; padding-top: 32px !important; padding-bottom: 64px !important; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 16px); }
.legal-toc h2 { margin: 0 0 10px; font: 700 .78rem var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.legal-toc ol { margin: 0; padding: 0 0 0 20px; display: grid; gap: 6px; font-size: .9rem; color: var(--muted); }
.legal-toc a { color: var(--text); text-decoration: none; }
.legal-toc a:hover { color: var(--green); text-decoration: underline; }
.legal-help { margin-top: 22px; padding: 14px 16px; border-radius: 12px; background: var(--green-tint); font-size: .88rem; }
.legal-help strong { color: var(--ink); }
.legal-help p { margin: 4px 0 0; }
.legal-body { max-width: 72ch; font-size: 1rem; line-height: 1.7; }
.legal-body section + section { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.legal-body h2 { font-size: 1.3rem; margin: 0 0 10px; }
.legal-body ul { padding-left: 22px; display: grid; gap: 6px; }
.legal-body .faqs { margin-top: 6px; }
.legal-body code { font-size: .88em; background: var(--surface-3); padding: 2px 6px; border-radius: 4px; }
.help-cta { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 36px 0 0; background: var(--green-tint); border-color: transparent; }
.help-cta h2 { margin: 0 0 4px; }
.help-cta p { margin: 0; }
.footer-contact { display: grid; gap: 4px; margin-top: 12px !important; }
.footer-contact a { color: var(--ink) !important; font-weight: 600; }

.about-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.about-pillars .svc-card { color: inherit; text-decoration: none; }
.about-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.about-story img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; }
.about-story h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 12px; }
.about-story p { color: var(--text); }

@media (max-width: 860px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .about-pillars, .about-story { grid-template-columns: 1fr; }
}

/* --- Tender detail ---------------------------------------------------- */
.detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.doc-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; margin-top: 8px; background: var(--surface); color: var(--ink); text-decoration: none; }
a.doc-item:hover { border-color: var(--green); }
.access-card { position: sticky; top: calc(var(--header-h) + 16px); }
.access-card .label { font: 700 .75rem var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.access-card .stack { display: grid; gap: 8px; margin-top: 14px; }
.access-card form { margin: 0; }

/* --- Opportunities ---------------------------------------------------- */
.chips-wrap { flex-wrap: wrap; margin-bottom: 14px; }
.opp-title { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.opp-body h2 { font-size: 1.15rem; margin: 26px 0 8px; }
.opp-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 16px 0; font-size: .92rem; }
.opp-facts dt { color: var(--muted); }
.opp-facts dd { margin: 0; color: var(--ink); font-weight: 600; }

/* --- My subscription -------------------------------------------------- */
.plan-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: 0 10px 30px rgba(12,42,35,.06); }
.plan-card.plan-active { border-top: 4px solid var(--green); }
.plan-card.plan-past_due { border-top: 4px solid var(--danger); }
.plan-card.plan-cancelled { border-top: 4px solid var(--amber); }
.plan-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.plan-card h3 { font-size: 1.6rem; margin: 10px 0 2px; }
.plan-price { margin: 0; font: 800 1.9rem var(--font-head); color: var(--ink); letter-spacing: -.02em; }
.plan-price span { font: 500 .95rem var(--font-body); color: var(--muted); letter-spacing: 0; }
.plan-dates { display: grid; grid-template-columns: auto auto; gap: 6px 16px; margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); font-size: .9rem; }
.plan-dates dt { color: var(--muted); }
.plan-dates dd { margin: 0; font-weight: 700; color: var(--ink); text-align: right; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font: 700 .78rem var(--font-body); background: var(--surface-3); color: var(--muted); }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-active { background: var(--green-tint); color: var(--green); }
.status-past_due { background: var(--danger-tint); color: var(--danger); }
.status-cancelled { background: var(--amber-tint); color: var(--amber-text); }
.plan-empty { text-align: center; padding: 40px 26px; }
.plan-empty h3 { margin-top: 14px; }
.plan-empty .muted { max-width: 44ch; margin: 0 auto 20px; }
.plan-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--amber-tint); color: var(--amber-text); }

.meter { height: 10px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin: 24px 0 8px; }
.meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green), #1fa37b); transform-origin: left; animation: grow .8s ease-out; }
@keyframes grow { from { transform: scaleX(0); } }
.meter-label { margin: 0; color: var(--muted); font-size: .9rem; }
.meter-label strong { color: var(--ink); }
.sub-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.sub-actions form { margin: 0; }
.btn-text { background: none; border: 0; padding: 8px 4px; font: 600 .92rem var(--font-body); color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; margin-left: auto; }
.btn-text.danger:hover { color: var(--danger); }
.notice { background: var(--amber-tint); color: var(--amber-text); border-radius: 10px; padding: 12px 14px; font-size: .92rem; margin-top: 16px; }
.notice-danger { background: var(--danger-tint); color: var(--danger); }
.linkish { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: inherit; text-decoration: underline; cursor: pointer; }
.notice + .notice { margin-top: 8px; }

.section-title { margin: 36px 0 12px; font-size: 1.15rem; }
.bill-list { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; margin-bottom: 10px; }
.bill-row { display: grid; grid-template-columns: 32px 1fr auto auto; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.bill-row:last-child { border-bottom: 0; }
.bill-row code { font-size: .8rem; }
.bill-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--green-tint); color: var(--green); font-weight: 700; font-size: .85rem; }
.empty-inline { padding: 22px; border: 1px dashed var(--line); border-radius: 14px; text-align: center; color: var(--muted); }

/* --- Plans page --------------------------------------------------------- */
.plans-intro { text-align: center; max-width: 640px; margin: 8px auto 36px; }
.plans-intro .eyebrow { justify-content: center; }
.plans-intro .lede { margin: 0 auto; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; align-items: stretch; }
.plan-tile { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px 24px 24px;
  transition: transform .2s, box-shadow .2s, border-color .2s; animation: rise .45s ease-out both; animation-delay: calc(var(--i) * 80ms); }
@media (hover: hover) { /* no sticky lift after a tap on touch screens */
  .plan-tile:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(12,42,35,.1); border-color: var(--line-strong); }
}
.plan-tile.is-current { border: 2px solid var(--green); box-shadow: 0 16px 36px rgba(18,122,92,.14); }
.plan-tile h2 { font-size: 1.25rem; margin-bottom: 14px; }
.plan-tile .plan-price { font-size: 2.3rem; }
.plan-sub { margin: 4px 0 0; color: var(--muted); font-size: .88rem; }
.plan-ribbon { position: absolute; top: -12px; left: 24px; padding: 4px 12px; border-radius: 999px; background: var(--fill); color: #fff; font: 700 .75rem var(--font-body); letter-spacing: .03em; }
.plan-ribbon.ribbon-next { background: var(--amber); color: var(--brand); }
.plan-features { list-style: none; padding: 20px 0 0; margin: 20px 0 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; flex: 1; align-content: start; }
.plan-features li { display: flex; gap: 10px; font-size: .93rem; }
.plan-features li::before { content: "✓"; flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--green-tint); color: var(--green); font-size: .7rem; font-weight: 800; margin-top: 1px; }
.plan-cta form { margin: 0; }
.plans-foot { text-align: center; margin-top: 28px; }
@media (max-width: 760px) {
  .plan-dates { width: 100%; }
  .bill-row { grid-template-columns: 32px 1fr auto; }
  .bill-row code { display: none; }
  .btn-text { margin-left: 0; }
}

/* --- Order progress tracker (Requested → … → Delivered) ---------------- */
.stepper { list-style: none; padding: 0; margin: 20px 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.stepper li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--muted); text-align: center; }
.stepper li::before { content: ""; position: absolute; top: 15px; right: 50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.stepper li:first-child::before { display: none; }
.stepper li.done { color: var(--ink); }
.stepper li.done::before { background: var(--fill); }
.stepper .dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); display: grid; place-items: center; }
.stepper li.done .dot { background: var(--fill); border-color: var(--fill); color: #fff; }
.stepper li[aria-current="step"] .dot { box-shadow: 0 0 0 4px var(--green-tint); }

/* --- Order thread ----------------------------------------------------- */
.thread { display: grid; gap: 10px; margin-bottom: 18px; }
.bubble { max-width: 75%; padding: 12px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.bubble.mine { justify-self: end; background: var(--fill); color: #fff; border-color: var(--fill); }
.bubble.mine .muted { color: #cfe5dc; }

/* --- Admin console (/admin/) ------------------------------------------ */
.console:not(:has(.console-side)) main { max-width: 440px; padding-top: 10vh; }
.console-login { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 20px 50px rgba(12,42,35,.08); animation: rise .35s ease-out; }
.console:has(.console-side) { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.console-side { background: var(--brand); color: #d7e4de; padding: 18px 12px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.console-side .brand { padding: 0 8px; }
.console-side nav { display: grid; gap: 2px; flex: 1; align-content: start; }
.console-side nav a { color: #d7e4de; text-decoration: none; font-size: .92rem; padding: 7px 10px; border-radius: 8px; }
.console-side nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.console-side nav a[aria-current="page"] { background: var(--fill); color: #fff; font-weight: 600; }
.console-group { font: 700 .7rem var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--amber); padding: 14px 10px 4px; }
.console-user { display: flex; align-items: center; gap: 10px; padding: 10px 8px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }
.console-user > span:nth-child(2) { flex: 1; display: grid; min-width: 0; }
.console-user strong { color: #fff; overflow: hidden; text-overflow: ellipsis; }
.console-user a { color: #9fb8ae; }
.console-user form { margin: 0; }
.console-user button { background: none; border: 0; color: #d7e4de; font-size: 1.1rem; cursor: pointer; padding: 6px; border-radius: 8px; }
.console-user button:hover { background: rgba(255,255,255,.1); color: #fff; }
.console-main { max-width: 1100px; width: 100%; padding: 32px 28px 64px; margin: 0; min-width: 0; }
.console-h2 { margin-top: 28px; font-size: 1.05rem; color: var(--muted); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.report-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 0 20px; }.stat { display: grid; gap: 4px; margin: 0; text-decoration: none; }
.table-scroll { overflow-x: auto; border-radius: var(--radius); }
.table-scroll td, .table-scroll th { white-space: nowrap; }
.stat:hover { border-color: var(--green); }
.stat strong { font: 800 1.8rem var(--font-head); color: var(--ink); }
.back { display: inline-block; margin-bottom: 14px; font-weight: 600; font-size: .9rem; text-decoration: none; }
.row-actions { text-align: right; white-space: nowrap; }
.filter-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin: -4px 0 16px; }
.filter-row label { margin: 0; font-size: .8rem; color: var(--muted); }
.filter-row select { width: auto; min-width: 150px; margin-top: 4px; padding: 8px 12px; }
.filter-row a { font-weight: 600; font-size: .9rem; padding-bottom: 9px; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; }
.kv { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; margin: 0; }
.kv dt, .kv dd { padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; }
.kv dt { color: var(--muted); font-size: .9rem; }
.kv dd { white-space: pre-line; overflow-wrap: anywhere; }
.btn-danger { background: #b3261e; }
.btn-danger:hover { background: #8c1d17; }
.danger-text { color: var(--danger); }
.console-form { max-width: 720px; }
.console-form textarea { min-height: 120px; resize: vertical; }

/* --- Marketing pages (home, services) — full-bleed sections ----------- */
.landing main { max-width: none; padding: 0; }
.landing main .inner { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(48px, 8vw, 88px) 0; }
.section-alt { background: var(--surface-3); }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head.split { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.section-head h2, .prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; margin: 0; }
.landing img { display: block; max-width: 100%; }

/* Home page (mockup: hero, paths, latest feeds, services band, steps, stats, join) */
.kicker { margin: 0 0 8px; font: 700 .78rem var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }
.landing .section-head h2, .latest-head h2, .services-band h2, .how h2, .join h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.section-head .muted { font-size: 1rem; margin: 8px 0 0; }
.section-tight { padding-top: 0; }

.hero { position: relative; overflow: hidden; background: radial-gradient(ellipse at 0% 0%, var(--cream), transparent 60%), var(--bg); }
/* Copy column stays on the 1140px grid; the photos bleed to the right edge of the window, as in the mockup. */
.hero-grid { display: grid; grid-template-columns: minmax(0, 540px) minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); align-items: stretch; }
.hero-copy { align-self: center; padding: clamp(36px, 5vw, 64px) 0; }
.hero h1 { font-size: clamp(2rem, 3.5vw, 3.05rem); line-height: 1.08; letter-spacing: -.03em; margin-bottom: 18px; }
.hero h1 em, .join h2 em { font-style: normal; color: var(--gold); }
.hero .lede { margin: 0; max-width: 46ch; }
.hero .cta-actions { margin-top: 28px; }
.trust { list-style: none; padding: 0; margin: 32px 0 0; display: flex; gap: 14px 28px; flex-wrap: wrap; font-size: .88rem; color: var(--muted); }
.trust li { display: flex; align-items: center; gap: 10px; max-width: 15ch; line-height: 1.3; }
.trust svg, .path-icon svg, .feed-icon svg, .service-tiles svg, .stats svg { flex: none; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.trust svg { color: var(--gold); }

/* Two photo panels cut by SVG clip paths (templates/home.html). Each panel covers the whole wrapper so both
   paths share one coordinate box; the wrapper's background shows through as the white diagonal gap. */
.hero-media { position: relative; min-height: 480px; margin: 20px 0;
  margin-right: calc(-1 * max(20px, (100vw - var(--hero-w, 1140px)) / 2 + 20px)); }
/* Wide screens: the photos bleed to the right edge, so a 1140px copy column left a big empty margin on
   the left. Widen the hero's grid (only the hero) so the two sides balance. */
@media (min-width: 1400px) {
  .landing .hero { --hero-w: min(1400px, 90vw); }
  .landing .hero .inner { max-width: var(--hero-w); }
  .hero-grid { grid-template-columns: minmax(0, 640px) minmax(0, 1fr); }
  .hero h1 { font-size: clamp(3.05rem, 2.7vw, 3.3rem); }
  .hero-media { min-height: 540px; }
}
.hero-clips { position: absolute; }
.hero-panel { position: absolute; inset: 0; }
.hero-panel img { position: absolute; top: 0; height: 100%; object-fit: cover; }
.hero-panel--business { clip-path: url(#clip-business); }
.hero-panel--business img { left: 0; width: 58%; object-position: 62% center; }
.hero-panel--individual { clip-path: url(#clip-individual); }
.hero-panel--individual img { left: 38%; width: 62%; object-position: 58% center; }
.hero-note, .hero-badge { position: absolute; z-index: 1; margin: 0; font: 600 .95rem/1.35 var(--font-body); animation: rise .5s .2s ease-out both; }
.hero-note { top: 8%; left: 25%; max-width: 12ch; padding: 18px 18px 16px; border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: 0 14px 32px rgba(2,55,42,.18); }
.hero-badge { right: 0; bottom: 0; width: min(46%, 300px); padding: 24px 24px 28px; border-radius: 28px 0 0 0; background: var(--brand); color: #fff; font-size: 1rem; }
.hero-note::after, .hero-badge::after { content: ""; display: block; width: 34px; height: 3px; margin-top: 10px; border-radius: 2px; background: var(--gold); }
/* static/js/landing.js (anime.js) animates the hero in: hide it until then. The class is removed after 3s regardless. */
.anim-pending .hero-copy > *, .anim-pending .hero-copy .trust li, .anim-pending .hero-panel,
.anim-pending .hero-note, .anim-pending .hero-badge { opacity: 0; }
.anim .hero-note, .anim .hero-badge { animation: none; }

/* Choose your path */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.path-card { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.path-body { padding: 26px; }
.path-body h3 { display: flex; align-items: center; gap: 12px; font-size: 1.25rem; }
.path-body > p { color: var(--muted); font-size: .93rem; margin: 0 0 16px; }
.path-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--gold-tint); color: var(--gold-text); }
.path-card img { width: 100%; height: 100%; object-fit: cover; clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%); }
.checks-gold { font-size: .92rem; }
.checks.checks-gold li::before { background: var(--gold); color: #fff; }

/* Latest tenders / opportunities feeds */
.latest { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.latest-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 12px; }
.latest-head h2 { margin: 0; }
.latest-head > a { font-weight: 700; font-size: .9rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.latest-head > a:hover { color: var(--green); }
.feed { list-style: none; margin: 0; padding: 4px 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.feed li + li { border-top: 1px solid var(--line); }
.feed a { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 13px 18px; color: inherit; text-decoration: none; transition: background .15s; }
.feed a::after { content: "›"; font-size: 1.4rem; color: var(--muted); }
.feed a:hover { background: var(--surface-2); }
.feed-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--green-tint); color: var(--green); }
.feed-gold .feed-icon { background: var(--gold-tint); color: var(--gold-text); }
.feed-main { display: grid; min-width: 0; }
.feed-main strong { color: var(--ink); font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-main span, .feed-date span { color: var(--muted); font-size: .83rem; }
.feed-date { display: grid; text-align: right; font-size: .88rem; color: var(--ink); white-space: nowrap; }
.feed-empty { padding: 22px 18px; color: var(--muted); }

/* Services band */
.services-band { background: var(--cream); overflow: hidden; }
.services-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, .8fr); gap: 28px; align-items: center; padding-top: 40px !important; padding-bottom: 40px !important; }
.services-band h2 { margin-bottom: 8px; }
.services-band .muted { margin: 0 0 20px; }
.service-tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 12px; }
.service-tiles a { display: grid; justify-items: center; align-content: center; gap: 12px; height: 100%; min-height: 128px; padding: 18px 12px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); font-weight: 600; font-size: .86rem; line-height: 1.3; text-decoration: none; transition: border-color .15s, translate .2s; }
.service-tiles a:hover { border-color: var(--gold); translate: 0 -2px; }
.service-tiles svg { width: 32px; height: 32px; color: var(--ink); }
.services-img { width: 100%; height: 100%; max-height: 300px; object-fit: cover; border-radius: 20px; }

/* How it works */
.how-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.how-steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; }
.how-steps li { position: relative; }
.how-steps li + li::before { content: "→"; position: absolute; top: 12px; left: -18px; color: var(--muted); }
.how-steps span { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--gold); color: #fff; font: 800 1.2rem var(--font-head); margin-bottom: 14px; }
.how-steps h3 { margin: 0 0 6px; }
.how-steps p { margin: 0; color: var(--muted); font-size: .9rem; }
.how-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; }

/* Stats band */
.stats-band { background: var(--brand); color: #cfe0d8; }
.stats { list-style: none; margin: 0 auto; padding: 36px 20px !important; display: grid; grid-template-columns: repeat(4, 1fr); }
.stats li { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 6px 12px; }
.stats li + li { border-left: 1px solid rgba(255,255,255,.16); }
.stats svg { width: 30px; height: 30px; color: #fff; }
.stats strong { color: #fff; font: 800 clamp(1.6rem, 3vw, 2.1rem) var(--font-head); }
.stats span { font-size: .9rem; }

/* Join (sign-up) band */
.join { position: relative; overflow: hidden; background: var(--cream); }
.join > img { position: absolute; right: 0; top: 0; width: 60%; height: 100%; object-fit: cover; opacity: .22; mask-image: linear-gradient(90deg, transparent, #000 60%); }
.join-grid { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 44px !important; padding-bottom: 44px !important; }
.join h2 { margin: 0 0 6px; }
.join .muted { margin: 0; font-size: .98rem; }
.join-actions { display: grid; justify-items: center; gap: 10px; }
.join-actions a:not(.btn) { font-weight: 700; color: var(--gold-text); }

.page-hero { position: relative; overflow: hidden; color: #cfe0d8; padding: clamp(56px, 9vw, 104px) 0; background: var(--brand); }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--brand) 25%, rgba(12,42,35,.4)); }
.page-hero .inner { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; max-width: 18ch; font-size: clamp(2.1rem, 4.6vw, 3.3rem); letter-spacing: -.03em; }
.page-hero .lede { color: #cfe0d8; }
.page-hero .eyebrow { color: var(--amber); }
.page-hero .eyebrow::before { background: var(--amber); }
.back-light { display: inline-block; margin-bottom: 18px; color: #cfe0d8; font-weight: 600; font-size: .9rem; text-decoration: none; }
.back-light:hover { color: #fff; }
.hero-price { color: #cfe0d8; }
.hero-price strong { color: #fff; font: 800 1.3rem var(--font-head); }
.cta-actions { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; margin-top: 24px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.steps p { color: var(--muted); margin: 0; }
.step-num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: var(--amber); font: 800 1.1rem var(--font-head); margin-bottom: 16px; }

.checks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li::before { content: "✓"; flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--green-tint); color: var(--green); font-weight: 800; font-size: .8rem; margin-top: 2px; }

.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.service-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; transition: border-color .2s, transform .2s, box-shadow .2s; }
@media (hover: hover) {
  .service-card:hover { border-color: var(--green); transform: translateY(-3px); box-shadow: 0 16px 36px rgba(12,42,35,.1); }
}
.service-img { width: calc(100% + 48px); max-width: none !important; margin: -24px -24px 6px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 17px 17px 0 0; }
.service-card h3 { font-size: 1.2rem; margin: 4px 0 0; }
.service-card h3 a { color: var(--ink); text-decoration: none; }
.service-card h3 a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.service-card p { margin: 0; flex: 1; }
.service-foot { width: 100%; display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--line); font-size: .92rem; }
.service-foot strong { color: var(--ink); }
.service-foot .more { color: var(--green); font-weight: 700; }

.prose { max-width: 68ch; font-size: 1.05rem; }
.prose h2 { margin-bottom: 16px; }
.access-card .price { font: 800 2rem var(--font-head); color: var(--ink); margin: 4px 0 18px; }

.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.section > .cta-band { background: var(--brand); color: #b9cdc5; border-radius: 24px; padding: clamp(28px, 5vw, 48px); max-width: 1100px; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-band p { margin: 0; }
.cta-band .cta-actions { margin: 0; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.btn-outline:hover { background: rgba(255,255,255,.1); }

/* --- Footer ------------------------------------------------------------ */
.site-footer { background: var(--cream); color: var(--muted); font-size: .92rem; border-top: 1px solid var(--line); }
.site-footer .inner { max-width: 1140px; margin: 0 auto; padding: 52px 20px 32px; display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.site-footer h4 { color: var(--ink); font: 700 .95rem var(--font-head); margin: 0 0 12px; }
.site-footer nav, .site-footer .inner > div { display: grid; gap: 8px; align-content: start; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer p { margin: 0; }
.footer-brand p { max-width: 34ch; margin-top: 12px; }
.site-footer .footer-base { display: flex; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; padding: 18px 20px; border-top: 1px solid var(--line); font-size: .85rem; }
.footer-tag { color: var(--gold-text); font-weight: 600; }

@media (max-width: 960px) {
  .paths, .latest { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .landing .services-img { display: none; }
}
@media (max-width: 860px) {
  .hero-grid, .how-grid { grid-template-columns: 1fr; }
  .hero-media { min-height: 300px; margin: 0 -20px 0; }
  .landing .how-img { display: none; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .stats li:nth-child(3) { border-left: 0; }
  .site-footer .inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .path-card { grid-template-columns: 1fr; }
  .path-card img { height: 180px; clip-path: none; order: -1; }
  .how-steps { grid-template-columns: 1fr; text-align: left; }
  .how-steps li { display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; }
  .how-steps span { grid-row: span 2; margin: 0; }
  .how-steps li + li::before { display: none; }
  .feed a { grid-template-columns: 36px minmax(0, 1fr); }
  .feed a::after { display: none; }
  .feed-date { grid-column: 2; text-align: left; display: block; }
  .feed-date span::before { content: " · "; }
  .hero-media { min-height: 260px; }
  .hero-note { font-size: .8rem; padding: 12px; }
  .hero-badge { font-size: .8rem; padding: 14px; }
}
@media (max-width: 480px) {
  .site-footer .inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .console:has(.console-side) { grid-template-columns: 1fr; }
  .console-side { position: static; height: auto; }
  .console-main { padding: 24px 16px 48px; }
  .kv { grid-template-columns: 1fr; }
  .kv dt { border: 0; padding-bottom: 0; }
  .board { grid-template-columns: 1fr; }
  .filters { position: static; }
  .tender-row { grid-template-columns: 40px 1fr; }
  .tender-row .badge, .tender-row .date { grid-column: 2; justify-self: start; text-align: left; }
  .detail-grid { grid-template-columns: 1fr; }
  .access-card { position: static; }
  .bubble { max-width: 90%; }
  .profile { grid-template-columns: 1fr; }
  .profile-nav { position: static; display: flex; overflow-x: auto; scrollbar-width: none; gap: 4px; margin: 0 -4px; padding: 0 4px 4px; }
  .profile-nav a { white-space: nowrap; }
  .profile-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--green), 0 1px 3px rgba(0,0,0,.05); }
  .form-grid { grid-template-columns: 1fr; }
  .profile-stats { width: 100%; }
  .profile-stats li { flex: 1; }
  .profile-stats a, .profile-stats li > div { min-width: 0; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-main { padding: 20px; }
  .auth-browse { display: none; }
  .auth-card { margin: 0 auto; padding: 12px 0 32px; }
  .auth-brand-mobile { display: flex; }
  .choice-cards { grid-template-columns: 1fr; }
}

/* Emailed-code screen (templates/accounts/verify_code.html) */
.tfa-code { font: 600 1.5rem/1 var(--font-body); letter-spacing: .3em; text-align: center; }
.code-resend { margin: 16px 0 0; text-align: center; font-size: .92rem; }
form.auth-switch { margin-bottom: 0; }
