.gt-shell {
  min-height: 100vh;
  box-sizing: border-box;

  padding: 28px 18px 70px;

  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(255, 255, 255, 0.055),
      transparent 30%
    ),
    #000;

  color: #fff;
}


/* HEADER */

.gt-header {
  width: min(94vw, 1100px);
  margin: 0 auto;

  text-align: center;
}

.gt-logo {
  display: block;

  width: min(22vw, 190px);
  height: auto;

  margin: 0 auto;
}

.gt-eyebrow {
  margin-top: 22px;

  color: #777;

  font-size: 11px;
  font-weight: 700;

  letter-spacing: 3px;
}

.gt-header h1 {
  margin: 8px 0 0;

  font-size: clamp(34px, 5vw, 58px);
  font-weight: 700;

  letter-spacing: -1px;
}

.gt-tagline {
  margin: 12px 0 0;

  font-size: clamp(17px, 2.2vw, 23px);
  font-weight: 700;
}

.gt-intro {
  max-width: 760px;

  margin: 16px auto 0;

  color: #aaa;

  font-size: 15px;
  line-height: 1.6;
}


/* WORKSPACE */

.gt-workspace {
  width: min(94vw, 1100px);

  margin: 48px auto 0;

  display: grid;
  grid-template-columns: 1fr 1fr;

  gap: 18px;
}

.gt-panel {
  overflow: hidden;

  border: 1px solid #343434;
  border-radius: 16px;

  background:
    linear-gradient(
      145deg,
      #111,
      #080808
    );
}

.gt-panel-title {
  padding: 18px 22px;

  border-bottom: 1px solid #2a2a2a;

  color: #ddd;

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

  letter-spacing: 1.5px;
  text-transform: uppercase;
}


/* DIAGRAM */

.gt-diagram-wrap {
  min-height: 420px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;

  box-sizing: border-box;
}

.gt-diagram {
  width: 100%;
  height: auto;
}

.gt-diagram polygon {
  fill: none;

  stroke: #ddd;
  stroke-width: 2.2;

  vector-effect: non-scaling-stroke;
}

.gt-diagram text {
  fill: #aaa;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  font-weight: 700;
}

#angleALabel,
#angleBLabel,
#angleCLabel {
  font-size: 14px;
}

.gt-diagram-note {
  padding: 0 22px 20px;

  color: #666;

  font-size: 12px;
  text-align: center;
}


/* INPUT */

.gt-input-panel {
  padding-bottom: 22px;
}

