/* Bravexis Tenders — app-specific styles on top of base.css */
.hero { padding: 72px 0 88px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 75%); opacity: .55; pointer-events: none; }
.hero .wrap { position: relative; }
.lead { font-size: var(--f-md); color: var(--muted); max-width: 54ch; }
.lead-sm { font-size: 1.1rem; color: var(--muted); max-width: 62ch; }
.h-page { font-size: clamp(1.9rem, 4vw, 2.8rem); font-stretch: 108%; }
.h3 { font-size: var(--f-md); margin-top: var(--s4); }
.search { display: flex; gap: 8px; margin-top: 28px; max-width: 560px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.search input { border: 0; min-height: 48px; background: transparent; box-shadow: none !important; }
.search .btn { min-height: 48px; }

/* Departures-board style live list */
.board { background: #0B0B0C; color: #EDEBE6; border-radius: var(--r-lg); padding: 8px; box-shadow: 0 30px 60px -30px rgba(11,11,12,.6); border: 1px solid #222; }
[data-theme='dark'] .board { background: #141416; border-color: var(--line); }
.board-h { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; padding: 12px 14px 10px; color: #A3A19B; border-bottom: 1px dashed #2A2A2E; }
.board-row { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 16px; padding: 12px 14px; text-decoration: none; border-bottom: 1px solid #1F1F22; transition: background .15s ease; }
.board-row:hover { background: #1A1A1D; }
.b-title { font-weight: 600; font-size: .95rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.b-buyer { grid-row: 2; font-size: .78rem; color: #A3A19B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-days { grid-row: 1 / 3; grid-column: 2; align-self: center; background: #FF4D00; color: #0B0B0C; font-weight: 700; padding: 6px 10px; border-radius: 8px; min-width: 70px; text-align: center; font-size: .8rem; }
.board-more { display: block; padding: 14px; color: #EDEBE6; text-decoration: none; }
.board-more:hover { color: #FF4D00; }

.stats .num { margin-bottom: 8px; }
.step { display: inline-block; font-size: .8rem; color: var(--accent); margin-bottom: 16px; }
.price { font-size: 2.6rem; font-weight: 800; font-stretch: 115%; letter-spacing: -.03em; margin: 8px 0 4px; }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.card.pop { border: 2px solid var(--ink); position: relative; }
.card.pop .badge { position: absolute; top: -12px; left: 24px; }
.ticks { list-style: none; padding: 0; margin: 16px 0 24px; display: grid; gap: 10px; font-size: var(--f-sm); }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230B0B0C' stroke-width='2'/%3E%3C/svg%3E") center/12px no-repeat; }

.filters { position: sticky; top: 88px; }
@media (max-width: 960px) { .filters { position: static; } }
.alert-cta { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.alert-cta p { margin: 4px 0 12px; }
.hub { text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.hub:hover { border-color: var(--ink); transform: translateY(-2px); }

.detail { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.detail-side { position: sticky; top: 88px; }
@media (max-width: 960px) { .detail { grid-template-columns: 1fr; } .detail-side { position: static; order: -1; } }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 24px 0; background: var(--surface); }
.facts div { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.facts div:nth-child(odd) { border-right: 1px solid var(--line); }
.facts dt { font: 500 .7rem 'JB Mono', monospace; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }
.facts dd { margin: 0; font-weight: 550; word-break: break-word; }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr; } .facts div:nth-child(odd) { border-right: 0; } }
.docs { padding-left: 0; list-style: none; display: grid; gap: 8px; }
.docs a { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-decoration: none; font-weight: 550; }
.docs a::before { content: 'PDF'; font: 600 .65rem 'JB Mono', monospace; background: var(--accent-soft); color: var(--text); padding: 3px 6px; border-radius: 4px; margin-right: 10px; }
.docs a:hover { border-color: var(--ink); }
.num.urgent, .urgent { color: var(--bad); }

.narrow { max-width: 520px; margin: 0 auto; }
.hp { position: absolute; left: -5000px; }
.fs { border: 0; padding: 0; margin: 0 0 20px; }
.fs legend { font-weight: 600; font-size: var(--f-sm); margin-bottom: 8px; }
.list.compact .item { padding: 12px 16px; }
.list.compact .item h3 { font-size: .95rem; }
.prose-wrap { max-width: 900px; }

/* Simulator */
.sim-grid { display: grid; grid-template-columns: 360px 1fr; gap: 32px; align-items: start; }
@media (max-width: 960px) { .sim-grid { grid-template-columns: 1fr; } }
.sim-out .num { font-size: clamp(1.4rem, 2.4vw, 1.9rem); word-break: break-word; }
.sim-out .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sim-out .card { padding: 18px; }
@media (max-width: 640px) { .sim-out .grid { grid-template-columns: 1fr; } }
.wide .prose-wrap { max-width: none; }
.range-row { display: grid; grid-template-columns: 1fr 90px; gap: 12px; align-items: center; }
.range-row input[type=range] { padding: 0; min-height: 0; accent-color: var(--accent); }
.range-row output { font: 600 .9rem 'JB Mono', monospace; text-align: right; }
canvas.chart { width: 100%; height: 280px; display: block; }
