.unit-calculator-full {
  width: 100%;
}

.unit-result-card {
  margin-top: 1rem;
}

.unit-result-card .tool-result-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.unit-result-card .tool-result-primary {
  grid-column: 1 / -1;
}

.unit-conversion-table-wrap {
  overflow-x: auto;
}

.unit-conversion-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
}

.unit-conversion-table th,
.unit-conversion-table td {
  padding: 0.55rem 0.35rem;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
  text-align: left;
  vertical-align: top;
}

.unit-conversion-table th {
  color: var(--brand-navy);
  font-weight: 700;
}

.unit-conversion-table td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}

.unit-guide {
  margin-top: 1.75rem;
  padding: 1.4rem 1.35rem 1.2rem;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
}

.unit-guide-head {
  margin-bottom: 1.15rem;
}

.unit-guide-head h2 {
  margin: 0 0 0.35rem;
  color: var(--brand-navy);
  font-size: 1.25rem;
  font-weight: 700;
}

.unit-guide-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.unit-guide-block + .unit-guide-block {
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border-light);
}

.unit-guide-block h3 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.65rem;
  color: var(--brand-navy);
  font-size: 1.02rem;
  font-weight: 700;
}

.unit-guide-block h3 i {
  color: var(--brand-blue);
  font-size: 1rem;
}

.unit-guide-block p {
  margin: 0;
  color: #5f6b7a;
  font-size: 0.94rem;
  line-height: 1.65;
}

.unit-guide-steps {
  margin: 0;
  padding-left: 1.2rem;
  color: #5f6b7a;
  font-size: 0.94rem;
  line-height: 1.65;
}

.unit-guide-steps li + li {
  margin-top: 0.35rem;
}

.unit-guide-formulas {
  margin: 0;
  padding: 0;
  list-style: none;
}

.unit-guide-formulas li {
  margin: 0 0 0.45rem;
}

.unit-guide-formulas code {
  display: inline-block;
  max-width: 100%;
  padding: 0.35rem 0.55rem;
  color: #1f2937;
  background: #f3f6fb;
  border-radius: 8px;
  font-size: 0.86rem;
  white-space: normal;
  word-break: break-word;
}

.unit-guide-subtitle {
  margin: 0.95rem 0 0.55rem !important;
  color: var(--brand-navy) !important;
  font-size: 0.9rem !important;
  font-weight: 700;
}

.unit-guide-reference {
  margin: 0;
}

.unit-guide-reference li {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.65rem;
  margin: 0 0 0.45rem;
}

.unit-guide-reference i {
  flex: 0 0 auto;
  margin-top: 0.15rem;
  color: #1a73e8;
  font-size: 0.95rem;
}

.unit-guide-reference span {
  color: #5f6b7a;
  line-height: 1.45;
}

.unit-guide-note {
  margin-top: 0.9rem;
}

html.theme-dark .unit-guide {
  background: #1b2430;
  border-color: #2c3747;
}

html.theme-dark .unit-guide-head h2,
html.theme-dark .unit-guide-block h3,
html.theme-dark .unit-guide-subtitle {
  color: #e8eef7 !important;
}

html.theme-dark .unit-guide-head p,
html.theme-dark .unit-guide-block p,
html.theme-dark .unit-guide-steps,
html.theme-dark .unit-guide-reference span {
  color: #9aa6b5;
}

html.theme-dark .unit-guide-block + .unit-guide-block {
  border-top-color: #2c3747;
}

html.theme-dark .unit-guide-formulas code {
  color: #e8eef7;
  background: #243041;
}

html.theme-dark .unit-guide-reference i {
  color: #6ba3f7;
}

html.theme-dark .unit-conversion-table th {
  color: #e8eef7;
}

html.theme-dark .unit-conversion-table th,
html.theme-dark .unit-conversion-table td {
  border-bottom-color: #2c3747;
}

@media (max-width: 767.98px) {
  .unit-result-card .tool-result-grid {
    grid-template-columns: 1fr;
  }

  .unit-result-card .tool-result-primary {
    grid-column: auto;
  }

  .unit-guide {
    padding: 1.15rem 1rem 1rem;
  }
}
