:root {
  --paper: #f7f5ef;
  --surface: #fffdf8;
  --surface-strong: #fff;
  --ink: #17233b;
  --muted: #667085;
  --line: #dfe2df;
  --line-strong: #c8ceca;
  --blue: #214bd6;
  --blue-dark: #1637a4;
  --blue-pale: #eaf0ff;
  --orange: #f2663a;
  --orange-pale: #fff0e8;
  --green: #16836a;
  --green-pale: #e8f6f0;
  --yellow: #f5c748;
  --sidebar-width: 256px;
  --page-max: 1440px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgb(23 35 59 / 5%), 0 8px 24px rgb(23 35 59 / 5%);
  --shadow-md: 0 16px 46px rgb(23 35 59 / 10%);
  --font-body: "Aptos", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: "Georgia", "Songti SC", "STSong", serif;
}

/* Moderated public submission */
.submission-layout { max-width: 920px; }
.submission-masthead { padding: 48px; border-radius: 26px 8px 26px 8px; background: var(--ink); box-shadow: 9px 9px 0 var(--yellow); color: #fff; }
.submission-masthead h1 { margin: 8px 0 16px; font-family: var(--font-display); font-size: clamp(38px, 6vw, 68px); line-height: 1.04; }
.submission-masthead > p:last-child { max-width: 700px; margin: 0; color: #d9dfeb; }
.submission-notice { margin: 32px 0 0; padding: 16px 18px; border: 2px solid var(--ink); border-radius: 12px 4px 12px 4px; background: var(--orange-pale); }
.submission-notice-success { background: #e8f7eb; }
.submission-form { position: relative; display: grid; gap: 24px; margin-top: 36px; padding: 38px; border: 1px solid var(--line); border-radius: 22px 6px 22px 6px; background: var(--surface-strong); }
.submission-field { display: grid; gap: 8px; }
.submission-field label { font-weight: 900; }
.submission-field input,
.submission-field textarea { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #9aa4b3; border-radius: 9px 3px 9px 3px; background: #fff; color: var(--ink); font: inherit; }
.submission-field textarea { min-height: 112px; resize: vertical; }
.submission-help { margin: 0; color: var(--muted); font-size: 14px; }
.submission-consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-weight: 700; }
.submission-consent input { width: 20px; height: 20px; margin-top: 2px; }
.submission-button { min-height: 48px; justify-self: start; padding: 0 24px; border: 0; border-radius: 10px 3px 10px 3px; background: var(--ink); color: #fff; cursor: pointer; font: inherit; font-weight: 900; }
.submission-form input:focus-visible,
.submission-form textarea:focus-visible,
.submission-form button:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.submission-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
@media (max-width: 640px) {
  .submission-masthead { padding: 30px 22px; border-radius: 18px 6px 18px 6px; box-shadow: 6px 6px 0 var(--yellow); }
  .submission-form { padding: 24px 18px; }
  .submission-button { width: 100%; }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  text-rendering: optimizelegibility;
}

body.drawer-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
summary {
  font: inherit;
}

button,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100000;
  top: 10px;
  left: 10px;
  min-height: 44px;
  padding: 10px 18px;
  transform: translateY(-180%);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  min-height: 100vh;
}

.content-shell {
  min-width: 0;
}

.page-frame {
  width: min(100%, var(--page-max));
  margin: 0 auto;
  padding: 24px 28px 72px;
}

.dashicons {
  width: 1em;
  height: 1em;
  font-size: 20px;
  line-height: 1;
}

/* Asymmetric MB identity */
.brand-lockup,
.mobile-brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 11px 4px 11px 4px;
  background: var(--ink);
  box-shadow: 6px 6px 0 var(--yellow);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -.04em;
}

/* Fixed category index */
.sidebar {
  position: fixed;
  z-index: 50;
  inset: 0 auto 0 0;
  display: flex;
  width: min(88vw, var(--sidebar-width));
  flex-direction: column;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: var(--surface-strong);
  transform: translateX(-105%);
  visibility: hidden;
  transition: transform 220ms ease, visibility 220ms ease;
}

.admin-bar .sidebar {
  top: 32px;
}

.sidebar-desktop {
  display: none;
}

.sidebar-mobile.is-open {
  transform: translateX(0);
  visibility: visible;
  box-shadow: var(--shadow-md);
}

.sidebar-trigger,
.sidebar-close {
  display: inline-grid;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  color: var(--ink);
  cursor: pointer;
}

.sidebar-trigger {
  position: fixed;
  z-index: 41;
  top: 10px;
  left: 12px;
}

.admin-bar .sidebar-trigger {
  top: 42px;
}

.drawer-scrim {
  position: fixed;
  z-index: 49;
  inset: 0;
  display: block;
  width: 100%;
  min-height: 100vh;
  border: 0;
  background: rgb(23 35 59 / 42%);
  opacity: 0;
  visibility: hidden;
  cursor: pointer;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.drawer-scrim.is-visible {
  opacity: 1;
  visibility: visible;
}

.sidebar-brand-row {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.sidebar-brand {
  min-height: 48px;
}

.sidebar-brand > span:last-child {
  display: grid;
  line-height: 1.05;
}

.sidebar-brand strong {
  font-size: 17px;
  letter-spacing: -.03em;
}

.sidebar-brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .1em;
}

.sidebar-kicker {
  margin: 0;
  padding: 20px 18px 8px;
  color: #8b929f;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}

.category-nav {
  display: grid;
  gap: 2px;
  padding: 5px 10px 16px;
}

.category-nav a {
  display: grid;
  min-height: 44px;
  grid-template-columns: 24px 1fr 14px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 9px;
  color: #445066;
  font-size: 13px;
  font-weight: 650;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.category-nav a:hover {
  background: var(--blue-pale);
  color: var(--blue);
  transform: translateX(2px);
}

.category-nav .dashicons {
  color: #68758b;
  font-size: 17px;
}

.category-arrow {
  color: #a4aab3;
  font-size: 18px;
}

.sidebar-note {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  margin: auto 12px 16px;
  padding: 14px;
  border: 1px solid #f1d78c;
  border-radius: var(--radius-md);
  background: #fff9e8;
  color: #6f5512;
}

.sidebar-note p {
  display: grid;
  gap: 3px;
  margin: 0;
  font-size: 12px;
}

.sidebar-note p span {
  color: #8b7640;
}

.sidebar-note > a {
  grid-column: 2;
  min-height: 36px;
  color: #654b08;
  font-size: 12px;
  font-weight: 800;
  line-height: 36px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Top navigation */
.topbar {
  position: sticky;
  z-index: 40;
  top: 0;
  min-height: 65px;
  border-bottom: 1px solid rgb(208 212 210 / 82%);
  background: rgb(255 253 248 / 90%);
  backdrop-filter: blur(16px);
}

.admin-bar .topbar {
  top: 32px;
}

.topnav {
  display: flex;
  width: min(100%, var(--page-max));
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
  padding: 0 28px 0 68px;
}

.mobile-brand {
  display: none;
  min-height: 44px;
}

.mobile-brand .brand-mark {
  width: 34px;
  height: 34px;
  box-shadow: 4px 4px 0 var(--yellow);
  font-size: 10px;
}

.topnav-links,
.topnav-actions {
  display: flex;
  align-items: center;
}

.topnav-links {
  min-width: 0;
  gap: 4px;
}

.topnav-links a,
.icon-link,
.language-menu summary {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 9px;
  color: #4b5669;
  font-size: 13px;
  font-weight: 700;
  transition: background 150ms ease, color 150ms ease;
}

.topnav-links a:first-child {
  background: var(--blue-pale);
  color: var(--blue);
}

.topnav-links a:hover,
.icon-link:hover,
.language-menu summary:hover {
  background: #f0f1ef;
  color: var(--ink);
}

.topnav-actions {
  flex: 0 0 auto;
  gap: 4px;
}

.icon-link {
  width: 44px;
  padding: 0;
}

.language-menu {
  position: relative;
}

.language-menu summary {
  gap: 5px;
  cursor: pointer;
  list-style: none;
}

.language-menu summary::-webkit-details-marker {
  display: none;
}

.language-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  width: 132px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.language-popover a {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 0 10px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
}

.language-popover a:hover {
  background: var(--blue-pale);
  color: var(--blue);
}

.submit-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  margin-left: 5px;
  padding: 0 15px;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  transition: background 150ms ease, transform 150ms ease;
}

.submit-link:hover {
  background: var(--blue);
  transform: translateY(-1px);
}

.no-js-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: #fff9e8;
}

.no-js-nav a {
  min-height: 44px;
  line-height: 44px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Search hero */
.search-hero {
  position: relative;
  isolation: isolate;
  min-height: 405px;
  overflow: hidden;
  border: 1px solid #d8ded8;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 15% 20%, rgb(245 199 72 / 22%), transparent 24%),
    radial-gradient(circle at 86% 22%, rgb(33 75 214 / 12%), transparent 28%),
    #fbfaf5;
  box-shadow: var(--shadow-sm);
}

.hero-grid-lines {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image:
    linear-gradient(rgb(23 35 59 / 4%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(23 35 59 / 4%) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
}

.hero-orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid rgb(33 75 214 / 18%);
  border-radius: 50%;
}

.hero-orbit::after {
  position: absolute;
  width: 13px;
  height: 13px;
  border: 4px solid #fbfaf5;
  border-radius: 50%;
  background: var(--orange);
  content: "";
}

.hero-orbit-one {
  top: -195px;
  right: -85px;
  width: 420px;
  height: 420px;
  transform: rotate(-25deg);
}

.hero-orbit-one::after {
  bottom: 70px;
  left: 14px;
}

.hero-orbit-two {
  bottom: -140px;
  left: -190px;
  width: 360px;
  height: 360px;
}

.hero-orbit-two::after {
  top: 48px;
  right: 22px;
  background: var(--blue);
}

.hero-content {
  width: min(820px, calc(100% - 48px));
  margin: 0 auto;
  padding: 42px 0 54px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 6px;
  margin: 0 0 15px;
  padding: 0 12px;
  border: 1px solid #e3c86f;
  border-radius: 999px;
  background: #fff8dc;
  color: #6a520d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
}

.hero-eyebrow .dashicons {
  font-size: 15px;
}

.hero-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.hero-brand-mark {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border-radius: 18px 6px 18px 6px;
  background: var(--ink);
  box-shadow: 8px 8px 0 var(--yellow);
  color: #fff;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
}

.hero-brand > div {
  text-align: left;
}

.hero-brand p {
  margin: 0 0 3px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .18em;
}

.hero-brand h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: -.055em;
  line-height: 1;
}

.hero-slogan {
  margin: 21px 0 18px;
  color: #586478;
  font-size: 15px;
}

.hero-slogan span {
  position: relative;
  margin: 0 3px;
  color: var(--ink);
  font-weight: 900;
}

.hero-slogan span::after {
  position: absolute;
  z-index: -1;
  right: -2px;
  bottom: 0;
  left: -2px;
  height: 7px;
  background: rgb(245 199 72 / 70%);
  content: "";
}

.search-types {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 8px;
}

.search-types a {
  position: relative;
  display: inline-flex;
  min-width: 64px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  color: #7a8392;
  font-size: 12px;
  font-weight: 800;
}

.search-types a.is-active {
  color: var(--blue);
}

.search-types a.is-active::after {
  position: absolute;
  right: 16px;
  bottom: 2px;
  left: 16px;
  height: 3px;
  border-radius: 999px;
  background: var(--blue);
  content: "";
}

.hero-search {
  display: grid;
  min-height: 64px;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 7px 7px 7px 18px;
  border: 1px solid #bcc5c1;
  border-radius: 18px 6px 18px 6px;
  background: #fff;
  box-shadow: 8px 8px 0 rgb(245 199 72 / 68%);
}

.hero-search > .dashicons {
  color: var(--blue);
  font-size: 22px;
}

.hero-search input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.hero-search input:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.hero-search input::placeholder {
  color: #9299a5;
}

.hero-search button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  border: 0;
  border-radius: 11px 3px 11px 3px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
}

.hero-search button:hover {
  background: var(--blue-dark);
  transform: translateX(1px);
}

.popular-searches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 12px;
  margin-top: 14px;
  color: #8a919c;
  font-size: 11px;
}

.popular-searches span {
  font-weight: 800;
}

.popular-searches a {
  min-height: 32px;
  color: #596478;
  line-height: 32px;
  text-decoration: underline;
  text-decoration-color: #cbd0d5;
  text-underline-offset: 3px;
}

.popular-searches a:hover {
  color: var(--blue);
  text-decoration-color: var(--blue);
}

.hero-trust-note {
  position: absolute;
  right: 18px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #6d7687;
  font-size: 10px;
}

.hero-trust-note .dashicons {
  color: var(--green);
  font-size: 18px;
}

/* Seven quick entries */
.quick-entries {
  display: grid;
  grid-template-columns: 74px 1fr;
  align-items: stretch;
  gap: 10px;
  margin-top: 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  box-shadow: var(--shadow-sm);
}

.quick-label {
  display: grid;
  min-height: 68px;
  place-items: center;
  margin: 0;
  border-right: 1px dashed var(--line-strong);
  color: #9299a3;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.3;
  text-align: center;
}

.quick-entry-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(118px, 1fr));
  gap: 7px;
}

.quick-entry {
  display: flex;
  min-height: 68px;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 10px;
  background: #f7f7f4;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.quick-entry:hover {
  background: var(--blue-pale);
  box-shadow: 0 8px 18px rgb(23 35 59 / 8%);
  transform: translateY(-2px);
}

.quick-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 1px 4px rgb(23 35 59 / 9%);
  color: var(--blue);
}

