/* Portal Oposiciones — styles for every server-rendered page (lib/site.mjs), started from concursos-pt's.
   Mobile first; light and dark. Blue palette so it reads as its own site. */
:root {
  --bg: #f3f4f6; --panel: #ffffff; --panel-2: #f7f8fa; --ink: #17201c; --ink-2: #3e4943; --muted: #6c7770;
  --line: #e1e5df; --accent: #1d4f91; --accent-ink: #ffffff; --accent-soft: #e3ecf8;
  --good: #1f7a4d; --good-soft: #e3f3ea; --warn: #a86400; --warn-soft: #fbefd9; --bad: #b42a2a; --bad-soft: #f9e4e4;
  --slate: #56616b; --slate-soft: #eceef1; --violet: #5b4bb7; --violet-soft: #ecebf9;
  --shadow: 0 1px 2px rgba(20, 30, 25, .05), 0 3px 12px rgba(20, 30, 25, .05); --radius: 14px;
  --pop-shadow: 0 10px 30px rgba(20, 30, 25, .14), 0 2px 6px rgba(20, 30, 25, .08);
  /* share icons: the networks' own colours, a shade lighter in dark mode so they read on the dark panel */
  --wa: #1a9e4f; --wa-soft: #e5f6ec; --fb: #1877f2; --in: #0a66c2;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111513; --panel: #1a1f1c; --panel-2: #1f2521; --ink: #e8ece9; --ink-2: #c3cbc6; --muted: #8c9790;
    --line: #2b322e; --accent: #7fb0ef; --accent-ink: #0b1626; --accent-soft: #18263a;
    --good: #5cc98f; --good-soft: #17291f; --warn: #e8a64a; --warn-soft: #2d2415; --bad: #ef7d7d; --bad-soft: #2f1a1a;
    --slate: #a9b0bb; --slate-soft: #252a2e; --violet: #a99cf2; --violet-soft: #25213d;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 3px 12px rgba(0, 0, 0, .25); color-scheme: dark;
    --pop-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 2px 6px rgba(0, 0, 0, .35);
    --wa: #4fd683; --wa-soft: #16301f; --fb: #5a9bf5; --in: #4b9be0;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15.5px/1.55 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
a { color: var(--accent); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.fine { font-size: 12.5px; color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* header */
.top { background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 56px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; min-width: 0; }
.brand .logo { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); }
.brand b { display: block; font-size: 16.5px; line-height: 1.15; white-space: nowrap; }
.brand b .tld { font-weight: 500; color: var(--muted); }
.brand small { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.2; white-space: nowrap; }
.top nav { display: flex; align-items: center; gap: 4px; font-size: 14px; }
.top nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; padding: 8px 10px; border-radius: 9px; white-space: nowrap; }
.top nav a:hover { background: var(--panel-2); }
.top nav a.btn { color: var(--accent-ink); }
/* icon + label nav items (Pesquisar, Favoritos with its red heart; Alertas as an icon only on phones) */
.top nav .nav-i { display: inline-flex; align-items: center; gap: 6px; }
.top nav .nav-i .ni { display: inline-flex; color: var(--muted); }
.top nav .nav-i .ni svg { width: 18px; height: 18px; }
.top nav .nav-i:hover .ni { color: var(--accent); }
.top nav .nav-fav .ni, .top nav .nav-fav:hover .ni { color: var(--bad); }
.top nav .nav-alert { display: none; }
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 15px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: inherit; font-weight: 600; font-size: 14.5px; text-decoration: none; cursor: pointer; min-height: 44px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.small { min-height: 36px; padding: 6px 12px; font-size: 13.5px; }
.btn:hover { filter: brightness(1.05); }

/* search box (home + header of lists) */
.search { display: flex; gap: 8px; margin: 14px 0 6px; }
.search input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 11px 14px; border-radius: 11px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); min-height: 46px; }
.search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.hero { padding: 22px 0 6px; }
.hero h1 { font-size: clamp(25px, 5.5vw, 38px); }
.crumbs { font-size: 13px; color: var(--muted); margin: 14px 0 4px; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.crumbs a { color: var(--muted); }
.crumbs .sep { opacity: .6; }
h1 { font-size: clamp(23px, 5vw, 32px); line-height: 1.18; margin: 6px 0 10px; letter-spacing: -.01em; }
/* the offer page's h1 names the entity on a second, smaller line */
h1 .h1-org { display: block; margin-top: 6px; font-size: .56em; font-weight: 600; line-height: 1.3; color: var(--ink-2); letter-spacing: 0; }
h2 { font-size: 19.5px; margin: 30px 0 10px; line-height: 1.25; }
h3 { line-height: 1.3; }
.lead { font-size: 16px; color: var(--ink-2); max-width: 800px; margin: 0 0 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 8px 0; padding: 0; list-style: none; }
.chips > li > a, .chips > span { display: inline-block; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13.5px; color: var(--ink-2); text-decoration: none; }
.chips a:hover { border-color: var(--accent); color: var(--accent); }
.chips .on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.empty { padding: 22px; text-align: center; color: var(--muted); background: var(--panel); border: 1px dashed var(--line); border-radius: var(--radius); }
.more { margin: 12px 0 0; font-weight: 600; }
.cta { margin: 22px 0; display: flex; flex-wrap: wrap; gap: 8px; }

/* link tiles: careers, places, entities */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.tiles.wide { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.tiles a { display: flex; flex-direction: column; gap: 1px; padding: 10px 13px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); height: 100%; }
.tiles a:hover { border-color: var(--accent); }
.tiles b { font-weight: 600; font-size: 14.5px; }
.tiles span { font-size: 12.5px; color: var(--muted); }

/* job list */
.jobs { display: grid; gap: 10px; grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none; }
.job { display: flex; flex-direction: column; gap: 5px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 15px; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; height: 100%; }
.job:hover { border-color: var(--accent); }
.job h3 { font-size: 16px; margin: 0; }
.job .detail { font-size: 13.5px; color: var(--accent); font-weight: 600; margin-top: -2px; }
.job .org { font-size: 13.5px; color: var(--ink-2); }
.job .org span { color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--ink-2); }
.meta .sal { font-weight: 700; color: var(--ink); }
.meta .est { font-weight: 600; color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag { display: inline-block; font-size: 11.5px; font-weight: 600; border-radius: 999px; padding: 2px 9px; background: var(--slate-soft); color: var(--slate); }
.tag.t-concurso { background: var(--accent-soft); color: var(--accent); }
.tag.t-mobilidade { background: var(--violet-soft); color: var(--violet); }
.tag.t-dirigente, .tag.t-cit { background: var(--warn-soft); color: var(--warn); }
.tag.open { background: var(--good-soft); color: var(--good); }
.tag.closed { background: var(--slate-soft); color: var(--slate); }
.ends { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); align-self: flex-start; }
.ends svg { flex: none; }
.ends.week { background: var(--warn-soft); color: var(--warn); }
.ends.soon { background: var(--bad-soft); color: var(--bad); }
.ends.over { background: var(--slate-soft); color: var(--slate); }

