/* DISCIPLON header — Figma parity v0.2.4 */
.dp-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}

.dp-header.is-scrolled,
body:not(.home) .dp-header,
.admin-bar .dp-header {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom-color: var(--border);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
}

.admin-bar .dp-header { top: 32px; }

.dp-header__inner {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.dp-header__logo { flex: 0 0 auto; }

.dp-nav--desktop {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}

.dp-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.dp-nav__list a {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  transition: color .15s ease, background-color .15s ease;
}

.dp-nav__list a:hover {
  color: var(--fg);
  background: var(--surface);
}

.dp-nav__list .is-current > a {
  color: var(--blue);
  background: var(--blue-dim);
  font-weight: 500;
}

.dp-header__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.dp-icon-button {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 8px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color .15s ease, background-color .15s ease, transform .15s ease;
}

.dp-icon-button:hover {
  color: var(--fg);
  background: var(--surface);
}

.dp-icon-button:active { transform: scale(.96); }
.dp-icon-button svg { width: 17px; height: 17px; }

.dp-theme-icon--sun { display: none; }
html[data-theme="dark"] .dp-theme-icon--moon { display: none; }
html[data-theme="dark"] .dp-theme-icon--sun { display: block; }

.dp-header__cta {
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 16px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--blue) 78%, transparent);
  transition: background-color .15s ease, transform .15s var(--ease), box-shadow .15s ease;
}

.dp-header__cta:hover {
  background: var(--blue-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--blue) 28%, transparent);
}

.dp-menu-toggle { display: none; margin-left: 4px; }

/* Mobile drawer */
.dp-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(7, 9, 26, .55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.dp-drawer-backdrop[hidden] { display: none; }

.dp-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 195;
  width: min(280px, 88vw);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: var(--bg);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform .3s var(--ease);
}

.dp-drawer.is-open { transform: translateX(0); }

.dp-drawer__head {
  height: 64px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  border-bottom: 1px solid var(--border);
}

.dp-drawer__close {
  width: 32px;
  height: 32px;
  background: var(--surface);
}

.dp-drawer__nav {
  flex: 1 1 auto;
  padding: 12px;
}

.dp-mobile-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.dp-mobile-list a {
  width: 100%;
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--fg);
  font-size: 15px;
  line-height: 1.2;
  transition: color .15s ease, background-color .15s ease;
}

.dp-mobile-list a:hover { background: var(--surface); }

.dp-mobile-list__icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
}

.dp-mobile-list__icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dp-mobile-list .is-current > a {
  color: var(--blue);
  background: var(--blue-dim);
  font-weight: 500;
}

.dp-mobile-list .is-current .dp-mobile-list__icon {
  color: var(--blue);
  background: color-mix(in srgb, var(--blue) 15%, transparent);
}

.dp-drawer__footer {
  flex: 0 0 auto;
  display: grid;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid var(--border);
}

.dp-drawer__cta { width: 100%; }

.dp-drawer__theme {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
}

.dp-drawer__theme-icon {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
}

.dp-drawer__theme svg { width: 16px; height: 16px; }

