.guide-page {
  min-height: 100vh;
  background:
    linear-gradient(
      180deg,
      #f8faf8,
      #f1f6f3
    );
}

.guide-main {
  padding: 18px 0 30px;
}

.guide-workspace {
  display: grid;
  grid-template-columns:
    minmax(215px, 245px)
    minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}

.guide-selector-panel {
  position: sticky;
  top: 68px;
  padding: 13px;
  border: 1px solid
    rgba(23, 107, 76, 0.14);
  border-radius: 15px;
  background: #ffffff;
  box-shadow:
    0 8px 25px
    rgba(34, 58, 47, 0.06);
}

.guide-selector-title {
  margin: 0 0 9px;
  font-size: 12px;
}

.guide-picker-toggle {
  display: none;
}

.guide-selector-options {
  display: grid;
  gap: 6px;
}

.guide-selector-button {
  display: grid;
  grid-template-columns:
    31px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 43px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #34483e;
  background: #f5f8f6;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.guide-selector-button:hover {
  border-color:
    rgba(23, 107, 76, 0.2);
  background: #edf6f1;
}

.guide-selector-button.is-active {
  border-color:
    rgba(23, 107, 76, 0.27);
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.guide-selector-button:focus-visible {
  outline: 3px solid
    rgba(23, 107, 76, 0.22);
  outline-offset: 2px;
}

.guide-selector-number {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  color: var(--brand-dark);
  background: #ffffff;
  font-size: 10px;
  font-weight: 800;
}

.guide-content-shell {
  min-width: 0;
}

.guide-lesson {
  padding: 17px;
  border: 1px solid
    rgba(23, 107, 76, 0.14);
  border-radius: 17px;
  background: #ffffff;
  box-shadow:
    0 10px 30px
    rgba(34, 58, 47, 0.07);
}

.guide-lesson[hidden] {
  display: none;
}

.guide-lesson-header {
  margin-bottom: 13px;
}

.guide-lesson-kicker {
  margin: 0 0 3px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
}

.guide-lesson-header h1 {
  margin: 0;
  color: #14251d;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.25;
}

.guide-lesson-header > div > p:last-child {
  margin: 5px 0 0;
  color: #5b6d63;
  font-size: 13px;
  line-height: 1.65;
}

.ruler-lesson-layout {
  display: grid;
  grid-template-columns:
    minmax(0, 1.25fr)
    minmax(285px, 0.75fr);
  gap: 13px;
}

.guide-visual-card,
.guide-step-section,
.guide-example-card,
.guide-basic-card {
  border: 1px solid
    rgba(23, 107, 76, 0.12);
  border-radius: 14px;
  background: #fbfcfb;
}

.guide-visual-card {
  padding: 13px;
}

.guide-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}

.guide-section-heading span {
  color: var(--brand);
  font-size: 10px;
  font-weight: 800;
}

.guide-section-heading strong {
  color: #26382f;
  font-size: 13px;
}

.guide-ruler-svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 390px;
  margin: 0 auto;
}

.ruler-tick {
  stroke: #4f3a16;
}

.ruler-number {
  fill: #43341d;
  font-size: 24px;
  font-weight: 800;
}

.ruler-unit {
  fill: #43341d;
  font-size: 17px;
  font-weight: 800;
}

.ruler-arrow-label {
  fill: #176b4c;
  font-size: 20px;
  font-weight: 800;
}

.ruler-caption {
  fill: #176b4c;
  font-size: 16px;
  font-weight: 800;
}

.ruler-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin-top: 5px;
  color: #5a6c62;
  font-size: 11px;
}

.ruler-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ruler-legend i {
  display: inline-block;
  width: 20px;
  height: 4px;
  border-radius: 999px;
}

.legend-main {
  background: #5d4316;
}

.legend-small {
  background: #176b4c;
}

.guide-learning-column {
  display: grid;
  align-content: start;
  gap: 10px;
}

.guide-step-section,
.guide-example-card {
  padding: 12px;
}

