/* Product layouts, not a card-theme reskin. Legacy tool-specific components
   remain in style.css; this layer owns discovery, the workspace and reading. */

[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.icon {
  display: inline-block;
  flex: none;
  vertical-align: middle;
}
[data-tone='mint'] {
  --tone: var(--tone-mint);
}
[data-tone='apricot'] {
  --tone: var(--tone-apricot);
}
[data-tone='sky'] {
  --tone: var(--tone-sky);
}
[data-tone='lemon'] {
  --tone: var(--tone-lemon);
}
html {
  scroll-padding-top: 100px;
}
body {
  font-family:
    'Segoe UI',
    -apple-system,
    BlinkMacSystemFont,
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
a,
button,
input,
select,
textarea,
summary {
  touch-action: manipulation;
}
:is(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 4px;
  box-shadow: none;
}
button {
  color: inherit;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 0.11em;
  color: var(--muted);
}
.eyebrow .icon {
  width: 16px;
  height: 16px;
}
.eyebrow span:not(.live-dot) {
  margin-left: 12px;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 50%;
  cursor: pointer;
}
.icon-button:hover {
  border-color: var(--link);
  color: var(--link);
}
.text-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 650;
}

.noscript-note {
  padding-block: 20px;
  color: var(--muted);
  font-size: 13px;
}

/* The persistent workbench shell */
.wrap {
  max-width: var(--maxw);
  padding: 0 32px;
}
header.site {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.site-bar {
  min-height: 76px;
  padding: 12px 32px;
  gap: 24px;
}
.logo {
  gap: 10px;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.9px;
}
.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 0;
}
.logo .wordmark span {
  color: var(--muted);
  font-weight: 450;
}
.header-note {
  margin-right: auto;
  padding-left: 24px;
  border-left: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}
nav.primary {
  gap: 20px;
}
nav.primary a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  font-size: 13px;
  color: var(--muted);
}
nav.primary a[aria-current] {
  color: var(--text);
  font-weight: 650;
}
.header-search {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 12px;
  color: var(--text);
}
.header-search .icon {
  width: 16px;
  height: 16px;
}
kbd {
  min-width: 22px;
  padding: 0 5px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font: 11px/22px var(--mono);
  text-align: center;
  color: var(--muted);
}
.nav-toggle {
  display: none;
}
.site-shell {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}
.site-sidebar {
  min-width: 0;
  border-right: 1px solid var(--border);
}
.sidebar-inner {
  position: sticky;
  top: 77px;
  max-height: calc(100dvh - 77px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 30px 18px 24px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.nav-label {
  margin: 0 0 10px 10px;
  font: 9px/1.6 var(--mono);
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.11em;
}
.desk-nav {
  display: grid;
  gap: 3px;
  margin-bottom: 28px;
}
.desk-nav a,
.category-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  min-height: 38px;
  font-size: 12px;
  color: var(--muted);
  border-radius: 5px;
}
.desk-nav a:hover,
.category-nav a:hover {
  text-decoration: none;
  background: var(--panel2);
  color: var(--text);
}
.desk-nav a[aria-current],
.category-nav a[aria-current] {
  background: var(--panel2);
  color: var(--link);
  font-weight: 600;
}
.desk-nav .icon,
.category-nav .icon {
  width: 17px;
  height: 17px;
}
.nav-count {
  margin-left: auto;
  font: 10px/1 var(--mono);
  color: var(--muted);
}
.sidebar-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-right: 9px;
}
.sidebar-heading > span {
  font: 9px var(--mono);
  color: var(--muted);
}
.category-nav {
  display: grid;
  gap: 1px;
}
.category-nav a {
  font-size: 12px;
  min-height: 35px;
  padding-block: 7px;
}
.sidebar-note {
  display: flex;
  gap: 10px;
  margin: 28px 9px 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}
.sidebar-note .icon {
  width: 17px;
  height: 17px;
  margin-top: 3px;
}
.workspace-main {
  min-width: 0;
  padding: 40px 0 64px 40px;
}

