/* Page-specific styles for tank-volume-calculator.html */
  #tank-calc-root {
    --deep: #0D1026;
    --deep-2: #171B3D;
    --deep-3: #06070F;
    --leaf: #35AD51;
    --leaf-dark: #248238;
    --leaf-light: #8FD9A1;
    --sand: #F6F1E6;
    --sand-line: #E1D8C4;
    --ink: #12142A;
    --ink-soft: #565A72;
    --paper: #FFFFFF;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--paper);
  }
  #tank-calc-root *{ box-sizing: border-box; }
  #tank-calc-root h1, #tank-calc-root h2, #tank-calc-root h3, #tank-calc-root h4 {
    font-family: 'Fraunces', Georgia, serif; font-weight: 600; letter-spacing: -0.01em; color: var(--deep); margin: 0;
  }
  #tank-calc-root a { text-decoration: none; }
  #tank-calc-root section { padding: 60px 40px; display: block !important; }
  #tank-calc-root .kicker {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
    color: var(--leaf-dark); margin: 0 0 16px; background: rgba(53,173,81,0.12); padding: 7px 14px 7px 10px; border-radius: 20px;
  }
  #tank-calc-root .kicker::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--leaf); }

  /* ============ PAGE HEADER ============ */
  #tank-calc-root .page-header {
    position: relative; overflow: hidden;
    background: radial-gradient(130% 150% at 20% 0%, #142542 0%, var(--deep) 45%, var(--deep-3) 100%);
    padding: 76px 40px 40px; text-align: center;
  }
  #tank-calc-root .page-header h1 { font-size: clamp(28px, 4vw, 42px); color: #fff; line-height: 1.2; }
  #tank-calc-root .page-header p { max-width: 580px; margin: 16px auto 0; color: #B9C1D6; font-size: 14.5px; line-height: 1.7; }

  #tank-calc-root .about-section { padding: 44px 40px; }
  #tank-calc-root .about-copy { max-width: 720px; text-align: left; }
  #tank-calc-root .about-copy p { font-size: 14px; color: var(--ink-soft); line-height: 1.8; margin: 0 0 14px; }
  #tank-calc-root .about-copy p:last-child { margin-bottom: 0; }
  #tank-calc-root .about-copy a { color: var(--leaf-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
  #tank-calc-root .about-copy a:hover { color: var(--leaf); }

  /* ============ FAQ ============ */
  #tank-calc-root .faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
  #tank-calc-root .faq-item {
    background: var(--paper); border: 1px solid var(--sand-line); border-radius: 14px; padding: 4px 20px;
  }
  #tank-calc-root .faq-item summary {
    cursor: pointer; list-style: none; padding: 16px 28px 16px 0; position: relative;
    font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 15px; color: var(--deep);
  }
  #tank-calc-root .faq-item summary::-webkit-details-marker { display: none; }
  #tank-calc-root .faq-item summary::after {
    content: ''; position: absolute; right: 2px; top: 50%; width: 10px; height: 10px;
    border-right: 2px solid var(--leaf-dark); border-bottom: 2px solid var(--leaf-dark);
    transform: translateY(-65%) rotate(45deg); transition: transform .2s ease;
  }
  #tank-calc-root .faq-item[open] summary::after { transform: translateY(-35%) rotate(-135deg); }
  #tank-calc-root .faq-item p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.75; margin: 0 0 18px; }
  #tank-calc-root .faq-item p a { color: var(--leaf-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
  #tank-calc-root .faq-item p a:hover { color: var(--leaf); }

  /* ============ CALC SECTION LAYOUT ============ */
  #tank-calc-root .calc-section { }
  #tank-calc-root .calc-section.bg-sand { background: var(--sand); }
  #tank-calc-root .calc-section.bg-paper { background: var(--paper); }
  #tank-calc-root .calc-section-head { max-width: 760px; margin: 0 auto 32px; text-align: center; }
  #tank-calc-root .calc-section-head .num-badge {
    width: 40px; height: 40px; border-radius: 50%; background: var(--deep); color: var(--leaf-light);
    display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
    font-family: 'Fraunces', Georgia, serif; font-size: 16px; font-weight: 700;
  }
  #tank-calc-root .calc-section-head h2 { font-size: clamp(22px, 3vw, 28px); }
  #tank-calc-root .calc-section-head p { font-size: 13.8px; color: var(--ink-soft); margin: 10px auto 0; max-width: 560px; line-height: 1.6; }

  #tank-calc-root .calc-layout {
    max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: start;
  }
  #tank-calc-root .input-panel {
    background: var(--paper); border-radius: 20px; padding: 28px; border: 1px solid var(--sand-line);
  }
  #tank-calc-root .input-panel h3 { font-size: 14px; margin-bottom: 16px; }
  #tank-calc-root .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
  #tank-calc-root .field { margin-bottom: 12px; }
  #tank-calc-root .field:last-child { margin-bottom: 0; }
  #tank-calc-root .field label {
    display: block; font-size: 11px; font-weight: 700; color: var(--ink-soft); margin-bottom: 5px;
    text-transform: uppercase; letter-spacing: .03em;
  }
  #tank-calc-root .field input, #tank-calc-root .field select {
    width: 100%; font-family: 'Inter', sans-serif; font-size: 14px; padding: 10px 12px; border-radius: 9px;
    border: 1.5px solid var(--sand-line); background: var(--sand); color: var(--ink);
  }
  #tank-calc-root .field input:focus, #tank-calc-root .field select:focus { outline: none; border-color: var(--leaf); }
  #tank-calc-root .field-note { font-size: 10.5px; color: var(--ink-soft); margin-top: 3px; }
  #tank-calc-root .bag-size-input { display: flex; gap: 8px; }
  #tank-calc-root .bag-size-input input { flex: 1 1 auto; }
  #tank-calc-root .bag-size-input select { flex: 0 0 auto; width: auto; min-width: 118px; }
  #tank-calc-root .footprint-readout {
    background: #EAF3DE; border-radius: 12px; padding: 12px 14px; font-size: 12.5px; color: var(--leaf-dark);
    margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; font-weight: 600;
  }
  #tank-calc-root .footprint-readout b { font-family: 'Fraunces', Georgia, serif; font-size: 15px; }

  /* ============ PRESET CHIPS ============ */
  #tank-calc-root .preset-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
  #tank-calc-root .preset-chip {
    font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600; color: var(--leaf-dark);
    background: rgba(53,173,81,0.10); border: 1.5px solid rgba(53,173,81,0.25); border-radius: 999px;
    padding: 7px 13px; cursor: pointer; transition: background .15s ease, border-color .15s ease;
  }
  #tank-calc-root .preset-chip:hover { background: rgba(53,173,81,0.2); border-color: var(--leaf); }
  #tank-calc-root .preset-chip.active { background: var(--leaf); border-color: var(--leaf); color: #fff; }
  #tank-calc-root .preset-label { font-size: 11px; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 8px; }

  /* ============ RESULTS ============ */
  #tank-calc-root .card {
    background: var(--paper); border-radius: 20px; padding: 26px 28px; border: 1px solid var(--sand-line);
  }
  #tank-calc-root .card h3 { font-size: 14px; margin-bottom: 18px; }
  #tank-calc-root .spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
  #tank-calc-root .spec-item { background: var(--sand); border-radius: 12px; padding: 16px; }
  #tank-calc-root .spec-item .val { font-family: 'Fraunces', Georgia, serif; font-size: 22px; font-weight: 700; color: var(--deep); line-height: 1.1; }
  #tank-calc-root .spec-item .lbl { font-size: 11px; color: var(--ink-soft); margin-top: 5px; line-height: 1.4; }
  #tank-calc-root .spec-item.hi { background: linear-gradient(135deg, var(--leaf) 0%, var(--leaf-dark) 100%); }
  #tank-calc-root .spec-item.hi .val, #tank-calc-root .spec-item.hi .lbl { color: #fff; }
  #tank-calc-root .card-note { font-size: 12px; color: var(--ink-soft); margin-top: 16px; line-height: 1.6; font-style: italic; }

  #tank-calc-root .bag-row {
    display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed var(--sand-line);
    font-size: 13.5px;
  }
  #tank-calc-root .bag-row:last-of-type { border-bottom: none; }
  #tank-calc-root .bag-row .lbl { color: var(--ink-soft); }
  #tank-calc-root .bag-row .amt { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

  @media (max-width: 900px) {
    #tank-calc-root .calc-layout { grid-template-columns: 1fr; }
  }
  @media (max-width: 560px) {
    #tank-calc-root .spec-grid { grid-template-columns: 1fr 1fr; }
    #tank-calc-root .field-row { grid-template-columns: 1fr; }
  }

  /* ============ BUILD SUMMARY / HERO CARD ============ */
  #tank-calc-root .build-summary-card {
    background: radial-gradient(130% 160% at 20% 0%, #1B2444 0%, var(--deep) 55%, #06070F 100%);
    border-radius: 20px; padding: 26px 26px 22px; box-shadow: 0 24px 48px -20px rgba(0,0,0,0.5);
  }
  #tank-calc-root .bsc-top-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
  #tank-calc-root .bsc-top-row h3 { color: #fff; margin: 0; }
  #tank-calc-root .bsc-icon {
    width: 40px; height: 40px; border-radius: 11px; background: rgba(53,173,81,0.18);
    display: flex; align-items: center; justify-content: center; flex: none;
  }
  #tank-calc-root .bsc-icon svg { width: 20px; height: 20px; color: var(--leaf-light); }
  #tank-calc-root .bsc-progress { display: flex; gap: 6px; margin-bottom: 22px; }
  #tank-calc-root .bsc-seg {
    flex: 1; height: 6px; border-radius: 999px; background: rgba(255,255,255,0.12);
    transition: background .25s ease;
  }
  #tank-calc-root .bsc-seg.filled { background: linear-gradient(90deg, var(--leaf) 0%, var(--leaf-light) 100%); }

  #tank-calc-root .bsc-hero { margin-bottom: 22px; }
  #tank-calc-root .bsc-hero-val {
    font-family: 'Fraunces', Georgia, serif; font-weight: 700; color: #fff;
    font-size: clamp(44px, 6vw, 64px); line-height: 1; letter-spacing: -0.01em;
  }
  #tank-calc-root .bsc-hero-lbl {
    font-size: 13px; font-weight: 600; color: var(--leaf-light); margin-top: 8px;
  }
  #tank-calc-root .bsc-hero-tag {
    display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--deep);
    background: linear-gradient(135deg, var(--leaf-light) 0%, var(--leaf) 100%); padding: 5px 12px; border-radius: 999px;
    margin-top: 12px;
  }

  #tank-calc-root .bsc-mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  #tank-calc-root .bsc-mini-item {
    background: rgba(255,255,255,0.055); border: 1px solid rgba(255,255,255,0.07); border-radius: 12px; padding: 13px 14px;
  }
  #tank-calc-root .bsc-mini-item .v { font-family: 'Fraunces', Georgia, serif; font-weight: 700; font-size: 18px; color: #fff; line-height: 1.15; }
  #tank-calc-root .bsc-mini-item .l { font-size: 10.5px; color: #A6ADC6; margin-top: 4px; line-height: 1.35; }

  #tank-calc-root .bsc-note { font-size: 12px; color: #8E96B3; margin-top: 18px; line-height: 1.6; font-style: italic; }

  @media (max-width: 560px) {
    #tank-calc-root .bsc-mini-grid { grid-template-columns: 1fr 1fr; }
  }
