/* site.css — page chrome and content sections for the homepage and the
   conversion landing pages. The converter widget itself is styled in style.css.
   Colour tokens (--bg, --fg, --accent, --border, --row-bg, --radius…) are
   declared in style.css and available globally. */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  background: var(--accent-dim);
  color: #fff;
  padding: 0.5rem 0.9rem;
  border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* ── Site header / footer ─────────────────────────────────────────────────── */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

.brand {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-decoration: none;
}

.site-nav a { font-size: 0.9rem; color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--fg); }

.site-footer {
  max-width: 960px;
  margin: 4rem auto 0;
  padding: 2rem 1.25rem 3rem;
  border-top: 1px solid var(--border);
}
.footer-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  margin-bottom: 1rem;
}
.footer-tools a { font-size: 0.85rem; color: var(--muted); text-decoration: none; }
.footer-tools a:hover { color: var(--accent); }
.footer-note { font-size: 0.82rem; color: var(--muted); margin: 0; max-width: 42rem; }

/* ── Page wrapper + hero ──────────────────────────────────────────────────── */

.page { max-width: 960px; margin: 0 auto; padding: 0 1.25rem; }

.hero { text-align: center; padding: 1.5rem 0 0.5rem; }
.hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
}
.lede {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--muted);
  max-width: 42rem;
  margin: 0 auto;
}

/* ── Prose / content ──────────────────────────────────────────────────────── */

.prose { max-width: 720px; margin: 3rem auto 0; }
.prose section { margin-bottom: 2.25rem; }
.prose h2 { font-size: 1.3rem; letter-spacing: -0.01em; margin: 0 0 0.6rem; }
.prose p { color: var(--fg); margin: 0 0 0.8rem; }

.howto { padding-left: 1.2rem; margin: 0; }
.howto li { margin-bottom: 0.5rem; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--row-bg);
  padding: 0.75rem 1rem;
  margin-bottom: 0.6rem;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--muted); float: right; }
.faq-item[open] summary::after { content: "\2013"; }
.faq-item p { margin: 0.7rem 0 0; color: var(--muted); }

/* ── Related conversions grid ─────────────────────────────────────────────── */

.related { max-width: 960px; margin: 3rem auto 0; }
.related h2 { font-size: 1.3rem; margin: 0 0 1rem; text-align: center; }

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.6rem;
}
.tool-card {
  display: block;
  text-align: center;
  background: var(--row-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem 0.6rem;
  color: var(--fg);
  text-decoration: none;
  font-size: 0.9rem;
  transition: border-color 0.12s, background 0.12s;
}
.tool-card:hover { border-color: var(--accent); background: var(--btn-hover); }
