/* ==========================================================================
   Deliber — Design tokens
   Βασισμένο στο GOV.GR Design System (light theme).
   ========================================================================== */

:root {
  /* Brand */
  --dl-primary:      #003375; /* header / κύριο navy */
  --dl-primary-700:  #00234f; /* βαθύτερο navy, hover σε σκούρες επιφάνειες */
  --dl-primary-50:   #E5EBF3; /* πολύ ανοιχτή απόχρωση primary, για tints */
  --dl-secondary:    #00B0F0;
  --dl-secondary-600:#0092C8;
  --dl-secondary-50: #E1F7FD;
  --dl-tertiary:     #0065B3;

  /* Semantic */
  --dl-success:       #006736;
  --dl-success-hover: #154A2B;
  --dl-success-50:    #E1F0E7;
  --dl-error:         #B60202;
  --dl-error-hover:   #800000;
  --dl-error-50:      #FBE8E8;
  --dl-warning:       #F39000;
  --dl-warning-50:    #FDF0DC;
  --dl-info:          #0064CC;
  --dl-info-50:       #E2EDFB;
  --dl-focus:         #FFDD00;

  /* Neutral / gray scale (base-100 → base-1100) */
  --dl-gray-100: #FEFEFE;
  --dl-gray-200: #ECEBEC;
  --dl-gray-300: #CDCCCE;
  --dl-gray-400: #B3B2B5;
  --dl-gray-500: #99989C;
  --dl-gray-600: #828086;
  --dl-gray-700: #6D6A71;
  --dl-gray-800: #515058;
  --dl-gray-900: #32363D;
  --dl-gray-1000:#252830;
  --dl-gray-1100:#14161B;

  --dl-white: #FEFEFE;
  --dl-black: #000000;

  /* Links */
  --dl-link:         #0054BA;
  --dl-link-hover:   #0E3D8B;
  --dl-link-active:  #252830;
  --dl-link-visited: #4C2A90;

  /* Surfaces */
  --dl-bg:          var(--dl-gray-200);
  --dl-surface:     var(--dl-white);
  --dl-surface-2:   #F5F5F6;
  --dl-border:      var(--dl-gray-200);
  --dl-border-2:    var(--dl-gray-300);

  /* Text */
  --dl-text:        var(--dl-gray-1000); /* #252830 */
  --dl-text-muted:  var(--dl-gray-800);  /* #515058 */
  --dl-text-faint:  var(--dl-gray-600);  /* #828086 */
  --dl-on-navy:       #F3F7FC;
  --dl-on-navy-muted: #AFC1DA;

  /* Type */
  --dl-font: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Shape & elevation — unchanged from the original scale */
  --dl-radius-sm: 10px;
  --dl-radius-md: 16px;
  --dl-radius-lg: 24px;
  --dl-radius-pill: 999px;
  --dl-shadow-sm: 0 1px 2px rgba(0, 51, 117, 0.07), 0 1px 1px rgba(0, 51, 117, 0.04);
  --dl-shadow-md: 0 8px 24px rgba(0, 51, 117, 0.10), 0 2px 6px rgba(0, 51, 117, 0.06);
  --dl-shadow-lg: 0 20px 48px rgba(0, 51, 117, 0.16), 0 6px 16px rgba(0, 51, 117, 0.09);

  /* Rhythm */
  --dl-gap-xs: 8px;
  --dl-gap-sm: 12px;
  --dl-gap-md: 20px;
  --dl-gap-lg: 32px;
  --dl-gap-xl: 56px;
  --dl-gap-2xl: 96px;

  --dl-container: 1180px;
  --dl-transition: 180ms cubic-bezier(.4, 0, .2, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */

html {
  font-family: var(--dl-font);
  color: var(--dl-text);
  background: var(--dl-bg);
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--dl-font);
  color: var(--dl-primary);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 var(--dl-gap-sm);
}

h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 1.3rem + 1vw, 1.9rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 var(--dl-gap-sm); color: var(--dl-text); }

a { text-decoration: none; color: var(--dl-link); }
a:hover { color: var(--dl-link-hover); }
a:active { color: var(--dl-link-active); }

a.dl-link {
  color: var(--dl-link);
  font-weight: 600;
  border-bottom: 1.5px solid var(--dl-border-2);
  transition: border-color var(--dl-transition), color var(--dl-transition);
}
a.dl-link:hover { color: var(--dl-link-hover); border-color: var(--dl-link-hover); }
a.dl-link:visited { color: var(--dl-link-visited); }

