/**
 * MarkupFox Developer Tools — tools.css
 * Shared across all /tools/* pages.
 * Design tokens: --primary #063232, --secondary #1e8a8a, --light_bg #d8e5e5
 * Fonts: Poppins (sans), PT Serif (serif editorial), system monospace (code)
 */

/* ─────────────────────────────────────────────────────────────
   Page shell
───────────────────────────────────────────────────────────── */
.tools-page {
  background: #fff;
}

/* ─────────────────────────────────────────────────────────────
   Tool page header
───────────────────────────────────────────────────────────── */
.tool-header {
  /* Top padding clears the sticky/fixed site header at all viewports. */
  padding: 130px 0 36px;
}

.tool-header__breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #999;
  margin-bottom: 20px;
}

.tool-header__breadcrumb a {
  color: var(--secondary);
  text-decoration: none;
}

.tool-header__breadcrumb a:hover {
  text-decoration: underline;
}

.tool-header__breadcrumb-sep {
  color: #ccc;
}

.tool-header__title {
  font-family: 'Poppins', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 12px;
}

.tool-header__desc {
  font-size: 16px;
  line-height: 1.7;
  color: #555;
  max-width: 660px;
  margin-bottom: 28px;
}

.tool-header__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 13px 0;
  border-top: 1px solid #ebebeb;
}

.tool-header__badges {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.tool-badge {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #999;
}

.tool-badge--live {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #1a9a5e;
}

.tool-badge--live::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1a9a5e;
  animation: tool-live-pulse 2s ease-in-out infinite;
}

@keyframes tool-live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.tool-header__version {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #bbb;
}

/* ─────────────────────────────────────────────────────────────
   Tool wrap + window
───────────────────────────────────────────────────────────── */
.tool-wrap {
  padding: 40px 0 60px;
}

.tool-window {
  border: 1px solid #e2e2e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.02);
  background: #fff;
}

/* Chrome bar */
.tool-window__chrome {
  display: flex;
  align-items: center;
  padding: 9px 14px;
  background: #f4f4f2;
  border-bottom: 1px solid #e8e8e6;
  gap: 0;
}

.tool-window__dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.tool-window__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.tool-window__dot--red    { background: #ff5f57; }
.tool-window__dot--yellow { background: #febc2e; }
.tool-window__dot--green  { background: #28c840; }

.tool-window__url {
  flex: 1;
  text-align: center;
  font-size: 11.5px;
  color: #aaa;
  font-family: 'SFMono-Regular', 'Fira Code', Consolas, monospace;
  letter-spacing: 0.01em;
}

.tool-window__live {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #1a9a5e;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  text-transform: uppercase;
}

.tool-window__live::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1a9a5e;
}

/* Options bar */
.tool-window__options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  background: #fff;
  border-bottom: 1px solid #f0f0ee;
  gap: 16px;
  flex-wrap: wrap;
  min-height: 46px;
}

.tool-options-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.tool-options-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Checkboxes */
.tool-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #444;
  cursor: pointer;
  user-select: none;
  line-height: 1;
}

.tool-checkbox input[type='checkbox'] {
  accent-color: var(--secondary);
  width: 13px;
  height: 13px;
  cursor: pointer;
  flex-shrink: 0;
}

.tool-checkbox code {
  font-family: 'SFMono-Regular', 'Fira Code', Consolas, monospace;
  font-size: 11.5px;
  background: #f4f4f2;
  padding: 1px 4px;
  border-radius: 3px;
  color: var(--secondary);
}

/* Buttons */
.tool-btn {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: 5px;
  border: 1px solid #e2e2e0;
  background: #fff;
  color: #555;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
  font-family: 'Poppins', sans-serif;
  line-height: 1;
}

.tool-btn:hover:not(:disabled) {
  background: #f4f4f2;
  border-color: #ccc;
  color: #333;
}

.tool-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.tool-btn--primary {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #fff;
}

.tool-btn--primary:hover:not(:disabled) {
  background: #187878;
  border-color: #187878;
  color: #fff;
}

/* ─────────────────────────────────────────────────────────────
   Split panes
───────────────────────────────────────────────────────────── */
.tool-panes {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.tool-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tool-pane + .tool-pane {
  border-left: 1px solid #ebebea;
}

.tool-pane__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 13px;
  background: #faf9f8;
  border-bottom: 1px solid #f0f0ee;
  flex-shrink: 0;
}