@media (max-width: 767px) {
  /*
   * Reliable mobile fixed header.
   * Body padding reserves exactly the same 72 px, so content is never covered.
   */
  body {
    padding-top: 72px;
  }

  .dp-header {
    position: fixed;
    inset: 0 0 auto;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    border-bottom-color: var(--border);
    backdrop-filter: blur(16px) saturate(1.35);
    -webkit-backdrop-filter: blur(16px) saturate(1.35);
    box-shadow: 0 1px 0 color-mix(in srgb, var(--border) 65%, transparent);
  }

  .home .dp-header,
  .home .dp-header.is-scrolled {
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    border-bottom-color: var(--border);
    backdrop-filter: blur(16px) saturate(1.35);
    -webkit-backdrop-filter: blur(16px) saturate(1.35);
  }

  .dp-header__inner {
    height: 72px;
  }

  .dp-nav--desktop { display: none !important; }
  .dp-menu-toggle { display: grid !important; }
  .dp-header__actions { margin-left: auto; }

  /*
   * The drawer must begin below the fixed header.
   * Previously its hidden 64px drawer head plus the first navigation item
   * were covered by the site header, so "Članci" appeared to be missing.
   */
  .dp-drawer-backdrop {
    inset: 72px 0 0;
    z-index: 990;
  }

  .dp-drawer {
    inset: 72px 0 0 auto;
    z-index: 995;
    height: auto;
    max-height: calc(100dvh - 72px);
  }

  /* The visible site header already provides logo and the menu close toggle. */
  .dp-drawer__head {
    display: none;
  }

  .dp-drawer__nav {
    padding-top: 16px;
  }

  /* WordPress admin toolbar is visible only to logged-in users. */
  body.admin-bar .dp-header {
    top: 46px;
  }

  body.admin-bar .dp-drawer-backdrop {
    inset: 118px 0 0;
  }

  body.admin-bar .dp-drawer {
    inset: 118px 0 0 auto;
    max-height: calc(100dvh - 118px);
  }

  /*
   * WordPress normally lets the mobile admin toolbar scroll away.
   * Keep it fixed so the DISCIPLON header never leaves a 46 px empty gap.
   */
  body.admin-bar #wpadminbar {
    position: fixed !important;
  }
}

@media (min-width: 768px) {
  .dp-nav--desktop { display: flex !important; }
  .dp-menu-toggle { display: none !important; }
}

@media (max-width: 639px) {
  .dp-header__cta { display: none !important; }
}

@media (min-width: 640px) {
  .dp-header__cta { display: inline-flex !important; }
}

@media (max-width: 430px) {
  .dp-header__inner { gap: 10px; }
  .dp-header__actions { gap: 2px; }
  .dp-icon-button { width: 34px; height: 34px; }
}

@media (max-width: 360px) {
  .dp-header__logo .dp-logo__wordmark { display: none; }
}


/* ============================================================
   SEARCH MODAL — FIGMA 1:1
   Overrides the old minimal .dp-search rules from app.css.
   ============================================================ */

.dp-search[hidden] {
  display: none !important;
}

.dp-search {
  position: fixed !important;
  inset: 0 !important;
  z-index: 100000 !important;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 8vh 16px 24px !important;
  overflow: hidden;
}

.dp-search__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: rgba(8, 12, 24, .78) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  cursor: default;
}

.dp-search__dialog {
  position: relative !important;
  z-index: 1;
  width: min(672px, 100%) !important;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid var(--border) !important;
  border-radius: 16px !important;
  background: var(--bg) !important;
  box-shadow: var(--shadow-modal, 0 28px 90px rgba(0,0,0,.34)) !important;
}

/* Input row */
.dp-search-modal__form {
  flex: 0 0 auto;
  margin: 0;
}

.dp-search-modal__input-row {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.dp-search-modal__input-icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  flex: 0 0 20px;
  color: var(--muted);
}

.dp-search-modal__input-icon svg,
.dp-search-modal__label svg,
.dp-search-modal__arrow svg,
.dp-search-modal__empty-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dp-search-modal__input {
  min-width: 0;
  flex: 1 1 auto;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  outline: none !important;
  background: transparent !important;
  color: var(--fg);
  box-shadow: none !important;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  appearance: none;
  -webkit-appearance: none;
}

.dp-search-modal__input::-webkit-search-cancel-button {
  display: none;
}

.dp-search-modal__input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.dp-search-modal__submit,
.dp-search-modal__esc {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin: 0;
  padding: 6px 10px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
}

.dp-search-modal__submit {
  gap: 6px;
  border: 1px solid rgba(26,84,244,.20);
  background: var(--blue-dim);
  color: var(--blue);
}

.dp-search-modal__submit[hidden] {
  display: none !important;
}

.dp-search-modal__esc {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
}

/* Scroll area */
.dp-search-modal__scroll {
  max-height: calc(82vh - 72px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--blue) 28%, var(--border)) transparent;
}

.dp-search-modal__scroll::-webkit-scrollbar {
  width: 7px;
}

.dp-search-modal__scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: color-mix(in srgb, var(--blue) 28%, var(--border));
}

/* Discovery */
.dp-search-modal__discovery {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 20px;
}

