/* QFT PDF workspace: compact navigation, clearer hierarchy, comfortable controls. */
button,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.site-header {
  height: 56px;
  min-height: 0;
}
.main-nav {
  font-size: var(--text-base);
  gap: 28px;
}
.header-note {
  font-size: var(--text-sm);
}
.section-wrap {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  width: calc(100% - 112px);
}
.hero {
  padding: 54px 0 58px;
  gap: 64px;
  grid-template-columns: 1.05fr 1fr;
}
.hero-copy h1 {
  font-size: var(--text-display);
  letter-spacing: -2.8px;
  line-height: 1.03;
  margin: 23px 0;
}
.hero-copy > p {
  max-width: 440px;
  font-size: var(--text-md);
  line-height: 1.8;
  color: var(--color-text-muted);
}
.hero-benefits {
  font-size: var(--text-sm);
  gap: 18px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.upload-card {
  padding: 25px 28px 22px;
  min-height: 0;
  border-radius: 18px;
  background: var(--color-surface);
}
.paper-stack {
  height: 85px;
  transform: scale(0.82);
  transform-origin: bottom center;
  margin-bottom: 18px;
  margin-top: -9px;
}
.upload-card h2 {
  font-size: var(--text-xl);
}
.upload-card > p {
  font-size: var(--text-base);
}
.upload-button {
  min-height: 46px;
  margin-top: 21px;
}
.upload-meta {
  font-size: var(--text-sm);
  line-height: 1.6;
}
.batch-shortcut {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: var(--text-base);
  margin: 17px auto 0;
  line-height: 1.5;
  color: var(--color-accent);
  text-wrap: balance;
}
.batch-shortcut .icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.sample-row {
  font-size: var(--text-sm);
  margin-top: 17px;
  padding-top: 15px;
}
.section-heading {
  margin-bottom: 22px;
}
.section-heading h2 {
  font-size: var(--text-h2);
}
.section-heading > p {
  font-size: var(--text-base);
}
.tool-discovery {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 19px;
}
.tool-filters {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.tool-filters button {
  background: transparent;
  padding: 10px 14px;
  border-radius: 7px;
  font-size: var(--text-base);
  color: var(--color-text-muted);
  border: 1px solid transparent;
  line-height: 1.4;
}
.tool-filters button:hover {
  background: var(--color-surface-muted);
}
.tool-filters button.active {
  background: var(--color-accent-soft);
  color: var(--color-accent);
  border-color: var(--color-border-strong);
  font-weight: 600;
}
.tool-search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  padding: 0 12px;
  min-height: 40px;
  width: 210px;
  flex-shrink: 0;
}
.tool-search .icon {
  height: 16px;
  width: 16px;
  color: var(--color-icon-muted);
}
.tool-search input {
  background: transparent;
  border: 0;
  min-width: 0;
  width: 100%;
  font-size: var(--text-base);
  padding: 11px 0;
  color: var(--color-text);
}
.tool-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.tool-card {
  display: block;
  min-height: 190px;
  padding: 22px 20px;
  border-radius: 12px;
}
.tool-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-border-strong);
  box-shadow: 0 9px 22px rgb(var(--shadow-rgb) / 0.035);
}
.tool-card-copy {
  display: flex;
  gap: 9px;
}
.tool-icon {
  height: 37px;
  width: 37px;
  margin-bottom: 17px;
  border-radius: 9px;
}
.tool-icon .icon {
  width: 21px;
  height: 21px;
}
.tool-card-copy strong {
  font-size: var(--text-md);
  line-height: 1.5;
  letter-spacing: -0.15px;
}
.tool-card-copy > span {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text-muted);
}
.tool-card-copy br {
  display: none;
}
.card-arrow {
  right: 16px;
  bottom: 16px;
  height: 15px;
  width: 15px;
}
.featured-tool {
  grid-column: span 2;
  min-height: 135px;
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--color-surface-muted);
  padding: 24px;
}
.featured-tool:nth-child(2) {
  background: var(--tint-blue-bg);
}
.featured-tool .tool-icon {
  margin: 0;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  background: #fff9;
}
.featured-tool .tool-card-copy {
  max-width: 85%;
  padding-right: 17px;
}
.featured-tool .tool-card-copy strong {
  font-size: var(--text-lg);
  display: flex;
  align-items: center;
  gap: 10px;
}
.tool-card-copy small {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 1px;
  border: 1px solid var(--color-border-strong);
  border-radius: 4px;
  padding: 3px 5px;
  color: var(--color-accent);
}
.featured-tool .card-arrow {
  bottom: calc(50% - 8px);
}
.empty-tools {
  padding: 40px;
  text-align: center;
  border: 1px dashed var(--color-border);
  border-radius: 12px;
  font-size: var(--text-base);
  color: var(--color-text-muted);
}
.how-section {
  margin-top: 60px;
  padding-top: 38px;
  margin-bottom: 38px;
}
.how-step p {
  font-size: var(--text-base);
  line-height: 1.8;
}
.privacy-strip {
  padding: 25px 30px;
}
.privacy-strip h3 {
  font-size: var(--text-md);
}
.privacy-strip p {
  font-size: var(--text-base);
  line-height: 1.7;
}
.privacy-strip > .text-button {
  font-size: var(--text-base);
}
.site-footer {
  font-size: var(--text-sm);
  padding-bottom: 28px;
}
.site-footer > span {
  font-size: var(--text-sm);
}
.editing .site-header,
.batching .site-header {
  height: 48px;
}
.document-bar {
  height: 58px;
  min-height: 58px;
  padding: 8px 18px;
  gap: 12px;
}
.document-identity {
  min-width: 0;
}
.document-identity .document-name {
  font-size: var(--text-base);
}
.document-identity > span {
  font-size: var(--text-sm);
}
.document-actions {
  gap: 7px;
  flex-shrink: 0;
}
.document-actions .button {
  font-size: var(--text-base);
  min-height: 36px;
}
.local-badge {
  font-size: var(--text-xs);
}
.pending-badge {
  font-size: var(--text-xs);
  max-width: 90px;
  line-height: 1.4;
  color: var(--color-warning);
  padding-right: 5px;
}
.editor-layout {
  grid-template-columns: 306px minmax(0, 1fr) 146px;
  height: calc(100dvh - 106px);
  min-height: 520px;
}
.tool-sidebar {
  padding: 18px 20px;
}
.sidebar-heading {
  margin-bottom: 12px;
}
.sidebar-heading .eyebrow {
  font-size: var(--text-xs);
}
.tool-switcher {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.tool-switcher > span {
  font-size: var(--text-base);
  color: var(--color-text-muted);
}
.tool-switcher select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--color-border-input);
  background: var(--color-surface-muted);
  border-radius: 8px;
  color: var(--color-brand);
  font-weight: 600;
  font-size: var(--text-base);
  padding: 10px 12px;
}
.batch-editor-link {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: var(--text-base);
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
}
.batch-editor-link .icon {
  width: 16px;
  height: 16px;
}
.batch-editor-link .icon:last-child {
  margin-left: auto;
}
.tool-panel {
  padding-top: 20px;
}
.tool-panel h2 {
  font-size: var(--text-lg);
  letter-spacing: -0.4px;
}
.panel-description {
  font-size: var(--text-base);
  line-height: 1.75;
  margin: 9px 0 20px;
}
.field > span,
.field-label {
  font-size: var(--text-base);
}
.field-hint,
.scope-note {
  font-size: var(--text-sm);
  line-height: 1.7;
}
.field input:not([type='range']):not([type='color']),
.field select,
.field textarea {
  min-height: 41px;
  font-size: var(--text-base);
}
.field input[type='color'] {
  min-height: 41px;
}
.field {
  margin-bottom: 15px;
}
.field-row {
  gap: 12px;
}
.field-section {
  font-size: var(--text-xs);
  margin: 19px 0 12px;
  letter-spacing: 0.8px;
}
.tool-panel .button {
  font-size: var(--text-base);
  min-height: 41px;
  line-height: 1.5;
}
.mini-actions .button {
  padding-left: 9px;
  padding-right: 9px;
  font-size: var(--text-base);
}
.selection-buttons button {
  min-height: 34px;
  font-size: var(--text-base);
}
.sidebar-bottom {
  font-size: var(--text-sm);
  line-height: 1.7;
}
.page-jump {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  white-space: nowrap;
}
.page-jump input {
  width: 52px;
  border: 1px solid var(--color-border-input);
  border-radius: 6px;
  min-height: 32px;
  padding: 5px 4px 5px 8px;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--text-base);
  font-variant-numeric: tabular-nums;
}
.page-jump span {
  font-variant-numeric: tabular-nums;
}
.preview-toolbar {
  padding: 0 16px;
  gap: 10px;
}
.page-navigation {
  gap: 5px;
}
.zoom-controls {
  gap: 4px;
}
.zoom-controls .text-button {
  min-width: 36px;
  font-size: var(--text-base);
}
.page-item-foot {
  font-size: var(--text-sm);
}
.pages-heading strong {
  font-size: var(--text-base);
}
.stage-caption {
  font-size: var(--text-sm);
  gap: 14px;
}
.stage-caption > span {
  min-width: 0;
}
.reuse-settings {
  border-top: 1px solid var(--color-border);
  padding-top: 17px;
  margin-top: 20px;
}
.reuse-settings .text-button {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  font-size: var(--text-base);
  color: var(--color-accent);
  line-height: 1.5;
}
.reuse-settings .icon {
  height: 17px;
  width: 17px;
  flex-shrink: 0;
}
.reuse-settings p {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--color-text-muted);
  margin: 8px 0 0;
}
.split-result-header {
  border-top: 1px solid var(--color-border);
  margin-top: 22px;
  padding: 18px 0 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: var(--text-base);
  color: var(--color-text);
}
.split-result-header > span {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.split-result-list {
  max-height: 320px;
  overflow: auto;
  margin-top: 12px;
}
.split-result {
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid var(--color-border);
  padding: 9px 0;
}
.split-result > span {
  min-width: 0;
  flex: 1;
}
.split-result strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--text-base);
  font-weight: 500;
}
.split-result small {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: 4px;
}
.split-result .icon-button {
  flex-shrink: 0;
}
.scope-note.invalid {
  color: var(--color-danger);
  background: var(--color-danger-soft);
}
.busy-card .button {
  font-size: var(--text-base);
  margin-top: 6px;
}
.info-dialog p,
.info-dialog li {
  font-size: var(--text-md);
}
@media (min-width: 1500px) {
  .editor-layout {
    grid-template-columns: 330px minmax(0, 1fr) 160px;
  }
  .tool-sidebar {
    padding: 20px 24px;
  }
}
@media (max-width: 1100px) {
  .section-wrap {
    width: calc(100% - 64px);
  }
  .hero {
    gap: 35px;
  }
  .hero-copy h1 {
    font-size: var(--text-display);
  }
  .hero-copy > p {
    font-size: var(--text-md);
  }
  .hero-benefits {
    gap: 12px;
    font-size: var(--text-sm);
  }
  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .featured-tool {
    grid-column: span 1;
    align-items: flex-start;
    min-height: 180px;
  }
  .featured-tool .tool-card-copy strong {
    font-size: var(--text-md);
    flex-wrap: wrap;
    gap: 6px;
  }
  .featured-tool .tool-card-copy {
    padding: 0;
    max-width: none;
  }
  .featured-tool .card-arrow {
    bottom: 16px;
  }
  .tool-card:not(.featured-tool) {
    min-height: 160px;
    display: flex;
    gap: 15px;
  }
  .tool-card:not(.featured-tool) .tool-icon {
    flex-shrink: 0;
    margin: 0;
  }
  .tool-card-copy {
    padding-right: 8px;
  }
  .editor-layout {
    grid-template-columns: 280px minmax(0, 1fr) 116px;
  }
  .tool-sidebar {
    padding: 15px 17px;
  }
  .document-actions .button {
    padding-left: 10px;
    padding-right: 10px;
  }
  .local-badge {
    display: none;
  }
  .pending-badge {
    display: none;
  }
  .page-jump {
    gap: 5px;
  }
  .page-jump input {
    width: 45px;
  }
  .preview-toolbar {
    padding: 0 9px;
  }
}
@media (max-width: 720px) {
  .site-header {
    padding: 8px 16px;
    height: 52px;
    gap: 12px;
  }
  .main-nav,
  .editing .main-nav {
    gap: 14px;
    font-size: var(--text-base);
  }
  .main-nav > [data-action='privacy'] {
    display: none;
  }
  .brand {
    font-size: var(--text-xl);
  }
  .section-wrap {
    width: calc(100% - 36px);
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 32px 0 38px;
  }
  .hero-copy h1 {
    font-size: var(--text-display);
    margin: 18px 0;
    letter-spacing: -2px;
  }
  .hero-copy > p {
    max-width: 420px;
    font-size: var(--text-md);
  }
  .hero-benefits {
    margin-top: 18px;
    font-size: var(--text-sm);
    gap: 14px;
  }
  .upload-card {
    padding: 21px 20px;
  }
  .paper-stack {
    display: none;
  }
  .upload-card h2 {
    font-size: var(--text-xl);
  }
  .upload-card > p {
    font-size: var(--text-base);
  }
  .upload-button {
    margin-top: 17px;
  }
  .sample-row {
    margin-top: 14px;
    padding-top: 13px;
  }
  .batch-shortcut {
    font-size: var(--text-base);
  }
  .section-heading {
    margin-bottom: 18px;
  }
  .section-heading h2 {
    font-size: var(--text-h2);
  }
  .section-heading > p {
    font-size: var(--text-base);
  }
  .tool-discovery {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }
  .tool-filters {
    gap: 2px;
    justify-content: space-between;
  }
  .tool-filters button {
    padding: 9px 8px;
    font-size: var(--text-base);
  }
  .tool-search {
    width: 100%;
    min-height: 43px;
  }
  .tool-search input {
    font-size: var(--text-md);
    padding: 10px 0;
  }
  .tool-grid {
    gap: 10px;
  }
  .tool-card,
  .tool-card:not(.featured-tool) {
    display: block;
    min-height: 200px;
    padding: 17px 15px;
  }
  .tool-card .tool-icon,
  .tool-card:not(.featured-tool) .tool-icon {
    width: 34px;
    height: 34px;
    margin: 0 0 13px;
  }
  .tool-card-copy {
    padding: 0;
    gap: 8px;
  }
  .tool-card-copy strong {
    font-size: var(--text-md);
  }
  .tool-card-copy > span {
    font-size: var(--text-base);
    line-height: 1.65;
  }
  .featured-tool {
    display: block;
    min-height: 218px;
  }
  .featured-tool .tool-card-copy strong {
    font-size: var(--text-md);
  }
  .featured-tool .tool-card-copy {
    max-width: none;
  }
  .tool-card-copy small {
    font-size: var(--text-xs);
  }
  .card-arrow {
    right: 13px;
    bottom: 12px;
  }
  .how-section {
    margin-top: 36px;
    padding-top: 28px;
    gap: 26px;
    margin-bottom: 28px;
  }
  .how-step p {
    font-size: var(--text-base);
  }
  .privacy-strip {
    padding: 21px;
  }
  .privacy-strip p {
    font-size: var(--text-base);
  }
  .privacy-strip > .text-button {
    font-size: var(--text-base);
  }
  .site-footer {
    gap: 12px;
  }
  .site-footer > span {
    font-size: var(--text-sm);
  }
  .document-bar {
    height: auto;
    min-height: 0;
    padding: 9px 12px;
    gap: 8px;
  }
  .document-identity .document-name {
    font-size: var(--text-base);
  }
  .document-identity > span {
    font-size: var(--text-sm);
  }
  .document-actions {
    gap: 6px;
  }
  .document-actions .button {
    font-size: var(--text-base);
    min-height: 38px;
    padding: 8px 10px;
  }
  .document-actions #undo-button {
    margin-right: 0;
  }
  .document-actions [data-action='open'] {
    margin-right: auto;
  }
  .document-actions .icon {
    width: 15px;
    height: 15px;
  }
  .editor-layout {
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .tool-sidebar {
    padding: 14px 16px;
  }
  .sidebar-heading {
    margin-bottom: 8px;
  }
  .tool-switcher > span {
    font-size: var(--text-base);
  }
  .tool-switcher select {
    font-size: var(--text-md);
    min-height: 44px;
  }
  .batch-editor-link {
    padding: 11px 0;
    font-size: var(--text-base);
  }
  .tool-panel {
    padding-top: 17px;
  }
  .tool-panel h2 {
    font-size: var(--text-lg);
  }
  .panel-description {
    font-size: var(--text-base);
    margin: 8px 0 17px;
  }
  .field > span {
    font-size: var(--text-base);
  }
  .field input:not([type='range']):not([type='color']),
  .field select {
    font-size: var(--text-md);
    min-height: 44px;
  }
  .field textarea {
    font-size: var(--text-md);
  }
  .tool-panel .button {
    min-height: 44px;
    font-size: var(--text-base);
  }
  .field-hint,
  .scope-note {
    font-size: var(--text-sm);
  }
  .tool-panel form > .wide {
    grid-column: 1/-1;
  }
  .reuse-settings {
    margin-top: 12px;
  }
  .document-stage {
    height: 70dvh;
    min-height: 400px;
  }
  .preview-toolbar {
    height: 48px;
    padding: 0 10px;
  }
  .preview-toolbar .icon-button {
    width: 30px;
    height: 34px;
  }
  .page-jump {
    gap: 5px;
    font-size: var(--text-sm);
  }
  .page-jump input {
    font-size: var(--text-md);
    width: 49px;
    min-height: 34px;
  }
  .zoom-controls {
    gap: 0;
  }
  .page-navigation {
    gap: 1px;
  }
  .stage-caption {
    font-size: var(--text-sm);
  }
  .stage-caption > span:last-child {
    display: none;
  }
  .page-sidebar {
    padding: 15px 16px;
  }
  .page-move .icon-button {
    min-height: 36px;
  }
  .split-result strong {
    font-size: var(--text-base);
  }
  .split-result small {
    font-size: var(--text-sm);
  }
  .split-result .icon-button {
    width: 40px;
    height: 40px;
  }
  .split-result-list {
    max-height: 250px;
  }
}
@media (max-width: 380px) {
  .main-nav,
  .editing .main-nav {
    gap: 12px;
    font-size: var(--text-base);
  }
  .main-nav > [data-action='tools-home'] {
    display: none;
  }
  .hero-copy h1 {
    font-size: var(--text-display);
  }
  .hero-benefits {
    gap: 8px;
    font-size: var(--text-sm);
  }
  .tool-filters button {
    font-size: var(--text-base);
    padding: 8px 6px;
  }
  .tool-card,
  .tool-card:not(.featured-tool) {
    padding: 15px 12px;
  }
  .tool-card-copy strong {
    font-size: var(--text-md);
  }
  .featured-tool .tool-card-copy strong {
    font-size: var(--text-md);
  }
  .document-actions .button {
    padding: 8px;
    font-size: var(--text-base);
  }
  .document-actions .icon {
    width: 14px;
    height: 14px;
  }
  .page-jump input {
    width: 42px;
  }
  .preview-toolbar {
    padding: 0 7px;
  }
  .preview-toolbar .icon-button {
    width: 27px;
  }
  .zoom-controls .text-button {
    min-width: 30px;
  }
}