/* Asymmetric home: an actual usable tool, not an illustration of a tool. */
.discovery-hero {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 12px 0 30px;
}
.discovery-hero:has(.quick-converter[hidden]) {
  grid-template-columns: 1fr;
}
.live-dot {
  width: 6px;
  height: 6px;
  background: var(--link);
  border-radius: 50%;
  margin-right: 3px;
}
.discovery-intro h1 {
  margin: 20px 0;
  font-size: clamp(44px, 4.2vw, 66px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -2.8px;
}
.discovery-intro h1 em {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -2.5px;
  color: var(--link);
}
.discovery-lede {
  margin: 0 0 25px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}
.directory-search {
  display: flex;
  position: relative;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--control-border);
  border-radius: 8px;
  padding: 0 15px;
  min-width: 0;
  background: var(--panel);
}
.directory-search:focus-within {
  border-color: var(--link);
  outline: 2px solid var(--link);
  outline-offset: 3px;
}
.directory-search > .icon {
  width: 19px;
  height: 19px;
  color: var(--muted);
}
.directory-search input {
  flex: 1;
  width: 0;
  min-width: 0;
  padding: 16px 0;
  font-size: 14px;
  background: transparent;
  border: 0;
  color: var(--text);
  border-radius: 0;
  box-shadow: none;
  outline: 0;
}
.directory-search input:focus-visible {
  outline: 0;
}
.directory-search input::placeholder {
  color: var(--muted);
  opacity: 1;
}
.directory-search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.directory-search:has(.search-clear:not([hidden])) kbd {
  display: none;
}
.search-clear {
  position: static;
  transform: none;
  background: none;
  border: 0;
  padding: 0;
  flex: none;
  width: 38px;
  height: 42px;
  color: var(--muted);
}
.search-clear .icon {
  width: 17px;
  height: 17px;
}
.search-starters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
  font-size: 11px;
  color: var(--muted);
}
.search-starters button {
  border: 0;
  padding: 5px 0;
  background: none;
  color: var(--link);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 4px;
  font-size: 11px;
}
.search-starters button + button::before {
  content: '/';
  margin-right: 7px;
  color: var(--muted);
}
.quick-converter {
  position: relative;
  padding: 22px;
  border: 1px solid #294b2f;
  background: var(--sun);
  color: var(--on-sun);
  border-radius: 12px 12px 0 12px;
  align-self: center;
  transform: rotate(1.5deg);
  isolation: isolate;
}
.quick-converter::before {
  content: '';
  position: absolute;
  inset: 8px -8px -8px 8px;
  border-right: 2px solid var(--link);
  border-bottom: 2px solid var(--link);
  border-radius: 12px 12px 0 12px;
  pointer-events: none;
  z-index: -1;
}
.quick-converter-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 9px var(--mono);
  letter-spacing: 0.1em;
}
.quick-converter-top > span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.quick-converter-top a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: inherit;
}
.quick-converter-top .icon {
  width: 16px;
  height: 16px;
}
.quick-converter-title {
  font: italic 29px/1.2 var(--serif);
  margin: 12px 0 22px;
  letter-spacing: -0.8px;
}
.quick-input,
.quick-answer {
  display: flex;
  align-items: center;
  gap: 10px;
}
.quick-input {
  background: #f5facd;
  border: 1px solid #899663;
  border-radius: 5px;
  padding: 8px 10px;
}
.quick-input input {
  width: 0;
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 2px 0;
  font-size: 27px;
  font-weight: 600;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
.quick-converter select {
  max-width: 120px;
  border: 0;
  background: none;
  color: inherit;
  font-size: 12px;
  padding: 8px 0;
  color-scheme: light;
}
.quick-converter input:focus-visible,
.quick-converter select:focus-visible,
.quick-converter button:focus-visible,
.quick-converter a:focus-visible {
  outline-color: #243d2b;
}
.quick-equals {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0;
  font-size: 10px;
  color: #4d6140;
}
.quick-equals .icon-button {
  background: none;
  border: none;
  width: 34px;
  height: 34px;
  color: inherit;
}
.quick-answer output {
  flex: 1;
  min-width: 0;
  font-size: clamp(28px, 2.7vw, 41px);
  letter-spacing: -1.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.ruler {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  height: 32px;
  border-top: 1px solid #657743;
  margin-top: 18px;
}
.ruler i {
  width: 1px;
  height: 7px;
  background: #657743;
}
.ruler i.ruler-major {
  height: 17px;
}
.quick-open {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #243d2b;
  font-size: 11px;
  font-weight: 600;
}
.quick-open .icon {
  width: 17px;
  height: 17px;
}
.catalog-proof {
  display: flex;
  gap: 28px;
  padding: 22px 0;
  border-block: 1px solid var(--border);
  margin-top: 20px;
  font-size: 11px;
  color: var(--muted);
}
.catalog-proof > span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.catalog-proof strong {
  color: var(--text);
}
.catalog-proof .icon {
  width: 16px;
  height: 16px;
}
.starting-points,
.featured-guides {
  padding: 36px 0 40px;
}
.editorial-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 20px;
}
.editorial-heading h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.8px;
}
.editorial-heading > a {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex: none;
  color: var(--text);
  font-size: 12px;
  padding-block: 5px;
}
.editorial-heading > span {
  color: var(--muted);
  font-size: 11px;
}
.editorial-heading .eyebrow {
  margin-bottom: 8px;
  font-size: 9px;
}
.starter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.starter {
  color: var(--text);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.starter:hover {
  text-decoration: none;
}
.starter:hover h3 {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.starter-art {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  min-height: 125px;
  border-radius: 9px;
  color: #294333;
  overflow: hidden;
}
.art-percentage {
  background: #e4edda;
  justify-content: space-between;
}
.art-percentage > span:first-child {
  font: italic 66px/0.9 var(--serif);
  letter-spacing: -5px;
}
.art-percentage sup {
  font-size: 26px;
  top: -0.7em;
  position: relative;
  margin-left: 2px;
  letter-spacing: -2px;
}
.art-caption {
  font: 10px/1.6 var(--mono);
  max-width: 100px;
}
.art-json {
  background: #e1eaf1;
  color: #315066;
  gap: 8px;
}
.code-brace {
  font: 67px/1 var(--serif);
  opacity: 0.65;
}
.art-json code {
  font: 11px/1.8 var(--mono);
}
.art-words {
  background: #f7dfce;
  color: #68391f;
  justify-content: space-between;
}
.art-words > span:first-child {
  font: 62px/1 var(--serif);
  letter-spacing: -5px;
}
.art-caret {
  font: 58px/1 var(--mono);
  color: #a86e48;
}
.starter-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 0 14px;
  border-bottom: 1px solid var(--border);
}
.starter-info .eyebrow {
  font-size: 8px;
  letter-spacing: 0.08em;
}
.starter-info h3 {
  font-size: 17px;
  letter-spacing: -0.4px;
  line-height: 1.35;
  margin: 0 0 8px;
}
.starter-info p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin: 0 0 16px;
}
.starter-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  margin-top: auto;
}
.starter-link .icon {
  width: 16px;
  height: 16px;
}