:focus-visible {
  outline: 3px solid var(--dl-focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.dl-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--dl-primary);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 var(--dl-radius-sm) 0;
}
.dl-skip-link:focus { left: 0; }

.dl-container {
  max-width: var(--dl-container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

.dl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dl-tertiary);
}

/* ==========================================================================
   Icons — minimal inline SVG set, colored via currentColor
   ========================================================================== */

.dl-icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.15em;
}

/* ==========================================================================
   Header
   ========================================================================== */

.dl-header {
  background: var(--dl-primary);
  color: var(--dl-on-navy);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--dl-secondary);
}

.dl-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--dl-gap-md);
  padding-block: 12px;
}

.dl-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
}

.dl-brand img {
  height: 55px;
  width: auto;
}

.dl-nav { display: flex; align-items: center; gap: var(--dl-gap-md); }

.dl-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.dl-nav a {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: var(--dl-radius-pill);
  color: var(--dl-on-navy-muted);
  font-weight: 600;
  font-size: 0.94rem;
  transition: background var(--dl-transition), color var(--dl-transition);
}

.dl-nav a:hover,
.dl-nav a.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.dl-nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: var(--dl-radius-sm);
  align-items: center;
  justify-content: center;
}

@media (max-width: 860px) {
  .dl-nav-toggle { display: inline-flex; }
  .dl-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    background: var(--dl-primary-700);
    flex-direction: column;
    align-items: stretch;
    padding: var(--dl-gap-sm);
    display: none;
    box-shadow: var(--dl-shadow-lg);
  }
  .dl-nav.is-open { display: flex; }
  .dl-nav ul { flex-direction: column; gap: 2px; width: 100%; }
  .dl-nav a { display: block; }
}

/* ==========================================================================
   Hero — photographic background with a navy scrim for legibility
   ========================================================================== */

.dl-hero {
  background:
    linear-gradient(180deg, rgba(0, 51, 117, 0.83) 0%, rgba(0, 35, 79, 0.97) 100%),
    var(--dl-hero-image, none) center / cover no-repeat;
  color: var(--dl-on-navy);
  padding-block: var(--dl-gap-2xl) var(--dl-gap-xl);
  position: relative;
  overflow: hidden;
}

.dl-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--dl-gap-xl);
  align-items: center;
}

@media (max-width: 920px) {
  .dl-hero__grid { grid-template-columns: 1fr; }
}

.dl-hero h1 { color: #fff; margin-bottom: var(--dl-gap-md); }

.dl-hero p.dl-lead {
  color: var(--dl-on-navy-muted);
  font-size: 1.1rem;
  max-width: 46ch;
  margin-bottom: var(--dl-gap-lg);
}

.dl-hero-stats {
  display: flex;
  gap: var(--dl-gap-lg);
  flex-wrap: wrap;
}

.dl-hero-stat .num {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  display: block;
  line-height: 1;
}
.dl-hero-stat .label {
  color: var(--dl-on-navy-muted);
  font-size: 0.85rem;
  margin-top: 6px;
}

/* Signature element: the live "pulse" panel of open windows */
.dl-hero-panel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--dl-radius-lg);
  padding: var(--dl-gap-md);
  backdrop-filter: blur(6px);
}

.dl-hero-panel__title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: var(--dl-gap-sm);
}

.dl-hero-panel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dl-secondary);
  box-shadow: 0 0 0 0 rgba(0, 176, 240, 0.6);
  animation: dl-pulse 2.4s infinite;
}

@keyframes dl-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0, 176, 240, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(0, 176, 240, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 176, 240, 0); }
}

