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


/* VALG AV HVA ELEVEN KJENNER */

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

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 10px;
}

.circle-button {
  min-height: 88px;

  padding: 12px 14px;

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

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

  text-align: left;

  cursor: pointer;
}

.circle-button strong,
.circle-button span {
  display: block;
}

.circle-button strong {
  margin-bottom: 4px;

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

.circle-button span {
  color: var(--muted);

  font-size: 12px;
  line-height: 1.35;
}

.circle-button.active {
  border-color: var(--accent);

  box-shadow: inset 0 0 0 1px var(--accent);
}


/* FORKLARING AV BEGREPENE */

.circle-explainer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 10px;

  margin-bottom: 26px;
}

.circle-explainer-item {
  padding: 14px 16px;

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

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

.circle-explainer-item strong {
  display: block;

  margin-bottom: 4px;

  color: var(--text);

  font-size: 14px;
}

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

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


/* INPUT */

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

  display: grid;
}

.circle-inputs[hidden] {
  display: none;
}

.circle-inputs label {
  display: block;

  margin-bottom: 8px;

  color: var(--muted);

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

.circle-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;
}

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

  opacity: .7;
}


/* HOVER */

@media (hover: hover) and (pointer: fine) {
  .circle-button:hover {
    border-color: var(--accent);
  }
}


/* DARK MODE */

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


/* MOBIL */

@media (max-width: 700px) {

  .circle-picker {
    grid-template-columns: 1fr;
  }

  .circle-explainer {
    grid-template-columns: 1fr;
  }

  .circle-inputs {
    width: min(100%, 240px);
  }

}


/* =========================================================
   SIRKELVISUALISERING
   ========================================================= */

.circle-solution-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 24px;
  align-items: start;
}

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

.circle-visual-panel {
  position: sticky;
  top: 24px;

  padding: 20px;

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

  background: var(--surface);
}

.circle-visual-eyebrow {
  margin: 0 0 6px;

  color: var(--muted);

  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

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

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

.circle-svg {
  display: block;

  width: 100%;
  height: auto;
}

.circle-shape {
  fill: var(--surface-soft);
  stroke: var(--accent);
  stroke-width: 4;
}

.circle-center {
  fill: var(--accent);
}

.circle-diameter-line {
  stroke: var(--text);
  stroke-width: 2;
}

.circle-radius-line {
  stroke: var(--accent);
  stroke-width: 3;
}

.circle-label {
  fill: var(--text);

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

.circle-label-radius {
  text-anchor: start;
}

.circle-label-diameter {
  text-anchor: middle;
}

.circle-label-center {
  text-anchor: start;
}

.circle-label-circumference {
  text-anchor: middle;
}

.circle-visual-help {
  margin-top: 12px;

  padding-top: 14px;

  border-top: 1px solid var(--line);
}

.circle-visual-help p {
  margin: 0 0 9px;

  color: var(--muted);

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

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

.circle-not-scale {
  margin: 14px 0 0;

  color: var(--muted);

  font-size: 11px;
  line-height: 1.4;
}


@media (max-width: 900px) {

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

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

}
