:root {
  --ency-ink: #172033;
  --ency-muted: #596579;
  --ency-line: #d7dde7;
  --ency-paper: #ffffff;
  --ency-soft: #f4f7f8;
  --ency-green: #176b58;
  --ency-red: #a53a3a;
  --ency-gold: #9a6a12;
  --ency-blue: #255f91;
}

.ency-page {
  color: var(--ency-ink);
  letter-spacing: 0;
}

.ency-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 390px);
  gap: 2rem;
  align-items: end;
  padding: 2rem 0 1.75rem;
  border-bottom: 1px solid var(--ency-line);
}

.ency-kicker,
.ency-section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.6rem;
  color: var(--ency-green);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ency-kicker svg,
.ency-section-kicker svg {
  width: 1.05rem;
  height: 1.05rem;
}

.ency-hero h2 {
  margin: 0;
  max-width: 18ch;
  color: #111827;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 4.5vw, 4.6rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0;
}

.ency-hero-copy > p:last-child {
  max-width: 780px;
  margin: 1rem 0 0;
  color: var(--ency-muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.ency-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-top: 2px solid var(--ency-ink);
}

.ency-metrics div {
  min-width: 0;
  padding: 0.9rem 0.3rem 0.85rem;
  border-bottom: 1px solid var(--ency-line);
}

.ency-metrics div:nth-child(odd) {
  padding-right: 0.9rem;
}

.ency-metrics div:nth-child(even) {
  padding-left: 0.9rem;
  border-left: 1px solid var(--ency-line);
}

.ency-metrics div:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  padding-left: 0.3rem;
  border-left: 0;
}

.ency-metrics dt {
  color: var(--ency-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.ency-metrics dd {
  margin: 0.15rem 0 0;
  color: var(--ency-red);
  font-size: 1.75rem;
  font-weight: 850;
  line-height: 1.1;
}

.ency-method-band {
  margin: 1.5rem 0 0;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--ency-line);
}

.ency-method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.ency-method-grid h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.55rem;
  color: #253047;
  font-size: 1rem;
  font-weight: 850;
}

.ency-method-grid h3 svg {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--ency-green);
}

.ency-method-grid p {
  margin: 0;
  color: var(--ency-muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.ency-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 290px);
  gap: 1rem;
  align-items: end;
  margin: 2rem 0 1.25rem;
}

.ency-field {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
  color: #334155;
  font-size: 0.85rem;
  font-weight: 800;
}

.ency-input-wrap {
  position: relative;
  display: block;
}

.ency-input-wrap svg {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  width: 1.05rem;
  height: 1.05rem;
  color: #64748b;
  transform: translateY(-50%);
  pointer-events: none;
}

.ency-input-wrap .ency-search-clear {
  position: absolute;
  top: 50%;
  right: 0.42rem;
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #475569;
  background: transparent;
  border-radius: 4px;
  transform: translateY(-50%);
}

.ency-input-wrap .ency-search-clear[hidden] {
  display: none;
}

.ency-input-wrap .ency-search-clear:hover,
.ency-input-wrap .ency-search-clear:focus-visible {
  color: #fff;
  background: var(--ency-blue);
  outline: none;
}

.ency-input-wrap .ency-search-clear svg {
  position: static;
  width: 1.05rem;
  height: 1.05rem;
  transform: none;
}

.ency-field input,
.ency-field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #aeb8c6;
  border-radius: 6px;
  background: #fff;
  color: var(--ency-ink);
  font-size: 1rem;
}

.ency-field input {
  padding: 0.7rem 3rem 0.7rem 2.55rem;
}

.ency-field input::-webkit-search-cancel-button {
  display: none;
  -webkit-appearance: none;
}

.ency-field select {
  padding: 0.7rem 0.85rem;
}

.ency-field input:focus,
.ency-field select:focus,
.ency-alphabet button:focus-visible {
  outline: 3px solid rgba(37, 95, 145, 0.18);
  border-color: var(--ency-blue);
}

