/* IT Tools Center home page. Loaded only by index.html, after rva.css, so tool pages are unchanged.
   Same glass tokens as rva.css; headings use Bricolage Grotesque (self-hosted, SIL OFL, see fonts/LICENSE-bricolage-grotesque.txt).
   Accessibility target WCAG 2.2 AA: 44px targets, 3px focus ring from rva.css, severity shown by word plus shape. */
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/bricolage-grotesque-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/bricolage-grotesque-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/bricolage-grotesque-latin-800-normal.woff2') format('woff2'); }

body.tc { --display: 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif; --panel-solid: rgba(13, 20, 26, .92); }
.tc h1, .tc h2, .tc-row-text strong, .tc-step-n, .tc-num { font-family: var(--display); }
.tc header.site .wrap { max-width: 1168px; }
.tc nav.site a.tc-nav-cta { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.tc nav.site a.tc-nav-cta:hover { background: var(--accent-2); color: var(--accent-ink); }
.tc-main { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.tc-main, .tc-card, .tc-res, .tc-row-text { overflow-wrap: anywhere; }

/* Buttons */
.tc-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 1px solid transparent; font-size: 16px; cursor: pointer; font-family: inherit; }
.tc-btn-light { background: var(--ink); color: var(--accent-ink); }
.tc-btn-light:hover { background: #fff; color: var(--accent-ink); }
.tc-btn-ghost { border-color: var(--line-strong); color: var(--ink); font-weight: 600; }
.tc-btn-ghost:hover { border-color: var(--accent); color: var(--ink); }
.tc-btn-dark { background: var(--page); color: #fff; }
.tc-btn-dark:hover { background: #000; color: #fff; }
.tc-btn-outline-light { border: 2px solid #fff; color: #fff; }
.tc-btn-outline-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.tc-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); font: 600 14.5px var(--font); cursor: pointer; }
.tc-pill:hover { border-color: var(--accent); }
.tc-pill[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tc-link-btn { min-height: 44px; padding: 0 8px; border: 0; background: none; color: var(--accent); font: 600 14.5px var(--font); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

/* Hero */
.tc-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 64px 0 32px; }
.tc-hero h1 { font-size: clamp(36px, 5vw, 58px); font-weight: 800; line-height: 1.03; letter-spacing: -.025em; margin: 0 0 20px; }
.tc-hero h1 em { font-style: normal; color: var(--accent); }
.tc-lede { font-size: 19px; color: #c9d3df; margin: 0 0 26px; max-width: 34em; }
.tc-search { display: flex; max-width: 560px; margin: 0 0 18px; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; background: var(--field); }
.tc-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent); }
.tc-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 17px var(--font); padding: 14px 22px; }
.tc-search input:focus { outline: none; }
.tc-search button { border: 0; background: var(--accent); color: var(--accent-ink); font: 700 16px var(--font); padding: 0 24px; min-height: 56px; cursor: pointer; }
.tc-search button:hover { background: var(--accent-2); }
.tc-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }

/* Sample report */
.tc-sample { margin: 0; position: relative; }
.tc-sample-badge { position: absolute; top: -14px; right: 18px; z-index: 1; margin: 0; padding: 4px 12px; border-radius: 999px; background: var(--ink); color: var(--accent-ink); font-size: 12.5px; font-weight: 700; }
.tc-sample-card { background: var(--panel-solid); border: 1px solid var(--line); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); transform: rotate(-1deg); }
.tc-sample-head { display: flex; align-items: center; gap: 22px; margin-bottom: 22px; }
.tc-sample-head svg { flex: none; }
.tc-sample-tool { margin: 0; font-size: 13px; color: var(--faint); font-weight: 600; }
.tc-sample-title { margin: 2px 0 0; font: 700 24px/1.2 var(--display); }
.tc-sample-findings { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; }
.tc-sample-findings li { display: flex; gap: 12px; align-items: baseline; padding: 10px 14px; border-radius: 12px; }
.tc-sample-findings strong { font-size: 13px; min-width: 56px; }
.tc-sample-findings .sev-high { background: rgba(252, 165, 165, .08); }
.tc-sample-findings .sev-high > span:first-child, .tc-sample-findings .sev-high strong { color: var(--crit); }
.tc-sample-findings .sev-med { background: rgba(253, 224, 71, .07); }
.tc-sample-findings .sev-med > span:first-child, .tc-sample-findings .sev-med strong { color: var(--med); }
.tc-sample-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0; padding-top: 16px; border-top: 1px dashed rgba(230, 237, 245, .2); font-size: 14px; color: var(--muted); }
.tc-sample-foot strong { color: var(--ink); }
.tc-sample-foot span:last-child { color: var(--accent); font-weight: 600; }
.tc-sample figcaption { margin-top: 18px; font-size: 14px; color: var(--faint); }

