/* The tools directory and blog share the home page's quieter visual language. */
.page-simple .nav,
.page-simple .nav.scrolled {
  position: absolute;
  background: var(--bg);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  transition: none;
}

.page-simple .nav-link,
.page-simple .footer-link {
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  transition: none;
}

.page-simple .nav-cta {
  border-radius: 8px;
  box-shadow: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

.page-simple .footer-copy {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0;
}

/* Tools directory */
.tools-directory {
  background: var(--bg);
}

.tools-directory .tools-main {
  padding: 144px var(--gutter) 96px;
  overflow: visible;
}

.tools-directory .tools-main::before { display: none; }
.tools-directory .tools-container { max-width: 1072px; }
.tools-directory .tools-hero { max-width: 700px; margin-bottom: 72px; }
.tools-directory .tools-kicker {
  display: block;
  margin-bottom: 24px;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: 0;
}
.tools-directory .tools-kicker::before { display: none; }
.tools-directory .tools-hero h1 {
  font-size: clamp(64px, 7vw, 96px);
  line-height: .98;
  letter-spacing: .5px;
}
.tools-directory .tools-hero > p:last-child {
  max-width: 500px;
  margin-top: 28px;
  font-size: 18px;
  line-height: 1.7;
}

.tools-directory .tools-card-grid { gap: 44px 48px; }
.tools-directory .tools-card {
  min-height: 0;
  padding: 26px 0 4px;
  overflow: visible;
  border: 0;
  border-top: 1px solid var(--hairline);
  border-radius: 0;
  background: transparent;
  transition: none;
}
.tools-directory .tools-card::after { display: none; }
.tools-directory .tools-card:hover,
.tools-directory .tools-card:focus-visible { border-top-color: var(--accent); }
.tools-directory .tools-card h2 {
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-size: clamp(21px, 2.2vw, 27px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.5px;
}
.tools-directory .tools-card p {
  max-width: 420px;
  font-size: 15px;
  line-height: 1.7;
}
.tools-directory .tools-card-link {
  gap: 8px;
  margin-top: 20px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
}
.tools-directory .tools-card:hover .tools-card-link { color: var(--accent); }
.tools-directory .tools-method {
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 80px;
  padding-top: 32px;
}
.tools-directory .tools-method h2 {
  max-width: 320px;
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
}
.tools-directory .tools-method-copy {
  gap: 12px;
  max-width: 530px;
  font-size: 15px;
  line-height: 1.7;
}
.tools-directory .tools-method-copy a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.tools-directory .tools-method-copy a:hover { color: var(--accent); }

/* Blog index */
.blog-page .blog-main {
  min-height: calc(100vh - 160px);
  padding: 144px var(--gutter) 96px;
  background: var(--bg);
}
.blog-page .blog-hero,
.blog-page .blog-list,
.blog-page .blog-list-heading { max-width: 1072px; margin-left: auto; margin-right: auto; }
.blog-page .blog-hero { margin-bottom: 84px; }
.blog-page .legal-kicker {
  margin-bottom: 24px;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
}
.blog-page .blog-hero h1 {
  margin-bottom: 28px;
  font-size: clamp(64px, 7vw, 96px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: .5px;
}
.blog-page .legal-intro { max-width: 520px; margin: 0; font-size: 18px; line-height: 1.7; }
.blog-list-heading {
  margin-bottom: 20px;
  font-size: 19px;
  font-weight: 500;
}
.blog-page .blog-list { display: grid; gap: 0; }
.blog-page .post-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  column-gap: 48px;
  padding: 28px 0 32px;
  border: 0;
  border-top: 1px solid var(--hairline);
  border-radius: 0;
  background: transparent;
  transform: none;
  transition: none;
}
.blog-page .post-card:hover { background: transparent; border-top-color: var(--accent); transform: none; }
.blog-page .post-card-kicker {
  grid-column: 1;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}
.blog-page .post-card-title {
  grid-column: 1;
  max-width: 700px;
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-size: clamp(23px, 2.7vw, 32px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.7px;
}
.blog-page .post-card:hover .post-card-title { color: var(--accent); }
.blog-page .post-card-excerpt { grid-column: 1; max-width: 650px; margin-bottom: 0; }
.blog-page .post-card-meta {
  display: grid;
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: start;
  justify-self: end;
  gap: 4px;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0;
  text-align: right;
  text-transform: none;
}
.blog-page .post-meta-dot { display: none; }

/* Article pages retain a narrow reading column. */
.post-page .post-main { padding-top: 128px; background: var(--bg); }
.post-page .post-hero h1 {
  max-width: 800px;
  font-family: var(--font-body);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -1.5px;
}
.post-page .post-back,
.post-page .legal-kicker,
.post-page .post-meta,
.post-page .post-tag {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}
.post-page .legal-kicker { color: var(--text-muted); }
.post-page .post-tag { border-radius: 8px; }
.post-page .post-content h2 {
  font-family: var(--font-body);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.5px;
}
.post-page .post-cta { border-color: var(--hairline); border-radius: 0; background: transparent; }
.post-page .post-cta-title,
.post-page .post-related-title {
  font-family: var(--font-body);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.5px;
}
.post-page .post-cta .btn-primary {
  border-radius: 8px;
  background: var(--accent);
  box-shadow: none;
  color: var(--accent-ink);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

@media (max-width: 720px) {
  .tools-directory .tools-main,
  .blog-page .blog-main { padding-top: 112px; padding-bottom: 64px; }
  .tools-directory .tools-hero,
  .blog-page .blog-hero { margin-bottom: 56px; }
  .tools-directory .tools-card-grid { grid-template-columns: 1fr; gap: 20px; }
  .tools-directory .tools-card { padding: 24px 0 8px; }
  .tools-directory .tools-method { grid-template-columns: 1fr; gap: 12px; margin-top: 56px; }
  .blog-page .post-card { grid-template-columns: 1fr; }
  .blog-page .post-card-meta { display: flex; grid-column: 1; grid-row: auto; justify-self: start; gap: 12px; margin-top: 16px; text-align: left; }
  .post-page .post-main { padding-top: 112px; }
}

@media (max-width: 480px) {
  .tools-directory .tools-hero h1,
  .blog-page .blog-hero h1 { font-size: clamp(52px, 12vw, 72px); }
  .tools-directory .tools-hero > p:last-child,
  .blog-page .legal-intro { font-size: 17px; }
}

/* ─── Post tables ─── */
.post-content table {
  width: 100%;
  margin: 24px 0 28px;
  border-collapse: collapse;
  font-size: 15px;
}
.post-content th,
.post-content td {
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--hairline);
  text-align: left;
  vertical-align: top;
  min-width: 90px;
}
.post-content th {
  font-weight: 600;
  color: var(--text);
  border-bottom-color: var(--border-strong);
}
.post-content td { color: var(--text-dim); }
@media (max-width: 340px) {
  .post-content table { display: block; overflow-x: auto; }
}

/* ─── Plain page titles on the tools and blog indexes ─── */
.tools-directory .tools-hero h1.page-title,
.blog-page .blog-hero h1.page-title {
  max-width: 800px;
  font-family: var(--font-body);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -1.5px;
  text-transform: none;
}
.blog-page .blog-hero h1.page-title { margin-bottom: 20px; }
.tools-directory .tools-hero h1.page-title + p { margin-top: 20px; }