.guide-step-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-step-list li {
  display: grid;
  grid-template-columns:
    29px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.guide-step-number {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  color: #ffffff;
  background: var(--brand);
  font-size: 11px;
  font-weight: 800;
}

.guide-step-list strong {
  display: block;
  color: #24362d;
  font-size: 12px;
}

.guide-step-list p {
  margin: 2px 0 0;
  color: #617169;
  font-size: 11px;
  line-height: 1.5;
}

.guide-formula {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 7px;
  border-radius: 11px;
  background: var(--brand-soft);
}

.guide-formula span,
.guide-formula strong {
  padding: 5px 8px;
  border-radius: 8px;
  background: #ffffff;
  font-size: 14px;
}

.guide-formula b {
  color: var(--brand-dark);
}

.guide-example-card > p {
  margin: 8px 0 0;
  color: #506159;
  font-size: 12px;
  text-align: center;
}

.guide-caution {
  padding: 9px 10px;
  border-left: 4px solid #d79a32;
  border-radius: 9px;
  background: #fff8e9;
}

.guide-caution strong {
  color: #715018;
  font-size: 11px;
}

.guide-caution p {
  margin: 3px 0 0;
  color: #66583e;
  font-size: 11px;
  line-height: 1.55;
}

.guide-practice-button {
  display: inline-flex;
  min-height: 41px;
  align-items: center;
  justify-content: center;
  padding: 7px 15px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--brand);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.guide-practice-button:hover {
  background: var(--brand-dark);
}

.guide-basic-card {
  max-width: 720px;
  padding: 16px;
}

.guide-basic-card h2 {
  margin: 0 0 10px;
  font-size: 17px;
}

.guide-basic-steps {
  display: grid;
  gap: 7px;
  margin: 0 0 13px;
  padding: 0;
  list-style: none;
}

.guide-basic-steps li {
  display: grid;
  grid-template-columns:
    29px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 41px;
  padding: 6px 9px;
  border-radius: 10px;
  background: #f1f6f3;
  font-size: 13px;
}

.guide-basic-steps li span {
  display: inline-flex;
  width: 27px;
  height: 27px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #ffffff;
  background: var(--brand);
  font-size: 11px;
  font-weight: 800;
}

@media (max-width: 900px) {
  .guide-workspace {
    grid-template-columns:
      minmax(190px, 220px)
      minmax(0, 1fr);
  }

  .ruler-lesson-layout {
    grid-template-columns: 1fr;
  }

  .guide-learning-column {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .guide-step-section {
    grid-row: span 2;
  }

  .guide-practice-button {
    align-self: end;
  }
}

@media (max-width: 720px) {
  .guide-main {
    padding: 8px 0 18px;
  }

  .guide-workspace {
    display: block;
  }

  .guide-selector-panel {
    position: static;
    margin-bottom: 9px;
    padding: 9px;
  }

  .guide-selector-title {
    display: none;
  }

  .guide-picker-toggle {
    display: flex;
    width: 100%;
    min-height: 43px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 9px;
    border: 1px solid
      rgba(23, 107, 76, 0.18);
    border-radius: 11px;
    color: var(--brand-dark);
    background: var(--brand-soft);
    font: inherit;
    text-align: left;
    cursor: pointer;
  }

  .guide-picker-toggle span:first-child {
    display: grid;
  }

  .guide-picker-toggle small {
    color: #63736b;
    font-size: 9px;
  }

  .guide-picker-toggle strong {
    font-size: 14px;
  }

  #guide-picker-action {
    font-size: 10px;
    font-weight: 800;
  }

  .guide-selector-options {
    display: none;
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
    gap: 5px;
    margin-top: 6px;
  }

  .guide-selector-options.is-open {
    display: grid;
  }

  .guide-selector-button {
    min-height: 40px;
    grid-template-columns:
      25px minmax(0, 1fr);
    gap: 6px;
    padding: 5px 6px;
    font-size: 10px;
  }

  .guide-selector-number {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    font-size: 8px;
  }

  .guide-lesson {
    padding: 12px;
    border-radius: 14px;
  }

  .guide-lesson-header {
    margin-bottom: 9px;
  }

  .guide-lesson-header h1 {
    font-size: 22px;
  }

  .guide-lesson-header > div > p:last-child {
    font-size: 11px;
  }

  .ruler-lesson-layout {
    display: block;
  }

  .guide-visual-card {
    padding: 9px;
  }

  .guide-ruler-svg {
    max-height: 260px;
  }

  .ruler-number {
    font-size: 21px;
  }

  .ruler-arrow-label {
    font-size: 17px;
  }

  .guide-learning-column {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 8px;
  }

  .guide-step-section,
  .guide-example-card {
    padding: 10px;
  }

  .guide-practice-button {
    width: 100%;
  }
}

/* HAKARU EASY JAPANESE RUBY START */

.guide-page ruby {
  ruby-align: center;
}

.guide-page rt {
  color: #617169;
  font-size: 0.5em;
  font-weight: 600;
  line-height: 1;
}

.guide-lesson-header h1 rt {
  font-size: 0.42em;
}

.guide-section-heading rt,
.guide-caution rt,
.guide-selector-title rt {
  font-size: 0.55em;
}

@media (max-width: 720px) {
  .guide-step-list p,
  .ruler-legend,
  .guide-example-card > p,
  .guide-caution p {
    font-size: 12px;
  }

  .guide-lesson-header > div > p:last-child {
    font-size: 12px;
    line-height: 1.7;
  }
}

/* HAKARU EASY JAPANESE RUBY END */

/* HAKARU RULER READABILITY START */

.ruler-lesson-layout {
  align-items: start;
}

.guide-visual-card {
  align-self: start;
}

.guide-lesson-header > div > p:last-child {
  color: #4f6258;
  font-size: 14px;
}

.guide-step-list p {
  color: #4f6258;
  font-size: 12px;
  line-height: 1.62;
}

.ruler-legend {
  color: #4f6258;
  font-size: 12px;
}

.guide-example-card > p,
.guide-caution p {
  color: #4f6258;
  font-size: 12px;
}

.ruler-unit {
  font-size: 14px;
}

.ruler-caption {
  font-size: 17px;
}

@media (max-width: 720px) {
  .guide-lesson-header > div > p:last-child {
    font-size: 13px;
  }

  .guide-step-list strong {
    font-size: 13px;
  }

  .guide-step-list p,
  .ruler-legend,
  .guide-example-card > p,
  .guide-caution p {
    font-size: 12px;
  }

  .guide-section-heading strong {
    font-size: 13px;
  }
}

/* HAKARU RULER READABILITY END */

/* HAKARU THERMOMETER GUIDE START */

.guide-thermometer-svg {
  display: block;
  width: min(100%, 540px);
  height: auto;
  max-height: 410px;
  margin: 0 auto;
}

.thermometer-tick {
  stroke: #3d5047;
}

.thermometer-number {
  fill: #30443a;
  font-size: 19px;
  font-weight: 800;
}

.thermometer-unit {
  fill: #30443a;
  font-size: 23px;
  font-weight: 800;
}

.thermometer-arrow-label {
  fill: #176b4c;
  font-size: 18px;
  font-weight: 800;
}

.thermometer-range-label {
  fill: #176b4c;
  font-size: 15px;
  font-weight: 800;
}

.thermometer-caption {
  fill: #176b4c;
  font-size: 17px;
  font-weight: 800;
}

.thermometer-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 15px;
  margin-top: 5px;
  color: #4f6258;
  font-size: 12px;
}