/* Searchable directories. All links are server rendered, even with JS off. */
.tool-directory,
.guide-directory,
.hub-directory {
  scroll-margin-top: 95px;
}
.tool-directory {
  padding-top: 12px;
}
.directory-total {
  font-family: var(--mono);
  font-size: 10px;
}
.directory-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-block: 1px solid var(--border);
}
.view-switch {
  display: flex;
  align-self: stretch;
  align-items: center;
  gap: 14px;
  margin-right: auto;
}
.view-switch button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  white-space: nowrap;
  min-height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
}
.view-switch button[aria-pressed='true'] {
  color: var(--text);
  font-weight: 650;
}
.view-switch button[aria-pressed='true']::after {
  content: '';
  position: absolute;
  bottom: -13px;
  height: 2px;
  background: var(--link);
  left: 0;
  right: 0;
}
.view-switch span {
  font-size: 9px;
  padding: 3px 5px;
  border-radius: 3px;
  background: var(--panel2);
  color: var(--muted);
}
.filter-select {
  display: inline-flex;
  min-width: 0;
}
.filter-select select {
  max-width: 155px;
  min-height: 40px;
  font-size: 11px;
  color: var(--text);
  padding: 7px 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 5px;
  cursor: pointer;
}
.directory-status {
  margin: 12px 0;
  font-size: 11px;
  color: var(--muted);
}
.tool-entries {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tool-entry {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  min-width: 0;
  transition: background 0.15s ease;
}
.tool-entry:hover {
  background: var(--panel);
}
.tool-entry-link {
  display: grid;
  grid-template-columns: 33px minmax(0, 1fr) minmax(0, 1.1fr) 91px 17px;
  gap: 12px;
  align-items: center;
  flex: 1;
  min-width: 0;
  padding: 17px 12px 17px 0;
  color: var(--text);
}
.tool-entry-link:hover {
  text-decoration: none;
}
.tool-entry-link:hover .entry-title {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.entry-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 33px;
  height: 33px;
  border-radius: 8px;
  background: var(--tone, var(--panel2));
}
.entry-symbol .icon {
  width: 17px;
  height: 17px;
}
.entry-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}
.entry-description {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.entry-category {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}
.entry-arrow {
  width: 17px;
  height: 17px;
  color: var(--muted);
  transition: transform 0.15s ease;
}
.tool-entry-link:hover .entry-arrow {
  transform: translateX(3px);
  color: var(--link);
}
.save-tool {
  display: none;
  align-items: center;
  justify-content: center;
  flex: none;
  min-width: 42px;
  min-height: 44px;
  gap: 7px;
  padding: 6px 10px;
  color: var(--muted);
  border: none;
  border-radius: 5px;
  background: none;
  cursor: pointer;
}
.js-ready .save-tool {
  display: inline-flex;
}
.save-tool:hover {
  color: var(--link);
  background: var(--panel2);
}
.save-tool[aria-pressed='true'] {
  color: var(--link);
}
.save-tool[aria-pressed='true'] .icon {
  fill: color-mix(in srgb, var(--link) 18%, transparent);
}
.directory-empty {
  padding: 52px 24px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.empty-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--panel2);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: var(--link);
  margin-bottom: 12px;
}
.directory-empty h3 {
  font: 25px/1.3 var(--serif);
  margin: 0 0 10px;
}
.directory-empty p {
  font-size: 13px;
  max-width: 400px;
  margin: 0 auto 18px;
  color: var(--muted);
}
.directory-more {
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.directory-more p {
  font-size: 11px;
  color: var(--muted);
}
.directory-more .btn {
  font-size: 12px;
}
.field-guide-promo {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 140px;
  align-items: center;
  gap: 26px;
  margin-top: 45px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel2);
}
.promo-book {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 2px 8px 8px 2px;
  transform: rotate(-7deg);
  color: var(--link);
}
.promo-book .icon {
  width: 50px;
  height: 50px;
  stroke-width: 0.9;
}
.field-guide-promo h2 {
  font-size: 28px;
  font-weight: 650;
  line-height: 1.2;
  margin: 8px 0 12px;
  letter-spacing: -0.8px;
}
.field-guide-promo h2 em {
  font-family: var(--serif);
  font-weight: 400;
}
.field-guide-promo p:not(.eyebrow) {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  max-width: 390px;
}
.promo-note {
  font: italic 22px/1.25 var(--serif);
  color: var(--link);
  transform: rotate(5deg);
  text-align: center;
}

/* Hubs are working collections, not another landing page. */
.hero.hub-hero {
  position: relative;
  margin-top: 24px;
  padding: 32px;
  background: var(--tone, var(--panel2));
  border-radius: 12px;
}
.hub-hero .hub-symbol {
  float: right;
  margin: 10px 0 12px 22px;
}
.hub-symbol .icon {
  width: 85px;
  height: 85px;
  stroke-width: 0.75;
}
.hub-hero h1 {
  margin-block: 12px;
  font-size: 39px;
  letter-spacing: -1.2px;
}
.hub-hero p {
  max-width: 64ch;
  font-size: 13px;
}
.hub-hero .hero-meta {
  font-size: 10px;
  margin-bottom: 16px;
}
.hub-directory {
  margin-top: 26px;
}
.hub-directory .directory-search {
  max-width: 500px;
  margin-bottom: 18px;
}
.category-hops {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 25px;
}
.category-hop {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 55px;
  color: var(--text);
  font-size: 12px;
  border-bottom: 1px solid var(--border);
}
.category-hop > span:nth-of-type(2) {
  margin-left: auto;
  font: 10px var(--mono);
  color: var(--muted);
}
.category-hop > .icon:last-child {
  width: 14px;
  height: 14px;
  color: var(--muted);
}
.category-hop > .icon:first-child {
  width: 17px;
  height: 17px;
}

/* The field guide: editorial hierarchy, an actual index and a reading lane. */
.library-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 30px;
  align-items: center;
  padding: 37px;
  background: var(--ink);
  border-radius: 12px;
  color: var(--on-ink);
}
.library-hero .eyebrow {
  color: #bdd5c3;
  font-size: 9px;
}
.library-hero h1 {
  font: 45px/1.08 var(--serif);
  color: inherit;
  letter-spacing: -1.8px;
  margin: 18px 0;
}
.library-hero h1 em {
  color: #e4f49c;
}
.library-hero p:not(.eyebrow) {
  font-size: 12px;
  line-height: 1.8;
  color: #cfdfd2;
  margin: 0;
}
.library-illustration {
  display: flex;
  width: 200px;
  min-height: 230px;
  transform: rotate(9deg);
  color: #243d2b;
}
.book-spine {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  background: #bacb80;
  padding: 12px 7px;
  font: 8px var(--mono);
  letter-spacing: 0.1em;
  border-radius: 5px 0 0 5px;
}
.book-cover {
  flex: 1;
  background: #e4f49c;
  padding: 25px 18px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 0 6px 6px 0;
  border: 1px solid #b8cc78;
}
.book-cover > span:first-child {
  font: 35px/0.94 var(--serif);
  letter-spacing: -1.5px;
}
.book-cover > span:last-child {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
}
.book-cover .icon {
  width: 17px;
  height: 17px;
}
.featured-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.featured-guide {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  color: var(--text);
}
.featured-guide:hover {
  text-decoration: none;
}
.featured-guide:hover h3 {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.featured-guide-art {
  position: relative;
  padding: 17px;
  height: 150px;
  background: var(--tone);
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
}
.featured-guide-art .icon {
  width: 100px;
  height: 100px;
  stroke-width: 0.6;
  opacity: 0.18;
  position: absolute;
  right: 7px;
  top: 13px;
  transform: rotate(12deg);
}
.feature-number {
  display: block;
  font: 9px var(--mono);
  margin-bottom: 25px;
}
.feature-scribble {
  position: relative;
  font: italic 24px/1.05 var(--serif);
  letter-spacing: -0.5px;
}
.featured-guide h3 {
  font: 22px/1.2 var(--serif);
  letter-spacing: -0.4px;
  margin: 0 0 12px;
}
.featured-guide p {
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 16px;
}
.featured-guide > .eyebrow {
  font-size: 8px;
}
.guide-entry-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--link);
  margin-top: auto;
}
.guide-entry-cta .icon {
  width: 16px;
  height: 16px;
}
.guide-directory {
  padding-top: 20px;
}
.guide-directory > .editorial-heading h2 {
  font-size: 24px;
}
.guide-directory .directory-search {
  max-width: 580px;
  margin-bottom: 20px;
}
.guide-directory .directory-filters > .directory-status {
  margin-right: auto;
}
.guide-entries {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 35px;
}
.guide-entry {
  min-width: 0;
  border-bottom: 1px solid var(--border);
}
.guide-entry > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 27px 0;
  color: var(--text);
}
.guide-entry > a:hover {
  text-decoration: none;
}
.guide-entry > a:hover h3 {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.guide-entry-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 15px;
}
.guide-entry-meta .icon {
  width: 15px;
  height: 15px;
}
.guide-entry-meta > span {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 9px;
}
.guide-entry h3 {
  font: 25px/1.18 var(--serif);
  margin: 0 0 12px;
  letter-spacing: -0.55px;
}
.guide-entry p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.75;
  margin: 0 0 18px;
}
.reading-page {
  padding-top: 30px;
}
.reading-head {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 35px;
}
.reading-head .eyebrow {
  font-size: 9px;
}
.reading-head h1 {
  font: 47px/1.12 var(--serif);
  margin: 18px 0;
  max-width: 830px;
  letter-spacing: -1.6px;
}
.reading-head > p:not(.eyebrow) {
  max-width: 650px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}
