/*
 * MiyaIP tools shared presentation layer — 2026 edition.
 * Load after site.css and any page-specific stylesheet.
 */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/inter-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url("/assets/fonts/inter-semibold.woff2") format("woff2");
}

@font-face {
  font-family: "MiSans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/misans-regular-subset.woff") format("woff");
}

@font-face {
  font-family: "MiSans";
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url("/assets/fonts/misans-semibold-subset.woff") format("woff");
}

:root {
  --color-bg: #ffffff;
  --color-surface: #f7f7f6;
  --color-surface-muted: #f1f1ef;
  --color-surface-strong: #e9e9e7;
  --color-ink: #171719;
  --color-ink-soft: #47474d;
  --color-muted: #75757d;
  --color-border: #e9e6e2;
  --color-border-strong: #d0ccc7;
  --color-primary: #f77c08;
  --color-primary-hover: #df6900;
  --color-primary-deep: #bd5700;
  --color-primary-soft: #fff4e8;
  --color-primary-ink: #9b4800;
  --color-brand-black: #0b0b0d;
  --color-brand-panel: #171719;
  --color-brand-white: #ffffff;
  --color-low: #187b4c;
  --color-low-soft: #eaf7ef;
  --color-medium: #946200;
  --color-medium-soft: #fff7dc;
  --color-high: #c4322d;
  --color-high-soft: #fff0ef;
  --color-info: #2767b0;
  --color-info-soft: #edf5ff;
  --font-sans: "Inter", "MiSans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --shadow-sm: 0 1px 2px rgb(11 11 13 / 0.05), 0 6px 18px rgb(11 11 13 / 0.04);
  --shadow-card: 0 1px 2px rgb(11 11 13 / 0.05), 0 18px 46px rgb(11 11 13 / 0.06);
  --shadow-menu: 0 22px 60px rgb(11 11 13 / 0.16);
  --shadow-focus: 0 0 0 4px rgb(247 124 8 / 0.22);
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --page-width: 1232px;
  --header-main-height: 72px;
  --header-rail-height: 48px;
  --transition: 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-main-height) + var(--header-rail-height) + 24px);
}

body {
  max-width: 100%;
  overflow-x: clip;
  background: var(--color-surface);
  color: var(--color-ink);
  font-family: var(--font-sans);
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

.page-shell {
  width: min(calc(100% - 48px), var(--page-width));
}

.sr-only,
.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;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* Header: official white public shell plus a dedicated tools rail. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  overflow: visible;
  border-bottom: 1px solid var(--color-border);
  background: rgb(255 255 255 / 0.96);
  color: var(--color-ink);
  backdrop-filter: blur(16px) saturate(140%);
}

.site-header__inner {
  position: relative;
  display: grid;
  min-height: calc(var(--header-main-height) + var(--header-rail-height));
  grid-template-columns: minmax(118px, 1fr) auto auto;
  grid-template-rows: var(--header-main-height) var(--header-rail-height);
  align-items: center;
  column-gap: 12px;
  row-gap: 0;
}

.site-header .brand {
  grid-column: 1;
  grid-row: 1;
  min-width: 118px;
  justify-self: start;
  color: transparent;
  font-size: 0;
}

.site-header .brand::before {
  width: 118px;
  height: 39px;
  flex: 0 0 auto;
  background: url("/assets/miyaip-header-logo.svg") center / contain no-repeat;
  content: "";
}

.site-header .brand__mark,
.site-header .brand > span {
  display: none;
}

.site-header .language-switch {
  grid-column: 2;
  grid-row: 1;
  min-height: 44px;
  margin-left: 0;
  border: 1px solid var(--color-border-strong);
  background: var(--color-bg);
  color: var(--color-ink-soft);
}

.site-header .language-switch:hover,
.site-header .language-switch:focus-visible {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
  color: var(--color-primary-ink);
}

.site-header .header-status {
  grid-column: 3;
  grid-row: 1;
  min-height: 44px;
  margin-left: 0;
  border-color: var(--color-border);
  background: var(--color-surface);
  color: var(--color-ink-soft);
  white-space: nowrap;
}