.tool-pane__filename {
  font-size: 11.5px;
  font-family: 'SFMono-Regular', 'Fira Code', Consolas, monospace;
  color: #888;
}

.tool-pane__stats {
  font-size: 11px;
  color: #bbb;
  font-family: 'SFMono-Regular', 'Fira Code', Consolas, monospace;
}

.tool-pane__body {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.tool-pane__textarea {
  display: block;
  width: 100%;
  min-height: 340px;
  height: 100%;
  padding: 14px 16px;
  border: none;
  outline: none;
  resize: none;
  font-family: 'SFMono-Regular', 'Fira Code', 'Fira Mono', 'Roboto Mono', Consolas, 'Courier New', monospace;
  font-size: 12.5px;
  line-height: 1.65;
  color: #2a2a2a;
  background: #fefefe;
  tab-size: 2;
  -moz-tab-size: 2;
}

.tool-pane__textarea:focus {
  background: #fffffe;
  outline: none;
}

.tool-pane__textarea--output {
  color: #555;
  background: #faf9f8;
  cursor: default;
}

.tool-pane__textarea--output:focus {
  background: #faf9f8;
}

/* ─────────────────────────────────────────────────────────────
   Footer bar
───────────────────────────────────────────────────────────── */
.tool-window__footer {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  background: #fff;
  border-top: 1px solid #f0f0ee;
  gap: 14px;
  flex-wrap: wrap;
}

.tool-footer__reduction {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.tool-footer__reduction span {
  color: var(--secondary);
}

.tool-footer__bar {
  flex: 1;
  min-width: 60px;
  height: 4px;
  background: #eee;
  border-radius: 2px;
  overflow: hidden;
}

.tool-footer__bar-fill {
  height: 100%;
  background: var(--secondary);
  border-radius: 2px;
  transition: width 0.35s ease;
}

.tool-footer__actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────────
   PX → REM table
───────────────────────────────────────────────────────────── */
.tool-results-table {
  height: 100%;
  overflow-y: auto;
}

.tool-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 200px;
  font-size: 13px;
  color: #bbb;
  font-style: italic;
}

.tool-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.tool-table thead tr {
  background: #faf9f8;
  border-bottom: 1px solid #ebebea;
}

.tool-table th {
  padding: 8px 14px;
  text-align: left;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #aaa;
}

.tool-table td {
  padding: 8px 14px;
  border-bottom: 1px solid #f4f4f2;
  vertical-align: middle;
}

.tool-table tbody tr:hover td {
  background: #fdf9f7;
}

.tool-table__mono {
  font-family: 'SFMono-Regular', 'Fira Code', Consolas, monospace;
  color: #666;
}

.tool-table__value {
  color: var(--secondary);
  font-weight: 600;
}

.tool-table__tw {
  font-family: 'SFMono-Regular', 'Fira Code', Consolas, monospace;
  font-size: 11.5px;
  color: #999;
}

/* ─────────────────────────────────────────────────────────────
   Base64 drag-drop zone
───────────────────────────────────────────────────────────── */
.tool-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  padding: 40px;
  cursor: pointer;
  background: #faf9f8;
  border-top: 1px solid #f0f0ee;
  transition: background 0.15s;
  gap: 10px;
  user-select: none;
}

.tool-dropzone:hover,
.tool-dropzone--active {
  background: #f0f9f7;
}

.tool-dropzone__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px dashed #d0d0cc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #bbb;
  margin-bottom: 6px;
  transition: border-color 0.15s, color 0.15s;
}

.tool-dropzone--active .tool-dropzone__icon,
.tool-dropzone:hover .tool-dropzone__icon {
  border-color: var(--secondary);
  color: var(--secondary);
}

.tool-dropzone__label {
  font-size: 15px;
  font-weight: 600;
  color: #444;
}

.tool-dropzone__sub {
  font-size: 13px;
  color: #999;
}

/* ─────────────────────────────────────────────────────────────
   Meta Tag Generator
───────────────────────────────────────────────────────────── */
.tool-meta-form {
  overflow-y: auto;
  max-height: 440px;
  padding: 16px;
}

.tool-meta-output {
  overflow-y: auto;
  max-height: 440px;
}

.tool-field {
  margin-bottom: 14px;
}

.tool-field__label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 5px;
}

.tool-field__input {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #e2e2e0;
  border-radius: 5px;
  font-size: 13px;
  font-family: 'Poppins', sans-serif;
  color: #333;
  background: #fff;
  transition: border-color 0.15s;
  line-height: 1.5;
}

