:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-muted: #f7f7fa;
  --text: #202124;
  --muted: #5f6368;
  --border: #dadce0;
  --brand: #5b4df0;
  --brand-strong: #4738d6;
  --brand-soft: #f0efff;
  --brand-mark-text: #fff;
  --focus: #2563eb;
  --shadow: 0 4px 16px rgb(32 33 36 / 10%);
  --header-height: 4rem;
  --sidebar-width: 15.75rem;
  --content-width: 72rem;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  min-width: 20rem;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-size: 1rem;
  line-height: 1.6;
}

a {
  color: var(--brand-strong);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

:focus-visible {
  outline: 0.2rem solid var(--focus);
  outline-offset: 0.2rem;
}

.visually-hidden {
  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: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  color: #111827;
  background: #fbbf24;
  border-radius: 0.5rem;
  transform: translateY(-180%);
}

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(8rem, 22rem) auto;
  gap: 0.75rem;
  align-items: center;
  min-height: var(--header-height);
  padding: 0.6rem clamp(0.75rem, 2vw, 1.5rem);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  gap: 0.65rem;
  align-items: center;
  color: var(--text);
  font-weight: 760;
  text-decoration: none;
}

.search-button {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  justify-content: flex-start;
  min-height: 2.35rem;
  padding: 0.35rem 0.65rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  cursor: pointer;
}

.header-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.language-picker {
  position: relative;
}

.language-picker summary {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  min-height: 2.35rem;
  padding: 0.35rem 0.6rem;
  color: #fff;
  background: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 0.4rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 650;
  list-style: none;
}

.language-picker summary:hover {
  background: var(--brand-strong);
  border-color: var(--brand-strong);
}

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

.language-picker__menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 0.55rem);
  right: 0;
  width: min(13.5rem, calc(100vw - 1rem));
  padding: 0.45rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: 0 0.8rem 2rem color-mix(in srgb, var(--text) 16%, transparent);
}

.language-picker__title {
  display: block;
  padding: 0.1rem 0.4rem 0.35rem;
  font-size: 0.8rem;
}

.language-picker__menu ul {
  display: grid;
  gap: 0.08rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.language-picker__menu a,
.language-picker__choice {
  display: flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.35rem 0.45rem;
  border-radius: 0.45rem;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.15;
  text-decoration: none;
}

.language-picker__menu a > span,
.language-picker__choice > span {
  white-space: nowrap;
}

.language-picker__menu a:hover,
.language-picker__menu a:focus-visible,
.language-picker__choice--current {
  background: var(--brand-soft);
}

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

.language-picker__choice--unavailable {
  color: var(--muted);
}

.icon-button {
  display: inline-grid;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  color: var(--text);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0.65rem;
  cursor: pointer;
}

.icon-button:hover {
  background: var(--surface-muted);
  border-color: var(--border);
}

.menu-button {
  display: inline-grid;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  place-items: center;
  border-color: var(--border);
  border-radius: 0.4rem;
}

.menu-button__icon {
  width: 1rem;
  height: 2px;
  background: currentcolor;
  border-radius: 2px;
  box-shadow: 0 -5px 0 currentcolor, 0 5px 0 currentcolor;
}

.no-script-navigation {
  display: flex;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
  padding: 0.65rem clamp(0.75rem, 2vw, 1.5rem);
  background: var(--brand-soft);
  border-bottom: 1px solid var(--border);
}

.no-script-navigation a {
  color: var(--text);
  font-weight: 650;
}

.app-shell {
  display: block;
  min-height: calc(100vh - var(--header-height));
}

.sidebar {
  position: sticky;
  top: var(--header-height);
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--header-height));
  padding: 0.75rem;
  overflow-y: auto;
  background: var(--surface);
  border-right: 1px solid var(--border);
}

.side-navigation {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.4rem;
}

.side-navigation a,
.side-navigation summary {
  color: var(--text);
  font-weight: 620;
}

