:root {
  --ref-bg: #ffffff;
  --ref-soft: #f4f8f1;
  --ref-ink: #06170e;
  --ref-body: #102619;
  --ref-muted: #244632;
  --ref-line: #c8d8c6;
  --ref-accent: #036b3f;
  --ref-hover: #eaf4df;
  --ref-lime: #c5fa48;
}

/* Light mode strictly enforced - NO dark mode for reference routes */
.reference-page {
  background: #ffffff !important;
  color: var(--ref-body) !important;
}

.reference-page :is(h1, h2, h3, h4, h5, h6, strong, b) {
  color: var(--ref-ink);
}

.reference-page :is(p, li, dd) {
  color: var(--ref-body);
}

.ref-kicker {
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 1.4px;
  color: var(--ref-accent);
  display: block;
}

/* Hero section (consistent dark background with GDHH dark heroes) */
.ref-hero {
  background: #062d20;
  color: #fff !important;
  overflow: hidden;
  position: relative;
}
.ref-hero :is(h1, em) {
  color: #ffffff !important;
}
.ref-hero h1 em {
  color: var(--ref-lime) !important;
  font-style: normal;
}
.ref-hero p {
  font-size: 16px !important;
  line-height: 1.8 !important;
  color: #d1e7d8 !important;
  max-width: 600px;
}
.ref-breadcrumb {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #b2c9ba !important;
  padding-top: 25px;
}
.ref-breadcrumb a {
  color: #d1e7d8 !important;
  font-weight: 500 !important;
}
.ref-breadcrumb a:hover {
  color: var(--ref-lime) !important;
}
.ref-hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: 355px;
  padding: 35px 0 50px;
}
.ref-hero .ref-kicker {
  color: var(--ref-lime) !important;
}
.ref-hero h1 {
  font-size: 52px;
  line-height: 1.2;
  letter-spacing: -1.8px;
  font-weight: 700;
  max-width: 850px;
  margin: 18px 0;
}
.ref-hero-art {
  position: relative;
  border: 1.5px solid #48735480;
  padding: 16px 26px 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(130deg, #0b3c29, #062d20);
  overflow: hidden;
}
.ref-hero-art:before, .ref-hero-art:after {
  content: '';
  position: absolute;
  width: 1px;
  height: 160%;
  background: #4e7b4c40;
  transform: rotate(32deg);
  right: 12%;
  top: -20%;
}
.ref-hero-art:after { right: 50%; }
.ref-hero-art > span {
  font-size: 120px;
  line-height: 1.3;
  letter-spacing: -9px;
  font-weight: 700;
  color: var(--ref-lime);
  z-index: 1;
}
.ref-art-caption {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 1.2px;
  font-weight: 700;
  border-top: 1px solid #55785c66;
  padding: 12px 0;
  color: #b1c5ad;
  z-index: 1;
}
.ref-art-caption i {
  font-size: 22px;
  font-style: normal;
  color: var(--ref-lime);
}

/* Sections & High Contrast Light Cards */
.ref-section {
  padding-top: 45px;
  padding-bottom: 50px;
}

.ref-stats {
  display: flex;
  gap: 45px;
  margin: 25px 0 35px;
}
.ref-stats strong {
  display: block;
  font-size: 38px !important;
  font-weight: 700 !important;
  color: var(--ref-ink) !important;
  letter-spacing: -1px;
}
.ref-stats span {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--ref-muted) !important;
}