.dp-search-modal__discovery[hidden],
.dp-search-modal__results[hidden],
.dp-search-modal__empty[hidden],
.dp-search-modal__section[hidden] {
  display: none !important;
}

.dp-search-modal__section {
  min-width: 0;
}

.dp-search-modal__label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dp-search-modal__label svg {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
}

.dp-search-modal__chips,
.dp-search-modal__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dp-search-modal__chip {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--fg);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color .15s ease;
}

.dp-search-modal__chip:hover {
  background: var(--surface-raised);
}

.dp-search-modal__category {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 0;
  border-radius: 8px;
  background: var(--modal-accent-bg);
  color: var(--modal-accent);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: opacity .15s ease;
}

.dp-search-modal__category:hover {
  color: var(--modal-accent);
  opacity: .85;
}

.dp-search-modal__category-icon {
  width: 13px;
  height: 13px;
  display: grid;
  place-items: center;
  flex: 0 0 13px;
}

.dp-search-modal__category-icon svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Popular articles */
.dp-search-modal__article-list,
.dp-search-modal__guide-list,
.dp-search-modal__results-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dp-search-modal__article,
.dp-search-modal__guide,
.dp-search-modal__result {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  color: inherit;
  text-align: left;
  transition: background-color .15s ease;
}

.dp-search-modal__article:hover,
.dp-search-modal__guide:hover,
.dp-search-modal__result:hover {
  background: var(--surface);
}

.dp-search-modal__article-thumb {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface-raised);
}

.dp-search-modal__article-thumb img,
.dp-search-modal__result-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.dp-search-modal__article-thumb .dp-logo {
  width: 30px;
  height: 30px;
}

.dp-search-modal__article-copy,
.dp-search-modal__guide-copy,
.dp-search-modal__result-copy {
  min-width: 0;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.dp-search-modal__article-copy strong,
.dp-search-modal__guide-copy strong,
.dp-search-modal__result-copy strong {
  overflow: hidden;
  color: var(--fg);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .15s ease;
}

.dp-search-modal__article:hover strong,
.dp-search-modal__guide:hover strong,
.dp-search-modal__result:hover strong {
  color: var(--blue);
}

.dp-search-modal__article-copy small,
.dp-search-modal__guide-copy small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.dp-search-modal__arrow {
  width: 12px;
  height: 12px;
  display: grid;
  place-items: center;
  flex: 0 0 12px;
  margin-left: auto;
  color: var(--muted);
}

.dp-search-modal__arrow svg {
  stroke-width: 2.5;
}

/* Guides */
.dp-search-modal__guide {
  justify-content: space-between;
  border: 1px solid var(--border);
  gap: 12px;
}

.dp-search-modal__guide-mark {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--guide-accent) 14%, transparent);
}

/* Live article results */
.dp-search-modal__results {
  padding: 16px;
}

.dp-search-modal__results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 8px;
  margin-bottom: 12px;
}

.dp-search-modal__results-head > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dp-search-modal__results-head button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.dp-search-modal__result {
  gap: 16px;
}

.dp-search-modal__result-thumb {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--surface-raised);
}

.dp-search-modal__result-thumb .dp-logo {
  width: 34px;
  height: 34px;
}

.dp-search-modal__result-badge {
  align-self: flex-start;
  display: inline-flex;
  margin-bottom: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--modal-accent-bg);
  color: var(--modal-accent);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.dp-search-modal__result > small {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
}

/* No results */
.dp-search-modal__empty {
  padding: 32px;
  text-align: center;
}

.dp-search-modal__empty-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  color: var(--muted);
}

.dp-search-modal__empty > strong {
  display: block;
  margin-bottom: 8px;
  color: var(--fg);
  font-size: 16px;
  font-weight: 600;
}

.dp-search-modal__empty > p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.dp-search-modal__empty-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

/* Mobile */
@media (max-width: 767px) {
  .dp-search {
    padding: 16px !important;
  }

  .dp-search__dialog {
    max-height: calc(100dvh - 32px);
    margin: 0;
  }

  .dp-search-modal__scroll {
    max-height: calc(100dvh - 105px);
  }

  .dp-search-modal__input-row {
    min-height: 64px;
    padding: 14px 16px;
    gap: 10px;
  }

  .dp-search-modal__submit {
    display: none !important;
  }

  .dp-search-modal__esc {
    padding-inline: 9px;
  }

  .dp-search-modal__discovery {
    padding: 16px;
    gap: 22px;
  }
}