.ency-alphabet-wrap {
  grid-column: 1 / -1;
  min-width: 0;
}

.ency-alphabet-label {
  display: block;
  margin-bottom: 0.45rem;
  color: #334155;
  font-size: 0.85rem;
  font-weight: 800;
}

.ency-alphabet {
  display: flex;
  gap: 0.35rem;
  max-width: 100%;
  overflow-x: auto;
  padding: 0.05rem 0.05rem 0.45rem;
  scrollbar-width: thin;
}

.ency-alphabet button {
  flex: 0 0 auto;
  min-width: 38px;
  height: 36px;
  padding: 0 0.65rem;
  border: 1px solid #b8c1cd;
  border-radius: 5px;
  background: #fff;
  color: #344054;
  font-size: 0.94rem;
  font-weight: 850;
}

.ency-alphabet button:hover {
  border-color: var(--ency-green);
  color: var(--ency-green);
}

.ency-alphabet button.active {
  border-color: var(--ency-green);
  background: var(--ency-green);
  color: #fff;
}

.ency-index-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1rem;
}

.ency-index-heading h2,
.ency-method-title,
.ency-bibliography h2 {
  margin: 0;
  color: #172033;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0;
}

.ency-result-count {
  color: var(--ency-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.ency-topic-block {
  margin: 0 0 2.2rem;
}

.ency-topic-header {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 2px solid var(--ency-ink);
}

.ency-topic-header h3 {
  margin: 0;
  color: var(--ency-green);
  font-size: 1.04rem;
  font-weight: 850;
}

.ency-topic-header p {
  margin: 0;
  color: var(--ency-muted);
  line-height: 1.55;
}

.ency-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.ency-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 310px;
  padding: 1.25rem;
  border: 1px solid var(--ency-line);
  border-top: 4px solid var(--ency-gold);
  border-radius: 6px;
  background: var(--ency-paper);
}

.ency-card[data-category="dil-anlam"] {
  border-top-color: var(--ency-green);
}

.ency-card[data-category="derlem-yontem"] {
  border-top-color: var(--ency-blue);
}

.ency-card[data-category="dil-teknolojileri"] {
  border-top-color: var(--ency-red);
}

.ency-card-meta,
.ency-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.9rem;
  color: #667085;
  font-size: 0.78rem;
  font-weight: 700;
}

.ency-card-meta span,
.ency-article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.ency-card-meta svg,
.ency-article-meta svg {
  width: 0.9rem;
  height: 0.9rem;
}

.ency-originality-chip {
  color: var(--ency-green);
  font-variant-numeric: tabular-nums;
}

.ency-card h4 {
  margin: 0.75rem 0 0.65rem;
  color: #182033;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
}

.ency-card h4 a:hover {
  color: var(--ency-green);
}

.ency-card-summary {
  margin: 0;
  color: #4b5565;
  font-size: 0.98rem;
  line-height: 1.68;
}

.ency-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 1rem;
  color: var(--ency-blue);
  font-weight: 850;
}

.ency-card-link svg {
  width: 1rem;
  height: 1rem;
}

.ency-empty {
  padding: 2rem 0;
  border-top: 1px solid var(--ency-line);
  border-bottom: 1px solid var(--ency-line);
  color: var(--ency-muted);
  text-align: center;
}

.ency-bibliography {
  margin-top: 2rem;
  padding: 1.5rem 0 2rem;
  border-top: 2px solid var(--ency-ink);
}

.ency-bibliography-intro {
  max-width: 850px;
  margin: 0.55rem 0 1rem;
  color: var(--ency-muted);
  line-height: 1.65;
}

.ency-source-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ency-line);
}

.ency-source-list li {
  padding: 0.85rem 0.9rem 0.85rem 0;
  border-bottom: 1px solid var(--ency-line);
  color: #465268;
  font-size: 0.9rem;
  line-height: 1.55;
}

.ency-source-list li:nth-child(even) {
  padding-left: 0.9rem;
  border-left: 1px solid var(--ency-line);
}

