:root {
  color-scheme: light;
  --ink: #182a34;
  --muted: #526773;
  --teal: #12645d;
  --teal-dark: #0c4a46;
  --teal-soft: #e1f0ed;
  --lime: #d9ef72;
  --paper: #ffffff;
  --canvas: #f3f7f8;
  --line: #d5e1e5;
  --warning: #8b4b25;
  --warning-bg: #fff3e5;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; background: var(--canvas); color: var(--ink); line-height: 1.65; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #9aaf34; outline-offset: 3px; }
.skip-link { position: absolute; top: -60px; left: 16px; z-index: 100; padding: 9px 13px; border-radius: 0 0 8px 8px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 0; }
.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); }
.header-inner { max-width: 1200px; min-height: 72px; margin: 0 auto; padding: 10px 26px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 16px; font-weight: 850; letter-spacing: -.03em; text-decoration: none; white-space: nowrap; }
.brand-mark { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; background: var(--teal); color: var(--lime); font-size: 12px; font-weight: 900; }
.primary-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.primary-nav a { color: #405760; font-size: 13px; font-weight: 700; text-decoration: none; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--teal-dark); }
.header-action, .button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 15px; border: 1px solid var(--teal); border-radius: 8px; background: var(--teal); color: #fff; font-size: 13px; font-weight: 800; text-decoration: none; cursor: pointer; }
.header-action:hover, .button:hover { background: var(--teal-dark); color: #fff; }
.button-secondary { border-color: var(--line); background: #fff; color: var(--ink); }
.button-secondary:hover { background: var(--teal-soft); color: var(--ink); }
.menu-toggle { display: none; }
main { display: block; }
.hero { max-width: 1200px; min-height: 520px; margin: 0 auto; padding: 68px 26px 72px; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(390px, .98fr); gap: clamp(36px, 6vw, 78px); align-items: center; }
.eyebrow { display: inline-block; margin: 0 0 12px; color: var(--teal); font-size: 11px; font-weight: 900; letter-spacing: .14em; line-height: 1.4; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); line-height: 1.16; }
h1 { max-width: 680px; margin-bottom: 18px; font-size: clamp(42px, 5.7vw, 68px); font-weight: 820; letter-spacing: -.055em; }
h2 { margin-bottom: 13px; font-size: clamp(27px, 3.1vw, 39px); font-weight: 780; letter-spacing: -.035em; }
h3 { margin-bottom: 8px; font-size: 17px; font-weight: 780; letter-spacing: -.02em; }
.hero-lede, .page-lede { max-width: 630px; color: #4c626d; font-size: clamp(17px, 2vw, 20px); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 24px; }
.hero-footnote { max-width: 560px; margin: 20px 0 0; color: var(--muted); font-size: 12px; }
.quick-tools { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: 0 18px 46px rgba(21,52,64,.08); }
.quick-tools-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.quick-tools-head .eyebrow { margin-bottom: 5px; }
.quick-tools-head h2 { margin: 0; font-size: 24px; }
.tool-count { padding: 4px 8px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-dark); font-size: 10px; font-weight: 850; white-space: nowrap; }
.quick-tool-grid, .tool-grid, .guide-grid, .feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.quick-tool, .tool-card, .guide-card, .feature-card { display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); color: var(--ink); text-decoration: none; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.quick-tool { min-height: 74px; flex-direction: row; align-items: center; gap: 10px; padding: 10px; }
.quick-tool:hover, .tool-card:hover, .guide-card:hover { transform: translateY(-2px); border-color: #9abdb8; box-shadow: 0 10px 26px rgba(21,52,64,.08); color: var(--ink); }
.tool-number { width: 29px; height: 29px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; background: var(--teal-soft); color: var(--teal-dark); font-size: 10px; font-weight: 900; }
.quick-tool-label { min-width: 0; display: block; }
.quick-tool-label strong, .quick-tool-label small { display: block; }
.quick-tool-label strong { font-size: 12px; line-height: 1.35; }
.quick-tool-label small { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.quick-arrow { margin-left: auto; color: var(--teal); font-size: 15px; }
.quick-tools-note { margin: 14px 0 0; color: var(--muted); font-size: 11px; }
.section { padding: 70px max(26px, calc((100vw - 1148px) / 2)); }
.section-soft { background: #eaf1f2; }
.section-dark { background: #1b3039; color: #e7f0f2; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: #c4d4d8; }
.section-heading { max-width: 1148px; margin: 0 auto 26px; display: flex; align-items: end; justify-content: space-between; gap: 34px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { max-width: 460px; margin-bottom: 2px; color: var(--muted); font-size: 14px; }
.section-dark .section-heading > p { color: #c4d4d8; }
.feature-grid { max-width: 1148px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.feature-card { min-height: 170px; padding: 20px; }
.feature-card p, .tool-card p, .guide-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.feature-mark { margin-bottom: 14px; color: var(--teal); font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.tool-grid { max-width: 1148px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tool-card, .guide-card { min-height: 190px; padding: 20px; }
.tool-card h2, .guide-card h2 { margin: 14px 0 8px; font-size: 19px; letter-spacing: -.025em; }
.tool-card p, .guide-card p { margin-bottom: 16px; }
.card-link { margin-top: auto; color: var(--teal); font-size: 12px; font-weight: 850; }
.guide-grid { max-width: 1148px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.guide-card { min-height: 165px; }
.page-hero { padding: 50px 26px 38px; border-bottom: 1px solid var(--line); background: linear-gradient(120deg, #eaf3f3, #f7faf8 72%); }
.page-hero-inner { max-width: 1148px; margin: 0 auto; }
.page-hero h1 { max-width: 860px; font-size: clamp(38px, 5vw, 58px); }
.page-hero .page-lede { margin-bottom: 0; font-size: 17px; }
.content-section { padding: 48px 26px 74px; }
.article { max-width: 820px; margin: 0 auto; }
.article h2 { margin: 34px 0 12px; font-size: 25px; }
.article h3 { margin: 24px 0 9px; }
.article p, .article li { color: #384f59; font-size: 15px; line-height: 1.8; }
.article ul, .article ol { padding-left: 22px; }
.article li + li { margin-top: 7px; }
.article .source-list { padding-left: 19px; }
.article .source-list li { margin-top: 9px; font-size: 13px; overflow-wrap: anywhere; }
.callout, .warning, .privacy-note { margin: 20px 0; padding: 15px 17px; border: 1px solid #b9d8d2; border-radius: 10px; background: #f1faf8; color: #274e49; font-size: 13px; line-height: 1.65; }
.warning { border-color: #f0d2af; background: var(--warning-bg); color: var(--warning); }
.privacy-note { margin: 17px 0 0; padding: 11px 13px; font-size: 12px; }
.tool-layout { max-width: 1148px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(250px, .6fr); gap: 22px; align-items: start; }
.tool-panel, .side-panel, .faq-panel { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.tool-panel h2, .side-panel h2 { margin-bottom: 8px; font-size: 22px; }
.side-panel { background: #f9fbfa; }
.side-panel p, .side-panel li { color: var(--muted); font-size: 13px; line-height: 1.65; }
.side-panel ul { padding-left: 19px; }
.side-panel li + li { margin-top: 6px; }
.field { display: grid; gap: 6px; margin: 13px 0; }
.field label, .field-label { color: #314954; font-size: 12px; font-weight: 850; }
.field small, .help-text { color: var(--muted); font-size: 11px; line-height: 1.5; }
input[type="text"], input[type="url"], input[type="password"], textarea, select { width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid #bccbd0; border-radius: 8px; background: #fff; color: var(--ink); font-size: 14px; }
textarea { min-height: 130px; resize: vertical; }
.inline-fields { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.inline-fields .field { margin: 0; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 14px; }
.check-row { display: flex; align-items: center; gap: 8px; margin: 10px 0; color: #405760; font-size: 12px; }
.check-row input { width: 17px; height: 17px; accent-color: var(--teal); }
.meter { width: 100%; height: 10px; margin: 12px 0 4px; accent-color: var(--teal); }
.check-list { display: grid; gap: 7px; margin: 14px 0 0; padding: 0; list-style: none; }
.check-list li { display: flex; align-items: start; gap: 8px; color: var(--muted); font-size: 12px; }
.check-list li::before { content: "○"; color: #82949b; font-weight: 900; }
.check-list li[data-ok="true"]::before { content: "✓"; color: var(--teal); }
.result { min-height: 30px; margin: 15px 0 0; padding: 10px 12px; border-radius: 8px; background: #edf3f4; color: #304851; font-size: 12px; overflow-wrap: anywhere; }
.result[aria-live] { line-height: 1.6; }
.result-error { background: #fff1ed; color: #873d28; }
.result-success { background: #e8f6ee; color: #23593d; }
.result-grid { width: 100%; margin-top: 12px; border-collapse: collapse; font-size: 12px; }
.result-grid th, .result-grid td { padding: 9px 8px; border-bottom: 1px solid #e4eaec; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.result-grid th { color: var(--muted); font-size: 10px; letter-spacing: .07em; text-transform: uppercase; }
.faq-panel { max-width: 850px; margin: 0 auto; }
.faq-panel details { border-top: 1px solid #e2e9eb; }
.faq-panel summary { padding: 14px 24px 14px 0; color: var(--ink); font-size: 14px; font-weight: 780; cursor: pointer; }
.faq-panel details p { margin: 0 0 15px; color: var(--muted); font-size: 13px; }
.breadcrumb { max-width: 1148px; margin: 0 auto; padding: 19px 26px 0; color: var(--muted); font-size: 11px; }
.breadcrumb a { text-decoration: none; }
.site-footer { padding: 45px 26px 19px; border-top: 1px solid var(--line); background: #fff; }
.footer-inner { max-width: 1148px; margin: 0 auto; display: grid; grid-template-columns: 1.55fr 1fr 1fr 1fr; gap: 28px; }
.footer-brand p { max-width: 290px; margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.footer-links strong { margin-bottom: 3px; color: var(--ink); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.footer-links a { color: #4c626d; font-size: 11px; text-decoration: none; }
.footer-links a:hover { color: var(--teal-dark); text-decoration: underline; }
.footer-bottom { max-width: 1148px; margin: 29px auto 0; padding-top: 13px; border-top: 1px solid #e0e7e9; display: flex; justify-content: space-between; gap: 16px; color: #6d7e85; font-size: 10px; }
.subtle { color: var(--muted); font-size: 12px; }
@media (max-width: 900px) {
  .header-inner { gap: 16px; }
  .primary-nav { gap: 13px; }
  .hero { grid-template-columns: 1fr minmax(310px, .9fr); gap: 26px; }
  .quick-tools { padding: 17px; }
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-links:last-child { grid-column: 2; }
}
@media (max-width: 700px) {
  .header-inner { min-height: 66px; padding: 9px 18px; flex-wrap: wrap; }
  .menu-toggle { display: inline-flex; min-height: 37px; margin-left: auto; align-items: center; padding: 0 11px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 800; }
  .header-action { display: none; }
  .primary-nav { display: none; width: 100%; order: 3; margin: 0; padding: 7px 0 12px; flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 10px 3px; border-top: 1px solid #e8edef; }
  .hero { min-height: 0; padding: 48px 20px 54px; grid-template-columns: 1fr; gap: 25px; }
  h1 { font-size: clamp(40px, 11vw, 57px); }
  .quick-tools { max-width: 560px; margin: 0 auto; }
  .section { padding: 52px 20px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 12px; }
  .feature-grid { grid-template-columns: 1fr; }
  .tool-grid, .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-layout { grid-template-columns: 1fr; }
  .side-panel { order: 2; }
  .page-hero { padding: 40px 20px 31px; }
  .content-section { padding: 34px 20px 55px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 23px 17px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-links:last-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 5px; }
}
@media (max-width: 430px) {
  .quick-tool-grid, .tool-grid, .guide-grid { grid-template-columns: 1fr; }
  .quick-tool { min-height: 65px; }
  .inline-fields { grid-template-columns: 1fr; }
  .tool-panel, .side-panel, .faq-panel { padding: 17px; }
}

/* Long-form and blog additions */
.article-meta { margin: 13px 0 0; color: var(--muted); font-size: 12px; }
.article-meta a { color: var(--teal); font-weight: 700; text-decoration: none; }
.quick-answer { margin: 0 0 24px; padding: 17px 18px; border: 1px solid #b9d8d2; border-radius: 11px; background: #f1faf8; color: #274e49; font-size: 14px; line-height: 1.75; }
.quick-answer strong { display: block; margin-bottom: 6px; color: var(--teal-dark); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.quick-answer p { margin: 0; color: #274e49; font-size: 14px; }
.article table { width: 100%; margin: 18px 0; border-collapse: collapse; font-size: 13px; }
.article th, .article td { padding: 9px 10px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.article th { background: #edf4f4; font-size: 12px; }
.article td { color: #384f59; }
.article code { padding: 2px 5px; border-radius: 4px; background: #eaf1f2; color: #214a45; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; overflow-wrap: anywhere; }
.article-faq { display: grid; gap: 8px; margin-top: 14px; }
.article-faq details { border: 1px solid var(--line); border-radius: 9px; background: #fbfcfc; }
.article-faq summary { padding: 12px 14px; color: var(--ink); font-size: 13px; font-weight: 750; cursor: pointer; }
.article-faq p { margin: 0; padding: 0 14px 13px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.author-box { display: flex; align-items: flex-start; gap: 13px; margin-top: 32px; padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: #f9fbfa; }
.author-mark { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border-radius: 10px; background: var(--teal); color: var(--lime); font-size: 12px; font-weight: 900; }
.author-box strong { display: block; font-size: 13px; }
.author-box p { margin: 5px 0 6px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.author-box a { color: var(--teal); font-size: 12px; font-weight: 750; text-decoration: none; }
.related-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.related-pill { padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font-size: 11px; font-weight: 700; text-decoration: none; }
.related-pill:hover { border-color: #9abdb8; color: var(--teal-dark); }
.blog-meta { margin: 0 0 7px; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.category-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.category-pill { display: inline-flex; min-height: 33px; align-items: center; padding: 0 11px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font-size: 11px; font-weight: 700; text-decoration: none; }
.category-pill:hover { border-color: #9abdb8; color: var(--teal-dark); }
.category-pill[aria-current="page"] { border-color: var(--teal); background: var(--teal-soft); color: var(--teal-dark); }
@media (max-width: 700px) {
  .article table { display: block; overflow-x: auto; }
  .author-box { display: block; }
  .author-mark { margin-bottom: 9px; }
}
