
/* =========================================================
   Overcoat Size Calculator — SuitSizeCalculator.com
   Matches the Chest Size Calculator design system.
   Desktop: main content + empty 300px right ad sidebar.
   Medium screens: 300px sidebar with a narrower gap.
   Header switches to hamburger at 900px.
   Full logo remains through medium screens; small logo at <=600px.
   At 820px and below: one column; sidebar hidden.
   ========================================================= */

/* 1. Base */
html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  box-sizing: border-box;
  background-color: #F5F5F5;
  color: #333333;
  font-family: Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: inherit; }

html { scroll-behavior: smooth; scroll-padding-top: 85px; }
body { min-height: 100vh; line-height: 1.5; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(51, 51, 51, 0.35); outline-offset: 3px; }

/* 2. Fixed header and logo — same layout as sample */
header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 70px;
  padding: 0 20px;
  border-bottom: 2px solid #000000;
  background-color: #FFFFFF;
  color: #000000;
}

.header-container {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  min-width: 0;
}

.logo {
  display: flex;
  align-items: center;
  height: 100%;
  flex-shrink: 0;
  text-decoration: none;
}

.logo img {
  width: auto !important;
  height: 40px !important;
  max-height: 40px;
  object-fit: contain;
}
.logo-desktop { display: block; }
.logo-mobile { display: none; }
nav { height: 100%; }

nav > ul#nav-menu {
  display: flex;
  align-items: center;
  height: 100%;
  margin: 0;
  padding: 0 20px;
  gap: 20px;
  overflow-x: auto;
  background: transparent;
  color: #000000;
  list-style: none;
}
nav > ul#nav-menu li { flex-shrink: 0; }

nav > ul#nav-menu a {
  display: inline-flex;
  align-items: center;
  padding: 0.75em 1em;
  border-radius: 6px;
  color: #000000;
  font-size: 1.125rem;
  text-decoration: none;
  transition: background-color 0.2s;
}
nav > ul#nav-menu a:hover,
nav > ul#nav-menu a:focus-visible {
  background-color: #EAEAEA;
  color: #000000;
}

#hamburger {
  display: none;
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 2100;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
#hamburger span {
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: #000000;
}