.dl-hero-panel__row {
  display: flex;
  justify-content: space-between;
  gap: var(--dl-gap-sm);
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}
.dl-hero-panel__row:first-of-type { border-top: none; }
.dl-hero-panel__row a { color: #fff; font-weight: 600; }
.dl-hero-panel__row a:hover { color: var(--dl-secondary); }
.dl-hero-panel__row .days { color: var(--dl-secondary); font-weight: 700; white-space: nowrap; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: var(--dl-radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform var(--dl-transition), background var(--dl-transition), border-color var(--dl-transition), color var(--dl-transition);
}
.dl-btn:active { transform: scale(0.97); }

.dl-btn--primary {
  background: var(--dl-secondary);
  color: var(--dl-primary-700);
}
.dl-btn--primary:hover { background: var(--dl-secondary-600); color: #fff; }

.dl-btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
.dl-btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }

.dl-btn--outline {
  background: transparent;
  border-color: var(--dl-border-2);
  color: var(--dl-primary);
}
.dl-btn--outline:hover { border-color: var(--dl-primary); background: var(--dl-primary-50); }

.dl-btn--sm { padding: 8px 16px; font-size: 0.85rem; }
.dl-btn--block { width: 100%; justify-content: center; }
.dl-btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ==========================================================================
   Status pills — mapped to GOV.GR semantic colors
   ========================================================================== */

.dl-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 5px 12px;
  border-radius: var(--dl-radius-pill);
  text-transform: uppercase;
  margin-bottom:20px;
}

.dl-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.dl-pill--open     { background: var(--dl-success-50); color: var(--dl-success); }
.dl-pill--closed   { background: var(--dl-surface-2);  color: var(--dl-text-muted); }
.dl-pill--upcoming { background: var(--dl-warning-50); color: var(--dl-warning); }

/* ==========================================================================
   Section headings / layout helpers
   ========================================================================== */

.dl-section { padding-block: var(--dl-gap-xl); }
.dl-section--tight { padding-block: var(--dl-gap-lg); }

.dl-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--dl-gap-md);
  margin-bottom: var(--dl-gap-lg);
  flex-wrap: wrap;
}

.dl-section__head h2 { margin: 0; }
.dl-section__head p { color: var(--dl-text-muted); margin: 6px 0 0; }

/* ==========================================================================
   Filter bar (used by the [deliber_deliberations] shortcode)
   ========================================================================== */

.dl-filters {
  background: var(--dl-surface);
  border: 1px solid var(--dl-border);
  border-radius: var(--dl-radius-lg);
  padding: var(--dl-gap-md);
  box-shadow: var(--dl-shadow-sm);
  margin-bottom: var(--dl-gap-lg);
}

.dl-filters__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--dl-gap-sm);
  align-items: center;
}

.dl-filters__search {
  flex: 1 1 240px;
  position: relative;
}

.dl-filters__search input {
  width: 100%;
  padding: 11px 16px 11px 40px;
  border-radius: var(--dl-radius-pill);
  border: 1.5px solid var(--dl-border);
  background: var(--dl-bg);
  font: inherit;
  font-size: 0.94rem;
  color: var(--dl-text);
  transition: border-color var(--dl-transition), background var(--dl-transition);
}
.dl-filters__search input:focus { border-color: var(--dl-secondary); background: #fff; outline: none; }

.dl-filters__search .dl-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--dl-text-faint);
}

.dl-filters__select { position: relative; }

.dl-filters__select select {
  appearance: none;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dl-primary);
  background: var(--dl-bg);
  border: 1.5px solid var(--dl-border);
  border-radius: var(--dl-radius-pill);
  padding: 11px 34px 11px 16px;
  cursor: pointer;
  transition: border-color var(--dl-transition);
}
.dl-filters__select select:focus { border-color: var(--dl-secondary); outline: none; }
.dl-filters__select::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--dl-text-muted);
  border-bottom: 2px solid var(--dl-text-muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.dl-filters__pills { display: flex; gap: 6px; flex-wrap: wrap; }

.dl-filters__pill-btn {
  border: 1.5px solid var(--dl-border);
  background: var(--dl-bg);
  color: var(--dl-text-muted);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 8px 16px;
  border-radius: var(--dl-radius-pill);
  cursor: pointer;
  transition: all var(--dl-transition);
}
.dl-filters__pill-btn:hover { border-color: var(--dl-primary); color: var(--dl-primary); }
.dl-filters__pill-btn.is-active {
  background: var(--dl-primary);
  border-color: var(--dl-primary);
  color: #fff;
}

.dl-filters__reset {
  color: var(--dl-text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 4px;
}
.dl-filters__reset:hover { color: var(--dl-error); }

.dl-results-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--dl-text-muted);
  font-size: 0.88rem;
  margin-bottom: var(--dl-gap-sm);
}

/* ==========================================================================
   Deliberation cards
   ========================================================================== */

.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--dl-gap-md);
}

.dl-grid.is-list { grid-template-columns: 1fr; }

.dl-card {
  background: var(--dl-surface);
  border: 1px solid var(--dl-border);
  border-radius: var(--dl-radius-lg);
  padding: var(--dl-gap-md);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow var(--dl-transition), border-color var(--dl-transition), transform var(--dl-transition);
}

