/* ==========================================================================
   LakeMotorCheck — water-navigation-sign design system.
   Mobile-first, no frameworks, Core Web Vitals friendly.
   Buoy palette: red=no motors, orange=electric-only, amber=hp limit,
   blue=no-wake, violet=zoned, green=state default.
   ========================================================================== */

:root {
    --navy: #0b3954;
    --navy-deep: #072a40;
    --teal: #0e7c86;
    --foam: #eaf3f6;
    --ink: #1f2d3d;
    --ink-soft: #52616f;
    --line: #d7e1e8;
    --bg: #f6f9fa;
    --card: #ffffff;
    --red: #c92a2a;
    --orange: #e8590c;
    --amber: #b07d02;
    --blue: #1971c2;
    --violet: #6741d9;
    --green: #2b8a3e;
    --radius: 10px;
    --shadow: 0 1px 3px rgba(11, 57, 84, .08), 0 4px 14px rgba(11, 57, 84, .06);
    --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--teal); text-underline-offset: 2px; }
a:hover { color: var(--navy); }

h1, h2, h3 { line-height: 1.25; color: var(--navy); font-weight: 700; }
h1 { font-size: clamp(1.55rem, 4.5vw, 2.1rem); margin: .4em 0 .35em; }
h2 { font-size: clamp(1.25rem, 3.5vw, 1.45rem); margin: 1.6em 0 .5em; }
h3 { font-size: 1.1rem; margin: 1.2em 0 .35em; }

p { margin: .7em 0; }
ul, ol { padding-left: 1.4em; }

code { font-family: var(--mono); font-size: .9em; background: var(--foam); padding: .1em .35em; border-radius: 4px; }

.icon { width: 1.35em; height: 1.35em; vertical-align: -0.28em; }
.icon--inline { width: 1em; height: 1em; vertical-align: -0.12em; }

