.one { grid-template-columns: 1fr; }
article { max-width: 42rem; margin: 0 auto; }
article h1 { font-size: 2.25rem; line-height: 1.2; margin: 1rem 0; }
article h2 { margin: 2.5rem 0 .5rem; font-size: 1.5rem; }
article :is(h1, h2) { scroll-margin-top: 1.5rem; }
article p, article li { font-size: 1.0625rem; }
article img { display: block; max-width: 100%; height: auto; margin: 1.5rem auto; border: 1px solid var(--border); border-radius: .75rem; }
article pre { overflow-x: auto; padding: 1rem; background: #f4f5fa; border-radius: .5rem; }
article code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9rem; }
article table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
article th, article td { padding: .5rem; border-bottom: 1px solid var(--border); text-align: left; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

.outline { display: none; }
@media (min-width: 75rem) {
  .outline {
    display: block;
    position: fixed;
    top: 6rem;
    left: calc(50% + 21rem + 2rem);
    width: 14rem;
    max-height: calc(100vh - 8rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    padding-right: .25rem;
  }
  .outline-title { margin: 0 0 .5rem .75rem; color: var(--muted); font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
  .outline ol { list-style: none; margin: 0; padding: 0; }
  .outline a {
    display: block;
    padding: .3rem .75rem;
    border-left: 2px solid var(--border);
    color: var(--muted);
    font-size: .875rem;
    line-height: 1.35;
    opacity: .6;
    text-decoration: none;
    transition: opacity .15s, color .15s, border-color .15s;
  }
  .outline a:hover, .outline a:focus-visible { opacity: 1; color: var(--fg); }
  .outline a.active { border-left-color: var(--accent); color: var(--fg); font-weight: 600; opacity: 1; }
}

.define-hint { margin: 0 0 1.25rem; color: var(--muted); font-size: .875rem; }
.define-card {
  position: absolute;
  z-index: 50;
  box-sizing: border-box;
  width: min(23rem, calc(100vw - 1rem));
  max-height: 22rem;
  overflow-y: auto;
  padding: .9rem 2.25rem .9rem 1rem;
  background: var(--studio-bg, #fff);
  border: 1px solid var(--border);
  border-radius: .75rem;
  box-shadow: 0 8px 28px rgba(20, 26, 46, .18);
  color: var(--fg);
  font-size: .9375rem;
  line-height: 1.5;
}
.define-card[hidden] { display: none; }
.define-card p, .define-card ol { margin: 0; }
.define-close { position: absolute; top: .4rem; right: .5rem; width: 1.75rem; height: 1.75rem; border: 0; border-radius: .375rem; background: transparent; color: var(--muted); cursor: pointer; font-size: 1.25rem; line-height: 1; }
.define-close:hover { background: var(--studio-surface, #f5f6fc); color: var(--fg); }
.define-word { font-size: 1.125rem; font-weight: 650; }
.define-phonetic { color: var(--muted); font-size: .9rem; font-weight: 400; }
.define-pos { margin-top: .6rem; color: var(--accent); font-size: .8125rem; font-style: italic; }
.define-list { padding-left: 1.2rem; }
.define-list li { margin: .2rem 0; font-size: .9375rem; }
.define-example { color: var(--muted); }
.define-note { margin-top: .25rem; color: var(--muted); font-size: .875rem; }
.define-credit { margin-top: .75rem; color: var(--muted); font-size: .75rem; }
.define-credit a { color: var(--accent); }
::highlight(define-word) { background-color: var(--studio-tint, #eeedff); text-decoration: underline; text-decoration-color: var(--accent); }

@media print {
  .outline, .define-card, .define-hint { display: none; }
}