.nav-link,
.side-navigation summary {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.nav-icon {
  display: inline-grid;
  width: 1.5rem;
  min-width: 1.5rem;
  height: 1.5rem;
  place-items: center;
  color: var(--brand-strong);
  font-weight: 800;
}

.side-navigation a[aria-current="page"] {
  color: var(--brand-strong);
  background: var(--brand-soft);
}

.nav-home,
.side-navigation summary {
  display: flex;
  width: 100%;
  padding: 0.52rem 0.6rem;
  border-radius: 0.5rem;
  text-decoration: none;
}

.nav-home:hover,
.side-navigation summary:hover {
  background: var(--surface-muted);
}

.side-navigation summary {
  list-style: none;
  background: var(--surface-muted);
  cursor: pointer;
}

.side-navigation details[open] > summary {
  color: var(--brand-strong);
  background: var(--brand-soft);
}

.side-navigation summary::-webkit-details-marker {
  display: none;
}

.side-navigation summary::after {
  margin-left: auto;
  color: var(--muted);
  content: "⌄";
  transition: transform 140ms ease;
}

.side-navigation details:not([open]) summary::after {
  transform: rotate(-90deg);
}

.tool-nav-group {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  overflow: hidden;
}

.side-navigation ul {
  display: grid;
  gap: 0.12rem;
  margin: 0;
  padding: 0.28rem 0.35rem 0.4rem;
  list-style: none;
}

.side-navigation ul a {
  padding: 0.43rem 0.58rem;
  border-radius: 0.5rem;
  text-decoration: none;
}

.nav-all-tools {
  margin-top: 0.25rem;
  padding-top: 0.25rem;
  border-top: 1px dashed var(--border);
}

.nav-all-tools a {
  color: var(--brand-strong);
}

.sidebar-empty {
  margin: 0;
  padding: 0.75rem;
  color: var(--muted);
  background: var(--surface-muted);
  border-radius: 0.6rem;
  font-size: 0.9rem;
}

.sidebar-footer {
  display: grid;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.sidebar-footer a {
  font-size: 0.88rem;
  font-weight: 550;
}

.sidebar-collapse {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 2.35rem;
  margin: 0 0 0.55rem;
  padding: 0.42rem 0.6rem;
  color: var(--text);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 680;
}

.sidebar-collapse:hover {
  color: var(--brand-strong);
  border-color: var(--brand);
}

body.sidebar-is-collapsed .app-shell {
  grid-template-columns: 4.25rem minmax(0, 1fr);
}

body.sidebar-is-collapsed .sidebar {
  align-items: center;
  padding-inline: 0.55rem;
}

body.sidebar-is-collapsed .side-navigation {
  width: 100%;
}

body.sidebar-is-collapsed .side-navigation .nav-label,
body.sidebar-is-collapsed .side-navigation summary,
body.sidebar-is-collapsed .sidebar-footer,
body.sidebar-is-collapsed .sidebar-empty {
  display: none;
}

body.sidebar-is-collapsed .side-navigation details,
body.sidebar-is-collapsed .side-navigation ul {
  display: contents;
}

body.sidebar-is-collapsed .side-navigation li {
  display: block;
}

body.sidebar-is-collapsed .side-navigation .nav-link {
  justify-content: center;
  padding-inline: 0.35rem;
}

body.sidebar-is-collapsed .side-navigation .nav-icon {
  width: 2rem;
  height: 2rem;
}

body.sidebar-is-collapsed .sidebar-collapse [data-sidebar-label] {
  display: none;
}

body.sidebar-is-collapsed .sidebar-collapse {
  justify-content: center;
  width: 2.5rem;
  min-height: 2.5rem;
  padding: 0;
  font-size: 1.25rem;
}

body.sidebar-is-collapsed .nav-all-tools {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.main-content {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2.5rem) clamp(0.9rem, 3vw, 2rem);
}

.hero {
  max-width: 52rem;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(17rem, 0.75fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: stretch;
}

.home-hero__copy,
.home-summary {
  border: 1px solid var(--border);
  border-radius: 0.8rem;
}

.home-hero__copy {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  min-height: 24rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--brand-soft);
}

.home-hero h1 {
  max-width: 15ch;
  font-size: clamp(2.25rem, 5vw, 4.25rem);
}

.home-hero__introduction {
  max-width: 42rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.15rem);
}

.home-hero__actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 1.35rem;
}

.home-summary {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--surface);
}

.home-summary h2 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.home-summary ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-summary li {
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--border);
}

.home-summary li:last-child {
  padding-bottom: 0;
}

.home-summary span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.hero--compact {
  max-width: 42rem;
}