.visually-hidden {
    position: absolute; width: 1px; height: 1px; margin: -1px;
    clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 100;
    background: var(--navy); color: #fff; padding: .6em 1em; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header { background: var(--navy); color: #fff; }
.site-header__inner {
    max-width: 1200px; margin: 0 auto; padding: .65rem 1rem;
    display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem;
}
.brand { display: flex; align-items: center; gap: .5rem; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: .01em; }
.brand:hover { color: #cdeaef; }
.brand__mark { display: inline-flex; color: #f9a03f; }
.brand__mark .icon { width: 1.7em; height: 1.7em; }

.site-nav { display: flex; flex-wrap: wrap; gap: .2rem .4rem; margin-inline: auto; }
.site-nav a {
    color: #dcebf1; text-decoration: none; padding: .35em .6em; border-radius: 6px; font-size: .95rem;
}
.site-nav a:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.header-search { display: flex; gap: 0; }
.header-search input {
    border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.12); color: #fff;
    border-radius: 8px 0 0 8px; padding: .45em .7em; font-size: .95rem; width: 11.5rem; min-width: 0;
}
.header-search input::placeholder { color: #b8cfd9; }
.header-search button {
    border: 1px solid rgba(255,255,255,.35); border-left: 0; background: rgba(255,255,255,.18);
    color: #fff; border-radius: 0 8px 8px 0; padding: .35em .6em; cursor: pointer;
}
.header-search button:hover { background: rgba(255,255,255,.3); }

/* --------------------------------------------------------------------------
   Page shell / sidebar
   -------------------------------------------------------------------------- */
.page { max-width: 1200px; margin: 0 auto; padding: 0 1rem 2.5rem; }
.main { max-width: 860px; margin: 0 auto; min-width: 0; }

@media (min-width: 1020px) {
    .page--with-sidebar { display: grid; grid-template-columns: minmax(0, 860px) 300px; gap: 2rem; justify-content: center; }
    .page--with-sidebar .main { margin: 0; }
    .sidebar { padding-top: 2.2rem; }
}
@media (max-width: 1019.98px) {
    .sidebar { display: none; }
}

/* --------------------------------------------------------------------------
   Breadcrumbs
   -------------------------------------------------------------------------- */
.breadcrumbs { font-size: .87rem; margin-top: 1rem; color: var(--ink-soft); }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .1em; }
.breadcrumbs li + li::before { content: "›"; margin: 0 .45em; color: #9db2bd; }
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs [aria-current] { color: var(--navy); font-weight: 600; }

.page-sub { color: var(--ink-soft); margin-top: -.2em; font-size: .97rem; }

/* --------------------------------------------------------------------------
   Buoy badges
   -------------------------------------------------------------------------- */
.badge {
    display: inline-flex; align-items: center; gap: .3em;
    font-size: .8rem; font-weight: 700; letter-spacing: .02em;
    padding: .22em .65em; border-radius: 999px; white-space: nowrap;
    color: #fff; background: var(--ink-soft);
}
.badge--red    { background: var(--red); }
.badge--orange { background: var(--orange); }
.badge--amber  { background: var(--amber); }
.badge--blue   { background: var(--blue); }
.badge--violet { background: var(--violet); }
.badge--green  { background: var(--green); }
.badge--lg { font-size: .95rem; padding: .3em .85em; }
.badge__num { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 800; }

.dot { display: inline-block; width: .6em; height: .6em; border-radius: 50%; margin: 0 .25em 0 .5em; }
.dot--red { background: var(--red); } .dot--orange { background: var(--orange); } .dot--amber { background: var(--amber); }

/* --------------------------------------------------------------------------
   Verdict card (lake pages) — visible above the fold on mobile
   -------------------------------------------------------------------------- */
.verdict-card {
    background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--ink-soft);
    border-radius: var(--radius); box-shadow: var(--shadow);
    padding: .8rem 1rem; margin: 1rem 0 1.2rem;
}
.verdict-card--red    { border-left-color: var(--red); }
.verdict-card--orange { border-left-color: var(--orange); }
.verdict-card--amber  { border-left-color: var(--amber); }
.verdict-card--blue   { border-left-color: var(--blue); }
.verdict-card--violet { border-left-color: var(--violet); }
.verdict-card--green  { border-left-color: var(--green); }

.verdict-card__class { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-bottom: .5rem; }
.verdict-card__verified { font-size: .85rem; color: var(--ink-soft); }

.verdict-card__flags { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
@media (min-width: 560px) { .verdict-card__flags { grid-template-columns: repeat(3, 1fr); } }

.flag { display: flex; align-items: center; gap: .45em; padding: .35em .5em; border-radius: 8px; background: var(--foam); font-size: .95rem; }
.flag__icon { display: inline-flex; color: var(--navy); }
.flag__label { color: var(--ink-soft); }
.flag__value { font-weight: 800; font-family: var(--mono); font-size: .9em; margin-left: auto; display: inline-flex; align-items: center; gap: .25em; }
.flag--yes .flag__value { color: var(--green); }
.flag--no .flag__value { color: var(--red); }
.flag--zoned .flag__value { color: var(--violet); }
.flag--unknown .flag__value { color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   Quick answer
   -------------------------------------------------------------------------- */
.quick-answer {
    background: linear-gradient(180deg, #ffffff, var(--foam));
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: .9rem 1.1rem; margin: 1.1rem 0;
}
.quick-answer__label {
    margin: 0 0 .2em; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--teal);
}
.quick-answer p { margin: .3em 0; }

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: .8rem 0; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: .55em .8em; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--foam); color: var(--navy); font-size: .85rem; letter-spacing: .03em; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfdfe; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.rules-table th[scope="row"] { width: 38%; color: var(--ink-soft); font-weight: 600; background: #fbfdfe; }

[data-sortable] thead th { cursor: pointer; user-select: none; }
[data-sortable] thead th:hover { background: #ddeaf1; }
[data-sortable] thead th[aria-sort="none"]::after { content: " ↕"; opacity: .5; }
[data-sortable] thead th[aria-sort="ascending"]::after { content: " ↑"; opacity: 1; }
[data-sortable] thead th[aria-sort="descending"]::after { content: " ↓"; opacity: 1; }

.table-hint { font-size: .87rem; color: var(--ink-soft); }

/* Stacked lakes table on small screens */
@media (max-width: 620px) {
    .lakes-table thead { display: none; }
    .lakes-table tr { display: block; padding: .5em .2em; border-bottom: 1px solid var(--line); }
    .lakes-table td { display: flex; gap: .6em; border: 0; padding: .15em .6em; }
    .lakes-table td::before { content: attr(data-label); flex: 0 0 7em; color: var(--ink-soft); font-size: .82rem; padding-top: .15em; }
}

/* --------------------------------------------------------------------------
   Buttons & forms
   -------------------------------------------------------------------------- */
.btn {
    display: inline-block; border: 0; border-radius: 8px; cursor: pointer;
    font-size: 1rem; font-weight: 700; padding: .55em 1.2em; text-decoration: none;
}
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: #0a616a; color: #fff; }
.btn--secondary { background: var(--foam); color: var(--navy); border: 1px solid var(--line); }

input, select, button { font: inherit; }
select, input[type="number"], input[type="search"], input[type="text"] {
    width: 100%; max-width: 100%; padding: .5em .65em; border: 1px solid var(--line);
    border-radius: 8px; background: #fff; color: var(--ink);
}

/* --------------------------------------------------------------------------
   Hero + search
   -------------------------------------------------------------------------- */
.hero { text-align: left; padding-top: .5rem; }
.hero__sub { font-size: 1.1rem; color: var(--ink-soft); max-width: 44em; }
.hero__search { display: flex; gap: .5rem; margin: 1rem 0 .4rem; max-width: 34rem; }
.hero__search input { flex: 1; }
.hero__alt { font-size: .95rem; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   Legend, state grid, cards
   -------------------------------------------------------------------------- */
.legend { list-style: none; padding: 0; display: grid; gap: .55rem; }
.legend li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .6em; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .55em .8em; }

.state-grid { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin: .8rem 0; }
.state-card {
    display: flex; flex-direction: column; gap: .15rem;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: .8rem .95rem; text-decoration: none; box-shadow: var(--shadow);
}
.state-card:hover { border-color: var(--teal); }
.state-card__name { font-weight: 800; color: var(--navy); font-size: 1.05rem; }
.state-card__count { color: var(--ink-soft); font-size: .88rem; }
.state-card__badges { font-size: .85rem; color: var(--ink-soft); font-family: var(--mono); }

.card-grid { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); margin: .8rem 0; }
.lake-card {
    display: flex; flex-direction: column; gap: .25rem; align-items: flex-start;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: .75rem .9rem; text-decoration: none; box-shadow: var(--shadow);
}
.lake-card:hover { border-color: var(--teal); }
.lake-card__name { font-weight: 700; color: var(--navy); }
.lake-card__meta { color: var(--ink-soft); font-size: .85rem; }

.section-note { font-size: .9rem; color: var(--ink-soft); }

.hub-links, .related__links, .agency-list { list-style: none; padding: 0; }
.hub-links li, .related__links li, .agency-list li { padding: .25em 0; }
.hub-links .count { color: var(--ink-soft); font-family: var(--mono); font-size: .9em; }

.guide-list { list-style: none; padding: 0; display: grid; gap: .9rem; }
.guide-list li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; }
.guide-list a { font-weight: 700; font-size: 1.05rem; }
.guide-list p { margin: .3em 0 0; color: var(--ink-soft); font-size: .95rem; }
.guide-list__meta { font-size: .85rem; }

/* --------------------------------------------------------------------------
   Tool page
   -------------------------------------------------------------------------- */
.tool-layout { display: grid; gap: 1.2rem; margin: 1.2rem 0; }
@media (min-width: 760px) { .tool-layout { grid-template-columns: 1fr 1fr; align-items: start; } }

.tool-form-panel, .tool-result-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem 1.1rem; }
.tool-form fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
.tool-form legend { font-weight: 800; color: var(--navy); padding: 0; margin-bottom: .5rem; }
.tool-form label { display: block; font-size: .9rem; color: var(--ink-soft); margin: .7em 0 .25em; }

.radio-row { display: grid; gap: .5rem; }
@media (min-width: 500px) { .radio-row { grid-template-columns: repeat(3, 1fr); } }
.radio-card {
    display: flex; align-items: center; justify-content: center; gap: .4em; text-align: center;
    border: 1px solid var(--line); border-radius: 8px; padding: .55em .4em; cursor: pointer;
    font-size: .92rem; background: #fff;
}
.radio-card:has(input:checked),
.radio-card.is-checked { border-color: var(--teal); background: var(--foam); font-weight: 700; }
.radio-card input { accent-color: var(--teal); }

.hp-row { margin-top: .6rem; }
.tool-form .btn { margin-top: 1rem; width: 100%; }

.verdict { border-radius: var(--radius); padding: 1rem 1.1rem; border: 1px solid var(--line); }
.verdict__status { font-family: var(--mono); font-weight: 800; font-size: 1.3rem; letter-spacing: .04em; margin: 0 0 .3em; }
.verdict__reason { font-size: 1.02rem; margin: .2em 0; }
.verdict__links { font-size: .95rem; }
.verdict__note { font-size: .87rem; color: var(--ink-soft); }
.verdict--allowed      { background: #ebf7ee; border-color: #b7dfc2; }
.verdict--allowed .verdict__status { color: var(--green); }
.verdict--not_allowed  { background: #fdf0f0; border-color: #f0c4c4; }
.verdict--not_allowed .verdict__status { color: var(--red); }
.verdict--check_zones  { background: #f4f0fd; border-color: #d4c8f2; }
.verdict--check_zones .verdict__status { color: var(--violet); }
.verdict--verify       { background: var(--foam); }
.verdict--verify .verdict__status { color: var(--ink-soft); }
.verdict--pending      { background: var(--foam); color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   Gear (affiliate) block
   -------------------------------------------------------------------------- */
.gear { border-top: 1px solid var(--line); margin-top: 1.6rem; padding-top: .3rem; }
.gear__intro { color: var(--ink-soft); font-size: .95rem; }
.gear__grid { list-style: none; padding: 0; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }
.product-card {
    display: flex; flex-direction: column; gap: .3rem;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem .9rem;
}
.product-card__icon { color: var(--teal); }
.product-card__icon .icon { width: 1.8em; height: 1.8em; }
.product-card__name { font-weight: 700; color: var(--navy); }
.product-card__desc { font-size: .88rem; color: var(--ink-soft); flex: 1; }
.product-card__cta {
    align-self: flex-start; margin-top: .35rem; font-size: .9rem; font-weight: 700;
    color: var(--navy); border: 1px solid var(--navy); border-radius: 8px; padding: .35em .8em; text-decoration: none;
}
.product-card__cta:hover { background: var(--navy); color: #fff; }
.gear__disclosure { font-size: .82rem; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   Verify box, sources, banners, FAQ
   -------------------------------------------------------------------------- */
.verify-box {
    background: #fff8ec; border: 1px solid #f2d8a0; border-radius: var(--radius);
    padding: .9rem 1.1rem; margin: 1.4rem 0;
}
.verify-box h2 { margin-top: 0; }
.verify-box__list { list-style: none; padding: 0; display: grid; gap: .4rem; }
.verify-box__warning { font-weight: 600; color: #8a5a00; }

.sources ul { list-style: none; padding: 0; }
.sources li { padding: .2em 0; }

.banner { border-radius: var(--radius); padding: .8rem 1rem; margin: 1rem 0; }
.banner--warning { background: #fdf3e2; border: 1px solid #eccd8f; color: #7a5200; }

.faq__item { border-bottom: 1px solid var(--line); padding-bottom: .6rem; }
.faq__item h3 { margin-bottom: .2em; }
.faq__item p { margin-top: 0; color: var(--ink); }

.data-vintage { color: var(--ink-soft); }

.steps li { margin: .5em 0; }

/* --------------------------------------------------------------------------
   Ad slots — reserved, labeled, never near CTAs
   -------------------------------------------------------------------------- */
.ad-slot { margin: 1.4rem 0; text-align: center; }
.ad-slot__tag { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: #9db2bd; margin-bottom: .2rem; }
.ad-slot .adsbygoogle { min-height: 90px; background: transparent; }
.ad-slot--sidebar { position: sticky; top: 1rem; margin: 0; }
.ad-slot--sidebar .adsbygoogle { min-height: 250px; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-email { font-size: 1.35rem; font-weight: 700; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--navy-deep); color: #b8cfd9; margin-top: 3rem; font-size: .92rem; }
.site-footer a { color: #cde5ec; }
.site-footer a:hover { color: #fff; }
.site-footer__inner {
    max-width: 1200px; margin: 0 auto; padding: 2rem 1rem 1rem;
    display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.footer-brand { font-weight: 800; color: #fff; font-size: 1.05rem; margin: 0 0 .3em; }
.footer-heading { font-weight: 700; color: #fff; margin: 0 0 .4em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: .18em 0; }
.footer-disclosure { font-size: .84rem; }
.site-footer__legal { border-top: 1px solid rgba(255,255,255,.14); }
.site-footer__legal p { max-width: 1200px; margin: 0 auto; padding: .9rem 1rem; font-size: .82rem; color: #8fa9b5; }

/* --------------------------------------------------------------------------
   Print: rules pages should print cleanly for the glovebox
   -------------------------------------------------------------------------- */
@media print {
    .site-header, .site-footer, .sidebar, .ad-slot, .hero__search, .header-search, .related, .gear { display: none !important; }
    body { background: #fff; font-size: 11pt; }
    a { color: inherit; text-decoration: none; }
}
