:root {
  color-scheme: light;
  --page: #f1f5fb;
  --surface: #ffffff;
  --surface-soft: #f6f8fc;
  --surface-blue: #edf4ff;
  --text: #172033;
  --muted: #59677b;
  --heading: #0f172a;
  --primary: #1f6feb;
  --primary-dark: #174db5;
  --accent: #6d28d9;
  --cyan: #0891b2;
  --success: #15803d;
  --danger: #dc2626;
  --warning: #d97706;
  --border: #d9e3f1;
  --border-strong: #b9cef3;
  --shadow: 0 16px 38px rgba(15, 35, 70, .10);
  --content: 1260px;
  --narrow: 930px;
  --radius: 22px;
}

html.theme-dark {
  color-scheme: dark;
  --page: #09111f;
  --surface: #111c2f;
  --surface-soft: #0e192a;
  --surface-blue: #142442;
  --text: #dbe7f7;
  --muted: #aebcd0;
  --heading: #f8fafc;
  --primary: #60a5fa;
  --primary-dark: #93c5fd;
  --accent: #a78bfa;
  --success: #4ade80;
  --danger: #fb7185;
  --warning: #fbbf24;
  --border: #304158;
  --border-strong: #3d5d8d;
  --shadow: 0 16px 42px rgba(0, 0, 0, .3);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; overflow-x: clip; background: radial-gradient(circle at 8% 12%, rgba(8, 145, 178, .07), transparent 28rem), radial-gradient(circle at 92% 18%, rgba(109, 40, 217, .07), transparent 30rem), var(--page); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; }