.eyebrow {
  margin: 0 0 0.4rem;
  color: var(--brand-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.2;
  text-wrap: balance;
}

h1 {
  max-width: 17ch;
  margin: 0;
  font-size: clamp(1.9rem, 4.5vw, 3.4rem);
  letter-spacing: -0.045em;
}

h2 {
  margin-top: 0;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  letter-spacing: -0.025em;
}

.hero > p:not(.eyebrow) {
  max-width: 44rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
}

.primary-button {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  color: #fff;
  background: var(--brand);
  border: 1px solid transparent;
  border-radius: 0.6rem;
  font-weight: 720;
  text-decoration: none;
  cursor: pointer;
}

.primary-button:hover {
  background: var(--brand-strong);
}

.secondary-button {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  font-weight: 700;
  text-decoration: none;
}

.secondary-button:hover {
  border-color: var(--brand);
}

.status-panel,
.principles {
  margin-top: clamp(2.5rem, 6vw, 5rem);
}

.status-panel {
  max-width: 50rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--border));
  border-radius: 1rem;
}

.status-panel p {
  margin-bottom: 0;
}

.card-grid,
.language-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.card-grid article,
.language-card {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.85rem;
}

.card-grid h3,
.card-grid p {
  margin-top: 0;
}

.card-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.directory-section {
  margin-top: clamp(2.5rem, 6vw, 5rem);
}

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

.section-heading-row h2,
.section-heading-row p {
  margin-bottom: 0;
}

.category-grid,
.tool-directory {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 0.8rem;
  padding: 0;
  list-style: none;
}

.category-card,
.tool-directory a {
  display: grid;
  gap: 0.3rem;
  padding: 1rem;
  color: var(--text);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.7rem;
}

.category-card:hover,
.tool-directory a:hover {
  border-color: var(--brand);
}

.category-card span,
.category-card small,
.tool-directory span {
  color: var(--muted);
}

.category-card small {
  margin-top: 0.25rem;
  font-weight: 700;
}

.compact-directory {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 0.55rem 1rem;
  padding-left: 1.2rem;
}

.home-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-tool-card {
  display: grid;
  gap: 0.35rem;
  min-height: 6.5rem;
  align-content: center;
  padding: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  text-decoration: none;
}