.dl-card:hover {
  box-shadow: var(--dl-shadow-md);
  border-color: transparent;
  transform: translateY(-2px);
}

.dl-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.dl-card__org {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--dl-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.dl-card h3 { margin: 0; font-size: 1.08rem; line-height: 1.4; }
.dl-card h3 a { color: var(--dl-primary); transition: color var(--dl-transition); }
.dl-card h3 a:hover { color: var(--dl-tertiary); }

.dl-card__excerpt {
  color: var(--dl-text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.dl-card__meta {
  display: flex;
  align-items: center;
  gap: var(--dl-gap-sm);
  color: var(--dl-text-faint);
  font-size: 0.82rem;
  flex-wrap: wrap;
}
.dl-card__meta span { display: inline-flex; align-items: center; gap: 5px; }

/* Signature element: deliberation-window timeline bar */
.dl-timeline { margin-top: 2px; }

.dl-timeline__track {
  height: 6px;
  border-radius: var(--dl-radius-pill);
  background: var(--dl-surface-2);
  overflow: hidden;
}

.dl-timeline__fill {
  height: 100%;
  border-radius: var(--dl-radius-pill);
  background: linear-gradient(90deg, var(--dl-tertiary), var(--dl-secondary));
}

.dl-timeline.is-closed .dl-timeline__fill { background: var(--dl-text-faint); }
.dl-timeline.is-upcoming .dl-timeline__fill { background: var(--dl-warning); }

.dl-timeline__label {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--dl-text-faint);
  margin-top: 6px;
}
.dl-timeline__label strong { color: var(--dl-info); font-weight: 700; }

.dl-card__footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--dl-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dl-card__cta {
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--dl-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  transition: gap var(--dl-transition), color var(--dl-transition);
}
.dl-card:hover .dl-card__cta { gap: 8px; color: var(--dl-tertiary); }

.dl-empty {
  text-align: center;
  padding: var(--dl-gap-2xl) var(--dl-gap-md);
  color: var(--dl-text-muted);
  background: var(--dl-surface);
  border: 1.5px dashed var(--dl-border-2);
  border-radius: var(--dl-radius-lg);
}
.dl-empty .dl-icon { width: 40px; height: 40px; color: var(--dl-border-2); margin: 0 auto 14px; }

.dl-load-more { display: flex; justify-content: center; margin-top: var(--dl-gap-lg); }

/* ==========================================================================
   Single deliberation — reading layout
   ========================================================================== */

.dl-doc-hero {
  background: var(--dl-primary);
  color: var(--dl-on-navy);
  padding-block: var(--dl-gap-lg);
}

.dl-breadcrumb {
  font-size: 0.84rem;
  color: var(--dl-on-navy-muted);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: var(--dl-gap-sm);
}
.dl-breadcrumb a { color: var(--dl-on-navy-muted); }
.dl-breadcrumb a:hover { color: #fff; }

.dl-doc-hero h1 { color: #fff; margin-bottom: var(--dl-gap-sm); font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.1rem); }

.dl-doc-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--dl-gap-md);
  align-items: center;
  margin-top: var(--dl-gap-md);
  color: var(--dl-on-navy-muted);
  font-size: 0.88rem;
}
.dl-doc-hero__meta span { display: inline-flex; align-items: center; gap: 6px; }

.dl-doc-hero__timeline { margin-top: var(--dl-gap-md); max-width: 480px; }
.dl-doc-hero__timeline .dl-timeline__track { background: rgba(255, 255, 255, 0.16); height: 8px; }
.dl-doc-hero__timeline .dl-timeline__label { color: var(--dl-on-navy-muted); }
.dl-doc-hero__timeline .dl-timeline__label strong { color: #fff; }

.dl-doc-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--dl-gap-xl);
  padding-block: var(--dl-gap-xl);
  align-items: start;
}

@media (max-width: 960px) {
  .dl-doc-layout { grid-template-columns: 1fr; }
}

.dl-toc {
  position: sticky;
  top: 92px;
  background: var(--dl-surface);
  border: 1px solid var(--dl-border);
  border-radius: var(--dl-radius-lg);
  padding: var(--dl-gap-md);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.dl-toc__title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dl-text-faint);
  margin-bottom: var(--dl-gap-sm);
}

.dl-toc__part { margin-bottom: var(--dl-gap-sm); }
.dl-toc__part-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--dl-primary);
  text-transform: uppercase;
  padding: 8px 0 4px;
}
.dl-toc__chapter-title {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--dl-text-faint);
  padding: 4px 0 4px 8px;
}

