.oj-format-guide {
  max-width: 760px;
  margin: 24px auto 48px;
  color: var(--oj-text);
  font-size: 16px;
  line-height: 1.8;
}

.oj-format-heading {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--oj-border-strong);
}

.oj-format-heading h1 {
  margin: 0;
  color: var(--oj-heading);
  font-size: clamp(28px, 2.5vw, 36px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.oj-format-section {
  padding-top: 28px;
  scroll-margin-top: 24px;
}

.oj-format-section h2 {
  margin: 0 0 8px;
  color: var(--oj-heading);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
}

.oj-format-section p {
  margin: 0;
  text-wrap: pretty;
}

.oj-format-guide code {
  color: var(--oj-link);
  font-family: var(--oj-font-mono);
  font-size: 0.95em;
}

.oj-format-examples {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.oj-format-examples figure { min-width: 0; margin: 0; }

.oj-format-examples figcaption {
  margin-bottom: 8px;
  color: var(--oj-text-soft);
  font-size: 14px;
  font-weight: 600;
}

.oj-format-examples pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  border: 1px solid var(--oj-border);
  border-radius: var(--oj-radius);
  background: var(--oj-panel);
  font-size: 20px;
  line-height: 1.5;
}

.oj-format-guide .oj-format-examples pre > code {
  padding: 0;
  background: transparent;
  color: var(--oj-text);
  font-size: inherit;
}
.oj-format-newline { color: var(--oj-link); }

.oj-format-section .oj-format-example-note {
  margin-top: 12px;
  color: var(--oj-muted);
  font-size: 14px;
}

.oj-format-note {
  margin: 28px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--oj-border);
  color: var(--oj-muted);
  font-size: 14px;
}

@media (max-width: 575px) {
  .oj-format-guide { margin-top: 12px; margin-bottom: 32px; }
  .oj-format-heading { padding-bottom: 20px; }
  .oj-format-section { padding-top: 24px; }
  .oj-format-examples { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
