* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --ink: #132231;
  --muted: #596777;
  --subtle: #67798a;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-raised: rgba(251, 253, 253, 0.96);
  --surface-soft: rgba(242, 251, 249, 0.88);
  --surface-tinted: rgba(237, 253, 250, 0.9);
  --line: rgba(19, 34, 49, 0.12);
  --line-strong: rgba(0, 109, 104, 0.22);
  --accent: #006d68;
  --accent-strong: #024f4c;
  --accent-blue: #2d6cdf;
  --accent-soft: rgba(0, 109, 104, 0.22);
  --shadow-panel: 0 22px 58px rgba(11, 23, 35, 0.11);
  --shadow-card: 0 18px 44px rgba(11, 23, 35, 0.09);
  --page-bg:
    linear-gradient(rgba(19, 34, 49, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 34, 49, 0.035) 1px, transparent 1px),
    linear-gradient(118deg, rgba(0, 159, 141, 0.12) 0%, rgba(0, 159, 141, 0) 34%),
    linear-gradient(244deg, rgba(45, 108, 223, 0.1) 0%, rgba(45, 108, 223, 0) 36%),
    linear-gradient(135deg, #f7fbfd 0%, #edf7f4 48%, #f3f7fb 100%);
  --content-width: 1480px;
  --page-gutter: clamp(14px, 2.4vw, 34px);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #eef7f4;
  --muted: #a9bac2;
  --subtle: #a9bac2;
  --surface: rgba(15, 29, 36, 0.9);
  --surface-raised: rgba(17, 32, 39, 0.94);
  --surface-soft: rgba(20, 36, 44, 0.88);
  --surface-tinted: rgba(49, 199, 181, 0.14);
  --line: rgba(143, 226, 212, 0.16);
  --line-strong: rgba(143, 226, 212, 0.22);
  --accent: #8fe2d4;
  --accent-strong: #b5fff2;
  --accent-blue: #6ea8ff;
  --accent-soft: rgba(143, 226, 212, 0.22);
  --shadow-panel: 0 28px 80px rgba(0, 0, 0, 0.36);
  --shadow-card: 0 22px 58px rgba(0, 0, 0, 0.3);
  --page-bg:
    linear-gradient(rgba(143, 226, 212, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 226, 212, 0.045) 1px, transparent 1px),
    linear-gradient(122deg, rgba(0, 159, 141, 0.13) 0%, rgba(0, 159, 141, 0) 38%),
    linear-gradient(238deg, rgba(45, 108, 223, 0.12) 0%, rgba(45, 108, 223, 0) 40%),
    linear-gradient(135deg, #071015 0%, #0b171d 48%, #0f1b24 100%);
}

body {
  margin: 0;
  background: var(--page-bg);
  background-size: 34px 34px, 34px 34px, auto, auto, auto;
  color: var(--ink);
  font-family: "BIZ UDPGothic", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.75;
}

.page {
  width: min(var(--content-width), calc(100% - var(--page-gutter) * 2));
  margin: 0 auto;
  padding: 28px 0 44px;
}

.top-link,
.primary-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border-radius: 6px;
  font-weight: 900;
  text-decoration: none;
}

.top-link {
  color: var(--accent);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--subtle);
  font-size: 0.86rem;
  font-weight: 900;
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.page-jump-nav {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 30;
  display: grid;
  gap: 8px;
}

.page-jump-nav a {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--accent-soft);
  border-radius: 12px;
  background: var(--surface-raised);
  box-shadow: var(--shadow-panel);
  color: var(--accent);
  font-size: 1.15rem;
  font-weight: 900;
  text-decoration: none;
}

.page-jump-nav a:hover {
  background: var(--accent);
  color: var(--surface);
  transform: translateY(-1px);
}

.hero,
.content {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(16px) saturate(130%);
}

.hero {
  position: relative;
  overflow: hidden;
  margin-top: 16px;
  background:
    linear-gradient(rgba(19, 34, 49, 0.036) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 34, 49, 0.036) 1px, transparent 1px),
    linear-gradient(122deg, rgba(0, 159, 141, 0.16) 0%, rgba(0, 159, 141, 0) 42%),
    linear-gradient(238deg, rgba(45, 108, 223, 0.14) 0%, rgba(45, 108, 223, 0) 44%),
    var(--surface);
  background-size: 26px 26px, 26px 26px, auto, auto, auto;
  padding: clamp(24px, 3vw, 40px);
}

.hero::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.36), transparent 30%),
    linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
  content: "";
}

.hero > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.25;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 1.18rem;
}

.lead {
  max-width: 920px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 800;
}

.primary-link {
  margin-top: 22px;
  background: linear-gradient(135deg, var(--accent), var(--accent-blue));
  color: #ffffff;
  padding: 10px 18px;
  box-shadow: 0 16px 34px rgba(0, 109, 104, 0.18);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-actions .primary-link {
  margin-top: 0;
}

.hero-actions a:not(.primary-link) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--accent-soft);
  border-radius: 999px;
  background: var(--surface-raised);
  color: var(--accent);
  font-weight: 900;
  padding: 9px 14px;
  text-decoration: none;
}

.content {
  display: grid;
  gap: clamp(22px, 2.4vw, 34px);
  margin-top: 16px;
  background:
    linear-gradient(rgba(0, 109, 104, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 109, 104, 0.032) 1px, transparent 1px),
    var(--surface);
  background-size: 28px 28px, 28px 28px, auto;
  padding: clamp(24px, 2.8vw, 40px);
}

.content > section {
  display: grid;
  gap: 14px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(14px, 1.6vw, 20px);
}

.directory-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(14px, 1.6vw, 20px);
}

.directory-all-tools {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.directory-note {
  margin: 0 0 12px;
  color: var(--muted);
  font-weight: 800;
}

.directory-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.directory-link-list a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--accent-soft);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 900;
  padding: 6px 11px;
  text-decoration: none;
}

.directory-link-list a:hover {
  border-color: var(--accent);
  background: var(--surface-tinted);
}

.workflow-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 12px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(180deg, var(--surface-raised), var(--surface-soft)),
    linear-gradient(135deg, rgba(0, 159, 141, 0.08), rgba(0, 159, 141, 0) 38%);
  box-shadow: var(--shadow-card);
  padding: clamp(16px, 1.7vw, 20px);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.workflow-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-blue), #e0a63a);
  opacity: 0.72;
  content: "";
}

.workflow-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 56px rgba(11, 23, 35, 0.14);
}

.workflow-card strong {
  color: var(--ink);
  font-size: 1.06rem;
}

.workflow-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.68;
}

.workflow-card nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.workflow-card a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid var(--accent-soft);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
  padding: 5px 10px;
  text-decoration: none;
}

.workflow-card a:hover {
  border-color: var(--accent);
  background: var(--surface-tinted);
}

.diagram-guide {
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background:
    linear-gradient(rgba(0, 109, 104, 0.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 109, 104, 0.038) 1px, transparent 1px),
    linear-gradient(135deg, var(--surface), var(--surface-soft));
  background-size: 28px 28px, 28px 28px, auto;
  box-shadow: var(--shadow-card);
  padding: clamp(18px, 2.4vw, 28px);
}

.diagram-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(14px, 1.6vw, 20px);
  align-items: stretch;
}

.diagram-flow-card {
  position: relative;
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  overflow: hidden;
  border-radius: 14px;
  background: var(--surface-raised);
  box-shadow: var(--shadow-card);
  padding: 18px;
}

.diagram-flow-card::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -18px;
  width: 28px;
  height: 2px;
  background: var(--accent-soft);
}

.diagram-flow-card:last-child::after {
  display: none;
}

.diagram-flow-card > span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 900;
}

.diagram-flow-card strong {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 900;
}

