/* ==========================================================================
   David Solomon Yakabu · SolexGift Tech Limited
   Classic editorial design system — Cambria throughout, sky-blue & white.
   Cambria is a system font (Windows/Office/macOS with Office). No remote
   font is loaded; Georgia is the fallback.
   ========================================================================== */

:root {
  --blue: #38BDF8;
  --blue-deep: #174A70;
  --navy: #152536;
  --white: #FFFFFF;
  --soft: #F7F9FC;
  --text: #293746;
  --muted: #687789;
  --border: #DCE5ED;
  --blue-tint: #EAF6FD;
  --danger: #A8321F;
  --danger-tint: #FBEDEA;
  --ok: #1E6B45;
  --ok-tint: #E9F6EF;
  --warn: #8A5A00;
  --warn-tint: #FFF6E0;

  --font: Cambria, Georgia, "Times New Roman", serif;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(21, 37, 54, .06), 0 8px 24px rgba(21, 37, 54, .06);
  --wrap: 1140px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 2px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 200; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }

/* ---------- Type scale ---------- */
h1, h2, h3, h4 { font-family: var(--font); color: var(--navy); margin: 0; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); line-height: 1.08; letter-spacing: -0.012em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); line-height: 1.15; letter-spacing: -0.008em; }
h3 { font-size: 1.3rem; line-height: 1.3; }
h4 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-deep); }
p { margin: 0 0 1em; max-width: 68ch; }
.lede { font-size: 1.2rem; line-height: 1.6; color: var(--text); max-width: 56ch; }
.eyebrow { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-deep); font-weight: 700; margin: 0 0 14px; }
.eyebrow::before { content: ""; display: inline-block; width: 28px; height: 2px; background: var(--blue); vertical-align: middle; margin-right: 12px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.caption { font-size: .88rem; color: var(--muted); font-style: italic; margin-top: 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 24px; border-radius: var(--radius);
  border: 1px solid transparent; font-weight: 700; font-size: 1rem; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn-primary { background: var(--blue-deep); color: #fff; border-color: var(--blue-deep); }
.btn-primary:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-ghost { background: #fff; color: var(--blue-deep); border-color: var(--blue-deep); }
.btn-ghost:hover { background: var(--blue-tint); color: var(--navy); }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: .9rem; }
.btn-danger { background: #fff; color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: var(--danger-tint); color: var(--danger); }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.2) blur(6px); border-bottom: 1px solid var(--border); }
.header-row { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.monogram { display: inline-grid; place-items: center; width: 42px; height: 42px; background: var(--blue-deep); color: #fff; font-weight: 700; font-size: .95rem; letter-spacing: .04em; border-radius: var(--radius); border-bottom: 3px solid var(--blue); }
.brand-text { font-weight: 700; font-size: 1.12rem; letter-spacing: .005em; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { color: var(--text); text-decoration: none; font-size: 1rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover { color: var(--blue-deep); }
.nav a.active:not(.btn) { color: var(--blue-deep); border-bottom-color: var(--blue); font-weight: 700; }
.nav-cta { margin-left: 8px; min-height: 40px; padding: 6px 20px; }
.menu-btn { display: none; width: 46px; height: 46px; background: none; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; padding: 0; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.menu-btn span { display: block; width: 20px; height: 2px; background: var(--navy); transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--soft) 0%, #fff 100%); border-bottom: 1px solid var(--border); padding: 72px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.availability { display: inline-flex; align-items: center; gap: 10px; margin: 28px 0 0; padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; background: #fff; font-size: .92rem; color: var(--blue-deep); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #2BAE6B; box-shadow: 0 0 0 3px rgba(43,174,107,.18); }

.hero-art { margin: 0; }
.hero-art figcaption { font-size: .8rem; color: var(--muted); font-style: italic; margin-top: 12px; text-align: center; }
.window { background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow); overflow: hidden; transform: rotate(-1deg); }
.window-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--soft); border-bottom: 1px solid var(--border); font-size: .75rem; color: var(--muted); }
.window-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.window-bar span { margin-left: 10px; }
.window-body { display: grid; grid-template-columns: 112px 1fr; min-height: 280px; }
.w-side { background: var(--navy); color: #cfe3f1; padding: 16px 14px; display: flex; flex-direction: column; gap: 8px; font-size: .78rem; }
.w-side b { color: #fff; letter-spacing: .08em; margin-bottom: 8px; border-bottom: 2px solid var(--blue); padding-bottom: 8px; }
.w-side span { padding: 5px 8px; border-radius: 3px; }
.w-side span.on { background: rgba(56,189,248,.2); color: #fff; }
.w-main { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.w-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.w-cards div { border: 1px solid var(--border); border-radius: 4px; padding: 8px 10px; }
.w-cards small { display: block; color: var(--muted); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; }
.w-cards strong { font-size: .9rem; color: var(--blue-deep); }
.w-chart { border: 1px solid var(--border); border-radius: 4px; padding: 8px; height: 110px; }
.w-chart svg { width: 100%; height: 100%; }
.w-rows { display: grid; gap: 8px; }
.w-rows i { height: 10px; background: var(--soft); border: 1px solid var(--border); border-radius: 2px; }
.w-rows i:nth-child(2) { width: 82%; } .w-rows i:nth-child(3) { width: 60%; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section.alt { background: var(--soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { margin-bottom: 48px; }
.section-head h2 { margin-bottom: 12px; }
.section-sub { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* About */
.about-grid { display: grid; grid-template-columns: 320px 1fr; gap: 64px; align-items: start; }
.portrait { aspect-ratio: 4 / 5; background: linear-gradient(160deg, var(--blue-deep), var(--navy)); border-radius: var(--radius); display: grid; place-items: center; position: relative; overflow: hidden; border-bottom: 5px solid var(--blue); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.portrait-mono { color: rgba(255,255,255,.92); font-size: 4rem; font-weight: 700; letter-spacing: .08em; }
.about-copy h2 { margin-bottom: 22px; }
.dropcap::first-letter { float: left; font-size: 3.6rem; line-height: .85; padding: 6px 10px 0 0; color: var(--blue-deep); font-weight: 700; }
.statement { margin: 28px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--blue); font-size: 1.3rem; line-height: 1.5; font-style: italic; color: var(--navy); max-width: 60ch; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; max-width: 560px; }
.facts li { border-top: 1px solid var(--border); padding-top: 10px; font-size: .98rem; }
.facts li::before { content: "\2713"; color: var(--blue-deep); font-weight: 700; margin-right: 10px; }

/* Projects */
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.pcard { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s, border-color .25s; }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c4d4e2; }
.pthumb { aspect-ratio: 16 / 9; background: var(--blue-tint); border-bottom: 1px solid var(--border); }
.pthumb svg { width: 100%; height: 100%; }
.pbody { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pmeta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pcat { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.pbody p { font-size: 1rem; margin: 0; color: var(--text); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: .82rem; padding: 2px 10px; border: 1px solid var(--border); border-radius: 999px; color: var(--blue-deep); background: var(--soft); }
.tag.pending { font-style: italic; color: var(--muted); background: #fff; border-style: dashed; }
.pcard .btn { margin-top: auto; align-self: flex-start; }

.badge { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: var(--blue-tint); color: var(--blue-deep); border: 1px solid #b9e2f8; }
.badge.s-proposed, .badge.s-concept { background: var(--warn-tint); color: var(--warn); border-color: #f0dca8; }
.badge.s-completed, .badge.s-deployed, .badge.replied { background: var(--ok-tint); color: var(--ok); border-color: #b9e0cb; }
.badge.new { background: var(--blue-deep); color: #fff; border-color: var(--blue-deep); }
.badge.archived, .badge.closed { background: var(--soft); color: var(--muted); border-color: var(--border); }

/* Expertise */
.expertise-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--border); border-radius: var(--radius); }
.ecol { padding: 28px 26px; border-right: 1px solid var(--border); }
.ecol:last-child { border-right: 0; }
.ecol h3 { font-size: 1.15rem; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 2px solid var(--blue); display: inline-block; }
.ecol ul { list-style: none; margin: 0; padding: 0; }
.ecol li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .98rem; }
.ecol li:last-child { border-bottom: 0; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; border-left: 2px solid var(--border); }
.tl-item { position: relative; padding: 0 0 34px 28px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -37px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--blue-deep); }
.tl-item .when { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-deep); font-weight: 700; display: block; margin-bottom: 2px; }
.tl-item h3 { margin-bottom: 6px; }
.tl-item p { margin: 0; color: var(--text); font-size: 1rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.contact-grid > * { min-width: 0; }
.panel { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.tabs { display: flex; border-bottom: 1px solid var(--border); background: var(--soft); overflow-x: auto; }
.tabs button { flex: 1 0 auto; padding: 16px 20px; background: none; border: 0; border-bottom: 3px solid transparent; cursor: pointer; font-weight: 700; color: var(--muted); white-space: nowrap; min-height: 52px; }
.tabs button:hover { color: var(--blue-deep); }
.tabs button[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--blue); background: #fff; }
.pane { padding: 28px; }
.notice { margin: 20px 28px 0; padding: 12px 16px; background: var(--warn-tint); border: 1px solid #f0dca8; color: var(--warn); border-radius: var(--radius); font-size: .95rem; }
.form { display: grid; gap: 18px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 6px; color: var(--navy); }
.opt { font-weight: 400; color: var(--muted); }
input, select, textarea { width: 100%; padding: 11px 14px; border: 1px solid #b8c7d4; border-radius: var(--radius); background: #fff; min-height: 46px; }
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--blue-deep); outline: 3px solid rgba(56,189,248,.45); outline-offset: 0; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); background: var(--danger-tint); }
.err { color: var(--danger); font-size: .88rem; margin: 6px 0 0; min-height: 0; }
.err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.status { margin: 0; font-size: .98rem; max-width: none; }
.status.ok { color: var(--ok); }
.status.bad { color: var(--danger); }
.success-card { border: 1px solid #b9e0cb; background: var(--ok-tint); border-radius: var(--radius); padding: 22px 24px; color: var(--ok); }
.success-card strong { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.success-card code { font-family: var(--font); font-weight: 700; letter-spacing: .08em; background: #fff; padding: 2px 10px; border: 1px solid #b9e0cb; border-radius: 3px; color: var(--navy); }

.direct { border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; background: var(--soft); }
.direct h3 { margin-bottom: 4px; }
.direct-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.direct-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--navy); font-weight: 700; min-height: 46px; }
.direct-list a:hover { border-color: var(--blue-deep); background: var(--blue-tint); }
.direct-list a::after { content: "\2192"; color: var(--blue-deep); }
.direct hr { border: 0; border-top: 1px solid var(--border); margin: 22px 0; }

/* Private conversation (visitor) */
.chat-gate { max-width: 520px; }
.chat-gate p { font-size: 1rem; }
.chat-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.chat-layout { display: grid; grid-template-columns: 230px 1fr; gap: 22px; }
.clist { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: var(--radius); max-height: 460px; overflow: auto; }
.clist button { width: 100%; text-align: left; padding: 12px 14px; background: #fff; border: 0; border-bottom: 1px solid var(--border); cursor: pointer; display: grid; gap: 2px; }
.clist li:last-child button { border-bottom: 0; }
.clist button:hover { background: var(--blue-tint); }
.clist button[aria-current="true"] { background: var(--blue-tint); box-shadow: inset 3px 0 0 var(--blue-deep); }
.clist .c-sub { font-weight: 700; font-size: .95rem; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clist .c-meta { font-size: .78rem; color: var(--muted); }
.unread-dot { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 999px; background: var(--blue-deep); color: #fff; font-size: .72rem; text-align: center; margin-left: 6px; }
.thread-box { border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; min-height: 380px; background: #fff; }
.thread-head { padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--soft); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; align-items: center; }
.thread-head strong { color: var(--navy); }
.thread { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; max-height: 420px; }
.bubble { max-width: 82%; padding: 10px 14px; border-radius: 6px; border: 1px solid var(--border); background: var(--soft); font-size: 1rem; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; animation: pop .25s ease-out; }
.bubble.mine { align-self: flex-end; background: var(--blue-deep); color: #fff; border-color: var(--blue-deep); }
.bubble.theirs { align-self: flex-start; }
.bubble time { display: block; font-size: .72rem; opacity: .75; margin-top: 4px; }
.bubble .state { font-size: .72rem; margin-left: 8px; font-style: italic; }
.bubble.failed { border-color: var(--danger); background: var(--danger-tint); color: var(--danger); }
.bubble.sending { opacity: .7; }
.composer { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 12px; border-top: 1px solid var(--border); align-items: end; }
.composer textarea { min-height: 46px; resize: none; }
.empty { padding: 28px; text-align: center; color: var(--muted); font-style: italic; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #cdd9e4; padding: 64px 0 0; }
.site-footer a { color: #cdd9e4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand { color: #fff; }
.site-footer .monogram { background: var(--blue-deep); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; padding-bottom: 44px; }
.foot-brand { margin: 12px 0 8px; font-weight: 700; color: #fff; }
.closing { font-style: italic; color: #9fb7cc; margin: 0; }
.site-footer h4 { color: var(--blue); margin-bottom: 14px; }
.site-footer nav a { display: block; padding: 4px 0; }
.foot-links { list-style: none; margin: 0; padding: 0; }
.foot-links li { padding: 4px 0; }
.foot-base { border-top: 1px solid rgba(255,255,255,.14); padding-top: 22px; padding-bottom: 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .9rem; color: #9fb7cc; }
.owner-link { color: #9fb7cc !important; }

/* ---------- Dialog ---------- */
dialog { border: 0; padding: 0; border-radius: 6px; width: min(720px, calc(100% - 32px)); max-height: calc(100vh - 48px); box-shadow: 0 24px 80px rgba(21,37,54,.35); color: var(--text); font-family: var(--font); }
dialog::backdrop { background: rgba(21,37,54,.6); }
.dlg { position: relative; overflow: auto; max-height: calc(100vh - 48px); }
.dlg-close { position: absolute; top: 12px; right: 14px; width: 42px; height: 42px; font-size: 1.8rem; line-height: 1; background: rgba(255,255,255,.92); border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; z-index: 2; }
.dlg .pthumb { aspect-ratio: 21/9; }
.dlg-body { padding: 28px 32px 34px; }
.dlg-body h3 { font-size: 1.7rem; margin: 10px 0 14px; }
.dlg-body h4 { margin: 22px 0 8px; }
.dlg-body ul { margin: 0; padding-left: 20px; }
.dlg-body li { margin-bottom: 4px; }
.caveat { margin-top: 22px; padding: 14px 18px; border-left: 3px solid var(--blue); background: var(--blue-tint); font-size: .96rem; border-radius: 0 var(--radius) var(--radius) 0; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--navy); color: #fff; padding: 12px 20px; border-radius: var(--radius); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 300; max-width: calc(100% - 32px); box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Owner dashboard ---------- */
.owner-wrap { padding-top: 40px; padding-bottom: 80px; min-height: 70vh; outline: none; }
.od-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.od-head h1 { font-size: 2rem; }
.od-login { max-width: 440px; margin: 40px auto; }
.od-login .panel { padding: 32px; }
.od-login h1 { font-size: 1.8rem; margin-bottom: 8px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.stat { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; background: #fff; }
.stat b { display: block; font-size: 2rem; color: var(--blue-deep); line-height: 1.1; }
.stat span { font-size: .88rem; color: var(--muted); }
.od-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 22px; overflow-x: auto; }
.od-tabs button { padding: 12px 18px; background: none; border: 0; border-bottom: 3px solid transparent; cursor: pointer; font-weight: 700; color: var(--muted); white-space: nowrap; min-height: 48px; }
.od-tabs button[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--blue); }
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar input { flex: 1 1 240px; }
.toolbar select { flex: 0 0 180px; }
.items { display: grid; gap: 12px; }
.item { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.item > summary { list-style: none; cursor: pointer; padding: 14px 18px; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; }
.item > summary::-webkit-details-marker { display: none; }
.item > summary:hover { background: var(--soft); }
.item .i-title { font-weight: 700; color: var(--navy); }
.item .i-sub { font-size: .88rem; color: var(--muted); grid-column: 1; }
.item .i-side { grid-row: 1 / span 2; grid-column: 2; display: flex; gap: 8px; align-items: center; }
.item-body { padding: 4px 18px 18px; border-top: 1px solid var(--border); }
.item-body dl { display: grid; grid-template-columns: 150px 1fr; gap: 6px 16px; margin: 14px 0; font-size: .98rem; }
.item-body dt { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; padding-top: 2px; }
.item-body dd { margin: 0; white-space: pre-wrap; word-wrap: break-word; }
.item-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.item-actions select { width: auto; min-height: 36px; padding: 4px 10px; }
.od-chat { display: grid; grid-template-columns: 300px 1fr; gap: 22px; }
.od-chat .clist { max-height: 560px; }
.od-chat .thread { max-height: 460px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-visual { max-width: 300px; }
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .ecol:nth-child(2) { border-right: 0; }
  .ecol:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav { position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; box-shadow: var(--shadow); display: none; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--border); min-height: 48px; }
  .nav-cta { margin: 14px 0 0; }
  .project-grid { grid-template-columns: 1fr; }
  .chat-layout, .od-chat { grid-template-columns: 1fr; }
  .clist { max-height: 220px; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { padding: 0 18px; }
  .section { padding: 64px 0; }
  .hero { padding: 44px 0 56px; }
  .brand-text { font-size: 1rem; }
  .row2 { grid-template-columns: 1fr; }
  .pane { padding: 20px 18px; }
  .notice { margin: 16px 18px 0; }
  .expertise-grid { grid-template-columns: 1fr; }
  .ecol { border-right: 0; border-bottom: 1px solid var(--border); }
  .ecol:last-child { border-bottom: 0; }
  .facts { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .window-body { grid-template-columns: 84px 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .item-body dl { grid-template-columns: 1fr; gap: 2px; }
  .item-body dt { margin-top: 8px; }
  .item > summary { grid-template-columns: 1fr; }
  .item .i-side { grid-row: auto; grid-column: 1; }
  .dlg-body { padding: 22px 20px 26px; }
  .bubble { max-width: 92%; }
  .composer { grid-template-columns: 1fr; }
}

/* ---------- Reveal animation (progressive enhancement) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.hero-copy > *, .hero-art { animation: rise .7s ease both; }
.hero-copy > *:nth-child(2) { animation-delay: .06s; } .hero-copy > *:nth-child(3) { animation-delay: .12s; }
.hero-copy > *:nth-child(4) { animation-delay: .18s; } .hero-art { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.window { animation: drift 9s ease-in-out infinite alternate; }
@keyframes drift { from { transform: rotate(-1deg) translateY(0); } to { transform: rotate(-1deg) translateY(-6px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .menu-btn, .tabs, .toast { display: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Logo watermark (whole page) ---------- */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none;
  background: url("watermark.png") center / 640px 640px repeat;
  background-image: image-set(url("img/watermark-640.webp") type("image/webp"), url("watermark.png") type("image/png"));
  opacity: .045;
}
dialog::backdrop { z-index: 70; }
@media (max-width: 640px) { body::after { background-size: 340px 340px; opacity: .06; background-image: url("watermark.png"); background-image: image-set(url("img/watermark-340.webp") type("image/webp"), url("watermark.png") type("image/png")); } }
@media print { body::after { display: none; } }

/* ---------- WhatsApp chat ---------- */
.btn-wa { background: #167C45; border-color: #167C45; color: #fff; width: 100%; margin-top: 16px; }
.btn-wa:hover { background: #0F6236; border-color: #0F6236; color: #fff; }
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px 0 16px; background: #167C45; color: #fff; border-radius: 999px; text-decoration: none; font-weight: 700; box-shadow: 0 6px 20px rgba(21,37,54,.28); transition: background .2s, transform .2s; }
.wa-float:hover { background: #0F6236; color: #fff; transform: translateY(-2px); }
.wa-float .wa-ico, .btn-wa .wa-ico { flex: 0 0 auto; }
.wa-link { font-weight: 700; }
@media (max-width: 640px) {
  .wa-float { right: 14px; bottom: 14px; padding: 0; width: 56px; height: 56px; justify-content: center; }
  .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media print { .wa-float { display: none; } }

/* ==========================================================================
   Digital Skills Empowerment Programme 2026 — styles
   Extends styles.css (same Cambria type, same blue/white system). The
   programme showcase borrows the green and gold from the SolexGift logo.
   Sections:  A. Animated showcase   B. Application & status pages
              C. Slip + print        D. Owner dashboard additions
   All motion is CSS-only and is switched off by prefers-reduced-motion
   (styles.css already neutralises animations/transitions globally).
   ========================================================================== */

:root {
  --pg-emerald: #5681A1;
  --pg-emerald-d: #3F6886;
  --pg-gold: #B79BC7;
  --pg-gold-l: #D6C4E2;
  --pg-ink: #1D1030;
}

/* ============================ A. SHOWCASE ============================ */

.prog {
  position: relative; isolation: isolate; overflow: hidden; color: #fff; padding: 96px 0 0;
  background: linear-gradient(125deg, #03221C 0%, #0B3A38 26%, #2C4F6E 56%, #34607F 80%, #03221C 100%);
  background-size: 260% 260%;
  animation: pgFlow 26s ease-in-out infinite alternate;
}
@keyframes pgFlow { from { background-position: 0% 40%; } to { background-position: 100% 60%; } }

.prog-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(48px); opacity: .5; will-change: transform; }
.o1 { width: 420px; height: 420px; left: -120px; top: -90px;  background: radial-gradient(circle at 30% 30%, #B79BC7, rgba(183,155,199,0) 70%); animation: orbA 17s ease-in-out infinite alternate; }
.o2 { width: 540px; height: 540px; right: -170px; top: 8%;    background: radial-gradient(circle at 60% 40%, #9F84B2, rgba(143,114,160,0) 70%); animation: orbB 21s ease-in-out infinite alternate; }
.o3 { width: 400px; height: 400px; left: 28%; bottom: -150px; background: radial-gradient(circle, #7FA3C2, rgba(127,163,194,0) 70%); opacity: .38; animation: orbC 19s ease-in-out infinite alternate; }
.o4 { width: 260px; height: 260px; right: 12%; bottom: 18%;   background: radial-gradient(circle, #B79BC7, rgba(183,155,199,0) 70%); opacity: .3; animation: orbA 14s ease-in-out infinite alternate-reverse; }
@keyframes orbA { to { transform: translate(110px, 80px) scale(1.18); } }
@keyframes orbB { to { transform: translate(-130px, 70px) scale(.9); } }
@keyframes orbC { to { transform: translate(90px, -60px) scale(1.2); } }

.prog-grid {
  position: absolute; inset: -48px;
  background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 35%, #000 15%, transparent 72%);
          mask-image: radial-gradient(ellipse at 50% 35%, #000 15%, transparent 72%);
  animation: gridPan 32s linear infinite;
}
@keyframes gridPan { to { transform: translate(48px, 48px); } }

/* four-point stars, echoing the sparkles in the SolexGift logo */
.spark {
  position: absolute; width: 18px; height: 18px; opacity: 0;
  background: linear-gradient(135deg, #F1EAD8, #B79BC7);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: twinkle 4.6s ease-in-out infinite;
}
.s1 { left: 7%;  top: 16%; --s: 1.1; animation-delay: .1s; }
.s2 { left: 22%; top: 62%; --s: .7;  animation-delay: 1.3s; }
.s3 { left: 47%; top: 9%;  --s: .9;  animation-delay: 2.2s; }
.s4 { right: 9%; top: 20%; --s: 1.3; animation-delay: .7s; }
.s5 { right: 24%; top: 55%; --s: .8; animation-delay: 3s; }
.s6 { left: 62%; top: 80%; --s: 1;   animation-delay: 1.8s; }
.s7 { left: 3%;  top: 78%; --s: .75; animation-delay: 2.7s; }
@keyframes twinkle {
  0%, 100% { opacity: 0;   transform: scale(calc(var(--s, 1) * .35)) rotate(0deg); }
  50%      { opacity: .95; transform: scale(var(--s, 1)) rotate(45deg); }
}

.prog-inner { position: relative; }
.prog :focus-visible { outline-color: var(--pg-gold-l); }

.prog-head { text-align: center; max-width: 880px; margin: 0 auto 52px; }
.prog-eyebrow {
  display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 10px;
  padding: 8px 18px; margin: 0 0 24px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px;
  background: rgba(255,255,255,.08); backdrop-filter: blur(6px);
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: #DDE8F1; max-width: none;
}
.prog-eyebrow .sep { color: var(--pg-gold-l); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #CCDBBE; animation: ping 2.1s ease-out infinite; }
.live-dot.closed { background: #8F72A0; animation: none; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(204,219,190,.7); } 80%, 100% { box-shadow: 0 0 0 11px rgba(204,219,190,0); } }

.prog h2 { color: #fff; font-size: clamp(2.2rem, 5.4vw, 4rem); line-height: 1.08; letter-spacing: -.015em; }
.prog h2 .yr { color: var(--pg-gold-l); }
.shine { color: var(--pg-gold-l); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .shine {
    background: linear-gradient(100deg, #B79BC7 0%, #F1EAD8 28%, #B79BC7 48%, #9F84B2 78%, #B79BC7 100%);
    background-size: 260% 100%;
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
    animation: shine 7s linear infinite;
  }
}
@keyframes shine { to { background-position: -260% 0; } }
.prog-theme { margin: 18px auto 0; font-size: 1.3rem; font-style: italic; color: #CFDCE8; max-width: 40ch; }

.prog-hero { display: grid; grid-template-columns: 1.25fr .75fr; gap: 44px; align-items: center; margin-bottom: 60px; }
.prog-lede { font-size: 1.2rem; line-height: 1.65; color: #EAF0F6; max-width: 52ch; }
.prog-fine { margin-top: 20px; font-size: .9rem; color: #A9C0D3; font-style: italic; }
.prog .cta-row { margin-top: 26px; }

.btn-gold {
  position: relative; overflow: hidden; border: 0; color: var(--pg-ink);
  background: linear-gradient(135deg, var(--pg-gold-l), #8F72A0);
  animation: goldPulse 2.8s ease-out infinite;
}
.btn-gold:hover { color: var(--pg-ink); transform: translateY(-2px); filter: brightness(1.05); }
.btn-gold::after {
  content: ""; position: absolute; top: 0; left: -70%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.7), transparent);
  transform: skewX(-20deg); animation: sweep 4s ease-in-out infinite;
}
.btn-gold svg { transition: transform .2s; }
.btn-gold:hover svg { transform: translateX(4px); }
@keyframes goldPulse { 0% { box-shadow: 0 0 0 0 rgba(214,196,226,.55); } 70%, 100% { box-shadow: 0 0 0 16px rgba(214,196,226,0); } }
@keyframes sweep { 0%, 55% { left: -70%; } 100% { left: 140%; } }

.btn-glass { color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.38); backdrop-filter: blur(6px); }
.btn-glass:hover { color: #fff; background: rgba(255,255,255,.2); }

/* fee card with a slowly rotating colour edge */
.fee-card { position: relative; padding: 2px; border-radius: 22px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.38); animation: floaty 7s ease-in-out infinite; }
.fee-card::before { content: ""; position: absolute; inset: -70%; background: conic-gradient(from 0deg, #B79BC7, #9F84B2, #7FA3C2, #B79BC7); animation: spin 8s linear infinite; }
.fee-inner { position: relative; border-radius: 20px; padding: 30px 28px 24px; text-align: center; background: linear-gradient(160deg, #0B3040, #1F4260); }
.fee-label { margin: 0 0 4px; max-width: none; text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; color: #CCDBBE; font-weight: 700; }
.fee-amount { margin: 0 0 16px; max-width: none; font-size: clamp(3rem, 6.5vw, 4.4rem); font-weight: 700; line-height: 1.05; color: var(--pg-gold-l); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .fee-amount { background: linear-gradient(100deg, #EFE6F4, #B79BC7, #F1EAD8, #B79BC7); background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: shine 5s linear infinite; }
}
.fee-list { list-style: none; margin: 0; padding: 0; text-align: left; font-size: .98rem; color: #CFDCE8; }
.fee-list li { position: relative; padding: 9px 0 9px 30px; border-top: 1px solid rgba(255,255,255,.12); }
.fee-list li::before { content: "\2713"; position: absolute; left: 6px; color: #CCDBBE; font-weight: 700; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(1deg); } 50% { transform: translateY(-9px) rotate(1deg); } }

/* training area cards: three over two, centred */
.prog-cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-bottom: 68px; }
.prog-card { grid-column: span 2; position: relative; overflow: hidden; padding: 28px 24px 26px; border-radius: 18px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(8px); transition: transform .3s, background .3s, border-color .3s, box-shadow .3s; }
.prog-card:nth-child(4) { grid-column: 2 / span 2; }
.prog-card:nth-child(5) { grid-column: 4 / span 2; }
.prog-card::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--c1), var(--c2), transparent); transform-origin: left; animation: barGrow 3.6s ease-in-out infinite alternate; }
@keyframes barGrow { from { transform: scaleX(.25); } to { transform: scaleX(1); } }
.prog-card:hover { transform: translateY(-7px); background: rgba(255,255,255,.12); border-color: var(--c1); box-shadow: 0 18px 40px rgba(0,0,0,.3), 0 0 0 1px var(--c1) inset; }
.prog-card h3 { color: #fff; font-size: 1.15rem; margin: 18px 0 8px; }
.prog-card p { margin: 0; color: #CFDCE8; font-size: .98rem; max-width: none; }
.pc-ico { display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; color: #03221C; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 8px 22px rgba(0,0,0,.3); animation: icoFloat 4.6s ease-in-out infinite; animation-delay: calc(var(--i) * -.7s); }
@keyframes icoFloat { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(-4deg); } }
.c1 { --c1: #9F84B2; --c2: #8F72A0; }
.c2 { --c1: #D6C4E2; --c2: #8F72A0; }
.c3 { --c1: #A9C4DA; --c2: #7FA3C2; }
.c4 { --c1: #CCDBBE; --c2: #9BB98A; }
.c5 { --c1: #E3ECD6; --c2: #7C9A68; }

/* staggered entrance when the block scrolls into view (class .in comes from the site's reveal observer) */
.js .prog-cards:not(.in) .prog-card { opacity: 0; }
.prog-cards.in .prog-card { animation: cardIn .8s cubic-bezier(.2,.7,.2,1) backwards; animation-delay: calc(var(--i) * .11s); }
@keyframes cardIn { from { opacity: 0; transform: translateY(34px) scale(.96); } to { opacity: 1; transform: none; } }

.prog-steps { list-style: none; position: relative; margin: 0 auto; padding: 0 0 76px; max-width: 980px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.prog-steps::before { content: ""; position: absolute; left: 17%; right: 17%; top: 26px; height: 2px; background: repeating-linear-gradient(90deg, rgba(214,196,226,.9) 0 10px, transparent 10px 20px); background-size: 20px 2px; animation: dash 1.1s linear infinite; }
@keyframes dash { to { background-position: 20px 0; } }
.prog-steps li { position: relative; text-align: center; }
.prog-steps .num { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; font-weight: 700; font-size: 1.3rem; color: var(--pg-ink); background: linear-gradient(135deg, var(--pg-gold-l), #8F72A0); box-shadow: 0 0 0 6px rgba(214,196,226,.18); animation: halo 3.2s ease-in-out infinite; }
.prog-steps li:nth-child(2) .num { animation-delay: .5s; } .prog-steps li:nth-child(3) .num { animation-delay: 1s; }
@keyframes halo { 0%, 100% { box-shadow: 0 0 0 5px rgba(214,196,226,.16); } 50% { box-shadow: 0 0 0 13px rgba(214,196,226,.06); } }
.prog-steps h3 { color: #fff; font-size: 1.12rem; margin: 14px 0 6px; }
.prog-steps p { margin: 0 auto; color: #CFDCE8; font-size: .96rem; max-width: 30ch; }

.prog-marquee { overflow: hidden; padding: 16px 0; background: rgba(3,34,28,.5); border-top: 1px solid rgba(255,255,255,.12); }
.prog-marquee .track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.prog-marquee span { white-space: nowrap; padding: 0 30px; font-size: .88rem; letter-spacing: .15em; text-transform: uppercase; color: #CFDCE8; }
.prog-marquee span::after { content: "\2726"; margin-left: 60px; color: #B79BC7; }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 960px) {
  .prog { padding-top: 72px; }
  .prog-hero { grid-template-columns: 1fr; gap: 34px; }
  .fee-card { max-width: 440px; margin: 0 auto; width: 100%; }
  .prog-cards { grid-template-columns: repeat(2, 1fr); }
  .prog-card, .prog-card:nth-child(4), .prog-card:nth-child(5) { grid-column: auto; }
  .prog-card:nth-child(5) { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .prog-cards { grid-template-columns: 1fr; }
  .prog-card:nth-child(5) { grid-column: auto; }
  .prog-steps { grid-template-columns: 1fr; gap: 26px; }
  .prog-steps::before { display: none; }
  .prog-theme { font-size: 1.15rem; }
  .prog-eyebrow { letter-spacing: .08em; font-size: .72rem; }
}

/* ===================== B. APPLICATION & STATUS PAGES ===================== */

.pv-wrap { padding-top: 28px; padding-bottom: 90px; min-height: 70vh; outline: none; }
.pg-banner { position: relative; overflow: hidden; border-radius: 10px; padding: 34px 34px 30px; margin-bottom: 28px; color: #fff; background: linear-gradient(120deg, #03221C, #0E3F44 40%, #2F5878 75%, #03221C); background-size: 240% 240%; animation: pgFlow 20s ease-in-out infinite alternate; isolation: isolate; }
.pg-banner::before { content: ""; position: absolute; z-index: -1; right: -80px; top: -90px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(183,155,199,.55), rgba(183,155,199,0) 70%); filter: blur(30px); animation: orbA 12s ease-in-out infinite alternate; }
.pg-banner::after { content: ""; position: absolute; z-index: -1; left: 30%; bottom: -120px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(143,114,160,.45), rgba(143,114,160,0) 70%); filter: blur(30px); animation: orbB 16s ease-in-out infinite alternate; }
.pg-banner .eyebrow { color: #CFDCE8; margin-bottom: 8px; }
.pg-banner h1 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.12; }
.pg-banner p { margin: 8px 0 0; color: #DDE8F1; }
.fee-chip { display: inline-block; margin-top: 16px; padding: 6px 18px; border-radius: 999px; font-weight: 700; color: var(--pg-ink); background: linear-gradient(135deg, var(--pg-gold-l), #8F72A0); }

.pg-stepper { margin: 0 0 26px; }
.pg-stepnow { margin: 0 0 10px; font-weight: 700; color: var(--navy); max-width: none; }
.pg-progress { height: 9px; border-radius: 999px; background: var(--border); overflow: hidden; }
.pg-progress i { display: block; height: 100%; width: calc(var(--p, 0) * 1%); border-radius: 999px; background: linear-gradient(90deg, var(--pg-emerald), var(--pg-gold)); transition: width .55s ease; position: relative; overflow: hidden; }
.pg-progress i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: translateX(-100%); animation: barShimmer 2.4s ease-in-out infinite; }
@keyframes barShimmer { to { transform: translateX(100%); } }
.pg-steps-list { list-style: none; display: flex; justify-content: space-between; gap: 4px; margin: 16px 0 0; padding: 0; }
.pg-steps-list li { flex: 1; text-align: center; font-size: .84rem; color: var(--muted); }
.pg-steps-list b { display: grid; place-items: center; width: 32px; height: 32px; margin: 0 auto 4px; border-radius: 50%; border: 2px solid var(--border); background: #fff; font-size: .85rem; transition: all .3s; }
.pg-steps-list li.done b { background: var(--pg-emerald); border-color: var(--pg-emerald); color: #fff; }
.pg-steps-list li.now b { border-color: var(--pg-emerald); color: var(--pg-emerald-d); box-shadow: 0 0 0 5px rgba(86,129,161,.16); }
.pg-steps-list li.now { color: var(--navy); font-weight: 700; }
@media (max-width: 700px) { .pg-steps-list li span { display: none; } }

.pg-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; animation: stepIn .45s ease both; }
@keyframes stepIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.pg-card > h2 { font-size: 1.6rem; margin-bottom: 4px; outline: none; }
.pg-lead { color: var(--muted); margin-bottom: 24px; }
.pg-form { display: grid; gap: 22px; }
.pg-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.pg-form legend, .pg-q { font-weight: 700; color: var(--navy); padding: 0; margin: 0 0 9px; font-size: .98rem; }
.pg-form .field.invalid, .pg-form fieldset.invalid { padding: 10px 12px; margin: -10px -12px; border-radius: 6px; background: var(--danger-tint); }
.pg-hint { color: var(--muted); font-size: .9rem; margin: 6px 0 0; }
.pg-form input[type=checkbox], .pg-form input[type=radio] { width: 22px; height: 22px; min-height: 0; padding: 0; accent-color: var(--pg-emerald); }

.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.choice span { display: inline-flex; align-items: center; min-height: 46px; padding: 8px 20px; border: 1px solid #b8c7d4; border-radius: 999px; background: #fff; cursor: pointer; font-weight: 700; color: var(--text); transition: background .2s, color .2s, border-color .2s, transform .15s; }
.choice span:hover { border-color: var(--pg-emerald); }
.choice input:checked + span { background: var(--pg-emerald); border-color: var(--pg-emerald); color: #fff; transform: scale(1.03); }
.choice input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }

.courses { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.course { position: relative; display: flex; align-items: center; gap: 14px; padding: 15px 16px; border: 1px solid #b8c7d4; border-radius: 10px; background: #fff; cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s, transform .2s; }
.course:hover { border-color: var(--pg-emerald); transform: translateY(-2px); }
.course input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.course .tick { flex: 0 0 auto; display: grid; place-items: center; width: 24px; height: 24px; border: 2px solid #9fb2c3; border-radius: 6px; font-size: .9rem; font-weight: 700; color: #fff; transition: background .2s, border-color .2s; }
.course .ct { font-weight: 700; color: var(--navy); line-height: 1.3; }
.course:has(input:checked) { border-color: var(--pg-emerald); background: #EAF0F6; box-shadow: 0 0 0 1px var(--pg-emerald) inset; }
.course input:checked ~ .tick { background: var(--pg-emerald); border-color: var(--pg-emerald); }
.course input:checked ~ .tick::after { content: "\2713"; animation: pop .25s ease-out; }
.course:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }

.pay-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pay-opt { position: relative; display: block; padding: 18px 20px; border: 1px solid #b8c7d4; border-radius: 10px; background: #fff; cursor: pointer; transition: all .2s; }
.pay-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.pay-opt b { display: block; color: var(--navy); font-size: 1.1rem; }
.pay-opt small { color: var(--muted); font-size: .92rem; }
.pay-opt:hover { border-color: var(--pg-emerald); }
.pay-opt:has(input:checked) { border-color: var(--pg-emerald); background: #EAF0F6; box-shadow: 0 0 0 1px var(--pg-emerald) inset; }
.pay-opt:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.pay-panel { animation: stepIn .35s ease both; }
.cash-note { border-left: 4px solid var(--blue); background: var(--blue-tint); padding: 18px 22px; border-radius: 0 8px 8px 0; }
.cash-note strong { display: block; margin-bottom: 6px; letter-spacing: .04em; color: var(--navy); }
.cash-note p { margin: 0 0 8px; max-width: none; }

.opay-card { position: relative; overflow: hidden; border-radius: 16px; padding: 24px 26px; color: #fff; background: linear-gradient(135deg, #3D6584 0%, #5681A1 55%, #6A94B4 100%); box-shadow: 0 14px 34px rgba(70,112,143,.32); }
.opay-card::before { content: ""; position: absolute; right: -70px; top: -70px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.3), transparent 70%); animation: orbA 9s ease-in-out infinite alternate; }
.opay-card::after { content: ""; position: absolute; left: -40px; bottom: -90px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(214,196,226,.35), transparent 70%); animation: orbB 11s ease-in-out infinite alternate; }
.opay-card > * { position: relative; z-index: 1; }
.opay-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.opay-bank { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .82rem; margin: 0; max-width: none; }
.opay-amt { font-weight: 700; background: rgba(255,255,255,.18); padding: 4px 14px; border-radius: 999px; }
.opay-lbl { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; opacity: .85; margin: 14px 0 0; max-width: none; }
.opay-no { font-size: clamp(1.9rem, 6vw, 2.6rem); font-weight: 700; letter-spacing: .12em; margin: 2px 0 0; max-width: none; font-variant-numeric: tabular-nums; }
.opay-name { font-size: 1.15rem; font-weight: 700; margin: 2px 0 0; max-width: none; }
.copy-btn { margin-top: 18px; background: #fff; color: var(--pg-emerald-d); border-color: #fff; }
.copy-btn:hover { background: #E3ECF4; color: var(--pg-emerald-d); }
.pay-warn { margin: 16px 0 0; padding: 12px 16px; border: 1px solid #f0dca8; background: var(--warn-tint); color: var(--warn); border-radius: 6px; font-size: .96rem; max-width: none; }
.upload { margin-top: 16px; padding: 20px; border: 2px dashed #9fb2c3; border-radius: 10px; background: var(--soft); transition: border-color .2s, background .2s; }
.upload:hover { border-color: var(--pg-emerald); }
.upload.invalid { border-color: var(--danger); background: var(--danger-tint); }
.upload label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.upload input[type=file] { min-height: 0; padding: 8px; background: #fff; }
.file-chip { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; padding: 6px 14px; border-radius: 999px; background: var(--ok-tint); color: var(--ok); border: 1px solid #b9e0cb; font-size: .92rem; }

.pg-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--border); }
.pg-nav .status { align-self: center; }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }

.rv { display: grid; gap: 16px; }
.rv section { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.rv h3 { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 16px; font-size: 1rem; background: var(--soft); border-bottom: 1px solid var(--border); }
.link-btn { background: none; border: 0; color: var(--blue-deep); text-decoration: underline; cursor: pointer; font-weight: 700; padding: 6px 4px; min-height: 36px; }
.rv dl { display: grid; grid-template-columns: 210px 1fr; gap: 7px 16px; margin: 0; padding: 14px 16px; }
.rv dt { color: var(--muted); font-size: .88rem; padding-top: 2px; }
.rv dd { margin: 0; white-space: pre-wrap; word-break: break-word; }
@media (max-width: 640px) { .rv dl { grid-template-columns: 1fr; gap: 2px; } .rv dt { margin-top: 8px; } .pay-opts { grid-template-columns: 1fr; } .pg-card { padding: 22px 18px; } }

.privacy { max-height: 260px; overflow: auto; padding: 16px 20px; border: 1px solid var(--border); border-radius: 8px; background: var(--soft); font-size: .95rem; }
.privacy h4 { margin: 12px 0 4px; }
.privacy h4:first-child { margin-top: 0; }
.privacy p, .privacy ul { margin: 0 0 8px; max-width: none; }
.privacy ul { padding-left: 20px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; cursor: pointer; }
.consent input { flex: 0 0 auto; margin-top: 3px; }

/* confirmation */
.success-hero { position: relative; overflow: hidden; text-align: center; color: #fff; padding: 38px 24px 34px; border-radius: 12px; background: linear-gradient(135deg, #0A3340, #5681A1 70%, #6A94B4); isolation: isolate; }
.success-hero::before { content: ""; position: absolute; z-index: -1; left: 50%; top: -120px; width: 380px; height: 380px; margin-left: -190px; border-radius: 50%; background: radial-gradient(circle, rgba(214,196,226,.5), transparent 70%); filter: blur(24px); animation: orbA 10s ease-in-out infinite alternate; }
.success-hero h1 { color: #fff; font-size: clamp(1.7rem, 5vw, 2.6rem); letter-spacing: .02em; margin: 14px 0 12px; outline: none; }
.success-hero p { margin: 0 auto 8px; color: #EAF0F6; max-width: 60ch; }
.check-ring { width: 92px; height: 92px; margin: 0 auto; }
.check-ring circle { fill: none; stroke: #D6C4E2; stroke-width: 4; stroke-dasharray: 226; stroke-dashoffset: 226; animation: draw .8s ease forwards; }
.check-ring path { fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .5s .7s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.confetti i { position: absolute; width: 10px; height: 10px; background: linear-gradient(135deg, #F1EAD8, #B79BC7); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); opacity: 0; animation: twinkle 3.2s ease-in-out infinite; }
.confetti i:nth-child(1) { left: 12%; top: 22%; } .confetti i:nth-child(2) { left: 84%; top: 18%; animation-delay: .6s; }
.confetti i:nth-child(3) { left: 24%; top: 74%; animation-delay: 1.2s; } .confetti i:nth-child(4) { left: 76%; top: 70%; animation-delay: 1.8s; }
.confetti i:nth-child(5) { left: 50%; top: 10%; animation-delay: 2.3s; }

.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 24px 0; }
.kv > div { border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px; background: #fff; }
.kv small { display: block; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }
.kv b { color: var(--navy); font-size: 1.08rem; word-break: break-word; }
.kv .appno { font-size: 1.15rem; letter-spacing: .02em; white-space: nowrap; color: var(--pg-emerald-d); }
.fine-note { padding: 14px 18px; border-left: 3px solid var(--blue); background: var(--blue-tint); border-radius: 0 6px 6px 0; font-size: .96rem; max-width: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 6px; }
.btn-green { background: var(--pg-emerald); border-color: var(--pg-emerald); color: #fff; }
.btn-green:hover { background: var(--pg-emerald-d); border-color: var(--pg-emerald-d); color: #fff; }

.pgb { display: inline-block; padding: 3px 12px; border-radius: 999px; border: 1px solid; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.pgb.successful, .pgb.payment_submitted { background: var(--blue-tint); color: var(--blue-deep); border-color: #b9e2f8; }
.pgb.under_review { background: var(--warn-tint); color: var(--warn); border-color: #f0dca8; }
.pgb.approved, .pgb.payment_confirmed { background: var(--ok-tint); color: var(--ok); border-color: #b9e0cb; }
.pgb.not_approved, .pgb.payment_rejected { background: var(--danger-tint); color: var(--danger); border-color: #efc3bb; }
.pgb.pending_payment { background: #F2F4F7; color: #475467; border-color: #D0D5DD; }
.pgb.big { font-size: .95rem; padding: 6px 18px; }

.status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 22px 0; }
.status-box { border: 1px solid var(--border); border-radius: 10px; padding: 18px 20px; background: var(--soft); }
.status-box h3 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.status-box p { margin: 10px 0 0; font-size: .96rem; max-width: none; }
@media (max-width: 640px) { .status-grid { grid-template-columns: 1fr; } }
.check-form { max-width: 560px; }

/* ===================== C. SLIP + PRINT ===================== */

.slip { max-width: 794px; margin: 26px auto 0; padding: 26px 30px; background: #fff; color: #111; border: 1px solid #c3cfda; box-shadow: var(--shadow); font-family: var(--font); }
.slip-head { display: grid; grid-template-columns: 74px 1fr 74px; align-items: center; gap: 10px; text-align: center; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 3px double #5681A1; }
.slip-head img { width: 70px; height: auto; margin: 0; }
.slip-head h1 { font-size: 1.3rem; letter-spacing: .05em; margin: 0; color: #03221C; }
.slip-head h2 { font-size: 1.02rem; letter-spacing: .03em; margin: 3px 0; color: #111; }
.slip-head .theme { margin: 0 auto; font-style: italic; font-size: .92rem; color: #333; max-width: none; }
.slip-title { text-align: center; font-weight: 700; letter-spacing: .24em; font-size: .95rem; padding: 5px; margin: 0 0 12px; border: 1px solid #5681A1; color: #03221C; max-width: none; }
.slip table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.slip th, .slip td { border: 1px solid #b9c6d0; padding: 6px 10px; text-align: left; vertical-align: top; }
.slip th { width: 34%; background: #F1EAD8; font-weight: 700; }
.slip-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-top: 16px; }
.slip-foot p { margin: 0; font-size: .82rem; color: #444; max-width: 52ch; }
.slip-qr { text-align: center; font-size: .78rem; letter-spacing: .04em; }
.slip-qr svg { width: 118px; height: 118px; display: block; margin: 0 auto 2px; }
@media (max-width: 640px) { .slip { padding: 18px 14px; } .slip-head { grid-template-columns: 1fr; } .slip-head img { display: none; } .slip th { width: 38%; } .slip-foot { flex-direction: column; align-items: center; text-align: center; } }

#slip-print-root { display: none; }
@page { size: A4; margin: 12mm; }
@media print {
  body.print-slip { background: #fff; }
  body.print-slip > *:not(#slip-print-root) { display: none !important; }
  body.print-slip #slip-print-root { display: block !important; }
  body.print-slip::after { display: none !important; }
  #slip-print-root .slip { margin: 0; border: 0; box-shadow: none; max-width: none; padding: 0; }
  #slip-print-root .slip-head, #slip-print-root .slip table, #slip-print-root .slip-foot { break-inside: avoid; }
  #slip-print-root * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ===================== D. OWNER DASHBOARD ADDITIONS ===================== */

.od-sub { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.od-sub button { min-height: 40px; padding: 6px 18px; border: 1px solid var(--border); border-radius: 999px; background: #fff; cursor: pointer; font-weight: 700; color: var(--muted); }
.od-sub button:hover { color: var(--blue-deep); border-color: var(--blue-deep); }
.od-sub button[aria-pressed="true"] { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
.stats.wide { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.stats.wide .stat.good b { color: var(--ok); }
.stats.wide .stat.warn b { color: var(--warn); }
.stats.wide .stat.bad b { color: var(--danger); }
.toolbar select.pg-sel { flex: 0 0 190px; }
.pg-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.pg-actions textarea { width: 100%; min-height: 70px; }
.receipt-view { margin: 12px 0; padding: 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--soft); text-align: center; }
.receipt-view img { max-width: 100%; max-height: 520px; margin: 0 auto; object-fit: contain; }
.receipt-view iframe { width: 100%; height: 520px; border: 0; background: #fff; }
.hist { margin: 12px 0 0; padding: 0; list-style: none; font-size: .9rem; }
.hist li { padding: 6px 0; border-bottom: 1px solid var(--border); }
.pg-set { max-width: 520px; display: grid; gap: 18px; }
.pg-toggle { display: flex; align-items: center; gap: 12px; }
.pg-toggle input { width: 22px; height: 22px; min-height: 0; accent-color: var(--pg-emerald); }

/* ==========================================================================
   Site palette — cream, steel blue, deep green-black, purple and sage.
   Loaded last: it re-points the colour tokens used by styles.css and
   programme.css, then adjusts the few rules that need a different look
   (nav bar, cream hero, sage sections, steel footer) plus the Project
   Analysis dashboard.
   ========================================================================== */

:root {
  --cream: #F1EAD8;
  --cream-lt: #F8F4E8;
  --sage: #CCDBBE;
  --steel: #5681A1;
  --purple: #8F72A0;
  --purple-deep: #6E5380;
  --nav-bg: #CED6E2;

  --blue: #7FA3C2;
  --blue-deep: #3F6886;
  --navy: #0E2A26;
  --soft: #F8F4E8;
  --text: #25332F;
  --muted: #55625F;
  --border: #D9D3C0;
  --blue-tint: #E6EDF4;
  --ok: #2F6A3A; --ok-tint: #E4EEDA;
  --warn: #7A5420; --warn-tint: #F6EBD2;

  --pg-emerald: #46708F;
  --pg-emerald-d: #345A76;
  --pg-gold: #B79BC7;
  --pg-gold-l: #D6C4E2;
  --pg-ink: #1D1030;
}

body { background: var(--cream-lt); }

/* ----- top bar ----- */
.site-header { background: rgba(206, 214, 226, .96); border-bottom-color: #B9C4D4; }
.brand-text { color: var(--navy); }
.brand-accent { color: var(--steel); }
.monogram { background: var(--steel); border-bottom-color: var(--purple); }
.nav a:not(.btn) { color: #23323A; }
.nav a:not(.btn):hover, .nav a.active:not(.btn) { color: var(--blue-deep); }
.nav a.active:not(.btn) { border-bottom-color: var(--steel); }
@media (max-width: 860px) { .nav { background: var(--nav-bg); } }

/* ----- buttons ----- */
.btn-primary { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn-primary:hover { background: var(--navy); border-color: var(--navy); }
.btn-ghost { background: transparent; color: var(--blue-deep); border-color: var(--blue-deep); }
.hero .cta-row .btn-ghost, .about-copy .btn-ghost { background: var(--purple-deep); border-color: var(--purple-deep); color: #fff; }
.hero .cta-row .btn-ghost:hover, .about-copy .btn-ghost:hover { background: #583F69; border-color: #583F69; color: #fff; }

/* ----- hero: cream ----- */
.hero { background: var(--cream); border-bottom-color: #E0D6BA; }
.availability { background: rgba(255, 255, 255, .6); border-color: #D9CDAB; }
.window { border-color: #D9CDAB; }
.w-side { background: var(--navy); }

/* ----- sage sections with light cards ----- */
.section.alt { background: var(--sage); border-color: #B7C8A7; }
.section.alt .pcard, .section.alt .tl-item { background: transparent; }
.pcard { background: rgba(255, 255, 255, .72); border-color: #C3D1B3; }
.pcard:hover { border-color: var(--steel); box-shadow: 0 10px 28px rgba(14, 42, 38, .14); }
.pthumb { background: var(--blue-tint); border-bottom-color: #C3D1B3; }
.tag { background: #fff; border-color: #C7D3D9; color: var(--blue-deep); }
.timeline { border-left-color: #A9BE98; }
.tl-item::before { background: var(--cream-lt); border-color: var(--purple-deep); }
.tl-item .when { color: var(--purple-deep); }
.ecol h3 { border-bottom-color: var(--purple); }
.expertise-grid { border: 0; gap: 18px; }
.expertise-grid .ecol, .expertise-grid .ecol:nth-child(n) { background: rgba(204, 219, 190, .45); border: 1px solid #BCCDAE; border-radius: 6px; }
.ecol li { border-bottom-color: #BCCDAE; }
.statement { border-left-color: var(--purple); }
.badge { background: var(--blue-tint); color: var(--blue-deep); border-color: #BFD0E0; }
.badge.s-proposed, .badge.s-concept { background: #F1E8F6; color: var(--purple-deep); border-color: #D8C6E2; }
.badge.s-in-development { background: #E6EDF4; color: var(--blue-deep); border-color: #BFD0E0; }
.badge.s-completed, .badge.s-deployed, .badge.replied { background: var(--ok-tint); color: var(--ok); border-color: #B7CDA4; }
.panel, .stat, .item { border-color: var(--border); }
input:focus, select:focus, textarea:focus { outline-color: rgba(127, 163, 194, .55); }
.dot { background: #6E8F5A; box-shadow: 0 0 0 3px rgba(110, 143, 90, .2); }
.tabs { background: var(--cream); }
.tabs button[aria-selected="true"] { border-bottom-color: var(--purple); }

/* ----- steel footer ----- */
.site-footer { background: #46708F; color: #EAF0F6; }
.site-footer a, .site-footer .brand { color: #fff; }
.closing, .owner-link { color: #DCE6EF !important; }
.foot-base { border-top-color: rgba(255, 255, 255, .28); }

/* ----- programme pages: stepper uses the same palette ----- */
.pg-banner { background: linear-gradient(120deg, #03221C, #0E3F44 45%, #2F5878 80%, #03221C); background-size: 240% 240%; }
.btn-green { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn-green:hover { background: var(--navy); border-color: var(--navy); }
.pgb.successful, .pgb.payment_submitted { background: var(--blue-tint); color: var(--blue-deep); }

/* ===================== PROJECT ANALYSIS DASHBOARD ===================== */
.insights { display: grid; gap: 24px; }
.in-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.in-kpi { position: relative; overflow: hidden; padding: 20px 22px; border-radius: 8px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); }
.in-kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--steel); }
.in-kpi.k-completed::before { background: #3F6886; } .in-kpi.k-in-development::before { background: var(--purple); } .in-kpi.k-proposed::before, .in-kpi.k-concept::before { background: #6E8F5A; }
.in-kpi b { display: block; font-size: 2.3rem; line-height: 1.1; color: var(--navy); font-variant-numeric: tabular-nums; }
.in-kpi span { color: var(--muted); font-size: .95rem; }
.in-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; }
.in-card { padding: 26px; border-radius: 8px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); }
.in-card h3 { font-size: 1.15rem; margin-bottom: 18px; }
.in-card h3 span { font-weight: 400; font-size: .88rem; color: var(--muted); }
.in-donut { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.in-donut svg { width: 190px; height: 190px; flex: 0 0 auto; }
.in-donut .seg { transition: stroke-dasharray 1.4s cubic-bezier(.2, .7, .2, 1); }
.d-num { font-size: 8px; font-weight: 700; fill: var(--navy); font-family: inherit; }
.d-lbl { font-size: 3px; fill: var(--muted); font-family: inherit; letter-spacing: .1em; text-transform: uppercase; }
.in-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; flex: 1 1 140px; }
.in-legend li { display: flex; align-items: center; gap: 10px; }
.in-legend i { width: 14px; height: 14px; border-radius: 4px; flex: 0 0 auto; }
.in-legend b { margin-left: auto; color: var(--navy); }
.in-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.in-bars li { display: grid; grid-template-columns: 120px 1fr 26px; gap: 12px; align-items: center; font-size: .98rem; }
.in-bars .bt { height: 14px; border-radius: 999px; background: #E9E4D2; overflow: hidden; }
.in-bars .bt i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--steel), var(--purple), var(--steel)); background-size: 200% 100%; transition: width 1.2s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i) * .08s); animation: inFlow 5s linear infinite; }
@keyframes inFlow { to { background-position: -200% 0; } }
.in-bars b { text-align: right; color: var(--navy); }
.in-note { margin: 16px 0 0; font-size: .9rem; color: var(--muted); font-style: italic; max-width: none; }
.in-projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.in-proj { position: relative; overflow: hidden; padding: 20px 22px 24px; background: #fff; border: 1px solid var(--border); border-top: 4px solid var(--c); border-radius: 8px; box-shadow: var(--shadow); }
.js .insights:not(.in) .in-proj { opacity: 0; transform: translateY(24px); }
.insights.in .in-proj { animation: inRise .8s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: calc(var(--i) * .12s); }
@keyframes inRise { from { opacity: 0; transform: translateY(24px); } }
.in-proj header { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-bottom: 14px; }
.in-proj h4 { font-size: 1.02rem; line-height: 1.3; margin: 0; }
.in-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.in-metrics b { display: block; font-size: 1.7rem; line-height: 1.1; color: var(--c); font-variant-numeric: tabular-nums; }
.in-metrics span { font-size: .84rem; color: var(--muted); line-height: 1.3; display: block; }
.in-pulse { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(14, 42, 38, .06); overflow: hidden; }
.in-pulse i { display: block; width: 40%; height: 100%; background: var(--c); border-radius: 4px; animation: inPulse 3.4s ease-in-out infinite; }
@keyframes inPulse { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
.in-foot { font-size: .88rem; color: var(--muted); font-style: italic; margin: 0; max-width: none; }
@media (max-width: 860px) { .in-grid { grid-template-columns: 1fr; } .in-bars li { grid-template-columns: 96px 1fr 24px; } }
#analysis { background: var(--cream); }


/* ==========================================================================
   ADMIN PORTAL  (#/admin/…)  — uses the site's own palette and Cambria type
   ========================================================================== */

/* Header menu item */
.nav a.nav-admin:not(.btn) { display: inline-flex; align-items: center; gap: 7px; padding: 6px 15px; border: 1.5px solid var(--blue-deep); border-radius: 999px; color: var(--blue-deep); font-weight: 700; }
.nav a.nav-admin:not(.btn):hover, .nav a.nav-admin.active:not(.btn) { background: var(--blue-deep); color: #fff; border-color: var(--blue-deep); }
@media (max-width: 860px) {
  .nav a.nav-admin:not(.btn) { border-radius: var(--radius); margin-top: 12px; justify-content: center; border: 1.5px solid var(--blue-deep); padding: 12px 15px; }
}

/* Shell */
#admin { background: var(--cream-lt); }
.ad-shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: calc(100vh - var(--header-h)); }
.ad-side { background: var(--navy); color: #cfe0dc; padding: 22px 16px; display: flex; flex-direction: column; gap: 22px; position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); overflow: auto; }
.ad-who { display: flex; gap: 12px; align-items: center; }
.ad-av { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 50%; background: var(--purple); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.1rem; }
.ad-who b { color: #fff; display: block; line-height: 1.2; }
.ad-who small { display: block; color: #a9c0ba; font-size: .78rem; max-width: 178px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-nav { display: grid; gap: 4px; }
.ad-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 6px; color: #dbe8e4; text-decoration: none; font-weight: 700; min-height: 46px; }
.ad-nav a:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.ad-nav a[aria-current="page"] { background: rgba(255, 255, 255, .15); color: #fff; box-shadow: inset 3px 0 0 var(--purple); }
.ad-count { margin-left: auto; background: var(--purple); color: #fff; border-radius: 999px; font-size: .75rem; font-style: normal; padding: 1px 9px; }
.ad-side-foot { margin-top: auto; display: grid; gap: 10px; }
.ad-side-foot .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.ad-side-foot .btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.ad-main { padding: 30px clamp(18px, 3vw, 40px) 70px; min-width: 0; }
.ad-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.ad-top h1 { font-size: 2rem; }
#ad-content { outline: none; }

/* Dashboard */
.ad-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.ad-stat { display: block; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: border-color .2s, transform .2s; }
.ad-stat:hover { border-color: var(--steel); transform: translateY(-2px); color: var(--text); }
.ad-stat b { display: block; font-size: 2.1rem; line-height: 1.1; color: var(--blue-deep); font-variant-numeric: tabular-nums; }
.ad-stat span { display: block; font-weight: 700; color: var(--navy); font-size: .98rem; margin-top: 2px; }
.ad-stat small { display: block; color: var(--muted); font-size: .82rem; min-height: 1.2em; }
.ad-grid2 { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; margin-bottom: 20px; }
.ad-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ad-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); min-width: 0; }
.ad-card h3 { font-size: 1.15rem; margin-bottom: 14px; }
.ad-card-stack { display: grid; gap: 20px; align-content: start; min-width: 0; }
.ad-list { list-style: none; margin: 0; padding: 0; }
.ad-list li { border-bottom: 1px solid var(--border); padding: 10px 0; }
.ad-list li:last-child { border-bottom: 0; }
.ad-list a { display: block; text-decoration: none; color: inherit; line-height: 1.4; overflow-wrap: anywhere; }
.ad-list a:hover strong { text-decoration: underline; }
.ad-chart { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 6px; height: 200px; align-items: stretch; }
.ad-col { display: flex; flex-direction: column; min-width: 0; }
.ad-bars { flex: 1; display: flex; flex-direction: column-reverse; min-height: 0; background: linear-gradient(to top, rgba(14, 42, 38, .05), transparent); border-radius: 3px; }
.ad-bars i { display: block; width: 100%; }
.ad-col span { font-size: .6rem; color: var(--muted); text-align: center; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: clip; }
.b-c { background: #3F6886; } .b-p { background: #8F72A0; } .b-m { background: #6E8F5A; }
.ad-legend { display: flex; gap: 18px; flex-wrap: wrap; list-style: none; padding: 0; margin: 16px 0 0; font-size: .9rem; }
.ad-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.ad-break { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ad-break li { display: grid; grid-template-columns: 74px 1fr 34px; gap: 10px; align-items: center; text-transform: capitalize; font-size: .95rem; }
.ad-break .bar { height: 10px; background: #E9E4D2; border-radius: 999px; overflow: hidden; }
.ad-break .bar i { display: block; height: 100%; background: var(--steel); border-radius: 999px; }
.ad-break b { text-align: right; color: var(--navy); }

/* Inquiry tabs, projects, forms */
.od-tabs a.ad-tab { padding: 12px 18px; border-bottom: 3px solid transparent; font-weight: 700; color: var(--muted); text-decoration: none; white-space: nowrap; min-height: 48px; display: inline-flex; align-items: center; }
.od-tabs a.ad-tab:hover { color: var(--blue-deep); }
.od-tabs a.ad-tab[aria-current="page"] { color: var(--navy); border-bottom-color: var(--purple); }
.ad-proj { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 20px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; align-items: center; }
.ad-proj h3 { font-size: 1.12rem; margin: 6px 0 4px; }
.ad-proj .pmeta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ad-form { max-width: 860px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.ad-settings .ad-card.form { align-content: start; }
.chk { display: flex !important; gap: 10px; align-items: center; font-weight: 700; color: var(--navy); cursor: pointer; }
.chk input { width: 18px; height: 18px; min-height: 0; padding: 0; flex: 0 0 auto; }
.linklike { background: none; border: 0; padding: 0; color: var(--blue-deep); text-decoration: underline; cursor: pointer; font: inherit; text-align: left; }
.linklike:hover { color: var(--navy); }
.unread-dot { margin-left: 8px; background: var(--purple); color: #fff; border-radius: 999px; font-size: .72rem; padding: 0 7px; }
.item-actions .btn[disabled] { opacity: .35; }

/* Responsive */
@media (max-width: 1100px) {
  .ad-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ad-grid2 { grid-template-columns: minmax(0, 1fr); }
  .ad-grid3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .ad-shell { display: block; }
  .ad-side { display: contents; }
  .ad-who { background: var(--navy); padding: 14px 18px 8px; }
  .ad-nav { position: sticky; top: var(--header-h); z-index: 40; display: flex; gap: 6px; overflow-x: auto; background: var(--navy); padding: 8px 12px 10px; border-bottom: 3px solid var(--purple); -webkit-overflow-scrolling: touch; }
  .ad-nav a { flex: 0 0 auto; padding: 8px 14px; min-height: 44px; }
  .ad-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--purple); }
  .ad-count { margin-left: 4px; }
  .ad-side-foot { background: var(--navy); display: flex; flex-wrap: wrap; gap: 10px; padding: 8px 18px 14px; margin: 0; }
  .ad-main { padding: 22px 16px 60px; }
  .ad-top h1 { font-size: 1.6rem; }
  .ad-proj { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .ad-stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
  .ad-stat { padding: 14px; } .ad-stat b { font-size: 1.7rem; }
  .ad-chart { gap: 3px; height: 160px; }
  .ad-col span { display: none; }
  .ad-col:nth-child(3n+1) span { display: block; font-size: .55rem; }
  .ad-form { padding: 18px; }
  .ad-card { padding: 16px; }
}

/* Completed-project labelling on the public site */
.badge.s-completed-used { background: var(--ok-tint); color: var(--ok); border-color: #B7CDA4; }
.badge.s-in-development { background: #E6EDF4; color: var(--blue-deep); border-color: #BFD0E0; }
.pcard.is-done { border-top: 3px solid #6E8F5A; }
.pcard .practical, .dlg-body .practical { margin: 0 0 14px; padding: 9px 13px; background: rgba(63, 104, 134, .08); border-left: 3px solid var(--blue-deep); border-radius: 0 4px 4px 0; font-size: .96rem; line-height: 1.5; }
.practical strong { display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-deep); }
.proj-summary { font-weight: 700; color: var(--blue-deep); margin: -4px 0 0; }
.in-nometrics { margin: 0; color: var(--muted); font-style: italic; font-size: .95rem; }
.in-kpi.k-completed-used::before { background: #2F6A3A; }

/* header: keep every menu item on one line, tighten when space is short */
.nav { gap: clamp(12px, 1.5vw, 26px); }
.nav a { white-space: nowrap; }
.ad-proj .pmeta { justify-content: flex-start; }
@media (min-width: 861px) and (max-width: 1180px) {
  .nav { gap: 12px; } .nav a:not(.btn) { font-size: .92rem; }
  .nav a.nav-admin:not(.btn) { padding: 5px 11px; } .nav-cta { padding: 6px 14px; margin-left: 2px; }
  .brand-text { font-size: .98rem; }
}



/* ==========================================================================
   MOBILE-FIRST POLISH  (phones are the main audience)
   ========================================================================== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: hidden; }
@supports (overflow: clip) { html { overflow-x: clip; } }
body { -webkit-tap-highlight-color: rgba(63, 104, 134, .16); }
a, button, summary, select, label, input[type=checkbox], input[type=radio] { touch-action: manipulation; }
.tabbar { display: none; }

@media (max-width: 860px) {
  .orb { display: none; }                                   /* decorative blurred blobs: heavy on phones */
  .wrap { padding-left: max(18px, env(safe-area-inset-left)); padding-right: max(18px, env(safe-area-inset-right)); }
  .section { padding-top: 56px; padding-bottom: 56px; }
  html { scroll-padding-top: calc(var(--header-h) + 8px); }

  /* thumb-sized controls (44px+) and no iOS zoom-on-focus (16px inputs) */
  input, select, textarea, .field input, .field select, .field textarea { font-size: 16px !important; min-height: 48px; }
  textarea { min-height: 110px; }
  .btn { min-height: 48px; }
  .btn-sm { min-height: 46px; padding-left: 18px; padding-right: 18px; }
  .nav a:not(.btn) { min-height: 50px; display: flex; align-items: center; }
  .linklike { min-height: 44px; display: inline-flex; align-items: center; }
  .chk input, input[type=checkbox], input[type=radio] { width: 24px; height: 24px; min-height: 0; flex: 0 0 auto; }
  .eyebrow { font-size: .8rem; }
  .btn:active, .tabbar a:active, .pcard:active, .prog-card:active { transform: scale(.98); }
  .hero-actions, .actions { gap: 12px; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .form-foot { flex-direction: column; align-items: stretch; }
  .form-foot .btn { width: 100%; justify-content: center; }

  /* Jumia-style bottom tab bar */
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  body.no-tabbar { padding-bottom: 0; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -4px 18px rgba(21, 37, 54, .10);
    padding-bottom: env(safe-area-inset-bottom); }
  body.no-tabbar .tabbar { display: none; }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 60px; padding: 6px 2px;
    color: var(--muted); text-decoration: none; font-size: .72rem; font-weight: 700; position: relative; }
  .tabbar a svg { width: 24px; height: 24px; }
  .tabbar a.active, .tabbar a[aria-current] { color: var(--blue-deep); }
  .tabbar a.active::before, .tabbar a[aria-current]::before { content: ""; position: absolute; top: 0; left: 24%; right: 24%; height: 3px; border-radius: 0 0 3px 3px; background: var(--purple); }
  .wa-float { bottom: calc(76px + env(safe-area-inset-bottom)); right: 14px; z-index: 95; }
  body.no-tabbar .wa-float { bottom: calc(14px + env(safe-area-inset-bottom)); }
  .ad-nav { top: var(--header-h); }
}
@media (max-width: 380px) {
  body { font-size: 16px; }
  .tabbar a { font-size: .66rem; }
  h1 { word-break: break-word; }
}
@media (hover: none) { .btn:hover, .pcard:hover, .prog-card:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) { .tabbar a:active, .btn:active { transform: none; } }
@media print { .tabbar { display: none !important; } body { padding-bottom: 0 !important; } }

/* grid children may shrink below their content width (prevents sideways overflow on small phones) */
.hero-grid > *, .about-grid > *, .in-grid > *, .window, .window-body, .w-main { min-width: 0; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { max-width: 100%; overflow: hidden; }
  .window { max-width: 100%; transform: none; }
  .w-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { width: 100%; justify-content: center; }
}


/* ==========================================================================
   MOBILE APP-FEEL v2 + IMAGE DELIVERY  (additive; overrides only what is listed)
   ========================================================================== */
img, svg, video, canvas { max-width: 100%; }
.portrait picture { display: block; width: 100%; height: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { overscroll-behavior-x: none; }

/* slow / data-saver connections: drop the decorative full-screen watermark and motion */
@media (prefers-reduced-data: reduce) { body::after { display: none; } }
.save-data body::after { display: none; }
.save-data *, .save-data *::before, .save-data *::after { animation: none !important; transition: none !important; }

/* horizontally scrolling tab strips: smooth, snap, hidden scrollbar */
.tabs, .od-tabs, .ad-nav { -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scrollbar-width: none; scroll-snap-type: x proximity; }
.tabs::-webkit-scrollbar, .od-tabs::-webkit-scrollbar, .ad-nav::-webkit-scrollbar { display: none; }
.tabs > *, .od-tabs > *, .ad-nav > * { scroll-snap-align: start; flex: 0 0 auto; }

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .monogram { width: 38px; height: 38px; }
  .brand-text { font-size: 1.02rem; }
  .menu-btn { min-width: 48px; min-height: 48px; }

  /* menu: opaque panel that never runs behind the bottom tab bar, scrolls if the phone is short, dims the page */
  .nav { background: var(--nav-bg, #fff); max-height: calc(100vh - var(--header-h) - 66px); max-height: calc(100dvh - var(--header-h) - 66px - env(safe-area-inset-bottom));
         overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .nav.open { animation: menuIn .18s ease-out; }
  @keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
  body.menu-open { overflow: hidden; }
  body.menu-open::before { content: ""; position: fixed; inset: 0; background: rgba(21, 37, 54, .42); z-index: 99; }

  /* footer links: comfortable thumb targets */
  .site-footer nav a { padding: 12px 0; min-height: 44px; display: flex; align-items: center; }
  .foot-links li { padding: 0; }
  .foot-links a { display: inline-flex; align-items: center; min-height: 44px; }

  /* cards and form panels breathe a little less on small screens */
  .section { padding-top: 48px; padding-bottom: 48px; }
  h2 { font-size: clamp(1.45rem, 6vw, 1.9rem); line-height: 1.2; }
  .lede, .section p { overflow-wrap: anywhere; }
  table { max-width: 100%; }
}
@media (max-width: 480px) {
  h1 { font-size: clamp(1.75rem, 8.4vw, 2.2rem); line-height: 1.15; }
  .wrap { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
}
@media (min-width: 861px) { body.menu-open { overflow: auto; } body.menu-open::before { display: none; } }
@media print { body.menu-open::before { display: none; } }
@media (max-width: 860px) { .brand { min-height: 44px; } }
@media (max-width: 860px) { .owner-link { display: inline-flex; align-items: center; min-height: 44px; } }