/* 3. Main grid and reserved ad sidebar */
main.site-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 800px) 300px;
  align-items: stretch;
  justify-content: center;
  column-gap: 40px;
  width: 100%;
  max-width: 1200px;
  margin: 70px auto 0;
  padding: 40px 20px 0;
}
.site-content-layout .primary-content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  min-width: 0;
}
.site-content-layout .ad-sidebar {
  display: block;
  width: 300px;
  min-width: 300px;
  min-height: 100%;
  align-self: stretch;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.site-content-layout .sidebar-ad-slot {
  width: 300px;
  min-height: 600px;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

/* 4. Calculator card */
.site-content-layout .calculator {
  width: 100%;
  max-width: 500px;
  min-width: 0;
  margin: 0 auto;
  padding: 40px;
  border-radius: 8px;
  background-color: #FFFFFF;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.section-title {
  margin: 0 0 16px;
  color: #222222;
  font-size: 2.35em;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}
.calculator-intro {
  margin: 0 0 20px;
  color: #555555;
  font-size: 1.05rem;
  line-height: 1.55;
  text-align: center;
}
.calculator > .unit-note {
  margin: 0 0 23px;
  color: #666666;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

/* 5. Measurement system toggle */
.unit-fieldset {
  min-width: 0;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}
.unit-fieldset legend {
  margin-bottom: 8px;
  color: #333333;
  font-size: 16px;
  font-weight: 700;
}
.unit-toggle {
  display: flex;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid #B0B0B0;
  border-radius: 6px;
}
.unit-option {
  position: relative;
  display: flex;
  flex: 1 1 0;
  align-items: stretch;
  justify-content: center;
  min-width: 0;
  min-height: 52px;
  margin: 0;
  padding: 0;
  background-color: #F5F5F5;
  color: #4A4A4A;
  cursor: pointer;
  font-size: 16px;
  text-align: center;
  transition: background-color 0.2s, color 0.2s;
}
.unit-option + .unit-option { border-left: 1px solid #B0B0B0; }
.unit-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  opacity: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.unit-option span {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 52px;
  padding: 9px 8px;
  line-height: 1.3;
}
.unit-option:hover { background-color: #E5E5E5; }
.unit-option input:checked + span {
  background-color: #333333;
  color: #FFFFFF;
}
.unit-option input:focus-visible + span {
  outline: 3px solid rgba(51, 51, 51, 0.3);
  outline-offset: -3px;
}

/* 6. Form labels, inputs and selects */
.form-field { min-width: 0; margin: 0 0 19px; }
.form-field > label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 6px;
  color: #333333;
  font-size: 18px;
  line-height: 1.4;
}
.form-field > label strong { font-weight: 700; }
.field-unit { color: #666666; font-weight: 400; }
.required-mark { color: #A31818; font-weight: 700; }

.form-field input[type="number"],
.form-field select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #B0B0B0;
  border-radius: 6px;
  background-color: #FFFFFF;
  color: #333333;
  font-size: 18px;
  line-height: 1.4;
}
.form-field select {
  appearance: auto;
  padding-right: 10px;
  cursor: pointer;
}
.form-field input[type="number"]::placeholder { color: #888888; opacity: 1; }
.form-field input[type="number"]:focus,
.form-field select:focus {
  border-color: #333333;
  outline: 3px solid rgba(51, 51, 51, 0.18);
  outline-offset: 0;
}
.form-field input[aria-invalid="true"],
.form-field select[aria-invalid="true"] {
  border-color: #B00020;
  background-color: #FFF6F6;
}
.field-help {
  margin: 7px 0 0;
  color: #666666;
  font-size: 14px;
  line-height: 1.45;
}
.field-help a {
  color: #0066CC;
  text-decoration: none;
}
.field-help a:hover,
.field-help a:focus-visible {
  text-decoration: underline;
}

/* 7. Height — feet/inches or centimeters */
.height-fieldset {
  min-width: 0;
  margin: 4px 0 20px;
  padding: 0;
  border: 0;
}
.height-fieldset > legend {
  margin-bottom: 8px;
  color: #333333;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}
.height-fieldset > legend .info-button { vertical-align: middle; }
.height-wrapper {
  display: flex;
  align-items: flex-start;
  width: 100%;
  gap: 18px;
}
.height-field { flex: 1; min-width: 0; margin: 0; }
.height-field > label,
.height-metric-field > label {
  display: block;
  margin: 0 0 6px;
  color: #333333;
  font-size: 16px;
}
.height-metric-field { margin: 0; }
.height-wrapper[hidden],
.height-metric-field[hidden] { display: none !important; }

/* 8. Tooltip buttons */
.info-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-left: 3px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: #DDDDDD;
  color: #333333;
  cursor: help;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}
.info-button::after {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  z-index: 1002;
  width: 245px;
  max-width: calc(100vw - 40px);
  padding: 8px 11px;
  transform: translateX(-50%);
  border-radius: 4px;
  background: #4A4A4A;
  color: #FFFFFF;
  content: attr(data-tooltip);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}
.info-button:hover::after,
.info-button:focus-visible::after { opacity: 1; visibility: visible; }

/* 9. Input note, errors and buttons */
#unit-note {
  margin: 1px 0 20px;
  color: #555555;
  font-size: 15px;
  line-height: 1.55;
}
.error-message {
  margin: 0 0 20px;
  padding: 12px 16px;
  border: 1px solid #B00020;
  border-radius: 4px;
  background: #FFE5E5;
  color: #B00020;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.5;
}
.error-message[hidden] { display: none !important; }
.form-actions { display: grid; grid-template-columns: 1fr; gap: 0; }
.calc-btn,
.clear-btn {
  width: 100%;
  min-height: 54px;
  padding: 15px 16px;
  border: none;
  border-radius: 6px;
  color: #FFFFFF;
  cursor: pointer;
  font-size: 18px;
  transition: background-color 0.2s;
}
.calc-btn { background-color: #333333; font-size: 20px; font-weight: 700; }
.calc-btn:hover { background-color: #4A4A4A; }
.clear-btn { display: none; margin-top: 10px; background-color: #AAAAAA; }
.clear-btn:hover { background-color: #888888; }
.calc-btn:focus-visible,
.clear-btn:focus-visible {
  outline: 3px solid rgba(51, 51, 51, 0.25);
  outline-offset: 3px;
}

/* 10. Overcoat results */
.overcoat-result {
  margin-top: 25px;
  padding: 22px 12px 14px;
  border-top: 1px solid #DDDDDD;
  background: transparent;
  text-align: center;
}
.overcoat-result[hidden] { display: none !important; }
.result-eyebrow {
  margin: 0 0 10px;
  color: #333333;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}
.result-value {
  margin: 0 0 5px;
  color: #222222;
  font-size: 3.2em;
  font-weight: 700;
  line-height: 1.15;
  overflow-wrap: break-word;
  font-variant-numeric: tabular-nums;
}
.result-secondary {
  margin: 0 0 24px;
  color: #555555;
  font-size: 1.25em;
  font-weight: 600;
  line-height: 1.35;
}
.result-details {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0 auto;
  border-top: 1px solid #DDDDDD;
}
.result-detail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 2px;
  border-bottom: 1px solid #DDDDDD;
  text-align: left;
}
.result-detail-label {
  color: #555555;
  font-size: 15px;
  line-height: 1.4;
}
.result-detail-value {
  color: #222222;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-align: right;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.result-explanation,
.result-fit-note,
.result-midsection-note {
  margin: 16px 0 0;
  color: #333333;
  font-size: 15px;
  line-height: 1.55;
  text-align: left;
}
.result-fit-note,
.result-midsection-note { margin-top: 12px; }
.result-midsection-note { padding: 12px; border-radius: 5px; background: #F5F5F5; }
.result-brand-note {
  margin: 14px 0 0;
  color: #666666;
  font-size: 14px;
  line-height: 1.55;
  text-align: left;
}
.result-related {
  margin-top: 20px;
  padding: 16px 0 0;
  border-top: 1px solid #DDDDDD;
  text-align: left;
}
.result-related-title {
  margin: 0 0 8px;
  color: #333333;
  font-size: 16px;
  font-weight: 700;
}
.result-related p:not(.result-related-title) {
  margin: 0;
  color: #555555;
  font-size: 14px;
  line-height: 1.6;
}
.result-related a { color: #0066CC; text-decoration: none; }
.result-related a:hover,
.result-related a:focus-visible { text-decoration: underline; }

/* 11. Editorial guide */
.site-content-layout .measurement-guide,
.site-content-layout .measurement-guide.guide-card {
  width: 100%;
  max-width: 800px;
  margin: 40px auto 50px;
  padding: 30px;
  border: 1px solid #B0B0B0;
  border-radius: 8px;
  background-color: #FFFFFF;
}
.measurement-guide h2 {
  margin: 0 0 20px;
  color: #222222;
  font-size: 2.25em;
  line-height: 1.2;
  text-align: center;
}
.measurement-guide h2:not(:first-child) { margin-top: 46px; }
.measurement-guide h3 {
  margin: 30px 0 12px;
  color: #222222;
  font-size: 1.55em;
  line-height: 1.3;
}
.measurement-guide p {
  margin: 0 0 16px;
  color: #333333;
  font-size: 18px;
  line-height: 1.65;
}
.measurement-guide ul,
.measurement-guide ol {
  margin: 0 0 18px 24px;
  padding: 0;
  font-size: 18px;
  line-height: 1.65;
}
.measurement-guide li { margin-bottom: 8px; }
.measurement-guide a { color: #0066CC; text-decoration: none; }
.measurement-guide a:hover,
.measurement-guide a:focus-visible { text-decoration: underline; }
.measurement-guide .steps-list { padding-left: 4px; }
.measurement-guide .steps-list li { padding-left: 4px; margin-bottom: 12px; }
.measurement-guide .steps-list li::marker { color: #333333; font-weight: 700; }
.measurement-guide .sizing-note {
  padding: 13px 15px;
  border: 1px solid #DDDDDD;
  border-radius: 6px;
  background: #FAFAFA;
}

/* 12. Tables */
.measurement-guide .table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  margin: 15px 0 22px;
  -webkit-overflow-scrolling: touch;
}
.measurement-guide table { width: 100%; border-collapse: collapse; font-size: 16px; }
.measurement-guide th,
.measurement-guide td {
  padding: 11px 12px;
  border: 1px solid #B0B0B0;
  text-align: left;
  vertical-align: middle;
}
.measurement-guide th { background: #EEEEEE; color: #222222; font-weight: 700; }
.measurement-guide td { background: #FFFFFF; color: #333333; }
.measurement-guide tbody tr:nth-child(even) td { background: #FAFAFA; }
.measurement-guide tbody tr:hover td { background: #F2F2F2; }
.measurement-guide th:first-child,
.measurement-guide td:first-child { font-weight: 600; }

/* 13. FAQ accordion */
.measurement-guide .faq-list { margin: 0; padding: 0; }
.measurement-guide .faq-list details { padding: 14px 0; border-bottom: 1px solid #DDDDDD; }
.measurement-guide .faq-list details:first-child { border-top: 1px solid #DDDDDD; }
.measurement-guide .faq-list summary {
  color: #222222;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}
.measurement-guide .faq-list summary:hover { color: #000000; }
.measurement-guide .faq-list details[open] summary { margin-bottom: 12px; }
.measurement-guide .faq-list p { margin: 0; color: #444444; font-size: 18px; line-height: 1.65; }
.measurement-guide .faq-list p + p { margin-top: 12px; }
.measurement-guide .related-tools-list { margin-top: 12px; padding-left: 4px; }
.measurement-guide .related-tools-list li { margin-bottom: 12px; line-height: 1.65; }
.measurement-guide .related-tools-list a { font-weight: 500; }

/* 14. Other calculators — two columns on desktop */
.site-content-layout .other-calculators {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 60px;
  padding: 0;
}
.other-calculators h2,
.other-calculators h3 {
  width: 100%;
  margin: 0 0 22px;
  color: #222222;
  font-size: 2.2em;
  line-height: 1.25;
  text-align: center;
}
.calculator-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.other-calculators .calc-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
  height: 260px;
  padding: 35px 22px 16px;
  border: 1px solid #B0B0B0;
  border-radius: 8px;
  background: #FFFFFF;
  color: #333333;
  font-size: 20px;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: break-word;
  transition: background-color 0.3s, box-shadow 0.3s;
}
.other-calculators .calc-card:hover {
  background: #E8E8E8;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.other-calculators .calc-card img {
  width: 62% !important;
  max-height: 105px;
  border-radius: 6px 6px 0 0;
  object-fit: contain !important;
}
.calc-card-title {
  max-width: 100%;
  margin-top: 14px;
  color: #333333;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.25;
}

/* 15. Full-width footer */
footer {
  width: 100%;
  margin: 0;
  padding: 30px 20px;
  background: #4A4A4A;
  color: #FFFFFF;
  text-align: center;
}
.footer-links {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.footer-links .column { flex: 1; min-width: 150px; margin: 10px; }
.footer-links h3 {
  margin: 0 0 15px;
  color: #FFFFFF;
  font-size: 1.15rem;
  font-weight: 700;
}
.footer-links ul { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin-bottom: 5px; }
.footer-links a { color: #FFFFFF; text-decoration: none; }
.footer-links a:hover,
.footer-links a:focus-visible { text-decoration: underline; }
.copyright { margin-bottom: 0; color: #FFFFFF; font-size: 14px; }

/* 16. Anchor positions */
#calculator-title,
#overcoat-size-chart,
#overcoat-length-chart,
#overcoat-faq,
#other-calculators { scroll-margin-top: 85px; }

/* 17. Keep the 300px sidebar on medium screens (821–1180px) */
@media (min-width: 821px) and (max-width: 1180px) {
  main.site-content-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    column-gap: 20px;
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* 18. Switch to one column at 820px and below */
@media (max-width: 820px) {
  main.site-content-layout {
    grid-template-columns: minmax(0, 1fr);
    justify-content: center;
    gap: 0;
    max-width: 850px;
    margin: 70px auto 0;
    padding: 25px 20px 0;
  }
  .site-content-layout .ad-sidebar,
  .site-content-layout .sidebar-ad-slot { display: none; }
  .site-content-layout .measurement-guide,
  .site-content-layout .measurement-guide.guide-card { max-width: 800px; }
}

/* 19. Hamburger navigation at 900px and below;
   keep the full desktop logo visible at medium widths. */
@media (max-width: 900px) {
  #hamburger { display: flex; }
  nav > ul#nav-menu { display: none; }
  nav > ul#nav-menu.active {
    display: flex;
    position: fixed;
    top: 70px;
    right: 0;
    z-index: 1999;
    width: 260px;
    max-width: 100%;
    height: auto;
    max-height: calc(100vh - 70px);
    max-height: calc(100dvh - 70px);
    margin: 0;
    padding: 10px 0;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 0 0 0 8px;
    background: rgba(51, 51, 51, 0.95);
    box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.2);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    animation: slideIn 0.3s ease-out forwards;
  }
  nav > ul#nav-menu.active li { width: 100%; }
  nav > ul#nav-menu.active li a {
    display: block;
    width: 100%;
    padding: 15px 20px;
    color: #FFFFFF;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
    text-transform: uppercase;
  }
  nav > ul#nav-menu.active li:not(:last-child) a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
  nav > ul#nav-menu.active li a:hover,
  nav > ul#nav-menu.active li a:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
  }
  @keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
  }
}

/* 20. Phones: only here switch to the smaller logo. */
@media (max-width: 600px) {
  .logo-desktop { display: none; }
  .logo-mobile { display: block; }

  main.site-content-layout {
    max-width: none;
    margin-top: 70px;
    padding: 12px 10px 0;
  }
  .site-content-layout .calculator {
    max-width: none;
    padding: 20px 12px;
  }
  .section-title { font-size: 1.85em; line-height: 1.2; }
  .calculator-intro { margin-bottom: 16px; font-size: 1rem; line-height: 1.5; }
  .calculator > .unit-note { margin-bottom: 20px; font-size: 13px; }
  .unit-option { min-height: 48px; font-size: 15px; }
  .unit-option span { min-height: 48px; padding: 8px 5px; }
  .unit-fieldset legend { font-size: 15px; }
  .form-field > label { font-size: 16px; }
  .form-field input[type="number"],
  .form-field select { min-height: 50px; padding: 12px; font-size: 16px; }
  .field-help { font-size: 13px; }
  .height-fieldset { margin-bottom: 18px; }
  .height-fieldset > legend { font-size: 16px; }
  .height-wrapper { gap: 12px; }
  .height-field > label,
  .height-metric-field > label { font-size: 15px; }
  .info-button { width: 20px; height: 20px; font-size: 12px; }
  .info-button::after { width: 210px; font-size: 12px; }
  #unit-note { font-size: 14px; }
  .calc-btn,
  .clear-btn { padding: 14px; font-size: 1rem; }
  .overcoat-result { margin-top: 22px; padding: 18px 5px 12px; }
  .result-eyebrow { font-size: 18px; }
  .result-value { font-size: 2.65em; }
  .result-secondary { margin-bottom: 20px; font-size: 1.15em; }
  .result-detail { gap: 10px; }
  .result-detail-label,
  .result-detail-value { font-size: 14px; }
  .result-explanation,
  .result-fit-note,
  .result-midsection-note { font-size: 14px; }
  .result-brand-note { font-size: 13px; }
  .result-related-title { font-size: 15px; }
  .site-content-layout .measurement-guide,
  .site-content-layout .measurement-guide.guide-card {
    max-width: none;
    margin: 20px auto 40px;
    padding: 22px 16px;
  }
  .measurement-guide h2 { font-size: 1.8em; }
  .measurement-guide h2:not(:first-child) { margin-top: 38px; }
  .measurement-guide h3 { font-size: 1.35em; }
  .measurement-guide p,
  .measurement-guide ul,
  .measurement-guide ol { font-size: 16px; }
  .measurement-guide .steps-list li { margin-bottom: 10px; }
  .measurement-guide th,
  .measurement-guide td { padding: 9px 8px; font-size: 14px; }
  .measurement-guide .faq-list summary,
  .measurement-guide .faq-list p { font-size: 16px; }
  .site-content-layout .other-calculators { max-width: none; margin: 30px auto 40px; }
  .calculator-cards { grid-template-columns: 1fr; gap: 12px; }
  .other-calculators h2,
  .other-calculators h3 { font-size: 1.8em; }
  .other-calculators .calc-card {
    max-width: 320px;
    height: 240px;
    padding: 30px 22px 16px;
    justify-self: center;
  }
  .other-calculators .calc-card img { width: 58% !important; max-height: 95px; }
  footer { padding: 30px 15px; }
  .footer-links { gap: 15px; }
  .footer-links .column { flex: 1 1 100%; margin: 10px 0; }
  .footer-links h3 { font-size: 1.1rem; }
}

/* 21. Very small screens */
@media (max-width: 380px) {
  header { padding: 0 12px; }
  #hamburger { right: 12px; }
  .site-content-layout .calculator { padding-left: 9px; padding-right: 9px; }
  .section-title { font-size: 1.7em; }
  .calculator-intro { font-size: 15px; }
  .form-field > label { font-size: 15px; }
  .height-wrapper { gap: 10px; }
  .height-field > label { font-size: 14px; }
  .result-value { font-size: 2.35em; }
  .result-secondary { font-size: 1.05em; }
  .result-detail { align-items: flex-start; flex-direction: column; gap: 3px; }
  .result-detail-value { text-align: left; }
  .site-content-layout .measurement-guide,
  .site-content-layout .measurement-guide.guide-card { padding: 20px 12px; }
  .measurement-guide h2 { font-size: 1.65em; }
  .measurement-guide th,
  .measurement-guide td { padding: 8px 7px; font-size: 13px; }
}

/* 22. Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