.tc-privacy { margin: 0 0 40px; padding: 16px 20px; border-radius: 16px; background: var(--glass); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.tc-privacy p { margin: 0; }
.tc-privacy strong { color: var(--ink); }

/* Sections */
.tc-sec { padding: 0 0 64px; }
.tc-sec:focus { outline: none; }
.tc-sec h2 { font-size: 34px; letter-spacing: -.015em; line-height: 1.15; margin: 0 0 6px; }
.tc-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 14px; }
.tc-sec-head h2 { margin: 0; }
.tc-sub { margin: 0 0 18px; color: var(--muted); }
.tc-pills { display: flex; flex-wrap: wrap; gap: 8px; }

.tc-cats { padding: 0 0 56px; }
.tc-cats h2 { font: 600 15px var(--font); color: var(--muted); margin: 0 0 12px; }
.tc-cats ul { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.tc-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; font-size: 15px; }
.tc-chip:hover { border-color: var(--accent); color: var(--ink); }
.tc-chip span { color: var(--faint); }

/* Featured rows */
.tc-path + .tc-path { margin-top: 28px; }
.tc-path-note { margin: 0 0 14px; color: var(--muted); }
.tc-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.tc-rows li { border-bottom: 1px solid var(--line); }
.tc-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 18px 12px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.tc-row:hover { background: rgba(110, 192, 242, .07); color: var(--ink); }
.tc-num { font-size: 28px; font-weight: 800; color: var(--accent); }
.tc-row-text strong { display: block; font-size: 21px; font-weight: 700; line-height: 1.3; }
.tc-row:hover .tc-row-text strong { text-decoration: underline; text-underline-offset: 3px; }
.tc-row-text span { display: block; color: var(--muted); font-size: 15.5px; }
.tc-tag { display: inline-block; font-size: 13px; color: #c9d3df; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px 12px; white-space: nowrap; }

/* Recently added */
.tc-new-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tc-new-list li { padding: 20px; border-radius: 18px; background: var(--panel-solid); border: 1px solid var(--line); }
.tc-new-list h3 { margin: 10px 0 6px; font-size: 17px; line-height: 1.3; }
.tc-new-list h3 a { color: var(--ink); }
.tc-new-list p { margin: 0; font-size: 14.5px; color: var(--muted); }
.tc-new { display: inline-block; font-size: 12px; font-weight: 700; color: var(--accent-ink); background: var(--pass); border-radius: 999px; padding: 2px 10px; vertical-align: middle; }

/* How it works */
.tc-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.tc-steps li { padding: 28px; background: var(--panel-solid); }
.tc-steps li + li { border-left: 1px solid var(--line); }
.tc-step-n { display: block; margin-bottom: 6px; font-size: 44px; font-weight: 800; line-height: 1; color: #3b9be0; }
.tc-steps h3 { margin: 0 0 6px; font-size: 19px; }
.tc-steps p { margin: 0; color: var(--muted); }

/* All tools */
.tc-count { margin: 0; color: var(--muted); }
.tc-count:focus { outline: none; }
.tc-filters { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; padding: 18px; margin: 0 0 18px; border-radius: 20px; background: var(--panel-solid); border: 1px solid var(--line); }
.tc-filters label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.tc-filters select { min-height: 46px; min-width: 220px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--field); color: var(--ink); font: 15px var(--font); padding: 0 12px; }
.tc-filters fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.tc-filters legend { font-size: 14px; font-weight: 600; margin-bottom: 6px; padding: 0; }
.tc-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tc-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 16px; border-radius: 18px; background: var(--panel-solid); border: 1px solid var(--line); }
.tc-card:hover, .tc-card:focus-within { border-color: rgba(110, 192, 242, .55); }
.tc-card h3 { margin: 0; padding-right: 40px; font-size: 17px; line-height: 1.3; }
.tc-card h3 a { color: var(--ink); text-decoration: none; }
.tc-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 18px; }
.tc-card h3 a:hover { color: var(--accent); text-decoration: underline; }
.tc-card h3 .tc-new { margin-left: 8px; }
.tc-card p { margin: 0; font-size: 14.5px; color: var(--muted); }
.tc-card .tc-meta { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-top: auto; padding-top: 4px; font-size: 12.5px; }
.tc-card .tc-tag { font-size: 12.5px; padding: 2px 10px; white-space: normal; }
.tc-where { color: var(--faint); }
.tc-star { position: absolute; top: 6px; right: 6px; z-index: 1; width: 44px; height: 44px; border-radius: 999px; border: 0; background: transparent; color: var(--line-strong); font-size: 20px; line-height: 1; cursor: pointer; }
.tc-star:hover { color: var(--ink); }
.tc-star[aria-pressed="true"] { color: var(--med); }
.tc-empty { padding: 24px; border-radius: 18px; background: var(--panel-solid); border: 1px solid var(--line); }
.tc-empty p { margin: 0 0 12px; }
.tc-empty p:last-child { margin: 0; }