.tool-field__input:focus {
  outline: none;
  border-color: var(--secondary);
}

.tool-field__input[type='color'] {
  padding: 2px 4px;
  height: 36px;
  cursor: pointer;
}

.tool-field__textarea {
  resize: vertical;
  min-height: 76px;
}

select.tool-field__input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23aaa' d='M8 10.5L3.5 6h9z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
  padding-right: 28px;
  cursor: pointer;
}

/* SERP preview */
.serp-preview {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 0;
}

.serp-preview__url {
  font-size: 12px;
  color: #1a6b26;
  margin-bottom: 2px;
  font-family: 'SFMono-Regular', Consolas, monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.serp-preview__title {
  font-size: 17px;
  color: #1a0dab;
  margin-bottom: 4px;
  line-height: 1.3;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.serp-preview__title:hover {
  text-decoration: underline;
}

.serp-preview__desc {
  font-size: 13.5px;
  color: #4d4d4d;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─────────────────────────────────────────────────────────────
   Color Contrast Checker
───────────────────────────────────────────────────────────── */
.tool-contrast-body {
  padding: 20px 20px 8px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tool-contrast-inputs {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.tool-contrast-picker {
  flex: 1;
  min-width: 160px;
}

.tool-color-input {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-color-swatch {
  width: 38px;
  height: 36px;
  border: 1px solid #e2e2e0;
  border-radius: 5px;
  cursor: pointer;
  padding: 1px 2px;
  background: none;
  flex-shrink: 0;
}

.tool-color-input .tool-field__input {
  font-family: 'SFMono-Regular', Consolas, monospace;
  letter-spacing: 0.03em;
}

.tool-contrast-preview {
  border-radius: 8px;
  padding: 28px 28px;
  border: 1px solid rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.2s, color 0.2s;
}

.tool-contrast-preview__large {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.tool-contrast-preview__normal {
  font-size: 16px;
  line-height: 1.6;
}

.tool-contrast-preview__small {
  font-size: 13.5px;
  line-height: 1.55;
  opacity: 0.85;
}

.tool-contrast-results {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  flex-wrap: wrap;
  padding-bottom: 8px;
}

.tool-contrast-ratio {
  text-align: center;
  min-width: 100px;
  flex-shrink: 0;
}

.tool-contrast-ratio__value {
  font-size: 38px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  font-family: 'Poppins', sans-serif;
}

.tool-contrast-ratio__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #aaa;
  margin-top: 6px;
}

.tool-contrast-table {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wcag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  background: #faf9f8;
  border-radius: 6px;
  border: 1px solid #ebebea;
}

.wcag-row__label {
  font-size: 13px;
  color: #555;
  line-height: 1.3;
}

.wcag-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 3px;
  flex-shrink: 0;
  text-transform: uppercase;
}

.wcag-badge--pass {
  background: #d4f4e4;
  color: #1a7a45;
}

.wcag-badge--fail {
  background: #fde8e8;
  color: #c0392b;
}

/* ─────────────────────────────────────────────────────────────
   Promo section
───────────────────────────────────────────────────────────── */
.tool-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 44px 52px;
  background: #eaf3f2;
  border-left: 3px solid var(--secondary);
  border-radius: 0 8px 8px 0;
  margin-bottom: 64px;
}

.tool-promo__content {
  max-width: 500px;
}

.tool-promo__eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 14px;
}

.tool-promo__title {
  font-family: 'PT Serif', Georgia, serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.28;
  margin-bottom: 12px;
}

.tool-promo__title em {
  font-style: italic;
}

.tool-promo__body {
  font-size: 14.5px;
  color: #555;
  line-height: 1.65;
  margin: 0;
}

.tool-promo__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  min-width: 210px;
}

.tool-promo-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  text-align: center;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  white-space: nowrap;
  border: 2px solid transparent;
  cursor: pointer;
}

.tool-promo-btn--primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.tool-promo-btn--primary:hover {
  background: #0a4040;
  border-color: #0a4040;
  color: #fff;
}

.tool-promo-btn--secondary {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.tool-promo-btn--secondary:hover {
  background: var(--primary);
  color: #fff;
}

/* ─────────────────────────────────────────────────────────────
   Long-form SEO content sections (per-tool)
   Sits below the tool, above the FAQ. Targets secondary keywords
   surfaced by the SEO cluster analysis: "how to ...", "why use ...",
   "when to ...". Reads like editorial copy, not marketing fluff.
───────────────────────────────────────────────────────────── */
.tool-content {
  padding: 8px 0 56px;
  max-width: 820px;
}

.tool-content__eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 14px;
}

.tool-content__h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
  margin: 0 0 28px;
}