.quick-icon .dashicons {
  font-size: 19px;
}

.quick-entry-2 .quick-icon,
.quick-entry-7 .quick-icon {
  color: var(--orange);
}

.quick-entry-3 .quick-icon,
.quick-entry-4 .quick-icon {
  color: var(--green);
}

.quick-entry-5 .quick-icon {
  color: #9a7210;
}

.quick-entry > span:last-child {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.quick-entry strong,
.quick-entry small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-entry strong {
  color: #313d51;
  font-size: 12px;
}

.quick-entry small {
  color: #8c939e;
  font-size: 10px;
}

/* Editorial sections */
.home-section {
  margin-top: 68px;
  scroll-margin-top: 82px;
}

.section-tinted {
  position: relative;
  padding: 30px;
  border: 1px solid #d8e3de;
  border-radius: var(--radius-lg);
  background: #f1f7f3;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.section-heading-main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.section-number {
  align-self: flex-start;
  padding-top: 3px;
  color: #a2a8b0;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
}

.section-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 1px solid #cfd4d0;
  border-radius: 11px 3px 11px 3px;
  background: var(--surface-strong);
  box-shadow: 4px 4px 0 #e5e8e5;
  color: var(--blue);
}

.section-icon .dashicons {
  font-size: 19px;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -.045em;
  line-height: 1.1;
}

