:root {
  color-scheme: light;
  --bg: #f5f7f9;
  --surface: #ffffff;
  --surface-soft: #eef3f3;
  --text: #17202a;
  --muted: #5c6673;
  --line: #d8dee7;
  --primary: #0f766e;
  --primary-dark: #0b5f59;
  --accent: #c2410c;
  --focus: #2563eb;
  --max: 1180px;
  --header: 64px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }
button, input { font: inherit; }

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 48%, transparent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--text);
  color: #fff;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: var(--header);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(12px);
}

.header-inner {
  width: min(calc(100% - 32px), var(--max));
  min-height: var(--header);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 30px;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 760;
  font-size: 21px;
  white-space: nowrap;
}
.brand-mark { color: var(--accent); }

.main-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.main-nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-button {
  width: 40px;
  height: 40px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 22px;
}
.icon-button:hover { background: var(--surface-soft); border-color: var(--line); }
.menu-button { display: none; }

.container { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; }

.page-intro {
  padding: 58px 0 32px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.page-intro .container { max-width: 980px; margin-left: max(16px, calc((100% - var(--max)) / 2)); }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-weight: 700; font-size: 14px; }
h1, h2, h3 { line-height: 1.28; margin-top: 0; letter-spacing: 0; }
h1 { margin-bottom: 16px; font-size: clamp(30px, 4vw, 48px); }
h2 { margin-bottom: 14px; font-size: 25px; }
h3 { margin-bottom: 8px; font-size: 18px; }
.lead { max-width: 760px; margin: 0; color: var(--muted); font-size: 18px; }

.search-shell { margin-top: 28px; max-width: 760px; position: relative; }
.search-label { display: block; margin-bottom: 8px; font-weight: 680; }
.search-input {
  width: 100%;
  min-height: 54px;
  border: 1px solid #aeb8c5;
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  padding: 0 52px 0 16px;
}
.search-input:focus { border-color: var(--focus); }
.search-clear { position: absolute; right: 8px; bottom: 7px; width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; color: var(--muted); }
.search-clear[hidden] { display: none; }