.ency-source-list a {
  color: var(--ency-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ency-article-header {
  padding: 2rem 0 1.5rem;
  border-bottom: 2px solid var(--ency-ink);
}

.ency-article-header h2 {
  max-width: 18ch;
  margin: 0.35rem 0 0.8rem;
  color: #111827;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.ency-article-summary {
  max-width: 900px;
  margin: 1rem 0 0;
  color: #3f4b5f;
  font-size: 1.2rem;
  line-height: 1.7;
}

.ency-originality-evidence {
  max-width: 900px;
  margin-top: 1.2rem;
  border-top: 2px solid var(--ency-green);
  border-bottom: 1px solid var(--ency-line);
  background: #f7faf9;
}

.ency-originality-evidence summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.7rem;
  align-items: center;
  min-height: 50px;
  padding: 0.7rem 0.85rem;
  color: #334155;
  cursor: pointer;
  list-style: none;
}

.ency-originality-evidence summary::-webkit-details-marker {
  display: none;
}

.ency-originality-evidence summary > span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 850;
}

.ency-originality-evidence summary svg {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--ency-green);
}

.ency-originality-evidence summary strong {
  color: var(--ency-red);
  font-size: 1.2rem;
  font-variant-numeric: tabular-nums;
}

.ency-originality-evidence summary small {
  color: #52606d;
  font-size: 0.82rem;
  font-weight: 800;
}

.ency-originality-evidence dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--ency-line);
}

.ency-originality-evidence dl > div {
  min-width: 0;
  padding: 0.7rem 0.8rem;
}

.ency-originality-evidence dl > div + div {
  border-left: 1px solid var(--ency-line);
}

.ency-originality-evidence dt {
  color: #64748b;
  font-size: 0.75rem;
  line-height: 1.35;
}

.ency-originality-evidence dd {
  margin: 0.25rem 0 0;
  color: #253047;
  font-size: 1rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.ency-originality-evidence > p {
  margin: 0;
  padding: 0.65rem 0.85rem;
  border-top: 1px solid var(--ency-line);
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.55;
}

.ency-originality-evidence code {
  color: #334155;
  font-weight: 850;
}

.ency-originality-disclaimer {
  color: #596579 !important;
}

.ency-cite-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 42px;
  margin-top: 1rem;
  padding: 0.58rem 0.78rem;
  border: 1px solid var(--ency-blue);
  border-radius: 5px;
  background: #fff;
  color: var(--ency-blue);
  font-weight: 850;
}

.ency-cite-trigger:hover {
  background: #eef5fb;
}

.ency-cite-trigger svg {
  width: 1rem;
  height: 1rem;
}

.ency-article-layout {
  display: grid;
  grid-template-columns: minmax(190px, 250px) minmax(0, 760px) minmax(190px, 260px);
  gap: 2rem;
  justify-content: space-between;
  padding: 2rem 0;
}

.ency-toc,
.ency-evidence-side {
  align-self: start;
  position: sticky;
  top: 1rem;
}

