/* ============================================================
   BidCrier Studio — "Public Notice" design system
   Parchment broadsheet · ink · oxide red · brass
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700;9..144,900&family=Public+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --ink: #1b2432;
  --ink-soft: #3d4657;
  --ink-faint: #5f677a;
  --paper: #f7f3ea;
  --paper-raise: #fffdf7;
  --paper-dim: #efe9da;
  --line: #d9d1bd;
  --line-strong: #b9ae92;
  --oxide: #b5402a;
  --oxide-deep: #8f2f1d;
  --brass: #8a6d1f;
  --green: #2e6b45;
  --amber: #8a5c00;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Public Sans', -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', Consolas, monospace;
  --measure: 62ch;
  --radius: 3px;
  --shadow: 0 1px 2px rgba(27,36,50,.08), 0 8px 28px -12px rgba(27,36,50,.22);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  /* faint paper grain */
  background-image:
    radial-gradient(rgba(27,36,50,.028) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,253,247,.6), transparent 240px);
  background-size: 5px 5px, 100% 100%;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--oxide); color: var(--paper-raise); }

/* ---------- type ---------- */
h1, h2, h3, .display { font-family: var(--serif); line-height: 1.12; letter-spacing: -0.012em; }
h1 { font-weight: 900; font-size: clamp(2.4rem, 5.4vw, 4.1rem); }
h2 { font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.35rem); }
h3 { font-weight: 600; font-size: 1.28rem; }
p  { max-width: var(--measure); }
a  { color: var(--oxide-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--oxide); }
strong { font-weight: 600; }

.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--oxide-deep);
  display: flex; align-items: center; gap: .7rem;
}
.eyebrow::before { content: ""; width: 2.2rem; height: 2px; background: var(--oxide); flex: none; }

.lede { font-size: 1.16rem; color: var(--ink-soft); }

.smallprint { font-size: .82rem; color: var(--ink-faint); max-width: 72ch; }

/* ---------- structure ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2.5rem); }

.topbar {
  border-bottom: 3px double var(--line-strong);
  background: var(--paper-raise);
}
.topbar .wrap {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-top: 1rem; padding-bottom: 1rem; gap: 1rem; flex-wrap: wrap;
}
.wordmark { font-family: var(--serif); font-weight: 900; font-size: 1.35rem; color: var(--ink); text-decoration: none; }
.wordmark .studio { color: var(--oxide); font-style: italic; font-weight: 600; }
.topbar nav { display: flex; gap: 1.4rem; font-size: .92rem; font-weight: 500; }
.topbar nav a { color: var(--ink-soft); text-decoration: none; }
.topbar nav a:hover { color: var(--oxide); }

.ticker {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .22em; text-transform: uppercase;
  text-align: center; color: var(--paper-raise); background: var(--ink);
  padding: .45rem 1rem;
}
.ticker b { color: #e8c477; font-weight: 500; }

section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
section + section { border-top: 1px solid var(--line); }

.rule-title {
  display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 1.2rem;
  margin-bottom: 2.2rem;
}
.rule-title .no {
  font-family: var(--mono); font-size: .8rem; color: var(--brass); font-weight: 600;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 600; font-size: 1rem;
  padding: .82rem 1.6rem; border-radius: var(--radius); text-decoration: none;
  border: 2px solid var(--ink); color: var(--ink); background: transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary { background: var(--oxide); border-color: var(--oxide); color: var(--paper-raise); }
.btn-primary:hover { background: var(--oxide-deep); border-color: var(--oxide-deep); color: var(--paper-raise); }
.btn-ink { background: var(--ink); color: var(--paper-raise); }
.btn-ink:hover { color: var(--paper-raise); }

/* ---------- notice card / panels ---------- */
.panel {
  background: var(--paper-raise); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.6rem;
}
.panel-rule { border-top: 4px solid var(--ink); }

.stamp {
  display: inline-block; font-family: var(--mono); font-size: .68rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--oxide-deep);
  border: 1.5px solid var(--oxide-deep); border-radius: 2px; padding: .22rem .55rem;
  transform: rotate(-1.2deg); background: rgba(181,64,42,.05);
}

