:root {
  --tf-ink: #142033;
  --tf-muted: #5b667a;
  --tf-brand: #0f5c4c;
  --tf-brand-dark: #0a4036;
  --tf-accent: #b8893a;
  --tf-bg: #f4efe6;
  --tf-card: #fffdf8;
  --tf-line: #d9d1c3;
  --tf-closed: #7a2e3a;
  --tf-active: #0f5c4c;
  --tf-radius: 14px;
  --tf-shadow: 0 8px 24px rgba(20, 32, 51, 0.06);
  --tf-max: 1120px;
  --tf-sans: "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--tf-sans);
  color: var(--tf-ink);
  background: var(--tf-bg);
  line-height: 1.55;
}
img { max-width: 100%; }
a { color: var(--tf-brand); }
a:hover { color: var(--tf-brand-dark); }
h1, h2, h3 { line-height: 1.2; color: var(--tf-ink); }
h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 0 0 0.6rem; }
h2 { font-size: 1.35rem; }
.tf-wrap { width: min(100% - 1.5rem, var(--tf-max)); margin-inline: auto; }
.tf-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.tf-skip {
  position: absolute; left: -999px; top: 0; background: #fff; padding: 0.6rem 1rem;
}
.tf-skip:focus { left: 0.5rem; top: 0.5rem; z-index: 20; }

.tf-header {
  background: #fffdf8;
  border-bottom: 1px solid var(--tf-line);
  position: sticky; top: 0; z-index: 10;
}
.tf-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.tf-logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--tf-ink); font-weight: 700; }
.tf-logo__mark { width: 32px; height: 32px; }
.tf-nav { display: flex; gap: 1.1rem; align-items: center; }
.tf-nav a { text-decoration: none; color: var(--tf-ink); font-weight: 600; }
.tf-nav-browse { position: relative; }
.tf-nav-browse > summary {
  list-style: none; cursor: pointer; font-weight: 600; color: var(--tf-ink);
}
.tf-nav-browse > summary::-webkit-details-marker { display: none; }
.tf-nav-browse > summary::after { content: " ▾"; font-size: 0.75em; }
.tf-nav-browse ul {
  position: absolute; right: 0; top: calc(100% + 0.45rem);
  background: #fffdf8; border: 1px solid var(--tf-line); border-radius: 12px;
  padding: 0.45rem 0; min-width: 13.5rem; list-style: none; margin: 0;
  box-shadow: var(--tf-shadow);
}
.tf-nav-browse a { display: block; padding: 0.45rem 1rem; }
.tf-nav-toggle { display: none; background: none; border: 0; width: 2.5rem; height: 2.5rem; position: relative; }
.tf-nav-toggle span, .tf-nav-toggle::before, .tf-nav-toggle::after {
  display: block; width: 1.3rem; height: 2px; background: var(--tf-ink); position: absolute; left: 0.6rem;
}
.tf-nav-toggle::before { content: ""; top: 0.75rem; }
.tf-nav-toggle span { top: 1.2rem; }
.tf-nav-toggle::after { content: ""; top: 1.65rem; }

