.typo-guide-block {
  margin-top: 8px;
}

.typo-guide-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.typo-guide-section__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--guidelines-ink, #1c1a17);
}

.typo-guide-section__intro {
  margin: 4px 0 0;
  max-width: 62ch;
}

.typo-guide-section__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(220px, 1fr);
  gap: 24px;
  align-items: start;
}

.typo-guide-section__visual {
  min-width: 0;
}

.typo-guide-section__notes {
  font-size: 0.92rem;
  color: rgba(28, 26, 23, 0.72);
}

.typo-guide-section__notes p {
  margin: 0 0 10px;
}

.typo-guide-custom-notes {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(15, 23, 20, 0.08);
}

/* Cap height */
.typo-guide-capheight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.typo-guide-capheight__diagram {
  position: relative;
  padding: 28px 56px 28px 20px;
  border: 1px solid rgba(15, 23, 20, 0.1);
  border-radius: 12px;
  background: #f7f3ea;
}

.typo-guide-capheight__word {
  margin: 0;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: #0b5a3b;
}

.typo-guide-capheight__lines {
  position: absolute;
  inset: 20px 48px 20px 16px;
  pointer-events: none;
}

.typo-guide-capheight__line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(11, 90, 59, 0.35);
}

.typo-guide-capheight__line--asc { top: 8%; }
.typo-guide-capheight__line--x { top: 38%; }
.typo-guide-capheight__line--base { top: 72%; border-top: 2px solid rgba(11, 90, 59, 0.55); height: 0; }
.typo-guide-capheight__line--desc { bottom: 6%; }

.typo-guide-capheight__labels {
  position: absolute;
  right: 8px;
  top: 0;
  bottom: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.65rem;
  color: rgba(28, 26, 23, 0.55);
}

.typo-guide-capheight__labels li:nth-child(1) { position: absolute; top: 6%; }
.typo-guide-capheight__labels li:nth-child(2) { position: absolute; top: 36%; }
.typo-guide-capheight__labels li:nth-child(3) { position: absolute; top: 70%; }
.typo-guide-capheight__labels li:nth-child(4) { position: absolute; bottom: 4%; }

.typo-guide-capheight__measure {
  position: absolute;
  right: 28px;
  top: 8%;
  bottom: 28%;
  width: 16px;
  border-left: 2px solid #0b5a3b;
  border-right: 2px solid #0b5a3b;
}

.typo-guide-capheight__measure-label {
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translate(100%, -50%) rotate(90deg);
  font-size: 0.65rem;
  font-weight: 600;
  white-space: nowrap;
  color: #0b5a3b;
}

.typo-guide-capheight__spacing {
  padding: 20px;
  border: 1px solid rgba(15, 23, 20, 0.1);
  border-radius: 12px;
  background: #fff;
}

.typo-guide-capheight__spacing-head {
  margin: 0 0 12px;
  font-weight: 700;
}

.typo-guide-capheight__spacing-sample {
  position: relative;
  padding-left: 36px;
}

.typo-guide-capheight__spacing-line {
  margin: 0;
  font-weight: 700;
  color: #0b5a3b;
}

.typo-guide-capheight__spacing-line--1 { font-size: 1.4rem; line-height: 1.1; }
.typo-guide-capheight__spacing-line--2 { font-size: 1.4rem; line-height: 1.65; margin-top: 0.2em; }

.typo-guide-capheight__spacing-ch,
.typo-guide-capheight__spacing-ls {
  position: absolute;
  left: 0;
  font-size: 0.65rem;
  font-weight: 600;
  color: #0b5a3b;
}

