/* Boat Lift Lab: mobile-first, system fonts, no external requests. */
:root {
  --navy: #0b3954;
  --navy-2: #12507a;
  --teal: #0b6e77;
  --teal-l: #e3f3f5;
  --sun: #f6d365;
  --ink: #1b2430;
  --ink-2: #445163;
  --line: #d9e0e7;
  --bg: #fbfaf7;
  --card: #ffffff;
  --warn-bg: #fff4e5;
  --warn: #9a4b00;
  --tip-bg: #eaf7ee;
  --tip: #1d6b35;
  --note-bg: #eef4fb;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(11, 57, 84, .06), 0 4px 14px rgba(11, 57, 84, .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--bg); }
img, svg { max-width: 100%; height: auto; }
a { color: var(--navy-2); text-underline-offset: 2px; }
a:hover { color: var(--teal); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 18px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
.small { font-size: .9rem; color: var(--ink-2); }
h1, h2, h3 { line-height: 1.22; color: var(--navy); letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.6rem); margin: .2em 0 .4em; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); margin: 1.8em 0 .5em; }
h3 { font-size: 1.18rem; margin: 1.5em 0 .4em; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--navy); font-size: 1.15rem; font-weight: 600; margin-right: auto; }
.logo b { color: var(--teal); }
.top-quick { display: flex; align-items: center; gap: 4px; }
.top-quick a { text-decoration: none; color: var(--ink); font-weight: 500; padding: 8px 10px; border-radius: 8px; font-size: .95rem; display: none; }
.top-quick a.search-link { display: inline-flex; align-items: center; gap: 6px; }
.top-quick a:hover { background: var(--teal-l); }
.sr-only-sm { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.menu { position: static; }
.menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; color: var(--navy); min-height: 44px; }
.menu summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 18px; height: 2px; background: var(--navy); border-radius: 2px; position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -6px; } .burger::after { top: 6px; }
.menu[open] .burger { background: transparent; }
.menu[open] .burger::before { top: 0; transform: rotate(45deg); }
.menu[open] .burger::after { top: 0; transform: rotate(-45deg); }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); max-height: calc(100vh - 60px); overflow: auto; }
.menu-panel ul { list-style: none; margin: 0 auto; padding: 10px 18px 16px; max-width: 1180px; display: grid; grid-template-columns: 1fr; gap: 2px; }
.menu-panel a { display: block; padding: 11px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 500; }
.menu-panel a:hover, .menu-panel a[aria-current] { background: var(--teal-l); color: var(--navy); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border-radius: 10px; text-decoration: none; font-weight: 600; border: 2px solid transparent; font-size: 1rem; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--teal); color: #fff; }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: #fff; }
.btn-ghost:hover { background: var(--teal-l); }