.ency-toc h3,
.ency-evidence-side h3 {
  margin: 0 0 0.7rem;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.ency-toc ol {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0 0 0 1.1rem;
  color: #687386;
  font-size: 0.9rem;
}

.ency-toc a:hover {
  color: var(--ency-green);
}

.ency-article-body {
  min-width: 0;
}

.ency-lead {
  margin: 0 0 2.2rem;
  color: #253047;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.23rem;
  line-height: 1.85;
}

.ency-concept-figure {
  margin: 0 0 2.4rem;
  padding: 1.2rem 0 1rem;
  border-top: 2px solid var(--ency-blue);
  border-bottom: 1px solid var(--ency-line);
  background: linear-gradient(90deg, #f7fafc 0%, #ffffff 42%, #f8faf8 100%);
}

.ency-concept-figure header span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ency-green);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.ency-concept-figure header span svg {
  width: 1rem;
  height: 1rem;
}

.ency-concept-figure h2 {
  margin: 0.35rem 0 1rem;
  color: #172033;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0;
}

.ency-concept-flow {
  display: grid;
  grid-template-columns: repeat(var(--ency-concept-count, 5), minmax(0, 1fr));
  gap: 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ency-concept-flow li {
  position: relative;
  display: grid;
  min-width: 0;
  align-content: start;
  justify-items: center;
  text-align: center;
}

.ency-concept-flow li:not(:last-child)::after {
  position: absolute;
  top: 1.25rem;
  right: -1rem;
  color: #8190a5;
  content: "\2192";
  font-size: 1.2rem;
  font-weight: 850;
}

.ency-concept-icon {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 0.55rem;
  place-items: center;
  border: 1px solid #9eb1c6;
  border-radius: 50%;
  background: #fff;
  color: var(--ency-blue);
}

.ency-concept-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.ency-concept-flow strong {
  color: #253047;
  font-size: 0.9rem;
  line-height: 1.25;
}

.ency-concept-flow small {
  margin-top: 0.25rem;
  color: var(--ency-muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.ency-concept-figure figcaption {
  margin-top: 1rem;
  color: #697586;
  font-size: 0.78rem;
  line-height: 1.55;
}

.ency-section {
  scroll-margin-top: 1.5rem;
  margin: 0 0 2.2rem;
}

.ency-section h2 {
  margin: 0 0 0.85rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--ency-line);
  color: #1a2436;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.72rem;
  font-weight: 700;
  letter-spacing: 0;
}

.ency-section p {
  margin: 0 0 1rem;
  color: #303b4d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.09rem;
  line-height: 1.88;
}

.ency-equations {
  display: grid;
  gap: 1.25rem;
  margin: 1.45rem 0 0;
  padding: 1.15rem 0;
  border-top: 2px solid var(--ency-blue);
  border-bottom: 1px solid var(--ency-line);
}

.ency-equation {
  min-width: 0;
  padding-left: 1rem;
  border-left: 3px solid #90a9c2;
}

.ency-equation h3 {
  margin: 0 0 0.65rem;
  color: #1f3e5a;
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: 0;
}

.ency-equation pre {
  max-width: 100%;
  margin: 0 0 0.75rem;
  padding: 0.9rem 1rem;
  overflow-x: auto;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  background: #f6f8fa;
  color: #172033;
  font-size: 1rem;
  line-height: 1.55;
  white-space: pre;
}

.ency-equation code {
  font-family: "DejaVu Sans Mono", "Liberation Mono", Consolas, monospace;
}

.ency-equation p {
  margin-bottom: 0.65rem;
  font-size: 1rem;
  line-height: 1.75;
}

.ency-equation-variables {
  color: #536074 !important;
}

.ency-equation-variables strong {
  display: inline-block;
  margin-right: 0.35rem;
  color: #1f3e5a;
}

.ency-qa {
  scroll-margin-top: 1.5rem;
  margin-top: 2.4rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--ency-green);
}

.ency-glossary {
  scroll-margin-top: 1.5rem;
  margin-top: 2.6rem;
  padding-top: 1.3rem;
  border-top: 2px solid var(--ency-blue);
}

.ency-glossary-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.3rem 1rem;
  align-items: end;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--ency-line);
}

.ency-glossary-heading > p {
  grid-column: 1 / -1;
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  margin: 0;
  color: var(--ency-green);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.35;
  text-transform: uppercase;
}

.ency-glossary-heading svg {
  width: 1rem;
  height: 1rem;
}

.ency-glossary-heading h2 {
  margin: 0;
  color: #1a2436;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.72rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.ency-glossary-heading > span {
  color: #52606d;
  font-size: 0.84rem;
  font-weight: 850;
  white-space: nowrap;
}

.ency-glossary-intro {
  max-width: 820px;
  margin: 0.9rem 0 1.1rem;
  color: #536074;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.7;
}

.ency-glossary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-bottom: 1px solid var(--ency-line);
}