.section-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.section-more {
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  padding: 0 4px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.section-more span {
  transition: transform 150ms ease;
}

.section-more:hover span {
  transform: translateX(3px);
}

/* Tool cards */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.tool-card {
  min-width: 0;
}

.tool-card-link {
  position: relative;
  display: grid;
  min-height: 190px;
  grid-template-columns: 52px 1fr;
  gap: 13px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  box-shadow: var(--shadow-sm);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.tool-card-link::after {
  position: absolute;
  right: -28px;
  bottom: -46px;
  width: 90px;
  height: 90px;
  border: 1px solid rgb(33 75 214 / 10%);
  border-radius: 50%;
  content: "";
}

.tool-card-link:hover {
  border-color: #b9c5e8;
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.tool-monogram {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 14px 5px 14px 5px;
  box-shadow: 4px 4px 0 rgb(23 35 59 / 12%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
}

.tool-monogram-ink { background: var(--ink); }
.tool-monogram-blue { background: var(--blue); }
.tool-monogram-orange { background: var(--orange); }
.tool-monogram-green { background: var(--green); }
.tool-monogram-rose { background: #b94e70; }
.tool-monogram-sand { background: #9a7210; }

.tool-card-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.tool-name-row {
  display: flex;
  min-height: 24px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}

.tool-name-row strong {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-arrow {
  flex: 0 0 auto;
  color: #a4abb6;
  transition: color 150ms ease, transform 150ms ease;
}

.tool-card-link:hover .tool-arrow {
  color: var(--blue);
  transform: translate(2px, -2px);
}

.tool-description {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  color: #667085;
  font-size: 12px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.tool-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 8px;
  margin-top: auto;
  padding-top: 14px;
  color: #9097a2;
  font-size: 10px;
}

.pricing {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 7px;
  border-radius: 999px;
  background: #f0f1ef;
  color: #667085;
  font-weight: 800;
}

.pricing-free {
  background: var(--green-pale);
  color: var(--green);
}

.tool-note {
  position: absolute;
  top: 0;
  right: 0;
  padding: 6px 10px;
  border-radius: 0 14px 0 10px;
  background: var(--blue-pale);
  color: var(--blue);
  font-size: 9px;
  font-weight: 900;
}

.compact-tool-grid .tool-card-link {
  min-height: 174px;
}

/* Use cases */
.use-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.use-case-card {
  display: grid;
  min-height: 112px;
  grid-template-columns: 35px 1fr auto 22px;
  align-items: center;
  gap: 10px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.use-case-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.use-case-index {
  color: #a2a9b3;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
}

.use-case-copy {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.use-case-copy strong {
  font-size: 14px;
}

.use-case-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.use-case-count {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f1f2f0;
  color: #737b88;
  font-size: 9px;
  font-weight: 800;
}

.tone-blue { border-left: 4px solid var(--blue); }
.tone-orange { border-left: 4px solid var(--orange); }
.tone-green { border-left: 4px solid var(--green); }
.tone-rose { border-left: 4px solid #b94e70; }
.tone-sand { border-left: 4px solid #b78613; }
.tone-ink { border-left: 4px solid var(--ink); }

.free-promise {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  padding: 10px 14px;
  border: 1px dashed #b8cec5;
  border-radius: 12px;
  background: rgb(255 255 255 / 55%);
  color: #58675f;
  font-size: 11px;
}

.free-promise > .dashicons {
  flex: 0 0 auto;
  color: var(--green);
  font-size: 19px;
}

.free-promise p {
  margin: 0;
}

.free-promise a {
  min-height: 36px;
  margin-left: auto;
  color: var(--green);
  font-weight: 900;
  line-height: 36px;
  white-space: nowrap;
}

/* Weekly ranking */
.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .45fr);
  gap: 14px;
}

.ranking-list {
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  box-shadow: var(--shadow-sm);
  list-style: none;
}

.ranking-list li + li {
  border-top: 1px solid #eceeeb;
}

.ranking-list a {
  display: grid;
  min-height: 68px;
  grid-template-columns: 42px 1fr 54px 20px;
  align-items: center;
  gap: 12px;
  padding: 8px 18px;
  transition: background 150ms ease;
}

.ranking-list a:hover {
  background: #f8f9f7;
}

.rank-number {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  background: #eef0ed;
  color: #667085;
  font-family: var(--font-display);
  font-weight: 900;
}

.rank-1 { background: #fff1b8; color: #7c5b05; }
.rank-2 { background: #edf1f5; color: #526274; }
.rank-3 { background: #f7e6d7; color: #87552c; }

.rank-name {
  display: grid;
  gap: 3px;
}

.rank-name strong { font-size: 14px; }
.rank-name small { color: var(--muted); font-size: 11px; }

.rank-change {
  color: #8c939d;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
}

.rank-change.is-up { color: var(--green); }

.ranking-method {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--ink);
  color: #fff;
}

.ranking-method::before {
  position: absolute;
  top: -90px;
  right: -90px;
  width: 210px;
  height: 210px;
  border: 30px solid rgb(245 199 72 / 13%);
  border-radius: 50%;
  content: "";
}

.ranking-method > .dashicons {
  margin-bottom: auto;
  color: var(--yellow);
  font-size: 28px;
}

.ranking-kicker {
  margin: 42px 0 8px;
  color: #aebbd1;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .17em;
}

.ranking-method h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: -.04em;
}

.ranking-method > p:not(.ranking-kicker) {
  margin: 10px 0 18px;
  color: #bec7d7;
  font-size: 12px;
  line-height: 1.7;
}

.ranking-method a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 800;
}

/* Guides and news */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.guide-card {
  min-width: 0;
}

.guide-card > a {
  display: grid;
  height: 100%;
  grid-template-rows: 125px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  box-shadow: var(--shadow-sm);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.guide-card > a:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.guide-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  overflow: hidden;
  padding: 17px;
  background: var(--blue-pale);
  color: var(--blue-dark);
}

.guide-card:nth-child(2) .guide-visual {
  background: var(--orange-pale);
  color: #a43b1b;
}

.guide-card:nth-child(3) .guide-visual {
  background: #fff6ce;
  color: #755704;
}

.guide-visual > span {
  align-self: flex-start;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
}

.guide-visual > strong {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1;
}

.guide-visual > i {
  position: absolute;
  right: -34px;
  bottom: -74px;
  width: 160px;
  height: 160px;
  border: 18px solid currentcolor;
  border-radius: 50%;
  opacity: .11;
}

.guide-content {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  padding: 18px;
}

.guide-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
}

.guide-eyebrow .dashicons {
  font-size: 14px;
}

.guide-content > strong {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.5;
}

.guide-content > small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.guide-read {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
}

.news-section {
  padding: 30px;
  border-radius: var(--radius-lg);
  background: #ecefe9;
}

.news-list {
  overflow: hidden;
  border: 1px solid #d2d7d1;
  border-radius: var(--radius-md);
  background: var(--surface-strong);
}

.news-item + .news-item {
  border-top: 1px solid #e6e8e5;
}

.news-item a {
  display: grid;
  min-height: 88px;
  grid-template-columns: 68px 1fr 28px;
  align-items: center;
  gap: 18px;
  padding: 13px 20px;
  transition: background 150ms ease;
}

.news-item a:hover {
  background: #f8f9f7;
}

.news-item time {
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .04em;
}

.news-copy {
  display: grid;
  gap: 5px;
}

.news-copy strong { font-size: 14px; }
.news-copy small { color: var(--muted); font-size: 11px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface-strong);
}

.footer-inner {
  display: grid;
  width: min(100%, var(--page-max));
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px 40px;
  margin: 0 auto;
  padding: 28px;
}

.footer-brand p {
  display: grid;
  gap: 3px;
  margin: 0;
}

.footer-brand p span {
  color: var(--muted);
  font-size: 11px;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 18px;
}

.footer-inner nav a {
  min-height: 44px;
  color: #697385;
  font-size: 11px;
  font-weight: 700;
  line-height: 44px;
}

.footer-inner nav a:hover {
  color: var(--blue);
}

.copyright {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 15px;
  border-top: 1px solid #eceeeb;
  color: #9aa0a9;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
}

/* Search directory: an editorial index, not an app dashboard */
.search-page {
  min-height: 72vh;
}

.search-page .page-frame {
  padding-top: 30px;
}

.search-masthead {
  position: relative;
  display: grid;
  min-height: 270px;
  grid-template-columns: minmax(0, 760px) auto;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding: 44px 48px;
  overflow: hidden;
  border-radius: 26px 8px 26px 8px;
  background: var(--ink);
  box-shadow: 10px 10px 0 var(--yellow);
  color: #fff;
}

.search-masthead::before,
.search-masthead::after {
  position: absolute;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 50%;
  content: "";
}

.search-masthead::before {
  top: -160px;
  right: -60px;
  width: 380px;
  height: 380px;
}

.search-masthead::after {
  top: -95px;
  right: 5px;
  width: 250px;
  height: 250px;
}

.search-masthead-copy {
  position: relative;
  z-index: 1;
}

.search-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: #c7d0e0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.search-kicker span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgb(255 255 255 / 26%);
  border-radius: 999px;
  color: var(--yellow);
  letter-spacing: .16em;
}

.search-masthead h1 {
  max-width: 720px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 70px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.02;
}

.search-masthead-copy > p:last-child {
  max-width: 650px;
  margin: 20px 0 0;
  color: #d4d9e3;
  font-size: 14px;
}

.search-masthead-index {
  position: relative;
  z-index: 1;
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 110px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.08em;
  line-height: .8;
}

.search-control-deck {
  position: relative;
  z-index: 2;
  width: calc(100% - 56px);
  margin: -22px auto 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px 22px 8px 22px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-md);
}

.directory-search-form {
  min-height: 44px;
}

.directory-search-query > label,
.search-filter-field > span {
  display: block;
  margin-bottom: 6px;
  color: #4e596d;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.directory-search-input-row {
  display: grid;
  min-height: 60px;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 5px 5px 5px 16px;
  border: 2px solid var(--ink);
  border-radius: 12px 4px 12px 4px;
  background: #fff;
}

.directory-search-input-row > .dashicons {
  color: var(--blue);
}

.directory-search-input-row input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.directory-search-input-row input::placeholder {
  color: #9299a5;
  font-weight: 600;
}

.directory-search-input-row:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgb(33 75 214 / 15%);
}

.directory-search-input-row button,
.search-filter-actions button {
  min-height: 48px;
  border: 0;
  border-radius: 8px 3px 8px 3px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.directory-search-input-row button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
}

.directory-search-input-row button:hover,
.search-filter-actions button:hover {
  background: var(--blue-dark);
}

.search-filter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr)) auto;
  align-items: end;
  gap: 10px;
  margin-top: 18px;
}

.search-filter-field select {
  width: 100%;
  min-height: 44px;
  padding: 0 34px 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.search-filter-field select:hover {
  border-color: #98a6c9;
}

.search-filter-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.search-filter-actions button,
.search-filter-actions a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  white-space: nowrap;
}

.search-filter-actions a {
  color: #596478;
  font-size: 11px;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: #c7ccd5;
  text-underline-offset: 3px;
}

.search-results {
  margin-top: 56px;
}

.search-results-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ink);
}