.dl-toc ul { list-style: none; margin: 0; padding: 0; }
.dl-toc li a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 8px 7px 16px;
  border-radius: var(--dl-radius-sm);
  font-size: 0.87rem;
  color: var(--dl-text-muted);
  line-height: 1.4;
  transition: background var(--dl-transition), color var(--dl-transition);
}
.dl-toc li a:hover { background: var(--dl-primary-50); color: var(--dl-primary); }
.dl-toc li a.is-current { background: var(--dl-secondary-50); color: var(--dl-tertiary); font-weight: 700; }
.dl-toc li a .count {
  flex-shrink: 0;
  font-size: 0.72rem;
  color: var(--dl-text-faint);
  background: var(--dl-surface-2);
  border-radius: var(--dl-radius-pill);
  padding: 1px 7px;
  height: fit-content;
}

.dl-intro {
  background: var(--dl-surface);
  border: 1px solid var(--dl-border);
  border-radius: var(--dl-radius-lg);
  padding: var(--dl-gap-lg);
  margin-bottom: var(--dl-gap-lg);
}
.dl-intro h2 { font-size: 1.2rem; }
.dl-intro__sign {
  margin-top: var(--dl-gap-md);
  padding-top: var(--dl-gap-md);
  border-top: 1px solid var(--dl-border);
  color: var(--dl-text-muted);
}
.dl-intro__sign strong { display: block; color: var(--dl-primary); }

.dl-article-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--dl-gap-sm);
}

.dl-article-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--dl-gap-md);
  padding: 16px var(--dl-gap-md);
  background: var(--dl-surface);
  border: 1px solid var(--dl-border);
  border-radius: var(--dl-radius-md);
  margin-bottom: 8px;
  transition: border-color var(--dl-transition), box-shadow var(--dl-transition);
}
.dl-article-row:hover { border-color: var(--dl-secondary); box-shadow: var(--dl-shadow-sm); }

.dl-article-row__title { font-weight: 700; color: var(--dl-primary); font-size: 0.98rem; }
.dl-article-row__title a:hover { color: var(--dl-tertiary); }

.dl-article-row__comments {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--dl-text-muted);
  background: var(--dl-surface-2);
  padding: 6px 12px;
  border-radius: var(--dl-radius-pill);
}
.dl-article-row__comments.has-comments { color: var(--dl-tertiary); background: var(--dl-secondary-50); }

