/* ============================================================
   FREE TOOL PAGES
   ------------------------------------------------------------
   One stylesheet for all ten calculators. Breakpoints from the
   handoff: 1000 (calculator stacks, guide loses its contents
   rail), 620 (field pairs go to one column).
   ============================================================ */

.tl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent-wash);
  border-radius: 99px;
  padding: 7px 16px;
  margin-bottom: 16px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.tl-eyebrow__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

.tl-h2 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.12;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
  letter-spacing: -1px;
}

/* ---------- hero + calculator ---------- */

.tl-top {
  background: linear-gradient(135deg, #F2F7FC 0%, #FFFFFF 46%, #FDF6E8 100%);
  border-bottom: 1px solid var(--border);
}
.tl-top__inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: clamp(40px, 5vw, 72px) clamp(16px, 3.5vw, 36px) clamp(44px, 5.4vw, 80px);
}
.tl-intro { max-width: 760px; margin-bottom: clamp(26px, 3.2vw, 38px); }
.tl-h1 {
  font-weight: 800;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.06;
  letter-spacing: -1.6px;
  color: var(--ink);
  margin: 0 0 14px;
  text-wrap: balance;
}
.tl-lead { font-size: clamp(16px, 1.5vw, 18.5px); line-height: 1.66; color: var(--ink-body); margin: 0; }

.tl-calc {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(16px, 2.2vw, 26px);
  align-items: stretch;
}

.tl-inputs {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--brand);
  border-radius: 20px;
  padding: clamp(22px, 2.8vw, 32px);
  box-shadow: 0 1px 2px rgba(20, 35, 47, .04), 0 8px 22px rgba(20, 35, 47, .07);
}
.tl-inputs__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}
.tl-inputs__title { font-size: 20px; font-weight: 800; color: var(--ink); margin: 0; letter-spacing: -.4px; }
.tl-controls { display: flex; align-items: center; gap: 8px; }
.tl-cur { display: flex; align-items: center; gap: 8px; }
.tl-cur__label { font-size: 13.5px; font-weight: 700; color: var(--ink-muted); }
.tl-cur__select,
.tl-reset {
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: 9px;
  padding: 9px 12px;
  cursor: pointer;
  min-height: 40px;
}
.tl-cur__select:focus-visible,
.tl-reset:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }
.tl-reset { background: var(--surface-shell); border-color: var(--border); }
.tl-reset:hover { border-color: var(--brand); color: var(--brand); }

.tl-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.tl-fields--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tl-field--wide { grid-column: 1 / -1; }

.tl-field__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}
.tl-field__label { font-size: 14px; font-weight: 700; color: var(--ink); }
.tl-field__opt { font-size: 12.5px; font-weight: 500; color: var(--ink-muted); }

.tl-field__box {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: 11px;
  overflow: hidden;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.tl-field__box:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(4, 100, 173, .12);
}
.tl-field__box--area { align-items: stretch; }

/*
 * The symbol and the unit are decoration on an input, not text to select.
 * Left selectable they behave like copy: clicking the currency symbol put a
 * text caret in the span -- a blinking line sitting outside the field, next
 * to an input that had not been focused at all.
 *
 * pointer-events passes the click through to the box, which focuses the
 * input, so the whole control behaves like one field.
 */
.tl-field__box { cursor: text; }
.tl-field__pre,
.tl-field__suf {
  flex: none;
  color: var(--ink-muted);
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}
.tl-field__pre { padding-left: 14px; font-size: 15.5px; font-weight: 700; }
.tl-field__suf { padding-right: 14px; font-size: 14px; font-weight: 600; }
.tl-field__input {
  flex: 1;
  min-width: 0;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: none;
  outline: none;
  padding: 14px;
}
/*
 * A prefixed field gets a smaller left padding on the input itself.
 *
 * The symbol already provides the inset. Leaving the input's own 14px on top
 * of it put the text caret at the input's padding edge while the text began
 * 14px further right -- a blinking line stranded in the gap between the
 * currency symbol and the placeholder, which is what it looked like: a
 * rendering fault rather than a cursor.
 */
.tl-field__pre + .tl-field__input { padding-left: 6px; }

textarea.tl-field__input { font-weight: 400; line-height: 1.6; resize: vertical; min-height: 130px; }
.tl-field__hint { display: block; font-size: 12.5px; line-height: 1.45; color: var(--ink-muted); margin-top: 6px; }