.search-results-count {
  margin: 0 0 5px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.search-results-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.12;
}

.search-results-heading > p {
  max-width: 330px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

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

.search-result-grid .tool-card-link {
  min-height: 194px;
}

.pricing-paid {
  background: var(--orange-pale);
  color: #a94729;
}

.search-pagination {
  margin-top: 34px;
}

.search-pagination ul.page-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.search-pagination .page-numbers {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px 3px 8px 3px;
  background: var(--surface-strong);
  color: #536078;
  font-size: 12px;
  font-weight: 900;
}

.search-pagination a.page-numbers:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.search-pagination .page-numbers.current {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.search-empty-state {
  display: grid;
  min-height: 190px;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px 7px 22px 7px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-sm);
}

.search-empty-mark {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 18px 6px 18px 6px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 900;
}

.search-empty-state h2,
.search-empty-state p {
  margin: 0;
}

.search-empty-state h2 {
  font-family: var(--font-display);
  font-size: 26px;
}

.search-empty-state p {
  margin-top: 6px;
  color: var(--muted);
}

.search-empty-state > a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 15px;
  border: 1px solid var(--ink);
  border-radius: 8px 3px 8px 3px;
  font-size: 12px;
  font-weight: 900;
}

/* Classic-theme fallback */
.content-index {
  min-height: 65vh;
}

