/* Approved launcher concept: local regular sans, mist/charcoal surfaces and
 * restrained lime. All assets are versioned with the complete offline cache. */
@font-face {
  font-family: Bench Sans;
  src: url("/assets/fonts/body.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Bench Sans;
  src: url("/assets/fonts/body-bold.woff2") format("woff2");
  font-weight: 600 800;
  font-display: swap;
}
@font-face {
  font-family: Bench Mono;
  src: url("/assets/fonts/mono.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: light;
  --bg: #f7f8f5;
  --panel: #fff;
  --subtle: #f0f3ec;
  --ink: #1d2426;
  --muted: #606975;
  --line: #dfe4dd;
  --line-strong: #818b7e;
  --accent: #426018;
  --accent-soft: #f0f9d7;
  --lime: #d5f26b;
  --button-ink: #222b16;
  --green: #426018;
  --scroll-track: #edf0e9;
  --scroll-thumb: #222222;
  --scroll-thumb-hover: #111111;
  --scroll-thumb-active: #000000;
  --radius: 14px;
  --mono: Bench Mono, Consolas, monospace;
  font-family:
    Bench Sans,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #171b18;
  --panel: #222824;
  --subtle: #2a322b;
  --ink: #f0f4ee;
  --muted: #b3beb2;
  --line: #3d473d;
  --line-strong: #7a8a74;
  --accent: #c8eb72;
  --accent-soft: #344122;
  --green: #c8eb72;
  --scroll-track: #202720;
  --scroll-thumb: #a6c777;
  --scroll-thumb-hover: #c8eb72;
  --scroll-thumb-active: #d5f26b;
}
/* Native scrolling stays intact. Standard properties provide the fallback;
 * Chromium/WebKit pseudo-elements add an inset, rounded thumb and hover state.
 * Keep standard colors auto in that branch so they do not override the thumb. */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
}
html {
  scrollbar-gutter: stable;
}
@supports selector(::-webkit-scrollbar) {
  * {
    scrollbar-width: auto;
    scrollbar-color: auto;
  }
  ::-webkit-scrollbar {
    width: 12px;
    height: 12px;
  }
  ::-webkit-scrollbar-track,
  ::-webkit-scrollbar-corner {
    background: var(--scroll-track);
  }
  ::-webkit-scrollbar-track {
    border-radius: 999px;
  }
  ::-webkit-scrollbar-thumb {
    background: var(--scroll-thumb);
    border: 3px solid var(--scroll-track);
    border-radius: 999px;
    min-height: 40px;
    min-width: 40px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: var(--scroll-thumb-hover);
  }
  ::-webkit-scrollbar-thumb:active {
    background: var(--scroll-thumb-active);
  }
}
/* Let the operating system choose readable controls in forced-color modes. */
@media (forced-colors: active) {
  * {
    scrollbar-color: auto;
    scrollbar-width: auto;
  }
  ::-webkit-scrollbar,
  ::-webkit-scrollbar-track,
  ::-webkit-scrollbar-thumb,
  ::-webkit-scrollbar-corner {
    all: revert;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
a,
button,
input,
textarea,
select {
  touch-action: manipulation;
}
button,
.button {
  cursor: pointer;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--panel);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  transition:
    background 0.16s,
    border-color 0.16s,
    box-shadow 0.16s;
}
button:hover,
.button:hover {
  background: var(--subtle);
  border-color: var(--accent);
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
.primary {
  background: var(--lime);
  color: var(--button-ink);
  border-color: var(--lime);
}
.primary:hover {
  background: #c9e95a;
  color: var(--button-ink);
  border-color: #c9e95a;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
::selection {
  background: var(--lime);
  color: #222b16;
}
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 20;
  background: var(--panel);
  padding: 12px;
  border-radius: 9px;
}
.skip:focus {
  top: 12px;
}
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.bar {
  display: flex;
  align-items: center;
  gap: 36px;
  max-width: 1320px;
  margin: auto;
  padding: 0 36px;
  min-height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.65px;
  white-space: nowrap;
}
.mark {
  width: 30px;
  height: 34px;
  flex-shrink: 0;
}
.bar nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: auto;
  font-size: 14px;
}
.bar nav a {
  display: flex;
  align-items: center;
  position: relative;
  min-height: 76px;
  min-width: 44px;
  justify-content: center;
  padding-inline: 4px;
  color: var(--muted);
}
.bar nav a[aria-current],
.bar nav a:hover {
  color: var(--ink);
}
.bar nav a[aria-current]:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -8px;
  right: -8px;
  background: var(--lime);
  height: 3px;
  border-radius: 3px;
}
#theme {
  min-height: 44px;
  gap: 10px;
  padding: 3px 5px;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: var(--subtle);
  font-size: 18px;
}
#theme > span:not(.sr-only) {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  color: var(--muted);
}
#theme[aria-pressed="false"] > span:first-child,
#theme[aria-pressed="true"] > span:nth-child(2) {
  background: var(--panel);
  box-shadow: 0 1px 5px #0000000b;
  color: var(--ink);
}
.container {
  max-width: 1320px;
  width: 100%;
  padding: 0 36px 10px;
  margin: auto;
  min-height: calc(100vh - 155px);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 44px;
  line-height: 1.15;
  letter-spacing: -1.6px;
  font-weight: 600;
  margin: 0 0 15px;
}
h2 {
  font-size: 23px;
  line-height: 1.3;
  letter-spacing: -0.5px;
  font-weight: 600;
}
h3 {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
}
.lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
  margin: 0;
}
.intro {
  text-align: center;
  padding: 52px 0 40px;
}
.intro-kicker {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 15px;
}
.intro h1 {
  margin: 0 0 13px;
}
.discovery {
  max-width: 930px;
  margin: 30px auto 0;
}
.search-box {
  height: 65px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 6px 22px #263a1b05;
}
.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.search-box > svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.7;
  stroke-linecap: round;
}
.search-box input {
  font-size: 17px;
  width: 100%;
  min-width: 0;
  background: transparent;
  border: 0;
  color: var(--ink);
  outline: 0;
  padding: 12px 0;
  height: 100%;
}
.search-box input::placeholder {
  color: var(--muted);
  opacity: 0.8;
}
.search-box kbd {
  font: 13px var(--mono);
  background: var(--subtle);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  padding: 4px 10px;
}
.category-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.category-pills button {
  min-height: 44px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 400;
  padding: 9px 18px;
  border: 1px solid var(--line);
  background: transparent;
  white-space: nowrap;
}
.category-pills button[aria-pressed="true"] {
  background: var(--lime);
  color: var(--button-ink);
  border-color: var(--lime);
  font-weight: 600;
}
.category-pills button:hover {
  border-color: var(--accent);
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin: 0 0 19px;
}
.section-title h2 {
  margin: 0;
}
.section-title > a {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 13px;
  white-space: nowrap;
}
.section-title > a:hover {
  color: var(--accent);
}
.essentials {
  padding-top: 0;
}
.tool-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}
.home-more {
  display: flex;
  justify-content: center;
  width: 100%;
  padding-top: 24px;
}
/* Clip only during the height transition; the resting grid keeps normal focus outlines. */
#home-tool-panels[data-transitioning] {
  overflow: hidden;
  overflow-anchor: none;
}
.home-more button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 188px;
  min-height: 46px;
  margin-inline: auto;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    border-color 0.16s,
    background-color 0.16s;
}
.home-more button:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.home-more-icon {
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
}
.tool-card {
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr) 14px;
  grid-template-rows: auto 1fr;
  gap: 12px 12px;
  padding: 20px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition:
    border-color 0.16s,
    box-shadow 0.16s,
    transform 0.16s;
}
.tool-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 5px 18px #243a1910;
  transform: translateY(-2px);
}
.tool-icon {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--ink);
}
.tool-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tool-card h3 {
  align-self: center;
  font-size: 15px;
  letter-spacing: -0.3px;
  margin: 0;
  overflow-wrap: anywhere;
}
.row-arrow {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.2;
  justify-self: end;
}
.tool-card > p {
  grid-column: 1/-1;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}