.ency-glossary-entry {
  min-width: 0;
  padding: 1rem 1rem 1.05rem 0;
  border-top: 1px solid var(--ency-line);
}

.ency-glossary-entry:nth-child(even) {
  padding-right: 0;
  padding-left: 1rem;
  border-left: 1px solid var(--ency-line);
}

.ency-glossary-entry dt {
  color: #173d5b;
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.35;
}

.ency-glossary-entry dd {
  margin: 0.42rem 0 0;
}

.ency-glossary-entry dd p {
  margin: 0;
  color: #3f4b5f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.98rem;
  line-height: 1.68;
}

.ency-glossary-entry dd a {
  display: inline-flex;
  gap: 0.3rem;
  align-items: center;
  margin-top: 0.55rem;
  color: #1d5f9b;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}

.ency-glossary-entry dd a svg {
  width: 0.85rem;
  height: 0.85rem;
}

.ency-qa > h2 {
  margin: 0 0 0.65rem;
  color: #172033;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0;
}

.ency-qa-intro {
  margin: 0 0 1rem;
  color: #536074;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.7;
}

.ency-qa-list {
  display: grid;
  border-top: 1px solid var(--ency-line);
}

.ency-qa-item {
  border-bottom: 1px solid var(--ency-line);
}

.ency-qa-item summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  min-height: 52px;
  padding: 0.85rem 0;
  color: #243145;
  cursor: pointer;
  font-size: 1.04rem;
  font-weight: 850;
  line-height: 1.45;
  list-style: none;
}

.ency-qa-item summary::-webkit-details-marker {
  display: none;
}

.ency-qa-item summary svg {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--ency-blue);
  transition: transform 160ms ease;
}

.ency-qa-item[open] summary svg {
  transform: rotate(180deg);
}

.ency-qa-answer {
  padding: 0 0 1rem;
}

.ency-qa-answer p {
  margin: 0;
  color: #303b4d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.04rem;
  line-height: 1.82;
}

.ency-corpus-panel {
  padding: 0.95rem 0;
  border-top: 2px solid var(--ency-green);
  border-bottom: 1px solid var(--ency-line);
}

.ency-corpus-status {
  margin: 0 0 0.7rem;
  color: var(--ency-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.ency-corpus-list {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ency-corpus-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: baseline;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid #e5e9ef;
}

.ency-corpus-term {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #334155;
  font-weight: 800;
}

.ency-corpus-count {
  color: var(--ency-red);
  font-variant-numeric: tabular-nums;
  font-weight: 850;
}

.ency-corpus-observed,
.ency-version-note {
  margin: 0.8rem 0 0;
  color: #697586;
  font-size: 0.78rem;
  line-height: 1.5;
}

.ency-article-sources,
.ency-related {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--ency-ink);
}

.ency-article-sources h2,
.ency-related h2 {
  margin: 0 0 0.8rem;
  color: #172033;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0;
}

.ency-article-sources ol {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding-left: 1.3rem;
  color: #465268;
  line-height: 1.6;
}

.ency-article-sources a {
  color: var(--ency-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ency-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.ency-related-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0.55rem 0.7rem;
  border: 1px solid #aeb8c6;
  border-radius: 5px;
  color: var(--ency-blue);
  font-weight: 800;
}

.ency-related-links svg {
  width: 0.95rem;
  height: 0.95rem;
}

.ency-citation-dialog {
  width: min(680px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: var(--ency-ink);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.3);
}

.ency-citation-dialog::backdrop {
  background: rgba(15, 23, 42, 0.62);
}

.ency-citation-shell {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
}

.ency-citation-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--ency-line);
}

.ency-citation-heading p {
  margin: 0 0 0.25rem;
  color: var(--ency-green);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.ency-citation-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 700;
}

.ency-citation-close {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--ency-line);
  border-radius: 5px;
  color: #475569;
}

.ency-citation-close svg {
  width: 1rem;
  height: 1rem;
}

