/* Look: deep navy and gold on warm stone white. Large, high-contrast text and big buttons, because many users are
   older and read on phones. One light theme everywhere, so the site looks the same on every device. */
:root {
  --bg: #F6F3ED; --surface: #FFFFFF; --sunk: #EFEBE3; --ink: #15202B; --muted: #4A5361; --line: #DCD5C8;
  --navy: #0F2A47; --navy-2: #173C63; --on-navy: #FFFFFF;
  --gold: #B8892E; --gold-soft: #F4EAD3; --gold-ink: #6E4F12;
  --accent: var(--navy); --on-accent: #FFFFFF; --star: #C08A1E;
  --blue: #1D4E89; --info-bg: #E3ECF7;
  --good: #22693F; --good-bg: #E2F1E7; --warn: #8A4E06; --warn-bg: #FBEFD9; --bad: #A12D25; --bad-bg: #F9E3E0;
  --c0: #2F6FA8; --c1: #2C7649; --c2: #9A5A0C; --c3: #7A3E9D; --c4: #A6312A; --c5: #1F7A7A;
  --shadow: 0 1px 2px rgba(15, 42, 71, .06), 0 6px 18px rgba(15, 42, 71, .06);
  --radius: 12px;
  --font-display: "Noto Kufi Arabic", "Almarai", "Segoe UI", Tahoma, sans-serif;
  --font-body: "Almarai", "Segoe UI", Tahoma, Arial, sans-serif;
  --font-mono: "Almarai", "Segoe UI", Tahoma, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  overflow-x: clip; /* full-bleed bands are 100vw wide, which includes a classic scrollbar */
  background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.8; -webkit-font-smoothing: antialiased;
}
main { flex: 1; width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; }
button { font: inherit; color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap {
  max-width: 1180px; margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* header */
.top { position: sticky; top: 0; z-index: 5; background: var(--surface); padding-top: env(safe-area-inset-top, 0px); box-shadow: 0 1px 0 var(--line); }
.top-in { display: flex; align-items: center; gap: 12px 24px; padding-block: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); text-decoration: none; }
.mark { width: 46px; height: 46px; flex: none; display: block; }
.brand b { display: block; font-family: var(--font-display); font-size: 30px; line-height: 1.15; font-weight: 800; }
.brand small { display: block; font-size: 14px; color: var(--muted); line-height: 1.3; font-weight: 700; }
.tabs { display: flex; gap: 6px; flex: 1; min-width: 0; }
.tabs a { color: var(--muted); font-weight: 700; font-size: 17px; padding: 8px 16px; border-radius: 10px; text-decoration: none; }
.tabs a:hover { color: var(--navy); background: var(--sunk); }
.tabs a[aria-current="page"] { color: var(--navy); background: var(--gold-soft); }
.top-act { display: flex; gap: 8px; align-items: center; }
.top-act form { margin: 0; }
.tape { height: 4px; background: linear-gradient(90deg, var(--gold), #D9B45F 50%, var(--gold)); }
@media (max-width: 680px) {
  .tabs { order: 3; flex-basis: 100%; }
  .tabs:empty { display: none; }
  .tabs a { flex: 1; text-align: center; padding-inline: 6px; }
  .top-in { justify-content: space-between; gap: 10px; }
  .top-act { gap: 4px; }
  .top-act .btn { padding-inline: 14px; }
  .brand small { display: none; }
  .mark { width: 42px; height: 42px; }
  .brand b { font-size: 28px; }
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 10px 20px;
  border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); color: var(--navy);
  font-weight: 700; font-size: 16px; cursor: pointer; text-decoration: none; white-space: nowrap; line-height: 1.4;
}
.btn:hover { border-color: var(--navy); }
.btn.primary { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.btn.primary:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.btn.ghost { background: none; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--navy); border-color: var(--line); }
.btn.danger { color: var(--bad); }
.btn.small { min-height: 40px; padding: 6px 14px; font-size: 15px; border-radius: 8px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.linkish { color: var(--navy); font-weight: 700; text-decoration: none; }
.linkish:hover { text-decoration: underline; }

.flash { margin-top: 16px; padding: 12px 16px; border-radius: 10px; font-size: 16px; font-weight: 700; }
.flash.good { background: var(--good-bg); color: var(--good); }
.flash.bad { background: var(--bad-bg); color: var(--bad); }

/* home: a navy band with the headline, the contractors count and the two main actions */
.hero {
  position: relative; margin-inline: calc(50% - 50vw); padding-inline: calc(50vw - 50%); padding-block: 40px 44px;
  background: radial-gradient(120% 140% at 100% 0%, #1D4673 0%, var(--navy) 55%, #0B2038 100%); color: var(--on-navy);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px;
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 4px; background: var(--gold); opacity: .9; }
.hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 4vw, 44px); line-height: 1.55; margin: 0; max-width: 17em; }
.lead { color: var(--muted); margin: 10px 0 0; max-width: 58ch; }
.reg {
  display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 0; padding: 18px 28px;
  border: 1.5px solid rgba(232, 199, 128, .55); border-radius: 16px; background: rgba(255, 255, 255, .06);
  font-size: 17px; font-weight: 700; color: #F2E3BF; text-align: center;
}
.reg-n { font-family: var(--font-display); font-size: 48px; font-weight: 800; line-height: 1.3; font-variant-numeric: tabular-nums; color: #FFFFFF; order: -1; }
@media (max-width: 680px) {
  .hero { padding-block: 28px 32px; gap: 18px; }
  .reg { flex-direction: row; gap: 12px; padding: 10px 18px; border-radius: 12px; }
  .reg-n { font-size: 34px; }
}

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 16px; margin: 24px 0 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.view-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: end; justify-content: space-between; padding-block: 28px 8px; }
.view-head h1 { font-family: var(--font-display); font-size: clamp(26px, 3vw, 34px); margin: 0; line-height: 1.4; color: var(--navy); }
.view-head p { margin: 4px 0 0; color: var(--muted); }
input, select, textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 12px; min-height: 48px; max-width: 100%;
}
input::placeholder, textarea::placeholder { color: #7A8290; }
input:hover, select:hover, textarea:hover { border-color: #A9B0BB; }
input:focus, select:focus, textarea:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(184, 137, 46, .35); }
.filters input[type="search"] { flex: 1 1 240px; min-width: 0; }
.filters select { flex: 0 1 auto; min-width: 0; }
.seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); max-width: 100%; margin-inline-start: auto; }
.seg a { border-inline-start: 1.5px solid var(--line); padding: 10px 16px; color: var(--muted); font-size: 16px; font-weight: 700; white-space: nowrap; text-decoration: none; }
.seg a:first-child { border-inline-start: 0; }
.seg a[aria-current="page"] { background: var(--navy); color: var(--on-navy); }
.seg .n { font-size: 14px; opacity: .85; margin-inline-start: 6px; }
.find { display: contents; }
.find-toggle { display: none; }
.find-toggle .i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
@media (max-width: 680px) {
  .filters { padding: 12px; }
  .seg { margin-inline-start: 0; flex: 1 1 0; min-width: 0; }
  .seg a { flex: 1 1 auto; text-align: center; padding-inline: 4px; font-size: 15px; }
  .seg .n { margin-inline-start: 4px; }
  .filters { gap: 8px; }
  .find-toggle:not([hidden]) { display: inline-flex; padding-inline: 12px; }
  .find-toggle[aria-expanded="true"] { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
  .filters.folded .find { display: none; }
  .filters:not(.folded) .find { display: flex; flex-wrap: wrap; gap: 10px; flex-basis: 100%; order: 3; }
  .find input[type="search"] { flex-basis: 100%; }
  .find select { flex: 1 1 0; }
  .find #cat { flex-basis: 100%; }
  .find .btn { min-width: 96px; }
}

/* grid + cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 16px; padding-block: 12px 48px; }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; min-width: 0; transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--gold); transform: translateY(-2px); }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ref { font-size: 14px; color: var(--muted); letter-spacing: .02em; }
.card h3 { margin: 0; font-family: var(--font-display); font-size: 20px; line-height: 1.6; font-weight: 700; }
.card-link { color: var(--navy); text-decoration: none; }
.card .card-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card-link:focus-visible { outline: none; }
.card .card-link:focus-visible::after { outline: 3px solid var(--gold); outline-offset: 2px; }
.meta { margin: 0; color: var(--muted); font-size: 15px; }
.excerpt { margin: 0; font-size: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.figs { display: grid; grid-template-columns: auto auto auto; justify-content: space-between; gap: 10px 14px; margin: auto 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.figs dt { font-size: 14px; color: var(--muted); }
.figs dd { margin: 0; font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; line-height: 1.6; }
.card-foot { display: flex; justify-content: space-between; gap: 6px 10px; font-size: 14.5px; color: var(--muted); flex-wrap: wrap; }
.tag { display: inline-block; font-size: 14px; font-weight: 700; color: var(--gold-ink); background: var(--gold-soft); padding: 2px 10px; border-radius: 6px; }
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill.good { background: var(--good-bg); color: var(--good); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.info { background: var(--info-bg); color: var(--blue); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.done { background: var(--sunk); color: var(--muted); }
.pager { display: flex; gap: 12px; justify-content: center; align-items: center; padding-bottom: 48px; color: var(--muted); }

/* contractor identity */
.con-top { display: flex; gap: 12px; align-items: center; min-width: 0; }
.con-top > div { min-width: 0; }
.stamp {
  --c: var(--c0);
  width: 48px; height: 48px; flex: none; border-radius: 10px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 21px; color: var(--ink);
  background: color-mix(in srgb, var(--c) 18%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 40%, var(--line));
}
.stamp.c1 { --c: var(--c1); } .stamp.c2 { --c: var(--c2); } .stamp.c3 { --c: var(--c3); } .stamp.c4 { --c: var(--c4); } .stamp.c5 { --c: var(--c5); }
.stamp.big { width: 72px; height: 72px; font-size: 32px; border-radius: 14px; }
.rating { font-size: 15px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rating b { color: var(--ink); font-weight: 800; }
.stars { color: var(--star); letter-spacing: 1px; font-size: 17px; line-height: 1; }
.stars .off { color: var(--line); }
.chips-ro { display: flex; flex-wrap: wrap; gap: 6px; }
.chips-ro span { font-size: 14.5px; padding: 2px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }

.empty {
  grid-column: 1 / -1; border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 40px 20px; text-align: center;
  display: grid; gap: 12px; justify-items: center; background: var(--surface);
}
.empty h3 { margin: 0; font-family: var(--font-display); font-size: 22px; line-height: 1.5; color: var(--navy); }
.empty p { margin: 0; color: var(--muted); max-width: 56ch; }

/* tender + contractor pages */
.crumbs { padding-top: 22px; font-size: 15px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.detail { max-width: 880px; display: grid; gap: 24px; padding-block: 14px 60px; }
.sec h2 { margin: 0 0 10px; font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--navy); }
.desc { margin: 0; white-space: pre-line; overflow-wrap: anywhere; max-width: 72ch; }
.board { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.board-head { background: var(--navy); color: var(--on-navy); display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 18px; flex-wrap: wrap; border-bottom: 3px solid var(--gold); }
.board-head .ref { color: #E8D3A2; font-size: 15px; }
.board h1 { margin: 0; padding: 18px 18px 4px; font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px); line-height: 1.5; overflow-wrap: anywhere; color: var(--navy); }
.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 14px 20px; margin: 0; padding: 12px 18px 20px; }
.board-grid dt { font-size: 14.5px; color: var(--muted); }
.board-grid dd { margin: 0; font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.board-grid dd small { display: block; font-weight: 400; font-size: 14px; color: var(--muted); }
.actionbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0; }
.actionbar form, .bid-act form { margin: 0; }
.callout { padding: 14px 18px; border-radius: 10px; font-size: 16px; font-weight: 700; }
.callout.good { background: var(--good-bg); color: var(--good); }
.callout.info { background: var(--info-bg); color: var(--blue); }
.callout.warn { background: var(--warn-bg); color: var(--warn); }
.callout.done { background: var(--sunk); color: var(--muted); }
.callout a { color: inherit; font-weight: 800; }
.sealed { padding: 12px 16px; border: 1.5px dashed var(--line); border-radius: 10px; margin-bottom: 12px; }

.bid-sum { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; color: var(--muted); margin: -2px 0 12px; }
.bid-sum b { color: var(--ink); font-weight: 800; }
.bids { display: grid; gap: 12px; }
.bid { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; background: var(--surface); box-shadow: var(--shadow); }
.bid.won { border-color: var(--good); box-shadow: inset 0 0 0 1.5px var(--good), var(--shadow); }
.bid.mine { background: color-mix(in srgb, var(--gold) 8%, var(--surface)); }
.bid-who { display: flex; gap: 12px; align-items: center; min-width: 0; }
.bid-who > div { min-width: 0; }
.bid-price { text-align: end; display: grid; justify-items: end; align-content: start; }
.money { font-family: var(--font-display); font-weight: 800; font-size: 22px; font-variant-numeric: tabular-nums; line-height: 1.4; color: var(--navy); }
.money small { font-family: var(--font-body); font-size: 14px; font-weight: 700; color: var(--muted); }
.bid-price .sub { font-size: 14px; color: var(--muted); }
.facts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.facts li { font-size: 14.5px; background: var(--sunk); padding: 4px 12px; border-radius: 8px; }
.bid-note { grid-column: 1 / -1; margin: 0; font-size: 16px; white-space: pre-line; overflow-wrap: anywhere; }
.bid-act { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.bid-act:empty { display: none; }
@media (max-width: 520px) {
  .bid { grid-template-columns: 1fr; }
  .bid-price { text-align: start; justify-items: start; }
}

.con-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding-top: 18px; }
.con-head h1 { margin: 0; font-family: var(--font-display); font-size: clamp(26px, 3vw, 32px); line-height: 1.4; overflow-wrap: anywhere; color: var(--navy); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); margin: 0; background: var(--surface); box-shadow: var(--shadow); }
.kpis div { padding: 12px 16px; border-inline-start: 1px solid var(--line); min-width: 0; }
.kpis div:first-child { border-inline-start: 0; }
.kpis dt { font-size: 14.5px; color: var(--muted); }
.kpis dd { margin: 0; font-family: var(--font-display); font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--navy); }
.kpis dd small { font-size: 14px; color: var(--muted); }
@media (max-width: 560px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .kpis div:nth-child(3) { border-inline-start: 0; }
  .kpis div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
.bars { display: grid; gap: 10px; max-width: 480px; }
.bar { display: grid; grid-template-columns: 130px 1fr 38px; gap: 10px; align-items: center; font-size: 15.5px; }
.bar meter { width: 100%; height: 10px; }
.bar span:last-child { font-weight: 800; text-align: end; }
meter { appearance: none; border: 0; border-radius: 5px; background: var(--sunk); }
meter::-webkit-meter-bar { background: var(--sunk); border: 0; border-radius: 5px; height: 10px; }
meter::-webkit-meter-optimum-value, meter::-webkit-meter-suboptimum-value, meter::-webkit-meter-even-less-good-value { background: var(--star); border-radius: 5px; }
meter::-moz-meter-bar { background: var(--star); border-radius: 5px; }
.contact { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.contact .sel { font-size: 19px; font-weight: 800; user-select: all; padding: 6px 12px; background: var(--sunk); border-radius: 8px; letter-spacing: .03em; }
.reviews { display: grid; gap: 12px; }
.review { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 8px; background: var(--surface); }
.review-top { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 15px; color: var(--muted); }
.review-top b { color: var(--ink); }
.review p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.subr { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14.5px; color: var(--muted); }

/* account */
.mine { display: grid; gap: 32px; padding-block: 8px 60px; }
.mine h2 { font-family: var(--font-display); font-size: 23px; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; color: var(--navy); }
.mine h2 .n { font-family: var(--font-body); font-size: 15px; color: var(--gold-ink); background: var(--gold-soft); font-weight: 800; padding: 0 10px; border-radius: 999px; }
.rows { display: grid; gap: 10px; }
.rowi { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.rowi:hover { border-color: var(--gold); }
.rowi .t { font-weight: 800; min-width: 0; overflow-wrap: anywhere; }
.rowi .card-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.rowi .s { grid-column: 1; font-size: 15px; color: var(--muted); }
.rowi .e { grid-row: 1 / 3; grid-column: 2; display: grid; justify-items: end; gap: 6px; text-align: end; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 20px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.panel p { margin: 0; color: var(--muted); max-width: 60ch; }
.panel-form { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 20px; max-width: 760px; }

/* forms */
.page { padding-block: 28px 60px; }
.page.narrow { max-width: 780px; }
.page.auth { max-width: 480px; }
.page > h1 { font-family: var(--font-display); font-size: clamp(26px, 3vw, 34px); margin: 0; line-height: 1.4; color: var(--navy); }
.page > .lead { margin-bottom: 20px; }
.page > .ctx { margin-block: 14px 6px; }
.form { display: grid; gap: 20px; margin-top: 18px; }
.form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.f { display: grid; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.lbl { font-size: 16px; font-weight: 800; padding: 0; color: var(--ink); }
.lbl em { font-style: normal; font-weight: 400; color: var(--muted); font-size: 14.5px; margin-inline-start: 4px; }
.f input, .f select, .f textarea { width: 100%; }
/* password with show/hide eye: the button sits at the left edge, where an LTR password starts, so pad that side */
.pw { position: relative; }
.pw:has(.pw-eye:not([hidden])) input { padding-left: 52px; }
.pw-eye {
  position: absolute; left: 4px; top: 50%; transform: translateY(-50%);
  width: 44px; height: 40px; display: grid; place-items: center;
  border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; padding: 0;
}
.pw-eye[hidden] { display: none; }
.pw-eye:hover { color: var(--navy); background: var(--sunk); }
.pw-eye svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pw-eye .i-hide, .pw-eye[aria-pressed="true"] .i-show { display: none; }
.pw-eye[aria-pressed="true"] .i-hide { display: block; }
.has-err input, .has-err select, .has-err textarea { border-color: var(--bad); }
.err { color: var(--bad); font-size: 15px; font-weight: 700; }
textarea { min-height: 120px; resize: vertical; line-height: 1.75; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chk { position: relative; }
.chk input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.chk span { display: inline-block; padding: 7px 16px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 15.5px; font-weight: 700; cursor: pointer; background: var(--surface); }
.chk span:hover { border-color: var(--navy); }
.chk input:checked + span { background: var(--navy); color: var(--on-navy); border-color: var(--navy); }
.chk input:checked + span::before { content: "✓ "; }
.chk input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: center; font-size: 16px; font-weight: 700; }
.check input { min-height: 0; width: 22px; height: 22px; accent-color: var(--navy); flex: none; }
.form-err { margin: 0; padding: 10px 14px; border-radius: 10px; background: var(--bad-bg); color: var(--bad); font-size: 15.5px; font-weight: 700; }
.form-foot { display: flex; gap: 10px; flex-wrap: wrap; }
.form-foot .btn.primary { min-width: 180px; }
.ctx { background: var(--gold-soft); border-radius: 10px; padding: 12px 16px; font-size: 15.5px; display: grid; gap: 2px; }
.ctx b { font-size: 17px; }
.ppm { font-size: 15px; color: var(--muted); min-height: 1.5em; margin-top: -10px; }

/* star rating: radios in 5..1 order, laid out so 1 sits at the reading start */
.rate-row { display: flex; justify-content: space-between; align-items: center; gap: 4px 10px; flex-wrap: wrap; padding: 8px 0; margin: 0; border: 0; border-bottom: 1px solid var(--line); }
.rate-row legend { float: inline-start; padding: 0; }
.rate-row .err { flex-basis: 100%; }
.stars-in { display: inline-flex; flex-direction: row-reverse; }
.stars-in input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.stars-in label { font-size: 34px; line-height: 1; padding: 3px; color: var(--line); cursor: pointer; }
.stars-in input:checked ~ label, .stars-in label:hover, .stars-in label:hover ~ label { color: var(--star); }
.stars-in input:focus-visible + label { outline: 3px solid var(--gold); outline-offset: 1px; border-radius: 4px; }

.foot { background: var(--navy); color: #C9D3DF; padding-block: 24px calc(24px + env(safe-area-inset-bottom, 0px)); font-size: 15.5px; border-top: 4px solid var(--gold); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { color: #FFFFFF; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(232, 199, 128, .7); }
.foot a:hover { color: #F2E3BF; }

.prose h2 { font-family: var(--font-display); font-size: 21px; margin: 30px 0 10px; color: var(--navy); }
.prose p, .prose li { line-height: 1.95; }
.prose ul { padding-inline-start: 22px; margin: 0; }
.prose a { color: inherit; text-decoration: underline; }
.info { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.info > div { display: grid; grid-template-columns: minmax(120px, 30%) 1fr; gap: 4px 14px; padding: 12px 18px; }
.info > div + div { border-top: 1px solid var(--line); }
.info dt { color: var(--muted); }
.info dd { margin: 0; font-weight: 800; overflow-wrap: anywhere; }
.info dd[dir="ltr"] { text-align: right; }
@media (max-width: 480px) { .info > div { grid-template-columns: 1fr; } }
.prose .en { margin-top: 40px; border-top: 1px solid var(--line); text-align: left; font-family: system-ui, sans-serif; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } .card:hover { transform: none; } }

/* admin: WhatsApp alerts */
.panel.wa-state { display: block; border-inline-start: 5px solid var(--warn); line-height: 1.9; }
.panel.wa-state.on { border-inline-start-color: var(--good); }
.wa-counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-block: 16px 8px; }
.wa-counts .panel { padding: 14px 16px; gap: 8px; }
.wa-counts b { font-size: 26px; font-family: var(--font-display); color: var(--navy); }
.page > .sec { margin-top: 28px; }
.rowi .s a, .rowi .e a { position: relative; z-index: 1; }
.wa-err { color: var(--bad); }