.ref-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.ref-hub-card {
  border: 1.5px solid var(--ref-line);
  padding: 28px;
  background: #ffffff;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  min-height: 230px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.ref-hub-card:hover {
  border-color: var(--ref-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.ref-hub-card > span {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: var(--ref-accent);
}
.ref-hub-card h2, .ref-hub-card h3 {
  font-size: 24px !important;
  font-weight: 700 !important;
  line-height: 1.4;
  color: var(--ref-ink) !important;
  margin: 12px 0;
}
.ref-hub-card p {
  font-size: 15px !important;
  line-height: 1.7 !important;
  color: var(--ref-body) !important;
}
.ref-hub-card > a {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--ref-accent) !important;
  margin-top: auto;
  padding-top: 22px;
  display: inline-block;
}

/* Callout Notes & Panels */
.ref-note {
  background: #eaf4df !important;
  border: 1.5px solid #b5d5a6 !important;
  border-left: 4px solid var(--ref-accent) !important;
  border-radius: 4px;
  padding: 20px 24px;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.8 !important;
  color: #0e271a !important;
}
.ref-panel {
  padding: 30px;
  border: 1.5px solid #bad2bf;
  border-radius: 4px;
  margin: 28px 0;
  background: #f4f8f1;
}
.ref-panel h2 {
  font-size: 26px !important;
  font-weight: 700 !important;
  color: var(--ref-ink) !important;
  margin-bottom: 12px;
}
.ref-panel p {
  font-size: 15px !important;
  line-height: 1.8 !important;
  color: var(--ref-body) !important;
}
.ref-panel > a {
  color: var(--ref-accent) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  display: inline-block;
  margin: 18px 20px 0 0;
}

/* High Contrast Data Tables */
.ref-table-wrap {
  overflow: auto;
  border: 1.5px solid var(--ref-line);
  border-radius: 4px;
  margin: 24px 0;
}
.ref-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px !important;
  min-width: 640px;
}
.ref-table th {
  text-align: left;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
  background: #e6efe2;
  color: #173d26 !important;
  padding: 16px 20px;
  border-bottom: 1.5px solid var(--ref-line);
  white-space: nowrap;
}
.ref-table td {
  padding: 16px 20px;
  border-bottom: 1px solid #d8e5d6;
  font-size: 15px !important;
  color: var(--ref-ink) !important;
}
.ref-table td a {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--ref-accent) !important;
}
.ref-table tr:hover td {
  background: #f4f9f0;
}
.ref-table small {
  display: block;
  color: var(--ref-muted) !important;
  font-size: 13px !important;
  font-weight: 500;
  margin-top: 3px;
}
.ref-table .ref-up {
  color: #036b3f !important;
  font-weight: 700 !important;
}
.ref-table .ref-down {
  color: #b83a24 !important;
  font-weight: 700 !important;
}

/* Timeline */
.ref-timeline {
  border-top: 1.5px solid var(--ref-line);
}
.ref-event {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 110px;
  gap: 25px;
  padding: 26px 0;
  border-bottom: 1px solid var(--ref-line);
}
.ref-event time {
  font-size: 28px !important;
  font-weight: 700 !important;
  color: var(--ref-ink) !important;
}
.ref-event time > small {
  display: block;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--ref-muted) !important;
}
.ref-event-meta {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: var(--ref-accent) !important;
}
.ref-event h3 {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--ref-ink) !important;
  margin: 6px 0 10px;
}
.ref-event p {
  font-size: 15px !important;
  line-height: 1.7 !important;
  color: var(--ref-body) !important;
}
.ref-event > a {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--ref-accent) !important;
  align-self: center;
}

/* Documents Index */
.ref-doc-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  background: #eaf4df;
  border: 1.5px solid #b5d5a6;
  border-radius: 4px;
  padding: 32px;
  gap: 35px;
}
.ref-doc-feature h2 {
  font-size: 30px !important;
  font-weight: 700 !important;
  color: var(--ref-ink) !important;
  line-height: 1.35;
  margin: 12px 0;
}
.ref-doc-feature p {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--ref-muted) !important;
  margin-bottom: 22px;
}
.ref-document-art {
  background: #fff;
  border: 1.5px solid var(--ref-line);
  padding: 18px;
  display: flex;
  flex-direction: column;
  transform: rotate(-3deg);
  box-shadow: 6px 6px 0 var(--ref-line);
}
.ref-document-art > span {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: var(--ref-accent);
}
.ref-document-art > b {
  font-size: 65px;
  font-weight: 700;
  line-height: 1.6;
}
.ref-document-art > small {
  font-size: 10px;
  font-weight: 600;
  border-top: 1px solid var(--ref-line);
  padding-top: 8px;
}