.gt-help {
  margin: 20px 22px 0;

  color: #888;

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

.gt-input-grid {
  padding: 20px 22px 0;

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

  gap: 15px;
}

.gt-field {
  display: block;
}

.gt-field > span {
  display: block;

  margin-bottom: 7px;

  color: #aaa;

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

.gt-field input {
  width: 100%;

  box-sizing: border-box;

  padding: 12px 13px;

  border: 1px solid #3c3c3c;
  border-radius: 8px;

  outline: none;

  background: #050505;
  color: #fff;

  font-size: 18px;
}

.gt-field input:focus {
  border-color: #888;
  background: #0a0a0a;
}

.gt-input-with-unit {
  position: relative;
}

.gt-input-with-unit input {
  padding-right: 44px;
}

.gt-input-with-unit span {
  position: absolute;

  right: 14px;
  top: 50%;

  transform: translateY(-50%);

  color: #777;

  font-size: 15px;
}


/* ACTIONS */

.gt-actions {
  padding: 22px 22px 0;

  display: flex;
  gap: 10px;
}

.gt-primary-button,
.gt-secondary-button {
  min-height: 45px;

  padding: 11px 18px;

  border-radius: 8px;

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

  cursor: pointer;
}

.gt-primary-button {
  flex: 1;

  border: 1px solid #fff;

  background: #fff;
  color: #000;
}

.gt-secondary-button {
  border: 1px solid #555;

  background: transparent;
  color: #fff;
}

.gt-status {
  min-height: 20px;

  margin: 14px 22px 0;

  color: #aaa;

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

/* YOUR SOLUTION */

.gt-solution-card {
  margin-top: 22px;
  padding: 24px;

  border: 1px solid #303030;
  border-radius: 14px;

  background:
    linear-gradient(
      145deg,
      #101010,
      #080808
    );
}

.gt-solution-placeholder {
  margin: 0;

  color: #777;

  font-size: 14px;
  line-height: 1.6;
}

.gt-solution-entered {
  margin-bottom: 22px;
  padding-bottom: 16px;

  border-bottom: 1px solid #2d2d2d;

  color: #aaa;

  font-size: 14px;
  line-height: 1.6;
}

.gt-solution-method {
  margin-bottom: 22px;
  padding: 14px 16px;

  border: 1px solid #383838;
  border-radius: 9px;

  background: #070707;
}

.gt-solution-method span {
  display: block;

  color: #666;

  font-size: 10px;
  font-weight: 700;

  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.gt-solution-method strong {
  display: block;

  margin-top: 5px;

  color: #fff;

  font-size: 17px;
}

.gt-step {
  margin-top: 22px;
}

.gt-step-number {
  color: #666;

  font-size: 11px;
  font-weight: 700;

  letter-spacing: 1.5px;
}

.gt-step-title {
  margin-top: 5px;

  color: #fff;

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

.gt-step-formula {
  margin-top: 8px;

  color: #ccc;

  font-family: Consolas, monospace;
  font-size: 15px;
  line-height: 1.6;
}

.gt-step-note {
  margin-top: 6px;

  color: #777;

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

/* TRIANGLE COMBINATIONS */

.gt-combination-grid {
  margin-top: 22px;

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

  gap: 14px;
}

.gt-combination-card {
  padding: 22px;

  border: 1px solid #303030;
  border-radius: 14px;

  background:
    linear-gradient(
      145deg,
      #101010,
      #080808
    );
}

.gt-combination-code {
  display: inline-block;

  padding: 6px 10px;

  border: 1px solid #555;
  border-radius: 7px;

  background: #050505;
  color: #fff;

  font-family: Consolas, monospace;
  font-size: 18px;
  font-weight: 700;

  letter-spacing: 2px;
}

.gt-combination-card h3 {
  margin: 15px 0 0;

  color: #fff;

  font-size: 18px;
}

.gt-combination-card p {
  margin: 10px 0 0;

  color: #999;

  font-size: 14px;
  line-height: 1.6;
}

.gt-combination-example {
  margin-top: 16px;
  padding: 10px 12px;

  border-left: 2px solid #666;

  background: #070707;
  color: #bbb;

  font-family: Consolas, monospace;
  font-size: 13px;
}

.gt-combination-method {
  margin-top: 14px;

  color: #888;

  font-size: 13px;
}

.gt-combination-method strong {
  color: #ccc;
}

.gt-combination-wide {
  grid-column: 1 / -1;
}

.gt-combination-warning {
  margin-top: 16px;
  padding: 12px 14px;

  border: 1px solid #444;
  border-radius: 8px;

  background: #0c0c0c;
  color: #bbb;

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

@media (max-width: 700px) {

  .gt-combination-grid {
    grid-template-columns: 1fr;
  }

  .gt-combination-wide {
    grid-column: auto;
  }

}

/* SSA SOLUTION SELECTOR */

.gt-ssa-solutions {
  width: min(94vw, 1100px);

  margin: 36px auto 0;
}

.gt-ssa-buttons {
  margin-top: 18px;

  display: flex;
  gap: 10px;
}

.gt-ssa-button {
  min-width: 130px;

  padding: 11px 16px;

  border: 1px solid #555;
  border-radius: 8px;

  background: #0b0b0b;
  color: #fff;

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

  cursor: pointer;
}

.gt-ssa-button:hover {
  border-color: #888;
  background: #141414;
}

.gt-ssa-button.active {
  border-color: #fff;

  background: #fff;
  color: #000;
}

@media (max-width: 520px) {

  .gt-ssa-buttons {
    flex-direction: column;
  }

  .gt-ssa-button {
    width: 100%;
  }

}

/* RESULTS + LEARNING */

.gt-results-section,
.gt-solution,
.gt-combinations,
.gt-learning {
  width: min(94vw, 1100px);

  margin: 52px auto 0;
}

.gt-section-heading {
  display: flex;
  gap: 14px;

  align-items: flex-start;
}

.gt-section-number {
  min-width: 30px;

  color: #555;

  font-size: 11px;
  font-weight: 700;

  letter-spacing: 2px;
}

.gt-section-heading h2 {
  margin: 0;

  font-size: 27px;
}

.gt-section-heading p {
  margin: 7px 0 0;

  color: #888;

  font-size: 14px;
}

.gt-results-grid {
  margin-top: 22px;

  display: grid;
  grid-template-columns: repeat(4, 1fr);

  gap: 12px;
}

.gt-result-card {
  min-height: 95px;

  box-sizing: border-box;

  padding: 16px;

  border: 1px solid #303030;
  border-radius: 12px;

  background: #0b0b0b;
}

.gt-result-card span {
  display: block;

  color: #777;

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

.gt-result-card strong {
  display: block;

  margin-top: 9px;

  color: #fff;

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

.gt-learning-grid {
  margin-top: 22px;

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

  gap: 14px;
}

.gt-learning-card {
  padding: 22px;

  border: 1px solid #303030;
  border-radius: 14px;

  background:
    linear-gradient(
      145deg,
      #101010,
      #080808
    );
}

.gt-formula {
  display: inline-block;

  margin-bottom: 16px;
  padding: 8px 10px;

  border: 1px solid #3b3b3b;
  border-radius: 7px;

  background: #050505;

  color: #ddd;

  font-family: Consolas, monospace;
  font-size: 15px;
}

.gt-learning-card h3 {
  margin: 0;

  font-size: 18px;
}

.gt-learning-card p {
  margin: 10px 0 0;

  color: #888;

  font-size: 14px;
  line-height: 1.55;
}


/* BACK */

.gt-bottom-nav {
  margin-top: 42px;

  text-align: center;
}

.gt-back-button {
  display: inline-block;

  padding: 11px 17px;

  border: 1px solid #555;
  border-radius: 8px;

  color: #fff;

  font-size: 14px;
  text-decoration: none;
}


/* RESPONSIVE */

@media (max-width: 850px) {

  .gt-workspace {
    grid-template-columns: 1fr;
  }

  .gt-results-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gt-learning-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 600px) {

  .gt-shell {
    padding-left: 12px;
    padding-right: 12px;
  }

  .gt-input-grid {
    grid-template-columns: 1fr;
  }

  .gt-results-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gt-diagram-wrap {
    min-height: 300px;
    padding: 10px;
  }

  .gt-actions {
    flex-direction: column;
  }

}

@media (max-width: 420px) {

  .gt-results-grid {
    grid-template-columns: 1fr;
  }

  .gt-header h1 {
    font-size: 34px;
  }

}