@font-face {
  font-family: "System Sans";
  src: local("Arial");
  font-display: swap;
}

:root {
  --ink: #171717;
  --paper: #f4f0e8;
  --white: #fffdf8;
  --orange: #ff7043;
  --orange-soft: #ffded2;
  --blue: #2b5672;
  --muted: #6d6a64;
  --line: #d8d2c8;
  --green: #1c9c66;
  --max: 1460px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "System Sans", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 20; padding: 10px 14px;
  background: var(--white); transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header, main > section, footer {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}
.site-header {
  min-height: 92px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.18); position: absolute; z-index: 4;
  left: 50%; transform: translateX(-50%); color: white;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; letter-spacing: -.04em; }
.brand-main { font-weight: 900; font-size: 26px; }
.brand-divider { width: 1px; height: 25px; background: currentColor; opacity: .4; }
.brand-product { font-size: 13px; letter-spacing: .16em; font-weight: 700; }
nav { display: flex; align-items: center; gap: 34px; font-size: 14px; }
nav a { text-decoration: none; opacity: .76; transition: opacity .2s; }
nav a:hover, nav a:focus-visible { opacity: 1; }
.nav-external { border: 1px solid rgba(255,255,255,.5); border-radius: 999px; padding: 9px 16px; }

.hero {
  width: 100%; max-width: none; min-height: 720px; margin: 0; padding: 160px max(24px, calc((100vw - var(--max)) / 2));
  color: white; background:
    radial-gradient(circle at 78% 26%, rgba(255,112,67,.75) 0, rgba(255,112,67,0) 26%),
    linear-gradient(125deg, #111 0%, #1e1b1a 57%, #6d2e20 100%);
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
}
.hero::before {
  content: ""; position: absolute; width: 470px; height: 470px; right: 8vw; top: 122px;
  border: 1px solid rgba(255,255,255,.28); border-radius: 50%;
}
.hero::after {
  content: ""; position: absolute; width: 1px; height: 460px; right: calc(8vw + 235px); top: 128px;
  background: linear-gradient(transparent, rgba(255,255,255,.52), transparent); transform: rotate(42deg);
}
.hero-kicker { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 700; position: relative; z-index: 1; }
.live-dot { display: inline-block; width: 8px; height: 8px; background: #58d99a; border-radius: 50%; margin-right: 8px; box-shadow: 0 0 0 5px rgba(88,217,154,.13); }
h1 { margin: 34px 0 74px; font-size: clamp(58px, 9.7vw, 148px); line-height: .83; letter-spacing: -.07em; max-width: 1240px; position: relative; z-index: 1; }
h1 em { color: var(--orange); font-style: normal; font-family: Georgia, serif; font-weight: 400; letter-spacing: -.06em; }
.hero-bottom { display: flex; align-items: end; justify-content: space-between; gap: 60px; position: relative; z-index: 1; }
.hero-bottom > p { max-width: 590px; margin: 0; font-size: clamp(18px, 2vw, 27px); line-height: 1.35; color: rgba(255,255,255,.76); }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(110px, 1fr)); border-top: 1px solid rgba(255,255,255,.25); min-width: 480px; }
.hero-stats div { padding: 18px 22px 0 0; }
.hero-stats strong { display: block; font-size: 37px; line-height: 1; }
.hero-stats span { display: block; margin-top: 8px; color: rgba(255,255,255,.55); font-size: 12px; text-transform: uppercase; letter-spacing: .09em; }

