/* Páginas públicas geradas pela API (/licitacoes, /guia). Usa os tokens e o topo/rodapé de landing.css. */

.site main { background: #fff; }

/* Trilha */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 18px; font-size: .84rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); text-decoration: underline; }
.crumbs__sep { color: var(--line-2); }
.crumbs [aria-current] { color: var(--ink-2); font-weight: 600; }

/* Cabeçalho da página */
.pagehead { padding-top: 22px; padding-bottom: 36px; }
.pagehead h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 800; letter-spacing: -0.035em; max-width: 24ch; text-wrap: balance; }
.pagehead__lead { margin-top: 14px; max-width: 68ch; font-size: 1.06rem; color: var(--ink-2); line-height: 1.65; }
.pagehead__link { margin-top: 10px; font-weight: 600; }
.pagehead__link a { color: var(--blue); }
.pagehead__fine { margin-top: 12px; font-size: .8rem; color: var(--muted); max-width: 80ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* Números do recorte */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 26px 0 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--line); gap: 1px; }
.kpis div { background: var(--sky-2); padding: 16px 18px; display: flex; flex-direction: column-reverse; gap: 2px; }
.kpis dd { margin: 0; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; color: var(--navy); font-variant-numeric: tabular-nums; }
.kpis dt { font-size: .8rem; color: var(--muted); }

/* Duas colunas: lista e lateral */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; padding-bottom: 56px; }
.latest h2, .box h2, .chips h2, .guidelist h2 { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; }
.latest > h2 { padding-bottom: 12px; border-bottom: 2px solid var(--navy); }
.empty { margin-top: 16px; color: var(--muted); }
.latest__more { margin-top: 18px; color: var(--muted); font-size: .9rem; }

/* Licitação na lista */
.bids { list-style: none; margin: 0; padding: 0; }
.bid { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.bid__obj { font-weight: 600; color: var(--ink); line-height: 1.5; }
.bid__who { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .86rem; color: var(--ink-2); }
.bid__who span + span { position: relative; }
.bid__mod { color: var(--blue); font-weight: 600; }
.bid__facts { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 0; font-size: .86rem; }
.bid__facts div { display: flex; gap: 6px; }
.bid__facts dt { color: var(--muted); }
.bid__facts dd { margin: 0; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.bid__src { justify-self: start; font-size: .84rem; font-weight: 600; color: var(--blue); }

/* Lateral */
.side { display: grid; gap: 20px; }
.side--sticky { position: sticky; top: 84px; }
.box { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 18px 10px; background: #fff; }
.box h2 { font-size: 1rem; margin-bottom: 8px; }
.box--cta { background: var(--navy); border-color: var(--navy); color: #C4D2E6; padding-bottom: 18px; display: grid; gap: 14px; }
.box--cta strong { color: #fff; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.box__sub { color: #C4D2E6; font-size: .86rem; text-align: center; }
.box__sub:hover { color: #fff; }
.counts { list-style: none; margin: 0; padding: 0; }
.counts li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.counts li:first-child { border-top: 0; }
.counts a { color: var(--ink); font-weight: 600; text-decoration: none; }
.counts a:hover { color: var(--blue); text-decoration: underline; }
.counts li > span:last-child { color: var(--ink-2); font-variant-numeric: tabular-nums; font-weight: 600; }
.counts__name { min-width: 0; color: var(--ink); }
.counts__name small { display: block; color: var(--muted); font-size: .78rem; }
.plain { list-style: none; margin: 0; padding: 0 0 8px; display: grid; gap: 8px; }
.plain a { color: var(--blue); font-weight: 600; font-size: .92rem; }

/* Outros estados */
.chips { padding-bottom: 48px; }
.chips__list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chips__list a { padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: .86rem; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.chips__list a:hover { border-color: var(--blue); color: var(--blue); }

/* Lista de guias */
.guidelist { padding-bottom: 64px; }
.guidelist ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 32px; }
.guidelist li { border-top: 1px solid var(--line); }
.guidelist a { display: grid; gap: 4px; padding: 16px 0; text-decoration: none; }
.guidelist strong { color: var(--navy); font-size: 1rem; }
.guidelist a:hover strong { color: var(--blue); text-decoration: underline; }
.guidelist span { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.guidelist--strip { border-top: 1px solid var(--line); padding-top: 40px; }

.band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 64px; padding-top: 22px; padding-bottom: 22px; background: var(--sky-2); border-radius: var(--r-lg); }
.band strong { color: var(--navy); font-size: 1.3rem; font-variant-numeric: tabular-nums; }

/* Guia */
.article { padding-bottom: 64px; }
.article__head { padding: 22px 0 30px; max-width: 760px; }
.article__head h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 800; letter-spacing: -0.035em; text-wrap: balance; }
.article__lead { margin-top: 14px; font-size: 1.12rem; color: var(--ink-2); line-height: 1.6; }
.article__meta { margin-top: 12px; font-size: .82rem; color: var(--muted); }
.article__grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.prose { max-width: 70ch; font-size: 1.04rem; line-height: 1.75; color: var(--ink); }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 2em; font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; }
.prose h2 + * { margin-top: .6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose a { color: var(--blue); font-weight: 600; }
.prose strong { color: var(--navy); }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.prose table { border-collapse: collapse; width: 100%; font-size: .94rem; line-height: 1.5; }
.prose th, .prose td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { background: var(--paper); color: var(--ink-2); font-size: .84rem; font-weight: 700; }
.prose tr:last-child td { border-bottom: 0; }
.model { border: 1px dashed var(--line-2); border-radius: var(--r); padding: 20px 22px; background: var(--paper); font-size: .96rem; }
.model > * + * { margin-top: .8em; }
.faq-inline { margin-top: 2.4em; }
.faq-inline details { border-bottom: 1px solid var(--line); }
.faq-inline summary { position: relative; padding: 16px 32px 16px 0; list-style: none; font-weight: 700; color: var(--navy); cursor: pointer; }
.faq-inline summary::-webkit-details-marker { display: none; }
.faq-inline summary::after { content: ""; position: absolute; right: 6px; top: 22px; width: 8px; height: 8px; border-right: 2px solid var(--subtle); border-bottom: 2px solid var(--subtle); transform: rotate(45deg); }
.faq-inline details[open] summary::after { transform: rotate(225deg); top: 26px; }
.faq-inline details p { padding: 0 20px 16px 0; color: var(--ink-2); }

/* Rodapé com os links do site */
.sitefoot { padding-top: 48px; }
.sitefoot__cols { display: grid; grid-template-columns: 2fr 1fr 1.2fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 28px; }
.sitefoot h2 { color: #fff; font-size: .92rem; font-weight: 700; letter-spacing: 0; margin-bottom: 12px; }
.sitefoot__links { display: grid; gap: 6px; }
.sitefoot__links--states { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 16px; }
.sitefoot__links a { color: #A9BAD3; text-decoration: none; font-size: .84rem; }
.sitefoot__links a:hover { color: #fff; text-decoration: underline; }

@media (max-width: 1000px) {
    .cols, .article__grid { grid-template-columns: minmax(0, 1fr); }
    .side--sticky { position: static; }
    .sitefoot__cols { grid-template-columns: 1fr 1fr; }
    .sitefoot__cols > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kpis dd { font-size: 1.3rem; }
    .sitefoot__cols { grid-template-columns: 1fr; }
    .sitefoot__links--states { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .band { padding-left: 16px; padding-right: 16px; }
}