.reading-layout {
  display: grid;
  grid-template-columns: 185px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.reading-aside {
  position: sticky;
  top: 104px;
}
.reading-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.reading-toc a {
  display: block;
  font-size: 11px;
  line-height: 1.6;
  padding: 9px 0 9px 12px;
  border-left: 1px solid var(--border);
  color: var(--muted);
}
.reading-toc a:hover,
.reading-toc a[aria-current] {
  color: var(--link);
  border-color: var(--link);
  text-decoration: none;
}
.reading-toc .eyebrow {
  margin-bottom: 16px;
}
.reading-tool {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  background: var(--panel2);
  border-radius: 7px;
  color: var(--text);
  margin-top: 25px;
}
.reading-tool > .icon {
  width: 25px;
  height: 25px;
  color: var(--link);
}
.reading-tool > .eyebrow {
  font-size: 8px;
  margin: 0;
}
.reading-tool strong {
  font-size: 14px;
  line-height: 1.4;
}
.reading-tool > span:last-child {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--link);
  font-size: 10px;
}
.reading-tool .icon:last-child {
  width: 16px;
  height: 16px;
}
.reading-body {
  min-width: 0;
  max-width: 720px;
}
.reading-body .article {
  padding-top: 0;
}
.reading-body .article p,
.reading-body .article li {
  color: var(--text);
  font: 17px/1.85 var(--serif);
}
.reading-body .article .lede {
  font-size: 21px;
  line-height: 1.65;
  margin-top: 0;
}
.reading-body .article h2 {
  font-size: 22px;
  margin-top: 42px;
  scroll-margin-top: 105px;
}
.reading-body .article pre {
  padding: 20px;
  margin: 24px 0;
  background: var(--panel2);
  border: 0;
  border-left: 3px solid var(--link);
  border-radius: 0 6px 6px 0;
  font-size: 12px;
}
.reading-body .article code {
  font-size: 12px;
}
.reading-body .article table {
  display: block;
  max-width: 100%;
  overflow: auto;
  font-size: 12px;
}
.reading-body .related .grid {
  grid-template-columns: 1fr;
}
.reading-body .related .card {
  padding: 16px;
  background: var(--panel);
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}