.chip {
  display: inline-block; font-family: var(--mono); font-size: .66rem; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase; padding: .18rem .5rem; border-radius: 2px;
  white-space: nowrap;
}
.chip-green { background: #e4efe7; color: var(--green); border: 1px solid #bcd6c5; }
.chip-amber { background: #f5ecd8; color: var(--amber); border: 1px solid #e0cfa4; }
.chip-red   { background: #f6e2dd; color: var(--oxide-deep); border: 1px solid #e4b8ac; }
.chip-ink   { background: var(--paper-dim); color: var(--ink-soft); border: 1px solid var(--line-strong); }

/* ---------- tables (tender-schedule style) ---------- */
table.sched { width: 100%; border-collapse: collapse; font-size: .92rem; background: var(--paper-raise); }
table.sched caption {
  caption-side: top; text-align: left; font-family: var(--mono); font-size: .7rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); padding-bottom: .6rem;
}
table.sched th {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  text-align: left; color: var(--ink-faint); font-weight: 600;
  border-bottom: 2px solid var(--ink); padding: .55rem .75rem;
}
table.sched td { padding: .62rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.sched tr:last-child td { border-bottom: 2px solid var(--line-strong); }
table.sched td.num { font-family: var(--mono); font-size: .85rem; white-space: nowrap; }
.table-scroll { overflow-x: auto; }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.price-card { display: flex; flex-direction: column; gap: .55rem; position: relative; }
.price-card .tier { font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); }
.price-card .amount { font-family: var(--serif); font-weight: 900; font-size: 2.1rem; }
.price-card .amount small { font-family: var(--sans); font-weight: 500; font-size: .85rem; color: var(--ink-faint); }
.price-card ul { list-style: none; margin-top: .4rem; font-size: .9rem; color: var(--ink-soft); }
.price-card ul li { padding: .32rem 0 .32rem 1.3rem; position: relative; border-top: 1px dotted var(--line); }
.price-card ul li::before { content: "—"; position: absolute; left: 0; color: var(--brass); }
.price-card.featured { border: 2px solid var(--oxide); }
.price-card .btn { margin-top: auto; text-align: center; }

/* ---------- footer ---------- */
footer {
  border-top: 3px double var(--line-strong); background: var(--paper-dim);
  padding: 2.5rem 0 3rem; font-size: .88rem; color: var(--ink-soft);
}
footer .cols { display: flex; flex-wrap: wrap; gap: 2rem; }
footer .cols > div:first-child { flex: 2 1 260px; }
footer .cols > div:not(:first-child) { flex: 1 1 140px; }
footer h4 { font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: .7rem; }
footer ul { list-style: none; } footer ul li { padding: .18rem 0; }

/* ---------- animations ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .7s cubic-bezier(.2,.7,.3,1) both; }
.d1 { animation-delay: .08s; } .d2 { animation-delay: .18s; } .d3 { animation-delay: .3s; } .d4 { animation-delay: .44s; }
@media (prefers-reduced-motion: reduce) { .rise { animation: none; } }

/* ---------- sample-report pages ---------- */
.sample-banner {
  background: repeating-linear-gradient(-45deg, #f3e6c8, #f3e6c8 14px, #efe0bb 14px, #efe0bb 28px);
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--mono); font-size: .74rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: #6d5310;
  text-align: center; padding: .55rem 1rem;
}
.report { max-width: 900px; }
.report-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin-top: 1.6rem; }
.report-meta .cell { border-top: 2px solid var(--ink); padding-top: .5rem; }
.report-meta .k { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.report-meta .v { font-weight: 600; font-size: .95rem; margin-top: .15rem; }
.report h2 { font-size: 1.45rem; margin-top: 3rem; display: flex; align-items: baseline; gap: .8rem; }
.report h2 .no { font-family: var(--mono); font-size: .75rem; color: var(--brass); font-weight: 600; }
.report h2 + p, .report h2 + .table-scroll, .report h2 + .panel { margin-top: 1rem; }
.verdict {
  border: 2px solid var(--ink); border-radius: var(--radius); background: var(--paper-raise);
  padding: 1.4rem 1.6rem; margin-top: 1rem; box-shadow: var(--shadow);
}
.verdict .headline { font-family: var(--serif); font-weight: 900; font-size: 1.7rem; }
.gap-class { margin-top: .7rem; border-left: 4px solid var(--line-strong); background: var(--paper-raise); border-radius: var(--radius); padding: .85rem 1.1rem; font-size: .93rem; }
.gap-class .g-head { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; font-weight: 600; }
.gap-class p { color: var(--ink-soft); margin-top: .3rem; }

/* two-column split that collapses on small screens */
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.split-even { grid-template-columns: 1fr 1fr; }

@media (max-width: 860px) {
  .split, .split-even { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 760px) {
  footer .cols { grid-template-columns: 1fr; }
  .topbar nav { gap: 1rem; font-size: .85rem; flex-wrap: wrap; }
}