.tf-btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--tf-brand); color: #fff; text-decoration: none;
  border: 0; border-radius: 999px; padding: 0.7rem 1.15rem; font-weight: 700; cursor: pointer;
}
.tf-btn:hover { background: var(--tf-brand-dark); color: #fff; }
.tf-btn--ghost { background: transparent; color: var(--tf-brand); border: 1px solid var(--tf-brand); }
.tf-btn--small { padding: 0.4rem 0.8rem; font-size: 0.9rem; }
.tf-text-link { font-weight: 700; }

.tf-hero {
  background: linear-gradient(160deg, #0f5c4c 0%, #163a4a 100%);
  color: #f7f1e6; padding: 3.2rem 0 2.6rem;
}
.tf-hero h1, .tf-hero a { color: #fff; }
.tf-eyebrow { letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.8rem; opacity: 0.85; }
.tf-lead { font-size: 1.15rem; max-width: 40rem; }
.tf-search-bar {
  background: #fff;
  border-radius: 14px;
  padding: 0.55rem;
  margin: 1.6rem 0 1rem;
  box-shadow: 0 14px 36px rgba(12, 28, 36, 0.22);
}
.tf-quick-search {
  display: grid;
  grid-template-columns: minmax(12rem, 1.5fr) minmax(9.5rem, 1fr) minmax(9.5rem, 1fr) minmax(9.5rem, 1fr) auto;
  gap: 0.45rem;
  align-items: stretch;
  margin: 0;
}
.tf-quick-search input[type="search"],
.tf-quick-search select,
.tf-ms > summary {
  width: 100%;
  height: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--tf-line);
  border-radius: 10px;
  font: inherit;
  background: #fff;
  color: var(--tf-ink);
}
.tf-quick-search .tf-btn { min-height: 3rem; border-radius: 10px; padding-inline: 1.4rem; }
.tf-search-bar--page { margin: 0 0 1.2rem; box-shadow: var(--tf-shadow); }
.tf-quick-search--page {
  grid-template-columns: minmax(11rem, 1.5fr) minmax(9rem, 1fr) minmax(9rem, 1fr) minmax(9rem, 1fr) 3rem auto;
}
.tf-funnel-toggle {
  min-height: 3rem;
  width: 3rem;
  border: 1px solid var(--tf-line);
  border-radius: 10px;
  background: #fff;
  color: var(--tf-ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.tf-funnel-toggle:hover,
.tf-funnel-toggle.is-on,
.tf-funnel-toggle[aria-expanded="true"] {
  border-color: var(--tf-brand);
  color: var(--tf-brand);
}
.tf-funnel-toggle.is-on::after {
  content: "";
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--tf-accent);
}
.tf-funnel-panel {
  background: var(--tf-card);
  border: 1px solid var(--tf-line);
  border-radius: 12px;
  padding: 1rem 1.1rem 1.1rem;
  margin: 0 0 1.2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
}
.tf-funnel-panel[hidden] { display: none; }
.tf-funnel-panel fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 0.25rem; }
.tf-funnel-panel legend, .tf-funnel-panel label { font-weight: 700; font-size: 0.9rem; }
.tf-funnel-panel fieldset label { font-weight: 500; }
.tf-funnel-panel__actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.8rem;
  align-items: center;
}
.tf-ms { position: relative; }
.tf-ms > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-weight: 600;
}
.tf-ms > summary::-webkit-details-marker { display: none; }
.tf-ms > summary::after { content: "▾"; margin-left: auto; opacity: 0.6; font-size: 0.8rem; }
.tf-ms__panel {
  position: absolute;
  z-index: 8;
  left: 0;
  right: 0;
  top: calc(100% + 0.3rem);
  max-height: 16rem;
  overflow: auto;
  background: #fff;
  color: var(--tf-ink);
  border: 1px solid var(--tf-line);
  border-radius: 10px;
  padding: 0.45rem;
  box-shadow: var(--tf-shadow);
  display: grid;
  gap: 0.15rem;
}
.tf-ms__panel label { display: flex; gap: 0.45rem; align-items: center; padding: 0.28rem 0.35rem; font-weight: 500; }
.tf-ms__empty { margin: 0.3rem 0.4rem; color: var(--tf-muted); font-size: 0.9rem; }
.tf-hero-search { display: flex; gap: 0.6rem; margin: 1.4rem 0 0.8rem; max-width: 44rem; }
.tf-hero-search input, .tf-search-panel input[type="search"], .tf-search-panel input[type="text"],
.tf-alert-form input, .tf-inline-search input, select, textarea {
  width: 100%; padding: 0.8rem 0.9rem; border: 1px solid var(--tf-line); border-radius: 10px;
  font: inherit; background: #fff;
}
.tf-combobox { position: relative; }
.tf-combobox__control {
  display: flex; align-items: stretch; gap: 0; position: relative;
}
.tf-combobox__control input,
.tf-search-panel .tf-combobox__control input,
.tf-alert-form .tf-combobox__control input {
  width: 100%; padding: 0.8rem 2.4rem 0.8rem 0.9rem; border: 1px solid var(--tf-line);
  border-radius: 10px; font: inherit; background: #fff;
}
.tf-combobox__clear {
  position: absolute; right: 0.35rem; top: 50%; transform: translateY(-50%);
  width: 1.85rem; height: 1.85rem; border: 0; border-radius: 999px;
  background: transparent; color: var(--tf-muted); font-size: 1.2rem; line-height: 1;
  cursor: pointer; display: none;
}
.tf-combobox.is-chosen .tf-combobox__clear { display: inline-flex; align-items: center; justify-content: center; }
.tf-combobox__clear:hover { background: #efe8db; color: var(--tf-ink); }
.tf-combobox__list {
  position: absolute; z-index: 12; left: 0; right: 0; top: calc(100% + 0.3rem);
  max-height: 16rem; overflow: auto; margin: 0; padding: 0.35rem;
  list-style: none; background: #fff; border: 1px solid var(--tf-line); border-radius: 10px;
  box-shadow: var(--tf-shadow);
}
.tf-combobox__list[hidden] { display: none; }
.tf-combobox__option {
  padding: 0.45rem 0.55rem; border-radius: 8px; cursor: pointer; font-size: 0.92rem;
}
.tf-combobox__option:hover, .tf-combobox__option.is-active { background: #e2f3ed; }
.tf-combobox__empty { margin: 0.35rem 0.45rem; color: var(--tf-muted); font-size: 0.9rem; }
.tf-hero-search input { border: 0; }
.tf-hero__points { opacity: 0.85; }
.tf-counters { display: flex; gap: 1.5rem; padding: 0; list-style: none; }
.tf-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; list-style: none; margin: 1.2rem 0 0; }
.tf-chips a {
  display: inline-block; background: rgba(255,255,255,0.12); color: #fff; text-decoration: none;
  border: 1px solid rgba(255,255,255,0.25); border-radius: 999px; padding: 0.35rem 0.8rem;
}

.tf-section { padding: 2.4rem 0; }
.tf-section--alt { background: #efe8db; }
.tf-section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.tf-section__intro { margin: 0.35rem 0 0; color: var(--tf-muted); font-size: 0.95rem; max-width: 36rem; }
.tf-card-list { display: grid; gap: 1rem; }
.tf-card {
  background: var(--tf-card); border: 1px solid var(--tf-line); border-radius: var(--tf-radius);
  padding: 1.1rem 1.2rem; box-shadow: var(--tf-shadow);
}
.tf-card__meta { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; font-size: 0.9rem; }
.tf-card__title { margin: 0.45rem 0; font-size: 1.15rem; }
.tf-card__title a { color: var(--tf-ink); text-decoration: none; }
.tf-card__title a:hover { color: var(--tf-brand); text-decoration: underline; }
.tf-card__agency { margin: 0 0 0.4rem; font-weight: 600; }
.tf-card__facts { display: flex; flex-wrap: wrap; gap: 0.7rem; color: var(--tf-muted); font-size: 0.92rem; }
.tf-card__dates { display: flex; gap: 1.2rem; margin: 0.6rem 0; }
.tf-card__dates dt { color: var(--tf-muted); font-size: 0.8rem; }
.tf-card__dates dd { margin: 0; font-weight: 600; }
.tf-card__foot { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.tf-status { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.2rem 0.5rem; border-radius: 6px; }
.tf-status--active { background: #e2f3ed; color: var(--tf-active); }
.tf-status--closed { background: #f6e4e6; color: var(--tf-closed); }
.tf-pill { font-size: 0.75rem; background: #f3e6c8; color: #6d4e16; border-radius: 999px; padding: 0.15rem 0.55rem; }
.tf-ref { font-family: ui-monospace, monospace; color: var(--tf-muted); }
.tf-urgency { color: var(--tf-accent); font-weight: 700; }

.tf-facet-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.8rem; padding: 0; list-style: none; }
.tf-facet-grid a {
  display: block; background: var(--tf-card); border: 1px solid var(--tf-line); border-radius: 12px;
  padding: 1rem; text-decoration: none; color: inherit;
}
.tf-facet-grid span, .tf-facet-grid em { display: block; color: var(--tf-muted); font-style: normal; font-size: 0.9rem; }
.tf-plain-links { list-style: none; padding: 0; }
.tf-plain-links a { display: flex; justify-content: space-between; text-decoration: none; padding: 0.4rem 0; color: var(--tf-ink); }
.tf-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.tf-steps { display: grid; gap: 0.8rem; padding-left: 1.2rem; }
.tf-free-note { font-weight: 600; }
.tf-cta {
  background: #163a4a; color: #f7f1e6; border-radius: var(--tf-radius); padding: 1.4rem 1.5rem; margin-top: 1.5rem;
}
.tf-cta h2, .tf-cta a.tf-btn { color: #fff; }
.tf-cta__note { opacity: 0.85; }

.tf-search-page { padding: 1.6rem 0 3rem; }
.tf-page { padding: 1.6rem 0 3rem; }
.tf-page-head p { color: var(--tf-muted); }
.tf-search-layout { display: grid; grid-template-columns: 280px 1fr; gap: 1.5rem; align-items: start; }
.tf-filters { background: var(--tf-card); border: 1px solid var(--tf-line); border-radius: 12px; padding: 0.8rem 1rem 1rem; }
.tf-filters summary { cursor: pointer; font-weight: 700; }
.tf-filters__grid { display: grid; gap: 0.9rem; margin-top: 0.8rem; }
.tf-filters fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 0.25rem; }
.tf-filters legend, .tf-search-panel label { font-weight: 700; font-size: 0.9rem; }
.tf-filters__actions { display: flex; gap: 0.8rem; align-items: center; margin-top: 0.8rem; }
.tf-search-panel__row { display: flex; gap: 0.5rem; }
.tf-toolbar { display: flex; justify-content: flex-end; }
.tf-pager { display: flex; gap: 0.4rem; flex-wrap: wrap; margin: 1.2rem 0; }
.tf-pager a, .tf-pager span {
  min-width: 2.2rem; text-align: center; padding: 0.35rem 0.55rem; border-radius: 8px; text-decoration: none;
  border: 1px solid var(--tf-line); background: #fff;
}
.tf-pager span[aria-current="page"] { background: var(--tf-brand); color: #fff; border-color: var(--tf-brand); }

.tf-crumbs ol { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0; color: var(--tf-muted); }
.tf-crumbs li:not(:last-child)::after { content: ">"; margin-left: 0.4rem; }
.tf-detail { padding: 1.4rem 0 3rem; }
.tf-detail__agency { font-size: 1.1rem; font-weight: 600; }
.tf-info dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.8rem; }
.tf-info dt { color: var(--tf-muted); font-size: 0.82rem; }
.tf-info dd { margin: 0; font-weight: 700; }
.tf-notice-wrap { margin: 1.6rem 0; }
.tf-newspaper-notice { margin: 0; padding: 1rem; background: var(--tf-card); border: 1px solid var(--tf-line); border-radius: 12px; }
.tf-newspaper-notice img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.tf-newspaper-notice figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1rem; margin-top: 1rem; color: var(--tf-muted); }
.tf-notice {
  background: var(--tf-card); border: 1px solid var(--tf-line); border-radius: 12px; padding: 1rem 1.1rem; overflow: auto;
}
.tf-notice table { width: max-content; min-width: 100%; border-collapse: collapse; }
.tf-notice th, .tf-notice td { border: 1px solid var(--tf-line); padding: 0.4rem 0.5rem; }
.tf-docs { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.tf-docs li { display: flex; justify-content: space-between; gap: 1rem; align-items: center; background: var(--tf-card); border: 1px solid var(--tf-line); border-radius: 10px; padding: 0.8rem 1rem; }
.tf-official { background: #eaf3ef; border-radius: 12px; padding: 1rem 1.1rem; margin: 1.4rem 0; }
.tf-alpha { list-style: none; padding: 0; display: grid; gap: 0.45rem; }
.tf-alpha a { display: flex; justify-content: space-between; text-decoration: none; color: inherit; background: var(--tf-card); border: 1px solid var(--tf-line); border-radius: 10px; padding: 0.7rem 0.9rem; }
.tf-inline-search { display: flex; gap: 0.5rem; align-items: end; margin: 1rem 0 1.4rem; }
.tf-inline-search label { display: block; }
.tf-alert-form, .tf-prose { max-width: 44rem; }
.tf-alert-form { display: grid; gap: 1rem; }
.tf-alert-form fieldset { border: 1px solid var(--tf-line); border-radius: 10px; padding: 0.8rem; display: grid; gap: 0.3rem; }
.tf-consent { display: flex; gap: 0.5rem; align-items: flex-start; }
.tf-error { background: #f6e4e6; color: var(--tf-closed); padding: 0.7rem 0.9rem; border-radius: 8px; }
.tf-hint { color: var(--tf-muted); font-size: 0.9rem; }
.tf-price { font-weight: 700; }

/* Subscriber alert builder */
.tf-alert-page { max-width: 940px; }
.tf-alert-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: clamp(1.5rem, 4vw, 2.5rem); margin-bottom: 1.2rem; border-radius: 22px;
  color: #eef8f3; background: radial-gradient(circle at 90% 10%, #287668, transparent 45%), #123f37;
  box-shadow: 0 16px 38px #123f3718;
}
.tf-alert-hero h1 { color: #fff; letter-spacing: -0.035em; }
.tf-alert-hero p { margin-bottom: 0; max-width: 39rem; color: #d4e8df; }
.tf-kicker { margin: 0 0 0.45rem; color: var(--tf-brand); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
.tf-alert-hero .tf-kicker { color: #b9dccb; }
.tf-alert-price { flex: 0 0 auto; padding: 1rem 1.25rem; border: 1px solid #ffffff38; border-radius: 14px; text-align: center; background: #ffffff0d; }
.tf-alert-price strong, .tf-alert-price span { display: block; }
.tf-alert-price strong { color: #fff; font-size: 1.35rem; }
.tf-alert-price span { color: #d4e8df; font-size: 0.8rem; }
.tf-alert-builder { max-width: none; gap: 1.15rem; }
.tf-form-card { padding: clamp(1.1rem, 3vw, 1.7rem); border: 1px solid #dce5e0; border-radius: 18px; background: #fff; box-shadow: 0 5px 20px #14203308; }
.tf-form-card__head { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.25rem; }
.tf-form-card__head > span { flex: 0 0 auto; margin-top: 0.15rem; padding: 0.25rem 0.55rem; border-radius: 999px; color: var(--tf-brand); background: #e2f3ed; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.tf-form-card__head h2 { margin: 0; font-size: 1.2rem; }
.tf-form-card__head p { margin: 0.25rem 0 0; color: var(--tf-muted); font-size: 0.9rem; }
.tf-form-grid, .tf-account-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.tf-field { min-width: 0; }
.tf-field--wide { grid-column: 1 / -1; }
.tf-field > label, .tf-multi > label { display: block; margin-bottom: 0.35rem; font-size: 0.88rem; font-weight: 750; }
.tf-field > label span { color: var(--tf-muted); font-weight: 500; }
.tf-field > small { display: block; margin-top: 0.3rem; color: var(--tf-muted); }
.tf-alert-builder input:focus, .tf-alert-builder select:focus, .tf-multi__trigger:focus { outline: 3px solid #73af962e; border-color: var(--tf-brand); }
.tf-alert-builder [hidden] { display: none !important; }
.tf-multi { position: relative; }
.tf-multi__trigger { width: 100%; min-height: 3rem; display: flex; align-items: center; justify-content: space-between; gap: 0.7rem; padding: 0.7rem 0.85rem; border: 1px solid var(--tf-line); border-radius: 10px; color: var(--tf-ink); background: #fff; font: inherit; text-align: left; cursor: pointer; }
.tf-multi__summary { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tf-multi__panel { position: absolute; z-index: 15; inset: calc(100% + 0.35rem) 0 auto; padding: 0.55rem; border: 1px solid var(--tf-line); border-radius: 12px; background: #fff; box-shadow: 0 14px 35px #1420331f; }
.tf-multi__panel > input { padding: 0.65rem 0.75rem; }
.tf-multi__options { max-height: 15rem; overflow: auto; margin: 0.45rem 0; display: grid; gap: 0.12rem; }
.tf-multi__options label { display: flex; align-items: center; gap: 0.55rem; padding: 0.43rem 0.5rem; border-radius: 8px; cursor: pointer; font-size: 0.9rem; }
.tf-multi__options label:hover, .tf-multi__options label.is-selected { background: #edf7f2; }
.tf-alert-builder input[type="checkbox"], .tf-alert-builder input[type="radio"] { width: auto; flex: 0 0 auto; accent-color: var(--tf-brand); }
.tf-multi__clear { padding: 0.35rem 0.5rem; border: 0; color: var(--tf-brand); background: transparent; font: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer; }
.tf-login-switch { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 1rem; padding: 0.25rem; border: 1px solid var(--tf-line); border-radius: 12px; background: #f4f6f4; }
.tf-login-switch label { position: relative; cursor: pointer; }
.tf-login-switch input { position: absolute; opacity: 0; }
.tf-login-switch span { display: block; padding: 0.72rem; border-radius: 9px; text-align: center; font-weight: 750; color: var(--tf-muted); }
.tf-login-switch input:checked + span { color: var(--tf-brand-dark); background: #fff; box-shadow: 0 2px 8px #14203312; }
.tf-login-switch input:focus-visible + span { outline: 3px solid #73af9645; }
.tf-account-help { margin: 0; color: var(--tf-muted); font-size: 0.88rem; }
.tf-account-current { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1rem; margin-bottom: 1rem; padding: 0.9rem 1rem; border-radius: 11px; background: #edf7f2; }
.tf-account-current span { color: var(--tf-muted); }
.tf-consent { margin: 1.2rem 0 1rem; padding: 0.85rem 1rem; align-items: center; border: 1px solid #cddfd7; border-radius: 11px; background: #f7fbf9; cursor: pointer; font-weight: 650; }
.tf-consent input { margin: 0; width: 1.05rem !important; height: 1.05rem; }
.tf-alert-submit { min-width: 15rem; min-height: 3rem; border-radius: 10px; }
.tf-alert-submit:disabled { opacity: 0.7; cursor: wait; }
.tf-account-page .tf-page-head { margin-bottom: 1.3rem; }
.tf-account-page .tf-page-head .tf-btn { margin-top: 0.4rem; }
.tf-alert-list { max-width: 54rem; }
.tf-alert-row__top, .tf-alert-row__facts { display: flex; align-items: center; flex-wrap: wrap; gap: 0.55rem 1.2rem; }
.tf-alert-row__top { justify-content: space-between; }
.tf-alert-row__date, .tf-alert-row__facts { color: var(--tf-muted); font-size: 0.88rem; }
.tf-alert-row h2 { margin: 0.9rem 0 0.55rem; font-size: 1.08rem; text-transform: capitalize; }
.tf-alert-row .tf-card__foot { margin-top: 1rem; }

@media (max-width: 640px) {
  .tf-alert-hero { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .tf-form-grid, .tf-account-fields { grid-template-columns: 1fr; }
  .tf-field--wide { grid-column: auto; }
  .tf-form-card__head { gap: 0.65rem; }
  .tf-alert-submit { width: 100%; min-width: 0; }
}
.tf-empty { padding: 1rem 0 2rem; }
.tf-footer { background: #142033; color: #d7dce6; padding: 2rem 0 1.2rem; margin-top: 1rem; }
.tf-footer a { color: #f4efe4; }
.tf-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.5rem; }
.tf-footer h2 { color: #fff; font-size: 1rem; }
.tf-footer ul { list-style: none; padding: 0; }
.tf-footer__brand { font-size: 1.2rem; font-weight: 800; color: #fff; }
.tf-footer__copy { width: min(100% - 1.5rem, var(--tf-max)); margin: 1.4rem auto 0; font-size: 0.85rem; opacity: 0.75; }

/* Public tender browsing and notice detail. */
.tf-search-page, .tf-detail {
  --tf-card: #fff;
  --tf-line: #dce5e0;
  --tf-muted: #53665e;
  --tf-accent: #866020;
  padding-top: 2rem;
}
.tf-tender-hero, .tf-detail__header {
  position: relative;
  border-radius: 24px;
  background: radial-gradient(ellipse at top right, #287668 0%, transparent 65%), #123f37;
  color: #fff;
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: 0 14px 35px #123f3714;
}
.tf-tender-hero { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; margin-bottom: 1.5rem; }
.tf-tender-hero h1, .tf-detail__header h1 { color: #fff; letter-spacing: -0.035em; font-weight: 750; text-wrap: balance; }
.tf-tender-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
.tf-tender-hero p { color: #d1e6dc; max-width: 40rem; margin-bottom: 0; }
.tf-tender-hero__eyebrow, .tf-tender-hero .tf-tender-hero__eyebrow {
  margin: 0 0 1rem; color: #b9dccb; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
}
.tf-tender-hero__count { min-width: 10rem; padding: 1.3rem 1.6rem; border: 1px solid #ffffff35; border-radius: 18px; background: #ffffff0a; }
.tf-tender-hero__count strong { display: block; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.tf-tender-hero__count span { display: block; margin-top: 0.4rem; color: #d1e6dc; font-size: 0.9rem; }
.tf-tender-hero__count small { display: inline-block; margin-top: 0.9rem; color: #f6e2b7; font-size: 0.72rem; }
.tf-search-page .tf-search-bar { border: 1px solid var(--tf-line); padding: 0.75rem; border-radius: 18px; }
.tf-search-page .tf-toolbar { justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.7rem; margin: 1.7rem 0 1rem; font-size: 0.85rem; }
.tf-results-label { color: var(--tf-ink); font-weight: 750; font-size: 1rem; }
.tf-search-page .tf-card-list, .tf-detail .tf-card-list { gap: 1rem; }
.tf-search-page .tf-card, .tf-detail .tf-card {
  padding: 1.5rem 1.7rem; border-radius: 18px; box-shadow: 0 3px 12px #14203304;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.tf-search-page .tf-card:hover, .tf-detail .tf-card:hover { border-color: #87b29f; box-shadow: 0 8px 28px #123f3710; }
.tf-search-page .tf-card__title, .tf-detail .tf-card__title { font-size: 1.3rem; line-height: 1.4; margin: 0.9rem 0 0.5rem; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.tf-search-page .tf-card__meta > a, .tf-detail .tf-card__meta > a { font-size: 0.8rem; font-weight: 600; text-decoration: none; }
.tf-search-page .tf-card__agency, .tf-detail .tf-card__agency { font-size: 0.9rem; color: var(--tf-muted); }
.tf-search-page .tf-card__agency a, .tf-detail .tf-card__agency a { color: inherit; text-decoration: none; }
.tf-search-page .tf-card__facts, .tf-detail .tf-card__facts { gap: 0.45rem; margin: 0.75rem 0; }
.tf-search-page .tf-card__facts > *, .tf-detail .tf-card__facts > * { background: #f2f6f3; border-radius: 6px; padding: 0.2rem 0.55rem; font-size: 0.78rem; text-decoration: none; }
.tf-search-page .tf-card__dates, .tf-detail .tf-card__dates { gap: 2.5rem; flex-wrap: wrap; margin: 1.2rem 0; }
.tf-search-page .tf-card__dates dt, .tf-detail .tf-card__dates dt { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 0.2rem; }
.tf-search-page .tf-card__dates dd, .tf-detail .tf-card__dates dd { font-size: 0.9rem; }
.tf-search-page .tf-card__foot, .tf-detail .tf-card__foot { border-top: 1px solid #edf1ee; padding-top: 1rem; }
.tf-search-page .tf-card__foot .tf-btn, .tf-detail .tf-card__foot .tf-btn { margin-left: auto; padding: 0.6rem 1rem; border-radius: 10px; }
.tf-card__arrow { margin-left: 0.7rem; font-size: 1.1em; }
.tf-search-page .tf-ref, .tf-detail .tf-ref { font-size: 0.72rem; overflow-wrap: anywhere; max-width: 100%; }
.tf-search-page .tf-urgency, .tf-detail .tf-card .tf-urgency { font-size: 0.8rem; }
.tf-search-page .tf-status, .tf-detail .tf-status { border-radius: 999px; padding: 0.3rem 0.65rem; font-size: 0.65rem; }
.tf-search-page .tf-pager { justify-content: center; margin: 2rem 0; }
.tf-search-page .tf-pager a, .tf-search-page .tf-pager span { min-width: 2.6rem; padding: 0.6rem; }
.tf-search-page .tf-empty { padding: 2rem; border: 1px dashed #a9bfb3; border-radius: 18px; background: #ffffff99; }
.tf-detail .tf-crumbs { font-size: 0.78rem; margin-bottom: 1.3rem; overflow-wrap: anywhere; }
.tf-detail .tf-crumbs a { text-decoration: none; }
.tf-detail__header h1 { margin-top: 1.2rem; max-width: 55rem; font-size: clamp(1.8rem, 3.4vw, 2.8rem); overflow-wrap: anywhere; }
.tf-detail__header .tf-card__meta > a, .tf-detail__agency, .tf-detail__agency a { color: #d1e6dc; }
.tf-detail__agency { font-weight: 500; margin: 0.9rem 0; }
.tf-detail__ref { color: #b9d2c6; font-size: 0.8rem; overflow-wrap: anywhere; }
.tf-detail__header .tf-urgency { display: inline-block; background: #f6e2b7; color: #554016; border-radius: 8px; padding: 0.4rem 0.75rem; font-size: 0.85rem; margin-bottom: 0; }
.tf-detail-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 1rem 0; margin-bottom: 1rem; }
.tf-detail-nav a { display: inline-flex; align-items: center; gap: 0.5rem; background: #fff; border: 1px solid var(--tf-line); border-radius: 999px; padding: 0.55rem 1rem; text-decoration: none; font-size: 0.8rem; font-weight: 600; }
.tf-detail-nav a:hover { background: #e7f1eb; border-color: #a5c4b5; }
.tf-detail-nav__count { background: #e7f1eb; border-radius: 50%; min-width: 1.3rem; text-align: center; font-size: 0.7rem; }
.tf-detail section > h2 { letter-spacing: -0.025em; font-size: 1.3rem; margin: 0 0 1rem; scroll-margin-top: 6rem; }
.tf-detail .tf-info { background: #fff; border: 1px solid var(--tf-line); border-radius: 18px; padding: clamp(1.2rem, 3vw, 2rem); }
.tf-detail .tf-info dl { gap: 1.5rem 2rem; margin-bottom: 0; }
.tf-detail .tf-info dt { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.4rem; }
.tf-detail .tf-info dd { font-size: 0.95rem; overflow-wrap: anywhere; }
.tf-detail .tf-notice-wrap { margin: 2rem 0; }
.tf-detail .tf-notice { padding: clamp(1.2rem, 3vw, 2rem); border-radius: 18px; line-height: 1.8; overflow-wrap: anywhere; }
.tf-detail .tf-notice p:first-child { margin-top: 0; }
.tf-detail .tf-notice p:last-child { margin-bottom: 0; }
.tf-detail .tf-notice th { background: #edf4ef; text-align: left; }
.tf-detail .tf-notice th, .tf-detail .tf-notice td { padding: 0.65rem 0.8rem; }
.tf-detail .tf-newspaper-notice { border-radius: 18px; padding: clamp(0.8rem, 2vw, 1.5rem); background: #e8eee9; }
.tf-detail .tf-newspaper-notice img { box-shadow: 0 5px 20px #123f3715; }
.tf-detail .tf-newspaper-notice figcaption { font-size: 0.82rem; }
.tf-detail .tf-docs li { padding: 1rem 1.2rem; border-radius: 14px; }
.tf-detail .tf-docs li > div { min-width: 0; overflow-wrap: anywhere; }
.tf-detail .tf-docs li > div span { display: block; color: var(--tf-muted); font-size: 0.8rem; margin-top: 0.25rem; }
.tf-detail .tf-docs .tf-btn { flex-shrink: 0; }
.tf-detail .tf-official { padding: 1.5rem; border: 1px solid #c6dacc; border-radius: 18px; }
.tf-search-page .tf-cta, .tf-detail .tf-cta { padding: clamp(1.4rem, 4vw, 2.5rem); border-radius: 20px; background: #163f37; margin-top: 2rem; }
.tf-detail #related { margin-top: 2.5rem; }
.tf-search-page :focus-visible, .tf-detail :focus-visible { outline: 3px solid #b8893a; outline-offset: 4px; }
@media (max-width: 600px) {
  .tf-tender-hero { grid-template-columns: 1fr; gap: 1.3rem; border-radius: 18px; }
  .tf-tender-hero__count { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.5rem 0.8rem; padding: 1rem; }
  .tf-tender-hero__count strong { font-size: 1.8rem; }
  .tf-tender-hero__count small { margin-top: 0; margin-left: auto; }
  .tf-search-page .tf-card, .tf-detail .tf-card { padding: 1.2rem; }
  .tf-search-page .tf-card__foot .tf-btn, .tf-detail .tf-card__foot .tf-btn { width: 100%; margin-left: 0; }
  .tf-detail__header { border-radius: 18px; }
  .tf-detail .tf-info dl { grid-template-columns: 1fr; gap: 1rem; }
  .tf-detail .tf-docs li { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tf-search-page .tf-card, .tf-detail .tf-card { transition: none; }
}

@media (max-width: 860px) {
  .tf-search-layout { grid-template-columns: 1fr; }
  .tf-footer__grid { grid-template-columns: 1fr; }
  .tf-quick-search, .tf-quick-search--page, .tf-hero-search, .tf-search-panel__row, .tf-inline-search { grid-template-columns: 1fr; flex-direction: column; }
  .tf-funnel-toggle { width: 100%; }
  .tf-nav-toggle { display: block; }
  .tf-nav {
    display: none; position: absolute; top: 4rem; right: 0.75rem; left: 0.75rem;
    background: #fff; border: 1px solid var(--tf-line); border-radius: 12px; padding: 0.8rem;
    flex-direction: column; align-items: stretch;
  }
  .tf-nav.is-open { display: flex; }
  .tf-nav-browse ul { position: static; box-shadow: none; border: 0; padding: 0.2rem 0 0.2rem 0.6rem; }
  .tf-filters { position: static; }
}