.ref-toolbar {
  display: flex;
  gap: 15px;
  align-items: stretch;
}
.ref-search {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--ref-soft);
  border: 1.5px solid var(--ref-line);
  border-radius: 4px;
  padding: 12px 18px;
  flex: 1;
  min-width: 0;
}
.ref-search input {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ref-ink) !important;
  font-size: 15px !important;
  font-weight: 500;
  width: 100%;
}
.ref-search input::placeholder {
  color: #5c7566;
}
.ref-select {
  border: 1.5px solid var(--ref-line);
  border-radius: 4px;
  padding: 6px 14px;
  min-width: 200px;
}
.ref-select > span {
  display: block;
  font-size: 10px !important;
  font-weight: 700 !important;
  color: var(--ref-muted);
}
.ref-select select, .ref-filterline select {
  background: #ffffff;
  color: var(--ref-ink) !important;
  font-size: 14px !important;
  font-weight: 600;
  border: 0;
  width: 100%;
}
.ref-reset {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--ref-muted) !important;
  padding: 8px 14px;
  border: 1px solid var(--ref-line);
  border-radius: 4px;
  background: var(--ref-soft);
  cursor: pointer;
}
.ref-filterline {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin: 22px 0;
}
.ref-filterline > label {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px !important;
  font-weight: 600;
  color: var(--ref-muted);
}
.ref-filterline select {
  border: 1.5px solid var(--ref-line);
  border-radius: 4px;
  padding: 8px 12px;
}
.ref-segments {
  display: flex;
  gap: 6px;
}
.ref-segments button {
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 9px 16px;
  border: 1.5px solid var(--ref-line);
  border-radius: 4px;
  background: #fff;
  color: var(--ref-ink);
  cursor: pointer;
}
.ref-segments .selected {
  background: var(--ref-ink) !important;
  color: #ffffff !important;
  border-color: var(--ref-ink) !important;
}

.ref-doc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 35px;
}
.ref-doc-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 90px;
  gap: 18px;
  align-items: start;
  padding: 24px 0;
  border-top: 1.5px solid #d4e3ce;
}
.ref-file-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #b5d5a6;
  background: #eaf4df;
  width: 44px;
  height: 52px;
  font-size: 12px !important;
  color: var(--ref-accent) !important;
  font-weight: 700;
  border-radius: 3px;
  flex-shrink: 0;
}
.ref-doc-meta {
  display: flex;
  gap: 14px;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--ref-muted);
}
.ref-doc-meta > span:first-child {
  color: var(--ref-accent) !important;
}
.ref-doc-row h3 {
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.5;
  color: var(--ref-ink) !important;
  margin: 6px 0;
}
.ref-doc-row h3:hover {
  color: var(--ref-accent) !important;
}
.ref-doc-row p {
  font-size: 14px !important;
  color: var(--ref-body) !important;
}
.ref-doc-row small {
  font-size: 13px !important;
  font-weight: 600;
  color: var(--ref-muted) !important;
}
.ref-doc-open {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--ref-accent) !important;
  align-self: center;
}

.ref-sidecard {
  background: #f4f8f1;
  border: 1.5px solid #bad2bf;
  border-radius: 4px;
  padding: 26px;
  align-self: start;
  position: sticky;
  top: 112px;
}
.ref-sidecard h3 {
  font-size: 24px !important;
  font-weight: 700 !important;
  color: var(--ref-ink) !important;
  margin: 14px 0;
}
.ref-sidecard p, .ref-sidecard li {
  font-size: 14px !important;
  line-height: 1.8 !important;
  color: var(--ref-body) !important;
}
.ref-sidecard ol {
  padding-left: 18px;
  margin: 16px 0;
}
.ref-sidecard > a:not(.button) {
  display: block;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--ref-accent) !important;
  margin: 16px 0;
}
.ref-sidecard small {
  display: block;
  font-size: 12px !important;
  line-height: 1.7;
  color: var(--ref-muted) !important;
  border-top: 1px solid var(--ref-line);
  padding-top: 16px;
  margin-top: 20px;
}

/* Document Detail & PDF Preview */
.ref-rule-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 35px;
  padding-top: 45px;
  padding-bottom: 50px;
}
.ref-rule-main {
  min-width: 0;
}
.ref-document-info {
  margin: 0;
  border-top: 1.5px solid var(--ref-line);
}
.ref-document-info > div {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  padding: 16px 0;
  border-bottom: 1px solid #d8e5d6;
  gap: 20px;
  font-size: 15px !important;
}
.ref-document-info dt {
  color: var(--ref-muted) !important;
  font-weight: 600 !important;
}
.ref-document-info dd {
  margin: 0;
  font-weight: 700 !important;
  color: var(--ref-ink) !important;
}