.tool-content__section {
  margin-bottom: 32px;
}

.tool-content__section:last-child {
  margin-bottom: 0;
}

.tool-content__h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.3;
  margin: 0 0 10px;
}

.tool-content__p {
  font-size: 15px;
  color: #555;
  line-height: 1.75;
  margin: 0 0 12px;
}

.tool-content__p:last-child {
  margin-bottom: 0;
}

.tool-content__p a {
  color: var(--secondary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.tool-content__p a:hover {
  color: #187878;
}

.tool-content__p code {
  font-family: 'SFMono-Regular', 'Fira Code', Consolas, monospace;
  font-size: 13px;
  background: #f4f4f2;
  padding: 1px 6px;
  border-radius: 3px;
  color: var(--primary);
}

.tool-content__ul {
  font-size: 15px;
  color: #555;
  line-height: 1.75;
  margin: 0 0 12px;
  padding-left: 24px;
}

.tool-content__ul li {
  margin-bottom: 6px;
}

@media (max-width: 768px) {
  .tool-content__h2 {
    font-size: 22px;
    margin-bottom: 20px;
  }
  .tool-content__h3 {
    font-size: 16px;
  }
}

/* ─────────────────────────────────────────────────────────────
   FAQ section (per-tool)
   Full container width, 2-column grid on desktop.
───────────────────────────────────────────────────────────── */
.tool-faq {
  padding-bottom: 64px;
}

.tool-faq__title {
  font-family: 'Poppins', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 28px;
  line-height: 1.25;
}

.tool-faq__grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tool-faq__item {
  border: 1px solid #ebebea;
  border-radius: 8px;
  padding: 18px 20px;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.tool-faq__item[open] {
  border-color: var(--secondary);
  box-shadow: 0 2px 14px rgba(30, 138, 138, 0.06);
}

.tool-faq__summary {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  line-height: 1.4;
}

/* Hide the default disclosure marker across browsers */
.tool-faq__summary::-webkit-details-marker { display: none; }
.tool-faq__summary::marker { content: ''; }

.tool-faq__chev {
  font-size: 12px;
  color: var(--secondary);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.tool-faq__item[open] .tool-faq__chev {
  transform: rotate(180deg);
}

.tool-faq__answer {
  margin: 14px 0 2px;
  font-size: 14px;
  color: #666;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .tool-faq__title {
    font-size: 22px;
    margin-bottom: 20px;
  }
}

/* ─────────────────────────────────────────────────────────────
   More Free Tools
───────────────────────────────────────────────────────────── */
.more-tools {
  padding: 0 0 80px;
}

.more-tools__eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 20px;
}

.more-tools__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.more-tools__card {
  display: block;
  padding: 22px 22px 20px;
  border: 1px solid #e8e8e6;
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
  background: #fff;
}

.more-tools__card:hover {
  border-color: var(--secondary);
  box-shadow: 0 4px 20px rgba(30, 138, 138, 0.1);
  transform: translateY(-2px);
}

.more-tools__num {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--secondary);
  font-family: 'SFMono-Regular', Consolas, monospace;
  margin-bottom: 11px;
}

.more-tools__card-category {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 11px;
}

.more-tools__card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 7px;
  line-height: 1.3;
}

.more-tools__card-desc {
  font-size: 13px;
  color: #888;
  line-height: 1.5;
  margin: 0;
}

/* ─────────────────────────────────────────────────────────────
   Tools Hub / Index page
───────────────────────────────────────────────────────────── */
.tools-hero {
  /* Top padding generous enough to clear the sticky/fixed site header
     across breakpoints without relying on header height being fixed. */
  padding: 140px 0 64px;
  border-bottom: 1px solid #ebebea;
}

.tools-hero__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 18px;
}

.tools-hero__title {
  font-family: 'Poppins', sans-serif;
  font-size: 46px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.15;
  margin-bottom: 18px;
}

.tools-hero__desc {
  font-size: 17px;
  color: #555;
  max-width: 580px;
  line-height: 1.7;
  margin: 0;
}

.tools-grid {
  padding: 64px 0 100px;
}