.site-header .site-nav {
  display: flex;
  width: 100%;
  min-width: 0;
  height: var(--header-rail-height);
  grid-column: 1 / -1;
  grid-row: 2;
  align-items: stretch;
  justify-content: space-between;
  gap: 2px;
  margin-left: 0;
  overflow-x: auto;
  overflow-y: hidden;
  border-top: 1px solid var(--color-border);
  color: var(--color-ink-soft);
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline proximity;
  scrollbar-width: none;
}

.site-header .site-nav::-webkit-scrollbar {
  display: none;
}

.site-header .site-nav a {
  position: relative;
  display: inline-flex;
  min-height: var(--header-rail-height);
  flex: 0 0 auto;
  align-items: center;
  border-radius: 9px 9px 0 0;
  padding: 0 10px;
  color: inherit;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
  scroll-snap-align: center;
  white-space: nowrap;
  transition: background-color var(--transition), color var(--transition);
}

.site-header .site-nav a::after {
  position: absolute;
  right: 10px;
  bottom: 0;
  left: 10px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: var(--color-primary);
  content: "";
  opacity: 0;
  transform: scaleX(0.55);
  transition: opacity var(--transition), transform var(--transition);
}

.site-header .site-nav a:hover,
.site-header .site-nav a:focus-visible {
  background: var(--color-primary-soft);
  color: var(--color-primary-ink);
}

.site-header .site-nav a[aria-current="page"] {
  background: var(--color-primary-soft);
  color: var(--color-ink);
}

.site-header .site-nav a[aria-current="page"]::after,
.site-header .site-nav a:hover::after,
.site-header .site-nav a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.tools-menu-toggle {
  display: none;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border-strong);
  border-radius: 999px;
  background: var(--color-bg);
  padding: 0 15px;
  color: var(--color-ink);
  cursor: pointer;
  font: 700 13px/1 var(--font-sans);
  white-space: nowrap;
  transition: border-color var(--transition), background-color var(--transition), color var(--transition), transform var(--transition);
}

.tools-menu-toggle:hover,
.tools-menu-toggle:focus-visible,
.tools-menu-toggle[aria-expanded="true"] {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
  color: var(--color-primary-ink);
}

.tools-menu-toggle:active {
  transform: translateY(1px);
}

/* Black data curtain with a restrained grid and orange action glow. */
.hero {
  position: relative;
  z-index: 0;
  isolation: isolate;
  color: var(--color-brand-white);
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: auto;
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
  background:
    linear-gradient(rgb(255 255 255 / 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.045) 1px, transparent 1px),
    radial-gradient(circle at 50% 112%, rgb(247 124 8 / 0.26), transparent 42%),
    var(--color-brand-black);
  background-size: 32px 32px, 32px 32px, auto, auto;
  box-shadow: 0 0 0 100vmax var(--color-brand-black);
  clip-path: inset(0 -100vmax);
  content: "";
  transform: none;
}

body .hero__label,
body .hero .section-label,
body .hero .result-card__kicker {
  color: var(--color-primary);
}

.hero h1,
.hero h2 {
  color: var(--color-brand-white);
}

.hero h1 span,
.proxy-list-hero h1 span {
  color: var(--color-primary);
}

.hero__description,
.hero .hero__privacy {
  color: #c6c6ca;
}

.hero .environment-hero__facts span,
.hero .proxy-list-hero__facts span,
.hero .bandwidth-hero__fact {
  border-color: rgb(255 255 255 / 0.18);
  background: rgb(255 255 255 / 0.07);
  color: #ededee;
}

.hero .bandwidth-hero__fact small {
  color: #b9b9be;
}

/* Light workbench surfaces and measured elevation. */
main > :not(.hero) {
  position: relative;
}

:where(.current-ip-panel, .result-card, .knowledge-card, .proxy-form, .dns-workbench, .converter-workbench, .bandwidth-workbench) {
  border-color: var(--color-border);
}

:where(.result-card, .proxy-form, .dns-workbench, .converter-workbench, .bandwidth-workbench) {
  box-shadow: var(--shadow-sm);
}

/* Segmented tabs: a measured sliding surface keeps mode changes calm and legible. */
.miya-segmented-control {
  position: relative;
  isolation: isolate;
  box-shadow: inset 0 1px 2px rgb(11 11 13 / 0.04);
}