@media (max-width: 380px) {
  .dp-search-modal__esc {
    font-size: 0;
    width: 32px;
    padding: 0;
  }

  .dp-search-modal__esc::after {
    content: "×";
    font-size: 20px;
    line-height: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dp-search-modal__chip,
  .dp-search-modal__category,
  .dp-search-modal__article,
  .dp-search-modal__guide,
  .dp-search-modal__result {
    transition: none;
  }
}


/* ============================================================
   SEARCH MODAL INPUT POLISH v1.3
   Prevent native browser magnifier/cancel decorations.
   ============================================================ */

.dp-search-modal__input {
  box-sizing: border-box;
  background-image: none !important;
  text-indent: 0 !important;
}

.dp-search-modal__input::-webkit-search-decoration,
.dp-search-modal__input::-webkit-search-cancel-button,
.dp-search-modal__input::-webkit-search-results-button,
.dp-search-modal__input::-webkit-search-results-decoration {
  display: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

/* ============================================================
   EDUCATION NAVIGATION v1.0
   One umbrella item; only active products are rendered below it.
   ============================================================ */
.dp-nav__education { position: relative; }
.dp-nav-dropdown { position: relative; }
.dp-nav-dropdown > summary {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1;
  list-style: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color .15s ease, background-color .15s ease;
}
.dp-nav-dropdown > summary::-webkit-details-marker { display: none; }
.dp-nav-dropdown > summary:hover,
.dp-nav-dropdown[open] > summary {
  color: var(--fg);
  background: var(--surface);
}
.dp-nav__education.is-current .dp-nav-dropdown > summary {
  color: var(--blue);
  background: var(--blue-dim);
  font-weight: 500;
}
.dp-nav-dropdown__chevron {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .18s var(--ease);
}
.dp-nav-dropdown[open] .dp-nav-dropdown__chevron { transform: rotate(180deg); }
.dp-nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 130;
  width: 330px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--bg) 97%, transparent);
  box-shadow: 0 20px 55px rgba(7, 9, 26, .18);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
}
.dp-nav-dropdown__menu::before {
  content: "";
  position: absolute;
  inset: -12px 0 auto;
  height: 12px;
}
.dp-nav-dropdown__menu > a {
  min-height: 68px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 10px 11px;
  border-radius: 11px;
  color: var(--fg);
}
.dp-nav-dropdown__menu > a:hover { background: var(--surface); }
.dp-nav-dropdown__menu > a.is-current { background: var(--blue-dim); color: var(--blue); }
.dp-nav-dropdown__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--surface-raised);
  color: var(--blue);
}
.dp-nav-dropdown__icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dp-nav-dropdown__copy { min-width: 0; display: grid; gap: 3px; }
.dp-nav-dropdown__copy strong { color: inherit; font-size: 13px; font-weight: 600; line-height: 1.2; }
.dp-nav-dropdown__copy small { color: var(--muted); font-size: 11.5px; font-weight: 400; line-height: 1.35; white-space: normal; }

.dp-mobile-list__education > details { width: 100%; }
.dp-mobile-education > summary {
  width: 100%;
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--fg);
  font-size: 15px;
  line-height: 1.2;
  list-style: none;
  cursor: pointer;
}
.dp-mobile-education > summary::-webkit-details-marker { display: none; }
.dp-mobile-education > summary:hover { background: var(--surface); }
.dp-mobile-list__education.is-current .dp-mobile-education > summary {
  color: var(--blue);
  background: var(--blue-dim);
  font-weight: 500;
}
.dp-mobile-list__education.is-current .dp-mobile-list__icon {
  color: var(--blue);
  background: color-mix(in srgb, var(--blue) 15%, transparent);
}
.dp-mobile-education__chevron {
  width: 17px;
  height: 17px;
  margin-left: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .18s var(--ease);
}
.dp-mobile-education[open] .dp-mobile-education__chevron { transform: rotate(180deg); }
.dp-mobile-education__menu {
  display: grid;
  gap: 4px;
  padding: 2px 8px 8px 52px;
}
.dp-mobile-education__menu > a {
  min-height: auto;
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--fg-secondary);
}
.dp-mobile-education__menu > a:hover { background: var(--surface); }
.dp-mobile-education__menu > a.is-current { background: var(--blue-dim); color: var(--blue); }
.dp-mobile-education__menu strong { color: inherit; font-size: 13.5px; font-weight: 600; line-height: 1.25; }
.dp-mobile-education__menu small { color: var(--muted); font-size: 11.5px; font-weight: 400; line-height: 1.4; }