.tools-grid__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.tools-card {
  display: flex;
  flex-direction: column;
  padding: 28px 28px 24px;
  border: 1px solid #e8e8e6;
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  background: #fff;
}

.tools-card:hover {
  border-color: var(--secondary);
  box-shadow: 0 8px 32px rgba(30, 138, 138, 0.1);
  transform: translateY(-3px);
}

.tools-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.tools-card__num {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--secondary);
  font-family: 'SFMono-Regular', Consolas, monospace;
}

.tools-card__category {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ccc;
}

.tools-card__icon {
  font-size: 26px;
  color: var(--primary);
  opacity: 0.6;
  margin-bottom: 14px;
}

.tools-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 9px;
  line-height: 1.25;
}

.tools-card__desc {
  font-size: 14px;
  color: #777;
  line-height: 1.55;
  margin: 0 0 20px;
  flex: 1;
}

.tools-card__cta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary);
  margin-top: auto;
}

.tools-card__cta i {
  transition: transform 0.15s;
}

.tools-card:hover .tools-card__cta i {
  transform: translateX(4px);
}

/* ── Feature card variant (used when only one tool is available) ── */
/* Spans the full row, uses a horizontal layout with the visual on the
   left and the CTA on the right. Auto-applied when .tools-grid__inner
   contains a single .tools-card child via the :has() selector below;
   the modifier class is also exposed for explicit use. */
.tools-grid__inner:has(> .tools-card:only-child) {
  grid-template-columns: 1fr;
}

.tools-card--feature {
  flex-direction: row;
  align-items: center;
  gap: 36px;
  padding: 40px 44px;
}

.tools-card--feature .tools-card__icon {
  font-size: 56px;
  margin-bottom: 0;
  flex-shrink: 0;
  width: 92px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eaf3f2;
  border-radius: 14px;
  color: var(--secondary);
  opacity: 1;
}

.tools-card--feature .tools-card__body {
  flex: 1;
  min-width: 0;
}

.tools-card--feature .tools-card__category {
  font-size: 11px;
  color: var(--secondary);
  margin-bottom: 10px;
  display: block;
}

.tools-card--feature .tools-card__title {
  font-size: 26px;
  margin-bottom: 8px;
}

.tools-card--feature .tools-card__desc {
  font-size: 15.5px;
  line-height: 1.6;
  margin: 0;
  max-width: 620px;
  flex: none;
}

.tools-card--feature .tools-card__cta {
  flex-shrink: 0;
  padding: 14px 26px;
  border: 2px solid var(--primary);
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  margin-top: 0;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  font-family: 'Poppins', sans-serif;
}

.tools-card--feature:hover .tools-card__cta {
  background: #0a4040;
  border-color: #0a4040;
  color: #fff;
}

@media (max-width: 768px) {
  .tools-card--feature {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 28px 24px;
  }

  .tools-card--feature .tools-card__icon {
    width: 64px;
    height: 64px;
    font-size: 36px;
    border-radius: 10px;
  }

  .tools-card--feature .tools-card__title {
    font-size: 22px;
  }

  .tools-card--feature .tools-card__cta {
    width: 100%;
    justify-content: center;
  }
}

/* ─────────────────────────────────────────────────────────────
   Responsive
───────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .more-tools__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tools-grid__inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .tool-promo {
    flex-direction: column;
    padding: 32px 28px;
    gap: 24px;
  }

  .tool-promo__actions {
    flex-direction: row;
    min-width: unset;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .tool-header {
    padding: 100px 0 28px;
  }

  .tools-hero {
    padding: 110px 0 48px;
  }

  .tool-header__title {
    font-size: 26px;
  }

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

  .tool-pane + .tool-pane {
    border-left: none;
    border-top: 1px solid #ebebea;
  }

  .tool-promo {
    padding: 24px 20px;
    border-radius: 0 6px 6px 0;
  }

  .tool-promo__title {
    font-size: 24px;
  }

  .tool-promo__actions {
    flex-direction: column;
  }

  .more-tools__grid {
    grid-template-columns: 1fr;
  }

  .tool-header__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .tools-hero__title {
    font-size: 30px;
  }

  .tools-grid__inner {
    grid-template-columns: 1fr;
  }

  .tool-contrast-body {
    padding: 14px 14px 4px;
  }

  .tool-contrast-results {
    flex-direction: column;
    gap: 16px;
  }

  .tool-contrast-ratio {
    text-align: left;
  }
}