/* Input/result workspaces: results are beside the task rather than buried. */
.tool-main {
  padding: 20px 0 30px;
}
.breadcrumb {
  font-size: 11px;
  padding-top: 0;
}
.tool-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 22px;
}
.tool-head {
  margin: 12px 0 24px;
  min-width: 0;
}
.tool-head > .eyebrow {
  font-size: 9px;
  margin: 0 0 13px;
}
.tool-head h1 {
  font-size: clamp(26px, 2.8vw, 38px);
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.tool-head > p:not(.eyebrow) {
  font-size: 13px;
  max-width: 610px;
  line-height: 1.75;
}
.tool-actions {
  display: flex;
  align-items: center;
  flex: none;
  gap: 8px;
  margin-top: 16px;
}
.save-tool-labeled {
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 11px;
  white-space: nowrap;
  padding-inline: 12px;
}
.tool-actions .icon-button {
  border-radius: 6px;
}
.tool-jumps {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 5px 0 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.tool-jumps > a {
  font-size: 11px;
  color: var(--muted);
  padding: 6px 0;
}
.tool-jumps > a[aria-current] {
  color: var(--text);
  font-weight: 650;
}
.tool-jumps > span {
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: 9px;
  color: var(--muted);
  margin-left: auto;
}
.tool-jumps > span .icon {
  width: 14px;
  height: 14px;
}
.tool-workspace {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  overflow: clip;
  scroll-margin-top: 100px;
}
.workspace-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}
.workspace-caption > span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 9px var(--mono);
  letter-spacing: 0.08em;
}
.workspace-caption .icon {
  width: 16px;
  height: 16px;
}
.workspace-caption > span:last-child {
  font-size: 10px;
}
.tool-workspace > .panel {
  border: 0;
  border-radius: 0;
}
.tool-workspace .panel.workspace-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  padding: 0;
}
.workspace-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 0 18px;
  min-width: 0;
  padding: 24px;
}
.workspace-inputs > :not(.field),
.workspace-inputs > .field:has(textarea),
.workspace-inputs > .field:has(select) {
  grid-column: 1 / -1;
}
.workspace-step {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  margin: 0 0 24px;
}
.workspace-step > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border: 1px solid var(--control-border);
  border-radius: 50%;
  color: var(--link);
  font: 9px var(--mono);
}
.workspace-results {
  padding: 24px;
  min-width: 0;
  background: var(--panel2);
  border-left: 1px solid var(--border);
}
.workspace-results > .result {
  padding: 0;
  margin-top: 0;
  border: 0;
  background: none;
  border-radius: 0;
}
.workspace-results > .result.is-error {
  padding: 14px;
  background: color-mix(in srgb, var(--danger) 8%, var(--panel));
  border-left: 3px solid var(--danger);
}
.tool-workspace .result .big {
  color: var(--text);
}
.workspace-results > .result .big {
  font-size: clamp(28px, 3.5vw, 49px);
  letter-spacing: -1px;
  font-weight: 650;
}
.workspace-results > .result .big.is-danger {
  color: var(--danger);
}
.workspace-results > .result .big.fs-12 {
  font-size: 12px;
  letter-spacing: normal;
}
.workspace-results > .result .big.fs-13 {
  font-size: 13px;
  letter-spacing: normal;
}
.workspace-results > .result .big.fs-14 {
  font-size: 14px;
  letter-spacing: normal;
}
.workspace-results > .result .big.fs-15 {
  font-size: 15px;
  letter-spacing: normal;
}
.workspace-results > .result .big.fs-16 {
  font-size: 16px;
  letter-spacing: normal;
}
.workspace-results > .result .big.fs-18 {
  font-size: 18px;
  letter-spacing: normal;
}
.workspace-results > .result .big.fs-20 {
  font-size: 20px;
  letter-spacing: normal;
}
.workspace-results > .result .sub {
  margin-top: 12px;
  font-size: 12px;
}
.workspace-results .stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 15px;
  margin-top: 24px;
}
.workspace-results .stat {
  text-align: left;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: none;
}
.workspace-results .stat .v {
  font-size: 21px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.workspace-results .stat .l {
  font-size: 11px;
  text-transform: none;
  font-family: inherit;
  letter-spacing: 0;
}
.workspace-text .workspace-inputs {
  display: block;
}
.workspace-text .workspace-results .code-plain,
.workspace-text .workspace-results .code-out {
  font-size: 12px;
}
.field label {
  color: var(--text);
  font-size: 11px;
  font-weight: 550;
}
.field input,
.field select,
.field textarea {
  font-size: 13px;
  padding: 11px 12px;
  background-color: var(--panel);
  border-color: var(--control-border);
  border-radius: 5px;
}
.field textarea {
  line-height: 1.8;
}
.field .hint {
  color: var(--muted);
  opacity: 1;
  font-size: 10px;
}
.field :is(input, textarea)::placeholder {
  opacity: 1;
}
.btn {
  border-radius: 6px;
  font-size: 12px;
  min-height: 44px;
  padding: 11px 18px;
  font-weight: 600;
  letter-spacing: 0;
}
.btn .icon {
  width: 16px;
  height: 16px;
}
.btn:hover {
  text-decoration: none;
}
.tool-guides {
  margin: 25px 0 35px;
}
.tool-guides > h2 {
  font: 9px var(--mono);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 12px;
}
.guide-callout {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
}
.guide-callout > .icon:first-child {
  width: 28px;
  height: 28px;
  color: var(--link);
  stroke-width: 1.1;
}
.guide-callout > span {
  flex: 1;
}
.guide-callout .eyebrow {
  display: block;
  font-size: 8px;
  margin: 0 0 5px;
}
.guide-callout strong {
  font: 19px/1.4 var(--serif);
}
.more-guides {
  margin-top: 10px;
  font-size: 11px;
  color: var(--muted);
}
.more-guides summary {
  display: inline-block;
  padding: 8px 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.more-guides li {
  padding: 7px 0;
  line-height: 1.7;
}
.tool-reference {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 45px;
  border-top: 1px solid var(--border);
  padding-top: 28px;
}
.tool-reference .content {
  padding-top: 0;
}
.tool-reference .content h2,
.tool-reference .faq h2 {
  font-size: 21px;
  margin-top: 0;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
.tool-reference .content p {
  font-size: 13px;
  line-height: 1.85;
}
.tool-reference .faq {
  padding-top: 0;
}
.faq details {
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: none;
  margin: 0;
}
.faq summary {
  padding: 15px 0;
  font-size: 12px;
  font-weight: 550;
}
.faq details[open] .answer {
  border: 0;
  margin: 0;
  padding: 0 0 18px;
  font-size: 12px;
}
.related h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.6px;
}
.related .grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}
.related .card {
  padding: 18px;
  border-radius: 8px;
  background: var(--panel);
}
.related .card h3 {
  font-size: 13px;
}
.related .card p {
  font-size: 11px;
  line-height: 1.65;
}
.related .tag {
  background: none;
  border: 0;
  padding: 0;
  font: 8px var(--mono);
  text-transform: uppercase;
}

/* Quiet footer; no third-party overlay covering the workspace. */
footer.site {
  background: var(--panel2);
  margin-top: 0;
  padding: 35px 0 20px;
}
.footer-grid {
  border: 0;
  padding-bottom: 24px;
}
.footer-tag {
  max-width: 480px;
  font-size: 12px;
  line-height: 1.8;
}
.footer-links {
  gap: 22px;
}
.footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
}
.footer-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding-block: 18px 28px;
  border-top: 1px solid var(--border);
}
.footer-cats-label {
  flex-basis: 100%;
  font-size: 9px;
  margin-bottom: 2px;
}
.footer-cats a {
  font-size: 11px;
  min-height: 25px;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  font-family: inherit;
  font-size: 10px;
  align-items: center;
}
.footer-bottom > span:nth-child(2) {
  margin-left: auto;
}
.footer-bottom > a {
  margin-left: 18px;
}