.thermometer-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.thermometer-legend i {
  display: inline-block;
  width: 21px;
  height: 4px;
  border-radius: 999px;
}

.legend-liquid {
  background: #df4d38;
}

.legend-reading-line {
  background: #176b4c;
}

@media (max-width: 720px) {
  .guide-thermometer-svg {
    width: min(100%, 390px);
    max-height: 320px;
  }

  .thermometer-number {
    font-size: 21px;
  }

  .thermometer-arrow-label {
    font-size: 19px;
  }

  .thermometer-range-label {
    font-size: 17px;
  }

  .thermometer-legend {
    font-size: 12px;
  }
}

/* HAKARU THERMOMETER GUIDE END */

/* HAKARU MEASURING CUP GUIDE START */

.guide-measuring-cup-svg {
  display: block;
  width: min(100%, 570px);
  height: auto;
  max-height: 410px;
  margin: 0 auto;
}

.cup-tick {
  stroke: #3d5047;
}

.cup-number {
  fill: #30443a;
  font-size: 18px;
  font-weight: 800;
}

.cup-unit {
  fill: #30443a;
  font-size: 21px;
  font-weight: 800;
}

.cup-arrow-label {
  fill: #176b4c;
  font-size: 18px;
  font-weight: 800;
}

.cup-range-label {
  fill: #176b4c;
  font-size: 15px;
  font-weight: 800;
}

.cup-caption {
  fill: #176b4c;
  font-size: 17px;
  font-weight: 800;
}

.measuring-cup-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 15px;
  margin-top: 5px;
  color: #4f6258;
  font-size: 12px;
}

.measuring-cup-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.measuring-cup-legend i {
  display: inline-block;
  width: 21px;
  height: 4px;
  border-radius: 999px;
}

.legend-water {
  background: #4194bb;
}

.legend-cup-reading-line {
  background: #176b4c;
}

@media (max-width: 720px) {
  .guide-measuring-cup-svg {
    width: min(100%, 410px);
    max-height: 330px;
  }

  .cup-number {
    font-size: 20px;
  }

  .cup-arrow-label {
    font-size: 19px;
  }

  .cup-range-label {
    font-size: 17px;
  }

  .measuring-cup-legend {
    font-size: 12px;
  }
}