.miya-segmented-control > button {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 44px;
  border: 0;
  background: transparent !important;
  box-shadow: none !important;
  padding-block: 8px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-align: center;
  text-wrap: balance;
  white-space: normal;
  transition:
    color 180ms ease,
    transform 140ms ease;
}

.miya-segmented-control > button:hover {
  color: var(--color-primary-ink);
}

.miya-segmented-control > button:active {
  transform: translateY(1px);
}

.miya-segmented-control > button[aria-selected="true"],
.miya-segmented-control > button[aria-pressed="true"] {
  color: var(--color-ink);
}

.miya-segmented-control > button[aria-selected="true"] span,
.miya-segmented-control > button[aria-pressed="true"] span {
  color: var(--color-primary-ink);
}

.miya-tab-indicator {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: var(--miya-tab-width, 0);
  height: var(--miya-tab-height, 0);
  border: 1px solid rgb(11 11 13 / 0.06);
  border-radius: calc(var(--radius-sm) - 1px);
  background: var(--color-bg);
  box-shadow: 0 1px 2px rgb(11 11 13 / 0.06), 0 7px 18px rgb(11 11 13 / 0.07);
  pointer-events: none;
  transform: translate3d(var(--miya-tab-x, 0), var(--miya-tab-y, 0), 0);
  transform-origin: center;
}

.miya-tab-indicator::after {
  position: absolute;
  right: 24%;
  bottom: -1px;
  left: 24%;
  height: 2px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, var(--color-primary), #ff9a3d);
  box-shadow: 0 0 10px rgb(247 124 8 / 0.3);
  content: "";
}

.miya-segmented-control.is-motion-ready .miya-tab-indicator {
  transition:
    width 220ms cubic-bezier(0.22, 1, 0.36, 1),
    height 220ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.blacklist-form [role="tabpanel"]:not([hidden]),
.requests-planner [role="tabpanel"]:not([hidden]),
.calculator-panel > :is(#bandwidth-input-panel, #requests-input-panel):not([hidden]) {
  animation: miya-tab-panel-in 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
  transform-origin: top center;
}

@keyframes miya-tab-panel-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Controls: 44px minimum, 48px primary actions, and unambiguous states. */
.button {
  min-height: 44px;
  border-radius: 999px;
  padding-inline: 18px;
  font-size: 14px;
  font-weight: 720;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.button--primary {
  min-height: 48px;
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-brand-black);
  box-shadow: 0 8px 22px rgb(247 124 8 / 0.18);
}

.button--primary:hover:not(:disabled) {
  border-color: #ff8b1f;
  background: #ff8b1f;
  color: var(--color-brand-black);
  box-shadow: 0 10px 26px rgb(247 124 8 / 0.24);
  transform: translateY(-1px);
}

.button--primary:active:not(:disabled) {
  border-color: var(--color-primary-hover);
  background: var(--color-primary-hover);
  box-shadow: 0 5px 14px rgb(247 124 8 / 0.16);
  transform: translateY(1px);
}

.button--primary:focus-visible {
  box-shadow: var(--shadow-focus), 0 8px 22px rgb(247 124 8 / 0.18);
}

.button--secondary {
  border-color: var(--color-border-strong);
  background: var(--color-bg);
  color: var(--color-ink-soft);
}

.button--secondary:hover:not(:disabled) {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
  color: var(--color-primary-ink);
}

.button--text,
.text-action {
  min-height: 44px;
  border-radius: 999px;
  padding-inline: 12px;
}

.list-toolbar__actions .button,
.proxy-actions button,
.active-refinement-chips button,
.size-shortcuts button,
.protocol-actions .button,
.proxy-result-card__header .button,
.toast button {
  min-width: 44px;
  min-height: 44px;
}

.button:disabled,
.text-action:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.button--primary.is-loading,
.button--primary.is-cancel,
.button--primary[aria-busy="true"],
.is-querying .button--primary,
.is-loading .button--primary {
  border-color: var(--color-brand-black);
  background: var(--color-brand-black);
  color: var(--color-brand-white);
  box-shadow: none;
}

.button--primary.is-loading:hover:not(:disabled),
.button--primary.is-cancel:hover:not(:disabled),
.button--primary[aria-busy="true"]:hover:not(:disabled),
.is-querying .button--primary:hover:not(:disabled),
.is-loading .button--primary:hover:not(:disabled) {
  border-color: #252529;
  background: #252529;
  color: var(--color-brand-white);
}

.button--primary.is-loading .button-spinner,
.button--primary.is-cancel .button-spinner,
.button--primary[aria-busy="true"] .button-spinner,
.is-querying .button--primary .button-spinner,
.is-loading .button--primary .button-spinner {
  border-color: rgb(255 255 255 / 0.35);
  border-top-color: var(--color-brand-white);
}

:where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), textarea, select) {
  min-height: 48px;
  border-color: var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-sans);
  transition: border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
}