.entry-list {
  display: grid;
  gap: 18px;
}

.entry-card,
.empty-state {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  box-shadow: var(--shadow-sm);
}

.entry-card h1,
.entry-card h2,
.empty-state h1 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.2;
}

.entry-summary {
  margin-top: 18px;
}

.entry-summary > :last-child {
  margin-bottom: 0;
}

.empty-state {
  max-width: 760px;
  margin: 48px auto;
  text-align: center;
}

.empty-state-index {
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .17em;
}

.empty-state > p:not(.empty-state-index) {
  color: var(--muted);
}

.empty-state-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.empty-state-actions > a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 15px;
  border-radius: 9px;
  font-weight: 800;
}

/* Frozen responsive system */
@media (min-width: 1180px) {
  body.drawer-open { overflow: auto; }
  .content-shell { margin-left: var(--sidebar-width); }
  .sidebar-desktop {
    display: flex;
    transform: translateX(0);
    visibility: visible;
  }
  .sidebar-mobile,
  .sidebar-trigger,
  .sidebar-close,
  .drawer-scrim { display: none; }
  .topnav { padding-left: 28px; }
}

@media (max-width: 1360px) {
  .quick-entry-grid { grid-template-columns: repeat(4, minmax(130px, 1fr)); }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topnav-links a:nth-last-child(-n + 3) { display: none; }
  .search-filter-grid { grid-template-columns: repeat(3, minmax(140px, 1fr)); }
  .search-filter-actions { justify-content: flex-end; }
}