.opportunities { padding: 110px 0 120px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 38px; }
.eyebrow { margin: 0 0 12px; font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: var(--orange); }
h2 { margin: 0; font-size: clamp(40px, 5vw, 75px); line-height: .95; letter-spacing: -.055em; }
.updated { color: var(--muted); font-size: 14px; margin: 0 0 8px; }
.toolbar { display: grid; grid-template-columns: minmax(250px, 1fr) auto auto auto auto; gap: 10px; padding-block: 18px; border-block: 1px solid var(--line); }
.search-field, .select-field { min-height: 54px; display: flex; align-items: center; background: var(--white); border: 1px solid transparent; border-radius: 4px; }
.search-field:focus-within, .select-field:focus-within { border-color: var(--ink); }
.search-field > span { font-size: 25px; padding-left: 16px; transform: rotate(-12deg); }
.search-field input { width: 100%; border: 0; outline: 0; background: transparent; padding: 0 16px; }
.select-field { padding-left: 15px; gap: 6px; }
.select-field span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.select-field select { border: 0; outline: 0; padding: 0 32px 0 4px; background: transparent; cursor: pointer; }
.saved-filter { border: 1px solid var(--ink); border-radius: 4px; padding: 0 18px; background: transparent; cursor: pointer; }
.saved-filter[aria-pressed="true"] { background: var(--ink); color: white; }
.category-chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 20px 0; }
.chip { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 9px 15px; cursor: pointer; color: #4a4844; }
.chip.active { background: var(--orange); border-color: var(--orange); color: var(--ink); font-weight: 700; }
.result-count { margin: 10px 0 12px; color: var(--muted); font-size: 13px; }
.tender-list { border-top: 1px solid var(--ink); }
.tender-card { display: grid; grid-template-columns: 112px minmax(0, 1fr) 250px 42px; gap: 26px; padding: 34px 0; border-bottom: 1px solid var(--line); transition: background-color .2s; }
.tender-card:hover { background: rgba(255,255,255,.36); }
.score { width: 82px; height: 82px; border-radius: 50%; display: grid; place-content: center; text-align: center; position: relative; background: conic-gradient(var(--score-color) calc(var(--score) * 1%), #ded8ce 0); }
.score::before { content: ""; position: absolute; inset: 7px; background: var(--paper); border-radius: 50%; }
.score strong, .score span { position: relative; z-index: 1; }
.score strong { font-size: 25px; line-height: 1; }
.score span { font-size: 9px; margin-top: 4px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.card-main { min-width: 0; }
.card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.source-tag, .new-tag, .type-tag { font-size: 10px; line-height: 1; text-transform: uppercase; letter-spacing: .1em; padding: 6px 8px; border: 1px solid var(--line); border-radius: 2px; }
.new-tag { background: var(--orange-soft); border-color: transparent; }
.type-tag { background: #f4f1e8; border-color: transparent; }
.type-market-signal { background: #e7f3ed; color: #126445; }
.type-commercial-demand { background: #fff0e9; color: #9b3f1c; }
.card-main h3 { font-size: clamp(22px, 2.4vw, 33px); line-height: 1.05; letter-spacing: -.035em; margin: 0 0 9px; }
.buyer { font-weight: 700; color: var(--blue); margin: 0 0 13px; }
.summary { margin: 0; max-width: 850px; color: #5a5752; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.summary.expanded { display: block; max-height: 230px; overflow-y: auto; padding: 0 14px 12px 0; line-height: 1.58; scrollbar-color: var(--orange) #ded8ce; scrollbar-width: thin; }
.summary.expanded::-webkit-scrollbar { width: 7px; }
.summary.expanded::-webkit-scrollbar-track { background: #ded8ce; border-radius: 10px; }
.summary.expanded::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 10px; }
.summary-toggle { margin-top: 9px; padding: 3px 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--blue); font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.summary-toggle:hover { color: var(--orange); }
.summary-toggle:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
.match-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 18px; }
.match-tags span { font-size: 11px; padding: 6px 9px; background: #e6e0d6; border-radius: 2px; }
.reason { margin: 14px 0 0; font-size: 12px; color: var(--muted); }
.reason::before { content: "↳ "; color: var(--orange); }
.card-side { border-left: 1px solid var(--line); padding-left: 24px; display: flex; flex-direction: column; justify-content: space-between; }
.side-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 13px; border-bottom: 1px dotted var(--line); }
.side-row span { color: var(--muted); }
.side-row strong { text-align: right; }
.deadline-soon strong { color: #c84c25; }
.source-link { margin-top: 18px; font-weight: 800; font-size: 13px; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.save-button { width: 38px; height: 38px; border: 1px solid var(--line); background: transparent; border-radius: 50%; cursor: pointer; font-size: 20px; }
.save-button[aria-pressed="true"] { color: var(--orange); border-color: var(--orange); background: var(--orange-soft); }
.loading-card { height: 210px; border-bottom: 1px solid var(--line); background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.65) 50%, transparent 80%); background-size: 200% 100%; animation: loading 1.4s infinite; }
@keyframes loading { to { background-position: -200% 0; } }
.empty-state { padding: 80px 20px; text-align: center; border-bottom: 1px solid var(--line); }
.empty-state > span { font: 70px Georgia, serif; color: var(--orange); }
.empty-state h3 { font-size: 26px; margin: 8px 0; }
.empty-state p { color: var(--muted); }
.empty-state button { border: 0; background: var(--ink); color: white; padding: 12px 18px; cursor: pointer; }

.method { width: 100%; max-width: none; margin: 0; padding: 110px max(24px, calc((100vw - var(--max)) / 2)); background: var(--ink); color: white; display: grid; grid-template-columns: .9fr 1.1fr; gap: 8vw; }
.method-intro > p:last-child { max-width: 540px; margin-top: 34px; color: rgba(255,255,255,.57); font-size: 18px; }
.method-steps { list-style: none; padding: 0; margin: 0; }
.method-steps li { display: grid; grid-template-columns: 50px 1fr; gap: 22px; padding: 25px 0; border-top: 1px solid rgba(255,255,255,.17); }
.method-steps li:last-child { border-bottom: 1px solid rgba(255,255,255,.17); }
.method-steps > li > span { color: var(--orange); font: italic 17px Georgia, serif; }
.method-steps h3 { margin: 0 0 6px; font-size: 23px; }
.method-steps p { margin: 0; color: rgba(255,255,255,.56); }
footer { padding: 55px 0; display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 40px; align-items: center; }
footer p { margin: 0; color: var(--muted); font-size: 13px; }
footer > a { font-weight: 800; }

@media (max-width: 1180px) {
  .toolbar { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
  .saved-filter { min-height: 54px; }
}

@media (max-width: 980px) {
  .site-header { min-height: 74px; }
  nav a:not(.nav-external) { display: none; }
  .hero { min-height: 650px; padding-top: 130px; }
  .hero::before { width: 350px; height: 350px; right: -100px; }
  .hero-bottom { align-items: start; flex-direction: column; }
  .hero-stats { width: 100%; min-width: 0; }
  .toolbar { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
  .saved-filter { min-height: 54px; }
  .tender-card { grid-template-columns: 90px minmax(0, 1fr) 42px; }
  .card-side { grid-column: 2 / 3; border-left: 0; border-top: 1px solid var(--line); padding: 15px 0 0; }
  .method { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-header, main > section, footer { width: min(calc(100% - 30px), var(--max)); }
  .hero, .method { width: 100%; padding-inline: 15px; }
  .brand-main { font-size: 22px; }
  h1 { margin-bottom: 52px; font-size: clamp(54px, 17vw, 88px); }
  .hero { min-height: 690px; }
  .hero-bottom > p { font-size: 18px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .hero-stats div { padding-right: 8px; }
  .hero-stats strong { font-size: 29px; }
  .hero-stats span { font-size: 9px; }
  .opportunities { padding-block: 76px; }
  .section-heading { align-items: start; flex-direction: column; }
  .toolbar { grid-template-columns: 1fr; }
  .search-field { grid-column: auto; }
  .select-field, .saved-filter { width: 100%; }
  .select-field select { flex: 1; }
  .category-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 16px; }
  .chip { flex: 0 0 auto; }
  .tender-card { grid-template-columns: 64px minmax(0, 1fr) 38px; gap: 12px; padding: 25px 0; }
  .score { width: 58px; height: 58px; }
  .score::before { inset: 5px; }
  .score strong { font-size: 20px; }
  .score span { display: none; }
  .card-side { grid-column: 1 / -1; }
  .summary { -webkit-line-clamp: 4; }
  .method { padding-block: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
