/* Guides and free tools: readable, answer-first, and intentionally low-chrome. */

.content-page main { overflow: visible; }

.content-hero {
  padding: clamp(132px, 13vw, 178px) max(clamp(20px, 5vw, 72px), calc((100vw - 920px) / 2)) clamp(58px, 7vw, 84px);
  background: var(--paper);
  border-top: 6px solid var(--signal);
}

.content-shell { width: min(100%, 920px); margin-inline: auto; }

.breadcrumb {
  display: flex;
  gap: 9px;
  margin-bottom: 36px;
  color: var(--muted);
  font-size: 0.78rem;
}

.breadcrumb a { text-underline-offset: 3px; }

.content-hero h1 {
  max-width: 14ch;
  margin-bottom: 22px;
  font-family: var(--sans);
  font-size: clamp(2.5rem, 5.4vw, 5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.055em;
}

.content-dek {
  max-width: 720px;
  color: #454742;
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  line-height: 1.65;
}

.article-layout { padding: clamp(48px, 7vw, 84px) 20px clamp(80px, 10vw, 120px); }

.direct-answer {
  margin-bottom: clamp(48px, 7vw, 76px);
  padding: clamp(24px, 4vw, 38px);
  background: var(--forest);
  color: var(--white);
  border-left: 6px solid var(--signal);
}

.direct-answer span {
  display: block;
  margin-bottom: 10px;
  color: #BFD7C9;
  font-size: 0.75rem;
  font-weight: 700;
}

.direct-answer p { font-size: clamp(1.12rem, 2vw, 1.45rem); line-height: 1.55; }

.article-body { max-width: 760px; }

.article-body h2 {
  margin: 58px 0 18px;
  font-family: var(--sans);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.article-body h2:first-child { margin-top: 0; }
.article-body h3 { margin-bottom: 8px; font-size: 1.05rem; }
.article-body p { margin-bottom: 20px; color: #41433f; font-size: 1.02rem; line-height: 1.8; }
.article-body a { color: var(--forest-mid); font-weight: 600; text-underline-offset: 3px; }
.article-body code { padding: 2px 5px; background: var(--forest-soft); font-size: 0.88em; border-radius: 3px; }

.answer-table-wrap { margin: 26px 0 36px; overflow-x: auto; border: 1px solid var(--rule); }
.answer-table { width: 100%; border-collapse: collapse; background: var(--white); font-size: 0.9rem; }
.answer-table th,
.answer-table td { padding: 15px 17px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.answer-table tr:last-child th,
.answer-table tr:last-child td { border-bottom: 0; }
.answer-table thead th { background: var(--forest); color: var(--white); font-size: 0.76rem; }

.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 26px 0; }
.comparison-grid article { padding: 24px; background: var(--white); border: 1px solid var(--rule); }
.comparison-grid article p { margin: 0; font-size: 0.92rem; }

.content-steps,
.content-checks { display: grid; gap: 14px; margin: 24px 0 32px; padding-left: 24px; }
.content-steps li,
.content-checks li { padding-left: 6px; color: #41433f; line-height: 1.7; }
.content-checks li::marker { color: var(--forest-mid); content: "✓  "; font-weight: 800; }
.content-donts li::marker { color: var(--signal); content: "×  "; }

.source-note {
  margin-top: 56px;
  padding: 20px 22px;
  background: var(--mineral-soft);
  color: #344754;
  font-size: 0.82rem;
  line-height: 1.65;
  border-left: 4px solid var(--mineral);
}

.content-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 70px;
  padding: 30px;
  background: var(--paper);
  border: 1px solid var(--rule);
}
.content-cta p { flex: 1 1 340px; font-weight: 700; }
.content-cta > a:last-child:not(.btn-solid) { color: var(--forest-mid); font-size: 0.82rem; font-weight: 700; }

.content-index-hero h1 { max-width: 15ch; }
.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.resource-card { display: flex; min-height: 330px; flex-direction: column; padding: 30px; background: var(--white); border: 1px solid var(--rule); text-decoration: none; }
.resource-card:hover { border-color: var(--forest-mid); background: var(--forest-soft); }
.resource-card > span { margin-bottom: 38px; color: var(--signal); font-size: 0.72rem; font-weight: 700; }
.resource-card h2 { margin-bottom: 14px; font-family: var(--sans); font-size: 1.35rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.035em; }
.resource-card p { margin-bottom: 24px; color: var(--muted); font-size: 0.88rem; }
.resource-card strong { margin-top: auto; color: var(--forest-mid); font-size: 0.78rem; }
.home-resource-grid { grid-template-columns: repeat(2, 1fr); margin-top: 42px; }
.tool-index-grid { grid-template-columns: repeat(2, 1fr); }
.service-resource-grid { grid-template-columns: repeat(2, 1fr); }
.resource-more { margin-top: 26px; color: var(--muted); font-size: 0.84rem; }
.resource-more a { color: var(--forest-mid); font-weight: 700; text-underline-offset: 3px; }

.tool-hero h1 { max-width: 16ch; }
.tool-layout .article-body { max-width: none; }
.tool-layout .article-body > h2,
.tool-layout .article-body > p { max-width: 760px; }
.calculator { margin: 10px 0 46px; border: 1px solid var(--rule); background: var(--white); box-shadow: var(--shadow); }
.calculator-inputs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; padding: clamp(22px, 4vw, 36px); }
.calculator-inputs label { display: grid; gap: 7px; color: var(--ink); font-size: 0.78rem; font-weight: 700; }
.calculator-inputs input { width: 100%; min-height: 48px; padding: 10px 12px; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); font: inherit; font-size: 1rem; font-weight: 500; }
.calculator-inputs input:focus { outline: 2px solid var(--mineral); outline-offset: 2px; }
.calculator-results { display: grid; grid-template-columns: repeat(2, 1fr); background: var(--forest); color: var(--white); }
.calculator-results article { display: grid; min-height: 155px; align-content: center; padding: 24px 30px; border-right: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); }
.calculator-results span { color: #BFD7C9; font-size: 0.72rem; font-weight: 700; }
.calculator-results strong { margin: 8px 0 2px; font-family: var(--sans); font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; letter-spacing: -0.05em; }
.calculator-results small { color: rgba(255,255,255,.65); font-size: 0.7rem; }
.calculator-results .result-highlight { background: #285C43; }
.calculator-warning { margin: -18px 0 46px; padding: 18px 20px; background: #FFF1EC; border-left: 4px solid var(--signal); color: #5B2B1E; font-size: 0.88rem; line-height: 1.6; }

@media (min-width: 861px) {
  .content-page footer .footer-cols { grid-template-columns: repeat(3, minmax(0, 190px)); }
}

@media (max-width: 820px) {
  .resource-grid,
  .home-resource-grid,
  .tool-index-grid,
  .service-resource-grid { grid-template-columns: 1fr; }
  .resource-card { min-height: 240px; }
}

@media (max-width: 640px) {
  .content-hero { padding-top: 112px; }
  .comparison-grid,
  .calculator-inputs,
  .calculator-results { grid-template-columns: 1fr; }
  .calculator-results article { min-height: 132px; border-right: 0; }
  .answer-table { min-width: 620px; }
  .content-cta { align-items: stretch; }
  .content-cta .btn-solid { width: 100%; }
}
