@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/dm-sans-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/manrope-latin.woff2") format("woff2");
}
:root {
  --ink: #173943;
  --muted: #526872;
  --teal: #076b60;
  --mint: #c5f6e5;
  --bg: #f5f8f9;
  --line: #dce5e7;
  --white: #fff;
  --radius: 18px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font:
    16px/1.65 "DM Sans",
    Arial,
    sans-serif;
}
h1,
h2,
h3,
.brand,
.value {
  font-family: Manrope, Arial, sans-serif;
  line-height: 1.18;
}
h1 {
  font-size: clamp(2.15rem, 4.3vw, 3.9rem);
  letter-spacing: -0.045em;
  margin: 16px 0 24px;
}
h2 {
  font-size: 2rem;
  letter-spacing: -0.035em;
}
h3 {
  font-size: 1.15rem;
}
p {
  margin: 0 0 18px;
}
a {
  color: var(--teal);
  text-underline-offset: 4px;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #c18b19;
  outline-offset: 4px;
}
.skip {
  position: absolute;
  top: -90px;
}
.skip:focus {
  top: 8px;
  left: 8px;
  z-index: 10;
  background: white;
  padding: 12px;
}
.wrap {
  max-width: 1200px;
  margin: auto;
  padding: 0 32px;
}
header {
  background: white;
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.04em;
}
.brand img {
  width: 36px;
  height: 36px;
}
.navlinks {
  display: flex;
  gap: 32px;
  align-items: center;
}
.navlinks a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 600;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.13em;
  font-weight: 800;
  color: var(--teal);
}
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
  padding-top: 62px;
  padding-bottom: 60px;
}
.hero p {
  font-size: 1.13rem;
  max-width: 520px;
  color: var(--muted);
}
.hero em {
  font-style: normal;
  color: var(--teal);
}
.search {
  display: flex;
  align-items: center;
  background: white;
  border: 1px solid #b9cccf;
  border-radius: 12px;
  padding: 6px 15px;
  gap: 12px;
  max-width: 510px;
}
.search input {
  border: 0;
  background: none;
  width: 100%;
  padding: 12px 0;
  outline: none;
}
.search:focus-within {
  outline: 3px solid #c18b19;
}
.popular {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 17px;
  font-size: 0.88rem;
}
.popular a {
  font-weight: 600;
}
.hero-plan {
  background: var(--ink);
  color: white;
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 24px 55px #17394313;
  position: relative;
}
.hero-plan .eyebrow {
  color: var(--mint);
}
.plan-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.plan-head span {
  font-size: 0.8rem;
  color: #c5d6d9;
}
.dimension {
  height: 138px;
  width: 100%;
  color: #9be0c8;
  margin: 15px 0;
}
.hero-plan h3 {
  margin: 0;
}
.hero-plan .value {
  font-size: 3rem;
  font-weight: 700;
  margin: 0;
}
.hero-plan p {
  color: #d3e4e6;
  font-size: 0.9rem;
}
.planrow {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #ffffff25;
  padding: 12px 0;
  font-size: 0.92rem;
}
.hero-plan a {
  display: block;
  text-align: center;
  background: var(--mint);
  color: var(--ink);
  padding: 12px;
  border-radius: 9px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 16px;
}
.section {
  padding: 42px 0;
}
.sectiontop {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 25px;
}
.sectiontop h2 {
  margin: 8px 0 0;
}
.sectiontop p {
  margin: 0;
  color: var(--muted);
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 25px;
}
.chip {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 8px 17px;
  color: var(--ink);
  font-size: 0.9rem;
}
.chip.active {
  color: white;
  background: var(--ink);
  border-color: var(--ink);
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 23px;
  text-decoration: none;
  color: var(--ink);
  transition:
    transform 0.16s,
    border-color 0.16s;
}
.card:hover {
  transform: translateY(-3px);
  border-color: #72ac9e;
}
.icon {
  height: 43px;
  width: 43px;
  background: #edf6f2;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  color: var(--teal);
}
.icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.card h3 {
  margin: 0 0 9px;
}
.card p {
  font-size: 0.94rem;
  color: var(--muted);
  margin: 0;
}
.card small {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--teal);
  display: block;
  margin-top: 22px;
}
.trust {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 40px 0 10px;
}
.trust b {
  display: block;
  margin-bottom: 8px;
}
.trust p {
  color: var(--muted);
  font-size: 0.94rem;
  margin: 0;
}
.guidecard {
  padding: 25px 0;
  border-top: 1px solid var(--line);
  display: block;
  text-decoration: none;
  color: var(--ink);
}
.guidecard h3 {
  margin: 8px 0;
}
.guidecard p {
  color: var(--muted);
  font-size: 0.95rem;
}
.guidegrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.footer {
  background: #12333d;
  color: #c9d9dc;
  padding: 42px 0;
  margin-top: 60px;
}
.footer a {
  color: #d5e9e7;
}
.footer .brand {
  color: white;
}
.footertop {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}
.footerlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.9rem;
  align-items: start;
}
.fine {
  font-size: 0.8rem;
  color: var(--muted);
}
.footer .fine {
  color: #bdd0d2;
  border-top: 1px solid #ffffff24;
  padding-top: 20px;
  margin: 25px 0 0;
}
.crumb {
  font-size: 0.87rem;
  padding: 26px 0;
  color: var(--muted);
}
.pageintro {
  max-width: 780px;
  margin: 6px 0 30px;
}
.pageintro h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 10px 0 16px;
}
.pageintro p {
  color: var(--muted);
  font-size: 1.1rem;
}
.calculator {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: start;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px;
}
.panel h2 {
  font-size: 1.4rem;
  margin: 0 0 23px;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.gravel-converter {
  margin: 32px 0;
  padding: 24px;
  border: 1px solid #bccdd0;
  border-radius: 16px;
  background: #f0f8f6;
}
.gravel-converter h2 { margin-top: 0; }
.gravel-converter .field { min-width: 0; }
.gravel-converter .conversion-result {
  padding: 18px;
  border-radius: 10px;
  background: white;
  overflow-wrap: anywhere;
}
.gravel-converter .conversion-result strong {
  display: block;
  font-size: 1.5rem;
  color: var(--ink);
}
.gravel-converter .conversion-result span { display: block; margin-top: 8px; }
.gravel-converter input[aria-invalid="true"] { outline: 2px solid #aa3535; outline-offset: -2px; }
@media (max-width: 520px) {
  .gravel-converter { padding: 16px; }
  .gravel-converter .fields { grid-template-columns: 1fr; }
}
.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 7px;
}
.inputwrap {
  display: flex;
  border: 1px solid #bccdd0;
  border-radius: 9px;
  overflow: hidden;
  align-items: center;
  background: #fff;
}
.inputwrap input {
  border: 0;
  padding: 11px 12px;
  width: 100%;
  min-width: 0;
  color: var(--ink);
  background: transparent;
}
.inputwrap span {
  padding: 0 12px;
  color: var(--muted);
  white-space: nowrap;
  font-size: 0.87rem;
}
.inputwrap:focus-within {
  outline: 2px solid var(--teal);
}
select {
  width: 100%;
  padding: 12px;
  border: 1px solid #bccdd0;
  border-radius: 9px;
  background: white;
  color: var(--ink);
}
.full {
  grid-column: 1/-1;
}
.check {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.95rem;
}
.check input {
  width: 20px;
  height: 20px;
}
.primary {
  background: var(--teal);
  color: white;
  border: 0;
  border-radius: 10px;
  padding: 14px 22px;
  font-weight: 700;
  min-height: 50px;
}
.calculate {
  width: 100%;
  margin-top: 25px;
}
.secondary {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.9rem;
}
.result {
  background: var(--ink);
  color: white;
  border: 0;
  position: sticky;
  top: 20px;
}
.result h2 {
  color: #c8e4dd;
  font-size: 1rem;
}
.result .value {
  font-size: 3.3rem;
  font-weight: 700;
  overflow-wrap: anywhere;
  letter-spacing: -0.035em;
}
.result .unit {
  color: #bee0d6;
  font-size: 1rem;
}
.result .summary {
  margin: 12px 0 24px;
  color: #c5dadd;
  font-size: 0.9rem;
}
.result dt {
  color: #c5dadd;
}
.result dl > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #ffffff28;
  padding: 12px 0;
  font-size: 0.95rem;
}
.result dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
}
.result .actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.result .secondary {
  background: #ffffff10;
  color: white;
  border-color: #ffffff40;
}
.result .fine {
  color: #b6d0d1;
  margin-top: 18px;
}
.error {
  color: #a02a29;
  font-weight: 600;
  margin-top: 15px;
}
.formula {
  padding: 18px;
  background: #eaf3f2;
  border-radius: 10px;
  overflow-wrap: anywhere;
}
.articlelayout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 260px;
  gap: 65px;
  margin-top: 45px;
}
.article h2 {
  font-size: 1.6rem;
  margin-top: 35px;
}
.article h3 {
  margin-top: 28px;
}
.article p,
.article li {
  color: #405d67;
}
.article li {
  margin-bottom: 8px;
}
.article table {
  border-collapse: collapse;
  width: 100%;
  margin: 20px 0;
  background: white;
}
.article th,
.article td {
  padding: 12px;
  border: 1px solid var(--line);
  text-align: left;
}
.article th {
  background: #e9f2ef;
}
.aside {
  padding-top: 30px;
}
.aside a {
  display: block;
  margin: 13px 0;
}
.aside .related {
  display: block;
  margin-top: 30px;
}
.notice {
  padding: 18px 22px;
  border-left: 3px solid var(--teal);
  background: #e7f3ee;
  border-radius: 0 10px 10px 0;
  margin: 24px 0;
}
.articlepage {
  max-width: 800px;
  margin: auto;
}
.articlepage .pageintro {
  max-width: none;
}
.articlepage h1 {
  font-size: 2.7rem;
}
.empty {
  padding: 35px;
  border: 1px dashed #adbec4;
  border-radius: 15px;
}
.hidden,
[hidden] {
  display: none !important;
}
.status {
  font-size: 0.86rem;
  min-height: 24px;
  margin-top: 12px;
}
.noscript {
  background: #fff0d1;
  padding: 15px;
}
.printdate {
  display: none;
}
@media (max-width: 900px) {
  .hero {
    gap: 28px;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero h1 {
    font-size: 2.6rem;
  }
  .articlelayout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .aside {
    border-top: 1px solid var(--line);
  }
  .navlinks {
    gap: 15px;
  }
  .calculator {
    gap: 16px;
  }
  .panel {
    padding: 22px;
  }
}
@media (max-width: 650px) {
  .wrap {
    padding: 0 20px;
  }
  .nav {
    min-height: 76px;
    flex-wrap: wrap;
    padding-top: 18px;
    padding-bottom: 15px;
    gap: 13px;
  }
  .navlinks {
    width: 100%;
    justify-content: space-between;
  }
  .navlinks a {
    font-size: 0.85rem;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 32px;
    padding-bottom: 20px;
    gap: 30px;
  }
  .hero h1 {
    font-size: 2.85rem;
  }
  .hero-plan {
    padding: 24px;
  }
  .hero p {
    font-size: 1rem;
  }
  .grid,
  .guidegrid,
  .trust,
  .calculator {
    grid-template-columns: 1fr;
  }
  .sectiontop {
    display: block;
  }
  .sectiontop p {
    margin-top: 13px;
  }
  .section {
    padding: 30px 0;
  }
  .card {
    padding: 22px;
  }
  .icon {
    margin-bottom: 16px;
  }
  .trust {
    gap: 24px;
  }
  .result {
    position: static;
  }
  .footertop {
    display: block;
  }
  .footerlinks {
    margin-top: 25px;
  }
  .articlepage h1 {
    font-size: 2.2rem;
  }
  .fields {
    gap: 16px;
  }
  .pageintro p {
    font-size: 1rem;
  }
  .result .value {
    font-size: 2.8rem;
  }
  .article table {
    font-size: 0.88rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  header,
  .footer,
  .crumb,
  .aside,
  .actions,
  .calculate,
  .status,
  .pageintro .eyebrow {
    display: none !important;
  }
  body {
    background: white;
    color: #111;
    font-size: 11pt;
  }
  .wrap {
    padding: 0;
  }
  .calculator {
    display: block;
  }
  .panel {
    border: 1px solid #aaa;
    break-inside: avoid;
    margin-bottom: 20px;
  }
  .result {
    position: static;
    background: white !important;
    color: #111 !important;
  }
  .result * {
    color: #111 !important;
  }
  .result dl > div {
    border-color: #ccc;
  }
  .articlelayout {
    display: block;
  }
  .article {
    break-before: page;
  }
  .printdate {
    display: block;
  }
  .inputwrap input {
    padding: 4px;
  }
  .fields {
    gap: 8px;
  }
  .panel h2 {
    margin-bottom: 10px;
  }
  .result .value {
    font-size: 30pt;
  }
  a {
    color: #111;
  }
  .hero-plan {
    background: white;
    color: #111;
  }
}
@media print {
  button,
  .panel .fine {
    display: none !important;
  }
  .result .fine {
    display: block !important;
  }
  .panel {
    padding: 15px;
  }
  .articlelayout {
    margin-top: 15px;
  }
  .articlelayout .article > h2:not(:first-child),
  .articlelayout .article > div,
  .articlelayout .article > ul,
  .articlelayout .article > p:not(.formula) {
    display: none;
  }
  .articlelayout .article {
    break-before: auto;
  }
  .articlelayout .article h2 {
    font-size: 13pt;
    margin-top: 10px;
  }
  .result dl > div {
    padding: 5px 0;
  }
  .pageintro h1 {
    font-size: 22pt;
  }
  .pageintro {
    margin-bottom: 15px;
  }
  .pageintro p {
    font-size: 10pt;
  }
  .result .summary {
    margin: 8px 0;
  }
  .result .fine {
    font-size: 9pt;
  }
  .formula {
    font-size: 10pt;
  }
  .printdate {
    font-size: 9pt;
  }
  .panel h2 {
    font-size: 14pt;
  }
}
.navlinks {
  flex-wrap: wrap;
}
.result dt,
.result dd {
  overflow-wrap: anywhere;
}
.article table {
  display: block;
  overflow-x: auto;
}
.card h3 {
  overflow-wrap: anywhere;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
@media print {
  html {
    font-size: 12px;
  }
  body {
    line-height: 1.35;
  }
  .pageintro {
    margin: 0 0 12px;
  }
  .pageintro p {
    margin: 0;
  }
  .panel {
    padding: 12px;
    margin-bottom: 12px;
  }
  .field label {
    font-size: 9pt;
    margin-bottom: 4px;
  }
  .inputwrap input {
    font-size: 10pt;
  }
  .result dl > div {
    font-size: 10pt;
  }
  .result .unit {
    font-size: 11pt;
  }
  .result .fine {
    margin-top: 10px;
  }
  .result dl {
    margin: 10px 0;
  }
  .articlelayout .article h2 {
    margin: 0 0 8px;
  }
  .formula {
    padding: 10px;
    margin: 0;
  }
  .articlelayout {
    margin-top: 0;
  }
}

.guide-all {
  display: inline-block;
  text-decoration: none;
  white-space: nowrap;
}
.guide-start {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  background: #e3f2ed;
  border: 1px solid #c9e3d9;
  border-radius: 20px;
  padding: 30px;
  margin: 32px 0;
}
.guide-start h2 {
  font-size: 1.6rem;
  max-width: 590px;
  margin: 10px 0 14px;
}
.guide-start p {
  max-width: 620px;
  color: var(--muted);
  margin: 0;
}
.guide-start .primary {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  flex-shrink: 0;
}
.guide-topics {
  padding: 15px 0 8px;
}
.guide-topics .filters {
  margin-top: 14px;
}
.guide-topics a {
  text-decoration: none;
}
.guide-topics a:hover {
  background: var(--ink);
  color: white;
}
.guide-topic {
  padding: 30px 0;
  scroll-margin-top: 24px;
}
.guide-topic .sectiontop {
  margin-bottom: 20px;
}
.guide-topic .sectiontop p {
  margin-top: 12px;
}
.guide-topic .guidegrid {
  gap: 18px;
}
.guide-topic .guidecard {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}
.guide-topic .guidecard:hover {
  border-color: #72ac9e;
}
.guide-topic .guidecard p {
  margin-bottom: 0;
}
@media (max-width: 800px) {
  .guide-start {
    align-items: start;
    flex-direction: column;
    gap: 22px;
  }
}
@media (max-width: 650px) {
  .guide-all {
    margin-top: 18px;
  }
  .guide-start {
    padding: 24px;
  }
  .guide-topic .guidegrid {
    grid-template-columns: 1fr;
  }
}
.guide-start .primary {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.guide-all {
  max-width: 100%;
  white-space: normal;
}
.guide-start > div {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