/* Resources */
.tc-res { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; border-top: 1px solid var(--line); }
.tc-res li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.tc-res span { display: block; font-size: 13px; color: var(--faint); }
.tc-res a { color: var(--ink); font-weight: 600; font-size: 17px; text-decoration: none; }
.tc-res a:hover { color: var(--accent); text-decoration: underline; }
.tc-more { margin: 16px 0 0; }

/* Note and closing call to action */
.tc-note { margin: 0 0 64px; padding: 36px; border-radius: 28px; background: var(--glass); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid rgba(110, 192, 242, .3); }
.tc-note blockquote { margin: 0; max-width: 46em; }
.tc-note p { font: 500 26px/1.3 var(--display); margin: 0 0 16px; }
.tc-note footer { color: var(--muted); }
.tc-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 40px; margin: 0 0 64px; border-radius: 28px; background: var(--blue); color: #fff; }
.tc-cta > div { max-width: 42em; }
.tc-cta h2 { font-size: 32px; letter-spacing: -.015em; margin: 0 0 8px; color: #fff; }
.tc-cta p { margin: 0; }
.tc-cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* Responsive */
@media (max-width: 1000px) { .tc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tc-new-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .tc-hero { grid-template-columns: 1fr; padding-top: 40px; }
  .tc-sample-card { transform: none; }
  .tc-steps { grid-template-columns: 1fr; }
  .tc-steps li + li { border-left: 0; border-top: 1px solid var(--line); }
  .tc-res { grid-template-columns: 1fr; }
  .tc-row { grid-template-columns: 36px minmax(0, 1fr); }
  .tc-row .tc-tag { grid-column: 2; justify-self: start; }
}
@media (max-width: 640px) {
  .tc-cards, .tc-new-list { grid-template-columns: 1fr; }
  .tc-filters select { min-width: 0; width: 100%; }
  .tc-filters label { width: 100%; }
  .tc-sec h2 { font-size: 28px; }
  .tc-note, .tc-cta { padding: 26px; }
  .tc-note p { font-size: 22px; }
}

/* Fallbacks */
@media (prefers-reduced-transparency: reduce) { .tc-privacy, .tc-note { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; } }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .tc-privacy, .tc-note { background: var(--surface); } }
@media (forced-colors: active) {
  .tc-card, .tc-new-list li, .tc-steps, .tc-filters, .tc-sample-card, .tc-note, .tc-cta, .tc-privacy, .tc-empty { border: 1px solid CanvasText; }
  .tc-pill[aria-pressed="true"] { forced-color-adjust: none; background: Highlight; color: HighlightText; border-color: Highlight; }
  .tc-star[aria-pressed="true"] { forced-color-adjust: none; color: Highlight; }
}
@media print {
  body.tc { background: #fff; color: #000; }
  .tc-search, .tc-filters, .tc-hero-ctas, .tc-pills, .tc-star, .tc-cta, header.site, .skip { display: none !important; }
  .tc-path[hidden] { display: block !important; }
  .tc-card, .tc-new-list li, .tc-steps li, .tc-sample-card, .tc-note, .tc-privacy { background: #fff !important; color: #000; border: 1px solid #ccc; box-shadow: none; transform: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .tc-card p, .tc-res span, .tc-sub, .tc-where, .tc-steps p, .tc-row-text span { color: #333 !important; }
  .tc a, .tc-card h3 a, .tc-res a { color: #0b4f8a; }
}