/* hero / home */
.hero { background: linear-gradient(180deg, #eaf5f7 0%, var(--bg) 100%); padding: 28px 0 18px; }
.hero-grid { display: grid; gap: 22px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--teal); margin: 0; }
.lede { font-size: 1.12rem; color: var(--ink-2); max-width: 62ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero-card { display: none; background: #fff; border-radius: 18px; padding: 14px; box-shadow: var(--shadow); max-width: 440px; }
.section-lede { color: var(--ink-2); margin-top: -.2em; max-width: 70ch; }
.tiles, .sections-grid, .cards, .tool-list, .guide-list, .chips, .trust-list { list-style: none; margin: 0; padding: 0; }
.tiles { display: grid; gap: 10px; grid-template-columns: 1fr; }
.tiles a, .sections-grid a, .cards a, .tool-list a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.tiles a:hover, .sections-grid a:hover, .cards a:hover, .tool-list a:hover { border-color: var(--teal); box-shadow: var(--shadow); color: var(--ink); }
.tile-title, .sec-title, .card-title, .tool-name, .list-title { font-weight: 650; color: var(--navy); font-size: 1.06rem; line-height: 1.3; }
.tile-text, .sec-text, .card-text, .tool-text, .list-text { color: var(--ink-2); font-size: .95rem; }
.tools-band { background: var(--navy); color: #e8f1f6; border-radius: 18px; padding: 6px 18px 22px; margin: 34px 0; }
.tools-band h2 { color: #fff; }
.tools-band .section-lede { color: #c9dbe6; }
.tool-list { display: grid; gap: 10px; }
.tool-list a { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); color: #fff; }
.tool-list a:hover { background: rgba(255, 255, 255, .12); border-color: var(--sun); color: #fff; }
.tool-list .tool-name { color: var(--sun); }
.tool-list .tool-text { color: #d5e3ec; }
.sections-grid { display: grid; gap: 10px; }
.cards { display: grid; gap: 12px; }
.card-kicker { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--teal); font-weight: 700; }
.trust { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 4px 20px 18px; margin: 40px 0 10px; }
.trust-list { display: grid; gap: 10px; }
.trust-list li { padding-left: 26px; position: relative; }
.trust-list li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 12px; height: 7px; border-left: 3px solid var(--teal); border-bottom: 3px solid var(--teal); transform: rotate(-45deg); }

/* breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 14px 0 0; margin: 0; font-size: .88rem; color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin-right: 4px; color: #9aa7b4; }
.crumbs a { color: var(--ink-2); }

/* article */
.article { max-width: 760px; }
.article-head .kicker { margin: 10px 0 0; font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.article-head .kicker a { color: var(--teal); text-decoration: none; }
.byline { color: var(--ink-2); font-size: .92rem; margin: 0 0 14px; }
.answer { background: var(--teal-l); border-left: 5px solid var(--teal); padding: 12px 18px; border-radius: 0 var(--radius) var(--radius) 0; margin: 14px 0 18px; }
.answer-h { margin: 0; font-weight: 700; color: var(--teal); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.answer p:last-child { margin: 4px 0 0; font-size: 1.07rem; }
.toc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 16px; margin: 16px 0; }
.toc summary { font-weight: 700; cursor: pointer; color: var(--navy); min-height: 32px; display: flex; align-items: center; }
.toc ol { margin: 6px 0 4px; padding-left: 20px; font-size: .96rem; }
.toc li { margin: 3px 0; }
.prose { max-width: 72ch; }
.prose p, .prose li { overflow-wrap: break-word; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.prose table, .calc-table { width: 100%; border-collapse: collapse; font-size: .95rem; background: #fff; }
.prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 10px; margin: 1.2em 0; }
.prose table caption { text-align: left; font-weight: 600; padding: 10px 12px; color: var(--navy); }
.prose th, .prose td, .calc-table th, .calc-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose thead th { background: #f1f5f8; color: var(--navy); font-weight: 650; white-space: nowrap; }
.prose tbody tr:last-child td, .prose tbody tr:last-child th { border-bottom: 0; }
.callout { border-radius: var(--radius); padding: 12px 16px; margin: 1.3em 0; border: 1px solid transparent; }
.callout p { margin: .3em 0; }
.callout.tip { background: var(--tip-bg); border-color: #bfe3c9; }
.callout.tip strong:first-child { color: var(--tip); }
.callout.warn { background: var(--warn-bg); border-color: #f2cf9c; }
.callout.warn strong:first-child { color: var(--warn); }
.callout.note { background: var(--note-bg); border-color: #c8d9ee; }
.example { background: #fff; border: 1px dashed var(--teal); border-radius: var(--radius); padding: 4px 18px 12px; margin: 1.4em 0; }
.example h3 { margin-top: .8em; color: var(--teal); }
.keyfacts { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 18px; margin: 1.2em 0; }
.keyfacts ul { list-style: none; padding: 0; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin: 8px 0; padding: 0 16px; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy); padding: 13px 0; min-height: 44px; }
.faq details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.sources { font-size: .93rem; color: var(--ink-2); border-top: 1px solid var(--line); margin-top: 2.2em; }
.sources h2 { font-size: 1.15rem; }
.article-foot { margin: 28px 0 10px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); font-size: .93rem; color: var(--ink-2); max-width: 72ch; }
.article-foot p { margin: 0; }
.related { margin: 34px 0 10px; }
.more-in { margin: 26px 0 40px; padding: 4px 18px 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.more-h { font-weight: 700; color: var(--navy); }
.more-in ul { columns: 1; padding-left: 1.1em; font-size: .96rem; }
.more-in li { margin: 4px 0; break-inside: avoid; }

/* hub */
.hub-head { max-width: 780px; }
.hub-intro { color: var(--ink); }
.guide-list { display: grid; gap: 8px; }
.guide-list a { display: flex; flex-direction: column; gap: 2px; padding: 13px 16px; background: #fff; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); }
.guide-list a:hover { border-color: var(--teal); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-block; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--navy); font-size: .93rem; }
.chips a:hover { border-color: var(--teal); }
.other-sections { margin: 40px 0; }

/* tools */
.tool { background: #fff; border: 2px solid var(--navy); border-radius: 16px; padding: 4px 16px 18px; margin: 18px 0 26px; }
.tool-h { margin-top: .7em; }
.tool fieldset { border: 0; padding: 0; margin: 0 0 14px; }
.tool legend { font-weight: 700; color: var(--teal); margin-bottom: 6px; text-transform: uppercase; font-size: .82rem; letter-spacing: .06em; }
.field { margin: 0 0 12px; display: flex; flex-direction: column; gap: 4px; }
.field label { font-weight: 600; font-size: .96rem; }
.field.check { flex-direction: row; align-items: center; gap: 10px; }
.field.check input { width: 22px; height: 22px; }
.input-unit { display: flex; align-items: stretch; }
input[type=number], input[type=search], select { font: inherit; font-size: 1rem; padding: 10px 12px; min-height: 46px; border: 1px solid #b8c4cf; border-radius: 8px; background: #fff; color: var(--ink); width: 100%; }
.input-unit input { border-radius: 8px 0 0 8px; }
.unit { display: flex; align-items: center; padding: 0 12px; background: #f1f5f8; border: 1px solid #b8c4cf; border-left: 0; border-radius: 0 8px 8px 0; color: var(--ink-2); font-size: .92rem; white-space: nowrap; }
.input-unit input:only-child { border-radius: 8px; }
.hint { font-size: .86rem; color: var(--ink-2); }
.tool-out { background: var(--teal-l); border-radius: 12px; padding: 4px 16px 10px; }
.result-label { margin: 10px 0 0; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--teal); }
.result-big { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); font-weight: 750; color: var(--navy); margin: 2px 0 6px; line-height: 1.2; }
.calc-table { margin: 10px 0; border-radius: 8px; overflow: hidden; }
.calc-table th { font-weight: 500; }
.calc-table td { text-align: right; white-space: nowrap; }
.calc-table tr.total th, .calc-table tr.total td { font-weight: 750; color: var(--navy); background: #f6fafc; }
.pass, .fail, .badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-left: 4px; vertical-align: middle; }
.pass { background: #d7f0de; color: #17592b; } .fail { background: #fde0dc; color: #8f1d12; }
.badge { background: var(--sun); color: var(--navy); margin: 0 4px 0 0; }
.quiz-q { margin-bottom: 16px !important; }
.quiz-q legend { text-transform: none !important; letter-spacing: 0 !important; font-size: 1rem !important; color: var(--navy) !important; }
.opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; margin: 6px 0; cursor: pointer; font-weight: 400; }
.opt:has(input:checked) { border-color: var(--teal); background: var(--teal-l); }
.opt input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; }
.finder-results { padding-left: 1.2em; }
.finder-name { font-weight: 700; margin: 10px 0 2px; font-size: 1.08rem; }
.tool-note { margin: 12px 0 0; }

/* search */
.search-form label { font-weight: 600; display: block; margin-bottom: 6px; }
.search-row { display: flex; gap: 8px; }
.search-row input { flex: 1; }
.sitemap-page ul { columns: 1; }

/* footer */
.site-footer { background: var(--navy); color: #cfe0ea; margin-top: 50px; padding: 34px 0 10px; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 24px; }
.footer-logo { font-size: 1.3rem; color: #fff; margin: 0 0 6px; font-weight: 600; }
.footer-logo b { color: var(--sun); }
.footer-h { color: var(--sun); font-weight: 700; margin: 0 0 6px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 4px 0; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 24px; padding-top: 12px; font-size: .85rem; }

/* contact form */
.contact-form .field input, .contact-form .field textarea { font: inherit; padding: 10px 12px; border: 1px solid #b8c4cf; border-radius: 8px; width: 100%; min-height: 46px; }
.contact-form textarea { min-height: 160px; }
.hp { position: absolute; left: -5000px; }

@media (min-width: 640px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .sections-grid { grid-template-columns: 1fr 1fr; }
  .tool-list { grid-template-columns: 1fr 1fr; }
  .menu-panel ul { grid-template-columns: 1fr 1fr; }
  .more-in ul, .sitemap-page ul { columns: 2; column-gap: 28px; }
  .tool-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
  .tool-form .quiz-q { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .top-quick a { display: inline-block; }
  .hero-card { display: block; }
  .sr-only-sm { position: static; width: auto; height: auto; clip: auto; }
}
@media (min-width: 960px) {
  body { font-size: 1.09rem; }
  .hero { padding: 54px 0 30px; }
  .hero-grid { grid-template-columns: 1.35fr 1fr; align-items: center; gap: 40px; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .sections-grid { grid-template-columns: repeat(3, 1fr); }
  .tool-list { grid-template-columns: repeat(3, 1fr); }
  .menu-panel ul { grid-template-columns: repeat(3, 1fr); }
  .article-wrap { display: block; }
  .tools-band { padding: 10px 34px 30px; }
}
/* sidebar */
.sidebar { display: none; }
@media (min-width: 1080px) {
  .article-grid { display: grid; grid-template-columns: minmax(0, 760px) 290px; gap: 56px; align-items: start; }
  .article-grid .toc { display: none; }
  .sidebar { display: block; position: sticky; top: 76px; max-height: calc(100vh - 90px); overflow: auto; padding-top: 18px; }
  .side-h { font-weight: 700; color: var(--navy); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 6px; }
  .side-toc, .side-tools { list-style: none; padding: 0; margin: 0 0 22px; font-size: .92rem; border-left: 2px solid var(--line); }
  .side-toc a, .side-tools a { display: block; padding: 4px 0 4px 12px; text-decoration: none; color: var(--ink-2); line-height: 1.35; }
  .side-toc a:hover, .side-tools a:hover { color: var(--teal); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .related, .more-in, .toc, .tool-form { display: none; } }