.diagram-flow-card p,
.diagram-flow-card em,
.diagram-decision-grid p {
  margin: 0;
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.diagram-flow-card em {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  font-size: 0.9rem;
}

.mini-diagram {
  display: grid;
  gap: 8px;
  min-height: 126px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(rgba(0, 109, 104, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 109, 104, 0.05) 1px, transparent 1px),
    var(--surface-raised);
  background-size: 18px 18px, 18px 18px, auto;
  padding: 12px;
}

.mini-diagram i {
  display: inline-grid;
  place-items: center;
  min-height: 30px;
  border: 1px solid var(--accent-soft);
  border-radius: 6px;
  color: var(--ink);
  font-style: normal;
  font-size: 0.84rem;
  font-weight: 900;
}

.logical-map {
  grid-template-columns: 1fr 1fr;
}

.logical-map i:nth-child(1),
.logical-map i:nth-child(2) {
  background: rgba(45, 108, 223, 0.12);
}

.logical-map i:nth-child(3),
.logical-map i:nth-child(4) {
  background: rgba(0, 109, 104, 0.12);
}

.cloud-map {
  grid-template-columns: 1fr;
}

.cloud-map i {
  background: rgba(0, 109, 104, 0.1);
}

.cloud-map i:nth-child(1) {
  border-style: dashed;
}

.cloud-map i:nth-child(4) {
  margin-left: 24px;
  margin-right: 24px;
  background: rgba(45, 108, 223, 0.12);
}

.physical-map {
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
}

.physical-map i {
  background: rgba(23, 36, 50, 0.06);
}

.physical-map i:nth-child(1),
.physical-map i:nth-child(2) {
  border-color: rgba(181, 71, 50, 0.36);
}

.diagram-decision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 12px;
}

.diagram-decision-grid article {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(11, 23, 35, 0.06);
  padding: 14px;
}

.diagram-decision-grid strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-weight: 900;
}

@media (max-width: 760px) {
  .diagram-flow {
    grid-template-columns: 1fr;
  }

  .diagram-flow-card::after {
    display: none;
  }
}

.workflow-bridge {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background:
    linear-gradient(135deg, var(--surface-soft), var(--surface));
  box-shadow: var(--shadow-card);
  padding: 16px;
}

.workflow-bridge h2,
.workflow-bridge p {
  margin: 0;
}

.workflow-bridge p {
  color: var(--muted);
  font-weight: 800;
}

.workflow-bridge nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.workflow-bridge a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--accent-soft);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 900;
  padding: 6px 11px;
  text-decoration: none;
}

.workflow-bridge a:hover {
  border-color: var(--accent);
  background: var(--surface-tinted);
}

.tool-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 8px;
  min-height: 160px;
  border: 1px solid #d8e1e7;
  border-radius: 14px;
  background:
    linear-gradient(180deg, var(--surface-raised), var(--surface-soft));
  box-shadow: var(--shadow-card);
  padding: 18px;
  color: inherit;
  text-decoration: none;
}

.tool-card strong {
  color: #172432;
  font-size: 1.05rem;
}

.tool-card span {
  color: #566371;
  font-weight: 800;
}

.tool-card em {
  align-self: end;
  color: #006d68;
  font-style: normal;
  font-weight: 900;
}

.glossary-term-link {
  border-bottom: 2px solid rgba(0, 109, 104, 0.25);
  color: #006d68;
  font-weight: 900;
  text-decoration: none;
}

.glossary-term-link:hover {
  border-bottom-color: #006d68;
  background: #edfdfa;
}

.glossary-filter-section {
  position: sticky;
  top: 12px;
  z-index: 5;
  display: grid;
  gap: 12px;
  border: 1px solid #bfddd7;
  border-radius: 8px;
  background: rgba(251, 253, 253, 0.96);
  box-shadow: 0 14px 34px rgba(16, 24, 32, 0.1);
  padding: 14px;
}

.glossary-filter-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.glossary-filter-section h2,
.glossary-filter-section p {
  margin: 0;
}

.glossary-filter-section p {
  color: #566371;
  font-weight: 800;
}

.glossary-filter-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(180px, 0.9fr) auto auto;
  gap: 10px;
  align-items: end;
}

.glossary-filter-controls label {
  display: grid;
  gap: 6px;
  color: #172432;
  font-size: 0.84rem;
  font-weight: 900;
}

.glossary-filter-controls input,
.glossary-filter-controls select,
.glossary-filter-controls button {
  min-height: 42px;
  border: 1px solid #cbd9df;
  border-radius: 8px;
  background: #ffffff;
  color: #172432;
  font: inherit;
  font-weight: 800;
  padding: 9px 10px;
}

.glossary-filter-controls input:focus,
.glossary-filter-controls select:focus {
  border-color: #006d68;
  outline: 3px solid rgba(0, 109, 104, 0.16);
}

.glossary-filter-controls button {
  cursor: pointer;
  color: #006d68;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.glossary-filter-controls button:hover {
  border-color: #006d68;
  background: #edfdfa;
}

#glossary-filter-apply {
  border-color: #006d68;
  background: #006d68;
  color: #ffffff;
}

#glossary-filter-apply:hover {
  background: #024f4c;
  color: #ffffff;
}

.glossary-category-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.glossary-query-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.glossary-query-chips button {
  border: 1px solid #d8e8e5;
  border-radius: 999px;
  background: #ffffff;
  color: #172432;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 7px 10px;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.glossary-query-chips button:hover {
  border-color: #006d68;
  background: #edfdfa;
  color: #006d68;
}