/* HAKARU MEASURING CUP GUIDE END */

/* HAKARU CYLINDER GUIDE START */

.guide-cylinder-svg {
  display: block;
  width: min(100%, 550px);
  height: auto;
  max-height: 420px;
  margin: 0 auto;
}

.cylinder-tick {
  stroke: #3d5047;
}

.cylinder-number {
  fill: #30443a;
  font-size: 18px;
  font-weight: 800;
}

.cylinder-unit {
  fill: #30443a;
  font-size: 21px;
  font-weight: 800;
}

.cylinder-arrow-label {
  fill: #176b4c;
  font-size: 18px;
  font-weight: 800;
}

.cylinder-range-label {
  fill: #176b4c;
  font-size: 15px;
  font-weight: 800;
}

.cylinder-caption {
  fill: #176b4c;
  font-size: 17px;
  font-weight: 800;
}

.cylinder-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 15px;
  margin-top: 5px;
  color: #4f6258;
  font-size: 12px;
}

.cylinder-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cylinder-legend i {
  display: inline-block;
  width: 21px;
  height: 4px;
  border-radius: 999px;
}

.legend-cylinder-water {
  background: #4194bb;
}

.legend-cylinder-reading {
  background: #176b4c;
}

@media (max-width: 720px) {
  .guide-cylinder-svg {
    width: min(100%, 390px);
    max-height: 330px;
  }

  .cylinder-number {
    font-size: 20px;
  }

  .cylinder-arrow-label {
    font-size: 19px;
  }

  .cylinder-range-label {
    font-size: 17px;
  }

  .cylinder-legend {
    font-size: 12px;
  }
}

/* HAKARU CYLINDER GUIDE END */

/* HAKARU ANALOG SCALE GUIDE START */

.guide-analog-scale-svg {
  display: block;
  width: min(100%, 500px);
  height: auto;
  max-height: 410px;
  margin: 0 auto;
}

.analog-scale-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 15px;
  margin-top: 5px;
  color: #4f6258;
  font-size: 12px;
}

.analog-scale-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.analog-scale-legend i {
  display: inline-block;
  width: 21px;
  height: 4px;
  border-radius: 999px;
}

.legend-analog-pointer {
  background: #d9543f;
}

.legend-analog-reading {
  background: #176b4c;
}

@media (max-width: 720px) {
  .guide-analog-scale-svg {
    width: min(100%, 390px);
    max-height: 330px;
  }

  .analog-scale-legend {
    font-size: 12px;
  }
}

/* HAKARU ANALOG SCALE GUIDE END */

/* HAKARU CALIPER GUIDE START */

.caliper-guide-scroll {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.guide-caliper-svg {
  display: block;
  width: 100%;
  height: auto;
  min-width: 0;
  margin: 0 auto;
}

.caliper-guide-note {
  margin: 7px 0 0;
  color: #4f6258;
  font-size: 12px;
  line-height: 1.65;
}

.caliper-guide-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 15px;
  margin-top: 7px;
  color: #4f6258;
  font-size: 12px;
}

.caliper-guide-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.caliper-guide-legend i {
  display: inline-block;
  width: 21px;
  height: 4px;
  border-radius: 999px;
}

.legend-caliper-main {
  background: #176b4c;
}

.legend-caliper-vernier {
  background: #d88a27;
}

@media (max-width: 720px) {
  .guide-caliper-svg {
    width: 100%;
    min-width: 0;
  }

  .caliper-guide-note,
  .caliper-guide-legend {
    font-size: 12px;
  }
}

/* HAKARU CALIPER GUIDE END */

/* HAKARU PHASE 2 GUIDE START */
.guide-category-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}

.guide-category-button {
  min-height: 34px;
  border: 1px solid rgba(36, 96, 76, 0.22);
  border-radius: 9px;
  background: #f4f8f3;
  color: #315c4c;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.guide-category-button.is-active {
  background: #176b4c;
  border-color: #176b4c;
  color: #fff;
}

.phase2-guide-lesson .guide-visual-card {
  min-height: 330px;
}

.phase2-guide-lesson .phase2-instrument-svg {
  min-height: 260px;
  max-height: 380px;
}

.phase2-guide-lesson .guide-step-list {
  margin-top: 12px;
}

.phase2-protractor-guide-note {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-left: 4px solid #d88a27;
  background: #fff8e8;
  color: #315c4c;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
}

@media (max-width: 720px) {
  .guide-category-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-category-button {
    min-height: 42px;
    font-size: 11px;
  }
}
/* HAKARU PHASE 2 GUIDE END */