:where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), textarea, select):hover:not(:disabled) {
  border-color: var(--color-muted);
}

:where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), textarea, select):focus {
  border-color: var(--color-primary);
  outline: 0;
  box-shadow: var(--shadow-focus);
}

:where(input, textarea, select)[aria-invalid="true"],
.is-invalid :where(input, textarea, select) {
  border-color: var(--color-high);
  box-shadow: 0 0 0 4px rgb(196 50 45 / 0.12);
}

.field-error,
.input-error,
[data-field-error] {
  margin: 6px 0 0;
  color: var(--color-high);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
}

/* Status and stale/updating result affordances used by individual tools. */
.query-status,
.tool-status,
[data-tool-status] {
  min-height: 24px;
}

.query-status--error,
.tool-status--error,
[data-status="error"] {
  color: var(--color-high);
}

.query-status--success,
.tool-status--success,
[data-status="success"] {
  color: var(--color-low);
}

.query-status--info,
.tool-status--info,
[data-status="info"] {
  color: var(--color-info);
}

[data-result-state="updating"],
[data-result-state="stale"] {
  position: relative;
}

[data-result-state="updating"]::after,
[data-result-state="stale"]::after {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.94);
  padding: 5px 10px;
  color: var(--color-muted);
  content: attr(data-state-label);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
  pointer-events: none;
}

[aria-busy="true"] {
  cursor: progress;
}

.miya-progress {
  position: relative;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--color-surface-strong);
}

.miya-progress > span {
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--color-primary);
  transition: width var(--transition);
}

.miya-progress--indeterminate > span {
  width: 36%;
  animation: miya-progress-indeterminate 1.2s ease-in-out infinite;
}

/* Toasts: legacy singleton plus the shared stack/undo variant. */
.toast,
.miya-toast {
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: var(--radius-md);
  background: var(--color-brand-panel);
  box-shadow: 0 16px 44px rgb(11 11 13 / 0.24);
  color: var(--color-brand-white);
}

.toast--success,
.miya-toast--success {
  border-left: 4px solid #38a66a;
}

.toast--error,
.miya-toast--error {
  border-left: 4px solid #ef615b;
}

.toast--info,
.miya-toast--info {
  border-left: 4px solid var(--color-primary);
}

.miya-toast-stack {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  display: grid;
  width: min(380px, calc(100% - 48px));
  gap: 10px;
  pointer-events: none;
}

.miya-toast {
  display: flex;
  min-height: 50px;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 620;
  line-height: 1.5;
  pointer-events: auto;
  animation: miya-toast-in var(--transition) both;
}

.miya-toast__message {
  min-width: 0;
  flex: 1;
}

.miya-toast__action,
.miya-toast__close {
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.11);
  color: var(--color-brand-white);
  cursor: pointer;
  font: 750 13px/1 var(--font-sans);
  white-space: nowrap;
}

.miya-toast__action {
  padding-inline: 14px;
  color: #ffad5d;
}

.miya-toast__close {
  width: 44px;
  padding: 0;
}

.miya-toast__action:hover,
.miya-toast__action:focus-visible,
.miya-toast__close:hover,
.miya-toast__close:focus-visible {
  background: rgb(255 255 255 / 0.18);
}

.miya-toast.is-leaving {
  animation: miya-toast-out 120ms ease both;
}

@keyframes miya-progress-indeterminate {
  from { transform: translateX(-115%); }
  to { transform: translateX(295%); }
}

