.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.content-wrap {
  flex: 1;
}
.main-content {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 80px;
}
.content-container {
  display: flex;
  max-width: 1200px;
  width: 100%;
  padding: 20px;
  gap: 20px;
}
.middle-section {
  display: flex;
  flex-direction: column;
  width: 60%;
  min-width: 0;
  gap: 0;
}
.directory {
  font-size: 14px;
  color: #0645AD;
  cursor: pointer;
  margin: 0 0 35px 0;
}
.directory a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.directory a:hover {
  text-decoration: underline;
}
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.breadcrumb-item {
  display: inline-flex;
  align-items: center;
}
.breadcrumb-separator {
  display: inline-flex;
  align-items: center;
  color: inherit;
}
.main-title {
  font-size: 32px;
  font-weight: bold;
  line-height: 1.15;
  margin: 0 0 5px 0;
}
.calculator-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 0 35px 0;
}
.published-date {
  font-size: 13px;
  color: black;
}
.main-paragraph {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  line-height: 1.5;
  color: #333;
  margin: 20px 0;
}
.guide-diagram {
  text-align: center;
  margin: 24px 0;
}
.guide-diagram-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto 16px;
}
.guide-diagram-image-small {
  max-width: 150px;
}
.guide-diagram-image-medium {
  max-width: 200px;
}
.guide-diagram-caption {
  margin: 0;
}
.formula-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
}
.hidden {
  display: none !important;
}
.step-answer {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e0e0e0;
  padding: 20px 20px;
  border-radius: 5px;
  margin: 20px 0;
  min-height: 90px;
  font-size: 14px;
}
.step-answer > * {
  max-width: 100%;
}
.step-answer {
  overflow-x: auto;
  overflow-y: hidden;
}
.step-layout {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}
.step {
  margin-top: 20px;
  margin-bottom: 20px;
}
.step-title {
  font-size: 16px;
  font-weight: bold;
  margin: 15px 0;
  text-align: center;
  background-color: transparent;
}
.step-divider {
  border-top: 1px solid #ddd;
  margin: 25px 0;
}
.guide-example {
  margin: 16px 0;
}
.guide-example[open] + .guide-example {
  border-top: 1px solid #ddd;
  margin-top: 25px;
  padding-top: 25px;
}
.guide-example-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50%;
  margin: 0 auto;
  padding: 8px 16px;
  background: #007BFF;
  color: #ffffff;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  list-style: none;
}
.guide-example-button::-webkit-details-marker {
  display: none;
}
.guide-example-button:hover {
  background: #006ee6;
}
.guide-example[open] .guide-example-label-closed {
  display: none;
}
.guide-example:not([open]) .guide-example-label-open {
  display: none;
}
.guide {
  margin: 0 0 25px 0;
}
.guide-content {
  position: relative;
}
.guide-content > .main-paragraph:first-child {
  margin: 0 0 20px 0;
}
.guide-content ol,
.guide-content ul {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  line-height: 1.5;
  color: #333;
  margin: 5px 0 15px 0;
  padding-left: 18px;
}
.guide-content li {
  margin: 5px 0;
}
.guide-content ol > li::marker {
  font-weight: 700;
}
.guide-content h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: bold;
  color: #222;
  margin: 15px 0 5px 0;
}
.guide-content .guide-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: bold;
  color: #222;
  margin: 15px 0 5px 0;
}
.step-formula {
  background: transparent;
}
.step-formula .step-answer {
  background: #fff7cc;
  border: 1px solid #e6d36a;
  border-radius: 5px;
  padding: 20px 20px;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.formula-equation {
  font-weight: 700;
  font-size: 1.1em;
}
.calc-output-scroll,
.calc-formula-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding-top: 8px;
  padding-bottom: 10px;
  display: flex;
  justify-content: center;
}
.calc-output-row {
  width: max-content;
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: nowrap;
  white-space: nowrap;
  margin: 0 auto;
}
.calc-output-center {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.step-layout > * {
  flex: 0 0 auto;
}
.math-expr {
  display: inline-block;
  line-height: 1.45;
  vertical-align: baseline;
}
.calc-formula-grid {
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  column-gap: 30px;
  row-gap: 10px;
  justify-items: center;
}
.calc-formula-item {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-width: 0;
}