@media (max-width: 900px) {
  .page-frame { padding: 18px 18px 62px; }
  .topnav { padding-right: 18px; }
  .topnav-links { display: none; }
  .mobile-brand { display: inline-flex; margin-left: 22px; }
  .quick-entry-grid { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
  .quick-label { min-height: 100%; }
  .use-case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ranking-layout { grid-template-columns: 1fr; }
  .ranking-method { min-height: 250px; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-card > a { grid-template-columns: 180px 1fr; grid-template-rows: 1fr; }
  .guide-content { min-height: 210px; }
  .search-masthead { min-height: 240px; padding: 34px; }
  .search-masthead-index { display: none; }
  .search-control-deck { width: calc(100% - 30px); }
  .search-filter-grid { grid-template-columns: repeat(2, minmax(140px, 1fr)); }
  .search-result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 782px) {
  .admin-bar .sidebar { top: 46px; }
  .admin-bar .sidebar-trigger { top: 56px; }
  .admin-bar .topbar { top: 46px; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 70px; }
  .page-frame { padding: 12px 12px 50px; }
  .topnav { min-height: 60px; padding: 0 10px 0 66px; }
  .mobile-brand { margin-left: 0; }
  .mobile-brand .brand-mark { display: none; }
  .mobile-brand strong { font-size: 13px; }
  .language-menu summary > span:last-child,
  .submit-link > span:last-child { display: none; }
  .language-menu summary,
  .submit-link { width: 44px; padding: 0; justify-content: center; }
  .submit-link { margin-left: 1px; }
  .search-hero { min-height: 440px; border-radius: 18px; }
  .hero-content { width: calc(100% - 28px); padding: 34px 0 70px; }
  .hero-eyebrow { font-size: 9px; }
  .hero-brand { gap: 12px; }
  .hero-brand-mark { width: 52px; height: 52px; border-radius: 15px 5px 15px 5px; box-shadow: 6px 6px 0 var(--yellow); font-size: 14px; }
  .hero-brand h1 { font-size: 31px; }
  .hero-brand p { font-size: 9px; }
  .search-types a { min-width: 50px; min-height: 44px; }
  .hero-search { min-height: 58px; grid-template-columns: 24px 1fr auto; padding-left: 13px; border-radius: 14px 4px 14px 4px; }
  .hero-search button { width: 48px; min-height: 46px; justify-content: center; padding: 0; font-size: 0; }
  .hero-search button span { font-size: 16px; }
  .hero-search input { font-size: 13px; }
  .popular-searches span { width: 100%; }
  .hero-trust-note { right: 10px; bottom: 11px; left: 10px; justify-content: center; }
  .quick-entries { grid-template-columns: 1fr; }
  .quick-label { display: none; }
  .quick-entry-grid { grid-template-columns: 1fr 1fr; }
  .quick-entry { min-height: 74px; }
  .quick-entry:last-child { grid-column: 1 / -1; }
  .home-section { margin-top: 50px; }
  .section-tinted,
  .news-section { margin-right: -4px; margin-left: -4px; padding: 20px 12px; border-radius: 18px; }
  .section-heading { align-items: flex-start; margin-bottom: 16px; }
  .section-heading-main { align-items: flex-start; }
  .section-heading p { max-width: 240px; line-height: 1.5; }
  .section-number { display: none; }
  .section-more { padding: 0 8px; font-size: 0; }
  .section-more span { font-size: 20px; }
  .tool-grid { grid-template-columns: 1fr; gap: 10px; }
  .tool-card-link { min-height: 170px; }
  .use-case-grid { grid-template-columns: 1fr; }
  .use-case-card { min-height: 96px; grid-template-columns: 30px 1fr 20px; }
  .use-case-count { display: none; }
  .free-promise { align-items: flex-start; flex-wrap: wrap; }
  .free-promise a { width: 100%; margin-left: 28px; white-space: normal; }
  .ranking-list a { grid-template-columns: 36px 1fr 42px 18px; padding: 8px 12px; }
  .ranking-method { min-height: 260px; }
  .guide-card > a { grid-template-columns: 1fr; grid-template-rows: 105px 1fr; }
  .guide-content { min-height: 190px; }
  .news-item a { min-height: 110px; grid-template-columns: 52px 1fr 20px; gap: 10px; padding: 12px; }
  .news-copy small { line-height: 1.55; }
  .footer-inner { grid-template-columns: 1fr; padding: 24px 16px; }
  .footer-inner nav { justify-content: flex-start; }
  .search-page .page-frame { padding-top: 12px; }
  .search-masthead { min-height: 260px; padding: 30px 22px 46px; border-radius: 18px 6px 18px 6px; box-shadow: 6px 6px 0 var(--yellow); }
  .search-masthead h1 { font-size: 38px; }
  .search-masthead-copy > p:last-child { font-size: 12px; }
  .search-control-deck { width: calc(100% - 12px); margin-top: -26px; padding: 13px; border-radius: 7px 16px 7px 16px; }
  .directory-search-input-row { grid-template-columns: 22px minmax(0, 1fr) 48px; min-height: 56px; padding-left: 12px; }
  .directory-search-input-row button { width: 48px; justify-content: center; padding: 0; font-size: 0; }
  .directory-search-input-row button span { font-size: 15px; }
  .directory-search-input-row input { font-size: 13px; }
  .search-filter-grid { grid-template-columns: 1fr 1fr; }
  .search-filter-actions { grid-column: 1 / -1; justify-content: stretch; }
  .search-filter-actions button,
  .search-filter-actions a { flex: 1 1 0; }
  .search-results { margin-top: 42px; }
  .search-results-heading { align-items: flex-start; }
  .search-results-heading > p { display: none; }
  .search-result-grid { grid-template-columns: 1fr; gap: 10px; }
  .search-empty-state { grid-template-columns: 56px 1fr; gap: 15px; padding: 20px; }
  .search-empty-mark { width: 52px; height: 52px; }
  .search-empty-state > a { grid-column: 1 / -1; justify-content: center; }
}

/* Evidence-led profiles and editorial pages */
.tool-profile-page,
.editorial-page,
.tool-archive-page {
  min-height: 70vh;
}

.breadcrumbs {
  display: flex;
  min-height: 44px;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 11px;
}

.breadcrumbs a {
  min-height: 44px;
  color: var(--blue);
  font-weight: 800;
  line-height: 44px;
}

.tool-profile-hero,
.editorial-masthead,
.archive-masthead {
  position: relative;
  overflow: hidden;
  border-radius: 26px 8px 26px 8px;
  background: var(--ink);
  box-shadow: 9px 9px 0 var(--yellow);
  color: #fff;
}

.tool-profile-hero {
  display: grid;
  min-height: 280px;
  grid-template-columns: minmax(0, 780px) auto;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding: 44px 48px;
}

.tool-profile-hero::after,
.editorial-masthead::after,
.archive-masthead::after {
  position: absolute;
  top: -130px;
  right: -80px;
  width: 320px;
  height: 320px;
  border: 1px solid rgb(255 255 255 / 13%);
  border-radius: 50%;
  content: "";
}

.tool-section-index {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .15em;
}

.tool-profile-hero .tool-section-index,
.editorial-masthead .tool-section-index,
.archive-masthead .tool-section-index {
  color: var(--yellow);
}

.tool-profile-hero h1,
.editorial-masthead h1,
.archive-masthead h1 {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-family: var(--font-display);
  font-size: clamp(38px, 5.5vw, 72px);
  letter-spacing: -.045em;
  line-height: 1.02;
}

.tool-verdict {
  max-width: 720px;
  margin: 18px 0 0;
  color: #d9dfeb;
  font-size: 16px;
}

.tool-action-block {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: end;
  gap: 7px;
}

.tool-commercial-label {
  color: var(--yellow);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
}

.tool-official-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: 10px 3px 10px 3px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.tool-official-action:hover {
  background: var(--yellow);
}

.tool-official-action:focus-visible,
.editorial-hub-link:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.tool-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 880px) minmax(220px, 1fr);
  align-items: start;
  gap: 32px;
  margin-top: 54px;
}