/* offer page */
.offer { display: grid; grid-template-columns: 1fr; gap: 16px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 16px; }
.panel h2 { margin: 0 0 8px; font-size: 17px; }
.panel.resumo { margin: 14px 0; max-width: 760px; } /* event hubs: "Requisitos em resumo" */
.panel.resumo .fine { margin: 8px 0 0; }
.summary { font-size: 16px; color: var(--ink-2); }
.statusline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 12px; }
.facts { width: 100%; border-collapse: collapse; }
.facts th, .facts td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }
.facts th { width: 38%; color: var(--muted); font-weight: 500; padding-right: 12px; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.apply { display: grid; gap: 8px; }
.apply .btn { width: 100%; }
/* the avisos' long texts, formatted by richText (lib/site.mjs): paragraphs and lists; long ones clipped until "Ler tudo" */
.longtext { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; overflow-wrap: anywhere; }
.longtext p { margin: 0 0 10px; }
.longtext ul, .longtext ol { display: grid; gap: 6px; margin: 2px 0 12px; padding-left: 22px; }
.longtext li { padding-left: 2px; }
.longtext li::marker { color: var(--accent); font-weight: 600; }
.longtext > :last-child { margin-bottom: 0; }
.longtext.clamp { max-height: 19em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent); }
.longtext.clamp.open { max-height: none; -webkit-mask-image: none; mask-image: none; }
.lt-more { margin: 8px 0 0; padding: 4px 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--accent); cursor: pointer; }
.lt-more:hover { text-decoration: underline; text-underline-offset: 2px; }
.closedbox { background: var(--slate-soft); color: var(--slate); border-radius: 12px; padding: 12px 14px; font-weight: 500; }
/* share (lib/share.mjs): "Partilhar ▾" (phone share sheet, or a menu) + a one-tap WhatsApp button */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.share .btn { gap: 7px; min-height: 38px; padding: 7px 14px; font-size: 14px; border-radius: 999px; }
.share .btn svg { width: 16px; height: 16px; flex: none; }
.share-more { position: relative; }
.share-more > summary { list-style: none; }
.share-more > summary::-webkit-details-marker { display: none; }
.share-main { color: var(--accent); border-color: var(--accent); background: var(--panel); }
.share-main .chev { width: 14px; height: 14px; margin-left: -2px; opacity: .8; transition: transform .15s; }
.share-more[open] > .share-main { background: var(--accent-soft); }
.share-more[open] > .share-main .chev { transform: rotate(180deg); }
.share-sheet .share-main .chev { display: none; } /* phones: the button opens the system share sheet, no menu */
.share-wa { background: var(--wa-soft); border-color: transparent; color: var(--ink); }
.share-wa svg, .share-menu .i-wa { color: var(--wa); }
.share-menu { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; min-width: 210px; max-width: calc(100vw - 32px);
  display: grid; gap: 2px; padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--pop-shadow); }