.ency-citation-formats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #aeb8c6;
  border-radius: 6px;
  overflow: hidden;
}

.ency-citation-formats button {
  min-height: 42px;
  padding: 0.55rem 0.45rem;
  border-right: 1px solid #aeb8c6;
  color: #475569;
  font-size: 0.86rem;
  font-weight: 800;
}

.ency-citation-formats button:last-child {
  border-right: 0;
}

.ency-citation-formats button.active {
  background: var(--ency-blue);
  color: #fff;
}

.ency-citation-output {
  display: grid;
  gap: 0.4rem;
  color: #334155;
  font-size: 0.85rem;
  font-weight: 800;
}

.ency-citation-output textarea {
  width: 100%;
  min-height: 132px;
  resize: vertical;
  padding: 0.8rem;
  border: 1px solid #aeb8c6;
  border-radius: 6px;
  background: #f8fafc;
  color: #253047;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88rem;
  line-height: 1.55;
}

.ency-citation-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ency-citation-footer p {
  margin: 0;
  color: var(--ency-muted);
  font-size: 0.82rem;
}

.ency-citation-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.58rem 0.8rem;
  border-radius: 5px;
  background: var(--ency-green);
  color: #fff;
  font-weight: 850;
}

.ency-citation-copy svg {
  width: 1rem;
  height: 1rem;
}

@media (max-width: 1100px) {
  .ency-article-layout {
    grid-template-columns: minmax(180px, 230px) minmax(0, 1fr);
  }

  .ency-evidence-side {
    position: static;
    grid-column: 1 / -1;
  }

  .ency-corpus-panel {
    display: grid;
    grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 760px) {
  .ency-hero,
  .ency-toolbar,
  .ency-topic-header,
  .ency-method-grid,
  .ency-article-layout,
  .ency-corpus-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .ency-hero {
    gap: 1.4rem;
    padding-top: 1.25rem;
  }

  .ency-hero h2,
  .ency-article-header h2 {
    max-width: 100%;
  }

  .ency-card-grid,
  .ency-source-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .ency-card {
    min-height: 0;
  }

  .ency-source-list li:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }

  .ency-toc,
  .ency-evidence-side {
    position: static;
  }

  .ency-toc {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--ency-line);
  }

  .ency-article-layout {
    gap: 1.5rem;
    padding-top: 1.5rem;
  }

  .ency-lead {
    font-size: 1.13rem;
  }

  .ency-section p {
    font-size: 1.04rem;
  }

  .ency-equation {
    padding-left: 0.65rem;
  }

  .ency-equation pre {
    overflow-x: visible;
    font-size: 0.88rem;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }

  .ency-glossary-heading {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .ency-glossary-heading > span {
    white-space: normal;
  }

  .ency-glossary-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .ency-glossary-entry,
  .ency-glossary-entry:nth-child(even) {
    padding-right: 0;
    padding-left: 0;
    border-left: 0;
  }

  .ency-originality-evidence summary {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .ency-originality-evidence summary small {
    grid-column: 1 / -1;
  }

  .ency-originality-evidence dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ency-originality-evidence dl > div:nth-child(3) {
    border-left: 0;
  }

  .ency-originality-evidence dl > div:nth-child(n + 3) {
    border-top: 1px solid var(--ency-line);
  }

  .ency-concept-flow {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .ency-concept-flow li {
    grid-template-columns: 2.6rem minmax(0, 1fr);
    column-gap: 0.75rem;
    justify-items: start;
    text-align: left;
  }

  .ency-concept-flow li:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -0.9rem;
    left: 1rem;
    content: "\2193";
  }

  .ency-concept-icon {
    grid-row: 1 / span 2;
    margin: 0;
  }

  .ency-citation-formats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ency-citation-formats button:nth-child(2) {
    border-right: 0;
  }

  .ency-citation-formats button:nth-child(-n + 2) {
    border-bottom: 1px solid #aeb8c6;
  }

  .ency-citation-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .ency-citation-copy {
    justify-content: center;
  }
}