.offline-band {
  margin-top: 23px;
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
}
.offline-icon {
  display: grid;
  place-items: center;
  width: 49px;
  height: 49px;
  background: var(--accent-soft);
  border-radius: 12px;
  flex-shrink: 0;
}
.offline-icon svg {
  height: 26px;
  width: 26px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.offline-band h2 {
  font-size: 17px;
  letter-spacing: -0.3px;
  margin: 0 0 4px;
}
.offline-band p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.offline-band > a {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}
.offline-band > a:hover {
  color: var(--accent);
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
  padding-top: 25px;
  margin-bottom: 24px;
}
.breadcrumb a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.breadcrumb a:hover {
  color: var(--accent);
}
.directory-heading {
  text-align: center;
  padding: 12px 0 36px;
}
.directory-heading h1 {
  font-size: 36px;
  letter-spacing: -1px;
}
.directory-heading .lead {
  font-size: 16px;
}
.index-legend {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.index-legend h2 {
  font-size: 21px;
  margin: 0;
}
.index-legend > span {
  font-size: 13px;
  color: var(--muted);
}
#empty-search {
  padding: 35px;
  text-align: center;
  background: var(--panel);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
}
.tool-heading {
  padding: 0 0 23px;
}
.tool-title-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
}
.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 12px;
}
.tool-title-meta > span {
  font: 10px var(--mono);
  color: var(--muted);
}
.tool-heading h1 {
  font-size: 34px;
  letter-spacing: -1px;
  margin-bottom: 14px;
}
.tool-heading .lead {
  font-size: 15px;
  max-width: 900px;
}
.workspace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}
.input-panel,
.output-panel {
  min-width: 0;
  padding: 25px;
}
.output-panel {
  background: var(--subtle);
  border-left: 1px solid var(--line);
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.panel-heading h2 {
  font-size: 18px;
  letter-spacing: -0.3px;
  margin: 0;
}
.panel-heading h2 > span {
  display: none;
}
.panel-heading > span {
  font: 10px var(--mono);
  color: var(--muted);
  text-align: right;
}
.field {
  margin-bottom: 20px;
}
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 8px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
}
.field textarea {
  font: 13px/1.8 var(--mono);
  min-height: 175px;
  resize: vertical;
}
.field input[type="file"] {
  font-size: 12px;
}
.field [aria-invalid="true"] {
  border-color: #b44032;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.actions button {
  font-size: 12px;
  padding: 10px 13px;
}
.actions .primary {
  padding: 10px 17px;
}
#status {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin: 15px 0 0;
  min-height: 20px;
  overflow-wrap: anywhere;
}
#output {
  font: 12px/1.9 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-height: 600px;
  min-height: 240px;
  overflow: auto;
  margin: 0 0 20px;
  tab-size: 2;
}
#output:empty:before {
  content: "Your result will appear here.\A Load an example or enter your own input.";
  color: var(--muted);
  white-space: pre-wrap;
}
.docs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 26px;
}
.docs section {
  min-width: 0;
  padding: 25px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.docs section:last-child {
  grid-column: 1/-1;
}
.docs section > .eyebrow {
  display: none;
}
.docs h2 {
  font-size: 21px;
  margin: 0 0 15px;
}
.docs h3 {
  font-size: 14px;
}
.docs p,
.docs li {
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}
.docs ol {
  padding-left: 22px;
  margin: 0;
}
.docs li {
  margin-bottom: 9px;
  padding-left: 3px;
}
.docs pre,
.prose pre {
  font: 12px/1.8 var(--mono);
  padding: 16px;
  background: var(--subtle);
  border-radius: 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 12px 0 20px;
}
.related {
  margin-top: 34px;
}
.related .tool-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.prose {
  max-width: 900px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  font-size: 15px;
}
.prose h2 {
  font-size: 23px;
  margin: 24px 0 14px;
}
.prose p,
.prose li {
  color: var(--muted);
}
.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose strong {
  color: var(--ink);
}
#preview {
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 9px;
  margin-bottom: 20px;
  overflow: hidden;
}
#preview svg {
  display: block;
  width: 100%;
  height: 180px;
  color: var(--accent);
}
.grid-preview span {
  padding: 15px 5px;
  background: var(--accent-soft);
  border-radius: 6px;
  color: var(--ink);
  text-align: center;
  min-width: 0;
  font-family: var(--mono);
}
.easing-track {
  position: relative;
  height: 40px;
  margin: 5px 0;
}
.easing-dot {
  position: absolute;
  left: 0;
  top: 5px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  animation: travel 2s infinite alternate;
}
@keyframes travel {
  to {
    left: calc(100% - 30px);
  }
}
.offline-strip {
  margin-top: 23px;
  padding: 17px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
#offline-status {
  color: var(--green);
}
footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.footer-inner {
  max-width: 1320px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 20px 36px;
  font-size: 11px;
  color: var(--muted);
}
.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 12px;
}
.footer-links a:hover {
  color: var(--accent);
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
}
[hidden] {
  display: none !important;
}
main,
section[id] {
  scroll-margin-top: 95px;
}
@media (max-width: 1150px) {
  .tool-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .tool-card {
    padding: 18px;
    gap: 12px 9px;
    grid-template-columns: 42px minmax(0, 1fr) 13px;
  }
  .tool-icon {
    width: 42px;
    height: 42px;
  }
  .bar {
    gap: 22px;
  }
  .bar nav {
    gap: 22px;
  }
  .brand {
    font-size: 20px;
  }
  .intro h1 {
    font-size: 40px;
  }
  .category-pills button {
    padding: 9px 15px;
  }
}
@media (max-width: 850px) {
  .container {
    padding: 0 25px 10px;
  }
  .bar {
    padding: 0 25px;
    gap: 18px;
  }
  .brand {
    font-size: 18px;
  }
  .mark {
    width: 26px;
    height: 30px;
  }
  .bar nav {
    gap: 18px;
    font-size: 13px;
  }
  .tool-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .output-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .intro {
    padding-top: 40px;
  }
  .intro h1 {
    font-size: 37px;
  }
  .lead {
    font-size: 16px;
  }
  .related .tool-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .offline-band {
    padding: 20px;
    gap: 15px;
  }
  .offline-band > a {
    font-size: 12px;
  }
  .footer-inner {
    padding: 20px 25px;
  }
}
@media (max-width: 600px) {
  .bar {
    padding: 14px 19px 0;
    min-height: 111px;
    flex-wrap: wrap;
    gap: 9px;
  }
  .brand {
    font-size: 19px;
  }
  .bar nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
  }
  .bar nav a {
    flex: 1;
    min-height: 44px;
    text-align: center;
    overflow-wrap: anywhere;
  }
  .bar nav a[aria-current]:after {
    bottom: 0;
  }
  .bar #theme {
    margin-left: auto;
  }
  .container {
    padding: 0 19px 8px;
  }
  .intro {
    padding: 33px 0;
  }
  .intro-kicker {
    font-size: 13px;
    margin-bottom: 13px;
  }
  .intro h1 {
    font-size: 33px;
    letter-spacing: -1px;
    line-height: 1.18;
    max-width: 340px;
    margin: 0 auto 15px;
  }
  .intro .lead {
    font-size: 15px;
    max-width: 330px;
    margin: auto;
    line-height: 1.7;
  }
  .discovery {
    margin-top: 25px;
  }
  .search-box {
    padding: 0 13px;
    gap: 11px;
    height: 57px;
    border-radius: 12px;
  }
  .search-box input {
    font-size: 16px;
  }
  .search-box > svg {
    width: 21px;
    height: 21px;
  }
  .search-box kbd {
    font-size: 11px;
    padding: 3px 7px;
  }
  .category-pills {
    gap: 7px;
    margin-top: 15px;
  }
  .category-pills button {
    font-size: 12px;
    padding: 9px 13px;
    min-height: 44px;
  }
  .tool-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .tool-card {
    grid-template-columns: 43px minmax(0, 1fr) 14px;
    gap: 11px 13px;
    padding: 19px;
  }
  .tool-card h3 {
    font-size: 16px;
  }
  .tool-card > p {
    font-size: 14px;
  }
  .tool-icon {
    width: 43px;
    height: 43px;
  }
  .section-title {
    gap: 10px;
    align-items: center;
    margin-bottom: 16px;
  }
  .section-title h2 {
    font-size: 20px;
  }
  .section-title > a {
    font-size: 12px;
    gap: 7px;
  }
  .offline-band {
    display: grid;
    grid-template-columns: 43px 1fr;
    padding: 19px;
    gap: 14px;
    margin-top: 19px;
  }
  .offline-icon {
    width: 43px;
    height: 43px;
  }
  .offline-band h2 {
    font-size: 16px;
  }
  .offline-band p {
    font-size: 13px;
  }
  .offline-band > a {
    grid-column: 2;
    margin: 0;
    justify-self: start;
    font-size: 13px;
  }
  .directory-heading {
    padding-bottom: 28px;
  }
  .directory-heading h1 {
    font-size: 30px;
  }
  .directory-heading .lead {
    font-size: 15px;
  }
  .index-legend h2 {
    font-size: 20px;
  }
  .index-legend > span {
    font-size: 11px;
  }
  .breadcrumb {
    font-size: 11px;
    padding-top: 23px;
    margin-bottom: 22px;
  }
  .tool-heading h1 {
    font-size: 29px;
    letter-spacing: -0.7px;
  }
  .tool-heading .lead {
    font-size: 14px;
  }
  .tool-title-meta > span {
    font-size: 9px;
  }
  .eyebrow {
    font-size: 11px;
  }
  .input-panel,
  .output-panel {
    padding: 20px 17px;
  }
  .field textarea {
    font-size: 16px;
  }
  .field input,
  .field select {
    font-size: 16px;
  }
  .panel-heading > span {
    font-size: 8px;
  }
  .panel-heading h2 {
    font-size: 18px;
  }
  .actions {
    gap: 7px;
  }
  .actions button {
    font-size: 11px;
    padding: 10px 10px;
  }
  .actions .primary {
    padding: 10px 13px;
  }
  .docs {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 20px;
  }
  .docs section {
    padding: 21px;
  }
  .docs h2 {
    font-size: 21px;
  }
  .docs pre {
    font-size: 11px;
  }
  .docs p,
  .docs li {
    font-size: 14px;
  }
  .related .tool-list {
    grid-template-columns: 1fr;
  }
  .offline-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    font-size: 10px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 17px;
    padding: 20px 19px;
  }
  .footer-links {
    gap: 20px;
  }
  .prose {
    padding: 21px;
    font-size: 14px;
  }
  .prose h2 {
    font-size: 22px;
  }
  main,
  section[id] {
    scroll-margin-top: 130px;
  }
}
@media (max-width: 350px) {
  .intro h1 {
    font-size: 30px;
  }
  .bar nav {
    gap: 4px;
  }
  .brand {
    font-size: 17px;
  }
  .section-title > a {
    font-size: 11px;
  }
  .section-title h2 {
    font-size: 18px;
  }
  .category-pills button {
    padding: 8px 11px;
  }
  .tool-card {
    padding: 17px;
  }
  .tool-title-meta {
    gap: 10px;
  }
  .tool-heading h1 {
    font-size: 27px;
  }
}
/* Editorial surfaces share launcher tokens, with readable prose and explicit
 * source/credit regions outside the counted article body. */