.tl-formula {
  margin-top: 24px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
}
.tl-formula__label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 10px;
}
.tl-formula__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tl-chip {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 12px;
}
.tl-chip--op { background: none; border: none; padding: 0 2px; color: var(--ink-muted); font-weight: 800; }
.tl-chip--out { background: var(--brand); border-color: var(--brand); color: var(--on-navy-primary); font-weight: 800; }

/* ---------- result ---------- */

.tl-result {
  display: flex;
  flex-direction: column;
  background: var(--ink-navy);
  border-radius: 20px;
  padding: clamp(22px, 2.8vw, 32px);
  box-shadow: 0 20px 44px rgba(3, 36, 74, .26);
}
.tl-result__label {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--on-navy-tertiary);
  margin-bottom: 8px;
}
.tl-result__main {
  font-size: clamp(42px, 5vw, 58px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1.8px;
  color: var(--accent);
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}
.tl-result[data-state="empty"] .tl-result__main { color: var(--on-navy-muted); }
.tl-result__sub { font-size: 14.5px; line-height: 1.5; color: var(--on-navy-tertiary); margin-bottom: 22px; }
.tl-result__advice { font-size: 14.5px; line-height: 1.6; color: #D4E6F6; margin: 0 0 20px; }
.tl-result__cta {
  margin-top: auto;
  display: block;
  text-align: center;
  background: var(--accent);
  color: var(--accent-ink-darkest);
  font-size: 16px;
  font-weight: 800;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 12px 26px rgba(240, 165, 0, .30);
  transition: background var(--transition);
}
.tl-result__cta:hover { background: #FFB81F; color: var(--accent-ink-darkest); }
.tl-result__small { font-size: 12.5px; line-height: 1.5; color: var(--on-navy-muted); margin: 12px 0 0; text-align: center; }

/* ---------- gauge ---------- */

.tl-gauge,
.tl-note,
.tl-rows {
  background: var(--surface-on-dark);
  border: 1px solid var(--border-on-dark);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 14px;
}
.tl-gauge[hidden], .tl-note[hidden], .tl-rows[hidden] { display: none; }
.tl-gauge__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.tl-gauge__label { font-size: 14px; font-weight: 700; color: var(--on-navy-primary); }
.tl-gauge__badge {
  font-size: 12.5px;
  font-weight: 800;
  border-radius: 7px;
  padding: 5px 10px;
  white-space: nowrap;
}
/* The five bands, from the old tools. Each is legible on navy. */
.tl-gauge__badge[data-tier="top"]   { background: rgba(30,125,60,.22);  color: #7FD79B; }
.tl-gauge__badge[data-tier="above"] { background: rgba(46,133,200,.22); color: #9CCBEC; }
.tl-gauge__badge[data-tier="avg"]   { background: rgba(255,255,255,.12); color: #DCE7F3; }
.tl-gauge__badge[data-tier="below"] { background: rgba(240,165,0,.18);  color: #F5C14E; }
.tl-gauge__badge[data-tier="needs"] { background: rgba(184,50,42,.24);  color: #F3A09A; }

.tl-gauge__value { font-size: 30px; font-weight: 800; color: var(--on-navy-primary); letter-spacing: -.8px; margin-bottom: 12px; }
.tl-gauge__track { position: relative; height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .14); }
.tl-gauge__fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 99px;
  background: var(--brand-light);
  transition: width 260ms ease;
}
.tl-gauge__fill[data-tier="top"]   { background: #4FBE79; }
.tl-gauge__fill[data-tier="above"] { background: #5FA9DC; }
.tl-gauge__fill[data-tier="avg"]   { background: #9CCBEC; }
.tl-gauge__fill[data-tier="below"] { background: var(--accent); }
.tl-gauge__fill[data-tier="needs"] { background: #D5544B; }
.tl-gauge__marks { position: absolute; inset: 0; }
.tl-gauge__mark { position: absolute; top: -4px; bottom: -4px; width: 2px; background: rgba(255, 255, 255, .5); }
.tl-gauge__mark--accent { background: var(--accent); }
.tl-gauge__scale {
  position: relative;
  height: 18px;
  margin-top: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--on-navy-tertiary);
}
.tl-gauge__end { position: absolute; left: 0; }
.tl-gauge__end--right { left: auto; right: 0; }
.tl-gauge__tick { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.tl-gauge__tick--accent { color: var(--accent); }

.tl-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tl-note__label { font-size: 14px; line-height: 1.4; color: #D4E6F6; }
.tl-note__value { flex: none; font-size: 20px; font-weight: 800; color: var(--accent); }

.tl-rows { display: flex; flex-direction: column; gap: 2px; }
.tl-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: baseline;
  padding: 9px 0;
  border-top: 1px solid var(--border-on-dark-soft);
}
.tl-row:first-child { border-top: 0; }
.tl-row__name { font-size: 14px; font-weight: 600; color: #D4E6F6; }
.tl-row__value { font-size: 14px; font-weight: 700; color: var(--on-navy-primary); white-space: nowrap; }
.tl-row__points { font-size: 12.5px; font-weight: 800; color: var(--on-navy-tertiary); white-space: nowrap; }

/* ---------- proof ---------- */

.tl-proof { background: var(--surface); border-bottom: 1px solid var(--border); }
.tl-proof__inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: clamp(36px, 4.4vw, 56px) clamp(16px, 3.5vw, 36px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.tl-proof__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 1px 2px rgba(20, 35, 47, .04), 0 8px 22px rgba(20, 35, 47, .07);
}
.tl-proof__v { font-size: clamp(28px, 3vw, 36px); font-weight: 800; line-height: 1; letter-spacing: -1px; }
.tl-proof__l { font-size: 14.5px; font-weight: 600; color: var(--ink-body); margin-top: 8px; }

/* ---------- guide ---------- */

.tl-guide { background: var(--surface); border-bottom: 1px solid var(--border); }
.tl-guide__inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: clamp(44px, 5.4vw, 80px) clamp(16px, 3.5vw, 36px);
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.tl-toc {
  position: sticky;
  top: 110px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 20px 16px;
}
.tl-toc__label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 12px;
}
.tl-toc a {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  padding: 8px 0;
  border-top: 1px solid var(--border);
}
.tl-toc a:hover { color: var(--brand); }

.tl-article { min-width: 0; max-width: 760px; }
.tl-article h2 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.12;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 16px;
  letter-spacing: -1px;
  text-wrap: balance;
}
.tl-article h3 {
  font-size: clamp(19px, 1.9vw, 22px);
  line-height: 1.3;
  font-weight: 800;
  color: var(--ink);
  margin: 30px 0 10px;
  letter-spacing: -.4px;
  scroll-margin-top: 110px;
}
.tl-article p { font-size: 16.5px; line-height: 1.78; color: var(--ink-body); margin: 0 0 16px; text-wrap: pretty; }
.tl-article > p:first-of-type { font-size: clamp(17px, 1.7vw, 19px); line-height: 1.7; color: var(--ink); font-weight: 500; }
.tl-article strong { color: var(--ink); }
.tl-article ul { list-style: none; padding: 0; margin: 4px 0 16px; display: flex; flex-direction: column; gap: 10px; }
.tl-article ul li {
  position: relative;
  padding-left: 34px;
  font-size: 16px;
  line-height: 1.66;
  color: var(--ink-body);
}
.tl-article ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--brand-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%230464ad' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5.5 5.5L20 7'/%3E%3C/svg%3E") center no-repeat;
}

/* A worked example, written as a blockquote in the editor. */
.tl-article blockquote {
  margin: 22px 0 16px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: 14px;
  padding: 20px 22px;
}
.tl-article blockquote p { font-size: 15.5px; line-height: 1.7; margin: 0 0 8px; }
.tl-article blockquote p:last-child { margin: 0; }
.tl-article blockquote strong { color: var(--brand); }

.tl-article table {
  width: 100%;
  border-collapse: collapse;
  min-width: 460px;
  font-size: 15px;
}
.tl-article .tl-table,
.tl-article figure.wp-block-table {
  overflow-x: auto;
  margin: 6px 0 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(20, 35, 47, .04), 0 8px 22px rgba(20, 35, 47, .07);
}
.tl-article thead tr { background: var(--ink-navy); }
.tl-article th { text-align: left; padding: 13px 16px; color: var(--on-navy-primary); font-weight: 700; }
.tl-article td { padding: 12px 16px; border-top: 1px solid var(--border); color: var(--ink-body); }
.tl-article tbody tr:nth-child(even) { background: var(--surface-alt); }
.tl-article td:first-child { color: var(--ink); font-weight: 700; }

/* ---------- FAQ ---------- */

.tl-faq { background: var(--surface-alt); border-bottom: 1px solid var(--border); }
.tl-faq__inner { max-width: 880px; margin: 0 auto; padding: clamp(44px, 5.4vw, 76px) clamp(16px, 3.5vw, 36px); }
.tl-faq__head { text-align: center; margin-bottom: clamp(22px, 2.8vw, 32px); }
.tl-faq__list { display: flex; flex-direction: column; gap: 10px; }
.tl-q {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(20, 35, 47, .04), 0 8px 22px rgba(20, 35, 47, .07);
}
.tl-q__trigger {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  padding: 19px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: inherit;
}
.tl-q__q { font-size: 16.5px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.tl-q__chip {
  flex: none;
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--surface-shell);
  color: var(--ink-muted);
}
/* A plus that becomes a minus, drawn rather than typed so it never
   inherits a font that has no matching glyph. */
.tl-q__chip::before,
.tl-q__chip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2.5px;
  border-radius: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 180ms ease, opacity 180ms ease;
}
.tl-q__chip::after { transform: translate(-50%, -50%) rotate(90deg); }
.tl-q__trigger[aria-expanded="true"] .tl-q__chip { background: var(--brand-wash); color: var(--brand); }
.tl-q__trigger[aria-expanded="true"] .tl-q__chip::after { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }
.tl-q__a[hidden] { display: none; }
.tl-q__a p { font-size: 15.5px; line-height: 1.7; color: var(--ink-body); margin: 0; padding: 0 22px 20px; }

/* ---------- other tools ---------- */

.tl-other { background: var(--surface); border-bottom: 1px solid var(--border); }
.tl-other__inner { max-width: 1220px; margin: 0 auto; padding: clamp(44px, 5.4vw, 76px) clamp(16px, 3.5vw, 36px); }
.tl-other__head { margin-bottom: 24px; }
.tl-other__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tl-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 20px 22px;
  box-shadow: 0 1px 2px rgba(20, 35, 47, .04), 0 8px 22px rgba(20, 35, 47, .07);
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}
.tl-card:hover {
  border-color: var(--brand);
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(20, 35, 47, .06), 0 18px 40px rgba(4, 100, 173, .16);
}
.tl-card__abbr {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.2px;
}
.tl-card__t { display: block; font-size: 16px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.tl-card__d { display: block; font-size: 14px; line-height: 1.5; color: var(--ink-body); }
@media (prefers-reduced-motion: reduce) {
  .tl-card { transition: none; }
  .tl-card:hover { transform: none; }
}

.tl-empty__inner { max-width: 700px; margin: 0 auto; padding: 80px 24px; text-align: center; }

/* ---------- breakpoints ---------- */

@media (max-width: 1000px) {
  .tl-calc { grid-template-columns: 1fr; }
  .tl-guide__inner { grid-template-columns: 1fr; }
  .tl-toc { display: none; }
  .tl-other__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .tl-proof__inner { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .tl-fields--2 { grid-template-columns: minmax(0, 1fr); }
  .tl-other__grid { grid-template-columns: 1fr; }
  .tl-inputs__head { align-items: flex-start; }
  .tl-article table { min-width: 380px; }
}

/* ============================================================
   FREE TOOLS HUB
   ------------------------------------------------------------
   Search and filter hide cards that are already in the page, so
   nothing here depends on script to be crawlable or readable.
   ============================================================ */

.tl-eyebrow--dark { background: var(--accent-on-dark); color: var(--accent); }

.th-top {
  background: linear-gradient(135deg, #F2F7FC 0%, #FFFFFF 46%, #FDF6E8 100%);
  border-bottom: 1px solid var(--border);
}
.th-top__inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: clamp(44px, 5.6vw, 84px) clamp(16px, 3.5vw, 36px) clamp(36px, 4.4vw, 56px);
}
.th-intro { max-width: 720px; }
.th-intro .tl-lead { margin-bottom: 26px; }

.th-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.th-search {
  flex: 1 1 320px;
  max-width: 520px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: 12px;
  padding: 0 16px;
  box-shadow: 0 1px 2px rgba(20, 35, 47, .04), 0 8px 22px rgba(20, 35, 47, .07);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.th-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(4, 100, 173, .12); }
.th-search svg { flex: none; }
.th-search__input {
  flex: 1;
  min-width: 0;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  border: none;
  outline: none;
  padding: 15px 0;
}

.th-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.th-chip {
  font-family: inherit;
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: 99px;
  padding: 10px 16px;
  min-height: 44px;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}
.th-chip:hover { border-color: var(--brand); color: var(--brand); }
.th-chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-navy-primary); }
.th-chip__n { font-weight: 600; opacity: .85; }   /* .75 put it at 4.15 on the brand blue */

/* ---------- list ---------- */

.th-list { background: var(--surface-alt); border-bottom: 1px solid var(--border); }
.th-list__inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: clamp(36px, 4.6vw, 64px) clamp(16px, 3.5vw, 36px) clamp(48px, 6vw, 88px);
}

.th-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
  background: var(--ink-navy);
  border-radius: 22px;
  padding: clamp(24px, 3.4vw, 40px);
  margin-bottom: 18px;
  box-shadow: 0 20px 44px rgba(3, 36, 74, .24);
  transition: transform 170ms ease;
}
.th-feature:hover { transform: translateY(-3px); }
.th-feature[hidden] { display: none; }
.th-feature__title {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
  font-weight: 800;
  color: var(--on-navy-primary);
  margin: 0 0 12px;
  letter-spacing: -1px;
}
.th-feature__text { font-size: 16.5px; line-height: 1.62; color: #D4E6F6; margin: 0 0 22px; max-width: 520px; }
.th-feature__btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink-darkest);
  font-size: 15.5px;
  font-weight: 800;
  padding: 14px 24px;
  border-radius: 11px;
  box-shadow: 0 10px 22px rgba(240, 165, 0, .3);
}
.th-feature:hover .th-feature__btn { background: #FFB81F; }

.th-sample {
  background: var(--surface-on-dark);
  border: 1px solid var(--border-on-dark);
  border-radius: 16px;
  padding: 18px 20px;
}
.th-sample__label {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--on-navy-tertiary);
  margin-bottom: 6px;
}
.th-sample__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.th-sample__row:first-of-type { border-top: 0; }
.th-sample__mark {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
}
.th-sample__mark[data-tone="bad"]  { background: #FBEDEC; color: #8E2620; }
.th-sample__mark[data-tone="warn"] { background: var(--accent-wash); color: var(--accent-ink); }
.th-sample__mark[data-tone="good"] { background: #E3F4E8; color: var(--positive); }
.th-sample__t { flex: 1; font-size: 14.5px; font-weight: 600; color: var(--on-navy-primary); }
.th-sample__s { font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.th-sample__s[data-tone="bad"]  { color: var(--accent); }
.th-sample__s[data-tone="warn"] { color: var(--on-navy-tertiary); }
.th-sample__s[data-tone="good"] { color: #7FD39B; }

.th-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.th-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--brand);
  border-radius: 16px;
  padding: 22px 22px 20px;
  box-shadow: 0 1px 2px rgba(20, 35, 47, .04), 0 8px 22px rgba(20, 35, 47, .07);
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}
.th-card:hover {
  border-color: var(--brand);
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(20, 35, 47, .06), 0 18px 40px rgba(4, 100, 173, .16);
}
.th-card[hidden] { display: none; }
.th-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.th-card__abbr {
  flex: none;
  min-width: 50px;
  height: 50px;
  padding: 0 8px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.2px;
}
.th-card__cat {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 7px;
  padding: 5px 9px;
  white-space: nowrap;
}
.th-card__t { font-size: 18px; line-height: 1.3; font-weight: 800; color: var(--ink); margin: 0 0 6px; letter-spacing: -.3px; }
.th-card__d { font-size: 14.5px; line-height: 1.58; color: var(--ink-body); margin: 0 0 16px; flex: 1; }
.th-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border-faint);
}
.th-card__sum { font-size: 13px; font-weight: 700; color: var(--ink-muted); }
.th-card__go { flex: none; font-size: 14.5px; font-weight: 700; color: var(--brand); }

.th-empty {
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: 16px;
  padding: 40px 20px;
}
.th-empty[hidden] { display: none; }
.th-empty__t { font-size: 17px; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.th-empty__d { font-size: 15px; color: var(--ink-body); margin-bottom: 16px; }
.th-empty__btn {
  font-family: inherit;
  cursor: pointer;
  background: var(--brand);
  color: var(--on-navy-primary);
  border: none;
  font-size: 14.5px;
  font-weight: 700;
  padding: 13px 20px;
  border-radius: 10px;
  min-height: 44px;
}
.th-empty__btn:hover { background: var(--brand-dark); }

@media (prefers-reduced-motion: reduce) {
  .th-feature, .th-card { transition: none; }
  .th-feature:hover, .th-card:hover { transform: none; }
}

@media (max-width: 1000px) {
  .th-feature { grid-template-columns: 1fr; }
  .th-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .th-grid { grid-template-columns: 1fr; }
  .th-search { max-width: none; }
}