.home-tool-card:hover,
.home-tool-card:focus-visible {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.home-tool-card span {
  color: var(--muted);
  font-size: 0.86rem;
}

.home-tool-card--detailed {
  min-height: 14rem;
  align-content: start;
  grid-template-rows: auto auto 1fr auto;
  padding: 1.1rem;
}

.home-tool-card--detailed p {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.home-tool-card--detailed .home-tool-card__category {
  color: var(--brand-strong);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-tool-card--detailed .home-tool-card__action {
  display: flex;
  min-height: 2.35rem;
  align-items: center;
  justify-content: center;
  margin-top: 0.6rem;
  color: #fff;
  background: var(--brand);
  border-radius: 0.45rem;
  font-weight: 750;
}

.home-editorial {
  max-width: 58rem;
  margin-top: clamp(3rem, 7vw, 6rem);
}

.home-editorial > section {
  padding-block: clamp(1.75rem, 4vw, 3rem);
  border-top: 1px solid var(--border);
}

.home-editorial h2 {
  max-width: 28ch;
  margin-bottom: 0.85rem;
}

.home-editorial > section > p:not(.eyebrow) {
  max-width: 76ch;
  color: #41454b;
}

.home-topic-grid,
.home-count-guide {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.home-topic-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-topic-grid section,
.home-count-guide section {
  padding: 1rem;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 0.6rem;
}

.home-topic-grid h3,
.home-topic-grid p,
.home-count-guide h3,
.home-count-guide p {
  margin: 0;
}

.home-topic-grid h3,
.home-count-guide h3 {
  margin-bottom: 0.45rem;
  font-size: 1rem;
}

.home-topic-grid p,
.home-count-guide p,
.home-count-guide small {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.home-count-guide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-count-guide small {
  display: block;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.home-faq details {
  border-top: 1px solid var(--border);
}

.home-faq details:last-child {
  border-bottom: 1px solid var(--border);
}

.home-faq summary {
  padding: 0.9rem 0;
  cursor: pointer;
  font-weight: 750;
}

.home-faq details p {
  max-width: 74ch;
  margin: 0 0 1rem;
  color: var(--muted);
}

.home-status {
  display: grid;
  grid-template-columns: minmax(12rem, 0.65fr) minmax(0, 1.35fr);
  gap: 1.5rem;
  margin-top: clamp(2.5rem, 6vw, 5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.home-status h2,
.home-status p {
  margin-top: 0;
}

.home-status p {
  color: var(--muted);
}

.directory-heading {
  max-width: 48rem;
  margin-bottom: 2rem;
}

.directory-heading h1 {
  margin-top: 0.65rem;
}

.directory-heading p {
  color: var(--muted);
  font-size: 1.05rem;
}

.tool-directory {
  max-width: 58rem;
}

.language-grid {
  margin-top: 2rem;
}

.language-card,
.language-card a {
  display: grid;
  gap: 0.35rem;
}

.language-card a {
  color: var(--text);
  text-decoration: none;
}

.language-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.language-card--planned {
  background: transparent;
  border-style: dashed;
}

.site-footer {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  align-items: center;
  padding: 0.85rem clamp(1rem, 3vw, 3rem);
  color: var(--muted);
  background: var(--surface-muted);
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
}

.site-footer__brand {
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.site-footer__navigation {
  display: flex;
  gap: 0.4rem clamp(0.65rem, 1.35vw, 1.25rem);
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.site-footer__secondary {
  display: flex;
  gap: 0.4rem 0.9rem;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
}

.site-share {
  position: relative;
}

.site-share summary {
  color: var(--brand-strong);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-share__actions {
  position: absolute;
  z-index: 10;
  right: 0;
  bottom: calc(100% + 0.65rem);
  display: flex;
  gap: 0.4rem;
  justify-content: flex-end;
  flex-wrap: wrap;
  width: max-content;
  max-width: min(28rem, calc(100vw - 2rem));
  padding: 0.65rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  box-shadow: var(--shadow);
}

.site-share__actions a,
.site-share__actions button {
  min-height: 2rem;
  padding: 0.25rem 0.55rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.45rem;
  font: inherit;
  line-height: 1.35;
  text-decoration: none;
  cursor: pointer;
}

.site-share__actions a:hover,
.site-share__actions button:hover {
  background: var(--brand-soft);
  border-color: #b7b1fa;
}

.site-footer a,
.sidebar-footer a[href^="mailto:"] {
  overflow-wrap: anywhere;
}

.site-footer a[aria-current="page"] {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.information-page {
  width: min(100%, 52rem);
  margin-inline: auto;
}

.information-page__header {
  padding: clamp(1.5rem, 5vw, 3.25rem);
  background: var(--brand-soft);
  border: 1px solid var(--border);
  border-radius: 1rem;
}

.information-page__header h1 {
  max-width: 18ch;
  margin: 0.25rem 0 0.75rem;
}

.information-page__header p:last-child {
  max-width: 45rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.12rem);
}

.information-page__content {
  display: grid;
  gap: 1.75rem;
  padding-block: 2rem 1rem;
}

.information-page__content section {
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}

.information-page__content section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.information-page__content h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.2rem, 3vw, 1.55rem);
}

.information-page__content p,
.information-page__content ul {
  margin-block: 0.55rem 0;
  color: var(--muted);
}

.information-page__content li + li {
  margin-top: 0.4rem;
}

.information-callout {
  padding: 1rem 1.15rem;
  color: var(--text);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
}

.information-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

dialog {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgb(8 13 26 / 58%);
  backdrop-filter: blur(2px);
}

body.drawer-active {
  overflow: hidden;
}

.drawer {
  position: fixed;
  inset: var(--header-height) auto auto 0;
  width: min(86vw, 20rem);
  height: calc(100dvh - var(--header-height));
  max-height: none;
  margin: 0;
  padding: 0;
  border-width: 0 1px 0 0;
  border-radius: 0 1rem 1rem 0;
  opacity: 0;
  transform: translateX(-104%);
  transition: opacity 180ms ease, transform 280ms cubic-bezier(0.22, 1, 0.36, 1), overlay 280ms allow-discrete, display 280ms allow-discrete;
}

.drawer[open] {
  opacity: 1;
  transform: translateX(0);
}

@starting-style {
  .drawer[open] {
    opacity: 0;
    transform: translateX(-104%);
  }
}

.drawer__panel {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 0.85rem;
}

.drawer__header,
.search-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer__header h2,
.search-dialog__header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.search-dialog {
  width: min(calc(100% - 2rem), 38rem);
  padding: 1rem;
  border-radius: 0.85rem;
}

.search-dialog label {
  display: block;
  margin-top: 1rem;
  font-weight: 700;
}

.search-dialog input {
  width: 100%;
  min-height: 2.8rem;
  margin-top: 0.4rem;
  padding: 0.55rem 0.7rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.55rem;
}

.search-results {
  display: grid;
  gap: 0.4rem;
  padding: 0;
  list-style: none;
}

.search-results a {
  display: block;
  padding: 0.6rem;
  color: var(--text);
  background: var(--surface-muted);
  border-radius: 0.45rem;
  text-decoration: none;
}

.muted {
  color: var(--muted);
}

.copy-notification {
  position: fixed;
  z-index: 90;
  right: 1rem;
  bottom: 1rem;
  width: max-content;
  max-width: min(28rem, calc(100vw - 2rem));
  padding: 0.7rem 0.9rem;
  color: #166534;
  background: #ecfdf5;
  border: 1px solid #a7e3c5;
  border-radius: 0.55rem;
  box-shadow: 0 0.35rem 1rem rgb(32 33 36 / 12%);
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.35;
  animation: copy-notification-in 160ms ease-out;
}

.copy-notification[data-tone="error"] {
  color: #9f1239;
  background: #fff1f2;
  border-color: #fecdd3;
}

@keyframes copy-notification-in {
  from {
    opacity: 0;
    transform: translateY(0.4rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.review-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 2rem;
  padding: 0.35rem 1rem;
  color: #341d00;
  background: #ffd27a;
  border-bottom: 1px solid #b56a00;
  font-size: 0.82rem;
  text-align: center;
}

.review-banner strong {
  white-space: nowrap;
}

@media (max-width: 80rem) {
  .site-footer {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    align-items: start;
    padding-block: 1.15rem;
  }

  .site-footer__navigation {
    justify-content: flex-start;
    flex-wrap: wrap;
    white-space: normal;
  }

  .site-footer__secondary {
    justify-content: flex-start;
    flex-wrap: wrap;
    white-space: normal;
  }

  .site-share__actions {
    position: static;
    justify-content: flex-start;
    width: auto;
    max-width: 100%;
    margin-top: 0.55rem;
    box-shadow: none;
  }
}

@media (max-width: 63.99rem) {
  .site-footer {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    align-items: start;
    padding-block: 1.15rem;
  }

  .site-footer__navigation {
    justify-content: flex-start;
    flex-wrap: wrap;
    white-space: normal;
  }

  .site-footer__secondary {
    justify-content: flex-start;
    flex-wrap: wrap;
    white-space: normal;
  }

  .site-share__actions {
    position: static;
    justify-content: flex-start;
    width: auto;
    max-width: 100%;
    margin-top: 0.55rem;
    box-shadow: none;
  }

  .site-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .search-button {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .drawer {
    inset: 0 auto auto 0;
    width: min(88vw, 22rem);
    height: 100dvh;
    border-radius: 0 1rem 1rem 0;
  }

}

@media (max-width: 48rem) {
  .home-hero,
  .home-status {
    grid-template-columns: 1fr;
  }

  .home-hero__copy {
    min-height: auto;
  }

  .home-tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-topic-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 38rem) {
  .review-banner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.1rem;
  }

  .brand__text,
  .search-button kbd {
    display: none;
  }

  .language-picker summary {
    width: auto;
    min-width: 3rem;
    min-height: 2.35rem;
    justify-content: center;
    padding: 0.35rem 0.55rem;
  }

  .language-picker__menu {
    right: -3.15rem;
  }

  .home-hero__copy,
  .home-summary {
    border-radius: 0.65rem;
  }

  .home-tool-grid {
    grid-template-columns: 1fr;
  }

  .home-count-guide {
    grid-template-columns: 1fr;
  }

  .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .copy-notification {
    right: 0.75rem;
    bottom: 0.75rem;
    left: 0.75rem;
    width: auto;
    max-width: none;
    text-align: center;
  }

  h1 {
    font-size: clamp(1.8rem, 9.5vw, 2.55rem);
  }
}

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