@media (min-width: 1500px) {
  .workspace-main {
    padding-left: 52px;
    padding-right: 12px;
  }
  .discovery-hero {
    gap: 70px;
  }
  .discovery-intro h1 {
    font-size: 73px;
  }
  .quick-converter {
    max-width: 370px;
    width: 100%;
    justify-self: center;
  }
}
@media (max-width: 1200px) {
  .site-bar,
  .wrap {
    padding-inline: 24px;
  }
  .site-shell {
    padding-inline: 24px;
    grid-template-columns: 188px minmax(0, 1fr);
  }
  .workspace-main {
    padding-left: 28px;
  }
  .header-note {
    display: none;
  }
  nav.primary {
    margin-left: auto;
  }
  .discovery-hero {
    gap: 27px;
  }
  .discovery-intro h1 {
    font-size: 49px;
    letter-spacing: -2px;
  }
  .discovery-lede {
    font-size: 12px;
  }
  .tool-entry-link {
    grid-template-columns: 33px minmax(0, 1fr) minmax(0, 1fr) 16px;
  }
  .entry-category {
    display: none;
  }
  .art-json code {
    font-size: 9px;
  }
  .starter-art {
    padding: 15px;
  }
  .art-percentage > span:first-child {
    font-size: 58px;
  }
  .tool-actions .save-tool-labeled span {
    display: none;
  }
  .library-hero {
    grid-template-columns: minmax(0, 1fr) 185px;
    padding: 28px;
  }
  .library-illustration {
    width: 177px;
    min-height: 218px;
  }
  .library-hero h1 {
    font-size: 41px;
  }
  .reading-layout {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 28px;
  }
  .reading-head h1 {
    font-size: 41px;
  }
}
@media (max-width: 1020px) {
  .site-shell {
    display: block;
    padding-inline: 28px;
  }
  .workspace-main {
    padding: 30px 0 50px;
  }
  .site-sidebar {
    display: none;
  }
  .js-ready .nav-toggle {
    display: inline-flex;
    flex: none;
    border: 0;
    background: none;
  }
  .site-bar {
    min-height: 68px;
    padding: 10px 24px;
    gap: 14px;
  }
  .sidebar-inner {
    position: static;
    max-height: none;
    padding: 22px;
  }
  .navigation-open {
    overflow: hidden;
  }
  .navigation-open .site-sidebar {
    display: block;
    position: fixed;
    top: 68px;
    bottom: 0;
    left: 0;
    width: 270px;
    background: var(--bg);
    border-right: 1px solid var(--control-border);
    overflow: auto;
    z-index: 30;
  }
  .navigation-open .site-shell::before {
    content: '';
    position: fixed;
    inset: 68px 0 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 25;
  }
  .desk-nav a,
  .category-nav a {
    font-size: 13px;
    min-height: 44px;
  }
  .discovery-hero {
    grid-template-columns: 1.35fr 1fr;
    gap: 45px;
  }
  .discovery-intro h1 {
    font-size: 56px;
  }
  .discovery-lede {
    font-size: 13px;
  }
  .library-hero {
    grid-template-columns: minmax(0, 1fr) 225px;
  }
  .library-illustration {
    width: 195px;
    min-height: 230px;
  }
}
@media (max-width: 720px) {
  .site-bar {
    padding-inline: 16px;
    gap: 9px;
  }
  .logo {
    font-size: 18px;
  }
  .logo-mark {
    width: 29px;
    height: 29px;
  }
  .header-search {
    border: 0;
    padding: 7px;
    margin-left: auto;
  }
  .header-search span,
  .header-search kbd {
    display: none;
  }
  nav.primary {
    gap: 16px;
    margin-left: auto;
  }
  nav.primary a {
    font-size: 12px;
  }
  nav.primary a:first-child {
    display: none;
  }
  .site-shell {
    padding-inline: 20px;
  }
  .workspace-main {
    padding-top: 25px;
  }
  .discovery-hero {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 25px;
    padding-top: 0;
  }
  .discovery-intro h1 {
    font-size: 43px;
  }
  .discovery-intro > .eyebrow {
    font-size: 8px;
    letter-spacing: 0.08em;
  }
  .discovery-lede br {
    display: none;
  }
  .discovery-lede {
    font-size: 12px;
  }
  .search-starters {
    gap: 5px;
  }
  .search-starters button,
  .search-starters > span {
    font-size: 10px;
  }
  .quick-converter {
    padding: 17px;
  }
  .quick-converter-title {
    font-size: 25px;
  }
  .quick-answer output {
    font-size: 31px;
  }
  .quick-converter select {
    max-width: 102px;
    font-size: 11px;
  }
  .quick-input input {
    font-size: 24px;
  }
  .starter-grid {
    gap: 15px;
  }
  .starter-art {
    min-height: 105px;
    padding: 12px;
  }
  .art-caption {
    display: none;
  }
  .art-json {
    gap: 4px;
  }
  .code-brace {
    font-size: 43px;
  }
  .art-json code {
    font-size: 8px;
  }
  .starter-info h3 {
    font-size: 15px;
  }
  .starter-info p {
    font-size: 11px;
  }
  .starter-info > .eyebrow {
    font-size: 7px;
  }
  .starter-link {
    font-size: 10px;
  }
  .catalog-proof {
    justify-content: space-between;
    gap: 10px;
    font-size: 9px;
  }
  .directory-total {
    display: none;
  }
  .tool-entry-link {
    grid-template-columns: 31px minmax(0, 1fr) minmax(0, 1fr) 15px;
    gap: 10px;
  }
  .directory-filters {
    flex-wrap: wrap;
  }
  .view-switch {
    flex: 1;
  }
  .view-switch button {
    font-size: 11px;
  }
  .filter-select select {
    max-width: 125px;
    font-size: 10px;
  }
  .tool-actions {
    margin-top: 8px;
  }
  .tool-actions .save-tool-labeled {
    border: 0;
    padding: 6px;
  }
  .tool-actions [data-copy-link] {
    display: none;
  }
  .tool-jumps {
    gap: 18px;
  }
  .tool-jumps > span {
    display: none;
  }
  .tool-reference {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .workspace-inputs,
  .workspace-results {
    padding: 20px;
  }
  .workspace-caption {
    padding-inline: 20px;
  }
  .workspace-inputs {
    gap: 0 14px;
  }
  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
  }
  .field label {
    font-size: 11px;
  }
  .category-hops {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hub-hero h1 {
    font-size: 33px;
  }
  .library-hero {
    grid-template-columns: minmax(0, 1fr) 155px;
    padding: 26px;
    gap: 20px;
  }
  .library-hero h1 {
    font-size: 35px;
  }
  .library-illustration {
    width: 148px;
    min-height: 190px;
  }
  .book-cover {
    padding: 24px 12px 13px;
  }
  .book-cover > span:first-child {
    font-size: 29px;
  }
  .book-cover > span:last-child {
    font-size: 7px;
  }
  .featured-guide-grid {
    gap: 16px;
  }
  .featured-guide-art {
    height: 133px;
    padding: 12px;
  }
  .feature-scribble {
    font-size: 21px;
  }
  .featured-guide h3 {
    font-size: 20px;
  }
  .featured-guide > .eyebrow {
    font-size: 7px;
  }
  .featured-guide p {
    font-size: 11px;
  }
  .reading-head h1 {
    font-size: 36px;
  }
  .reading-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .reading-aside {
    position: static;
  }
  .reading-tool {
    display: none;
  }
  .reading-toc {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
  }
  .reading-toc ol {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 15px;
  }
  .reading-toc a {
    padding-block: 7px;
    min-height: 36px;
  }
  .reading-head {
    margin-bottom: 20px;
    padding-bottom: 20px;
  }
  .reading-body .article p,
  .reading-body .article li {
    font-size: 18px;
  }
  .reading-body .article .lede {
    font-size: 21px;
  }
  .field-guide-promo {
    grid-template-columns: 65px minmax(0, 1fr);
    padding: 24px;
    gap: 22px;
  }
  .promo-note {
    display: none;
  }
  .promo-book {
    height: 100px;
  }
  .field-guide-promo h2 {
    font-size: 26px;
  }
  .field-guide-promo .text-cta {
    font-size: 11px;
  }
}
@media (max-width: 540px) {
  .site-bar {
    min-height: 64px;
    flex-wrap: nowrap;
    justify-content: space-between;
  }
  .navigation-open .site-sidebar {
    top: 64px;
  }
  .navigation-open .site-shell::before {
    top: 64px;
  }
  .site-shell {
    padding-inline: 18px;
  }
  .workspace-main {
    padding-top: 26px;
  }
  .discovery-hero {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: stretch;
    padding-bottom: 16px;
  }
  .discovery-intro h1 {
    font-size: clamp(40px, 11.2vw, 48px);
    letter-spacing: -2px;
    margin-block: 19px;
  }
  .discovery-lede {
    font-size: 13px;
    max-width: 355px;
    margin-bottom: 20px;
  }
  .directory-search input {
    font-size: 16px;
  }
  .directory-search kbd {
    display: none;
  }
  .search-starters {
    gap: 7px;
  }
  .search-starters button {
    min-height: 35px;
  }
  .quick-converter {
    transform: none;
    padding: 18px 20px;
    margin: 0 5px 5px 0;
  }
  .quick-converter-title {
    font-size: 27px;
    margin: 8px 0 14px;
  }
  .quick-converter-top {
    font-size: 8px;
  }
  .quick-input {
    padding: 3px 10px;
  }
  .quick-input input {
    font-size: 25px;
  }
  .quick-converter select {
    max-width: 140px;
    font-size: 14px;
  }
  .quick-equals {
    margin-block: 0;
  }
  .quick-answer output {
    font-size: 32px;
  }
  .ruler {
    margin-top: 13px;
    height: 27px;
  }
  .quick-open {
    font-size: 11px;
  }
  .catalog-proof {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px 18px;
    margin-top: 10px;
    padding-block: 17px;
    font-size: 10px;
  }
  .catalog-proof > span:last-child {
    flex-basis: 100%;
  }
  .starting-points,
  .featured-guides {
    padding-block: 28px;
  }
  .editorial-heading h2 {
    font-size: 23px;
  }
  .editorial-heading {
    align-items: center;
    gap: 12px;
  }
  .editorial-heading > a {
    font-size: 10px;
    gap: 5px;
  }
  .editorial-heading > a .icon {
    width: 15px;
    height: 15px;
  }
  .editorial-heading > span {
    display: none;
  }
  .editorial-heading .eyebrow {
    font-size: 8px;
  }
  .starter-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .starter {
    display: grid;
    grid-template-columns: 103px minmax(0, 1fr);
    gap: 15px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 17px;
  }
  .starter-art {
    border-radius: 8px;
    min-height: 136px;
    height: 100%;
  }
  .starter-info {
    padding: 0;
    border: 0;
  }
  .starter-info .eyebrow {
    font-size: 7px;
    margin-bottom: 7px;
  }
  .starter-info h3 {
    font-size: 16px;
  }
  .starter-info p {
    font-size: 11px;
    margin-bottom: 10px;
  }
  .starter-link {
    font-size: 10px;
  }
  .art-percentage > span:first-child {
    font-size: 48px;
  }
  .art-percentage sup {
    font-size: 20px;
  }
  .art-json {
    flex-wrap: wrap;
    align-content: center;
    gap: 1px;
  }
  .art-json .code-brace {
    font-size: 34px;
    line-height: 0.8;
    align-self: start;
  }
  .art-json code {
    font-size: 8px;
    line-height: 1.8;
  }
  .art-json .code-brace:last-child {
    margin-left: auto;
  }
  .art-words > span:first-child {
    font-size: 48px;
  }
  .art-caret {
    font-size: 38px;
  }
  .tool-directory .editorial-heading {
    margin-bottom: 12px;
  }
  .directory-filters {
    gap: 8px;
    padding-block: 10px;
  }
  .view-switch {
    flex-basis: 100%;
    gap: 21px;
  }
  .view-switch button {
    font-size: 13px;
    min-height: 40px;
  }
  .view-switch button[aria-pressed='true']::after {
    bottom: -3px;
  }
  .filter-select {
    flex: 1;
  }
  .filter-select select {
    font-size: 12px;
    min-height: 44px;
    max-width: none;
    width: 100%;
  }
  .tool-entry-link {
    grid-template-columns: 32px minmax(0, 1fr) 15px;
    gap: 11px;
    padding-block: 16px;
  }
  .entry-title {
    font-size: 13px;
  }
  .entry-description {
    grid-column: 2;
    font-size: 11px;
  }
  .entry-symbol {
    grid-row: 1 / 3;
    align-self: start;
  }
  .entry-arrow {
    grid-column: 3;
    grid-row: 1 / 3;
  }
  .save-tool {
    min-width: 36px;
    padding-inline: 6px;
  }
  .directory-more {
    gap: 15px;
    padding-block: 20px;
  }
  .directory-more .btn {
    width: auto;
    font-size: 11px;
  }
  .directory-more p {
    font-size: 10px;
  }
  .field-guide-promo {
    margin-top: 30px;
    padding: 23px 18px;
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 20px;
  }
  .field-guide-promo h2 {
    font-size: 25px;
  }
  .field-guide-promo .eyebrow {
    font-size: 8px;
  }
  .field-guide-promo p:not(.eyebrow) {
    font-size: 12px;
  }
  .promo-book {
    height: 84px;
  }
  .promo-book .icon {
    width: 30px;
    height: 30px;
  }
  .hero.hub-hero {
    padding: 23px 20px;
    margin-top: 22px;
  }
  .hub-hero .hub-symbol {
    margin: 0 0 10px 10px;
  }
  .hub-symbol .icon {
    width: 55px;
    height: 55px;
  }
  .hub-hero h1 {
    font-size: 30px;
  }
  .hub-hero p {
    font-size: 12px;
  }
  .category-hops {
    gap: 0 15px;
  }
  .category-hop {
    font-size: 11px;
    gap: 7px;
  }
  .category-hop > .icon:last-child {
    display: none;
  }
  .tool-heading-row {
    gap: 10px;
  }
  .tool-head h1 {
    font-size: 29px;
  }
  .tool-head > p:not(.eyebrow) {
    font-size: 13px;
  }
  .tool-actions {
    margin-top: 11px;
  }
  .tool-jumps {
    gap: 18px;
    margin-bottom: 18px;
  }
  .tool-jumps > a {
    font-size: 10px;
  }
  .tool-workspace .panel.workspace-split {
    grid-template-columns: 1fr;
  }
  .workspace-results {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
  .workspace-inputs {
    padding: 20px;
  }
  .workspace-caption {
    padding: 12px 16px;
  }
  .workspace-caption > span:first-child {
    font-size: 8px;
  }
  .workspace-caption > span:last-child {
    font-size: 8px;
  }
  .workspace-step {
    margin-bottom: 18px;
  }
  .workspace-inputs > .field label {
    font-size: 11px;
  }
  .workspace-inputs > .row {
    gap: 10px;
  }
  .workspace-inputs > .btn,
  .workspace-inputs > .btn-row {
    margin-top: 0;
  }
  .workspace-results > .result .big {
    font-size: 39px;
  }
  .workspace-results > .btn-row {
    flex-direction: row;
  }
  .workspace-results > .btn-row .btn {
    width: auto;
  }
  .guide-callout {
    padding: 17px;
    gap: 13px;
  }
  .guide-callout strong {
    font-size: 17px;
  }
  .guide-callout .eyebrow {
    font-size: 7px;
  }
  .guide-callout > .icon:first-child {
    width: 24px;
    height: 24px;
  }
  .tool-reference .content p {
    font-size: 14px;
  }
  .library-hero {
    grid-template-columns: minmax(0, 1fr) 88px;
    padding: 25px 20px;
    gap: 16px;
  }
  .library-hero .eyebrow {
    font-size: 7px;
  }
  .library-hero h1 {
    font-size: 34px;
    line-height: 1.08;
    letter-spacing: -1.4px;
  }
  .library-hero p:not(.eyebrow) {
    font-size: 11px;
    line-height: 1.8;
  }
  .library-hero p br {
    display: none;
  }
  .library-illustration {
    width: 95px;
    min-height: 159px;
    margin-left: -4px;
  }
  .book-spine {
    font-size: 5px;
    padding-inline: 4px;
  }
  .book-cover {
    padding: 22px 9px 14px;
  }
  .book-cover > span:first-child {
    font-size: 22px;
  }
  .book-cover > span:last-child {
    font-size: 0;
  }
  .book-cover > span:last-child .icon {
    width: 25px;
    height: 25px;
  }
  .featured-guide-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .featured-guide {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
  }
  .featured-guide-art {
    grid-row: 1 / 5;
    height: auto;
    min-height: 155px;
    margin: 0;
    padding: 12px;
  }
  .featured-guide-art > .icon {
    width: 80px;
    height: 80px;
    right: -15px;
    top: 45px;
  }
  .feature-scribble {
    font-size: 19px;
  }
  .featured-guide .eyebrow {
    margin: 0 0 7px;
    font-size: 7px;
  }
  .featured-guide h3 {
    font-size: 23px;
    margin-bottom: 10px;
  }
  .featured-guide p {
    font-size: 11px;
    margin-bottom: 13px;
  }
  .guide-entries {
    grid-template-columns: 1fr;
  }
  .guide-entry h3 {
    font-size: 27px;
  }
  .guide-entry p {
    font-size: 13px;
  }
  .guide-directory .directory-filters > .directory-status {
    flex-basis: 100%;
    margin: 0 0 6px;
  }
  .guide-directory .editorial-heading h2 {
    font-size: 24px;
  }
  .reading-head h1 {
    font-size: 35px;
  }
  .reading-head .eyebrow {
    font-size: 8px;
    gap: 5px;
    flex-wrap: wrap;
  }
  .reading-head .eyebrow span {
    margin-left: 5px;
  }
  .reading-toc a {
    font-size: 11px;
  }
  .reading-head > p:not(.eyebrow) {
    font-size: 14px;
  }
  .reading-body .article h2 {
    font-size: 23px;
  }
  .wrap {
    padding-inline: 20px;
  }
  .footer-grid {
    gap: 18px;
  }
  .footer-links {
    gap: 2px 16px;
  }
  .footer-links a {
    padding-inline: 0;
    font-size: 12px;
  }
  .footer-cats {
    gap: 2px 16px;
    padding-block: 20px;
  }
  .footer-cats a {
    min-height: 44px;
    padding: 0;
    font-size: 12px;
  }
  .footer-bottom {
    align-items: flex-start;
    gap: 13px;
  }
  .footer-bottom > span:nth-child(2),
  .footer-bottom > a {
    margin-left: 0;
  }
  footer.site {
    padding-block: 28px 23px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .quick-converter:hover {
    transform: rotate(0deg);
    transition: transform 0.2s ease;
  }
}
@media (max-width: 370px) {
  nav.primary {
    display: none;
  }
  .logo {
    font-size: 17px;
  }
}
@media print {
  .site-sidebar,
  .tool-actions,
  .tool-jumps,
  .workspace-caption,
  .reading-aside,
  .directory-controls,
  .save-tool {
    display: none !important;
  }
  .site-shell {
    display: block;
    padding: 0;
  }
  .workspace-main {
    padding: 0;
  }
  .reading-layout,
  .tool-workspace .panel.workspace-split {
    display: block;
  }
  .workspace-results {
    border: 0;
    background: none;
  }
  .reading-head h1 {
    font-size: 28pt;
  }
  .tool-workspace,
  .reading-body .article pre {
    border: 0;
  }
}