@media (prefers-reduced-motion: reduce) {
  .dp-nav-dropdown__chevron,
  .dp-mobile-education__chevron { transition: none; }
}


/* ============================================================
   ACCOUNT CONTROL v0.6.2
   Front-end account access in the same header system.
   ============================================================ */

.dp-account-link,
.dp-account-menu__trigger {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: color .15s ease, background-color .15s ease;
}

.dp-account-link:hover,
.dp-account-menu__trigger:hover,
.dp-account-menu[open] .dp-account-menu__trigger {
  background: var(--surface);
  color: var(--fg);
}

.dp-account-link svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dp-account-menu {
  position: relative;
}

.dp-account-menu__trigger {
  list-style: none;
}

.dp-account-menu__trigger::-webkit-details-marker {
  display: none;
}

.dp-account-menu__avatar,
.dp-drawer-account__avatar {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--blue), color-mix(in srgb, var(--blue) 60%, #7c3aed));
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
}

.dp-account-menu__chevron {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .18s var(--ease);
}

.dp-account-menu[open] .dp-account-menu__chevron {
  transform: rotate(180deg);
}

.dp-account-menu__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 140;
  width: 292px;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--bg) 97%, transparent);
  box-shadow: 0 20px 55px rgba(7, 9, 26, .18);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
}

.dp-account-menu__panel::before {
  content: "";
  position: absolute;
  inset: -12px 0 auto;
  height: 12px;
}

.dp-account-menu__identity {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 10px 12px;
  border-bottom: 1px solid var(--border);
}

.dp-account-menu__avatar--large {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  font-size: 12px;
}

.dp-account-menu__identity > span:last-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.dp-account-menu__identity strong {
  overflow: hidden;
  color: var(--fg);
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dp-account-menu__identity small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dp-account-menu__links {
  display: grid;
  gap: 2px;
  padding-top: 7px;
}

.dp-account-menu__links a {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 9px;
  color: var(--fg-secondary);
  font-size: 12px;
  font-weight: 500;
}

.dp-account-menu__links a:hover {
  background: var(--surface);
  color: var(--fg);
}

.dp-account-menu__links .dp-account-menu__logout:hover {
  color: #dc2626;
}

.dp-drawer__account {
  display: grid;
  gap: 8px;
}

.dp-drawer-account {
  min-height: 58px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--fg);
}

.dp-drawer-account__avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 12px;
}

.dp-drawer-account__avatar svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dp-drawer-account__copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.dp-drawer-account__copy strong,
.dp-drawer-account__copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dp-drawer-account__copy strong {
  color: var(--fg);
  font-size: 13px;
  font-weight: 650;
}

.dp-drawer-account__copy small {
  color: var(--muted);
  font-size: 10.5px;
}

.dp-drawer-account__links {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}

.dp-drawer-account__links a {
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 6px 7px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  text-align: center;
}

.dp-drawer-account__links a:hover {
  color: var(--fg);
  background: var(--surface);
}

@media (max-width: 1120px) and (min-width: 768px) {
  .dp-account-link__label,
  .dp-account-menu__label,
  .dp-account-menu__chevron {
    display: none;
  }

  .dp-account-link,
  .dp-account-menu__trigger {
    width: 36px;
    justify-content: center;
    padding-inline: 0;
  }
}

@media (max-width: 767px) {
  .dp-account-link,
  .dp-account-menu {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dp-account-menu__chevron {
    transition: none;
  }
}
