/* OpportunityHub design system
   Pine ink + cool paper, marigold reserved for deadlines.
   The signature element is the deadline stub: a ticket-like block that counts down the days. */

@font-face { font-family: "Bricolage"; src: url("../fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --pine: #0e3b33;
  --pine-2: #175347;
  --pine-3: #2b6e60;
  --pine-wash: #e6efec;
  --paper: #f3f6f4;
  --surface: #ffffff;
  --line: #dbe4e0;
  --line-2: #c9d5d0;
  --text: #15211d;
  --muted: #5b6b66;
  --marigold: #f0a63a;
  --marigold-wash: #fdf1dc;
  --marigold-ink: #7d4f06;
  --urgent: #c2412d;
  --urgent-wash: #fbe7e3;
  --ok: #1d7a52;      --ok-wash: #e2f3ea;
  --likely: #24639c;  --likely-wash: #e3eef8;
  --check: #8a6200;   --check-wash: #fbf0d2;
  --not: #9b3a33;     --not-wash: #f7e5e3;
  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;
  --shadow: 0 1px 2px rgba(14,59,51,.06), 0 8px 24px -12px rgba(14,59,51,.18);
  --font-display: "Bricolage", "Public Sans", system-ui, sans-serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --bs-body-font-family: var(--font-body);
  --bs-body-color: var(--text);
  --bs-body-bg: var(--paper);
  --bs-link-color: var(--pine-2);
  --bs-link-color-rgb: 23,83,71;
  --bs-link-hover-color: var(--pine);
  --bs-border-color: var(--line);
  --bs-primary: var(--pine);
  --bs-primary-rgb: 14,59,51;
  --bs-focus-ring-color: rgba(240,166,58,.45);
}

html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); font-size: 1rem; line-height: 1.6; color: var(--text); background: var(--paper); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
h1, h2, h3, h4, .display { font-family: var(--font-display); color: var(--pine); letter-spacing: -0.02em; line-height: 1.12; font-weight: 700; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }
p { max-width: 72ch; }
a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; border-radius: 4px; }
.text-muted, .muted { color: var(--muted) !important; }
.small-note { font-size: .875rem; color: var(--muted); }
.container-narrow { max-width: 760px; }
.visually-hidden-focusable:focus { position: fixed; top: 8px; left: 8px; z-index: 2000; background: #fff; padding: 8px 12px; border-radius: var(--r-sm); }

/* ---------- Buttons and forms ---------- */
.btn { font-weight: 600; border-radius: var(--r-sm); padding: .6rem 1.1rem; }
.btn-sm { padding: .35rem .75rem; }
.btn-lg { padding: .8rem 1.4rem; font-size: 1.05rem; }
.btn-primary { --bs-btn-bg: var(--pine); --bs-btn-border-color: var(--pine); --bs-btn-hover-bg: var(--pine-2); --bs-btn-hover-border-color: var(--pine-2); --bs-btn-active-bg: #0a2c26; --bs-btn-disabled-bg: var(--pine-3); --bs-btn-disabled-border-color: var(--pine-3); }
.btn-accent { --bs-btn-bg: var(--marigold); --bs-btn-color: #2b1c02; --bs-btn-border-color: var(--marigold); --bs-btn-hover-bg: #e2952a; --bs-btn-hover-color: #2b1c02; --bs-btn-hover-border-color: #e2952a; --bs-btn-active-bg: #d1861c; --bs-btn-active-color: #2b1c02; }
.btn-outline-primary { --bs-btn-color: var(--pine); --bs-btn-border-color: var(--line-2); --bs-btn-hover-bg: var(--pine); --bs-btn-hover-border-color: var(--pine); --bs-btn-active-bg: var(--pine); }
.btn-quiet { background: transparent; border: 0; color: var(--pine-2); padding-left: .4rem; padding-right: .4rem; }
.btn-quiet:hover { background: var(--pine-wash); color: var(--pine); }
.form-label { font-weight: 600; font-size: .925rem; margin-bottom: .35rem; }
.form-control, .form-select { border-radius: var(--r-sm); border-color: var(--line-2); padding: .62rem .8rem; background-color: #fff; }
.form-control:focus, .form-select:focus { border-color: var(--pine-3); box-shadow: 0 0 0 .2rem rgba(240,166,58,.3); }
.form-text { color: var(--muted); }
.form-check-input:checked { background-color: var(--pine); border-color: var(--pine); }
.input-hint { font-size: .8rem; color: var(--muted); margin-top: .25rem; }
.field-low { border-color: var(--marigold) !important; background: var(--marigold-wash) !important; }
.badge-src { font-size: .7rem; font-weight: 600; padding: .15rem .45rem; border-radius: 999px; background: var(--pine-wash); color: var(--pine-2); vertical-align: middle; }
.badge-src.low { background: var(--marigold-wash); color: var(--marigold-ink); }
.badge-src.user { background: var(--ok-wash); color: var(--ok); }

/* ---------- Header ---------- */
.oh-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1030; }
.oh-header .navbar { padding: .6rem 0; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--pine); text-decoration: none; letter-spacing: -.02em; }
.brand:hover { color: var(--pine); }
.brand-mark { width: 30px; height: 30px; flex: 0 0 30px; }
.oh-nav .nav-link { color: var(--text); font-weight: 500; padding: .5rem .8rem !important; border-radius: var(--r-sm); }
.oh-nav .nav-link:hover, .oh-nav .nav-link.active { color: var(--pine); background: var(--pine-wash); }
.navbar-toggler { border: 1px solid var(--line-2); padding: .4rem .55rem; }
.navbar-toggler:focus { box-shadow: none; }
.bell { position: relative; display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; color: var(--pine); text-decoration: none; font-size: 1.15rem; }
.bell:hover { background: var(--pine-wash); color: var(--pine); }
.bell .count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; font-size: .68rem; font-weight: 700; line-height: 18px; text-align: center; border-radius: 999px; background: var(--urgent); color: #fff; padding: 0 4px; }
.plan-chip { display: inline-flex; align-items: center; gap: .3rem; font-size: .75rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; background: var(--paper); color: var(--muted); border: 1px solid var(--line); }
.plan-chip.gold { background: #fbf2dc; color: #7a5304; border-color: #f0dca8; }
.plan-chip.diamond { background: #e3eef8; color: #1d4f7d; border-color: #c4dbef; }

/* ---------- Flash ---------- */
.flash-stack { margin-top: 1rem; }
.flash { display: flex; gap: .7rem; align-items: flex-start; border-radius: var(--r-md); padding: .8rem 1rem; margin-bottom: .6rem; border: 1px solid; font-size: .95rem; }
.flash i { font-size: 1.1rem; line-height: 1.4; }
.flash-success { background: var(--ok-wash); border-color: #bfe3cf; color: #0f5236; }
.flash-danger { background: var(--urgent-wash); border-color: #f1c6bd; color: #7f2416; }
.flash-warning { background: var(--marigold-wash); border-color: #f2d6a5; color: var(--marigold-ink); }
.flash-info { background: var(--pine-wash); border-color: #c9ddd6; color: var(--pine); }
.flash .btn-close { margin-left: auto; font-size: .7rem; }

/* ---------- Hero ---------- */
.hero { background: var(--pine); color: #e9f2ef; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(110deg, transparent 35%, #000 85%); pointer-events: none; }
.hero .container { position: relative; padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(2.5rem, 6vw, 5rem); }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.6rem); font-weight: 750; line-height: 1.02; letter-spacing: -0.035em; margin-bottom: 1.1rem; max-width: 14ch; }
.hero h1 .line { display: block; }
.hero h1 .line-3 { color: var(--marigold); }
.hero-lead { color: #c7dbd5; font-size: 1.1rem; max-width: 46ch; margin-bottom: 1.6rem; }
.hero-search { background: #fff; border-radius: var(--r-md); padding: .4rem; display: flex; gap: .4rem; box-shadow: 0 18px 40px -18px rgba(0,0,0,.5); max-width: 560px; }
.hero-search .form-control { border: 0; font-size: 1.02rem; padding: .7rem .8rem; }
.hero-search .form-control:focus { box-shadow: none; }
.hero-search .form-select { border: 0; border-left: 1px solid var(--line); border-radius: 0; max-width: 150px; color: var(--muted); }
.hero-search .form-select:focus { box-shadow: none; }
.hero-types { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.hero-types a { color: #e9f2ef; text-decoration: none; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: .32rem .8rem; font-size: .9rem; display: inline-flex; gap: .4rem; align-items: center; }
.hero-types a:hover { background: rgba(255,255,255,.1); color: #fff; }
.hero-types b { font-weight: 700; color: var(--marigold); }

/* Closing-soon board in the hero */
.closing-board { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-lg); padding: 1.1rem; backdrop-filter: blur(2px); }
.closing-board h2 { color: #fff; font-size: 1.05rem; font-weight: 650; margin: 0 0 .8rem; display: flex; justify-content: space-between; align-items: baseline; }
.closing-board h2 a { color: var(--marigold); font-family: var(--font-body); font-size: .85rem; font-weight: 600; text-decoration: none; }
.board-row { display: flex; gap: .85rem; align-items: center; padding: .65rem .55rem; border-radius: var(--r-md); text-decoration: none; color: #fff; }
.board-row + .board-row { border-top: 1px dashed rgba(255,255,255,.15); }
.board-row:hover { background: rgba(255,255,255,.07); color: #fff; }
.board-row .t { font-weight: 600; font-size: .95rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.board-row .m { font-size: .8rem; color: #a9c6be; margin-top: .15rem; }
.board-empty { color: #a9c6be; font-size: .95rem; padding: .5rem; }

/* ---------- Deadline stub (signature) ---------- */
.stub { flex: 0 0 auto; width: 64px; text-align: center; border-radius: 10px; padding: .45rem 0 .4rem; position: relative; font-family: var(--font-display); line-height: 1; }
.stub .n { display: block; font-size: 1.55rem; font-weight: 750; letter-spacing: -.03em; }
.stub .u { display: block; font-family: var(--font-body); font-size: .62rem; font-weight: 700; letter-spacing: .04em; margin-top: .25rem; }
.stub::after { content: ""; position: absolute; right: -1px; top: 8px; bottom: 8px; border-right: 2px dashed currentColor; opacity: .25; }
.stub.dl-urgent { background: var(--urgent); color: #fff; }
.stub.dl-soon { background: var(--marigold); color: #2b1c02; }
.stub.dl-later { background: var(--pine-wash); color: var(--pine); }
.stub.dl-none { background: var(--paper); color: var(--muted); border: 1px solid var(--line); }
.stub.dl-none .n { font-size: 1.2rem; }
.stub.dl-closed { background: #eceeed; color: #7a8783; }
.hero .stub.dl-later { background: rgba(255,255,255,.12); color: #fff; }
.hero .stub.dl-none { background: rgba(255,255,255,.06); color: #cfe0db; border-color: rgba(255,255,255,.15); }

/* ---------- Sections ---------- */
.section { padding: clamp(2.2rem, 5vw, 3.8rem) 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.3rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: .3rem 0 0; color: var(--muted); }
.link-more { font-weight: 600; text-decoration: none; white-space: nowrap; }

/* ---------- Opportunity list rows ---------- */
.opp-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.opp-row { display: flex; gap: 1rem; padding: 1rem 1.1rem; align-items: flex-start; position: relative; }
.opp-row + .opp-row { border-top: 1px solid var(--line); }
.opp-row:hover { background: #fafcfb; }
.opp-row .body { flex: 1 1 auto; min-width: 0; }
.opp-row .title { font-family: var(--font-display); font-weight: 650; font-size: 1.08rem; color: var(--text); text-decoration: none; line-height: 1.28; letter-spacing: -.01em; }
.opp-row .title::after { content: ""; position: absolute; inset: 0; }
.opp-row .title:hover { color: var(--pine-2); }
.opp-row .facts { display: flex; flex-wrap: wrap; gap: .25rem .9rem; margin-top: .35rem; color: var(--muted); font-size: .86rem; }
.opp-row .facts i { margin-right: .25rem; }
.opp-row .summary { font-size: .92rem; color: #3c4a46; margin: .4rem 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.opp-row .side { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: .45rem; position: relative; z-index: 2; }
.type-tag { display: inline-flex; align-items: center; gap: .3rem; font-size: .76rem; font-weight: 700; color: var(--pine-2); background: var(--pine-wash); padding: .18rem .55rem; border-radius: 999px; white-space: nowrap; }
.fund-tag { font-size: .76rem; font-weight: 600; color: var(--ok); }
.save-btn { position: relative; z-index: 2; border: 1px solid var(--line-2); background: #fff; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--pine); }
.save-btn:hover { border-color: var(--pine); }
.save-btn.saved { background: var(--pine); color: #fff; border-color: var(--pine); }
.save-btn.locked { color: var(--muted); }
.empty-state { text-align: center; padding: 3rem 1.2rem; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.empty-state i { font-size: 2rem; color: var(--pine-3); }
.empty-state h3 { margin: .7rem 0 .4rem; }
.empty-state p { margin: 0 auto 1rem; color: var(--muted); }

/* ---------- Type strip ---------- */
.type-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.type-strip a { padding: 1.2rem 1.2rem 1.1rem; text-decoration: none; color: var(--text); display: block; }
.type-strip a + a { border-left: 1px solid var(--line); }
.type-strip a:hover { background: var(--pine-wash); }
.type-strip i { font-size: 1.35rem; color: var(--pine-3); }
.type-strip .n { font-family: var(--font-display); font-size: 1.9rem; font-weight: 750; color: var(--pine); line-height: 1; margin-top: .6rem; letter-spacing: -.03em; }
.type-strip .l { font-weight: 600; font-size: .95rem; margin-top: .25rem; }
@media (max-width: 767.98px) {
  .type-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .type-strip a:nth-child(3) { border-left: 0; }
  .type-strip a:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- How it works ---------- */
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; counter-reset: step; }
.how li { list-style: none; position: relative; padding-top: 3rem; }
.how li::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--pine); color: #fff; font-family: var(--font-display); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.how h3 { margin-bottom: .4rem; }
.how p { color: var(--muted); margin: 0; }
@media (max-width: 767.98px) { .how { grid-template-columns: 1fr; gap: 1.4rem; } }

/* Match preview (home) */
.match-demo { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.3rem; box-shadow: var(--shadow); }
.match-demo .head { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; }
.reasons { list-style: none; padding: 0; margin: .9rem 0 0; }
.reasons li { display: flex; gap: .55rem; align-items: flex-start; padding: .32rem 0; font-size: .93rem; }
.reasons li i { flex: 0 0 auto; margin-top: .15rem; }
.reasons .r-pass i { color: var(--ok); }
.reasons .r-fail i { color: var(--not); }
.reasons .r-unknown i { color: var(--check); }
.reasons a { font-weight: 600; }

/* ---------- Eligibility labels ---------- */
.lbl { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; font-size: .8rem; padding: .25rem .65rem; border-radius: 999px; white-space: nowrap; }
.lbl-eligible { background: var(--ok-wash); color: var(--ok); }
.lbl-likely { background: var(--likely-wash); color: var(--likely); }
.lbl-check { background: var(--check-wash); color: var(--check); }
.lbl-not { background: var(--not-wash); color: var(--not); }
.fit { font-size: .8rem; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: .35rem; }
.fit .bars { display: inline-flex; gap: 2px; }
.fit .bars span { width: 5px; height: 12px; border-radius: 2px; background: var(--line-2); }
.fit .bars span.on { background: var(--pine-3); }

/* ---------- Plans ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; display: flex; flex-direction: column; }
.plan h3 { font-size: 1.25rem; margin: 0; }
.plan .price { font-family: var(--font-display); font-size: 2.3rem; font-weight: 750; color: var(--pine); letter-spacing: -.03em; margin: .7rem 0 .1rem; line-height: 1; }
.plan .price small { font-family: var(--font-body); font-size: .9rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .yearly { font-size: .85rem; color: var(--muted); min-height: 1.3em; }
.plan ul { list-style: none; padding: 0; margin: 1.1rem 0 1.3rem; flex: 1; }
.plan li { display: flex; gap: .55rem; padding: .3rem 0; font-size: .94rem; }
.plan li i { color: var(--ok); margin-top: .12rem; }
.plan li.no { color: var(--muted); }
.plan li.no i { color: var(--line-2); }
.plan.featured { border: 2px solid var(--pine); box-shadow: var(--shadow); }
.plan .ribbon { align-self: flex-start; font-size: .75rem; font-weight: 700; background: var(--marigold); color: #2b1c02; padding: .2rem .6rem; border-radius: 999px; margin-bottom: .6rem; }
.period-toggle { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .25rem; }
.period-toggle input { display: none; }
.period-toggle label { padding: .4rem 1rem; border-radius: 999px; font-weight: 600; cursor: pointer; font-size: .92rem; color: var(--muted); }
.period-toggle input:checked + label { background: var(--pine); color: #fff; }
@media (max-width: 991.98px) { .plan-grid { grid-template-columns: 1fr; } }

/* ---------- Panels (user area) ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.3rem; }
.panel + .panel { margin-top: 1.1rem; }
.panel-title { font-size: 1.05rem; margin: 0 0 .9rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.panel-title a { font-family: var(--font-body); font-size: .85rem; font-weight: 600; text-decoration: none; }
.page-head { padding: 1.8rem 0 1.2rem; }
.page-head h1 { margin-bottom: .3rem; }
.page-head p { color: var(--muted); margin: 0; }
.user-tabs { display: flex; gap: .25rem; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 1.4rem; scrollbar-width: none; }
.user-tabs a { padding: .65rem .9rem; text-decoration: none; color: var(--muted); font-weight: 600; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: .95rem; }
.user-tabs a:hover { color: var(--pine); }
.user-tabs a.active { color: var(--pine); border-bottom-color: var(--marigold); }
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stat-row > div { background: var(--surface); padding: 1rem 1.1rem; }
.stat-row .v { font-family: var(--font-display); font-size: 1.7rem; font-weight: 750; color: var(--pine); line-height: 1.1; letter-spacing: -.02em; }
.stat-row .k { font-size: .85rem; color: var(--muted); }
@media (max-width: 767.98px) { .stat-row { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.meter { height: 8px; background: var(--pine-wash); border-radius: 999px; overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--pine-3); border-radius: 999px; }
.meter.warn > span { background: var(--marigold); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.2rem; margin: 0; font-size: .95rem; }
.kv dt { color: var(--muted); font-weight: 500; }
.kv dd { margin: 0; font-weight: 600; }
.notice-band { background: var(--marigold-wash); border: 1px solid #f2d6a5; border-radius: var(--r-md); padding: .9rem 1rem; display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }
.notice-band i { color: var(--marigold-ink); font-size: 1.2rem; }
.notice-band .grow { flex: 1 1 260px; }
.locked-row { filter: blur(3px); user-select: none; pointer-events: none; }
.lock-overlay { position: relative; }
.lock-overlay .cta { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; background: linear-gradient(180deg, rgba(243,246,244,.3), rgba(243,246,244,.95) 45%); padding: 1.2rem; z-index: 3; }

/* Matches */
.label-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.label-tabs a { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--text); font-weight: 600; font-size: .92rem; }
.label-tabs a .c { font-size: .8rem; background: var(--paper); border-radius: 999px; padding: 0 .45rem; color: var(--muted); }
.label-tabs a.active { background: var(--pine); border-color: var(--pine); color: #fff; }
.label-tabs a.active .c { background: rgba(255,255,255,.18); color: #fff; }
.match-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1rem 1.1rem; display: flex; gap: 1rem; }
.match-card + .match-card { margin-top: .75rem; }
.match-card .body { flex: 1; min-width: 0; }
.match-card .title { font-family: var(--font-display); font-weight: 650; font-size: 1.06rem; text-decoration: none; color: var(--text); line-height: 1.3; }
.match-card .title:hover { color: var(--pine-2); }
.match-card details summary { cursor: pointer; font-weight: 600; color: var(--pine-2); font-size: .9rem; margin-top: .5rem; list-style: none; }
.match-card details summary::-webkit-details-marker { display: none; }
.match-card details summary::before { content: "\F282"; font-family: "bootstrap-icons"; display: inline-block; margin-right: .35rem; transition: transform .15s ease; font-size: .75rem; }
.match-card details[open] summary::before { transform: rotate(180deg); }

/* Profile */
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
@media (max-width: 767.98px) { .profile-grid { grid-template-columns: 1fr; } }
.edu-item, .exp-item { border: 1px solid var(--line); border-radius: var(--r-md); padding: 1rem; position: relative; background: #fbfcfc; }
.edu-item + .edu-item, .exp-item + .exp-item { margin-top: .8rem; }
.remove-item { position: absolute; top: .5rem; right: .5rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; background: var(--pine-wash); color: var(--pine); border-radius: 999px; padding: .25rem .4rem .25rem .7rem; font-size: .87rem; font-weight: 600; }
.chip button { border: 0; background: transparent; color: var(--pine-3); padding: 0 .2rem; line-height: 1; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.compare label { border: 1px solid var(--line); border-radius: var(--r-sm); padding: .6rem .7rem; display: flex; gap: .5rem; cursor: pointer; font-size: .92rem; }
.compare input:checked + span { font-weight: 700; color: var(--pine); }

/* Upload */
.dropzone { border: 2px dashed var(--line-2); border-radius: var(--r-lg); padding: 2rem 1rem; text-align: center; background: #fbfcfc; cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.drag { border-color: var(--pine-3); background: var(--pine-wash); }
.dropzone i { font-size: 2.2rem; color: var(--pine-3); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone .fname { font-weight: 700; color: var(--pine); margin-top: .5rem; }
.processing { display: none; align-items: center; gap: .7rem; color: var(--pine); font-weight: 600; margin-top: 1rem; }
.processing.on { display: flex; }

/* ---------- Opportunity detail ---------- */
.detail-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.detail-head .container { padding-top: 1.8rem; padding-bottom: 1.8rem; }
.crumbs { font-size: .87rem; color: var(--muted); margin-bottom: .8rem; }
.crumbs a { color: var(--muted); }
.detail-title { font-size: clamp(1.6rem, 1.15rem + 2vw, 2.4rem); max-width: 26ch; }
.countdown { display: flex; align-items: center; gap: .9rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: .9rem 1rem; }
.countdown .stub { width: 76px; }
.countdown .stub .n { font-size: 1.9rem; }
.facts-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.facts-card dl { margin: 0; }
.facts-card .row-f { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 1.1rem; font-size: .94rem; }
.facts-card .row-f + .row-f { border-top: 1px solid var(--line); }
.facts-card dt { color: var(--muted); font-weight: 500; }
.facts-card dd { margin: 0; font-weight: 600; text-align: right; }
.closed-banner { background: #eceeed; border-radius: var(--r-md); padding: .8rem 1rem; font-weight: 600; color: #4b5753; }
.apply-bar { display: none; }
@media (max-width: 767.98px) {
  .apply-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1020; padding: .65rem 16px calc(.65rem + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); gap: .6rem; box-shadow: 0 -8px 24px -16px rgba(0,0,0,.3); }
  .apply-bar .btn { flex: 1; }
  body.has-apply-bar { padding-bottom: 76px; }
}

/* ---------- Filters ---------- */
.filter-bar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1rem; }
.filter-bar .form-label { font-size: .8rem; color: var(--muted); margin-bottom: .2rem; }
.filter-toggle { display: none; }
@media (max-width: 991.98px) {
  .filter-toggle { display: inline-flex; }
  .filter-bar.collapsed-mobile { display: none; }
}
.result-meta { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin: 1rem 0 .7rem; flex-wrap: wrap; color: var(--muted); font-size: .92rem; }

/* Pager */
.oh-pager { display: flex; justify-content: center; align-items: center; gap: 1rem; margin: 1.5rem 0; color: var(--muted); font-size: .92rem; }
.oh-pager a { font-weight: 600; text-decoration: none; border: 1px solid var(--line-2); background: #fff; padding: .45rem .9rem; border-radius: var(--r-sm); }
.oh-pager a:hover { border-color: var(--pine); }

/* ---------- Auth ---------- */
.auth-wrap { display: grid; grid-template-columns: 1.05fr 1fr; min-height: calc(100vh - 66px); }
.auth-side { background: var(--pine); color: #d7e7e2; padding: clamp(2rem, 5vw, 4rem); display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth-side::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(200deg, #000 10%, transparent 70%); }
.auth-side > * { position: relative; }
.auth-side h2 { color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); max-width: 16ch; }
.auth-side ul { list-style: none; padding: 0; margin: 1.3rem 0 0; }
.auth-side li { display: flex; gap: .6rem; padding: .35rem 0; }
.auth-side li i { color: var(--marigold); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 2rem 16px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 1.8rem; }
@media (max-width: 991.98px) { .auth-wrap { grid-template-columns: 1fr; min-height: 0; } .auth-side { display: none; } }

/* ---------- Footer ---------- */
.oh-footer { background: var(--pine); color: #a9c6be; margin-top: 3.5rem; padding: 2.8rem 0 1.6rem; font-size: .93rem; }
.oh-footer a { color: #d7e7e2; text-decoration: none; }
.oh-footer a:hover { color: #fff; text-decoration: underline; }
.oh-footer .brand { color: #fff; }
.oh-footer h3 { color: #fff; font-family: var(--font-body); font-size: .9rem; font-weight: 700; margin-bottom: .7rem; }
.oh-footer ul { list-style: none; padding: 0; margin: 0; }
.oh-footer li { padding: .2rem 0; }
.oh-footer .legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1.2rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; }

/* ---------- Prose pages ---------- */
.prose { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.3rem, 3vw, 2.4rem); }
.prose h2 { font-size: 1.3rem; margin-top: 1.8rem; }
.prose h2:first-child { margin-top: 0; }
.prose li { margin: .25rem 0; }
.prose table { width: 100%; font-size: .93rem; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: .5rem .4rem; vertical-align: top; }

/* ---------- Notifications ---------- */
.notif { display: flex; gap: .8rem; padding: .9rem 1rem; align-items: flex-start; }
.notif + .notif { border-top: 1px solid var(--line); }
.notif .ic { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; background: var(--pine-wash); color: var(--pine); display: flex; align-items: center; justify-content: center; }
.notif.unread { background: #fbfaf3; }
.notif.unread .ic { background: var(--marigold); color: #2b1c02; }
.notif .when { font-size: .8rem; color: var(--muted); }

/* Payment */
.bank-card { background: var(--pine); color: #fff; border-radius: var(--r-lg); padding: 1.4rem; position: relative; overflow: hidden; }
.bank-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; border: 28px solid rgba(255,255,255,.06); }
.bank-card .k { font-size: .8rem; color: #a9c6be; }
.bank-card .v { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; }
.bank-card .acct { font-size: 1.8rem; letter-spacing: .06em; }
.copy-btn { background: rgba(255,255,255,.12); border: 0; color: #fff; border-radius: var(--r-sm); padding: .2rem .55rem; font-size: .8rem; font-weight: 600; }
.copy-btn:hover { background: rgba(255,255,255,.22); }
.ref-box { background: var(--marigold-wash); border: 1px dashed #e2b866; border-radius: var(--r-md); padding: .8rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.ref-box code { font-size: 1.25rem; font-weight: 700; color: var(--marigold-ink); background: none; letter-spacing: .05em; }
.status-pill { display: inline-block; font-size: .78rem; font-weight: 700; padding: .18rem .6rem; border-radius: 999px; }
.st-pending { background: var(--paper); color: var(--muted); }
.st-submitted { background: var(--likely-wash); color: var(--likely); }
.st-approved { background: var(--ok-wash); color: var(--ok); }
.st-rejected { background: var(--not-wash); color: var(--not); }
.st-cancelled { background: #eceeed; color: #6b7774; }

/* Tables */
.table { --bs-table-bg: transparent; font-size: .93rem; }
.table > :not(caption) > * > * { padding: .7rem .75rem; border-bottom-color: var(--line); }
.table thead th { font-size: .8rem; font-weight: 700; color: var(--muted); background: #f8faf9; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media (max-width: 575.98px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .opp-row { padding: .9rem; gap: .8rem; }
  .stub { width: 56px; }
  .stub .n { font-size: 1.35rem; }
  .opp-row .side .type-tag { display: none; }
  .hero-search { flex-wrap: wrap; }
  .hero-search .form-select { max-width: none; border-left: 0; border-top: 1px solid var(--line); flex: 1; }
  .hero-search .btn { flex: 1 0 100%; }
}

/* Layout fixes after visual review */
.hero-search .btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; }
.match-card .stub, .opp-row .stub, .board-row .stub { align-self: flex-start; }
.oh-header .navbar > .container { flex-wrap: nowrap; }
.brand span { white-space: nowrap; }
@media (max-width: 380px) { .brand { font-size: 1.05rem; } .brand-mark { width: 26px; height: 26px; flex-basis: 26px; } }
@media (max-width: 991.98px) { .oh-header .navbar > .container { flex-wrap: wrap; } .oh-header .navbar-collapse { order: 4; flex-basis: 100%; } }
.field-flash { animation: flashField 1.6s ease 1; border-radius: var(--r-sm); }
@keyframes flashField { 0%, 60% { background: var(--marigold-wash); } 100% { background: transparent; } }