.dl-part-divider {
  margin: var(--dl-gap-lg) 0 var(--dl-gap-sm);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--dl-primary);
}
.dl-part-divider .eyebrow { color: var(--dl-tertiary); }
.dl-part-divider h3 { margin: 2px 0 0; font-size: 1.05rem; color: var(--dl-primary); }
.dl-chapter-divider {
  margin: var(--dl-gap-md) 0 4px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dl-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ==========================================================================
   Single article page
   ========================================================================== */

.dl-article-nav {
  display: flex;
  justify-content: space-between;
  gap: var(--dl-gap-md);
  margin-top: var(--dl-gap-xl);
  margin-top: 15px;
  padding-top: var(--dl-gap-lg);
  padding-top: 0px;
  border-top: 1px solid var(--dl-border);
}
.dl-article-nav__link {
  flex: 1;
  border: 1px solid var(--dl-border);
  border-radius: var(--dl-radius-md);
  padding: var(--dl-gap-sm) var(--dl-gap-md);
  transition: border-color var(--dl-transition);
}
.dl-article-nav__link:hover { border-color: var(--dl-secondary); }
.dl-article-nav__link.next { text-align: right; }
.dl-article-nav__eyebrow { font-size: 0.72rem; color: var(--dl-text-faint); text-transform: uppercase; font-weight: 700; }
.dl-article-nav__title { color: var(--dl-primary); font-weight: 700; margin-top: 4px; }

.dl-article-body {
  background: var(--dl-surface);
  border: 1px solid var(--dl-border);
  border-radius: var(--dl-radius-lg);
  padding: var(--dl-gap-lg);
}
.dl-article-body p { text-align: justify; }

/* ==========================================================================
   Comments
   ========================================================================== */

.dl-comments { margin-top: 30px; }

#comments h2, .comments-area h2 { display: flex; align-items: center; gap: 10px; }

.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .children { list-style: none; margin: 0; padding-left: var(--dl-gap-md); border-left: 2px solid var(--dl-border); }

.comment-body {
  background: var(--dl-surface);
  border: 1px solid var(--dl-border);
  border-radius: var(--dl-radius-md);
  padding: var(--dl-gap-md);
  margin-bottom: var(--dl-gap-sm);
}

.comment-author { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.comment-author .avatar { border-radius: 50%; }
.comment-author .fn { font-weight: 700; color: var(--dl-primary); font-style: normal; }
.comment-metadata { font-size: 0.8rem; color: var(--dl-text-faint); }
.comment-metadata a { color: var(--dl-text-faint); }
.comment-content p:last-child { margin-bottom: 0; }
.comment-reply-link { font-size: 0.82rem; font-weight: 700; color: var(--dl-tertiary); }
.comment-awaiting-moderation { color: var(--dl-warning); font-size: 0.85rem; font-weight: 600; }

.comment-respond {
  background: var(--dl-primary-50);
  border-radius: var(--dl-radius-lg);
  padding: var(--dl-gap-lg);
  margin-top: var(--dl-gap-md);
}
.comment-respond h3 { margin-bottom: 4px; }
.comment-respond .comment-notes { color: var(--dl-text-muted); font-size: 0.88rem; margin-bottom: var(--dl-gap-md); }
.comment-respond .must-log-in { color: var(--dl-text-muted); font-size: 0.92rem; margin-bottom: var(--dl-gap-md); }
.comment-login-actions { margin: 0; }
.comment-form p { margin-bottom: var(--dl-gap-sm); }
.comment-form label { display: block; font-weight: 700; font-size: 0.85rem; color: var(--dl-primary); margin-bottom: 6px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  font: inherit;
  padding: 11px 14px;
  border-radius: var(--dl-radius-sm);
  border: 1.5px solid var(--dl-border-2);
  background: #fff;
  transition: border-color var(--dl-transition);
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--dl-secondary); outline: none; }
.comment-form textarea { min-height: 140px; resize: vertical; }
.comment-form .form-submit { margin-top: var(--dl-gap-sm); }
.comment-form-comment { display: flex; flex-direction: column; }
.required { color: var(--dl-error); }

/* ==========================================================================
   Organization directory
   ========================================================================== */

.dl-org-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--dl-gap-sm);
}
.dl-org-card {
  background: var(--dl-surface);
  border: 1px solid var(--dl-border);
  border-radius: var(--dl-radius-md);
  padding: var(--dl-gap-md);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color var(--dl-transition), transform var(--dl-transition);
}
.dl-org-card:hover { border-color: var(--dl-secondary); transform: translateY(-2px); }
.dl-org-card__name { font-weight: 700; color: var(--dl-primary); font-size: 0.96rem; }
.dl-org-card__count { font-size: 0.8rem; color: var(--dl-text-muted); }

/* ==========================================================================
   Footer
   ========================================================================== */

.dl-footer {
  background: var(--dl-primary);
  color: var(--dl-on-navy-muted);
  padding-block: var(--dl-gap-xl) var(--dl-gap-lg);
  margin-top: var(--dl-gap-2xl);
}

.dl-footer__brand {
  display: flex;
  justify-content: center;
  padding-bottom: var(--dl-gap-lg);
}
.dl-footer__brand img { height: 56px; width: auto; }

.dl-footer__bottom {
  margin-top: var(--dl-gap-md);
  padding-top: var(--dl-gap-md);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  text-align: center;
}
.dl-footer__bottom a { color: var(--dl-on-navy-muted); font-weight: 600; }
.dl-footer__bottom a:hover { color: #fff; }
.dl-footer__bottom .sep { color: rgba(255, 255, 255, 0.3); }

/* ==========================================================================
   Utility
   ========================================================================== */

.dl-loading { opacity: 0.45; pointer-events: none; transition: opacity var(--dl-transition); }
.dl-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
/* Comment form — public-name consent checkbox (inc/comment-privacy.php) */
.comment-form .comment-form-show-name label { display: flex; align-items: center; gap: 8px; font-weight: 400; color: inherit; }
.comment-form .comment-form-show-name__hint { display: block; font-size: 0.8rem; opacity: 0.75; margin-top: 4px; }

/* Comment form — publication notice above the submit button (comments.php) */
.comment-form .comment-form-publication-notice { font-size: 0.85rem; line-height: 1.5; padding: 10px 14px; border-left: 3px solid var(--dl-secondary); background: rgba(0, 0, 0, 0.03); margin: var(--dl-gap-sm) 0; }
