/* TitanX Careers and TitanX Tenders: the marketplace pieces on top of base.css.
   Lists are rows (who, what, where, when), never photo grids; the business
   behind every item is always named and its mark shown. */
main { max-width: 68rem; }
.brand .word { display: flex; flex-direction: column; line-height: 1.1; }
.brand .word small { font-weight: 500; font-size: .75rem; color: var(--ink-2); letter-spacing: 0; }
.nav.main { margin-left: auto; }
.wrap { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.tag { display: inline-flex; align-items: center; font-size: .8rem; padding: .15rem .6rem; border-radius: 999px; color: var(--ink-2); background: var(--bg); white-space: nowrap; }
.verified { display: inline-flex; align-items: center; gap: .2rem; font-size: .8rem; font-weight: 600; color: var(--ok); white-space: nowrap; }
.verified svg { width: 14px; height: 14px; flex: none; }

/* Home */
.lead { background: var(--surface); border-radius: 1.5rem; padding: 2rem 1.25rem; margin-bottom: 2.5rem; box-shadow: var(--shadow); }
.lead h1 { font-size: 2rem; margin-bottom: .5rem; letter-spacing: -.03em; }
.lead p { color: var(--ink-2); max-width: 40rem; font-size: 1.05rem; }
.finder { display: grid; gap: .6rem; margin-top: 1rem; }
@media (min-width: 720px) { .lead { padding: 3rem 2.75rem; } .lead h1 { font-size: 3rem; } .finder { grid-template-columns: 2fr 1.2fr auto; align-items: end; } }
.finder .field { margin: 0; }
.stat { color: var(--ink-2); font-size: .95rem; margin: .9rem 0 0; }
.stat b { color: var(--ink); font-variant-numeric: tabular-nums; }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: 1.75rem 0 .75rem; }
.sec-h h2 { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.chip .n { margin-left: .4rem; color: var(--ink-2); font-size: .85rem; font-variant-numeric: tabular-nums; }
.chip[aria-current] .n { color: inherit; opacity: .75; }
.cta { display: grid; gap: .75rem; background: var(--surface); border-radius: var(--r-lg); padding: 1.5rem; margin-top: 2.5rem; box-shadow: var(--shadow); }
.cta h2 { margin: 0; }
.cta p { margin: 0; color: var(--ink-2); }
@media (min-width: 720px) { .cta { grid-template-columns: 1fr auto; align-items: center; } }

/* Rows */
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.row { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: .4rem .9rem; background: var(--surface); border-radius: var(--r-lg); padding: 1rem 1.15rem; box-shadow: var(--shadow); transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.row:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); }
@media (prefers-color-scheme: dark) { .row, .lead, .cta, .filters { box-shadow: none; border: 1px solid var(--line); } .row:hover { border-color: var(--ink-2); } }
.row h3 { margin: 0 0 .1rem; font-size: 1.02rem; }
.row h3 a { color: var(--ink); text-decoration: none; }
.row h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-lg); }
.row h3 a:hover { text-decoration: none; }
.row h3 a:focus-visible { outline: none; }
.row:has(h3 a:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.row .who { color: var(--ink-2); font-size: .9rem; display: flex; flex-wrap: wrap; gap: .1rem .6rem; align-items: center; }
.row .meta { grid-column: 2; display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .25rem; }
.row .when { grid-column: 2; font-size: .85rem; color: var(--ink-2); }
@media (min-width: 720px) { .row { grid-template-columns: 44px 1fr auto; } .row .meta { grid-column: 2; } .row .when { grid-column: 3; grid-row: 1 / span 2; text-align: right; align-self: center; } }
.bmark { width: 44px; height: 44px; border-radius: 11px; background: var(--brand-soft); color: var(--brand-strong); display: grid; place-items: center; font-weight: 700; overflow: hidden; flex: none; }
.bmark img { width: 100%; height: 100%; object-fit: cover; }
.bmark.lg { width: 64px; height: 64px; border-radius: 14px; font-size: 1.4rem; }
.soon { color: var(--warn); font-weight: 600; }

/* List page with filters */
.listing { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .listing { grid-template-columns: 16rem 1fr; align-items: start; } .listing > aside { position: sticky; top: 1rem; } }
.filters { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.filters summary { cursor: pointer; padding: .75rem 1rem; min-height: 44px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.filters summary::-webkit-details-marker { display: none; }
.filters summary::after { content: "+"; font-size: 1.2rem; color: var(--ink-2); }
.filters[open] summary::after { content: "\2212"; }
.filters form { padding: 0 1rem 1rem; }
@media (min-width: 900px) { .filters summary { display: none; } .filters form { padding: 1rem; } }
.active { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .75rem; }
.active a { font-size: .85rem; padding: .3rem .8rem; min-height: 36px; display: inline-flex; align-items: center; gap: .3rem; border-radius: 99px; background: var(--brand-soft); color: var(--brand-strong); text-decoration: none; }
.count { color: var(--ink-2); margin: 0 0 .75rem; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin: 1.25rem 0 0; }
.pager span { color: var(--ink-2); font-size: .9rem; }

/* Detail */
.crumbs { font-size: .9rem; margin: 0 0 .75rem; color: var(--ink-2); }
.crumbs a { color: var(--ink-2); }
.detail { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .detail { grid-template-columns: 1fr 20rem; align-items: start; } .detail > aside { position: sticky; top: 1rem; } }
.detail h1 { font-size: 1.75rem; }
.prose { max-width: 42rem; }
.prose h2 { margin-top: 1.5rem; }
.facts-dl { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; margin: 0 0 1rem; font-size: .95rem; }
.facts-dl dt { color: var(--ink-2); }
.facts-dl dd { margin: 0; font-weight: 600; }
.biz { display: grid; gap: .6rem; }
.biz .head { display: flex; gap: .75rem; align-items: center; }
.biz .head h2, .biz .head h3 { margin: 0; font-size: 1.05rem; }
.closes { border-radius: var(--r-md); padding: .85rem 1rem; background: var(--brand-soft); color: var(--brand-strong); margin: 0 0 1rem; }
.closes b { display: block; font-size: 1.05rem; }
.closes.urgent { background: var(--warn-soft); color: var(--warn); }
.closes.over { background: var(--bad-soft); color: var(--bad); }
.docs { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .4rem; }
.docs a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem 1rem; min-height: 44px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow); }
.docs a span { color: var(--ink-2); font-size: .85rem; white-space: nowrap; }
.sealed { display: flex; gap: .5rem; align-items: flex-start; font-size: .9rem; color: var(--ink-2); }
.sealed svg { width: 18px; height: 18px; flex: none; margin-top: .15rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; }
.check input { width: 1.25rem; height: 1.25rem; min-height: 0; margin-top: .15rem; flex: none; accent-color: var(--brand); }
.done { max-width: 36rem; margin: 2rem auto; text-align: center; }
.done .tick { width: 56px; height: 56px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; margin: 0 auto 1rem; }
.done .tick svg { width: 28px; height: 28px; }
.ref { font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.1rem; font-weight: 700; background: var(--surface); border-radius: var(--r-sm); padding: .45rem .9rem; display: inline-block; box-shadow: var(--shadow); }
.foot .links { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
/* Spacing helpers (the CSP allows no inline styles). */
.gap-b { margin-bottom: 1rem; } .gap-t { margin-top: .75rem; } .center { justify-content: center; } .flush { margin: 0; }
/* Design pass r2: the closing time leads on a phone; tidy business card; one control height. */
.mobile-only { display: block; }
@media (min-width: 900px) { .mobile-only { display: none; } }
.biz p { margin: 0; }
.finder input, .finder select { height: 46px; }
.desktop-only { display: none; }
@media (min-width: 900px) { .desktop-only { display: block; } }
/* Tender questions and answers */
.qa { margin: 0 0 1rem; display: grid; gap: .75rem; }
.qa dt { font-weight: 600; }
.qa dd { margin: 0; padding: .75rem 1rem; background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow); }
.qa dd p { margin-bottom: .35rem; }
.ask summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; color: var(--brand-strong); }
.ask[open] summary { margin-bottom: .5rem; }