.typo-guide-capheight__spacing-ch { top: 0; height: 1.1em; border-left: 2px solid #0b5a3b; padding-left: 4px; }
.typo-guide-capheight__spacing-ls { top: 1.1em; height: calc(1.65em - 0.2em); border-left: 2px dashed #0b5a3b; padding-left: 4px; }

/* Leading card */
.typo-guide-leading-card {
  border: 1px solid rgba(15, 23, 20, 0.1);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.typo-guide-leading-card__ratios {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(15, 23, 20, 0.08);
}

.typo-guide-leading-card__ratio {
  padding: 16px 18px;
  background: #fff;
}

.typo-guide-leading-card__ratio strong {
  display: block;
  font-size: 1.6rem;
  line-height: 1.1;
}

.typo-guide-leading-card__ratio span {
  font-size: 0.85rem;
  color: rgba(28, 26, 23, 0.65);
}

.typo-guide-leading-card__samples {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(15, 23, 20, 0.08);
}

.typo-guide-leading-card__sample {
  padding: 18px;
  min-height: 120px;
}

.typo-guide-leading-card__sample--head {
  background: var(--sample-bg, #0b5a3b);
  color: #fff;
  position: relative;
}

.typo-guide-leading-card__sample--body {
  background: #f3f4f6;
  color: #1c1a17;
}

.typo-guide-leading-card__icon {
  display: block;
  font-size: 0.75rem;
  opacity: 0.8;
  margin-bottom: 8px;
}

/* Calc */
.typo-guide-calc {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.typo-guide-calc__item {
  padding: 16px 18px;
  border: 1px solid rgba(15, 23, 20, 0.1);
  border-radius: 10px;
  background: #f7f3ea;
}

.typo-guide-calc__item h4 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.typo-guide-calc__formula,
.typo-guide-calc__result {
  margin: 4px 0 0;
  font-size: 0.92rem;
}

/* Multilingual */
.typo-guide-multilingual {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.typo-guide-multilingual__panel {
  padding: 20px 22px;
  border-radius: 10px;
}

.typo-guide-multilingual__panel--light {
  background: #fff;
  border: 1px solid rgba(15, 23, 20, 0.1);
}

.typo-guide-multilingual__panel--dark {
  background: var(--panel-bg, #0b5a3b);
  color: #fff;
}

.typo-guide-multilingual__primary {
  margin: 0 0 4px;
}

.typo-guide-multilingual__secondary {
  margin: 0;
  opacity: 0.75;
  font-weight: 300;
}

/* Kerning & paragraphs */
.typo-guide-kerning {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.typo-guide-kerning__block h4 {
  margin: 0 0 10px;
}

.typo-guide-kerning__demo {
  position: relative;
  padding: 24px 20px;
  border-radius: 10px;
  background: #f3f4f6;
}

.typo-guide-kerning__icon {
  display: block;
  font-size: 0.75rem;
  color: rgba(11, 90, 59, 0.7);
  margin-bottom: 8px;
}

.typo-guide-kerning__headline {
  margin: 0;
  letter-spacing: -0.02em;
}

.typo-guide-kerning__para-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.typo-guide-kerning__para {
  padding: 16px;
  border-radius: 10px;
  background: #f3f4f6;
}

.typo-guide-kerning__para p {
  margin: 0 0 8px;
}

.typo-guide-kerning__para p:last-child {
  margin-bottom: 0;
}

.typo-guide-kerning__indent {
  display: inline-block;
  width: 2em;
}

/* Alignment do/don't */
.typo-guide-align-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.typo-guide-align-card__sample {
  position: relative;
  min-height: 100px;
  padding: 14px;
  margin-bottom: 8px;
  border: 1px solid rgba(15, 23, 20, 0.12);
  border-radius: 8px;
  background: #f9fafb;
  overflow: hidden;
}

.typo-guide-align-card__sample--left p { text-align: left; }
.typo-guide-align-card__sample--justify p { text-align: justify; }
.typo-guide-align-card__sample--center p { text-align: center; }
.typo-guide-align-card__sample--right p { text-align: right; }

.typo-guide-align-card__sample p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
}

.typo-guide-align-card__strike {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 46%, rgba(220, 38, 38, 0.75) 48%, rgba(220, 38, 38, 0.75) 52%, transparent 54%);
  pointer-events: none;
}

.typo-guide-align-card h4 {
  margin: 0;
  font-size: 0.88rem;
}

/* Bilingual */
.typo-guide-bilingual__hero {
  padding: 22px 24px;
  border-radius: 10px 10px 0 0;
  background: var(--hero-bg, #0b5a3b);
  color: #fff;
}

.typo-guide-bilingual__hero p {
  margin: 0 0 4px;
}

.typo-guide-bilingual__hero-secondary {
  font-weight: 300;
  opacity: 0.85;
}

.typo-guide-bilingual__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(15, 23, 20, 0.08);
  border: 1px solid rgba(15, 23, 20, 0.1);
  border-top: none;
}

.typo-guide-bilingual__cols--muted {
  border-radius: 0 0 10px 10px;
}

.typo-guide-bilingual__col {
  padding: 16px 18px;
  background: #fff;
}

.typo-guide-bilingual__col h4 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.typo-guide-bilingual__col--grey {
  color: #6b7280;
}

.typo-guide-bilingual__col--grey h4 {
  font-weight: 300;
}

/* Baseline grid */
.typo-guide-baseline {
  position: relative;
  border: 1px solid rgba(15, 23, 20, 0.1);
  border-radius: 12px;
  overflow: hidden;
  min-height: 180px;
  background: #fff;
}

.typo-guide-baseline__grid {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 23px,
    rgba(15, 23, 20, 0.06) 23px,
    rgba(15, 23, 20, 0.06) 24px
  );
  pointer-events: none;
}

.typo-guide-baseline__content {
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 16px 20px;
  align-items: start;
}

.typo-guide-baseline__image {
  height: 96px;
  border: 1px solid rgba(15, 23, 20, 0.15);
  background: linear-gradient(135deg, #e5e7eb 49%, transparent 50%, #e5e7eb 51%);
}

.typo-guide-baseline__text p {
  margin: 0 0 24px;
  line-height: 24px;
}

/* Context tiles */
.typo-guide-context-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.typo-guide-context-grid--6 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.typo-guide-context-tile {
  padding: 16px 18px;
  border-radius: 10px;
  background: var(--tile-bg, #0b5a3b);
  color: var(--tile-fg, #fff);
  min-height: 100px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.typo-guide-context-tile__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.75;
}

.typo-guide-context-tile__title {
  font-size: 1.05rem;
}

.typo-guide-context-tile__sub {
  font-size: 0.82rem;
  opacity: 0.85;
}

/* Trilingual */
.typo-guide-trilingual__hero {
  padding: 22px 24px;
  border-radius: 10px 10px 0 0;
  background: var(--hero-bg, #0b5a3b);
  color: #fff;
}

.typo-guide-trilingual__hero p {
  margin: 0 0 4px;
}

.typo-guide-trilingual__hero p:not(:first-child) {
  font-weight: 300;
  opacity: 0.85;
}

.typo-guide-trilingual__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(15, 23, 20, 0.08);
  border: 1px solid rgba(15, 23, 20, 0.1);
  border-top: none;
  border-radius: 0 0 10px 10px;
}

.typo-guide-trilingual__col {
  padding: 14px 16px;
  background: #fff;
}

.typo-guide-trilingual__col h4 {
  margin: 0 0 8px;
  font-size: 0.88rem;
}

.typo-guide-trilingual__col p {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 300;
}

/* Text color pairings */
.typo-guide-textcolor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.typo-guide-textcolor-card__swatch {
  position: relative;
  min-height: 88px;
  padding: 14px;
  border-radius: 8px;
  background: var(--pair-bg, #fff);
  color: var(--pair-fg, #1c1a17);
  overflow: hidden;
}

.typo-guide-textcolor-card__sample {
  margin: 0 0 4px;
}

.typo-guide-textcolor-card__body {
  margin: 0;
  font-size: 0.78rem;
  opacity: 0.9;
}

.typo-guide-textcolor-card__strike {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 46%, rgba(220, 38, 38, 0.7) 48%, rgba(220, 38, 38, 0.7) 52%, transparent 54%);
}

.typo-guide-textcolor-card__meta {
  margin: 8px 0 2px;
  font-size: 0.78rem;
  font-weight: 600;
}

.typo-guide-textcolor-card__note {
  margin: 0;
  font-size: 0.78rem;
}

/* Channel typography matrix */
.typo-guide-channel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.typo-guide-channel-card {
  border: 1px solid rgba(15, 23, 20, 0.1);
  border-radius: 12px;
  overflow: hidden;
  background: var(--ch-bg, #fff);
}

.typo-guide-channel-card__head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px 0;
}

.typo-guide-channel-card__label {
  font-weight: 700;
  font-size: 0.95rem;
}

.typo-guide-channel-card__tag {
  font-size: 0.75rem;
  opacity: 0.72;
}

.typo-guide-channel-card__mock {
  margin: 10px 14px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 20, 0.08);
  background: rgba(255, 255, 255, 0.45);
}

.typo-guide-channel-card--dark .typo-guide-channel-card__mock {
  background: rgba(0, 0, 0, 0.18);
  border-color: rgba(255, 255, 255, 0.12);
}

.typo-guide-channel-card__mock-title {
  margin: 0 0 4px;
  font-size: 1rem;
}

.typo-guide-channel-card__mock-body {
  margin: 0;
  font-size: 0.82rem;
}

.typo-guide-channel-card__specs {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
}

.typo-guide-channel-card__specs th,
.typo-guide-channel-card__specs td {
  padding: 6px 10px;
  border-top: 1px solid rgba(15, 23, 20, 0.08);
  text-align: left;
  vertical-align: top;
}

.typo-guide-channel-card__specs th {
  background: rgba(15, 23, 20, 0.04);
  font-weight: 600;
}

.typo-guide-channel-card--dark .typo-guide-channel-card__specs th {
  background: rgba(255, 255, 255, 0.08);
}

.typo-guide-channel-card--dark {
  color: #fff;
}

.typo-guide-channel-card--dark .typo-guide-channel-card__specs th,
.typo-guide-channel-card--dark .typo-guide-channel-card__specs td {
  border-color: rgba(255, 255, 255, 0.12);
}

/* Marketplace listing */
.typo-guide-marketplace {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.typo-guide-marketplace__preview {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(15, 23, 20, 0.12);
  border-radius: 12px;
  background: #fff;
}

.typo-guide-marketplace__thumb {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--mp-accent, #0b5a3b) 0%, #f3e8e2 100%);
}

.typo-guide-marketplace__title {
  margin: 0 0 6px;
  font-size: 0.95rem;
  line-height: 1.35;
}

.typo-guide-marketplace__price {
  margin: 0 0 8px;
  font-size: 0.9rem;
}

.typo-guide-marketplace__price s {
  margin-left: 6px;
  opacity: 0.55;
  font-weight: 400;
}

.typo-guide-marketplace__bullets {
  margin: 0 0 8px;
  padding-left: 18px;
  font-size: 0.82rem;
}

.typo-guide-marketplace__bullets li {
  margin-bottom: 2px;
}

.typo-guide-marketplace__spec {
  margin: 0;
  font-size: 0.75rem;
}

.typo-guide-marketplace__platforms {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.typo-guide-marketplace__platform {
  padding: 12px 14px;
  border: 1px solid rgba(15, 23, 20, 0.1);
  border-radius: 10px;
  background: #f9fafb;
}

.typo-guide-marketplace__platform h4 {
  margin: 0 0 8px;
  font-size: 0.88rem;
}

.typo-guide-marketplace__dl {
  margin: 0;
  display: grid;
  gap: 6px;
}

.typo-guide-marketplace__dl div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px;
  font-size: 0.78rem;
}

.typo-guide-marketplace__dl dt {
  font-weight: 600;
  color: rgba(28, 26, 23, 0.65);
}

.typo-guide-marketplace__dl dd {
  margin: 0;
}

.typo-guide-marketplace__warn {
  color: #b45309;
}

@media (max-width: 900px) {
  .typo-guide-section__layout {
    grid-template-columns: 1fr;
  }

  .typo-guide-capheight,
  .typo-guide-leading-card__samples,
  .typo-guide-leading-card__ratios,
  .typo-guide-kerning__para-grid,
  .typo-guide-align-grid,
  .typo-guide-context-grid,
  .typo-guide-context-grid--6,
  .typo-guide-textcolor-grid,
  .typo-guide-trilingual__cols,
  .typo-guide-channel-grid,
  .typo-guide-marketplace {
    grid-template-columns: 1fr;
  }
}