.search-results { margin-top: 12px; border: 1px solid var(--line); background: var(--surface); }
.search-results[hidden] { display: none; }
.search-status { margin: 0; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.search-list { list-style: none; margin: 0; padding: 0; }
.search-list li + li { border-top: 1px solid var(--line); }
.search-list a { display: block; padding: 12px 14px; color: var(--text); text-decoration: none; }
.search-list a:hover { background: var(--surface-soft); }
.search-list small { display: block; color: var(--muted); }

.category-strip { padding: 28px 0; border-bottom: 1px solid var(--line); }
.category-links { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); background: var(--surface); }
.category-link { min-width: 0; padding: 16px; color: var(--text); text-decoration: none; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.category-link:nth-child(5n) { border-right: 0; }
.category-link:nth-last-child(-n+5) { border-bottom: 0; }
.category-link:hover { background: var(--surface-soft); }
.category-link strong, .category-link span { display: block; }
.category-link span { margin-top: 2px; color: var(--muted); font-size: 13px; }

.content-section { padding: 44px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-heading p { margin: 0; color: var(--muted); }
.section-heading a { white-space: nowrap; }

.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--surface); }
.tool-item { min-width: 0; padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.tool-item:nth-child(3n) { border-right: 0; }
.tool-item-title { display: flex; align-items: center; gap: 10px; }
.tool-initial { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; background: var(--surface-soft); color: var(--primary); font-weight: 800; }
.tool-item h3 { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.tool-item h3 a { color: var(--text); text-decoration: none; }
.tool-domain { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.tool-summary { margin: 0; color: var(--muted); font-size: 15px; }
.tool-meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tool-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.tool-tag { font-size: 12px; color: var(--muted); }
.tool-link { white-space: nowrap; font-size: 14px; font-weight: 680; }

.promo { margin: 42px auto; max-width: 1200px; }
.promo-label { margin: 0 0 8px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .03em; }
.promo-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(190px, .72fr) minmax(0, 1.75fr) auto;
  align-items: center;
  gap: 28px;
  min-height: 176px;
  padding: 26px 28px;
  overflow: hidden;
  border: 1px solid #2a6fa7;
  border-radius: 14px;
  background:
    radial-gradient(circle at 88% 28%, rgb(45 212 191 / 20%), transparent 30%),
    linear-gradient(112deg, #071322 0%, #0b1931 47%, #17235b 72%, #123b49 100%);
  color: #f8fbff;
  text-decoration: none;
  box-shadow: 0 18px 40px rgb(7 19 34 / 12%);
}
.promo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 0 46%, rgb(255 255 255 / 3%) 46% 47%, transparent 47% 100%);
}
.promo-card:hover { color: #fff; border-color: #42cddd; box-shadow: 0 20px 44px rgb(7 19 34 / 18%); }
.promo-brand, .promo-copy, .promo-cta { position: relative; z-index: 1; }
.promo-brand { display: flex; align-items: center; gap: 13px; min-width: 0; }
.promo-brand-logo {
  width: 72px; height: 72px; flex: 0 0 72px; display: block; object-fit: contain;
  filter: drop-shadow(0 10px 18px rgb(28 140 255 / 15%));
}
.promo-brand-text { display: grid; gap: 2px; }
.promo-brand-text strong { color: #fff; font-size: clamp(20px, 2vw, 27px); line-height: 1.18; letter-spacing: -.02em; }
.promo-brand-text small { color: #6ee7ec; font-size: 10px; font-weight: 760; letter-spacing: .08em; }
.promo-copy { display: grid; gap: 5px; min-width: 0; }
.promo-kicker { color: #77e2ea; font-weight: 760; letter-spacing: .08em; }
.promo-title { color: #fff; font-size: clamp(20px, 2.1vw, 29px); line-height: 1.3; letter-spacing: -.015em; }
.promo-desc { max-width: 620px; color: #c7d5e8; font-size: 14px; line-height: 1.6; }
.promo-chips { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 5px; }
.promo-chips span { padding: 3px 9px; border: 1px solid rgb(111 225 235 / 34%); border-radius: 999px; color: #d9f8fa; font-size: 11px; line-height: 1.5; }
.promo-cta {
  min-width: 164px; padding: 14px 16px; border-radius: 12px; text-align: center;
  background: linear-gradient(135deg, #39bdf4, #56dfc7); color: #052037;
}
.promo-cta small, .promo-cta strong { display: block; }
.promo-cta small { margin-bottom: 2px; font-size: 10px; font-weight: 700; opacity: .75; }
.promo-cta strong { font-size: 14px; line-height: 1.35; }

.workflow-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.workflow-link { padding: 18px; color: var(--text); text-decoration: none; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.workflow-link:hover { background: var(--surface); }
.workflow-link strong { display: block; margin-bottom: 4px; }
.workflow-link span { color: var(--muted); font-size: 14px; }

.breadcrumbs { padding: 20px 0 0; color: var(--muted); font-size: 14px; }
.breadcrumbs ol { list-style: none; display: flex; gap: 7px; flex-wrap: wrap; padding: 0; margin: 0; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 7px; color: #9aa4b2; }

.category-head, .article-head { padding: 36px 0 30px; border-bottom: 1px solid var(--line); background: var(--surface); }
.category-head h1, .article-head h1 { max-width: 850px; margin-bottom: 14px; font-size: clamp(30px, 4vw, 43px); }
.category-head p, .article-head p { max-width: 760px; color: var(--muted); margin: 0; }

.official-line { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; margin-top: 22px; }
.official-domain { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 17px; border: 1px solid var(--primary); background: var(--primary); color: #fff; text-decoration: none; font-weight: 720; border-radius: 6px; }
.primary-button:hover { background: var(--primary-dark); color: #fff; }
.third-party-note { margin-top: 13px !important; font-size: 13px; }

.tool-main { padding: 40px 0 0; }
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(220px, 1fr); gap: 64px; align-items: start; }
.article-body section { padding: 0 0 34px; margin: 0 0 34px; border-bottom: 1px solid var(--line); }
.article-body p { margin: 0 0 16px; }
.article-body ul, .article-body ol { margin: 0; padding-left: 22px; }
.article-body li + li { margin-top: 8px; }
.article-aside { position: sticky; top: 92px; }
.article-aside h2 { font-size: 17px; }
.article-aside ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.article-aside li { border-bottom: 1px solid var(--line); }
.article-aside a { display: block; padding: 10px 0; text-decoration: none; }
.article-aside small { display: block; color: var(--muted); }

.related-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.related-list a { min-width: 0; padding: 15px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.related-list a:hover { background: var(--surface-soft); }
.related-list span { display: block; color: var(--muted); font-size: 13px; }

.plain-page { max-width: 780px; padding: 42px 0 64px; }
.plain-page section + section { margin-top: 34px; }
.plain-page h2 { font-size: 23px; }

.site-footer { margin-top: 64px; border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { display: grid; grid-template-columns: 1.35fr 0.9fr 0.9fr 1.2fr; gap: 30px; padding: 34px 0; }
.footer-inner h2 { font-size: 16px; margin-bottom: 8px; }
.footer-inner p, .footer-inner a { font-size: 14px; }
.footer-inner p { margin: 0; color: var(--muted); }
.footer-links { display: grid; gap: 7px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-bottom { padding: 14px 0 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

.favorite-drawer { position: fixed; inset: 0; z-index: 60; display: grid; grid-template-columns: 1fr min(420px, 92vw); }
.favorite-drawer[hidden] { display: none; }
.drawer-scrim { border: 0; background: rgb(23 32 42 / 45%); }
.drawer-panel { background: var(--surface); padding: 24px; overflow-y: auto; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 20px; }
.favorite-list { list-style: none; margin: 0; padding: 0; }
.favorite-list li { border-bottom: 1px solid var(--line); padding: 12px 0; }
.favorite-list a { display: block; color: var(--text); text-decoration: none; }
.favorite-list small { display: block; color: var(--muted); }
.favorite-button { border: 1px solid var(--line); background: transparent; min-height: 38px; padding: 0 11px; cursor: pointer; }
.favorite-button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: #fff7ed; }

@media (max-width: 900px) {
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-item:nth-child(3n) { border-right: 1px solid var(--line); }
  .tool-item:nth-child(2n) { border-right: 0; }
  .category-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .category-link:nth-child(5n) { border-right: 1px solid var(--line); }
  .category-link:nth-child(3n) { border-right: 0; }
  .category-link:nth-last-child(-n+5) { border-bottom: 1px solid var(--line); }
  .category-link:nth-last-child(-n+3) { border-bottom: 0; }
  .workflow-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: 1fr; gap: 20px; }
  .article-aside { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .header-inner { width: min(calc(100% - 24px), var(--max)); gap: 12px; }
  .main-nav { display: none; position: absolute; top: var(--header); left: 0; right: 0; padding: 12px 16px 18px; background: var(--surface); border-bottom: 1px solid var(--line); }
  .main-nav[data-open="true"] { display: grid; gap: 0; }
  .main-nav a { padding: 10px 0; }
  .header-actions { margin-left: auto; }
  .menu-button { display: inline-grid; place-items: center; }
  .container { width: min(calc(100% - 24px), var(--max)); }
  .page-intro { padding: 36px 0 24px; }
  .page-intro .container { margin: 0 auto; }
  h1 { font-size: 32px; }
  .lead { font-size: 16px; }
  .category-links { grid-template-columns: 1fr 1fr; }
  .category-link:nth-child(3n) { border-right: 1px solid var(--line); }
  .category-link:nth-child(2n) { border-right: 0; }
  .category-link:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .category-link:last-child { border-bottom: 0; grid-column: 1 / -1; border-right: 0; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-item, .tool-item:nth-child(2n), .tool-item:nth-child(3n) { border-right: 0; }
  .tool-item:last-child { border-bottom: 0; }
  .section-heading { align-items: start; flex-direction: column; }
  .promo-card { grid-template-columns: 1fr; gap: 18px; min-height: 0; padding: 22px; }
  .promo-brand { padding-right: 100px; }
  .promo-brand-logo { width: 58px; height: 58px; flex-basis: 58px; }
  .promo-desc { font-size: 13px; }
  .promo-cta { min-width: 0; width: 100%; }
  .workflow-list { grid-template-columns: 1fr; }
  .related-list { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .official-line { align-items: stretch; flex-direction: column; }
  .primary-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

.compact-tool-body section { padding-bottom: 26px; margin-bottom: 26px; }
.consent-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; max-width: 920px; margin: 0 auto; padding: 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 12px 38px rgb(23 32 42 / 18%); }
.consent-banner[hidden] { display: none; }
.consent-banner strong { display: block; margin-bottom: 4px; }
.consent-banner p { margin: 0; color: var(--muted); font-size: 14px; }
.consent-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.consent-actions button:not(.primary-button) { min-height: 42px; padding: 0 14px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.consent-actions a { font-size: 13px; white-space: nowrap; }
@media (max-width: 720px) {
  .consent-banner { align-items: stretch; flex-direction: column; }
  .consent-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .consent-actions a { grid-column: 1 / -1; }
}

.source-note{margin:1.15rem 0;padding:.85rem 1rem;border-left:3px solid var(--border,#d9dde5);background:var(--surface-soft,#f7f8fa);font-size:.92rem;line-height:1.7}.source-note a{text-decoration:underline;text-underline-offset:2px}

/* Search task shortcuts and interaction polish */
.search-shortcuts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}
.search-shortcuts button {
  min-height: 34px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.search-shortcuts button:hover { border-color: var(--primary); color: var(--primary-dark); }
.search-list a[aria-selected="true"] { background: var(--surface-soft); }
.workflow-link[href] { cursor: pointer; }
.workflow-link[href]:hover { background: var(--surface-soft); }
.friend-links a::after { content: " ↗"; font-size: 0.85em; color: var(--muted); }

@media (max-width: 720px) {
  .search-shortcuts { gap: 6px; }
  .search-shortcuts > span { width: 100%; }
}

.guide-callout{margin:1.5rem 0;padding:1rem 1.1rem;border:1px solid var(--border,#d7e2df);border-radius:12px;background:var(--surface-soft,#f7faf9)}.guide-callout strong{margin-right:.35rem}.guide-callout a{font-weight:700}.guide-callout a:hover{text-decoration:underline}


/* V7 discovery and keyboard navigation */
.content-section[id] { scroll-margin-top: calc(var(--header) + 18px); }
.directory-jump { display:flex; flex-wrap:wrap; gap:8px 12px; align-items:center; margin-top:22px; padding-top:18px; border-top:1px solid var(--line); }
.directory-jump-label { color:var(--muted); font-size:14px; }
.directory-jump a { font-size:14px; text-decoration:none; }
.directory-jump a:hover { text-decoration:underline; text-underline-offset:3px; }
.guide-filter-wrap { padding-top:20px; }
.guide-filter { display:flex; flex-wrap:wrap; gap:8px; }
.guide-filter button { min-height:38px; padding:6px 12px; border:1px solid var(--line); border-radius:999px; background:var(--surface); color:var(--text); cursor:pointer; }
.guide-filter button:hover, .guide-filter button[aria-pressed="true"] { border-color:var(--primary); color:var(--primary-dark); background:var(--surface-soft); }
.guide-filter-status { margin:10px 0 0; color:var(--muted); font-size:14px; }
.tool-item[hidden] { display:none; }
.search-list a[aria-selected="true"] { outline:2px solid var(--focus); outline-offset:-2px; }
@media (max-width:720px) {
  .directory-jump { gap:7px 10px; }
  .directory-jump-label { width:100%; }
  .guide-filter { flex-wrap:nowrap; overflow-x:auto; padding-bottom:5px; scrollbar-width:thin; }
  .guide-filter button { white-space:nowrap; flex:0 0 auto; }
}

.verdict-box{margin:0 0 1.5rem;padding:1rem 1.1rem;border:1px solid var(--border,#d7e2df);border-radius:14px;background:linear-gradient(180deg,var(--surface-soft,#f7faf9),#fff)}.verdict-box strong{display:block;margin-bottom:.35rem;font-size:.9rem;letter-spacing:.03em;color:var(--accent,#0f766e)}.verdict-box p{margin:0;line-height:1.75}.value-grid .tool-item{min-height:100%}

/* V11 recovery links reuse the search shortcut visual language. */
.search-shortcuts a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}
.search-shortcuts a:hover,
.search-shortcuts a:focus-visible { border-color: var(--primary); color: var(--primary-dark); }

/* V13: privacy controls, long-directory rendering, and accessible footer actions */
.footer-action {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0;
  text-align: left;
  cursor: pointer;
}
.footer-action:hover,
.footer-action:focus-visible { color: var(--primary); text-decoration: underline; }

@supports (content-visibility: auto) {
  .tools-directory-main .tool-item {
    content-visibility: auto;
    contain-intrinsic-size: auto 220px;
  }
}

/* Sponsor blocks stay visible without becoming sticky or interruptive. */
.promo + .content-section, .promo + .tool-directory { margin-top: 0; }

.task-focus-strip { margin: 0 auto 28px; max-width: 1200px; padding: 0 24px; }
.task-focus-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); background: #fff; }
.task-focus-link { display: block; padding: 16px 18px; color: var(--text); text-decoration: none; border-right: 1px solid var(--line); }
.task-focus-link:last-child { border-right: 0; }
.task-focus-link:hover { background: var(--surface-soft); }
.task-focus-link strong { display: block; margin-bottom: 4px; font-size: 15px; }
.task-focus-link span { color: var(--muted); font-size: 13px; line-height: 1.55; }
.home-start-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.home-start-link { padding: 15px; color: var(--text); text-decoration: none; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.home-start-link:hover { background: var(--surface-soft); }
.home-start-link strong { display:block; margin-bottom:3px; font-size:14px; }
.home-start-link span { display:block; color:var(--muted); font-size:12px; line-height:1.5; }
@media (max-width: 760px) {
  .task-focus-strip { padding: 0 18px; }
  .task-focus-grid { grid-template-columns: 1fr; }
  .task-focus-link { border-right: 0; border-bottom: 1px solid var(--line); }
  .task-focus-link:last-child { border-bottom: 0; }
  .home-start-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* V19 sponsor placement refinements */
.tool-grid > .promo { grid-column: 1 / -1; width: 100%; margin: 26px 0; }
.promo-compact .promo-card { min-height: 124px; padding-top: 20px; padding-bottom: 20px; }
.promo-compact .promo-brand-logo { width: 58px; height: 58px; flex-basis: 58px; }
.promo-compact .promo-title { font-size: clamp(18px, 1.7vw, 23px); }
.promo-compact .promo-desc { font-size: 13px; }
@media (max-width: 720px) { .tool-grid > .promo { margin: 20px 0; } }

/* V31 — light technology directory system: bright, dense, restrained */
:root {
  color-scheme: light;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-soft: #f1f4f9;
  --text: #182033;
  --muted: #667085;
  --line: #e3e7ef;
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --accent: #2563eb;
  --focus: #2563eb;
}

body {
  min-height: 100vh;
  background: #f6f7fb;
}

.site-header {
  border-bottom-color: rgb(15 23 42 / 8%);
  background: rgb(255 255 255 / 88%);
  box-shadow: 0 1px 0 rgb(15 23 42 / 3%);
  backdrop-filter: blur(16px) saturate(140%);
}
.brand { letter-spacing: -.015em; }
.brand-mark {
  color: var(--primary);
  text-shadow: none;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { color: var(--primary); }
.icon-button { border-radius: 10px; }
.icon-button:hover {
  background: #f4f6fb;
  border-color: #e4e8f0;
}

.page-intro,
.category-head,
.article-head {
  position: relative;
  overflow: hidden;
  border-bottom-color: #e6e9f0;
  background:
    radial-gradient(circle at 82% 10%, rgb(99 102 241 / 10%), transparent 25rem),
    radial-gradient(circle at 58% -12%, rgb(56 189 248 / 10%), transparent 22rem),
    linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
}
.page-intro::before,
.category-head::before,
.article-head::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .42;
  background-image:
    linear-gradient(rgb(79 70 229 / 4%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(79 70 229 / 4%) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 88%);
}
.page-intro .container,
.category-head .container,
.article-head .container { position: relative; z-index: 1; }
.eyebrow {
  color: var(--primary);
  letter-spacing: .04em;
  font-size: 13px;
}
h1 {
  color: #111827;
  text-wrap: balance;
  letter-spacing: -.035em;
  text-shadow: none;
}
h2 { text-wrap: balance; letter-spacing: -.02em; }
.lead { color: #5f6b7c; }

.search-shell { max-width: 800px; }
.search-input {
  min-height: 58px;
  border: 1px solid #d5dbe7;
  border-radius: 14px;
  background: rgb(255 255 255 / 96%);
  color: var(--text);
  box-shadow: 0 10px 30px rgb(31 41 55 / 7%);
}
.search-input::placeholder { color: #98a2b3; }
.search-input:focus {
  border-color: #818cf8;
  box-shadow: 0 0 0 4px rgb(99 102 241 / 10%), 0 12px 34px rgb(31 41 55 / 8%);
}
.search-results {
  overflow: hidden;
  border-color: #dfe4ec;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 22px 55px rgb(31 41 55 / 13%);
}
.search-shortcuts button,
.search-shortcuts a,
.guide-filter button {
  border-color: #e1e5ed;
  background: #fff;
  color: #475467;
  border-radius: 999px;
}
.search-shortcuts button:hover,
.search-shortcuts a:hover,
.guide-filter button:hover,
.guide-filter button[aria-pressed="true"] {
  border-color: #a5b4fc;
  background: #f4f4ff;
  color: #4338ca;
  box-shadow: none;
}

.category-strip {
  border-bottom-color: #e9ecf2;
  background: #f8f9fc;
}
.category-links,
.tool-grid,
.task-focus-grid,
.home-start-grid,
.related-list,
.workflow-list {
  gap: 12px;
  border: 0;
  background: transparent;
}
.category-link,
.tool-item,
.task-focus-link,
.home-start-link,
.related-list a,
.workflow-link {
  position: relative;
  overflow: hidden;
  border: 1px solid #e3e7ef !important;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(15 23 42 / 3%);
}
.category-link::before,
.tool-item::before,
.home-start-link::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, #60a5fa, #8b5cf6);
  opacity: 0;
  transition: opacity .18s ease;
}
.category-link:hover::before,
.tool-item:hover::before,
.home-start-link:hover::before { opacity: 1; }
.category-link:hover,
.tool-item:hover,
.task-focus-link:hover,
.home-start-link:hover,
.related-list a:hover,
.workflow-link:hover {
  border-color: #cfd5e2 !important;
  background: #fff;
  box-shadow: 0 10px 26px rgb(15 23 42 / 8%);
  transform: translateY(-2px);
}
.category-link,
.tool-item,
.task-focus-link,
.home-start-link,
.related-list a,
.workflow-link,
.promo-card,
.primary-button {
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.category-link strong,
.tool-item h3 a,
.home-start-link strong,
.workflow-link strong { color: #1d2939; }
.category-link span,
.tool-domain,
.tool-summary,
.tool-tag,
.home-start-link span,
.workflow-link span { color: #667085; }
.tool-initial {
  border: 1px solid #e0e4ec;
  border-radius: 10px;
  background: linear-gradient(145deg, #f5f7ff, #eef4ff);
  color: #4f46e5;
  box-shadow: none;
}
.tool-item h3 a:hover,
.tool-link { color: #4f46e5; }

.content-section:nth-of-type(even) { background: transparent; }
.section-heading a { font-weight: 650; }

.promo {
  margin-top: 30px;
  margin-bottom: 30px;
}
.promo-label {
  color: #98a2b3;
  text-transform: none;
  letter-spacing: .02em;
}
.promo-card {
  border-color: #d8def0;
  background:
    radial-gradient(circle at 92% 8%, rgb(59 130 246 / 13%), transparent 28%),
    radial-gradient(circle at 62% 120%, rgb(139 92 246 / 10%), transparent 42%),
    linear-gradient(120deg, #ffffff 0%, #f7f9ff 56%, #f2f5ff 100%);
  color: #1d2939;
  box-shadow: 0 14px 36px rgb(30 41 59 / 8%);
}
.promo-card::before {
  background: linear-gradient(120deg, transparent 0 52%, rgb(79 70 229 / 3%) 52% 53%, transparent 53% 100%);
}
.promo-card::after { display: none; }
.promo-card:hover {
  color: #1d2939;
  border-color: #b7c1e3;
  box-shadow: 0 18px 44px rgb(30 41 59 / 11%);
  transform: translateY(-2px);
}
.promo-brand-logo {
  filter: drop-shadow(0 10px 20px rgb(59 130 246 / 12%));
}
.promo-brand-text strong { color: #1d2939; }
.promo-brand-text small { color: #4f46e5; }
.promo-kicker { color: #4f46e5; }
.promo-title { color: #172033; }
.promo-desc { color: #667085; }
.promo-chips span {
  border-color: #d7dded;
  background: rgb(255 255 255 / 62%);
  color: #475467;
}
.promo-cta {
  background: linear-gradient(135deg, #4f46e5, #2563eb);
  color: #fff;
  box-shadow: 0 8px 20px rgb(79 70 229 / 18%);
}

.primary-button {
  border-color: #4f46e5;
  border-radius: 10px;
  background: linear-gradient(135deg, #4f46e5, #2563eb);
  color: #fff;
  box-shadow: 0 7px 18px rgb(79 70 229 / 16%);
}
.primary-button:hover {
  background: linear-gradient(135deg, #4338ca, #1d4ed8);
  box-shadow: 0 10px 24px rgb(79 70 229 / 20%);
  transform: translateY(-1px);
}

.article-body section { border-bottom-color: #e8ebf1; }
.article-aside {
  padding: 18px;
  border: 1px solid #e1e5ec;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgb(15 23 42 / 5%);
  backdrop-filter: none;
}
.article-aside ul,
.article-aside li { border-color: #e7eaf0; }
.article-aside a:hover { color: #4f46e5; }
.source-note,
.guide-callout,
.verdict-box {
  border-color: #dfe4ef !important;
  background: linear-gradient(145deg, #fbfcff, #f5f7fc) !important;
}
.verdict-box strong { color: #4338ca; }

.site-footer {
  border-top-color: #e4e8ef;
  background: #fff;
}
.footer-bottom { border-top-color: #edf0f4; }
.footer-links a:hover { color: #4f46e5; }
.drawer-panel,
.consent-banner,
.main-nav[data-open="true"] {
  background: #fff;
  border-color: #e2e6ed;
}
.favorite-button {
  color: var(--text);
  border-radius: 10px;
}
.favorite-button[aria-pressed="true"] {
  border-color: #c4b5fd;
  color: #6d28d9;
  background: #f5f3ff;
}

@media (max-width: 720px) {
  .page-intro::before,
  .category-head::before,
  .article-head::before { background-size: 26px 26px; opacity: .32; }
  .main-nav { border-bottom-color: #e7eaf0; }
  .category-links,
  .tool-grid,
  .home-start-grid,
  .task-focus-grid,
  .related-list,
  .workflow-list { gap: 10px; }
  .promo { margin-top: 24px; margin-bottom: 24px; }
}
