/* Inner pages: tool, category and static pages */
/* Inner pages */
.page-hero {
  padding: 104px 20px 28px;
}

.page-wrap {
  max-width: 980px;
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--text);
  margin-bottom: 10px;
}

.lead {
  color: var(--text2);
  line-height: 1.7;
  font-size: 1.02rem;
  max-width: 720px;
}

.tool-head {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.tool-head .icon-wrap {
  margin-top: 4px;
}

.tool-section {
  padding: 28px 20px 64px;
}

.breadcrumbs {
  margin-bottom: 18px;
  font-size: 0.8rem;
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.breadcrumbs li+li::before {
  content: '/';
  margin-right: 6px;
  color: var(--text3);
}

.breadcrumbs a {
  color: var(--text2);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--acc);
}

.breadcrumbs [aria-current] {
  color: var(--text3);
}

.tool-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin: 44px 0 8px;
}

.tool-section h2,
.prose h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}

.prose-list {
  padding-left: 1.2rem;
  color: var(--text2);
  line-height: 1.75;
  font-size: 0.95rem;
}

.prose-list li+li {
  margin-top: 6px;
}

.faq-block {
  margin-top: 44px;
}

.related {
  margin-top: 52px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.related-grid--wide {
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
}

.related-more {
  margin-top: 16px;
  font-size: 0.9rem;
}

.related-more a,
.prose a {
  color: var(--acc);
  font-weight: 600;
}

.prose {
  max-width: 740px;
}

.prose p {
  color: var(--text2);
  line-height: 1.78;
  font-size: 0.95rem;
  margin-bottom: 22px;
}

.prose h2 {
  margin-top: 28px;
}

.notice {
  background: var(--pill-bg);
  border: 1px solid var(--pill-bdr);
  border-radius: 12px;
  padding: 12px 16px;
}

.coming-soon {
  text-align: center;
  padding: 48px 24px;
}

.coming-soon p {
  color: var(--text2);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

.coming-soon a {
  color: var(--acc);
  font-weight: 600;
}
.tool-head .icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Embedded contact form */
.contact-frame {
  margin: 20px 0 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.contact-frame iframe {
  display: block;
  width: 100%;
  height: 900px;
  border: 0;
}

/* ===== Tool page layout ===== */
.tool-layout {
  display: block;
}

.tool-layout.has-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  align-items: start;
}

.tool-sidebar__sticky {
  position: sticky;
  top: 88px;
}

@media (max-width: 1099px) {
  .tool-layout.has-sidebar {
    display: block;
  }

  .tool-sidebar {
    display: none;
  }
}

/* The sidebar needs more room than the default content width */
.page-wrap:has(> .tool-layout.has-sidebar) {
  max-width: 1180px;
}

.tool-head .icon-wrap {
  width: 56px;
  height: 56px;
}

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.chips li {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--acc);
  background: var(--pill-bg);
  border: 1px solid var(--pill-bdr);
  border-radius: 999px;
  padding: 4px 12px;
}

.chips li::before {
  content: '✓';
  margin-right: 6px;
}

.updated {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--text3);
}

/* ===== Long-form article ===== */
.article {
  margin-top: 48px;
}

.toc {
  background: var(--pill-bg);
  border: 1px solid var(--pill-bdr);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 32px;
}

.toc strong {
  display: block;
  font-family: 'Outfit', sans-serif;
  color: var(--text);
  margin-bottom: 8px;
}

.toc ol {
  padding-left: 1.2rem;
  color: var(--text2);
  line-height: 1.9;
  font-size: 0.92rem;
}

.toc a {
  color: var(--acc);
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

.article-section {
  margin-bottom: 36px;
  scroll-margin-top: 90px;
}

.article-section h2 {
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.article-section p {
  color: var(--text2);
  line-height: 1.8;
  font-size: 0.98rem;
  margin-bottom: 16px;
}

.article-section .prose-list {
  margin-bottom: 16px;
}

.article-section strong {
  color: var(--text);
}

.table-wrap {
  overflow-x: auto;
  margin: 18px 0 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 520px;
}

.article-table th,
.article-table td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border2);
  color: var(--text2);
}

.article-table th {
  background: var(--pill-bg);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
}

.article-table tbody tr:last-child td {
  border-bottom: none;
}

/* ===== Wide tools (two-pane editors) ===== */
.tool-section.is-wide {
  max-width: 1320px;
}

.page-hero .page-wrap:has(+ .is-wide) {
  max-width: 1320px;
}

.is-wide .tool-main > .article,
.is-wide .tool-main > .tool-columns,
.is-wide .tool-main > .faq-block {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.is-wide .tool-main > .article {
  margin-top: 56px;
}

.code-block {
  background: #0b1b4d;
  color: #e6efff;
  border-radius: 12px;
  padding: 16px 18px;
  margin: 8px 0 20px;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84rem;
  line-height: 1.6;
}

.article-section code,
.prose-list code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
  background: var(--pill-bg);
  border: 1px solid var(--pill-bdr);
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--text);
}

.code-block code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.page-hero.is-wide .page-wrap {
  max-width: 1280px;
}

/* Wide tools: use the width in the hero and keep the tool close to the heading */
.page-hero.is-wide {
  padding-bottom: 6px;
}

.page-hero.is-wide .lead {
  max-width: 980px;
}

.tool-section.is-wide {
  padding-top: 14px;
}

/* Category pages: the article under the list of tools, and links to the other categories */
.category-body {
  max-width: 900px;
  margin: 44px auto 0;
}

.category-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.category-links li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card-bg);
}

.category-links a {
  color: var(--text);
  text-decoration: none;
}

.category-links a:hover {
  color: var(--acc);
}

.category-links span {
  font-size: 0.82rem;
  color: var(--text2);
}