.glossary-category-chips button {
  display: grid;
  gap: 3px;
  justify-items: start;
  min-height: 52px;
  border: 1px solid #d8e8e5;
  border-radius: 8px;
  background: #ffffff;
  color: #172432;
  cursor: pointer;
  font: inherit;
  padding: 8px 10px;
  text-align: left;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.glossary-category-chips button:hover,
.glossary-category-chips button[aria-pressed="true"] {
  border-color: #006d68;
  background: #edfdfa;
  color: #006d68;
  transform: translateY(-1px);
}

.glossary-category-chips strong {
  font-size: 0.86rem;
  line-height: 1.25;
}

.glossary-category-chips span {
  color: #566371;
  font-size: 0.72rem;
  font-weight: 900;
}

.glossary-filter-status {
  align-self: start;
  border: 1px solid #bfddd7;
  border-radius: 999px;
  background: #edfdfa;
  color: #006d68;
  font-size: 0.86rem;
  font-weight: 900;
  padding: 5px 10px;
  white-space: nowrap;
}

.glossary-match-reason {
  display: inline-flex;
  justify-self: start;
  border: 1px solid #d8e8e5;
  border-radius: 999px;
  background: #f2fbf9;
  color: #006d68;
  font-size: 0.76rem;
  font-weight: 900;
  padding: 4px 8px;
}

.glossary-match-reason[hidden] {
  display: none;
}

.glossary-section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.glossary-section-nav a {
  border: 1px solid #d8e8e5;
  border-radius: 999px;
  background: #ffffff;
  color: #006d68;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 6px 10px;
  text-decoration: none;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.glossary-section-nav a:hover {
  border-color: #006d68;
  background: #006d68;
  color: #ffffff;
}

.glossary-collapsible-section {
  margin-top: 22px;
  border: 1px solid #d8e8e5;
  border-radius: 8px;
  background: #fbfdfd;
  overflow: hidden;
}

.glossary-collapsible-section summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  list-style: none;
  padding: 16px;
}

.glossary-collapsible-section summary::-webkit-details-marker {
  display: none;
}

.glossary-collapsible-section summary h2,
.glossary-collapsible-section summary p {
  margin: 0;
}

.glossary-collapsible-section summary p {
  color: #566371;
  font-weight: 800;
}

.glossary-collapsible-section summary > span {
  border: 1px solid #bfddd7;
  border-radius: 999px;
  background: #ffffff;
  color: #006d68;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 6px 10px;
  white-space: nowrap;
}

.glossary-collapsible-section summary:hover,
.glossary-collapsible-section[open] summary {
  background: #edfdfa;
}

.glossary-collapsible-section[open] summary {
  border-bottom: 1px solid #d8e8e5;
}

.glossary-collapsible-section[open] summary > span {
  font-size: 0;
}

.glossary-collapsible-section[open] summary > span::before {
  content: "閉じる";
  font-size: 0.82rem;
}

.glossary-collapsible-body {
  padding: 16px;
}

.glossary-term-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.glossary-term-list a {
  display: grid;
  gap: 8px;
  align-content: start;
  border: 1px solid #d8e1e7;
  border-radius: 8px;
  background: #ffffff;
  color: inherit;
  min-height: 116px;
  padding: 12px;
  text-decoration: none;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.glossary-term-list a:target,
.glossary-term-list a:hover {
  border-color: #006d68;
  background: #edfdfa;
  transform: translateY(-1px);
}

.glossary-term-list strong {
  color: #006d68;
  font-size: 1rem;
  line-height: 1.35;
}

.glossary-term-list span {
  color: #566371;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.35;
}

.glossary-term-list em {
  width: fit-content;
  border-radius: 999px;
  background: #edfdfa;
  color: #566371;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
  padding: 4px 8px;
}

.glossary-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.glossary-detail-card {
  scroll-margin-top: 260px;
  border: 1px solid #d8e1e7;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.glossary-detail-card:target {
  border-color: #006d68;
  box-shadow: 0 0 0 4px rgba(0, 109, 104, 0.12);
}

.glossary-detail-card summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  list-style: none;
  padding: 14px;
}

.glossary-detail-card summary::-webkit-details-marker {
  display: none;
}

.glossary-detail-card summary::before {
  content: "";
  grid-column: 2;
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background:
    linear-gradient(#006d68, #006d68) center / 12px 2px no-repeat,
    linear-gradient(#006d68, #006d68) center / 2px 12px no-repeat,
    #edfdfa;
  color: #006d68;
  font-weight: 900;
}

.glossary-detail-card[open] summary::before {
  background:
    linear-gradient(#006d68, #006d68) center / 12px 2px no-repeat,
    #edfdfa;
}

.glossary-detail-card summary > span {
  grid-column: 3;
  grid-row: 1;
  color: #006d68;
  font-size: 0.8rem;
  font-weight: 900;
  white-space: nowrap;
}

.glossary-detail-card summary:hover {
  background: #edfdfa;
}

.glossary-detail-card[open] summary {
  border-bottom: 1px solid #e4ebef;
  background: #fbfdfd;
}

.glossary-detail-body {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.glossary-detail-head {
  display: grid;
  gap: 12px;
  align-items: start;
}

.term-detail-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 10px;
  border-radius: 999px;
  background: #006d68;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 7px 11px;
  text-decoration: none;
  transition: background 0.16s ease, transform 0.16s ease;
}

.term-detail-link:hover {
  background: #024f4c;
  transform: translateY(-1px);
}

.glossary-detail-head h3 {
  margin: 0;
  color: #172432;
  font-size: 1.34rem;
  line-height: 1.2;
}

.glossary-detail-head p {
  margin: 8px 0 0;
  color: #566371;
  font-weight: 800;
}

.glossary-fine-category {
  display: inline-flex;
  margin-left: 8px;
  border-radius: 999px;
  background: #eef5f3;
  color: #566371;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 3px 8px;
  vertical-align: middle;
}

.term-diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 6px;
  align-items: center;
  border: 1px solid #d8e1e7;
  border-radius: 8px;
  background: #f4f7f7;
  padding: 10px;
}

.term-diagram span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #ffffff;
  color: #172432;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 8px;
  text-align: center;
}

.term-diagram i {
  color: #006d68;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.term-diagram i::after {
  content: " ->";
}

.glossary-explain-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 0;
}

.glossary-explain-grid section {
  border: 1px solid #e4ebef;
  border-radius: 8px;
  background: #fbfdfd;
  padding: 12px;
}

.glossary-explain-grid section + section {
  border-top: 1px solid #e4ebef;
  padding-top: 14px;
}

.glossary-explain-grid h4 {
  margin: 0 0 6px;
  color: #006d68;
  font-size: 0.92rem;
}

.glossary-explain-grid p {
  margin: 0;
  color: #566371;
  font-weight: 800;
}

.related-term-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.related-term-list a,
.related-term-list span {
  border-radius: 999px;
  background: #edfdfa;
  color: #006d68;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 4px 8px;
}

.related-term-list a {
  text-decoration: none;
  transition: background 0.16s ease, color 0.16s ease;
}

.related-term-list a:hover {
  background: #006d68;
  color: #ffffff;
}

.term-sequence-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.term-sequence-nav a {
  display: grid;
  gap: 4px;
  border: 1px solid #d8e8e5;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: #0d1f2a;
  padding: 12px;
  text-decoration: none;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.term-sequence-nav a:hover {
  border-color: #31c7b5;
  background: #f2fbf9;
  transform: translateY(-1px);
}

.term-sequence-nav span {
  color: #5f7180;
  font-size: 0.75rem;
  font-weight: 900;
}

.term-sequence-nav strong {
  font-size: 0.94rem;
}

.term-reading-guide {
  display: grid;
  gap: 12px;
  border: 1px solid #d8e8e5;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f4faf8);
  padding: 16px;
}

.term-reading-guide p {
  margin: 0;
  color: #516a78;
  font-weight: 800;
  line-height: 1.7;
}

.term-reading-guide ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.term-reading-guide li {
  border-left: 4px solid #0a7c72;
  border-radius: 6px;
  background: #eaf6f3;
  color: #0d1f2a;
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.55;
  padding: 10px 12px;
}

.term-practice-note {
  border: 1px solid #cfe5e1;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f2faf8);
  padding: 16px;
}

.term-practice-note h2 {
  margin-bottom: 14px;
}

.term-practice-note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.term-practice-note-grid div {
  border: 1px solid #d8e8e5;
  border-radius: 8px;
  background: #ffffff;
  padding: 13px;
}

.term-practice-note-grid h3 {
  margin: 0 0 8px;
  color: #0a7c72;
  font-size: 0.92rem;
}

.term-practice-note-grid p,
.term-practice-note-grid li {
  color: #465d69;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.7;
}

.term-practice-note-grid p,
.term-practice-note-grid ul {
  margin: 0;
}

.term-practice-note-grid ul {
  padding-left: 18px;
}

.category-term-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-term-list a,
.category-term-list span {
  border: 1px solid #d8e8e5;
  border-radius: 8px;
  background: #fbfdfd;
  color: #006d68;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 8px 10px;
}

.category-term-list a {
  text-decoration: none;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.category-term-list a:hover {
  border-color: #31c7b5;
  background: #006d68;
  color: #ffffff;
}

.category-learning-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.category-learning-card {
  display: grid;
  gap: 12px;
  align-content: start;
  border: 1px solid #d8e8e5;
  border-radius: 8px;
  background: #fbfdfd;
  padding: 16px;
}

.category-learning-card h3 {
  margin: 0 0 6px;
  color: #172432;
  font-size: 1rem;
}

.category-learning-card p {
  margin: 0;
  color: #566371;
  font-size: 0.86rem;
  font-weight: 800;
}

.category-learning-card .category-learning-meta {
  margin-top: 8px;
  color: #6b7785;
  font-size: 0.75rem;
  line-height: 1.45;
}

.category-learning-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-learning-links a,
.category-learning-links span {
  border: 1px solid #d8e8e5;
  border-radius: 999px;
  background: #ffffff;
  color: #006d68;
  font-size: 0.8rem;
  font-weight: 900;
  padding: 6px 10px;
}

.category-learning-links a {
  text-decoration: none;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.category-learning-links a:hover,
.category-learning-links a.current {
  border-color: #31c7b5;
  background: #006d68;
  color: #ffffff;
}

.glossary-review-section {
  margin-top: 22px;
  border: 1px solid #d8e8e5;
  border-radius: 8px;
  background: #fbfdfd;
  overflow: hidden;
}

.glossary-review-section summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  list-style: none;
  padding: 16px;
}

.glossary-review-section summary::-webkit-details-marker {
  display: none;
}

.glossary-review-section summary:hover {
  background: #edfdfa;
}

.glossary-review-section summary h2,
.glossary-review-section summary p {
  margin: 0;
}

.glossary-review-section summary p {
  color: #566371;
  font-weight: 800;
}

.glossary-review-section summary > span {
  border: 1px solid #bfddd7;
  border-radius: 999px;
  background: #ffffff;
  color: #006d68;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 6px 10px;
}

.glossary-review-section[open] summary {
  border-bottom: 1px solid #d8e8e5;
  background: #edfdfa;
}

.glossary-review-section[open] summary > span {
  font-size: 0;
}

.glossary-review-section[open] summary > span::before {
  content: "閉じる";
  font-size: 0.82rem;
}

.glossary-review-body {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.glossary-review-head {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr);
  gap: 14px;
  align-items: end;
}

.glossary-review-head h2,
.glossary-review-head p,
.glossary-review-card h3,
.glossary-review-card p {
  margin: 0;
}

.glossary-review-head p,
.glossary-review-card > p {
  color: #566371;
  font-weight: 800;
}

.glossary-review-head label {
  display: grid;
  gap: 6px;
  color: #172432;
  font-size: 0.84rem;
  font-weight: 900;
}

.glossary-review-head select {
  min-height: 42px;
  border: 1px solid #cbd9df;
  border-radius: 8px;
  background: #ffffff;
  color: #172432;
  font: inherit;
  font-weight: 800;
  padding: 9px 10px;
}

.glossary-review-head select:focus {
  border-color: #006d68;
  outline: 3px solid rgba(0, 109, 104, 0.16);
}

.glossary-review-card {
  display: grid;
  gap: 12px;
  border: 1px solid #d8e1e7;
  border-radius: 8px;
  background: #ffffff;
  padding: 16px;
}

.glossary-review-card h3 {
  color: #172432;
  font-size: 1.45rem;
  line-height: 1.2;
}

.glossary-review-answer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.glossary-review-answer[hidden] {
  display: none;
}

.glossary-review-answer section {
  border: 1px solid #e4ebef;
  border-radius: 8px;
  background: #fbfdfd;
  padding: 12px;
}

.glossary-review-answer h4 {
  margin: 0 0 6px;
  color: #006d68;
  font-size: 0.9rem;
}

.glossary-review-answer p {
  color: #566371;
  font-size: 0.9rem;
  font-weight: 800;
}

.glossary-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.glossary-review-actions button,
.glossary-review-actions a {
  border: 1px solid #cbd9df;
  border-radius: 999px;
  background: #ffffff;
  color: #006d68;
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 900;
  padding: 8px 12px;
  text-decoration: none;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.glossary-review-actions button:hover,
.glossary-review-actions a:hover {
  border-color: #006d68;
  background: #edfdfa;
}

.glossary-review-progress {
  color: #006d68;
  font-size: 0.86rem;
  font-weight: 900;
}

.term-page-learning-links {
  margin-top: 12px;
}

.related-tool-list {
  display: grid;
  gap: 8px;
}

.related-tool-list a,
.related-tool-list span {
  border: 1px solid #d8e8e5;
  border-radius: 8px;
  background: #f2fbf9;
  color: #0d1f2a;
  padding: 10px;
}

.related-tool-list a {
  display: grid;
  gap: 3px;
  text-decoration: none;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.related-tool-list a:hover {
  border-color: #31c7b5;
  background: #e5f8f4;
  transform: translateY(-1px);
}

.related-tool-list strong {
  font-size: 0.86rem;
}

.related-tool-list em {
  color: #5f7180;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 900;
}

.glossary-term-content {
  display: grid;
  gap: 22px;
}

.term-deep-diagram {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  margin-top: 14px;
}

.term-deep-diagram--detailed {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
}

.term-deep-diagram div {
  border: 1px solid #d8e8e5;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f4fbfa);
  padding: 14px;
}

.term-deep-diagram strong,
.term-deep-diagram span {
  display: block;
}

.term-deep-diagram strong {
  color: #0d1f2a;
  font-size: 0.92rem;
}

.term-deep-diagram span {
  margin-top: 6px;
  color: #5f7180;
  font-size: 0.84rem;
  font-weight: 800;
}

.term-deep-diagram i {
  align-self: center;
  color: #006d68;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}

.term-deep-diagram i::after {
  content: " ->";
}

.term-deep-diagram dl {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  margin: 0;
}

.term-deep-diagram dl div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  background: #eef8f6;
}

.term-deep-diagram dt,
.term-deep-diagram dd {
  margin: 0;
}

.term-deep-diagram dt {
  color: #0d1f2a;
  font-size: 0.78rem;
  font-weight: 900;
}

.term-deep-diagram dd {
  color: #4c6270;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.7;
}

.term-visual-diagram {
  margin: 14px 0 0;
  border: 1px solid #cfe5e1;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f3faf8);
  padding: 16px;
}

.term-visual-diagram figcaption {
  color: #0d1f2a;
  font-size: 0.98rem;
  font-weight: 900;
  margin-bottom: 14px;
}

.term-visual-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.term-visual-node {
  position: relative;
  min-height: 138px;
  border: 1px solid #d8e8e5;
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
}

.term-visual-node:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -16px;
  width: 18px;
  height: 2px;
  background: #0a7c72;
  transform: translateY(-50%);
  z-index: 1;
}

.term-visual-node:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -17px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid #0a7c72;
  transform: translateY(-50%);
  z-index: 2;
}

.term-visual-node strong,
.term-visual-node span {
  display: block;
}

.term-visual-node strong {
  color: #0d1f2a;
  font-size: 0.9rem;
  font-weight: 900;
}

.term-visual-node span {
  margin-top: 8px;
  color: #516a78;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.65;
}

.term-visual-diagram ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.term-visual-diagram li {
  border-left: 4px solid #0a7c72;
  border-radius: 6px;
  background: #eaf6f3;
  color: #37515f;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.65;
  padding: 10px 12px;
}

section + section {
  border-top: 1px solid #d8e1e7;
  padding-top: 22px;
}

h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

ul,
ol,
dl {
  margin: 0;
}

ul,
ol {
  padding-left: 1.25rem;
}

dl {
  display: grid;
  gap: 10px;
}

dt {
  color: #172432;
  font-weight: 900;
}

dd {
  margin: 0;
  color: #566371;
  font-weight: 800;
}

li + li {
  margin-top: 6px;
}

.note {
  border-left: 4px solid #d96f45;
  border-radius: 6px;
  background: #fff5ef;
  color: #8f3d21;
  padding: 12px 14px;
  font-weight: 800;
}

footer {
  margin-top: 20px;
  color: var(--subtle);
  font-size: 0.9rem;
}

:root[data-theme="dark"] body {
  background:
    linear-gradient(rgba(143, 226, 212, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 226, 212, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, #081115 0%, #10252a 48%, #2a2417 100%);
  background-size: 32px 32px, 32px 32px, auto;
  color: #eef7f4;
}

:root[data-theme="dark"] .top-link,
:root[data-theme="dark"] .breadcrumb a,
:root[data-theme="dark"] .eyebrow,
:root[data-theme="dark"] .tool-card em,
:root[data-theme="dark"] .directory-link-list a,
:root[data-theme="dark"] .workflow-card a,
:root[data-theme="dark"] .workflow-bridge a {
  color: #8fe2d4;
}

:root[data-theme="dark"] .breadcrumb,
:root[data-theme="dark"] .lead,
:root[data-theme="dark"] .directory-note,
:root[data-theme="dark"] .workflow-card p,
:root[data-theme="dark"] .workflow-bridge p,
:root[data-theme="dark"] .tool-card span,
:root[data-theme="dark"] dd,
:root[data-theme="dark"] footer {
  color: #a9bac2;
}

:root[data-theme="dark"] .primary-link {
  background: linear-gradient(135deg, #8fe2d4, #6ea8ff);
  color: #081115;
}

:root[data-theme="dark"] .hero,
:root[data-theme="dark"] .content {
  border-color: rgba(143, 226, 212, 0.18);
  background:
    linear-gradient(180deg, rgba(20, 36, 44, 0.96), rgba(15, 29, 36, 0.9)),
    radial-gradient(circle at top right, rgba(49, 199, 181, 0.1), transparent 36%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2,
:root[data-theme="dark"] h3,
:root[data-theme="dark"] dt,
:root[data-theme="dark"] .workflow-card strong,
:root[data-theme="dark"] .tool-card strong {
  color: #eef7f4;
}

:root[data-theme="dark"] .workflow-card,
:root[data-theme="dark"] .workflow-bridge,
:root[data-theme="dark"] .tool-card,
:root[data-theme="dark"] .directory-link-list a,
:root[data-theme="dark"] .workflow-card a,
:root[data-theme="dark"] .workflow-bridge a,
:root[data-theme="dark"] .page-jump-nav a {
  border-color: rgba(143, 226, 212, 0.16);
  background: rgba(17, 32, 39, 0.96);
}

:root[data-theme="dark"] .directory-all-tools {
  border-top-color: rgba(143, 226, 212, 0.16);
}

:root[data-theme="dark"] .page-jump-nav a {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

:root[data-theme="dark"] .directory-link-list a:hover,
:root[data-theme="dark"] .workflow-card a:hover,
:root[data-theme="dark"] .workflow-bridge a:hover,
:root[data-theme="dark"] .page-jump-nav a:hover {
  border-color: #8fe2d4;
  background: rgba(49, 199, 181, 0.14);
  color: #8fe2d4;
}

:root[data-theme="dark"] .note {
  border-left-color: #f0a36f;
  background: rgba(143, 74, 38, 0.2);
  color: #ffd6bc;
}

:root[data-theme="dark"] .glossary-term-link,
:root[data-theme="dark"] .glossary-term-list strong,
:root[data-theme="dark"] .glossary-explain-grid h4,
:root[data-theme="dark"] .term-diagram i {
  color: #8fe2d4;
}

:root[data-theme="dark"] .glossary-term-link {
  border-bottom-color: rgba(143, 226, 212, 0.32);
}

:root[data-theme="dark"] .glossary-term-link:hover {
  border-bottom-color: #8fe2d4;
  background: rgba(49, 199, 181, 0.14);
}

:root[data-theme="dark"] .glossary-filter-section,
:root[data-theme="dark"] .glossary-collapsible-section,
:root[data-theme="dark"] .glossary-collapsible-section summary > span,
:root[data-theme="dark"] .glossary-review-section summary > span,
:root[data-theme="dark"] .glossary-filter-status,
:root[data-theme="dark"] .glossary-filter-controls input,
:root[data-theme="dark"] .glossary-filter-controls select,
:root[data-theme="dark"] .glossary-filter-controls button,
:root[data-theme="dark"] .glossary-section-nav a,
:root[data-theme="dark"] .glossary-query-chips button,
:root[data-theme="dark"] .glossary-category-chips button,
:root[data-theme="dark"] .glossary-match-reason,
:root[data-theme="dark"] .glossary-detail-card,
:root[data-theme="dark"] .glossary-detail-card summary::before,
:root[data-theme="dark"] .glossary-term-list a,
:root[data-theme="dark"] .glossary-term-list em,
:root[data-theme="dark"] .glossary-fine-category,
:root[data-theme="dark"] .glossary-explain-grid section,
:root[data-theme="dark"] .term-diagram,
:root[data-theme="dark"] .term-diagram span,
:root[data-theme="dark"] .term-sequence-nav a,
:root[data-theme="dark"] .term-reading-guide,
:root[data-theme="dark"] .term-reading-guide li,
:root[data-theme="dark"] .term-practice-note,
:root[data-theme="dark"] .term-practice-note-grid div,
:root[data-theme="dark"] .term-visual-diagram,
:root[data-theme="dark"] .term-visual-node,
:root[data-theme="dark"] .term-visual-diagram li,
:root[data-theme="dark"] .category-term-list a,
:root[data-theme="dark"] .category-term-list span,
:root[data-theme="dark"] .category-learning-card,
:root[data-theme="dark"] .category-learning-links a,
:root[data-theme="dark"] .category-learning-links span,
:root[data-theme="dark"] .related-tool-list a,
:root[data-theme="dark"] .related-tool-list span {
  border-color: rgba(143, 226, 212, 0.16);
  background: rgba(17, 32, 39, 0.96);
  color: #eef7f4;
}

:root[data-theme="dark"] .glossary-filter-section p,
:root[data-theme="dark"] .glossary-collapsible-section summary p,
:root[data-theme="dark"] .glossary-review-section summary p,
:root[data-theme="dark"] .glossary-filter-controls label,
:root[data-theme="dark"] .glossary-category-chips span,
:root[data-theme="dark"] .glossary-detail-head p,
:root[data-theme="dark"] .glossary-explain-grid p,
:root[data-theme="dark"] .glossary-term-list span,
:root[data-theme="dark"] .glossary-term-list em,
:root[data-theme="dark"] .term-sequence-nav span,
:root[data-theme="dark"] .term-reading-guide p,
:root[data-theme="dark"] .term-practice-note-grid p,
:root[data-theme="dark"] .term-practice-note-grid li,
:root[data-theme="dark"] .term-visual-node span,
:root[data-theme="dark"] .term-visual-diagram li,
:root[data-theme="dark"] .category-learning-card p,
:root[data-theme="dark"] .related-tool-list em {
  color: #a9bac2;
}

:root[data-theme="dark"] .glossary-detail-head h3,
:root[data-theme="dark"] .category-learning-card h3,
:root[data-theme="dark"] .term-diagram span,
:root[data-theme="dark"] .term-visual-diagram figcaption,
:root[data-theme="dark"] .term-visual-node strong,
:root[data-theme="dark"] .related-tool-list strong {
  color: #eef7f4;
}

:root[data-theme="dark"] .term-detail-link,
:root[data-theme="dark"] #glossary-filter-apply {
  border-color: #8fe2d4;
  background: #8fe2d4;
  color: #081115;
}

:root[data-theme="dark"] .term-detail-link:hover,
:root[data-theme="dark"] #glossary-filter-apply:hover {
  background: #b5fff2;
  color: #081115;
}

:root[data-theme="dark"] .related-term-list a,
:root[data-theme="dark"] .related-term-list span,
:root[data-theme="dark"] .category-learning-card .category-learning-meta,
:root[data-theme="dark"] .term-reading-guide li {
  background: rgba(49, 199, 181, 0.14);
  color: #8fe2d4;
}

:root[data-theme="dark"] .term-practice-note-grid h3 {
  color: #8fe2d4;
}

:root[data-theme="dark"] .related-term-list a:hover,
:root[data-theme="dark"] .category-term-list a:hover,
:root[data-theme="dark"] .category-learning-links a:hover,
:root[data-theme="dark"] .category-learning-links a.current,
:root[data-theme="dark"] .related-tool-list a:hover,
:root[data-theme="dark"] .glossary-detail-card summary:hover,
:root[data-theme="dark"] .glossary-detail-card[open] summary,
:root[data-theme="dark"] .glossary-collapsible-section summary:hover,
:root[data-theme="dark"] .glossary-collapsible-section[open] summary,
:root[data-theme="dark"] .glossary-section-nav a:hover,
:root[data-theme="dark"] .glossary-query-chips button:hover,
:root[data-theme="dark"] .glossary-category-chips button:hover,
:root[data-theme="dark"] .glossary-category-chips button[aria-pressed="true"],
:root[data-theme="dark"] .glossary-term-list a:target,
:root[data-theme="dark"] .glossary-term-list a:hover,
:root[data-theme="dark"] .term-sequence-nav a:hover {
  border-color: rgba(49, 199, 181, 0.58);
  background: rgba(31, 55, 65, 0.98);
  color: #8fe2d4;
}

:root[data-theme="dark"] .glossary-detail-card[open] summary,
:root[data-theme="dark"] .glossary-collapsible-section[open] summary,
:root[data-theme="dark"] .glossary-review-section[open] summary {
  border-bottom-color: rgba(143, 226, 212, 0.18);
}

:root[data-theme="dark"] .glossary-detail-card summary > span,
:root[data-theme="dark"] .glossary-detail-card summary::before,
:root[data-theme="dark"] .glossary-filter-status {
  color: #8fe2d4;
}

:root[data-theme="dark"] .glossary-filter-section p.glossary-filter-status {
  color: #8fe2d4;
}

:root[data-theme="dark"] .glossary-detail-card summary::before {
  background:
    linear-gradient(#8fe2d4, #8fe2d4) center / 12px 2px no-repeat,
    linear-gradient(#8fe2d4, #8fe2d4) center / 2px 12px no-repeat,
    rgba(49, 199, 181, 0.14);
}

:root[data-theme="dark"] .glossary-detail-card[open] summary::before {
  background:
    linear-gradient(#8fe2d4, #8fe2d4) center / 12px 2px no-repeat,
    rgba(49, 199, 181, 0.14);
}

@media (prefers-color-scheme: dark) {
  body {
    background:
      linear-gradient(rgba(143, 226, 212, 0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(143, 226, 212, 0.04) 1px, transparent 1px),
      linear-gradient(135deg, #081115 0%, #10252a 48%, #2a2417 100%);
    background-size: 32px 32px, 32px 32px, auto;
    color: #eef7f4;
  }

  .top-link,
  .breadcrumb a {
    color: #8fe2d4;
  }

  .breadcrumb {
    color: #a9bac2;
  }

  .page-jump-nav a {
    border-color: rgba(143, 226, 212, 0.22);
    background: rgba(17, 32, 39, 0.94);
    color: #8fe2d4;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
  }

  .page-jump-nav a:hover {
    background: #8fe2d4;
    color: #081115;
  }

  .hero,
  .content {
    border-color: rgba(143, 226, 212, 0.18);
    background:
      linear-gradient(180deg, rgba(20, 36, 44, 0.96), rgba(15, 29, 36, 0.9)),
      radial-gradient(circle at top right, rgba(49, 199, 181, 0.1), transparent 36%);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  }

  .eyebrow,
  .tool-card em,
  .glossary-term-link,
  .glossary-term-list strong,
  .glossary-explain-grid h4,
  .term-diagram i {
    color: #8fe2d4;
  }

  .glossary-term-link {
    border-bottom-color: rgba(143, 226, 212, 0.32);
  }

  .glossary-term-link:hover {
    border-bottom-color: #8fe2d4;
    background: rgba(49, 199, 181, 0.14);
  }

  .glossary-filter-section,
  .glossary-collapsible-section,
  .glossary-collapsible-section summary > span,
  .glossary-review-section summary > span,
  .glossary-filter-status,
  .workflow-bridge,
  .workflow-bridge a,
  .directory-link-list a,
  .glossary-filter-controls input,
  .glossary-filter-controls select,
  .glossary-filter-controls button,
  .glossary-section-nav a,
  .glossary-category-chips button,
  .glossary-detail-card,
  .glossary-detail-card summary::before,
  .glossary-term-list a,
  .glossary-term-list em,
  .glossary-fine-category,
  .glossary-explain-grid section,
  .term-diagram,
  .term-diagram span,
  .term-reading-guide,
  .term-reading-guide li,
  .term-practice-note,
  .term-practice-note-grid div,
  .term-visual-diagram,
  .term-visual-node,
  .term-visual-diagram li,
  .term-sequence-nav a,
  .category-term-list a,
  .category-term-list span,
  .category-learning-card,
  .category-learning-links a,
  .category-learning-links span,
  .related-tool-list a,
  .related-tool-list span {
    border-color: rgba(143, 226, 212, 0.16);
    background: rgba(17, 32, 39, 0.96);
    color: #eef7f4;
  }

  .glossary-filter-section p,
  .directory-note,
  .workflow-bridge p,
  .glossary-collapsible-section summary p,
  .glossary-review-section summary p,
  .glossary-filter-controls label,
  .glossary-category-chips span,
  .glossary-detail-head p,
  .glossary-explain-grid p,
  .glossary-term-list span,
  .glossary-term-list em,
  .term-sequence-nav span,
  .term-reading-guide p,
  .term-practice-note-grid p,
  .term-practice-note-grid li,
  .term-visual-node span,
  .term-visual-diagram li,
  .category-learning-card p,
  .category-learning-card .category-learning-meta,
  .related-tool-list em {
    color: #a9bac2;
  }

  .glossary-filter-controls input:focus,
  .glossary-filter-controls select:focus {
    border-color: #8fe2d4;
    outline-color: rgba(143, 226, 212, 0.18);
  }

  .glossary-filter-controls button:hover,
  .directory-link-list a:hover,
  .glossary-collapsible-section summary:hover,
  .glossary-collapsible-section[open] summary,
  .glossary-review-section summary:hover,
  .glossary-review-section[open] summary,
  .glossary-section-nav a:hover,
  .glossary-category-chips button:hover,
  .glossary-category-chips button[aria-pressed="true"] {
    border-color: #8fe2d4;
    background: rgba(49, 199, 181, 0.14);
    color: #8fe2d4;
  }

  #glossary-filter-apply {
    border-color: #8fe2d4;
    background: #8fe2d4;
    color: #081115;
  }

  #glossary-filter-apply:hover {
    background: #b5fff2;
    color: #081115;
  }

  .glossary-filter-status {
    color: #8fe2d4;
  }

  .glossary-filter-section p.glossary-filter-status {
    color: #8fe2d4;
  }

  .term-detail-link {
    background: #8fe2d4;
    color: #081115;
  }

  .term-detail-link:hover {
    background: #b5fff2;
  }

  h1,
  h2,
  h3,
  dt,
  .tool-card strong,
  .glossary-detail-head h3,
  .term-diagram span,
  .term-visual-diagram figcaption,
  .term-visual-node strong,
  .category-learning-card h3,
  .related-tool-list strong,
  .term-deep-diagram strong {
    color: #eef7f4;
  }

  .lead,
  .tool-card span,
  .glossary-detail-head p,
  .glossary-explain-grid p,
  .term-deep-diagram span,
  dd,
  footer {
    color: #a9bac2;
  }

  .tool-card,
  .glossary-term-list a,
  .glossary-detail-card,
  .glossary-detail-card summary::before,
  .glossary-term-list em,
  .glossary-fine-category,
  .glossary-explain-grid section,
  .term-diagram,
  .term-diagram span,
  .term-deep-diagram div,
  .term-deep-diagram dl div {
    border-color: rgba(143, 226, 212, 0.16);
    background: rgba(22, 37, 45, 0.96);
  }

  .term-deep-diagram dt {
    color: #eef7f4;
  }

  .term-deep-diagram dd {
    color: #a9bac2;
  }

  .term-deep-diagram i {
    color: #8fe2d4;
  }

  .term-visual-diagram,
  .term-visual-node {
    border-color: rgba(143, 226, 212, 0.16);
    background: rgba(22, 37, 45, 0.96);
  }

  .term-visual-diagram figcaption,
  .term-visual-node strong {
    color: #eef7f4;
  }

  .term-visual-node span {
    color: #a9bac2;
  }

  .term-visual-diagram li {
    background: rgba(143, 226, 212, 0.1);
    color: #c0d1d7;
  }

  .glossary-detail-card:target {
    border-color: #8fe2d4;
    box-shadow: 0 0 0 4px rgba(143, 226, 212, 0.16);
  }

  .glossary-detail-card summary:hover,
  .glossary-detail-card[open] summary {
    background: rgba(31, 55, 65, 0.98);
  }

  .glossary-detail-card[open] summary {
    border-bottom-color: rgba(143, 226, 212, 0.18);
  }

  .glossary-collapsible-section[open] summary {
    border-bottom-color: rgba(143, 226, 212, 0.18);
  }

  .glossary-review-section[open] summary {
    border-bottom-color: rgba(143, 226, 212, 0.18);
  }

  .glossary-detail-card summary > span,
  .glossary-detail-card summary::before {
    color: #8fe2d4;
  }

  .glossary-detail-card summary::before {
    background:
      linear-gradient(#8fe2d4, #8fe2d4) center / 12px 2px no-repeat,
      linear-gradient(#8fe2d4, #8fe2d4) center / 2px 12px no-repeat,
      rgba(49, 199, 181, 0.14);
  }

  .glossary-detail-card[open] summary::before {
    background:
      linear-gradient(#8fe2d4, #8fe2d4) center / 12px 2px no-repeat,
      rgba(49, 199, 181, 0.14);
  }

  .glossary-term-list a:target,
  .glossary-term-list a:hover {
    border-color: rgba(49, 199, 181, 0.58);
    background: rgba(31, 55, 65, 0.98);
  }

  .glossary-term-list span,
  .glossary-term-list em {
    color: #a9bac2;
  }

  .related-term-list a,
  .related-term-list span {
    background: rgba(49, 199, 181, 0.14);
    color: #8fe2d4;
  }

  .related-term-list a:hover {
    background: #8fe2d4;
    color: #081115;
  }

  .term-sequence-nav a,
  .category-term-list a,
  .category-term-list span,
  .category-learning-card,
  .category-learning-links a,
  .category-learning-links span,
  .glossary-review-section,
  .glossary-review-card,
  .glossary-review-answer section,
  .glossary-review-head select,
  .glossary-review-actions button,
  .glossary-review-actions a {
    border-color: rgba(143, 226, 212, 0.16);
    background: rgba(17, 32, 39, 0.96);
    color: #eef7f4;
  }

  .category-learning-card h3,
  .glossary-review-card h3 {
    color: #eef7f4;
  }

  .category-learning-card p,
  .glossary-review-head p,
  .glossary-review-card > p,
  .glossary-review-answer p {
    color: #a9bac2;
  }

  .glossary-review-head label {
    color: #a9bac2;
  }

  .glossary-review-answer h4,
  .glossary-review-progress {
    color: #8fe2d4;
  }

  .glossary-review-head select:focus {
    border-color: #8fe2d4;
    outline-color: rgba(143, 226, 212, 0.18);
  }

  .term-sequence-nav a:hover,
  .category-term-list a:hover,
  .category-learning-links a:hover,
  .category-learning-links a.current,
  .glossary-review-actions button:hover,
  .glossary-review-actions a:hover {
    border-color: rgba(49, 199, 181, 0.58);
    background: rgba(31, 55, 65, 0.98);
  }

  .term-sequence-nav span {
    color: #a9bac2;
  }

  .related-tool-list a,
  .related-tool-list span {
    border-color: rgba(143, 226, 212, 0.16);
    background: rgba(17, 32, 39, 0.96);
    color: #eef7f4;
  }

  .related-tool-list a:hover {
    border-color: rgba(49, 199, 181, 0.58);
    background: rgba(31, 55, 65, 0.98);
  }

  .related-tool-list em {
    color: #a9bac2;
  }

  .tool-card:hover {
    border-color: rgba(49, 199, 181, 0.58);
    background: rgba(31, 55, 65, 0.98);
  }

  section + section {
    border-top-color: rgba(143, 226, 212, 0.18);
  }

  .note {
    border-left-color: #ff8a6d;
    background: rgba(255, 138, 109, 0.12);
    color: #ffb39f;
  }
}

:root[data-theme="light"] body {
  background: var(--page-bg);
  color: var(--ink);
}

:root[data-theme="light"] .top-link,
:root[data-theme="light"] .breadcrumb a,
:root[data-theme="light"] .eyebrow,
:root[data-theme="light"] .tool-card em,
:root[data-theme="light"] .directory-link-list a,
:root[data-theme="light"] .workflow-card a,
:root[data-theme="light"] .workflow-bridge a,
:root[data-theme="light"] .glossary-term-link,
:root[data-theme="light"] .glossary-term-list strong,
:root[data-theme="light"] .glossary-explain-grid h4,
:root[data-theme="light"] .term-diagram i {
  color: var(--accent);
}

:root[data-theme="light"] .breadcrumb,
:root[data-theme="light"] .lead,
:root[data-theme="light"] .directory-note,
:root[data-theme="light"] .workflow-card p,
:root[data-theme="light"] .workflow-bridge p,
:root[data-theme="light"] .tool-card span,
:root[data-theme="light"] dd,
:root[data-theme="light"] footer {
  color: var(--muted);
}

:root[data-theme="light"] .hero,
:root[data-theme="light"] .content,
:root[data-theme="light"] .workflow-card,
:root[data-theme="light"] .workflow-bridge,
:root[data-theme="light"] .tool-card,
:root[data-theme="light"] .directory-link-list a,
:root[data-theme="light"] .workflow-card a,
:root[data-theme="light"] .workflow-bridge a,
:root[data-theme="light"] .page-jump-nav a {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

:root[data-theme="light"] .hero,
:root[data-theme="light"] .content {
  box-shadow: var(--shadow-panel);
}

:root[data-theme="light"] .workflow-card,
:root[data-theme="light"] .tool-card {
  background: var(--surface-raised);
}

:root[data-theme="light"] .workflow-bridge {
  border-color: var(--line-strong);
  background: var(--surface-soft);
}

:root[data-theme="light"] h1,
:root[data-theme="light"] h2,
:root[data-theme="light"] h3,
:root[data-theme="light"] dt,
:root[data-theme="light"] .workflow-card strong,
:root[data-theme="light"] .tool-card strong {
  color: var(--ink);
}

:root[data-theme="light"] .directory-link-list a,
:root[data-theme="light"] .workflow-card a,
:root[data-theme="light"] .workflow-bridge a,
:root[data-theme="light"] .page-jump-nav a {
  border-color: var(--accent-soft);
  color: var(--accent);
}

:root[data-theme="light"] .directory-link-list a:hover,
:root[data-theme="light"] .workflow-card a:hover,
:root[data-theme="light"] .workflow-bridge a:hover {
  border-color: var(--accent);
  background: var(--surface-tinted);
  color: var(--accent);
}

:root[data-theme="light"] .page-jump-nav a:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

:root[data-theme="light"] .directory-all-tools,
:root[data-theme="light"] section + section {
  border-top-color: var(--line);
}

:root[data-theme="light"] .note {
  border-left-color: #d96f45;
  background: #fff5ef;
  color: #8f3d21;
}

:root[data-theme="light"] .glossary-filter-section,
:root[data-theme="light"] .glossary-collapsible-section,
:root[data-theme="light"] .glossary-review-section,
:root[data-theme="light"] .glossary-detail-card,
:root[data-theme="light"] .glossary-term-list a,
:root[data-theme="light"] .glossary-explain-grid section,
:root[data-theme="light"] .category-term-list a,
:root[data-theme="light"] .category-term-list span,
:root[data-theme="light"] .category-learning-card,
:root[data-theme="light"] .term-sequence-nav a,
:root[data-theme="light"] .related-tool-list a,
:root[data-theme="light"] .related-tool-list span,
:root[data-theme="light"] .glossary-review-card,
:root[data-theme="light"] .glossary-review-answer section,
:root[data-theme="light"] .glossary-review-head select,
:root[data-theme="light"] .glossary-review-actions button,
:root[data-theme="light"] .glossary-review-actions a {
  border-color: #d8e8e5;
  background: #fbfdfd;
  color: var(--ink);
}

:root[data-theme="light"] .glossary-filter-controls input,
:root[data-theme="light"] .glossary-filter-controls select,
:root[data-theme="light"] .glossary-filter-controls button,
:root[data-theme="light"] .glossary-section-nav a,
:root[data-theme="light"] .glossary-category-chips button,
:root[data-theme="light"] .glossary-collapsible-section summary > span,
:root[data-theme="light"] .glossary-review-section summary > span,
:root[data-theme="light"] .glossary-detail-card summary::before,
:root[data-theme="light"] .glossary-term-list em,
:root[data-theme="light"] .glossary-fine-category,
:root[data-theme="light"] .category-learning-links a,
:root[data-theme="light"] .category-learning-links span {
  border-color: #d8e8e5;
  background: var(--surface);
  color: var(--ink);
}

:root[data-theme="light"] .term-reading-guide,
:root[data-theme="light"] .term-practice-note {
  border-color: #d8e8e5;
  background: linear-gradient(180deg, #ffffff, #f4faf8);
  color: var(--ink);
}

:root[data-theme="light"] .term-reading-guide li,
:root[data-theme="light"] .related-term-list a,
:root[data-theme="light"] .related-term-list span {
  background: #eaf6f3;
  color: var(--accent);
}

:root[data-theme="light"] .term-practice-note-grid div,
:root[data-theme="light"] .term-diagram span,
:root[data-theme="light"] .term-deep-diagram div,
:root[data-theme="light"] .term-deep-diagram dl div,
:root[data-theme="light"] .term-visual-node {
  border-color: #d8e8e5;
  background: var(--surface);
  color: var(--ink);
}

:root[data-theme="light"] .term-diagram,
:root[data-theme="light"] .term-deep-diagram,
:root[data-theme="light"] .term-visual-diagram {
  border-color: var(--line);
  background: var(--page-bg);
  color: var(--ink);
}

:root[data-theme="light"] .term-visual-diagram li {
  background: #eaf6f3;
  color: #0d1f2a;
}

:root[data-theme="light"] .glossary-filter-section p,
:root[data-theme="light"] .glossary-collapsible-section summary p,
:root[data-theme="light"] .glossary-review-section summary p,
:root[data-theme="light"] .glossary-filter-controls label,
:root[data-theme="light"] .glossary-category-chips span,
:root[data-theme="light"] .glossary-detail-head p,
:root[data-theme="light"] .glossary-explain-grid p,
:root[data-theme="light"] .glossary-term-list span,
:root[data-theme="light"] .glossary-term-list em,
:root[data-theme="light"] .term-sequence-nav span,
:root[data-theme="light"] .term-reading-guide p,
:root[data-theme="light"] .term-practice-note-grid p,
:root[data-theme="light"] .term-practice-note-grid li,
:root[data-theme="light"] .term-deep-diagram span,
:root[data-theme="light"] .term-visual-node span,
:root[data-theme="light"] .category-learning-card p,
:root[data-theme="light"] .category-learning-card .category-learning-meta,
:root[data-theme="light"] .glossary-review-head p,
:root[data-theme="light"] .glossary-review-card > p,
:root[data-theme="light"] .glossary-review-answer p,
:root[data-theme="light"] .related-tool-list em {
  color: var(--muted);
}

:root[data-theme="light"] .glossary-detail-head h3,
:root[data-theme="light"] .term-diagram span,
:root[data-theme="light"] .term-deep-diagram strong,
:root[data-theme="light"] .term-deep-diagram dt,
:root[data-theme="light"] .term-visual-diagram figcaption,
:root[data-theme="light"] .term-visual-node strong,
:root[data-theme="light"] .category-learning-card h3,
:root[data-theme="light"] .glossary-review-card h3,
:root[data-theme="light"] .related-tool-list strong {
  color: var(--ink);
}

:root[data-theme="light"] .term-detail-link,
:root[data-theme="light"] #glossary-filter-apply,
:root[data-theme="light"] .category-term-list a:hover,
:root[data-theme="light"] .category-learning-links a:hover,
:root[data-theme="light"] .category-learning-links a.current,
:root[data-theme="light"] .glossary-review-actions button:hover,
:root[data-theme="light"] .glossary-review-actions a:hover,
:root[data-theme="light"] .related-tool-list a:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

:root[data-theme="light"] .glossary-detail-card summary:hover,
:root[data-theme="light"] .glossary-detail-card[open] summary,
:root[data-theme="light"] .glossary-collapsible-section summary:hover,
:root[data-theme="light"] .glossary-collapsible-section[open] summary,
:root[data-theme="light"] .glossary-review-section summary:hover,
:root[data-theme="light"] .glossary-review-section[open] summary,
:root[data-theme="light"] .glossary-section-nav a:hover,
:root[data-theme="light"] .glossary-category-chips button:hover,
:root[data-theme="light"] .glossary-category-chips button[aria-pressed="true"],
:root[data-theme="light"] .glossary-term-list a:target,
:root[data-theme="light"] .glossary-term-list a:hover,
:root[data-theme="light"] .term-sequence-nav a:hover {
  border-color: var(--accent-soft);
  background: var(--surface-tinted);
  color: var(--accent);
}

@media (max-width: 680px) {
  .page {
    width: min(100% - 24px, var(--content-width));
    padding-top: 18px;
  }

  .hero,
  .content {
    padding: 22px;
  }

  .glossary-filter-section {
    position: static;
  }

  .glossary-filter-head,
  .glossary-detail-card summary {
    grid-template-columns: 1fr auto;
  }

  .glossary-filter-status,
  .glossary-detail-card summary > span {
    justify-self: start;
    white-space: normal;
  }

  .glossary-detail-card summary > span {
    display: none;
  }

  .glossary-detail-head,
  .glossary-explain-grid,
  .category-learning-grid,
  .glossary-review-head,
  .glossary-review-answer,
  .glossary-filter-controls {
    grid-template-columns: 1fr;
  }

  .term-diagram {
    grid-template-columns: 1fr;
  }

  .term-deep-diagram {
    grid-template-columns: 1fr;
  }

  .term-visual-flow,
  .term-visual-diagram ul {
    grid-template-columns: 1fr;
  }

  .term-visual-node {
    min-height: auto;
  }

  .term-visual-node:not(:last-child)::before,
  .term-visual-node:not(:last-child)::after {
    display: none;
  }

  .term-deep-diagram dl div {
    grid-template-columns: 1fr;
  }

  .term-sequence-nav {
    grid-template-columns: 1fr;
  }

  .term-reading-guide ol {
    grid-template-columns: 1fr;
  }

  .term-practice-note-grid {
    grid-template-columns: 1fr;
  }

  .term-diagram i::after,
  .term-deep-diagram i::after {
    content: " ↓";
  }
}

.tool-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-blue));
  content: "";
}