/* =========================================================
   VOLUM
   Kun styles som er spesifikke for dette verktøyet.
   Felles verktøystil styres av school-tool-standard.css
   ========================================================= */


/* FORKLARING */

.volume-explainer {
  width: min(100%, 620px);
  margin: 0 auto 26px;

  padding: 14px 16px;

  border: 1px solid var(--line);
  border-radius: 9px;

  background: var(--surface-soft);
}

.volume-explainer strong,
.volume-explainer span {
  display: block;
}

.volume-explainer strong {
  margin-bottom: 4px;

  color: var(--text);

  font-size: 14px;
}

.volume-explainer span {
  color: var(--muted);

  font-size: 13px;
  line-height: 1.45;
}


/* INPUTS */

.volume-inputs {
  width: min(100%, 680px);
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 200px));

  gap: 18px;

  justify-content: center;
}

.volume-inputs label {
  display: block;

  margin-bottom: 8px;

  color: var(--muted);

  font-size: 13px;
  font-weight: 700;
}

.volume-inputs input {
  width: 100%;
  height: 50px;

  padding: 0 14px;

  border: 1px solid var(--line);
  border-radius: 8px;

  background: var(--bg);
  color: var(--text);

  font-size: 18px;
  font-weight: 700;
}

.volume-inputs input::placeholder {
  font-size: 14px;
  font-weight: 400;

  opacity: .7;
}


/* HOVER */

@media (hover: hover) and (pointer: fine) {
  .volume-inputs input:hover {
    border-color: var(--accent);
  }
}


/* DARK MODE */

@media (prefers-color-scheme: dark) {
  .volume-inputs input {
    color-scheme: dark;
  }
}


/* MOBIL */

@media (max-width: 700px) {

  .volume-inputs {
    grid-template-columns: 1fr;
  }

  .volume-inputs > div {
    width: min(100%, 240px);

    margin: 0 auto;
  }

}

/* =========================================================
   VOLUMVISUALISERING
   ========================================================= */

.solution-section .tool-width {
  max-width: 1080px;
}

.volume-solution-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 28px;
  align-items: start;
}

.volume-solution-steps {
  min-width: 0;
}

.volume-visual-panel {
  position: sticky;
  top: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.volume-visual-eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.volume-visual-panel h3 {
  margin: 0 0 18px;
}

.volume-svg-wrap {
  width: 100%;
  overflow: hidden;
}

.volume-svg {
  display: block;
  width: 100%;
  height: auto;
}

.volume-base {
  fill: var(--accent);
  fill-opacity: .12;
  stroke: var(--accent);
  stroke-width: 2;
}

.volume-box-line {
  fill: none;
  stroke: var(--text);
  stroke-width: 2.5;
  stroke-linejoin: round;
}

.volume-label {
  fill: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.volume-visual-help {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.volume-visual-help p {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.5;
}

.volume-visual-help p:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .solution-section .tool-width {
    max-width: 820px;
  }

  .volume-solution-layout {
    grid-template-columns: 1fr;
  }

  .volume-visual-panel {
    position: static;
  }
}
