/* dotbinary AI導入ガイド 共通スタイル
   site.css（Webサイト共通）のあとに読む。
   追加分は .g- 接頭辞。色はモノクロ基調、例外は本文リンク、「5つの問い」チップ、「リスク段階」のみ。 */

/* ── 外枠（ヘッダーとフッターは site.css） ── */
html[data-page="glossary"] { scroll-behavior: auto; }
main { position: relative; z-index: 1; background: #fff; }
.g-wrap { max-width: calc(45rem + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.g-hero { background: var(--ink); color: #fff; padding: 56px 0 64px; }
@media (min-width: 768px) { .g-hero { padding: 80px 0 88px; } }
.g-back { display: inline-block; font-size: .75rem; font-weight: 500; letter-spacing: .1em; line-height: 1.5; color: #999999; text-decoration: none; }
.g-back:hover, .g-back:focus-visible { background: none; text-decoration: underline; }
.g-back--end { margin-top: 2.5rem; font-size: .875rem; letter-spacing: 0; color: var(--ink); }
.g-meta { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin-top: 1.5rem; font-size: .875rem; line-height: 1.6; color: rgba(255,255,255,.6); }
.g-meta a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.g-meta a:hover, .g-meta a:focus-visible { background: rgba(255,255,255,.15); }
.g-hero h1 { margin-top: .75rem; font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.25rem); font-weight: 700; line-height: 1.375; }
.g-hero__desc { margin-top: 1.25rem; font-size: .875rem; line-height: 1.625; color: rgba(255,255,255,.7); }
@media (min-width: 768px) { .g-hero__desc { font-size: 1rem; } }
.g-pill { display: inline-block; margin-top: 1.25rem; padding: .25rem .75rem; border-radius: 999px; background: var(--surface); color: var(--muted); font-size: .75rem; font-weight: 500; letter-spacing: .1em; line-height: 1.5; }

/* 本文側は行の高さを 1.5 にそろえ、各部品が自分の高さを持つ */
.g-main { padding-top: 64px; padding-bottom: 64px; line-height: 1.5; }
@media (min-width: 768px) { .g-main { padding-top: 80px; padding-bottom: 80px; } }

.g-faq { margin-top: 3.5rem; }
.g-faq > h2 { margin-bottom: 1rem; padding-left: 1rem; border-left: 3px solid var(--ink); font-size: 1.25rem; font-weight: 700; line-height: 1.75; }
.g-faq__list { display: grid; gap: .75rem; }
.faq-item { background: #fff; border: 1px solid #E8E8E8; border-radius: .75rem; }

.g-cta { margin-top: 3.5rem; padding: 1.5rem; border: 1px solid #E8E8E8; border-radius: 1rem; background: #fff; }
@media (min-width: 768px) { .g-cta { padding: 2.5rem; } }
.g-cta h2 { margin-bottom: 1rem; font-size: 1.125rem; font-weight: 700; line-height: 1.6; }
.g-cta p { font-size: .875rem; line-height: 2; color: #666666; }
.g-cta .btns { margin-top: 1.25rem; }

.g-sources { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid #E8E8E8; }
.g-sources h2 { margin-bottom: .75rem; font-size: .875rem; font-weight: 700; }
.g-sources ul { padding-left: 1rem; list-style: disc; font-size: .75rem; line-height: 1.625; color: #666666; }
.g-sources li + li { margin-top: .5rem; }
.g-sources__note { margin-top: 1.5rem; font-size: .75rem; line-height: 1.625; color: #666666; }

.prose-section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #111111;
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid #E8E8E8;
  line-height: 1.6;
}
.prose-section h2:first-child { margin-top: 0; }
.prose-section h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111111;
  margin-top: 2rem;
  margin-bottom: .5rem;
  line-height: 1.6;
}
.prose-section p {
  color: #666666;
  line-height: 2;
  font-size: 1rem;
  margin-top: 1rem;
}
.prose-section ul { margin-top: 1rem; padding-left: 1.5rem; list-style: disc; color: #666666; line-height: 1.9; }
.prose-section ol { margin-top: 1rem; padding-left: 1.5rem; list-style: decimal; color: #666666; line-height: 1.9; }
.prose-section li { margin-top: .4rem; }
.prose-section strong { color: #111111; font-weight: 700; }
.prose-section table { width: 100%; border-collapse: collapse; margin-top: 1.25rem; font-size: .875rem; }
.prose-section th, .prose-section td { border: 1px solid #E8E8E8; padding: .65rem .75rem; text-align: left; line-height: 1.6; vertical-align: top; color: #666666; }
.prose-section th { background: #F5F5F5; font-weight: 700; color: #111111; }
.prose-section a { color: #1D4ED8; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; border-radius: .2rem; transition: background-color .15s; }
.prose-section a:hover, .prose-section a:focus-visible { background: #DBEAFE; color: #1E3A8A; }
.prose-section code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; background: #F5F5F5; padding: .1em .4em; border-radius: 4px; color: #111111; }
.lead-quote { font-size: 1.05rem; font-weight: 500; color: #111111; line-height: 1.9; }

.faq-item summary { cursor: pointer; font-weight: 700; color: #111111; list-style: none; padding: 1.1rem 1.25rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: 'Q. '; color: #111111; }
.faq-item summary::after { content: '+'; float: right; color: #111111; font-weight: 400; }
.faq-item[open] summary::after { content: '−'; }
.faq-item .faq-a { padding: 0 1.25rem 1.1rem; color: #666666; line-height: 1.9; font-size: .925rem; }

/* ── ガイド共通の変数 ── */
:root {
  --g-ink: #111111; --g-muted: #666666; --g-faint: #999999; --g-surface: #F5F5F5; --g-line: #E8E8E8;
  /* 5つの問い（淡色背景＋濃色文字。いずれも 4.5:1 以上） */
  --q1-bg: #FEF3C7; --q1-fg: #92400E;   /* 1 ゴール */
  --q2-bg: #DBEAFE; --q2-fg: #1E40AF;   /* 2 コンテキスト */
  --q3-bg: #EDE9FE; --q3-fg: #5B21B6;   /* 3 権限 */
  --q4-bg: #D1FAE5; --q4-fg: #065F46;   /* 4 検証 */
  --q5-bg: #FEE2E2; --q5-fg: #991B1B;   /* 5 安全と責任 */
  --ax-bg: #E5E7EB; --ax-fg: #374151;   /* 2つの軸 */
  /* リスク段階 0（低・青）→ 9（高・赤）。背景は淡色、文字は ink */
  --r0-bg: #DBEAFE; --r0-bd: #1D4ED8;
  --r1-bg: #DAF0FA; --r1-bd: #1D6FB8;
  --r2-bg: #D9F4F1; --r2-bd: #0F8F86;
  --r3-bg: #DDF5E3; --r3-bd: #2E8B57;
  --r4-bg: #EAF6D6; --r4-bd: #6B8E23;
  --r5-bg: #FBF5CF; --r5-bd: #B8860B;
  --r6-bg: #FDEBCB; --r6-bd: #C77700;
  --r7-bg: #FEE1C5; --r7-bd: #D2601A;
  --r8-bg: #FDD9CE; --r8-bd: #C93A2A;
  --r9-bg: #FEE2E2; --r9-bd: #B91C1C;
}

/* ── 結論・使いどころ ── */
.g-box { margin-top: 1.5rem; border: 1px solid var(--g-line); border-radius: 1rem; padding: 1.25rem 1.5rem; background: #fff; }
.g-box > :first-child { margin-top: 0; }
.g-box p { margin-top: .6rem; line-height: 1.9; font-size: .95rem; }
.g-box ul, .g-box ol { margin-top: .6rem; line-height: 1.8; font-size: .95rem; }
.g-box__label { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; color: var(--g-ink); background: var(--g-surface); padding: .2rem .7rem; border-radius: 999px; margin-bottom: .5rem; }
.g-box--conclusion { border: 2px solid var(--g-ink); }
.g-box--conclusion li { color: var(--g-ink); font-weight: 500; }
.g-box--point { background: var(--g-surface); }
.g-box--example { border-style: dashed; }
.g-box--caution { border-left: 4px solid #991B1B; }
.g-box--caution .g-box__label { background: #FEE2E2; color: #991B1B; }
.g-box--spec { border-left: 4px solid #1E40AF; }
.g-box--spec .g-box__label { background: #DBEAFE; color: #1E40AF; }
.g-box--principle { border-left: 4px solid var(--g-ink); }
.g-box--design { border-left: 4px solid #5B21B6; }
.g-box--design .g-box__label { background: #EDE9FE; color: #5B21B6; }

.g-cols { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 640px) { .g-cols { grid-template-columns: 1fr 1fr; } }
.g-cols .g-box { margin-top: 0; }
.g-col--use { border-top: 4px solid #1D4ED8; }
.g-col--use .g-box__label { background: #DBEAFE; color: #1E40AF; }
.g-col--avoid { border-top: 4px solid #991B1B; }
.g-col--avoid .g-box__label { background: #FEE2E2; color: #991B1B; }

/* ── 図の見方・メディア枠 ── */
.g-fig-note { margin-top: 1.25rem; padding: .75rem 1rem; background: var(--g-surface); border-radius: .75rem; font-size: .9rem; color: var(--g-muted); line-height: 1.8; }
.g-fig-note::before { content: '下図の見方: '; font-weight: 700; color: var(--g-ink); }
.g-media { margin-top: 1.25rem; }
.g-media__frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border: 1px dashed var(--g-line); border-radius: 1rem; background: repeating-linear-gradient(135deg, #FAFAFA 0 12px, #F5F5F5 12px 24px); display: flex; align-items: center; justify-content: center; color: var(--g-faint); font-size: .85rem; letter-spacing: .1em; overflow: hidden; }
.g-media__frame img, .g-media__frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.g-media figcaption { margin-top: .5rem; font-size: .8rem; color: var(--g-faint); text-align: center; }

/* ── 段階図（リスク）・入れ子図 ── */
.g-stack { margin-top: 1.25rem; display: flex; flex-direction: column; gap: .35rem; }
.g-layer { display: grid; grid-template-columns: 2.5rem 1fr; gap: .75rem; align-items: start; padding: .7rem .9rem; border-radius: .6rem; border-left: 5px solid var(--g-line); background: var(--g-surface); color: var(--g-ink); font-size: .9rem; line-height: 1.7; }
.g-layer__n { font-weight: 700; font-size: 1rem; color: var(--g-ink); }
.g-layer__t { color: var(--g-ink); }
.g-layer__t small { display: block; color: var(--g-muted); font-size: .85rem; }
.g-layer--r0 { background: var(--r0-bg); border-color: var(--r0-bd); }
.g-layer--r1 { background: var(--r1-bg); border-color: var(--r1-bd); }
.g-layer--r2 { background: var(--r2-bg); border-color: var(--r2-bd); }
.g-layer--r3 { background: var(--r3-bg); border-color: var(--r3-bd); }
.g-layer--r4 { background: var(--r4-bg); border-color: var(--r4-bd); }
.g-layer--r5 { background: var(--r5-bg); border-color: var(--r5-bd); }
.g-layer--r6 { background: var(--r6-bg); border-color: var(--r6-bd); }
.g-layer--r7 { background: var(--r7-bg); border-color: var(--r7-bd); }
.g-layer--r8 { background: var(--r8-bg); border-color: var(--r8-bd); }
.g-layer--r9 { background: var(--r9-bg); border-color: var(--r9-bd); }
.g-stack__legend { display: flex; justify-content: space-between; font-size: .75rem; color: var(--g-muted); margin-top: .35rem; }

.g-nest { margin-top: 1.25rem; padding: 1rem 1.1rem; border: 1px solid var(--g-line); border-radius: 1rem; background: #fff; }
.g-nest .g-nest { margin-top: .75rem; background: rgba(0,0,0,.025); }
.g-nest__t { font-weight: 700; color: var(--g-ink); font-size: .95rem; }
.g-nest__t small { font-weight: 400; color: var(--g-muted); margin-left: .5rem; font-size: .85rem; }

/* ── 5つの問いチップ ── */
.g-q { display: inline-block; font-size: .78rem; font-weight: 700; padding: .15rem .6rem; border-radius: 999px; margin-right: .3rem; vertical-align: middle; white-space: nowrap; }
.g-q--1 { background: var(--q1-bg); color: var(--q1-fg); }
.g-q--2 { background: var(--q2-bg); color: var(--q2-fg); }
.g-q--3 { background: var(--q3-bg); color: var(--q3-fg); }
.g-q--4 { background: var(--q4-bg); color: var(--q4-fg); }
.g-q--5 { background: var(--q5-bg); color: var(--q5-fg); }
.g-q--axis { background: var(--ax-bg); color: var(--ax-fg); }

/* ── 項目名／説明 ── */
.g-dl { margin-top: 1.25rem; }
.g-dl dt { font-weight: 700; color: var(--g-ink); margin-top: 1rem; line-height: 1.7; }
.g-dl dd { color: var(--g-muted); line-height: 1.9; margin-top: .25rem; padding-left: 1rem; border-left: 2px solid var(--g-line); font-size: .95rem; }

/* ── 表のはみ出し防止 ── */
.g-table-wrap { margin-top: 1.25rem; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.g-table-wrap table { margin-top: 0; min-width: 32rem; }

/* ── 流れ（工程） ── */
.g-steps { margin-top: 1.25rem; display: flex; flex-direction: column; gap: .4rem; counter-reset: step; }
.g-step { position: relative; padding: .8rem 1rem .8rem 3rem; border: 1px solid var(--g-line); border-radius: .75rem; color: var(--g-ink); font-size: .95rem; line-height: 1.8; background: #fff; }
.g-step::before { counter-increment: step; content: counter(step); position: absolute; left: .9rem; top: .8rem; width: 1.6rem; height: 1.6rem; border-radius: 999px; background: var(--g-ink); color: #fff; font-size: .8rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.g-step small { display: block; color: var(--g-muted); font-size: .85rem; }
.g-step--loop::after { content: '↻ 最初に戻る'; display: block; color: var(--g-faint); font-size: .8rem; margin-top: .25rem; }

/* ── まとめ ── */
.g-summary { margin-top: 2rem; background: var(--g-surface); border-radius: 1rem; padding: 1.25rem 1.5rem; }
.g-summary ul { margin-top: .5rem; }
.g-summary li { color: var(--g-ink); }

/* ── チェックリスト（保存はJS、項目は静的HTML） ── */
.g-check { margin-top: 1.25rem; list-style: none; padding-left: 0; }
.g-check li { margin-top: .5rem; }
.g-check label { display: flex; gap: .75rem; align-items: flex-start; padding: .7rem .9rem; border: 1px solid var(--g-line); border-radius: .75rem; cursor: pointer; color: var(--g-ink); line-height: 1.7; font-size: .95rem; }
.g-check input { margin-top: .35rem; width: 1rem; height: 1rem; accent-color: #111111; flex-shrink: 0; }
.g-check input:checked + span { color: var(--g-faint); text-decoration: line-through; }
.g-check__tools { margin-top: .75rem; font-size: .8rem; color: var(--g-faint); }
.g-check__tools button { padding: 0; border: 0; background: none; font: inherit; text-decoration: underline; color: var(--g-muted); }

/* ── 前後リンク・同じ部の一覧 ── */
.g-pager { margin-top: 3.5rem; display: grid; grid-template-columns: 1fr; gap: .75rem; }
@media (min-width: 640px) { .g-pager { grid-template-columns: 1fr 1fr; } }
.g-pager a { display: block; padding: 1rem 1.25rem; border: 1px solid var(--g-line); border-radius: 1rem; text-decoration: none; color: var(--g-ink); }
.g-pager a:hover { background: var(--g-surface); }
.g-pager a small { display: block; font-size: .75rem; color: var(--g-faint); letter-spacing: .08em; margin-bottom: .25rem; }
.g-pager a.g-pager__next { text-align: right; }
.g-partnav { margin-top: 1.5rem; font-size: .875rem; }
.g-partnav__t { font-weight: 700; color: var(--g-ink); margin-bottom: .5rem; }
.g-partnav ol { margin: 0; padding-left: 1.5rem; list-style: decimal; color: var(--g-muted); line-height: 1.9; }
.g-partnav a { text-decoration: none; color: var(--g-muted); }
.g-partnav a:hover { text-decoration: underline; color: var(--g-ink); }
.g-partnav li.is-current a { color: var(--g-ink); font-weight: 700; }

/* ── 目次（index）── */
.g-toc { margin-top: .75rem; display: grid; grid-template-columns: 1fr; gap: 0 1.5rem; }
@media (min-width: 768px) { .g-toc { grid-template-columns: 1fr 1fr; } }
.g-toc a { display: block; padding: .55rem .5rem; border-bottom: 1px solid var(--g-line); text-decoration: none; color: var(--g-ink); line-height: 1.5; }
.g-toc a:hover { background: var(--g-surface); color: #1D4ED8; }
.g-toc a small { display: block; color: var(--g-muted); font-size: .85rem; font-weight: 400; margin-top: .15rem; }
.g-toc__n { display: inline-block; min-width: 1.6rem; color: var(--g-faint); font-size: .85rem; }

/* ── 用語一覧 ── */
.g-filter { margin-top: 1.25rem; }
.g-filter input { width: 100%; border: 1px solid var(--g-line); border-radius: .75rem; padding: .7rem 1rem; font-family: inherit; font-size: 1rem; outline: none; }
.g-filter input:focus { border-color: var(--g-ink); }
.g-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .75rem; }
.g-chips button { border: 1px solid var(--g-line); border-radius: 999px; padding: .25rem .8rem; font-size: .8rem; font-family: inherit; line-height: 1.5; color: var(--g-muted); background: #fff; cursor: pointer; }
.g-chips button[aria-pressed="true"] { background: var(--g-ink); color: #fff; border-color: var(--g-ink); }
.g-tcount { margin-top: .75rem; font-size: .8rem; color: var(--g-faint); }
.g-tgroup { margin-top: 2rem; }
.g-tgroup.is-hidden { display: none; }
.g-term { margin-top: .75rem; border: 1px solid var(--g-line); border-radius: 1rem; padding: 1rem 1.25rem; scroll-margin-top: 5rem; }
.g-term.is-hidden { display: none; }
.g-term:target { border-color: var(--g-ink); }
.g-term__h { font-weight: 700; color: var(--g-ink); font-size: 1rem; line-height: 1.6; }
.g-term__h small { font-weight: 400; color: var(--g-faint); margin-left: .5rem; font-size: .8rem; }
.g-term p { font-size: .925rem; line-height: 1.85; margin-top: .4rem; }
.g-term__meta { margin-top: .5rem; font-size: .78rem; color: var(--g-faint); line-height: 1.8; }
.g-term__meta a { color: var(--g-muted); }
.g-empty { margin-top: 1.5rem; color: var(--g-faint); font-size: .9rem; display: none; }
.g-empty.is-shown { display: block; }

/* ── 小さなラベル ── */
.g-badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: .1rem .5rem; border-radius: 4px; background: var(--g-surface); color: var(--g-muted); vertical-align: middle; }
.g-badge--low { background: var(--r0-bg); color: #1E40AF; }
.g-badge--high { background: var(--r9-bg); color: #991B1B; }

/* ── 現時点の仕様（付録） ── */
.g-spec { margin-top: 1rem; padding: .9rem 1.1rem; border: 1px solid var(--g-line); border-radius: .9rem; scroll-margin-top: 5rem; font-size: .925rem; line-height: 1.85; color: var(--g-muted); }
.g-spec:target { border-color: var(--g-ink); }
.g-spec__h { font-weight: 700; color: var(--g-ink); }
.g-spec__src { font-size: .78rem; color: var(--g-faint); margin-top: .3rem; }

/* ── 補助 ── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.g-check__count { font-variant-numeric: tabular-nums; }
.g-check__reset { cursor: pointer; }
.g-spec, .g-spec__h, .g-spec__src { overflow-wrap: anywhere; min-width: 0; }

/* ── 帯（h2 単位の交互セクション。finalize.py が自動で巻く） ── */
.prose-section { counter-reset: sec; }
.g-section { position: relative; margin-top: 2.5rem; }
.g-section h2 { margin-top: 0; }
.g-section h2::before { counter-increment: sec; content: counter(sec, decimal-leading-zero); display: block; font-size: .7rem; font-weight: 500; letter-spacing: .25em; color: var(--g-faint); margin-bottom: .35rem; }
.g-section--alt { background: var(--g-surface); box-shadow: 0 0 0 100vmax var(--g-surface); clip-path: inset(0 -100vmax); padding: 2.25rem 0 2.5rem; }
.g-section--alt h2 { border-bottom-color: #DDDDDD; }
.g-section--alt .g-box--point, .g-section--alt .g-summary, .g-section--alt .g-fig-note, .g-section--alt .g-layer, .g-section--alt .g-box__label { background: #fff; }
.g-section--alt .g-box--point, .g-section--alt .g-summary, .g-section--alt .g-fig-note { border: 1px solid var(--g-line); }
.g-section--alt .g-dl dd { border-left-color: #DDDDDD; }
.g-terms-note { margin-top: 1.25rem; font-size: .85rem; color: var(--g-muted); }
.g-terms-note a { color: var(--g-ink); text-decoration: underline; }
.g-band { margin-top: 2.5rem; padding: 1.1rem 1.5rem; background: var(--g-ink); color: #fff; border-radius: 1rem; font-weight: 700; font-size: 1.02rem; line-height: 1.8; text-align: center; }
.g-tier { margin-top: 1.25rem; border: 1px solid var(--g-line); border-radius: 1rem; overflow: hidden; }
.g-tier__row { display: grid; grid-template-columns: 8rem 1fr; }
.g-tier__row + .g-tier__row { border-top: 1px solid var(--g-line); }
.g-tier__k { background: var(--g-ink); color: #fff; font-weight: 700; padding: .9rem 1rem; font-size: .95rem; display: flex; align-items: center; }
.g-tier__v { padding: .9rem 1rem; color: var(--g-ink); font-size: .95rem; line-height: 1.8; background: #fff; }
@media (max-width: 480px) { .g-tier__row { grid-template-columns: 6rem 1fr; } }
/* プロンプト例: 本文の段落と見分けられるように枠と地色を変える */
.g-box--prompt { border: 1px solid #C7D2FE; border-left: 4px solid #4F46E5; background: linear-gradient(135deg, #F8FAFF 0%, #EEF2FF 100%); box-shadow: 0 1px 2px rgba(49, 46, 129, .06); }
.g-box--prompt .g-box__label { background: #E0E7FF; color: #3730A3; }
.g-box--prompt p { color: #1E1B4B; }
.g-section--alt .g-box--prompt .g-box__label { background: #E0E7FF; }

/* リンクだと気づけるように、本文以外のリンクも青と下線で示し、ポインタを重ねたら色と下線の太さを変える */
.prose-section a:hover, .prose-section a:focus-visible { text-decoration-thickness: 2px; }
.faq-a a, .g-term__meta a, .g-terms-note a, .g-sources a { color: #1D4ED8; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: background-color .15s, color .15s; }
.faq-a a:hover, .g-term__meta a:hover, .g-terms-note a:hover, .g-sources a:hover,
.faq-a a:focus-visible, .g-term__meta a:focus-visible, .g-terms-note a:focus-visible, .g-sources a:focus-visible { background: #DBEAFE; color: #1E3A8A; text-decoration-thickness: 2px; }
.g-pager a { transition: border-color .15s, background-color .15s, box-shadow .15s; }
.g-pager a:hover, .g-pager a:focus-visible { border-color: #1D4ED8; background: linear-gradient(180deg, #F5F9FF, #EAF2FF); box-shadow: 0 4px 14px rgba(29, 78, 216, .12); color: #1E3A8A; }
.g-toc a { transition: background-color .15s, color .15s, padding-left .15s; }
.g-toc a:hover, .g-toc a:focus-visible { background: #EFF6FF; color: #1D4ED8; padding-left: .9rem; }
.g-partnav a:hover, .g-partnav a:focus-visible { color: #1D4ED8; background: none; }
.prose-section code { overflow-wrap: anywhere; word-break: break-word; }