/* Phones: one row of document actions. Undo shows only its icon, but its label
   stays available to assistive technology. */
.document-actions .button {
  white-space: nowrap;
}
@media (max-width: 720px) {
  .document-actions #undo-button span {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* The keyboard-scrollable page preview shows its focus inside its own edge. */
.canvas-scroll:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: -3px;
}

/* Tool pages (generated by scripts/build-pages.mjs): longer headlines, a how-to
   and an FAQ before the grid of other tools. */
body[data-tool] .hero-copy h1 {
  font-size: var(--text-display-tool);
  letter-spacing: -1.6px;
}
.tool-how {
  margin-top: 8px;
}
/* On tool pages the privacy strip follows the tools grid directly. */
.tools-section + .privacy-strip {
  margin-top: 64px;
}
.faq-section {
  display: grid;
  grid-template-columns: 1.15fr 3fr;
  gap: 38px;
  margin-bottom: 64px;
  padding-top: 39px;
  border-top: 1px solid var(--color-border);
}
.faq-heading h2 {
  font-family: var(--font-serif);
  font-size: var(--text-h2);
  font-weight: 400;
  line-height: 1.2;
  margin-top: 14px;
}
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-item:first-child {
  border-top: 1px solid var(--color-border);
}
.faq-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 2px;
  font-size: var(--text-md);
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: '';
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin: 7px 4px 0 0;
  border-right: 1.6px solid var(--color-icon-muted);
  border-bottom: 1.6px solid var(--color-icon-muted);
  transform: rotate(45deg);
  transition: transform 0.15s;
}
.faq-item[open] summary::after {
  margin-top: 11px;
  transform: rotate(-135deg);
}
.faq-item summary:hover {
  color: var(--color-accent);
}
summary:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}
.faq-item p {
  max-width: 68ch;
  padding: 0 2px 18px;
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--color-text-muted);
}
.faq-item a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 720px) {
  .tools-section + .privacy-strip {
    margin-top: 40px;
  }
  .faq-section {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 40px;
    padding-top: 28px;
  }
  .faq-heading h2 {
    margin-top: 10px;
  }
}

/* Phones: the four tool filters form an even 2 x 2 grid instead of wrapping unevenly. */
@media (max-width: 720px) {
  .tool-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .tool-filters button {
    border-color: var(--color-border);
  }
}