body.dark-mode { background: var(--page); color: var(--text); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #f59e0b; outline-offset: 3px; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 10000; padding: 10px 14px; border-radius: 10px; background: #fff; color: #1e3a8a; font-weight: 850; transform: translateY(-150%); transition: transform .2s ease; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: relative; overflow: hidden; padding: 31px 20px; color: #fff; background: linear-gradient(118deg, #061633 0%, #123b88 45%, #5420a4 100%); box-shadow: 0 10px 30px rgba(6, 22, 51, .28); }
.site-header::before { position: absolute; inset: 0; background: radial-gradient(circle at 18% 25%, rgba(34, 211, 238, .18), transparent 25rem), linear-gradient(90deg, transparent, rgba(255, 255, 255, .045), transparent); content: ""; }
.site-header::after { position: absolute; right: -75px; bottom: -170px; width: 370px; height: 370px; border: 58px solid rgba(255, 255, 255, .07); border-radius: 50%; content: ""; }
.header-inner { position: relative; z-index: 1; width: min(100%, var(--content)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { min-width: 0; display: flex; align-items: center; gap: 16px; color: #fff; text-decoration: none; }
.brand-logo { width: 82px; height: 82px; padding: 7px; flex: 0 0 auto; object-fit: contain; border: 1px solid rgba(255, 255, 255, .38); border-radius: 24px; background: rgba(255, 255, 255, .96); box-shadow: 0 15px 34px rgba(1, 9, 24, .34), inset 0 0 0 1px rgba(255, 255, 255, .7); }
.brand span { display: grid; }
.brand strong { font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.15; }
.brand small { margin-top: 5px; font-size: .98rem; opacity: .92; }
.theme-button { flex: 0 0 auto; min-height: 48px; padding: 10px 18px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 999px; background: rgba(255, 255, 255, .96); color: #102d6b; font-weight: 850; box-shadow: 0 10px 24px rgba(1, 9, 24, .25); }

.site-nav { position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid rgba(96, 165, 250, .22); background: rgba(5, 19, 45, .96); box-shadow: 0 8px 24px rgba(5, 19, 45, .24); backdrop-filter: blur(14px); }
.nav-inner { width: min(100%, var(--content)); margin: 0 auto; padding: 11px 16px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px; }
.nav-inner a { padding: 9px 13px; border-radius: 9px; color: #fff; text-decoration: none; font-weight: 800; }
.nav-inner a:hover, .nav-inner a[aria-current="page"] { background: linear-gradient(135deg, rgba(37, 99, 235, .92), rgba(109, 40, 217, .92)); box-shadow: 0 8px 18px rgba(1, 9, 24, .22); }

.section-inner { width: min(calc(100% - 32px), var(--content)); margin: 0 auto; }
.narrow-inner { width: min(calc(100% - 32px), var(--narrow)); }
.home-hero { padding: clamp(64px, 9vw, 105px) 0 54px; text-align: center; background: radial-gradient(circle at 50% 0, rgba(124, 58, 237, .13), transparent 34rem), linear-gradient(180deg, var(--surface-blue), var(--page)); }
.hero-inner { display: flex; align-items: center; flex-direction: column; }
.eyebrow { margin: 0 0 8px; color: var(--primary-dark); font-size: .82rem; font-weight: 900; letter-spacing: .13em; }
.home-hero h1 { max-width: 920px; margin: 0; color: var(--heading); font-size: clamp(2.4rem, 7vw, 4.35rem); line-height: 1.08; letter-spacing: -.035em; }
.hero-description { max-width: 790px; margin: 20px auto 27px; color: var(--muted); font-size: clamp(1.03rem, 2.3vw, 1.2rem); }
.search-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#searchBox { width: min(100%, 700px); min-height: 58px; padding: 15px 20px; border: 2px solid var(--border-strong); border-radius: 999px; background: var(--surface); color: var(--text); box-shadow: 0 10px 28px rgba(37, 99, 235, .11); outline: 0; }
#searchBox:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(37, 99, 235, .14); }
.primary-button { margin-top: 18px; min-height: 48px; padding: 12px 23px; border: 0; border-radius: 999px; color: #fff; background: linear-gradient(135deg, #2563eb, #7c3aed); font-weight: 850; text-decoration: none; box-shadow: 0 10px 24px rgba(37, 99, 235, .24); }
.inline-button { display: inline-flex; align-items: center; }
.trust-strip { width: min(100%, 960px); margin: 30px 0 0; padding: 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; border: 1px solid rgba(185, 206, 243, .78); border-radius: 20px; background: rgba(255, 255, 255, .56); box-shadow: 0 14px 35px rgba(30, 64, 175, .08); list-style: none; backdrop-filter: blur(10px); }
.trust-strip li { min-height: 47px; padding: 9px 12px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); color: var(--text); font-size: .86rem; font-weight: 760; }
.trust-strip li > span { color: var(--primary); font-size: 1rem; font-weight: 950; }
.trust-strip strong { color: var(--heading); font-size: .95rem; }
html.theme-dark .trust-strip { background: rgba(17, 28, 47, .66); }

.directory-section { padding: 68px 0 75px; text-align: center; }
.directory-section h2, .editorial-section h2, .standards-section h2, .faq-section h2 { margin: 0; color: var(--heading); font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; }
.section-description { max-width: 720px; margin: 14px auto 0; color: var(--muted); }
.directory-filter-panel { margin: 30px auto 8px; padding: 18px; border: 1px solid var(--border); border-radius: 22px; background: linear-gradient(145deg, rgba(37, 99, 235, .045), transparent 48%), var(--surface); box-shadow: 0 16px 38px rgba(15, 35, 70, .08); }
.filter-panel-heading { margin-bottom: 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; }
.filter-panel-heading > span { color: var(--heading); font-size: 1rem; font-weight: 900; }
.filter-panel-heading small { color: var(--muted); font-weight: 650; }
.categories { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.filter-btn, #sortBtn, #clearFiltersBtn { min-height: 44px; padding: 9px 13px; border-radius: 12px; font-weight: 800; transition: transform .18s ease, color .18s ease, background .18s ease, border-color .18s ease; }
.filter-btn { position: relative; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--primary-dark); text-align: left; }
.filter-btn[data-tooltip]::after { position: absolute; left: 50%; bottom: calc(100% + 8px); z-index: 30; max-width: min(290px, 86vw); padding: 7px 10px; border: 1px solid rgba(147, 197, 253, .45); border-radius: 8px; background: #07152e; color: #fff; content: attr(data-tooltip); font-size: .72rem; font-weight: 750; line-height: 1.35; text-align: center; white-space: normal; opacity: 0; pointer-events: none; transform: translate(-50%, 5px); transition: opacity .15s ease, transform .15s ease; box-shadow: 0 8px 22px rgba(2, 8, 23, .28); }
.filter-btn[data-tooltip]:hover::after, .filter-btn[data-tooltip]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.filter-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filter-count { min-width: 30px; padding: 2px 7px; border-radius: 999px; background: var(--surface-blue); color: var(--muted); font-size: .7rem; line-height: 1.5; text-align: center; }
.filter-btn.active .filter-count, .filter-btn:hover .filter-count { background: rgba(255, 255, 255, .2); color: #fff; }
.filter-btn:hover, .filter-btn.active { border-color: #2563eb; background: #2563eb; color: #fff; transform: translateY(-1px); }
.filter-secondary { display: none; }
.categories.show-all-categories .filter-secondary { display: flex; }
.category-toggle-btn { min-height: 44px; padding: 9px 13px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px dashed var(--border-strong); border-radius: 12px; background: var(--surface-blue); color: var(--primary-dark); font-weight: 850; }
.category-toggle-btn:hover { border-style: solid; border-color: var(--primary); background: var(--primary); color: #fff; }
.directory-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 9px; margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--border); }
#sortBtn { border: 2px solid #15803d; background: #15803d; color: #fff; }
#clearFiltersBtn { border: 2px solid #dc2626; background: var(--surface); color: var(--danger); }
#clearFiltersBtn:hover { background: #dc2626; color: #fff; }
#toolCount { margin: 23px 0 0; color: var(--heading); font-size: 1.25rem; font-weight: 900; }
#filterStatus { min-height: 25px; margin: 4px 0 0; color: var(--primary-dark); font-weight: 750; }
.load-more-button { min-height: 50px; margin: 32px auto 0; padding: 12px 24px; border: 1px solid rgba(147, 197, 253, .8); border-radius: 999px; background: linear-gradient(135deg, #0f3d91, #2563eb 55%, #6d28d9); color: #fff; font-weight: 900; box-shadow: 0 12px 26px rgba(30, 64, 175, .24); transition: transform .18s ease, box-shadow .18s ease; }
.load-more-button:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(30, 64, 175, .28); }
.load-more-button[hidden] { display: none; }
.tools { width: 100%; margin: 12px auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; align-items: stretch; text-align: left; }
.card { position: relative; isolation: isolate; min-width: 0; height: 100%; padding: 25px 20px 20px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(185, 206, 243, .9); border-radius: 24px; background: linear-gradient(180deg, rgba(239, 246, 255, .72), transparent 125px), var(--surface); box-shadow: var(--shadow); text-align: center; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.card::before { position: absolute; top: 0; left: 0; width: 100%; height: 5px; z-index: -1; background: linear-gradient(90deg, #06b6d4, #2563eb 52%, #7c3aed); content: ""; }
.card:hover { transform: translateY(-6px); border-color: #91b6f4; box-shadow: 0 24px 55px rgba(24, 79, 170, .17); }
.tool-number { position: absolute; top: 17px; left: 17px; min-width: 76px; margin: 0; padding: 10px 13px; border: 1px solid rgba(255, 255, 255, .62); border-radius: 16px; background: linear-gradient(135deg, #0f3d91, #2563eb 58%, #6d28d9); color: #fff !important; font-size: 1.06rem; line-height: 1; font-weight: 950; letter-spacing: .045em; box-shadow: 0 9px 20px rgba(30, 64, 175, .28); }
.dynamic-badges { min-height: 38px; padding-left: 94px; display: flex; justify-content: flex-end; align-items: flex-start; flex-wrap: wrap; gap: 6px; }
.new-badge, .top-badge, .featured-badge { display: inline-flex; padding: 5px 9px; border: 1px solid; border-radius: 999px; font-size: .72rem; font-weight: 900; }
.new-badge { border-color: #86efac; background: #dcfce7; color: #166534; }
.top-badge { border-color: #fdba74; background: #fff7ed; color: #9a3412; }
.featured-badge { border-color: #c4b5fd; background: #f5f3ff; color: #6d28d9; }
.dynamic-logo-wrapper { position: relative; width: 150px; height: 150px; margin: 18px auto 21px; display: grid; place-items: center; padding: 11px; border: 1px solid rgba(147, 197, 253, .78); border-radius: 34px; background: linear-gradient(145deg, #ffffff 0%, #eff6ff 58%, #dbeafe 100%); box-shadow: 0 23px 36px rgba(30, 64, 175, .24), inset 7px 7px 13px rgba(255, 255, 255, .96), inset -7px -8px 15px rgba(37, 99, 235, .12); transform: perspective(760px) rotateX(4deg) rotateY(-5deg); transform-style: preserve-3d; transition: transform .25s ease, box-shadow .25s ease; }
.dynamic-logo-wrapper::before { position: absolute; inset: 12px -9px -9px 12px; z-index: -2; border-radius: 31px; background: linear-gradient(145deg, #0ea5e9, #2563eb 52%, #6d28d9); box-shadow: 0 13px 22px rgba(15, 23, 42, .24); content: ""; }
.dynamic-logo-wrapper::after { position: absolute; inset: -16px; z-index: -3; border-radius: 44px; background: radial-gradient(circle, rgba(37, 99, 235, .2), transparent 70%); content: ""; }
.dynamic-tool-card:hover .dynamic-logo-wrapper { transform: perspective(760px) rotateX(1deg) rotateY(-1deg) translateY(-4px); box-shadow: 0 28px 44px rgba(30, 64, 175, .28), inset 7px 7px 13px rgba(255, 255, 255, .96), inset -7px -8px 15px rgba(37, 99, 235, .12); }
.tool-logo { width: 126px !important; height: 126px !important; margin: 0 !important; object-fit: contain !important; border-radius: 24px; filter: saturate(1.08) contrast(1.03) drop-shadow(0 9px 8px rgba(15, 23, 42, .2)); transform: translateZ(16px); }
.dynamic-logo-placeholder { position: relative; isolation: isolate; width: 126px; height: 126px; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid rgba(255, 255, 255, .58); border-radius: 24px; color: #fff; background: radial-gradient(circle at 24% 18%, rgba(255, 255, 255, .34), transparent 27%), linear-gradient(145deg, hsl(var(--logo-hue, 197) 82% 46%) 0%, hsl(var(--logo-hue-alt, 221) 80% 55%) 48%, hsl(calc(var(--logo-hue-alt, 271) + 38) 78% 51%) 100%); font-size: 2.55rem; font-weight: 950; letter-spacing: -.06em; text-shadow: 0 3px 0 rgba(15, 23, 42, .28), 0 9px 18px rgba(15, 23, 42, .32); box-shadow: inset 8px 9px 14px rgba(255, 255, 255, .2), inset -10px -12px 18px rgba(30, 27, 75, .3), 0 14px 23px rgba(30, 64, 175, .24); transform: translateZ(16px); }
.dynamic-logo-placeholder::before { position: absolute; inset: 13px; z-index: -1; border: 1px solid rgba(255, 255, 255, .34); border-radius: 20px; background: linear-gradient(145deg, rgba(255, 255, 255, .18), rgba(30, 64, 175, .08)); box-shadow: inset 2px 2px 8px rgba(255, 255, 255, .16); content: ""; }
.dynamic-logo-placeholder::after { position: absolute; top: 8px; right: 12px; width: 9px; height: 9px; z-index: -1; border-radius: 50%; background: #fff; box-shadow: -78px 20px 0 -2px rgba(255, 255, 255, .65), -15px 89px 0 -3px rgba(255, 255, 255, .6), -92px 83px 0 -3px rgba(255, 255, 255, .55); opacity: .7; content: ""; }
.card h3 { margin: 0 0 9px; color: var(--primary-dark); font-size: 1.65rem; line-height: 1.18; letter-spacing: -.015em; }
.card p { margin: 7px 0; color: var(--muted); }
.category-line { font-size: .92rem; }
.category-line strong { color: var(--heading); }
.tool-description { min-height: 76px; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.rating { color: #b45309 !important; font-weight: 850; }
.rating-source-listed { color: var(--primary-dark) !important; }
.dynamic-tool-info { margin: 14px 0; padding: 10px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; border: 1px solid var(--border); border-radius: 17px; background: var(--surface-soft); text-align: left; }
.tool-fact { min-width: 0; min-height: 70px; padding: 10px 11px; display: grid; align-content: center; gap: 3px; border: 1px solid rgba(185, 206, 243, .72); border-radius: 12px; background: var(--surface); }
.tool-fact span { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .02em; }
.tool-fact strong { overflow-wrap: anywhere; color: var(--heading); font-size: .82rem; line-height: 1.35; }
.tool-fact-platforms { grid-column: 1 / -1; }
.platform-chip-list { display: flex; flex-wrap: wrap; gap: 5px; }
.platform-chip { padding: 5px 7px; display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-blue); color: var(--primary-dark); font-size: .72rem; font-weight: 880; line-height: 1.15; white-space: nowrap; }
.platform-chip > span { color: inherit; font-size: inherit; }
.platform-chip-source { color: var(--muted); background: var(--surface); }
.platform-chip-verified { border-color: rgba(21, 128, 61, .35); color: var(--success); background: rgba(22, 163, 74, .08); }
.platform-chip-more { color: var(--accent); }
.status-value { font-weight: 900; }
.status-yes { color: var(--success) !important; }
.status-no { color: var(--danger) !important; }
.status-check { color: var(--primary-dark) !important; }
.fact-link { color: var(--primary-dark); font-weight: 900; text-decoration: none; }
.fact-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.profile-status { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.profile-status-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: linear-gradient(135deg, #0ea5e9, #2563eb); box-shadow: 0 0 0 4px rgba(37, 99, 235, .1); }
.card a { text-decoration: none; }
.official-link { width: 100%; min-height: 46px; margin: 2px 0 8px; padding: 11px 13px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface-blue); color: var(--primary-dark); font-weight: 850; }
.last-updated { margin-top: auto !important; padding: 13px 0 5px; color: var(--primary-dark) !important; font-size: .82rem; font-weight: 780; }
.last-updated time { color: var(--heading); font-weight: 900; }
.fav-btn { width: 100%; min-height: 48px; margin: 8px 0 10px; padding: 11px 13px; border: 1px solid #f59e0b; border-radius: 13px; background: linear-gradient(135deg, #fff7ed, #ffedd5); color: #9a3412; font-weight: 900; box-shadow: 0 7px 15px rgba(217, 119, 6, .11); }
.fav-btn:hover { transform: translateY(-1px); }
.fav-btn.is-favorite { border-color: #15803d; background: linear-gradient(135deg, #15803d, #047857); color: #fff; }
.learn-btn { background: linear-gradient(135deg, #6d28d9, #7c3aed) !important; }
.official-button { background: linear-gradient(135deg, #075985, #0891b2) !important; }
.open-btn { background: linear-gradient(135deg, #1d4ed8, #2563eb 58%, #0ea5e9) !important; box-shadow: 0 10px 22px rgba(37, 99, 235, .22); }
.page-message { grid-column: 1 / -1; padding: 24px; display: grid; gap: 5px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); color: var(--muted); text-align: center; }
.error-message { border-color: #fecaca; color: var(--danger); }

.ad-placement { width: min(calc(100% - 32px), 970px); min-height: 118px; margin: 34px auto; padding: 13px; display: none; align-content: center; gap: 8px; border: 1px solid var(--border-strong); border-radius: 18px; background: var(--surface); text-align: center; box-shadow: 0 10px 26px rgba(15, 35, 70, .06); }
.ad-label { color: var(--muted); font-size: .68rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.ad-unit { width: 100%; min-height: 76px; display: grid; place-items: center; color: var(--muted); font-size: .8rem; }
.ad-unit .adsbygoogle { width: 100%; min-height: 76px; }
.ad-placement[data-ad-state="configured"] { display: grid; }
.ad-placement[data-ad-state="configured"] .ad-unit > span { display: none; }
.ad-placement-feed { grid-column: 1 / -1; width: 100%; min-height: 148px; margin: 6px 0; }
.ad-placement-multiplex { min-height: 210px; margin-top: 48px; margin-bottom: 48px; }

.editorial-section { padding: 70px 0; background: var(--surface-blue); }
.editorial-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 42px; align-items: center; }
.editorial-grid > div > p:not(.eyebrow) { color: var(--muted); }
.text-link { color: var(--primary-dark); font-weight: 850; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.editorial-points { display: grid; gap: 13px; }
.editorial-points article { padding: 17px; display: grid; gap: 4px; border: 1px solid var(--border); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow); }
.editorial-points strong { color: var(--heading); }
.editorial-points span { color: var(--muted); }
.standards-section { position: relative; overflow: hidden; padding: 76px 0; background: var(--page); }
.standards-section::before { position: absolute; top: -160px; right: -140px; width: 390px; height: 390px; border: 58px solid rgba(37, 99, 235, .055); border-radius: 50%; content: ""; }
.standards-heading { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 42px; align-items: end; }
.standards-heading > p { margin: 0; color: var(--muted); }
.standards-grid { position: relative; margin-top: 32px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.standards-grid article { min-height: 210px; padding: 22px; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 20px; background: linear-gradient(150deg, rgba(37, 99, 235, .06), transparent 52%), var(--surface); box-shadow: 0 14px 34px rgba(15, 35, 70, .08); }
.standards-grid article > span { width: 48px; height: 48px; margin-bottom: 20px; display: grid; place-items: center; border: 1px solid var(--border-strong); border-radius: 15px; background: var(--surface-blue); font-size: 1.4rem; box-shadow: 0 8px 18px rgba(37, 99, 235, .12); }
.standards-grid strong { color: var(--heading); font-size: 1.04rem; }
.standards-grid p { margin: 8px 0 0; color: var(--muted); font-size: .92rem; }
.source-note { margin: 25px 0 0; padding: 18px 20px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px 16px; border: 1px solid var(--border); border-radius: 17px; color: var(--muted); background: var(--surface-blue); font-size: .9rem; line-height: 1.6; text-align: left; }
.source-note strong { color: var(--heading); }
.source-note a { color: var(--primary); font-weight: 800; text-underline-offset: 3px; }
.faq-section { padding: 72px 0 80px; text-align: center; }
.faq-section details { margin: 13px 0; border: 1px solid var(--border); border-radius: 15px; background: var(--surface); text-align: left; box-shadow: 0 8px 24px rgba(15, 23, 42, .05); }
.faq-section summary { position: relative; padding: 18px 50px 18px 19px; color: var(--heading); font-weight: 850; cursor: pointer; list-style: none; }
.faq-section summary::-webkit-details-marker { display: none; }
.faq-section summary::after { position: absolute; right: 19px; content: "+"; color: var(--primary-dark); font-size: 1.25rem; }
.faq-section details[open] summary::after { content: "−"; }
.faq-section details p { margin: 0; padding: 0 19px 18px; color: var(--muted); }

.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.favorites-hero { padding: 70px 0 56px; background: radial-gradient(circle at 50% 0, rgba(245, 158, 11, .12), transparent 28rem), linear-gradient(180deg, var(--surface-blue), var(--page)); text-align: center; }
.favorites-hero h1 { margin: 0; color: var(--heading); font-size: clamp(2.4rem, 7vw, 4rem); line-height: 1.08; }
.favorites-hero p:not(.eyebrow) { max-width: 720px; margin: 16px auto; color: var(--muted); }
.favorites-toolbar { max-width: 680px; margin: 28px auto 0; padding: 18px; display: grid; grid-template-columns: 1fr auto; gap: 9px 14px; align-items: center; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); text-align: left; }
.favorites-toolbar label { grid-column: 1 / -1; color: var(--heading); font-weight: 850; }
.favorites-toolbar input { min-width: 0; min-height: 48px; padding: 11px 15px; border: 1px solid var(--border-strong); border-radius: 13px; background: var(--surface-soft); color: var(--text); }
.favorites-toolbar strong { color: var(--primary-dark); white-space: nowrap; }
.favorites-directory { min-height: 450px; padding: 50px 0 80px; }
.favorites-empty { max-width: 690px; margin: 0 auto; padding: 42px 24px; border: 1px solid var(--border); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); text-align: center; }
.favorites-empty > span { width: 76px; height: 76px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 22px; background: linear-gradient(135deg, #fff7ed, #ffedd5); color: #b45309; font-size: 2.5rem; }
.favorites-empty h2 { margin: 0; color: var(--heading); }
.favorites-empty p { color: var(--muted); }
.favorites-empty .primary-button { display: inline-flex; }

.page-main { width: 100%; max-width: calc(var(--narrow) + 32px); margin: 34px auto 54px; padding-inline: 16px; }
.page-card { min-width: 0; padding: clamp(25px, 6vw, 50px); overflow: hidden; overflow-wrap: anywhere; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.page-card > h1 { margin: 0; color: var(--heading); font-size: clamp(2.15rem, 6vw, 3.45rem); line-height: 1.12; }
.page-lead { margin: 15px 0 30px; color: var(--muted); font-size: 1.1rem; }
.page-section { padding: 24px 0; border-top: 1px solid var(--border); }
.page-section h2 { margin: 0 0 10px; color: var(--heading); font-size: 1.55rem; }
.page-section h3 { margin: 7px 0; color: var(--heading); }
.page-section p, .page-section li, .contact-item p { color: var(--muted); }
.page-section ul { margin: 10px 0 0; padding-left: 23px; }
.page-section li + li { margin-top: 7px; }
.page-card a:not(.primary-button) { color: var(--primary-dark); }
.updated-line { padding: 10px 13px; border-radius: 10px; background: var(--surface-blue); }
.notice { margin-top: 23px; padding: 15px 17px; border-left: 4px solid #2563eb; border-radius: 10px; background: var(--surface-blue); color: var(--text); }
.contact-grid, .method-grid, .criteria-grid { min-width: 0; display: grid; gap: 15px; }
.contact-grid { grid-template-columns: repeat(3, 1fr); }
.contact-item, .method-grid article, .criteria-grid article { min-width: 0; padding: 18px; overflow-wrap: anywhere; border: 1px solid var(--border); border-radius: 15px; background: var(--surface-soft); }
.contact-item h2 { margin: 0 0 8px; color: var(--heading); font-size: 1.2rem; }
.contact-email-box { border-left-color: #15803d; }
.method-grid { grid-template-columns: repeat(2, 1fr); }
.criteria-grid { grid-template-columns: repeat(2, 1fr); }
.status-label { display: inline-block; padding: 5px 8px; border-radius: 999px; background: #dcfce7; color: #166534; font-size: .72rem; font-weight: 900; }
.muted-label { background: var(--surface-blue); color: var(--primary-dark); }

.site-footer { position: relative; overflow: hidden; padding: 58px 20px 20px; background: linear-gradient(125deg, #05142f 0%, #0b2b5f 56%, #34156e 100%); color: #dbeafe; }
.site-footer::before { position: absolute; top: -180px; right: -130px; width: 420px; height: 420px; border: 65px solid rgba(255, 255, 255, .045); border-radius: 50%; content: ""; }
.footer-inner { position: relative; width: min(100%, var(--content)); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.45fr .7fr .85fr 1fr; gap: 34px; text-align: left; }
.footer-brand { display: flex; align-items: flex-start; gap: 14px; }
.footer-brand img { width: 62px; height: 62px; padding: 5px; flex: 0 0 auto; object-fit: contain; border-radius: 18px; background: rgba(255, 255, 255, .96); }
.footer-inner strong { display: block; margin-bottom: 9px; color: #fff; font-size: 1rem; letter-spacing: .01em; }
.footer-brand strong { margin: 0 0 4px; font-size: 1.28rem; }
.footer-inner p { margin: 4px 0; color: #bfd0e8; }
.footer-links { display: grid; align-content: start; gap: 7px; }
.footer-links a, .footer-contact a { color: #dbeafe; font-weight: 730; text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-email { color: #7dd3fc !important; font-weight: 850 !important; overflow-wrap: anywhere; }
.footer-badges { margin: 13px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; list-style: none; }
.footer-badges li { padding: 5px 8px; border: 1px solid rgba(147, 197, 253, .25); border-radius: 999px; color: #dbeafe; background: rgba(255, 255, 255, .06); font-size: .72rem; font-weight: 760; }
.footer-bottom { margin-top: 34px; padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; border-top: 1px solid rgba(191, 219, 254, .16); font-size: .86rem; }
.footer-bottom p { margin: 0; }
.top-button { position: fixed; right: 18px; bottom: 18px; z-index: 900; width: 50px; height: 50px; border: 0; border-radius: 50%; background: #2563eb; color: #fff; font-size: 1.25rem; font-weight: 900; box-shadow: 0 10px 25px rgba(15, 23, 42, .28); }
.top-button[hidden] { display: none; }

@media (max-width: 980px) {
  .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editorial-grid { grid-template-columns: 1fr; }
  .standards-heading { grid-template-columns: 1fr; gap: 16px; }
  .standards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .site-header { padding: 23px 15px; }
  .header-inner { align-items: flex-start; }
  .brand { gap: 11px; }
  .brand-logo { width: 58px; height: 58px; border-radius: 16px; }
  .brand strong { font-size: 1.42rem; }
  .brand small { font-size: .8rem; }
  .theme-button { min-height: 42px; padding: 9px 12px; font-size: .84rem; }
  .nav-inner { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; }
  .nav-inner a { flex: 0 0 auto; white-space: nowrap; }
  .home-hero { padding-top: 58px; }
  .tools { grid-template-columns: 1fr; }
  .trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .directory-filter-panel { padding: 14px; }
  .filter-panel-heading { align-items: flex-start; flex-direction: column; gap: 2px; }
  .categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dynamic-tool-info { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .directory-actions { justify-content: stretch; }
  .directory-actions button { flex: 1 1 150px; }
  .source-note { grid-template-columns: 1fr; }
  .ad-placement { width: min(calc(100% - 22px), 970px); min-height: 126px; margin-block: 24px; }
  .method-grid, .criteria-grid { grid-template-columns: 1fr; }
  .page-main { width: 100%; margin-top: 18px; padding-inline: 11px; }
  .page-card { border-radius: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .standards-grid { grid-template-columns: 1fr; }
  .standards-grid article { min-height: 0; }
  .footer-bottom { display: grid; }
  .favorites-toolbar { grid-template-columns: 1fr; }
  .favorites-toolbar label { grid-column: auto; }
  .favorites-toolbar strong { white-space: normal; }
}

@media (max-width: 420px) {
  .trust-strip { grid-template-columns: 1fr; }
  .categories { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
  .dynamic-tool-info { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .header-inner { display: grid; grid-template-columns: 1fr; }
  .theme-button { justify-self: start; }
  .brand small { max-width: 245px; }
}

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