.share-menu a, .share-menu button { display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px 12px; border: 0; border-radius: 9px;
  background: none; color: var(--ink); font: inherit; font-size: 14.5px; font-weight: 500; text-align: left; text-decoration: none; cursor: pointer; }
.share-menu a:hover, .share-menu button:hover, .share-menu a:focus-visible, .share-menu button:focus-visible { background: var(--panel-2); outline: none; }
.share-menu svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.share-menu .i-fb { color: var(--fb); }
.share-menu .i-in { color: var(--in); }
.share-native { display: none !important; }
.can-share .share-native { display: flex !important; border-top: 1px solid var(--line) !important; border-radius: 0 0 9px 9px !important; margin-top: 2px; }
.sharebar { margin: 18px 0 6px; }
/* offer page: "♡ Guardar" (favourites) + the share pair, in one row */
.offer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.offer-actions .share { margin: 0; }
.fav-btn { gap: 7px; min-height: 38px; padding: 7px 14px; font-size: 14px; border-radius: 999px; }
.fav-btn svg { width: 16px; height: 16px; flex: none; color: var(--bad); transition: transform .15s; }
.fav-btn.on { background: var(--bad-soft); border-color: transparent; }
.fav-btn.on svg { fill: currentColor; transform: scale(1.08); }
.fav-see { font-size: 13.5px; font-weight: 600; }
/* /favoritos: the saved offers, each card with a "Remover" under it */
.fav-item { display: grid; gap: 6px; }
.fav-item form { justify-self: end; }
.favs-gone { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.favs-gone li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.acct-links { display: flex; flex-wrap: wrap; gap: 8px; }
.devlogin input { font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); color: var(--ink); min-height: 46px; }
.sharebar .fine { margin: 0 0 8px; }
/* closed-offer archive of an entity: one compact row per offer */
ul.archive { list-style: none; padding: 0; margin: 8px 0 18px; display: grid; gap: 2px; }
ul.archive li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
ul.archive li a { font-weight: 600; min-width: 0; }
.alertbox { background: var(--accent-soft); border: 1px solid transparent; border-radius: var(--radius); padding: 14px 16px; }
.alertbox p { margin: 0 0 10px; color: var(--ink); }
/* the alert sign-up on event hubs, distrito/concelho and entity pages (lib/site.mjs inlineAlertForm) */
.inline-alert { display: grid; gap: 10px; max-width: 640px; margin: 18px 0; scroll-margin-top: 84px; } /* clears the sticky header on "#alerta" */
.inline-alert p { margin: 0; }
.inline-alert p:first-child { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.inline-alert p:first-child svg { flex: none; color: var(--accent); }
.inline-alert .row { display: flex; flex-wrap: wrap; gap: 8px; }
.inline-alert .row input { flex: 1 1 160px; min-width: 0; width: auto; background: var(--panel); }
.inline-alert .row .btn { flex: none; min-height: 46px; }
ul.checks { list-style: none; margin: 8px 0 6px; padding: 0; display: grid; gap: 2px; }
ul.checks label { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; padding: 8px 6px; border-radius: 9px; cursor: pointer; font-size: 14.5px; color: var(--ink-2); }
ul.checks label:hover { background: var(--panel-2); }
ul.checks input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }
ul.checks label b { color: var(--ink); font-weight: 600; }
ul.checks input:checked + span, ul.checks input:checked + span b { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line); }
ul.study { margin: 6px 0; padding-left: 20px; font-size: 14.5px; color: var(--ink-2); display: grid; gap: 4px; }
.alertbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; background: var(--accent-soft); border-radius: 12px; padding: 10px 12px 10px 14px; margin: 4px 0 14px; font-size: 14.5px; color: var(--ink); }
.alertbar > span { display: inline-flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 220px; }
.alertbar svg { flex: none; color: var(--accent); }
.disclaimer { font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); margin-top: 26px; padding-top: 12px; max-width: 820px; }