.tool-profile-main {
  min-width: 0;
}

.tool-facts,
.tool-section,
.tool-profile-rail,
.editorial-trust,
.related-content-block {
  border: 1px solid var(--line);
  border-radius: 18px 6px 18px 6px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-sm);
}

.tool-facts,
.tool-section {
  padding: 28px;
}

.tool-section {
  margin-top: 18px;
}

.tool-facts h2,
.tool-section h2,
.related-content-block h2,
.editorial-trust h2 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(23px, 3vw, 34px);
  line-height: 1.18;
}

.tool-facts dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px 4px 12px 4px;
  background: var(--line);
}

.tool-facts dl > div {
  min-width: 0;
  padding: 13px 15px;
  background: var(--surface);
}

.tool-facts dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tool-facts dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.tool-check-list,
.tool-judgement-grid ul,
.tool-source-list,
.editorial-trust ol {
  margin: 0;
  padding-left: 20px;
}

.tool-check-list li,
.tool-judgement-grid li,
.tool-step-list li {
  margin-top: 9px;
}

.tool-judgement-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tool-judgement-grid > div {
  padding: 18px;
  border: 1px solid #cde5dc;
  border-radius: 12px 4px 12px 4px;
  background: var(--green-pale);
}

.tool-judgement-grid > .tool-caution {
  border-color: #efd7c9;
  background: var(--orange-pale);
}

.tool-judgement-grid h3 {
  margin: 0 0 9px;
  font-size: 14px;
}

.tool-price-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.tool-price-line > * {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--blue-pale);
  color: var(--blue-dark);
}

.tool-step-list {
  padding-left: 28px;
  counter-reset: mbai-step;
}

.tool-profile-rail {
  position: sticky;
  top: 88px;
  padding: 22px;
  border-top: 4px solid var(--yellow);
  color: var(--muted);
}

.tool-disclosure {
  padding: 14px;
  border: 1px solid #eed389;
  border-radius: 10px;
  background: #fff9e5;
}

.tool-source-list a,
.editorial-trust a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.related-content-block {
  padding: 22px;
}

.tool-section > .related-content-block {
  padding: 0;
  border: 0;
  box-shadow: none;
}