.ref-pdf {
  border: 1.5px solid var(--ref-line);
  background: #ffffff;
  border-radius: 4px;
  scroll-margin-top: 110px;
  margin: 20px 0;
}
.ref-pdf-title {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ref-pdf-title b {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--ref-ink);
}
.ref-pdf-title small {
  font-size: 13px !important;
  color: var(--ref-muted);
}
.ref-pdf-title > a {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--ref-accent);
}
.ref-pdf-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-top: 1.5px solid var(--ref-line);
  border-bottom: 1.5px solid var(--ref-line);
  background: #eef4ea;
  font-size: 13px !important;
  font-weight: 600;
  color: var(--ref-ink);
}
.ref-pdf-tools > div {
  display: flex;
  gap: 10px;
  align-items: center;
}
.ref-pdf-tools button {
  padding: 6px 12px;
  border: 1.5px solid #b5d5a6;
  border-radius: 4px;
  background: #fff;
  font-size: 13px !important;
  font-weight: 600;
  cursor: pointer;
}
.ref-pdf-tools button:disabled {
  opacity: 0.35;
  cursor: default;
}
.ref-pdf-tools input {
  width: 48px;
  background: #fff;
  border: 1.5px solid #b5d5a6;
  border-radius: 3px;
  color: var(--ref-ink);
  padding: 4px 6px;
  text-align: center;
  font-size: 13px !important;
  font-weight: 600;
}
.ref-pdf-stage {
  height: 680px;
  overflow: auto;
  background: #ccd4cc;
  padding: 25px;
}
.ref-pdf-stage > img {
  display: block;
  max-width: none;
  width: 100%;
  height: auto;
  margin: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  background: #fff;
}
.ref-pdf-foot {
  display: flex;
  justify-content: space-between;
  padding: 14px 18px;
  font-size: 13px !important;
  font-weight: 600;
  color: var(--ref-muted);
}
.ref-pdf-foot a {
  color: var(--ref-accent);
}

/* Guides Step Reading */
.ref-reading {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 65px;
  padding-top: 45px;
  padding-bottom: 30px;
}
.ref-reading-aside {
  position: sticky;
  top: 120px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ref-reading-aside a {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #1e3e2c !important;
  padding: 8px 0;
  border-bottom: 1px solid #d8e5d6;
}
.ref-reading-aside a:hover {
  color: var(--ref-accent) !important;
}
.ref-reading-aside .ref-back {
  margin-top: 15px;
  padding-top: 18px;
  border-top: 1.5px solid var(--ref-line);
  color: var(--ref-accent) !important;
  font-weight: 700 !important;
}
.ref-guide-step {
  padding: 26px 0;
  border-bottom: 1.5px solid #d4e3ce;
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 22px;
}
.ref-guide-step > span {
  color: var(--ref-accent) !important;
  font-size: 28px !important;
  font-weight: 700 !important;
}
.ref-guide-step h2 {
  font-size: 24px !important;
  font-weight: 700 !important;
  color: var(--ref-ink) !important;
  margin: 0 0 12px;
}
.ref-guide-step p {
  font-size: 16px !important;
  line-height: 1.85 !important;
  color: var(--ref-body) !important;
  margin: 0;
}
.ref-sources {
  border-top: 1.5px solid var(--ref-line);
  padding-top: 28px;
  margin-top: 20px;
}
.ref-sources h2 {
  font-size: 22px !important;
  font-weight: 700 !important;
}
.ref-sources > a {
  display: block;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--ref-accent) !important;
  margin-top: 14px;
}