/* forms (alerts, search filters) */
form.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 12px; max-width: 640px; }
form label { display: grid; gap: 5px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
form label.check { grid-template-columns: auto 1fr; align-items: start; gap: 10px; font-weight: 400; color: var(--ink-2); font-size: 14px; }
form label.check input { width: 20px; height: 20px; margin: 1px 0 0; }
form input[type=email], form input[type=text], form input[type=search], form select { font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); color: var(--ink); min-height: 46px; width: 100%; }
form textarea { font: inherit; font-size: 16px; line-height: 1.5; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); color: var(--ink); width: 100%; min-height: 150px; resize: vertical; }
form small { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.hp { position: absolute; left: -9999px; }
.signin { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 10px; max-width: 640px; }
.signin label.check { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 10px; font-size: 14px; color: var(--ink-2); }
.signin label.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }
.or { display: flex; align-items: center; gap: 12px; max-width: 640px; margin: 18px 0; color: var(--muted); font-size: 13.5px; }
/* the signed-out alert form: 1 what to receive, 2 how (Google at once, or email with confirmation) */
.alertform h2.step { display: flex; align-items: center; gap: 10px; margin: 2px 0 0; font-size: 17px; }
.alertform h2.step span { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 14px; }
.alertform h2.step ~ h2.step { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.alertform .or { margin: 4px 0; }
.signin-in { display: grid; gap: 10px; }
.signin-lead { margin: 0; font-size: 14px; color: var(--ink-2); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.filters { display: grid; grid-template-columns: 1fr; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 10px 0 16px; }
.filters .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.filters label { font-size: 12.5px; }
.pager { display: flex; justify-content: space-between; gap: 8px; margin: 16px 0; }
/* paged offer lists (lib/site.mjs pagedList): the pager hides the other pages' cards; at either end the button
   keeps its place but disappears, like the /pesquisa pager's empty slot */
.pager[hidden], .jobs > li[hidden] { display: none; }
.pager { align-items: center; }
.pager .btn[disabled] { visibility: hidden; }
/* career pages' salary strip above the cards (lib/site.mjs payStrip): head | entry — bar — top | links in one row wide,
   stacked on phones */
.pay-strip { display: grid; grid-template-columns: 1fr; gap: 8px 18px; padding: 12px 14px; margin: 0 0 14px; background: var(--accent-soft); border-radius: var(--radius); }
@media (min-width: 760px) { .pay-strip { grid-template-columns: auto 1fr auto; align-items: center; } }
.pay-strip .ps-head { display: flex; flex-direction: column; gap: 1px; }
.pay-strip .ps-head b { font-size: 14px; color: var(--ink); }
.pay-strip .ps-head span, .pay-strip .ps-end span { font-size: 12px; color: var(--muted); }
.pay-strip .ps-range { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.pay-strip .ps-range .range { height: 6px; min-width: 40px; }
.pay-strip .ps-end { display: flex; flex-direction: column; }
.pay-strip .ps-end.r { text-align: right; }
.pay-strip .ps-end b { font-size: 20px; line-height: 1.15; color: var(--ink); font-variant-numeric: tabular-nums; }
.pay-strip .ps-links { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13.5px; font-weight: 600; }
.pay-strip .ps-links a { color: var(--accent); text-decoration: none; }
.pay-strip .ps-links a:hover { text-decoration: underline; }
/* list tools above a long offer list: distrito | salário on one row, ordem under them on phones; all three in a row wider */
.list-tools { grid-template-columns: 1fr 1fr; align-items: end; padding: 12px 14px; }
.list-tools[hidden] { display: none; }
.list-tools label:last-of-type:nth-of-type(odd) { grid-column: 1 / -1; }
@media (min-width: 760px) { .list-tools { grid-template-columns: repeat(3, 1fr); } .list-tools label:last-of-type:nth-of-type(odd) { grid-column: auto; } }
.list-tools select { min-height: 42px; padding: 8px 10px; }
.list-tools .count, .list-tools .empty { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--muted); }
.list-tools .empty { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--ink-2); }
.list-tools .empty[hidden] { display: none; }
.notice { padding: 12px 14px; border-radius: 12px; background: var(--good-soft); color: var(--good); font-weight: 500; }
.notice.bad { background: var(--bad-soft); color: var(--bad); }

/* prose pages (event hubs, legal) */
.prose { max-width: 800px; }
.prose h2 { font-size: 19px; }
.prose h3 { font-size: 16.5px; margin: 18px 0 4px; }
.prose p, .prose li { color: var(--ink-2); }
.prose li { margin: 4px 0; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 8px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 8px 0 2px; }
.src { font-size: 12px; color: var(--muted); }
/* event hubs (lib/site.mjs eventPage): numbers under the lead, one panel per profession, application + next round side by side */
.hub-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 16px 0 0; }
@media (min-width: 760px) { .hub-stats { grid-template-columns: repeat(4, 1fr); } }
.hub-stats a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); }
.hub-stats a:hover { border-color: var(--accent); }
.hub-stats b { font-size: 24px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.hub-stats span { font-size: 12.5px; color: var(--muted); }
/* "18 a 26 anos" on one line in a half-width phone tile */
@media (max-width: 420px) { .hub-stats b { font-size: 20px; } }
/* the stats row is followed by the alert form on hubs without an alert bar */
.hub-stats + .inline-alert, .hub-stats + .alertbox { margin-top: 16px; }
#abertos, #por-entidade, #salarios, #requisitos, #anteriores, .hub-group { scroll-margin-top: 76px; }
.hub-groups { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 860px) { .hub-groups { grid-template-columns: 1fr 1fr; } }
.hub-group h3 { margin: 0; font-size: 18px; }
.hub-group .sub { margin: 4px 0 0; color: var(--ink-2); }
.hub-group h4 { margin: 18px 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.hub-group ul { margin: 0; padding-left: 18px; }
.hub-group li { margin: 7px 0; font-size: 14.5px; color: var(--ink-2); }
.hub-group > .fine { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
ol.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
ol.steps li { position: relative; padding-left: 34px; counter-increment: step; }
ol.steps li::before { content: counter(step); position: absolute; left: 0; top: -1px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 12.5px; font-weight: 700; }
.hub-common { margin: 12px 0 0; padding: 0; list-style: none; max-width: 860px; font-size: 14px; color: var(--ink-2); }
.hub-pay { max-width: 800px; }
.hub-pair { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 30px 0 0; }
@media (min-width: 860px) { .hub-pair { grid-template-columns: 1fr 1fr; } }
.hub-pair p { margin: 0 0 10px; font-size: 14.5px; color: var(--ink-2); }
table.data.hub-hist td { vertical-align: top; }
.hub-hist td.aviso b, .hub-hist td.aviso .fine, .hub-hist td .val { display: block; }
.hub-hist td.aviso .fine { margin-top: 2px; }
.hub-hist td.when { white-space: nowrap; }
.hub-hist td .range { width: 90px; height: 4px; margin: 6px 0 0 auto; }
@media (max-width: 639px) { /* phones: one block per round, dates and places on a line under the text */
  table.data.hub-hist, .hub-hist tbody { display: block; }
  .hub-hist tr { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .hub-hist tr:first-child { display: none; }
  .hub-hist tr:last-child { border-bottom: 0; }
  table.data.hub-hist td { display: block; padding: 0; border: 0; }
  .hub-hist td.yr { grid-column: 1 / -1; font-weight: 700; }
  .hub-hist td.aviso { grid-column: 1 / -1; }
  .hub-hist td.when::before { content: 'Solicitudes: '; color: var(--muted); }
  .hub-hist td .val::after { content: ' plazas'; color: var(--muted); }
}
.hub-links { columns: 2 300px; column-gap: 28px; padding-left: 18px; }
.hub-links li { break-inside: avoid; margin: 0; padding: 3px 0; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 12px 0; }
.stats div { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.stats b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; }
.stats span { font-size: 12.5px; color: var(--muted); }
table.data { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 13.5px; }
table.data th, table.data td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: left; }
table.data td.n, table.data th.n { text-align: right; font-variant-numeric: tabular-nums; }
.scroll { overflow-x: auto; margin: 8px 0 12px; } /* wide tables (salary pages) scroll inside, not the page */
.scroll table.data td, .scroll table.data th { white-space: nowrap; }

/* salary pages (lib/site.mjs salariesHub / careerPayPage / truPage) */
.stats.three { grid-template-columns: 1fr; }
@media (min-width: 640px) { .stats.three { grid-template-columns: repeat(3, 1fr); } }
.stats.three div { display: flex; flex-direction: column; gap: 2px; }
.stats.three b { font-size: 24px; color: var(--ink); }
.range { position: relative; display: block; height: 6px; border-radius: 4px; background: var(--line); overflow: hidden; }
.range i { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: var(--accent); }
.pay-cards { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 14px 0 10px; }
@media (min-width: 760px) { .pay-cards { grid-template-columns: repeat(3, 1fr); } }
.pay-card { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
.pay-card:hover { border-color: var(--accent); }
.pay-card .pc-name { font-weight: 700; font-size: 16px; }
.pay-card .pc-entry { font-size: 13.5px; color: var(--ink-2); }
.pay-card .pc-entry b { font-size: 26px; color: var(--ink); font-variant-numeric: tabular-nums; margin-right: 4px; }
.pay-card .pc-range { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); margin-top: -4px; }
.pay-card .pc-meta { font-size: 12.5px; color: var(--muted); }
.pay-card .pc-open { margin-top: auto; font-size: 13.5px; font-weight: 600; color: var(--accent); }
.pay-tru { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; margin: 0 0 18px; background: var(--accent-soft); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.pay-tru b { color: var(--accent); }
.pay-tru span { font-size: 13.5px; color: var(--ink-2); }
.pay-card .pc-net { margin-top: -6px; font-size: 13px; font-weight: 600; color: var(--accent); }
table.data.pay td.net { color: var(--ink-2); }
.pay-net-note { margin-top: 10px; }

/* net-pay simulator (/salarios/simulador): the form, then the result (beside it, sticky, on wide screens) */
#simulador { scroll-margin-top: 76px; } /* clears the sticky header on "#simulador" */
.sim { display: grid; gap: 16px; margin: 16px 0 26px; }
@media (min-width: 900px) { .sim { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; } .sim-out { position: sticky; top: 72px; } }
.sim [hidden] { display: none !important; }
.sim fieldset { display: grid; gap: 12px; margin: 0 0 12px; padding: 12px 14px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.sim legend { padding: 0 6px; font-weight: 700; }
.sim label { display: grid; gap: 5px; font-size: 14px; font-weight: 600; }
.sim label .fine { font-weight: 400; }
.sim label.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.sim label.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.sim input[type=number] { font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); color: var(--ink); min-height: 46px; width: 100%; }
.sim select:disabled { opacity: .55; }
.sim-out { padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.sim-big { display: grid; gap: 2px; margin: 0 0 12px; }
.sim-big span { font-size: 13px; color: var(--muted); }
.sim-big b { font-size: 34px; line-height: 1.15; color: var(--accent); font-variant-numeric: tabular-nums; }
.sim-t { width: 100%; }
.sim-t td.n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sim-t tr.sum th, .sim-t tr.sum td { border-top: 2px solid var(--line); }
.sim-t th { width: 64%; font-weight: 500; }
.sim-t th .fine { white-space: nowrap; }
.sim-out h3 { margin: 16px 0 6px; font-size: 15px; }
.sim-year { margin: 12px 0 6px; }
/* phones: the result is below the form, so a bar at the bottom shows the total while the form is being filled */
.sim-bar { display: none; }
@media (max-width: 899px) {
  .sim-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--panel); border-top: 1px solid var(--line); box-shadow: 0 -4px 14px rgba(20, 30, 25, .08); font-size: 13.5px; }
  .sim-bar b { font-size: 20px; color: var(--accent); font-variant-numeric: tabular-nums; }
  .sim-bar a { font-weight: 600; text-decoration: none; }
  .sim-bar.off { display: none; }
}
.pay-sub { margin: -4px 0 4px; }
table.data.pay td .val { display: block; }
table.data.pay td .range { width: 110px; margin: 4px 0 0 auto; height: 4px; }
table.data.pay tr.entry td { background: var(--accent-soft); }
table.data.pay tr.entry .tag { margin-left: 4px; }
/* named rows ("Formação especializada, 4.º ano e seguintes") wrap instead of pushing the € off a phone screen */
.scroll table.data.pay td:first-child { white-space: normal; min-width: 7.5em; }
table.data.tru tr.hit td { background: var(--panel-2); }
table.data.tru .tag { margin: 1px 2px 1px 0; }

/* footer */
.foot { margin-top: 44px; background: var(--panel); border-top: 1px solid var(--line); padding: 22px 0 30px; font-size: 13.5px; }
.foot .cols { display: grid; grid-template-columns: 1fr; gap: 18px; }
.foot h4 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.foot .links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; }
.foot .links a { color: var(--ink-2); text-decoration: none; padding: 3px 0; }
.foot .links a:hover { color: var(--accent); }
.foot .legal { margin-top: 16px; color: var(--muted); font-size: 12.5px; }

.ad-slot:empty { display: none; }

@media (min-width: 720px) {
  body { font-size: 15px; }
  .jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offer { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
  .offer aside { position: sticky; top: 72px; display: grid; gap: 16px; }
  .filters { grid-template-columns: repeat(4, 1fr); align-items: end; }
  .filters .row { display: contents; }
  .filters .q { grid-column: span 2; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .foot .cols { grid-template-columns: 1.3fr 1fr 1fr; }
}
@media (min-width: 1000px) { .jobs.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 719px) {
  .top nav a.hide-m, .top nav .hide-m { display: none; }
  /* phones (like guiadaformacao): no subtitle, and the nav becomes icons over small labels — Pesquisar, Alertas in
     green, Favoritos with its red heart — instead of the green "Alertas" button */
  .brand small { display: none; }
  .brand { gap: 7px; }
  .brand .logo { width: 30px; height: 30px; }
  .brand b { font-size: 15px; }
  .top nav { gap: 2px; }
  .top nav .nav-i { flex-direction: column; gap: 2px; padding: 4px 3px; font-size: 10.5px; line-height: 1.1; font-weight: 600; }
  .top nav .nav-i .ni svg { width: 21px; height: 21px; }
  .top nav .nav-alert { display: inline-flex; }
  .top nav .nav-alert, .top nav .nav-alert .ni { color: var(--accent); }
  .top nav .nav-cta { display: none; }
}
/* very narrow phones: icons only (each link keeps its aria-label) */
@media (max-width: 359px) { .top nav .nav-i > span:not(.ni) { display: none; } .top nav .nav-i { padding: 6px 7px; } }

/* widget for municipalities' and parishes' sites: the configurator at /widget and the link on place pages (lib/site.mjs) */
.wg-cta { margin: 22px 0 6px; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--ink-2); font-size: 14.5px; }
.wg-cta a { font-weight: 650; }
.wg-hero { max-width: 800px; }
.wg-eyebrow { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 4px; font-size: 13px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 4px 11px; }
.wg-perks { list-style: none; margin: 18px 0 8px; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.wg-perks li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.wg-perks .ic { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); margin-bottom: 8px; }
.wg-perks b { display: block; font-size: 15.5px; }
.wg-perks p { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.wg-n { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 9px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 14px; font-weight: 750; vertical-align: 2px; }
.wg-builder { display: grid; gap: 20px; margin: 22px 0 8px; }
.wg-controls { display: grid; gap: 12px; align-content: start; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 2px 16px 16px; box-shadow: var(--shadow); }
.wg-controls h2 { margin: 16px 0 0; font-size: 17px; }
.wg-controls label { display: grid; gap: 5px; font-size: 14px; font-weight: 600; }
.wg-controls input:not([type=radio]):not([type=color]):not([type=checkbox]), .wg-controls select { font: inherit; font-size: 16px; color: var(--ink); background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; }
.wg-controls input:focus, .wg-controls select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.wg-check { display: flex !important; gap: 8px; align-items: flex-start; font-weight: 500 !important; }
.wg-row2 { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.wg-seg { border: 0; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.wg-seg legend { font-size: 14px; font-weight: 600; margin-bottom: 5px; padding: 0; }
.wg-seg label { display: block; }
.wg-seg input { position: absolute; opacity: 0; }
.wg-seg span { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: 14px; cursor: pointer; background: var(--panel-2); }
.wg-seg input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.wg-seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.wg-row { display: grid; gap: 12px; grid-template-columns: 1fr; }
.wg-colors { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.wg-colors input[type=color] { width: 38px; height: 34px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); cursor: pointer; }
.wg-sw { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--panel); box-shadow: 0 0 0 1px var(--line); background: var(--c); cursor: pointer; padding: 0; }
.wg-sw:hover { box-shadow: 0 0 0 2px var(--c); }
.wg-controls.is-selo .wg-list-only { display: none; }
.wg-preview { min-width: 0; }
.wg-browser { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); box-shadow: var(--pop-shadow); }
.wg-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: var(--panel-2); border-bottom: 1px solid var(--line); }
.wg-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.wg-bar span { flex: 1; margin-left: 8px; font-size: 12.5px; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wg-page { padding: 18px; background: #fff; color: #1b1d20; transition: background .2s; }
.wg-page.dark { background: #121315; }
.wg-fake { margin-bottom: 16px; }
.wg-fake b, .wg-fake i { display: block; height: 12px; border-radius: 6px; background: #ecebe6; margin-bottom: 8px; }
.wg-fake b { width: 42%; height: 18px; background: #dfddd6; }
.wg-fake i:last-child { width: 72%; }
.wg-page.dark .wg-fake b { background: #2c2f33; }
.wg-page.dark .wg-fake i { background: #222528; }
.wg-code { background: #13201b; border-radius: var(--radius); padding: 14px; color: #d6efe5; }
.wg-code pre { margin: 0 0 12px; white-space: pre-wrap; word-break: break-all; font: 13.5px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.wg-code-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wg-ok { font-size: 14px; color: #8fe0c0; font-weight: 600; }
.wg-fold { margin: 8px 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.wg-fold summary { cursor: pointer; font-weight: 600; }
.wg-fold p { margin: 8px 0 2px; }
.wg-help { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 30px 0 8px; padding: 6px 18px 16px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--panel-2); }
.wg-help h2 { margin-top: 12px; }
.wg-help p { margin: 0; max-width: 620px; color: var(--ink-2); }
@media (min-width: 560px) { .wg-row { grid-template-columns: auto 1fr 1fr; align-items: end; } }
@media (min-width: 980px) {
  .wg-builder { grid-template-columns: 380px 1fr; align-items: start; }
  .wg-preview { position: sticky; top: 74px; }
  .wg-row { grid-template-columns: 1fr 1fr; }
  .wg-row label:first-child { grid-column: 1 / -1; }
}

/* /admin/email: write to the councils from the site's address, read and answer their replies (lib/provider-mail.mjs) */
.mail-form { max-width: 820px; display: grid; gap: 12px; }
.mail-form label { display: grid; gap: 5px; font-size: 14px; font-weight: 600; }
.mail-form input, .mail-form textarea { font: inherit; font-size: 15px; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; }
.mail-form textarea { font: 14.5px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif; }
.mail-note { max-width: 820px; border-radius: 12px; padding: 10px 14px; border: 1px solid var(--line); background: var(--panel); margin: 12px 0; }
.mail-note.ok { border-color: var(--good); }
.mail-note.ok b { color: var(--good); }
.mail-note.no { border-color: var(--bad); }
.mail-note.no b, .mail-note.no li { color: var(--bad); }
.mail-note p { margin: 4px 0; color: var(--ink-2); font-size: 14.5px; }
.mail-setup { max-width: 820px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; margin: 14px 0; }
.mail-setup summary { cursor: pointer; font-weight: 650; }
.warn-txt { color: var(--bad); }
.ok-txt { color: var(--good); }
.mail-events { margin: 4px 0 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); }
.mail-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; max-width: 820px; }
.mail-list > li { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.mail-list > li.mail-in { border-left: 4px solid var(--accent); }
.mail-list > li.mail-out { border-left: 4px solid var(--line); background: var(--panel-2); }
.mail-list > li.spam { opacity: .6; }
.mail-meta { font-size: 13px; color: var(--muted); }
.mail-subj { font-weight: 650; margin: 2px 0 4px; }
.mail-snip { margin: 0 0 6px; color: var(--ink-2); font-size: 14.5px; }
.mail-body { white-space: pre-wrap; font: 13.5px/1.5 system-ui, sans-serif; margin: 6px 0 0; color: var(--ink-2); }
.mail-scroll { overflow-x: auto; }
.mail-log td { font-size: 13.5px; }

/* convocatorias-es additions */
.hero h1 { margin-bottom: 6px; }
.stats { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 10px 0 4px; color: var(--ink-2); font-size: 14px; }
.stats b { color: var(--ink); font-size: 17px; }
.closed-list summary { cursor: pointer; list-style: none; }
.closed-list summary h2 { display: inline; font-size: 17px; }
.closed-list summary::before { content: '▸ '; color: var(--muted); }
.closed-list[open] summary::before { content: '▾ '; }
.facts.posts th { width: auto; }
.facts.posts th, .facts.posts td { padding-right: 14px; }
.facts.posts td.num, .facts.posts th:nth-child(2) { text-align: right; white-space: nowrap; }
.pay-table td, .pay-table th { vertical-align: top; }
.pay h3 { font-size: 15px; margin: 14px 0 4px; }
.hist { margin: 0; padding-left: 18px; }
.hist li { margin: 4px 0; }
.list-tools .check { display: flex; align-items: center; gap: 6px; }
.h1-org { display: block; font-size: 16px; font-weight: 500; color: var(--muted); margin-top: 6px; }

/* /organismos (lib/site.mjs entitiesHub): one card per region with its biggest employers; the name search's hits */
.regs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.regs > li { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.regs h3 { margin: 0; font-size: 15.5px; }
.regs > li > p { margin: 2px 0 8px; font-size: 12.5px; color: var(--muted); }
.regs ul { margin: 0; padding: 0; list-style: none; }
.regs ul li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 5px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.regs ul a { text-decoration: none; }
.regs ul a:hover { text-decoration: underline; }
.regs ul span { color: var(--muted); font-variant-numeric: tabular-nums; }
.ent-count { margin: 4px 0 8px; }
.ent-hits { margin-bottom: 8px; }
.stats.ent-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 860px) { .stats.ent-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* a type's directory (lib/site.mjs entitiesIndex): plain links in columns, councils in one collapsed row per province */
.dir { display: grid; gap: 6px; margin: 4px 0 12px; }
.dir details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.dir summary { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 14px; cursor: pointer; list-style: none; }
.dir summary::-webkit-details-marker { display: none; }
.dir summary b::before { content: '▸ '; color: var(--muted); }
.dir details[open] summary b::before { content: '▾ '; }
.dir summary span { font-size: 12.5px; color: var(--muted); text-align: right; }
.dir details .dir-list { padding: 0 14px 12px; }
.dir-list { columns: 3 220px; column-gap: 24px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.dir-list li { break-inside: avoid; display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; border-bottom: 1px solid var(--line); }
.dir-list a { text-decoration: none; }
.dir-list a:hover { text-decoration: underline; }
.dir-list span { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12.5px; }
/* (phones: the guide's "top" lists show 6, not 12, so the directory isn't three screens down) */
@media (max-width: 639px) { .ent-top > li:nth-child(n+7) { display: none; } }
/* the deadline pill's clock (endsPill), drawn here instead of an inline SVG in every card */
.ends.t::before { content: ''; flex: none; width: 14px; height: 14px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat; }
.jobs[aria-busy="true"] { opacity: .55; transition: opacity .2s; }