.related-content-list {
  display: grid;
  gap: 7px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.related-content-list a {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px 3px 8px 3px;
  font-weight: 800;
}

.related-content-list a:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.editorial-hub-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.learning-hub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.editorial-masthead,
.archive-masthead {
  padding: 52px 48px;
}

.editorial-intent {
  max-width: 760px;
  margin: 20px 0 0;
  color: #d9dfeb;
}

.editorial-byline {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 24px;
  color: #cbd3e1;
  font-size: 11px;
}

.editorial-byline a {
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.editorial-layout {
  display: grid;
  grid-template-columns: minmax(0, 820px) minmax(220px, 1fr);
  align-items: start;
  gap: 32px;
  margin-top: 54px;
}

.editorial-body {
  min-width: 0;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px 6px 18px 6px;
  background: var(--surface-strong);
}

.editorial-body > :first-child { margin-top: 0; }
.editorial-body > :last-child { margin-bottom: 0; }
.editorial-body img { max-width: 100%; height: auto; }
.editorial-body a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.editorial-body h2,
.editorial-body h3 { font-family: var(--font-display); line-height: 1.2; }

.editorial-trust {
  padding: 22px;
  border-top: 4px solid var(--yellow);
}

.editorial-trust > a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.editorial-related {
  margin-top: 32px;
}

.archive-masthead {
  margin-bottom: 42px;
}

.archive-masthead > p:last-child {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 18px 0 0;
  color: #d9dfeb;
}

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

.editorial-archive-card {
  min-width: 0;
}

.editorial-archive-card > a {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px 6px 18px 6px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-sm);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.editorial-archive-card > a:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.editorial-archive-card a:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.editorial-archive-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.editorial-archive-card h2 {
  margin: 24px 0 0;
  overflow-wrap: anywhere;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 32px);
  letter-spacing: -.025em;
  line-height: 1.16;
}

.editorial-archive-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.editorial-archive-read {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 20px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
}

@media (max-width: 900px) {
  .tool-profile-grid,
  .editorial-layout { grid-template-columns: 1fr; }
  .tool-profile-rail { position: static; }
  .tool-profile-hero { grid-template-columns: 1fr; align-items: start; }
  .tool-action-block { justify-items: start; }
  .editorial-archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .tool-profile-grid { gap: 18px; margin-top: 34px; }
  .tool-profile-hero,
  .editorial-masthead,
  .archive-masthead { padding: 30px 22px; border-radius: 18px 6px 18px 6px; box-shadow: 6px 6px 0 var(--yellow); }
  .tool-profile-hero h1,
  .editorial-masthead h1,
  .archive-masthead h1 { font-size: 38px; }
  .tool-official-action { width: 100%; }
  .tool-action-block { width: 100%; }
  .tool-facts,
  .tool-section,
  .editorial-body { padding: 20px 16px; }
  .tool-facts dl,
  .tool-judgement-grid { grid-template-columns: 1fr; }
  .editorial-layout { gap: 18px; margin-top: 34px; }
  .editorial-archive-grid { grid-template-columns: 1fr; gap: 12px; }
  .editorial-archive-card > a { min-height: 220px; padding: 20px 18px; }
  .related-content-block { padding: 18px 14px; }
}

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

/* Useful not-found recovery and retired-profile states */
.mbai-not-found-page { min-height: 70vh; }
.mbai-not-found-hero {
  position: relative;
  overflow: hidden;
  padding: 48px;
  border-radius: 26px 8px 26px 8px;
  background: var(--ink);
  box-shadow: 9px 9px 0 var(--yellow);
  color: #fff;
}
.mbai-not-found-hero h1 { max-width: 780px; margin: 0; font-family: var(--font-display); font-size: clamp(38px, 6vw, 72px); line-height: 1.03; }
.mbai-not-found-hero > p:not(.tool-section-index, .mbai-not-found-code) { max-width: 700px; color: #d9dfeb; }
.mbai-not-found-code { position: absolute; top: -42px; right: 24px; margin: 0; color: rgb(255 255 255 / 7%); font-family: var(--font-display); font-size: clamp(120px, 22vw, 280px); line-height: 1; }
.mbai-not-found-search { position: relative; z-index: 1; max-width: 760px; margin-top: 28px; }
.mbai-not-found-search label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 900; }
.mbai-not-found-search > div { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.mbai-not-found-search input,
.mbai-not-found-search button { min-height: 48px; border-radius: 9px 3px 9px 3px; }
.mbai-not-found-search input { min-width: 0; padding: 0 14px; border: 1px solid rgb(255 255 255 / 35%); background: #fff; color: var(--ink); }
.mbai-not-found-search button { padding: 0 20px; border: 0; background: var(--yellow); color: var(--ink); cursor: pointer; font-weight: 900; }
.mbai-not-found-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.mbai-not-found-actions a { display: inline-flex; min-height: 44px; align-items: center; padding: 0 15px; border: 1px solid rgb(255 255 255 / 45%); border-radius: 9px 3px 9px 3px; font-weight: 900; }
.mbai-not-found-actions a:first-child { background: #fff; color: var(--ink); }
.mbai-not-found-categories,
.mbai-not-found-tools { margin-top: 48px; }
.mbai-not-found-categories h2,
.mbai-not-found-tools h2 { font-family: var(--font-display); font-size: clamp(26px, 4vw, 40px); }
.mbai-not-found-categories ul,
.mbai-not-found-tools ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 0; list-style: none; }
.mbai-not-found-categories a,
.mbai-not-found-tools a { display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px 3px 10px 3px; background: var(--surface-strong); font-weight: 800; }
.tool-retired-notice { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 18px; padding: 14px 18px; border: 1px solid #db9a68; border-radius: 12px 4px 12px 4px; background: var(--orange-pale); color: var(--ink); }
.tool-retired-notice span { color: var(--muted); }
.mbai-not-found-page a:focus-visible,
.mbai-not-found-page button:focus-visible,
.mbai-not-found-page input:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
@media (max-width: 640px) {
  .mbai-not-found-hero { padding: 30px 22px; border-radius: 18px 6px 18px 6px; box-shadow: 6px 6px 0 var(--yellow); }
  .mbai-not-found-code { display: none; }
  .mbai-not-found-search > div { grid-template-columns: 1fr; }
  .mbai-not-found-search button { width: 100%; }
  .mbai-not-found-actions a { flex: 1 1 180px; justify-content: center; }
  .mbai-not-found-categories ul,
  .mbai-not-found-tools ul { grid-template-columns: 1fr; }
}
