:root {
  color-scheme: light;
  --navy: #17324d;
  --slate: #2f5d7e;
  --orange: #f57c00;
  --orange-light: #ff9a37;
  --charcoal: #222629;
  --paper: #f5f7f8;
  --border: #d9e1e7;
  --white: #fff;
  --muted: #496171;
  --night: #10263a;
  --success: #216444;
  --error: #a62b28;
  --heading: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --content: 80rem;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --section-space: clamp(3.5rem, 6.2vw, 6.2rem);
  --radius: .4rem;
  --control-size: 3rem;
  --focus: 2px solid var(--orange);
  --card-padding: 1.25rem;
  --card-border: 1px solid var(--border);
  --button-gap: .75rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--charcoal); background: var(--white); font: 400 1rem/1.6 var(--body); }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--heading); line-height: 1; }
h2 { font-weight: 800; letter-spacing: -.025em; font-size: clamp(2.6rem, 4.1vw, 4rem); color: var(--navy); }
h3 { font-weight: 700; }
:focus-visible { outline: var(--focus); outline-offset: 4px; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
section[id], details[id] { scroll-margin-top: 1.5rem; }

.container { width: min(var(--content), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section-space); }
.section-intro { display: grid; gap: .72rem; }
.section-intro p { color: var(--muted); }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.icon { display: block; width: 1.35rem; height: 1.35rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 10; top: .5rem; left: .5rem; padding: .65rem 1rem; color: var(--navy); background: var(--white); }

.utility-bar { background: var(--navy); color: var(--white); font-size: .8125rem; }
.utility-inner { display: flex; justify-content: space-between; align-items: center; min-height: 2.25rem; }
.utility-inner a { text-decoration: underline; text-underline-offset: 3px; }
.utility-inner a:hover { color: var(--orange-light); }
.site-header { background: var(--white); }
.header-inner { min-height: 5.25rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand-home { display: inline-flex; align-items: center; flex: none; }
.brand-home img { object-fit: contain; object-position: left center; }
.desktop-nav { display: flex; align-items: stretch; gap: clamp(1.25rem, 2.4vw, 2.35rem); align-self: stretch; }
.desktop-nav a, .header-tools, .mobile-nav a {
  display: flex; align-items: center; white-space: nowrap; color: var(--navy);
  font: 700 1.19rem/1 var(--heading);
}
.desktop-nav a { position: relative; }
.desktop-nav a::after { position: absolute; content: ""; inset: auto 0 0; height: 3px; background: var(--orange); transform: scaleX(0); transition: transform .18s ease; }
.desktop-nav a:hover::after, .desktop-nav a:focus-visible::after { transform: scaleX(1); }
.header-tools { min-height: 2.65rem; padding: .45rem .85rem; gap: .5rem; border: var(--card-border); border-radius: var(--radius); }
.header-tools:hover { border-color: var(--slate); background: var(--paper); }
.header-tools .icon { width: 1.13rem; height: 1.13rem; }
.icon-button { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: var(--card-border); border-radius: var(--radius); background: var(--white); color: var(--navy); }
.icon-button:hover { background: var(--paper); border-color: var(--slate); }
.menu-toggle, .mobile-nav { display: none; }

.hero { position: relative; isolation: isolate; overflow: clip; background: var(--night); color: var(--white); }
.hero-picture, .hero-shade { position: absolute; inset: 0; }
.hero-picture { z-index: -2; }
.hero-picture img { width: 100%; height: 100%; object-fit: cover; object-position: center 59%; }
.hero-shade {
  z-index: -1;
  background: linear-gradient(90deg, rgb(8 25 39 / .98) 0%, rgb(10 28 43 / .83) 23%, rgb(13 31 46 / .50) 47%, rgb(12 26 39 / .06) 77%),
    linear-gradient(0deg, rgb(8 23 35 / .37), transparent 35%);
}
.hero-inner { display: flex; min-height: clamp(29rem, 36vw, 36rem); align-items: center; padding-block: 3.4rem; }
.hero-copy { width: min(100%, 42rem); }
.hero-label { display: inline-flex; align-items: center; gap: .6rem; font: 700 .95rem/1 var(--heading); letter-spacing: .14em; text-transform: uppercase; }
.hero-label::before { content: ""; width: 1.8rem; height: 2px; background: var(--orange); }
.hero h1 { margin-top: 1rem; font-size: clamp(3.8rem, 6.05vw, 6.35rem); font-weight: 800; letter-spacing: -.035em; line-height: .94; }
.hero h1 em { display: block; color: var(--orange-light); font-style: normal; }
.hero-description { margin-top: 1.45rem; max-width: 30rem; color: #e5edf3; font-size: 1.1rem; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--button-gap); margin-top: 1.65rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: var(--control-size);
  padding: .65rem 1.25rem; border: 1px solid transparent; border-radius: var(--radius);
  font-size: .9375rem; font-weight: 700; line-height: 1.35; text-align: center; transition: background .16s ease, border-color .16s ease;
}
.button-primary { color: #211506; background: var(--orange); border-color: var(--orange); }
.button-primary:hover { background: #ffa143; border-color: #ffa143; }
.button-light-outline { color: var(--white); border-color: rgb(255 255 255 / .65); background: rgb(14 35 52 / .34); }
.button-light-outline:hover { background: rgb(255 255 255 / .15); border-color: var(--white); }

.quick-links { background: var(--navy); color: var(--white); }
.quick-inner { display: grid; grid-template-columns: repeat(3, 1fr); min-height: 4.55rem; }
.quick-inner > * { display: flex; gap: .65rem; align-items: center; justify-content: center; border: 0; color: inherit; background: transparent; font-weight: 600; font-size: .875rem; padding: .85rem .55rem; line-height: 1.3; }
.quick-inner > :not(:first-child) { border-left: 1px solid rgb(255 255 255 / .18); }
.quick-inner > :hover { background: rgb(255 255 255 / .07); }
.quick-inner .icon { color: #b9d2e3; }

.range-section { background: var(--paper); }
.range-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 1.65rem; align-items: start; }
.range-card {
  --tile-color: #244663;
  --tile-accent: #9db4c5;
  background: var(--white); border: var(--card-border); border-radius: var(--radius); overflow: clip;
  scroll-margin-top: 1.5rem;
}
.range-card:target { border-color: var(--slate); box-shadow: 0 0 0 2px var(--slate); }
.range-card summary:focus-visible { outline-offset: -3px; }
.range-visual {
  display: grid; position: relative; isolation: isolate; place-items: center; min-height: 7.7rem;
  overflow: hidden; color: var(--tile-accent); background: var(--tile-color);
}
.range-visual::before {
  content: ""; position: absolute; z-index: -1; width: 13rem; height: 13rem;
  border-radius: 1.25rem; border: 1px solid rgb(240 249 255 / .15);
  transform: rotate(-21deg); inset: -3.3rem auto auto 48%; box-shadow: 0 0 0 .75rem rgb(238 248 255 / .045),
    0 0 0 1.55rem rgb(238 248 255 / .045), 0 0 0 2.4rem rgb(238 248 255 / .045);
  transition: transform .18s ease;
}
.range-card summary:hover .range-visual::before { transform: rotate(-24deg) scale(1.07); }
.range-kits { --tile-color: #263f4c; --tile-accent: #b6c9cc; }
.range-water { --tile-color: #2d5872; --tile-accent: #bfdae9; }
.range-light { --tile-color: #384852; --tile-accent: #ffd09f; }
.range-icon { width: 3.1rem; height: 3.1rem; stroke-width: 1.08; }
.range-label { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin: 1rem var(--card-padding) .45rem; color: var(--navy); }
.range-title { font: 700 clamp(1.24rem, 2vw, 1.8rem)/1 var(--heading); }
.expand-icon { margin-left: auto; width: 1.05rem; height: 1.05rem; transition: transform .16s ease; }
[open] > summary .expand-icon { transform: rotate(45deg); }
.range-description { display: block; padding: 0 var(--card-padding) 1.15rem; color: var(--muted); font-size: .875rem; line-height: 1.5; }
.range-detail { margin: 0 var(--card-padding); padding-block: .9rem 1.2rem; border-top: var(--card-border); }
.range-detail > p { margin-bottom: .6rem; font-size: .92rem; line-height: 1.6; }
.text-button {
  display: inline-block; padding: .25rem 0; border: 0; background: transparent; color: var(--slate);
  font-size: .875rem; font-weight: 700; text-align: left; text-decoration: underline; text-underline-offset: 3px;
}
.text-button:hover { color: var(--navy); text-decoration-thickness: 2px; }

.tools-section {
  background: var(--navy) linear-gradient(126deg, var(--night), var(--navy) 56%, #244663); color: var(--white);
}
.tools-layout { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 1.1rem; }
.tools-intro { align-self: center; padding-right: clamp(0rem, 2vw, 1.75rem); }
.tools-intro h2 { color: var(--white); }
.tools-intro p { max-width: 25rem; margin-top: .9rem; color: #d7e4ec; }
.tool-card { display: flex; flex-direction: column; align-items: start; padding: clamp(1.2rem, 2.4vw, 2.1rem); border: 1px solid rgb(224 238 248 / .28); border-radius: var(--radius); background: rgb(240 248 255 / .06); }
.tool-card h3 { font-size: clamp(1.65rem, 2.3vw, 2.2rem); margin-bottom: .65rem; }
.tool-icon { width: 1.65rem; height: 1.65rem; margin-bottom: 1rem; color: var(--orange-light); }
.tool-card p { margin-bottom: 1.15rem; color: #d7e4ec; font-size: .9375rem; }
.tool-card .button { margin-top: auto; }

.guides-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(1.5rem, 7vw, 7rem); align-items: start; }
.guide { border-bottom: var(--card-border); }
.guide:first-child { border-top: var(--card-border); }
.guide summary { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.2rem .2rem; color: var(--navy); }
.guide-title { font: 700 1.5rem/1.15 var(--heading); }
.guide summary:hover { color: var(--slate); }
.guide-body { display: grid; gap: .65rem; padding: 0 .2rem 1.1rem; max-width: 42rem; }

.site-footer { background: var(--night); color: var(--white); }
.footer-main { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding-block: 2.65rem 2rem; }
.footer-main p { margin-top: .75rem; color: #bfd0de; }
.footer-main nav { display: flex; flex-wrap: wrap; gap: .6rem 1.55rem; font-size: .875rem; font-weight: 600; }
.footer-main nav a:hover { color: var(--orange-light); }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / .19); color: #bfd0de; padding-block: .9rem; }
.footer-bottom small { font-size: .8125rem; }

#site-dialog { width: min(42rem, calc(100% - 2rem)); max-height: min(90vh, 54rem); max-height: min(90dvh, 54rem); margin: auto; padding: 0; border: var(--card-border); border-radius: var(--radius); color: var(--charcoal); background: var(--white); }
#site-dialog::backdrop { background: rgb(8 24 38 / .72); }
body:has(#site-dialog[open]) { overflow: hidden; }
.dialog-shell { padding: clamp(1rem, 4vw, 2rem); }
.dialog-close { float: right; margin: 0 0 .4rem .65rem; }
.dialog-heading { color: var(--navy); font-family: var(--heading); font-size: clamp(2rem, 5vw, 2.85rem); font-weight: 800; }
.dialog-heading h2 { font: inherit; letter-spacing: -.025em; }
.dialog-description { margin: .65rem 0 1.15rem; color: var(--muted); font: 400 1rem/1.6 var(--body); }
.dialog-form, .calculator-devices { display: grid; gap: .8rem; clear: both; }
.dialog-field { display: grid; gap: .25rem; font-size: .875rem; font-weight: 600; }
.dialog-field input, .dialog-field select { width: 100%; min-height: 2.5rem; padding: .4rem .65rem; border: 1px solid #8da2b1; border-radius: var(--radius); color: var(--charcoal); background-color: var(--white); }
.dialog-field select { appearance: none; padding-right: 1.65rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' viewBox='0 0 14 14'%3E%3Cpath stroke='%2317324d' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.6' d='m3 5 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .62rem center; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: var(--button-gap); align-items: center; margin-top: .65rem; }
.dialog-note { margin-top: .95rem; color: var(--muted); font-size: .875rem; }
.calculator-device { min-width: 0; margin: 0; padding: .65rem .85rem .85rem; border: var(--card-border); border-radius: var(--radius); background: var(--paper); }
.calculator-device-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: .45rem; color: var(--navy); font-weight: 700; }
.calculator-device-fields { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: .75rem; }
.calculator-add, .calculator-remove { justify-self: start; padding: .25rem 0; border: 0; background: transparent; color: var(--slate); font-size: .875rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.calculator-result { margin-top: 1.1rem; padding: .75rem 1rem; border-left: 3px solid var(--success); background: var(--paper); }
.calculator-result strong { color: var(--navy); font: 800 2rem/1.2 var(--heading); }
.checklist-items { padding: 0; margin: 0 0 1rem; list-style: none; }
.checklist-items label { display: flex; align-items: start; gap: .65rem; padding: .55rem 0; border-bottom: var(--card-border); cursor: pointer; }
.checklist-items input { flex: none; width: 1.125rem; height: 1.125rem; margin: .2rem 0 0; accent-color: var(--navy); }
.checklist-items small { display: block; color: var(--muted); font-size: .875rem; }

@media (max-width: 1020px) {
  .desktop-nav, .header-tools { display: none; }
  .menu-toggle { display: grid; }
  .mobile-nav { display: grid; padding-bottom: .65rem; }
  .mobile-nav a { display: flex; min-height: 2.85rem; border-top: var(--card-border); }
  .mobile-nav a:hover { color: var(--slate); }
  .tools-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tools-intro { grid-column: 1 / -1; padding-bottom: .5rem; }
}
@media (max-width: 760px) {
  .range-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .range-title { font-size: 1.5rem; }
  .range-label, .range-detail { margin-inline: 1rem; }
  .range-description { padding-inline: 1rem; }
  .guides-layout { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .header-inner { min-height: 4.1rem; }
  .hero-picture img { object-position: center 60%; }
  .hero-shade { background: linear-gradient(180deg, rgb(8 25 39 / .96), rgb(12 31 47 / .77) 30%, rgb(12 31 47 / .35) 62%, rgb(8 24 36 / .08) 100%); }
  .hero-inner { align-items: start; min-height: 37rem; padding-top: 2.8rem; }
  .hero h1 { font-size: clamp(3.25rem, 10.6vw, 4.45rem); }
  .hero-description { font-size: 1rem; margin-top: 1rem; }
  .hero-actions { margin-top: 1.3rem; }
  .quick-inner { width: 100%; }
  .quick-inner > * { flex-direction: column; text-align: center; gap: .4rem; padding: .65rem .35rem; }
  .footer-main { flex-direction: column; align-items: start; gap: 1.2rem; }
}
@media (max-width: 520px) {
  .utility-inner { justify-content: center; min-height: 2rem; text-align: center; }
  .utility-inner a { display: none; }
  .brand-home picture img { width: 164px; height: 30px; }
  .range-grid { gap: .7rem; }
  .range-visual { min-height: 6rem; }
  .range-icon { width: 2.6rem; height: 2.6rem; }
  .range-title { font-size: 1.25rem; }
  .range-label .expand-icon { width: .85rem; height: .85rem; }
  .range-label, .range-detail { margin-inline: .75rem; }
  .range-description { padding-inline: .75rem; }
  .tools-layout { grid-template-columns: 1fr; }
  .calculator-device-fields { grid-template-columns: 1fr 1fr; }
  .calculator-device-fields > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 370px) {
  .hero-actions .button { padding-inline: .8rem; font-size: .875rem; }
  .range-title { font-size: 1.15rem; }
  .range-description { font-size: .8125rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
