/* AquaTools – responsive overrides */
@media (max-width:1199.98px){
  .chip-a{left:-8px}.chip-b{right:-4px}
}

@media (max-width:991.98px){
  .hero{padding:2.6rem 0 3rem}
  .section{padding:2.8rem 0}
  .navbar-collapse{margin-top:.8rem;padding:.8rem;background:var(--surface);border:1px solid var(--border);border-radius:var(--r);box-shadow:var(--shadow)}
  .navbar .nav-link{padding:.8rem 1rem!important;min-height:48px;display:flex;align-items:center}
  .side-sticky{position:static}
  .chip-a{left:10px;bottom:-16px}.chip-b{right:10px;top:-14px}
  .sec-body{padding:1.3rem 1.4rem}
  .sec-head{padding:.9rem 1.2rem}
}

@media (max-width:767.98px){
  .section{padding:2rem 0}
  .section-sm{padding:1.5rem 0}
  .calc-card{padding:1.1rem}
  .card-pad{padding:1.1rem}
  .cta{padding:2.2rem 1.2rem;border-radius:20px}
  .page-hero{padding:2rem 0 1.5rem}
  .sec-card{border-radius:18px}
  .sec-head{padding:.8rem 1rem;gap:.65rem}
  .sec-body{padding:1rem 1rem}
  .result-card{padding:1.25rem 1.15rem}
  .result-card .big{font-size:2.2rem}
  .result-card .sub{padding:.65rem .85rem}
  .sub-panel{padding:.95rem;margin-top:.75rem}
  .tank-visual-wrap{padding:.95rem;min-height:180px}
  .shape-grid{gap:.5rem;margin-bottom:1rem}
  .shape-btn{padding:.75rem .45rem .65rem;font-size:.78rem}
  .shape-btn svg{width:36px;height:36px}
}

@media (max-width:575.98px){
  .container{padding-left:12px;padding-right:12px}
  .hero{padding:2.2rem 0 2.6rem}
  .section{padding:1.75rem 0}
  .section-sm{padding:1.2rem 0}
  .page-hero{padding:1.6rem 0 1.25rem}
  .page-hero h1{font-size:1.65rem;margin-bottom:.5rem}
  .page-hero p{font-size:.88rem;line-height:1.5}
  .page-hero .breadcrumb{margin-bottom:.9rem}
  .hero .btn-x,.cta .btn-x{width:100%}
  .btn-x{min-height:44px;padding:.65rem 1.1rem;border-radius:12px;font-size:.9rem}
  .float-chip{font-size:.75rem;padding:.4rem .65rem .4rem .5rem}.float-chip i{width:28px;height:28px}
  .tank-frame{padding:6px;border-radius:20px}.tank-frame img{border-radius:15px}
  .brand{font-size:1.15rem}.brand-mark{width:36px;height:36px}
  .filter-scroll{flex-wrap:nowrap;overflow-x:auto;padding-bottom:.4rem}.filter-chip{white-space:nowrap}
  .to-top{right:.8rem;bottom:.8rem}
  
  /* Calculator & Cards compact padding */
  .sec-card{margin-bottom:1rem!important;border-radius:16px}
  .sec-head{padding:.75rem .9rem;gap:.55rem}
  .sec-head h2{font-size:1.05rem;line-height:1.25}
  .sec-head p{font-size:.78rem}
  .sec-ico{width:38px;height:38px;border-radius:11px;font-size:1.05rem}
  .sec-body{padding:.85rem .85rem}
  
  .result-card{padding:1.1rem 1rem;margin-bottom:1rem!important;border-radius:16px}
  .result-card .big{font-size:1.95rem}
  .result-card .sub{padding:.55rem .75rem;border-radius:11px}
  .result-card .sub strong{font-size:1.05rem}
  .result-card .sub .label{font-size:.75rem}
  
  /* Input fields compact spacing */
  .form-control,.form-select{padding:.55rem .75rem;min-height:42px;font-size:.9rem;border-radius:10px}
  .form-label{font-size:.84rem;margin-bottom:.25rem}
  .input-group-text{padding:.55rem .7rem;font-size:.82rem}
  
  /* Buttons & Toggle */
  .btn-toggle-option{padding:.25rem .65rem;font-size:.78rem}
  .adv-toggle-btn{padding:.65rem .85rem;font-size:.86rem;margin-top:.85rem}
  .sub-panel{padding:.8rem;border-radius:12px;margin-top:.65rem}
  .sub-panel-title{font-size:.9rem;margin-bottom:.65rem}
  
  /* Breakdown & Visual */
  .tank-visual-wrap{padding:.8rem;border-radius:12px}
  .tank-glass-cutout{width:115px;height:95px}
  .breakdown-row{padding:.35rem 0;font-size:.85rem}
  .breakdown-row:last-child{padding-top:.5rem;font-size:.95rem}
  
  /* Prose / Educational guide compact */
  .prose{font-size:.92rem;line-height:1.65}
  .prose h2{font-size:1.25rem;margin-top:1.4rem;margin-bottom:.7rem}
  .prose h3{font-size:1.05rem;margin-top:1.4rem;margin-bottom:.55rem;padding-left:.65rem;border-left-width:3px}
  .prose p{margin-bottom:.85rem;font-size:.9rem}
  .prose ul{gap:.55rem;margin:.85rem 0 1.2rem}
  .prose ul li{padding-left:1.5rem;font-size:.88rem;line-height:1.5}
  .prose ol{gap:.65rem;margin:.85rem 0 1.2rem}
  .prose ol li{padding-left:2.35rem;font-size:.88rem;line-height:1.5}
  .prose ol li::before{width:24px;height:24px;font-size:.78rem}
  .prose .formula{padding:.95rem 1rem;font-size:.84rem;line-height:1.6}
  .prose .formula strong{min-width:130px}
  .prose .stat-box{padding:.85rem 1rem}
  .prose .stat-box strong{font-size:1.05rem}
  
  /* Table compact */
  .table-x th,.table-x td{padding:.45rem .55rem;font-size:.8rem}
  .accordion-button{padding:.75rem .95rem;font-size:.9rem}
  .accordion-body{padding:.75rem .95rem;font-size:.86rem}
}

@media (min-width:1600px){.container{max-width:1440px}}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