/* Term Lexicon & Detail */
.ref-popular {
  display: flex;
  gap: 13px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
  font-size: 14px !important;
}
.ref-popular > span {
  font-size: 11px !important;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--ref-muted);
  margin-right: 10px;
}
.ref-popular > a {
  border: 1.5px solid var(--ref-line);
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 600;
  color: var(--ref-ink);
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ref-popular > a:hover {
  background: var(--ref-hover);
  border-color: var(--ref-accent);
  color: var(--ref-accent);
}

.ref-alphabet {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  border-bottom: 1.5px solid var(--ref-line);
  padding: 20px 0;
}
.ref-alphabet button {
  font-size: 13px !important;
  font-weight: 600;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  border: 1px solid var(--ref-line);
  background: #ffffff;
  color: var(--ref-ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.ref-alphabet button:first-child {
  width: 72px;
  margin-right: 10px;
}
.ref-alphabet button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.ref-alphabet .selected {
  background: var(--ref-ink) !important;
  color: #ffffff !important;
  border-color: var(--ref-ink) !important;
}
.ref-alphabet button:not(:disabled):hover {
  background: var(--ref-hover);
  border-color: var(--ref-accent);
  color: var(--ref-accent);
}

.ref-term-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.ref-term-card {
  display: flex;
  flex-direction: column;
  border: 1.5px solid var(--ref-line);
  padding: 24px;
  background: #ffffff;
  min-height: 270px;
  border-radius: 4px;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.ref-term-card:hover {
  border-color: var(--ref-accent);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}
.ref-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px !important;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--ref-muted);
  margin-bottom: 15px;
}
.ref-card-top > b {
  color: var(--ref-accent);
  display: flex;
  align-items: center;
}
.ref-term-card h3 {
  font-size: 21px !important;
  font-weight: 700 !important;
  letter-spacing: -0.5px;
  line-height: 1.4;
  color: var(--ref-ink) !important;
  margin: 0;
}
.ref-term-card > small {
  color: var(--ref-muted);
  font-size: 13px !important;
  font-weight: 500;
  margin: 4px 0 14px;
  display: block;
}
.ref-term-card > p {
  font-size: 14px !important;
  color: var(--ref-body) !important;
  line-height: 1.75;
  margin-bottom: 20px;
  flex: 1;
}
.ref-card-read {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--ref-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px !important;
  font-weight: 700;
  color: var(--ref-accent);
}
.ref-card-read i {
  font-style: normal;
  display: inline-flex;
  align-items: center;
}
.ref-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ref-empty {
  border: 1.5px dashed var(--ref-line);
  text-align: center;
  padding: 60px 20px;
  border-radius: 4px;
  background: var(--ref-soft);
}
.ref-empty strong {
  font-size: 22px !important;
  color: var(--ref-ink);
}
.ref-empty p {
  font-size: 14px !important;
  color: var(--ref-muted);
  margin-top: 10px;
}

/* Term Detail reading */
.ref-prose {
  max-width: 820px;
  min-width: 0;
}
.ref-reading-meta {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  font-size: 12px !important;
  font-weight: 600;
  color: var(--ref-muted);
  padding-bottom: 20px;
  border-bottom: 1.5px solid var(--ref-line);
}
.ref-prose section {
  margin: 32px 0;
  scroll-margin-top: 115px;
}
.ref-prose h2 {
  font-size: 24px !important;
  font-weight: 700 !important;
  color: var(--ref-ink) !important;
  letter-spacing: -0.6px;
  margin-bottom: 14px;
}
.ref-prose p {
  font-size: 16px !important;
  line-height: 1.95;
  margin: 14px 0;
  color: var(--ref-body) !important;
}
.ref-example {
  padding: 28px;
  background: var(--ref-soft);
  border-left: 4px solid var(--ref-accent);
  border-radius: 0 4px 4px 0;
}
.ref-example .ref-kicker {
  margin-bottom: 12px;
}
.ref-example small {
  font-size: 13px !important;
  color: var(--ref-muted);
  display: block;
  margin-top: 10px;
}

/* Bottom banner */
.ref-bottom {
  padding-top: 40px;
  padding-bottom: 45px;
  border-top: 1.5px solid var(--ref-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.ref-bottom h2 {
  font-size: 26px !important;
  font-weight: 700 !important;
  letter-spacing: -0.8px;
  color: var(--ref-ink) !important;
  margin-top: 8px;
}
.ref-bottom > div:last-child {
  display: flex;
  gap: 24px;
}
.ref-bottom > div:last-child a {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--ref-accent) !important;
}

/* Responsive adjustments */
@media (max-width: 1050px) {
  .ref-hero h1 { font-size: 42px; }
  .ref-doc-layout, .ref-rule-detail { grid-template-columns: minmax(0, 1fr); }
  .ref-reading { grid-template-columns: 1fr; }
  .ref-reading-aside { position: static; flex-direction: row; overflow: auto; white-space: nowrap; }
  .ref-sidecard { position: static; }
  .ref-hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ref-term-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .ref-hero-grid { grid-template-columns: 1fr; min-height: 0; padding: 30px 0; }
  .ref-hero-art { display: none; }
  .ref-hero h1 { font-size: 34px; }
  .ref-hub-grid { grid-template-columns: 1fr; }
  .ref-term-grid, .ref-two { grid-template-columns: 1fr; }
  .ref-toolbar { flex-wrap: wrap; }
  .ref-search { flex-basis: 100%; }
  .ref-bottom { flex-direction: column; align-items: flex-start; }
}