.home-guides {
  margin: 35px 0 24px;
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.article-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    border-color 0.16s,
    transform 0.16s;
}
.article-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.article-card > img {
  width: 100%;
  height: 185px;
  object-fit: contain;
  background: var(--subtle);
  padding: 10px;
}
.article-card > div {
  padding: 21px;
  display: flex;
  flex: 1;
  flex-direction: column;
}
.article-category {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 10px;
}
.article-card h3 {
  font-size: 19px;
  letter-spacing: -0.4px;
  margin: 0 0 11px;
  line-height: 1.4;
}
.article-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
}
.article-read {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  font-size: 13px;
  color: var(--accent);
}
.guides-heading {
  padding: 15px 0 35px;
  max-width: 850px;
}
.guides-heading h1 {
  font-size: 39px;
  margin-bottom: 18px;
}
.article-heading {
  max-width: 920px;
  margin: 0 auto 26px;
  text-align: center;
}
.article-heading h1 {
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: -1.1px;
}
.article-heading .lead {
  font-size: 17px;
}
.article-meta {
  font-size: 12px;
  color: var(--muted);
  margin: 20px 0 0;
}
.article-meta > span {
  padding: 0 10px;
}
.article-cover {
  max-width: 1080px;
  margin: 0 auto 35px;
}
.article-cover > img {
  width: 100%;
  max-height: 440px;
  height: auto;
  object-fit: contain;
  display: block;
  background: var(--subtle);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 18px;
}
.article-cover figcaption {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 11px;
  overflow-wrap: anywhere;
}
.article-cover a {
  color: var(--accent);
  text-decoration: underline;
}
.article-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  gap: 45px;
  max-width: 1080px;
  margin: 0 auto;
  align-items: start;
}
.article-toc {
  position: sticky;
  top: 105px;
  padding: 0 0 18px;
}
.article-toc > p {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}
.article-toc nav {
  display: flex;
  flex-direction: column;
  gap: 13px;
  border-left: 1px solid var(--line);
  padding-left: 15px;
}
.article-toc nav a {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.article-toc a:hover {
  color: var(--accent);
}
.article-tools {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.article-tools h2 {
  font-size: 14px;
  margin-bottom: 15px;
}
.article-tools > a {
  display: block;
  font-size: 12px;
  line-height: 1.7;
  color: var(--accent);
  margin-bottom: 12px;
}
.article-main {
  min-width: 0;
}
.article-body {
  font-size: 17px;
  line-height: 1.9;
  color: var(--ink);
}
.article-body > p {
  margin: 0 0 23px;
}
.article-body h2 {
  font-size: 26px;
  line-height: 1.4;
  margin: 35px 0 17px;
  scroll-margin-top: 105px;
}
.article-body pre {
  font: 13px/1.8 var(--mono);
  padding: 20px;
  background: var(--subtle);
  border: 1px solid var(--line);
  border-radius: 10px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  margin: 20px 0 27px;
}
.article-body code {
  font-family: var(--mono);
}
.article-sources {
  padding-top: 23px;
  border-top: 1px solid var(--line);
  margin-top: 35px;
}
.article-sources h2,
.article-task-links h2 {
  font-size: 22px;
}
.article-sources p,
.article-sources li,
.article-task-links p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}
.article-sources a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.article-sources li {
  margin-bottom: 10px;
}
.article-task-links {
  margin-top: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.article-task-links > div {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.article-task-links .button {
  font-size: 12px;
}
.article-layout + .related {
  margin-top: 45px;
}
@media (max-width: 1000px) {
  .article-layout {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 28px;
  }
  .article-heading h1 {
    font-size: 35px;
  }
  .article-grid {
    gap: 17px;
  }
  .article-card h3 {
    font-size: 17px;
  }
  .article-card > div {
    padding: 18px;
  }
}
@media (max-width: 750px) {
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-toc {
    position: static;
    display: block;
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 20px;
    border-radius: var(--radius);
  }
  .article-toc nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .article-tools {
    display: none;
  }
  .article-heading h1 {
    font-size: 31px;
  }
  .article-cover > img {
    max-height: 300px;
    padding: 10px;
  }
  .article-body {
    font-size: 16px;
  }
  .article-heading .lead {
    font-size: 16px;
  }
  .article-body h2 {
    font-size: 24px;
  }
  .bar nav {
    gap: 18px;
  }
}
@media (max-width: 500px) {
  .article-grid {
    grid-template-columns: 1fr;
  }
  .article-card > img {
    height: 195px;
  }
  .article-card h3 {
    font-size: 20px;
  }
  .guides-heading h1 {
    font-size: 30px;
  }
  .article-heading {
    text-align: left;
  }
  .article-heading h1 {
    font-size: 29px;
  }
  .article-toc nav {
    grid-template-columns: 1fr;
  }
  .article-toc nav a {
    font-size: 13px;
  }
  .article-body pre {
    font-size: 12px;
    padding: 16px;
  }
  .article-cover figcaption {
    font-size: 10px;
  }
  .article-body h2 {
    scroll-margin-top: 135px;
  }
  .bar nav {
    gap: 24px;
    font-size: 12px;
  }
  .article-task-links {
    padding: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Homepage extension: task navigation is separate from the searchable tool grid. */
.home-facts {
  display: flex;
  justify-content: center;
  gap: 22px;
  color: var(--muted);
  font-size: 12px;
  margin: 22px 0 0;
}
.home-facts span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.home-facts span:before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.home-section {
  margin: 64px 0;
}
.home-section .section-title {
  align-items: end;
  margin-bottom: 23px;
}
.home-section .eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.07em;
  color: var(--accent);
}
.home-section h2 {
  margin: 0;
  font-size: 27px;
  letter-spacing: -0.6px;
  line-height: 1.3;
}
.home-section-intro {
  color: var(--muted);
  font-size: 15px;
  margin: -8px 0 25px;
}
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.workflow-card {
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
}
.workflow-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.workflow-symbol {
  font: 600 22px var(--mono);
  color: var(--accent);
}
.workflow-number {
  font: 11px var(--mono);
  color: var(--muted);
}
.workflow-card h3 {
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: -0.3px;
  margin: 0 0 12px;
}
.workflow-card > p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 20px;
}
.workflow-card .workflow-outcome {
  font-size: 11px;
  color: var(--accent);
  padding-bottom: 19px;
  border-bottom: 1px solid var(--line);
}
.workflow-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 22px;
}
.workflow-links a {
  font-size: 12px;
  line-height: 1.5;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.workflow-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.workflow-links span {
  color: var(--muted);
}
.workflow-guide {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  min-height: 40px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}
.workflow-guide:hover {
  text-decoration: underline;
}
.home-local {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 75px;
  padding: 42px;
  background: var(--subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.local-heading h2 {
  font-size: 34px;
}
.local-heading > p:not(.eyebrow) {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 340px;
  margin: 18px 0;
}
.local-heading > a {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}
.local-steps {
  list-style: none;
  padding: 0;
  margin: 0;
}
.local-steps li {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.local-steps li:first-child {
  padding-top: 0;
}
.local-steps li:last-child {
  border: 0;
  padding-bottom: 0;
}
.local-steps li > span {
  font: 12px var(--mono);
  color: var(--accent);
  padding-top: 5px;
}
.local-steps h3 {
  margin: 0 0 7px;
  font-size: 16px;
}
.local-steps p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}
.home-faq {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 65px;
}
.home-faq > div > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  margin-top: 18px;
}
.faq-list {
  border-top: 1px solid var(--line);
}
.faq-list details {
  border-bottom: 1px solid var(--line);
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 18px 0;
  font-weight: 600;
  font-size: 15px;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary span {
  font-size: 22px;
  font-weight: 400;
  color: var(--accent);
}
.faq-list details[open] summary span {
  transform: rotate(45deg);
}
.faq-list details p {
  margin: 0;
  padding: 0 35px 24px 0;
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}
.faq-list summary:hover {
  color: var(--accent);
}
@media (max-width: 1100px) {
  .workflow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-local {
    gap: 35px;
  }
  .home-faq {
    gap: 35px;
  }
}
@media (max-width: 650px) {
  .home-section {
    margin: 42px 0;
  }
  .home-section .section-title {
    align-items: start;
    gap: 14px;
  }
  .home-section .section-title > a {
    font-size: 12px;
    white-space: normal;
    text-align: right;
    max-width: 110px;
  }
  .home-section h2 {
    font-size: 23px;
  }
  .home-facts {
    gap: 14px;
    font-size: 11px;
  }
  .home-local,
  .home-faq {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .home-local {
    padding: 25px;
  }
  .local-heading h2 {
    font-size: 29px;
  }
  .workflow-card {
    padding: 20px;
  }
  .workflow-grid {
    gap: 14px;
  }
  .workflow-card h3 {
    font-size: 17px;
  }
}
@media (max-width: 430px) {
  .workflow-grid {
    grid-template-columns: 1fr;
  }
  .workflow-top {
    margin-bottom: 16px;
  }
  .workflow-links {
    margin-bottom: 12px;
  }
  .workflow-card > p {
    margin-bottom: 14px;
  }
  .home-facts {
    gap: 12px;
  }
  .home-facts span {
    gap: 5px;
  }
}

/* FAQ reuses the homepage disclosure pattern; help copy has a reading measure. */
.faq-page {
  max-width: 72ch;
  overflow-wrap: anywhere;
}
.faq-page .faq-list summary {
  font-size: 1rem;
  line-height: 1.5;
}
.faq-page .faq-list details p {
  font-size: 1rem;
  line-height: 1.7;
}
.faq-page section {
  margin-block: 2rem;
}
.faq-page h2 {
  scroll-margin-top: 10rem;
}

/* Long inline example tokens must wrap within narrow instruction columns. */
.docs li,
.docs p {
  overflow-wrap: anywhere;
}

/* One local SVG vocabulary for UI controls, separate from the brand mark. */
.ui-icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.15em;
  flex-shrink: 0;
}
#theme .ui-icon {
  width: 18px;
  height: 18px;
}
.home-more-icon {
  display: inline-flex;
}
.home-more-icon .ui-icon {
  width: 18px;
  height: 18px;
}
.home-more-icon.is-expanded {
  transform: rotate(180deg);
}
.workflow-symbol .ui-icon {
  width: 26px;
  height: 26px;
}
.faq-list summary .ui-icon {
  width: 20px;
  height: 20px;
}
.row-arrow .ui-icon {
  width: 18px;
  height: 18px;
}

/* Progressive navigation: links remain available if JavaScript cannot start. */
#menu-toggle {
  display: none;
}
#menu-toggle .menu-close-icon {
  display: none;
}
#menu-toggle[aria-expanded="true"] .menu-open-icon {
  display: none;
}
#menu-toggle[aria-expanded="true"] .menu-close-icon {
  display: inline-flex;
}
#menu-toggle .ui-icon {
  width: 22px;
  height: 22px;
}
@media (max-width: 1024px) {
  .bar {
    flex-wrap: wrap;
    gap: 10px;
    min-height: 72px;
    padding: 10px 20px;
  }
  .bar .brand {
    font-size: 18px;
    gap: 8px;
    margin-right: auto;
  }
  .bar #theme {
    margin-left: 0;
    gap: 2px;
  }
  .bar #menu-toggle {
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
    align-items: center;
    justify-content: center;
  }
  .navigation-enhanced #menu-toggle {
    display: inline-flex;
  }
  .bar #main-navigation {
    order: 4;
    width: 100%;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    font-size: 15px;
    border-top: 1px solid var(--line);
    padding-top: 8px;
  }
  .navigation-enhanced .bar #main-navigation {
    display: none;
  }
  .navigation-enhanced .bar #main-navigation.is-open {
    display: flex;
  }
  .bar #main-navigation a {
    flex: none;
    min-height: 48px;
    justify-content: flex-start;
    text-align: left;
    padding: 10px 12px;
    overflow-wrap: anywhere;
  }
  .bar #main-navigation a[aria-current]:after {
    left: 12px;
    right: 12px;
    bottom: 2px;
  }
}
@media (max-width: 360px) {
  .bar {
    padding-inline: 12px;
    gap: 6px;
  }
  .bar .brand {
    font-size: 16px;
  }
  .bar .mark {
    width: 24px;
  }
}

/* Lock both disclosure states to one box; SVG inline baselines cannot alter height. */
@media (max-width: 1024px) {
  .bar #menu-toggle {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    flex: 0 0 44px;
    padding: 0;
    line-height: 1;
  }
  #menu-toggle .menu-open-icon,
  #menu-toggle[aria-expanded="true"] .menu-close-icon {
    display: flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
  }
  #menu-toggle[aria-expanded="true"] .menu-open-icon { display: none; }
  #menu-toggle .ui-icon { display: block; }
}

/* Equal row padding keeps the trigger at the same vertical position when links expand. */
@media (max-width: 1024px) { .bar { padding-block: 14px; } }