@keyframes miya-toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes miya-toast-out {
  to { opacity: 0; transform: translateY(6px); }
}

@media (min-width: 1200px) {
  .site-header .site-nav {
    display: flex !important;
  }
}

@media (max-width: 1199px) {
  /* No-JS fallback remains a horizontally scrollable second rail. */
  .site-header .site-nav {
    justify-content: flex-start;
  }

  .site-header .site-nav a {
    padding-inline: 13px;
  }

  /* The enhanced version collapses the rail into an accessible disclosure. */
  .miya-tools-ready {
    scroll-padding-top: calc(var(--header-main-height) + 20px);
  }

  .miya-tools-ready .site-header__inner {
    display: flex;
    min-height: var(--header-main-height);
    gap: 10px;
  }

  .miya-tools-ready .site-header .brand {
    min-width: 118px;
    margin-right: auto;
    order: 1;
  }

  .miya-tools-ready .site-header .language-switch {
    order: 2;
  }

  .miya-tools-ready .site-header .header-status {
    order: 3;
  }

  .miya-tools-ready .tools-menu-toggle {
    display: inline-flex;
    order: 4;
  }

  .miya-tools-ready .site-header .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: grid;
    width: 100%;
    height: auto;
    max-height: min(68vh, 520px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    overflow: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-bg);
    box-shadow: var(--shadow-menu);
    padding: 10px;
    color: var(--color-ink-soft);
    overscroll-behavior: contain;
    scroll-snap-type: none;
  }

  .miya-tools-ready .site-header .site-nav a {
    min-height: 48px;
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    white-space: normal;
  }

  .miya-tools-ready .site-header .site-nav a::after {
    top: 10px;
    right: auto;
    bottom: 10px;
    left: 0;
    width: 3px;
    height: auto;
    border-radius: 0 999px 999px 0;
    transform: scaleY(0.55);
  }

  .miya-tools-ready .site-header .site-nav a[aria-current="page"]::after,
  .miya-tools-ready .site-header .site-nav a:hover::after,
  .miya-tools-ready .site-header .site-nav a:focus-visible::after {
    transform: scaleY(1);
  }
}

@media (max-width: 680px) {
  .page-shell {
    width: min(calc(100% - 32px), var(--page-width));
  }

  .miya-tools-ready .site-header__inner {
    gap: 7px;
  }

  .miya-tools-ready .site-header .brand,
  .site-header .brand {
    min-width: 104px;
  }

  .site-header .brand::before {
    width: 104px;
    height: 35px;
  }

  .site-header .language-switch,
  .tools-menu-toggle {
    padding-inline: 12px;
  }

  .site-header .header-status {
    width: 36px;
    min-width: 36px;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    color: transparent;
  }

  .site-header .header-status__dot {
    flex: 0 0 auto;
  }

  .miya-toast-stack {
    right: 16px;
    bottom: 16px;
    width: calc(100% - 32px);
  }

  .toast {
    right: 16px;
    bottom: 16px;
    left: 16px;
    max-width: none;
  }

  .mode-tabs,
  .mode-switch,
  .planner-tabs {
    width: 100%;
  }

  .mode-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mode-tabs button span {
    display: block;
    margin: 2px 0 0;
  }

  .planner-tabs button {
    padding-inline: 6px;
    font-size: 12px;
  }
}

@media (max-width: 520px) {
  .miya-tools-ready .site-header .site-nav {
    grid-template-columns: 1fr;
  }

  .tools-menu-toggle {
    padding-inline: 11px;
  }

  .button--primary {
    min-height: 48px;
  }
}

@media (hover: none) {
  .button--primary:hover:not(:disabled) {
    border-color: var(--color-primary);
    background: var(--color-primary);
    box-shadow: 0 8px 22px rgb(247 124 8 / 0.18);
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Footer navigation is kept here as well as in site.css so the late-loaded
   tool theme owns the final layout on every tool page. */
.site-footer__grid {
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 2fr);
}

.site-footer__grid > nav {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-content: start;
  align-items: start;
  column-gap: 24px;
  row-gap: 14px;
}

.site-footer__grid > nav h2 {
  grid-column: 1 / -1;
}

@media (max-width: 760px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .site-footer__grid > nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .site-footer__grid > nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
