:root {
  --ink: #102033;
  --muted: #44586c;
  --soft: #f4f8fb;
  --surface: #ffffff;
  --line: #e2e8f0;
  --deep: #0b3a57;
  --blue: #12607f;
  --teal: #138f96;
  --wash: #eaf5f6;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(16, 32, 51, 0.04);
  --shell-header-height: 80px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--shell-header-height);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family: "Rubik", system-ui, -apple-system, sans-serif;
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }

.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.page-shell {
  background: var(--soft);
  color: var(--ink);
  font-family: "Rubik", system-ui, -apple-system, sans-serif;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  inset-inline-start: 0.75rem;
  padding: 0.7rem 1rem;
  color: #fff;
  background: var(--deep);
  border-radius: var(--radius-sm);
  font-weight: 700;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid #f59e0b;
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

:where([id]) {
  scroll-margin-top: var(--shell-header-height);
}

@media (min-width: 901px) {
  html:has(.site-subnav:not(.header-row .site-subnav)) {
    scroll-padding-top: calc(var(--shell-header-height) + 48px);
  }

  html:has(.site-subnav:not(.header-row .site-subnav)) :where([id]) {
    scroll-margin-top: calc(var(--shell-header-height) + 48px);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 248, 251, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  overflow: visible;
  padding-top: 6px;
}

.header-inner {
  min-height: var(--shell-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
  overflow: visible;
}

.header-row {
  min-height: var(--shell-header-height);
  display: flex;
  align-items: center;
  gap: 10px;
  padding-block: 8px;
  overflow: visible;
}

.site-name {
  color: var(--deep);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
}

.site-name strong {
  font-weight: inherit;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--deep);
  font-size: 1.02rem;
  font-weight: 800;
  white-space: nowrap;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  line-height: 1.15;
}

.brand-copy small,
.brand-tag {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-hub {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  overflow: visible;
  flex-shrink: 0;
}

.header-hub__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 12px;
}

.header-hub__brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.brand-title {
  color: var(--deep);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
}

.brand-title:hover {
  color: var(--deep);
}

.header-hub__site-name {
  display: flex;
  align-items: center;
  align-self: stretch;
  padding: 8px 16px 8px 14px;
  border-inline-start: 1px solid var(--line);
  color: var(--deep);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.header-hub .brand {
  padding: 0;
}

.header-hub .brand-mark {
  width: 56px;
  height: 56px;
}

.header-hub .projects-menu__toggle.projects-menu__toggle--subline {
  display: inline;
  min-height: unset;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: none;
  box-shadow: none;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.header-hub .projects-menu__toggle.projects-menu__toggle--subline:hover {
  color: var(--deep);
  background: none;
}

.projects-menu__toggle--subline {
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  padding: 0;
  min-height: auto;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}

.projects-menu__toggle--subline:hover {
  color: var(--deep);
}

.header-hub .projects-menu__toggle:not(.projects-menu__toggle--subline) {
  border: 0;
  border-inline-start: 1px solid var(--line);
  border-radius: 0;
  border-start-end-radius: 999px;
  border-end-end-radius: 999px;
  min-height: 100%;
  box-shadow: none;
}

.site-title {
  margin: 0;
  color: var(--deep);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.2;
}

.brand-umbrella {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.brand-umbrella:hover { color: var(--deep); }

.projects-menu {
  position: relative;
}

.projects-menu__toggle,
.nav-toggle,
.site-subnav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.projects-menu__toggle {
  cursor: pointer;
}

.projects-menu__panel {
  position: absolute;
  inset-inline-end: 0;
  inset-block-start: calc(100% + 6px);
  z-index: 30;
  min-width: 190px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.projects-menu__panel[hidden] {
  display: none;
}

.projects-menu__panel a {
  display: block;
  min-height: 40px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--muted);
}

.projects-menu__panel a:hover {
  background: var(--wash);
  color: var(--deep);
}

.nav-status-tag {
  display: inline-flex;
  align-items: center;
  margin-inline-start: 6px;
  border: 1px solid #e8d4a8;
  border-radius: 999px;
  padding: 1px 7px;
  background: var(--soft-amber, #fff7dd);
  color: #8a6220;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.3;
  vertical-align: middle;
}

.projects-menu__panel a.is-building,
.mobile-nav-panel a.is-building {
  background: rgba(255, 247, 221, 0.45);
}

.projects-menu__panel a.is-building:hover,
.mobile-nav-panel a.is-building:hover {
  background: rgba(255, 247, 221, 0.75);
}

.site-subnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 0 12px;
}

.site-subnav a {
  min-height: 36px;
  padding: 6px 14px;
}

.site-subnav a:hover {
  background: var(--wash);
  color: var(--deep);
}

@media (min-width: 901px) {
  .site-header .container.header-row {
    width: min(1320px, calc(100% - 32px));
  }

  .header-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 68px;
  }

  .header-row:has(.header-actions) {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
  }

  .header-row:has(.header-actions):not(:has(> .nav-toggle)) {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .header-hub {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
  }

  .header-row .site-subnav {
    min-width: 0;
    padding: 0;
    flex-wrap: nowrap;
    gap: 6px;
    justify-content: flex-start;
  }

  .header-row .site-subnav a {
    min-height: 32px;
    padding: 4px 10px;
    font-size: 0.84rem;
    white-space: nowrap;
  }

  .header-hub .projects-menu__toggle.projects-menu__toggle--subline {
    font-size: 0.72rem;
  }

  .header-row .nav-toggle {
    display: none;
  }

  .header-row .header-actions .nav-toggle {
    display: none;
  }

  .header-row .header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  :root:has(.header-row) {
    --shell-header-height: 68px;
  }
}

.nav-toggle { display: none; cursor: pointer; }

.mobile-nav-panel {
  display: none;
}

.mobile-nav-panel h2 {
  margin: 0 0 10px;
  color: var(--deep);
  font-size: 0.92rem;
}

.mobile-nav-panel h2 + h2,
.mobile-nav-panel__section + .mobile-nav-panel__section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.mobile-nav-panel a {
  display: block;
  min-height: 40px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--muted);
}

.mobile-nav-panel a:hover,
.mobile-nav-panel a[aria-current="page"] {
  background: var(--wash);
  color: var(--deep);
}

.mobile-nav-panel a + a { margin-top: 4px; }

.is-active,
[data-active="true"],
.site-subnav a[aria-current="page"] {
  background: var(--wash);
  color: var(--deep);
  font-weight: 700;
}

.page-content {
  width: min(1320px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 20px 0 40px;
}

.site-footer {
  margin-top: 24px;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
}

.contact-section {
  margin-top: 24px;
  padding: 40px 0 48px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.contact-section__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(300px, 1fr);
  gap: 28px;
  align-items: start;
}

.contact-section__intro h2 {
  margin: 0 0 10px;
  color: var(--deep);
  font-size: 1.45rem;
}

.contact-section__intro p {
  margin: 0;
  color: var(--muted);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 22px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-form label {
  display: grid;
  gap: 6px;
  color: var(--deep);
  font-weight: 700;
}

.contact-form__full {
  grid-column: 1 / -1;
}

.contact-form__required-note {
  grid-column: 1 / -1;
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.contact-form__required {
  color: #b42318;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #c8d8e0;
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  color: var(--ink);
  font: inherit;
  background: #fff;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form__submit {
  grid-column: 1 / -1;
  justify-self: start;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 10px 22px;
  background: var(--deep);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.contact-form__submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.contact-form__field-error,
.contact-form__error {
  color: #b42318;
  font-size: 0.88rem;
  font-weight: 500;
}

.contact-form__success {
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: #ecfdf3;
  border: 1px solid #abefc6;
  color: #067647;
  font-weight: 600;
}

.contact-form__error {
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: #fef3f2;
  border: 1px solid #fecdca;
}

@media (max-width: 900px) {
  .contact-section__inner,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .contact-form__submit {
    width: 100%;
    justify-self: stretch;
  }
}

@media (max-width: 900px) {
  :root {
    --shell-header-height: 56px;
  }

  .site-header {
    z-index: 60;
  }

  .header-inner {
    min-height: var(--shell-header-height);
    gap: 10px;
  }

  .header-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: var(--shell-header-height);
    gap: 8px;
  }

  .header-row:has(.header-actions) {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .header-row:has(.header-actions) .header-hub {
    grid-column: 1 / -1;
  }

  .header-row .site-name {
    display: none;
  }

  .header-hub__brand-text .projects-menu {
    display: none;
  }

  .header-hub__site-name {
    font-size: 0.86rem;
    padding: 4px 12px;
  }

  .brand-title {
    font-size: 0.92rem;
  }

  .header-hub .brand-mark {
    width: 44px;
    height: 44px;
  }

  .header-hub .projects-menu {
    display: none;
  }

  .brand {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    font-size: 0.95rem;
  }

  .brand-copy {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .header-row .header-actions .nav-toggle {
    display: inline-flex;
  }

  .projects-menu {
    display: none;
  }

  .header-row .site-subnav {
    display: none;
  }

  .header-hub {
    border: 0;
    background: transparent;
  }

  .header-hub .brand {
    padding: 0;
  }

  .site-subnav {
    display: none;
  }

  .mobile-nav-panel {
    display: none;
    position: fixed;
    inset-inline: 0;
    inset-block-start: var(--shell-header-height);
    z-index: 55;
    max-height: min(70vh, calc(100dvh - var(--shell-header-height)));
    overflow-y: auto;
    padding: 16px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    -webkit-overflow-scrolling: touch;
  }

  .mobile-nav-panel.is-open {
    display: block;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 54;
    background: rgba(16, 32, 51, 0.28);
  }
}

.site-subnav .site-title-inline {
  margin: 0;
  font-weight: 700;
  color: var(--deep);
}

.trust-provenance {
  margin: 0.75rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
  display: grid;
  gap: 0.35rem;
}

.legal-disclaimer-details {
  margin-top: 0.75rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.legal-disclaimer-details summary {
  cursor: pointer;
  color: var(--deep);
  font-weight: 600;
}

.error-state__actions {
  margin: 0.75rem 0 0;
  padding-inline-start: 1.25rem;
}

.error-state__actions a,
.error-state__actions button {
  color: var(--deep);
  font-weight: 600;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}

.support-bubble {
  position: fixed;
  z-index: 90;
  inset-block-end: 20px;
  inset-inline-start: 20px;
  width: min(300px, calc(100vw - 40px));
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(16, 32, 51, 0.14);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.support-bubble.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.support-bubble__close {
  position: absolute;
  inset-block-start: 8px;
  inset-inline-end: 10px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.support-bubble__text {
  margin: 0 0 12px;
  padding-inline-end: 24px;
  color: var(--deep);
  font-size: 0.95rem;
  font-weight: 600;
}

.paybox-support-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #9b4dff 0%, #6b2fd6 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}

.paybox-support-button:hover,
.paybox-support-button:focus {
  filter: brightness(1.05);
}

.site-subnav a.paybox-nav-link,
.mobile-nav-panel a.paybox-nav-link {
  color: #6b2fd6;
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .support-bubble {
    transition: none;
  }
}

/* New ED-DATA shell overrides */
.site-header {
  --ed-logo-h: 52px;
  background-color: rgba(244, 248, 251, 0.92);
  background-image:
    linear-gradient(rgba(23, 107, 93, 0.043) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 107, 93, 0.043) 1px, transparent 1px);
  background-size: 42px 42px;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  overflow: visible;
  padding-top: 6px;
  transition: box-shadow 180ms ease, padding 180ms ease;
}

.ed-standard-footer {
  margin-top: 0;
  background: #0f2234;
  color: #dce8ee;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 32px 0;
}

.ed-standard-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.ed-standard-footer__disclaimer {
  max-width: 860px;
  margin: 0;
  color: #c4d2dc;
  font-size: 0.92rem;
  line-height: 1.75;
}

.ed-standard-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.ed-standard-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm, 8px);
  color: #ffffff;
  font-weight: 750;
  text-decoration: none;
}

.ed-standard-footer__links a:hover,
.ed-standard-footer__links a:focus {
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

@media (max-width: 760px) {
  .ed-standard-footer__inner {
    grid-template-columns: 1fr;
  }

  .ed-standard-footer__links {
    justify-content: flex-start;
  }
}


.site-header.is-scrolled {
  --ed-logo-h: 40px;
  box-shadow: 0 4px 18px rgba(0, 32, 91, 0.06);
}

.header-row {
  min-height: var(--shell-header-height);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding-block: 8px;
  overflow: visible;
}

.header-row:has(.site-subnav),
.header-row:has(.header-actions) {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.ed-identity {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
  flex: 1 1 auto;
}

.ed-brand-zone {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-shrink: 0;
}

.ed-logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  border-radius: 8px;
}

.ed-logo-full {
  display: block;
  width: auto;
  height: var(--ed-logo-h, 52px);
  max-width: min(220px, 42vw);
  object-fit: contain;
  object-position: right center;
  transition: height 180ms ease, max-width 180ms ease;
}

.ed-product-zone {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ed-slash {
  color: #b7c5d1;
  font-weight: 500;
  font-size: 0.85rem;
  line-height: 1;
  flex-shrink: 0;
  user-select: none;
}

.ed-tool-name {
  color: var(--deep, #0f2a3d);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 34vw;
  text-decoration: none;
  transition: font-size 180ms ease;
}

.ed-tool-name:hover,
.ed-tool-name:active {
  color: var(--deep, #0f2a3d);
  text-decoration: none;
}

.site-header.is-scrolled .ed-tool-name {
  font-size: 1rem;
}

.ed-tools-btn.projects-menu__toggle,
.projects-menu__toggle--subline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #d5dee6;
  background: #fff;
  color: var(--deep, #0f2a3d);
  font-weight: 750;
  font-size: 0.88rem;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: none;
}

.ed-tools-btn.projects-menu__toggle:hover,
.projects-menu__toggle--subline:hover {
  background: #f2fafc;
  border-color: #d5dee6;
  color: var(--deep, #0f2a3d);
}

.ed-tools-btn.projects-menu__toggle[aria-expanded="true"] {
  background: #eef8fb;
  border-color: #c9d8e2;
}

.ed-tools-btn__caret {
  font-size: 0.68rem;
  opacity: 0.75;
  transition: transform 180ms ease;
}

.ed-tools-btn.projects-menu__toggle[aria-expanded="true"] .ed-tools-btn__caret {
  transform: rotate(180deg);
}

.ed-tools-panel.projects-menu__panel,
.projects-menu__panel {
  inset-inline-start: 0;
  inset-inline-end: auto;
  width: min(340px, calc(100vw - 24px));
  padding: 6px;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 32, 91, 0.1);
}

.ed-tools-panel__caption {
  padding: 8px 12px 6px;
  color: var(--muted, #5b7386);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ed-tools-panel.projects-menu__panel a,
.projects-menu__panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  line-height: 1.35;
}

.ed-tools-panel.projects-menu__panel a:hover,
.projects-menu__panel a:hover {
  background: #e8f3f7;
  border-color: #c5eaf1;
}

.ed-tools-panel.projects-menu__panel a.is-current,
.projects-menu__panel a.is-current {
  background: #f1f5f8;
  pointer-events: none;
}

.ed-tools-panel.projects-menu__panel a strong,
.projects-menu__panel a strong,
.mobile-nav-panel a strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--deep, #0f2a3d);
}

.ed-tools-panel.projects-menu__panel a span,
.projects-menu__panel a span,
.mobile-nav-panel__blurb {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted, #5b7386);
}

.site-subnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 0 12px;
}

.site-subnav a,
.nav-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.site-subnav a {
  min-height: 36px;
  padding: 6px 14px;
}

.site-subnav a:hover,
.site-subnav a[aria-current="page"],
.mobile-nav-panel a:hover,
.mobile-nav-panel a[aria-current="page"],
.is-active,
[data-active="true"] {
  background: var(--wash);
  color: var(--deep);
}

.nav-toggle {
  cursor: pointer;
}

.mobile-nav-panel {
  display: none;
}

.mobile-nav-panel h2 {
  margin: 0 0 10px;
  color: var(--deep);
  font-size: 0.92rem;
}

.mobile-nav-panel h2 + h2,
.mobile-nav-panel__section + .mobile-nav-panel__section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.mobile-nav-panel a {
  display: block;
  min-height: 40px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--muted);
}

.mobile-nav-panel a + a {
  margin-top: 4px;
}

@media (min-width: 901px) {
  .site-header .container.header-row {
    width: min(1320px, calc(100% - 32px));
  }

  .header-row {
    min-height: 68px;
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .header-row .nav-toggle,
  .header-row .header-actions .nav-toggle {
    display: none;
  }

  :root:has(.header-row) {
    --shell-header-height: 68px;
  }
}

@media (max-width: 900px) {
  :root {
    --shell-header-height: 56px;
  }

  .site-header {
    z-index: 60;
  }

  .header-row {
    min-height: var(--shell-header-height);
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .ed-identity {
    gap: 12px;
    min-width: 0;
  }

  .ed-brand-zone {
    min-width: 0;
  }

  .ed-product-zone {
    display: none;
  }

  .ed-tools-btn,
  .projects-menu__toggle--subline {
    font-size: 0.8rem;
    padding: 0 10px;
  }

  .ed-logo-full {
    max-width: min(180px, 48vw);
  }

  .projects-menu {
    display: none;
  }

  .site-subnav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .mobile-nav-panel {
    display: none;
    position: fixed;
    inset-inline: 0;
    inset-block-start: var(--shell-header-height);
    z-index: 55;
    max-height: min(70vh, calc(100dvh - var(--shell-header-height)));
    overflow-y: auto;
    padding: 16px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    -webkit-overflow-scrolling: touch;
  }

  .mobile-nav-panel.is-open {
    display: block;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 54;
    background: rgba(16, 32, 51, 0.28);
  }
}

/* Newsletter subscribe (banner / inline / popup) */
.ed-subscribe-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 1200;
  background: #0f2234;
  color: #edf3f7;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px 0;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
}

.ed-subscribe-banner__inner {
  width: min(1120px, calc(100% - 24px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
}

.ed-subscribe-banner__copy {
  flex: 1 1 220px;
  min-width: 0;
}

.ed-subscribe-banner__copy strong {
  display: block;
  font-size: 0.98rem;
}

.ed-subscribe-banner__copy span {
  display: block;
  font-size: 0.86rem;
  color: #c4d2dc;
}

.ed-subscribe-banner__form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ed-subscribe-banner__form input[type="email"] {
  min-width: min(240px, 70vw);
  padding: 9px 12px;
  border-radius: var(--radius-sm, 8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #fff;
  color: var(--ink, #102033);
}

.ed-subscribe-banner__form button,
.ed-subscribe-popup__submit {
  padding: 9px 14px;
  border-radius: var(--radius-sm, 8px);
  border: 0;
  background: var(--teal, #138f96);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.ed-subscribe-banner__form .ed-subscribe-consent {
  flex: 1 1 100%;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.78rem;
  color: #c4d2dc;
  cursor: pointer;
}

.ed-subscribe-banner__form .ed-subscribe-consent input {
  margin-top: 2px;
}

.ed-subscribe-banner__close {
  margin-inline-start: auto;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

body.ed-subscribe-banner-open {
  padding-bottom: 120px;
}

.ed-subscribe-inline {
  margin: 0 0 28px;
  padding: 22px;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: var(--radius, 12px);
  background: var(--surface, #fff);
}

.ed-subscribe-inline h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  color: var(--deep, #0b3a57);
}

.ed-subscribe-inline .ed-subscribe-note {
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: var(--muted, #44586c);
}

.ed-subscribe-inline__form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.ed-subscribe-inline__form input[type="email"] {
  flex: 1 1 220px;
  padding: 10px 12px;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: var(--radius-sm, 8px);
  font-family: inherit;
}

.ed-subscribe-inline__form .ed-subscribe-consent {
  flex: 1 1 100%;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 4px;
  font-size: 0.9rem;
  color: var(--muted, #44586c);
  cursor: pointer;
}

.ed-subscribe-inline__form .ed-subscribe-consent input {
  margin-top: 3px;
}

.ed-subscribe-popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1300;
  background: rgba(16, 32, 51, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ed-subscribe-popup {
  width: min(440px, 100%);
  background: #fff;
  color: var(--ink, #102033);
  border-radius: var(--radius, 12px);
  padding: 22px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.ed-subscribe-popup h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.ed-subscribe-popup fieldset {
  border: 0;
  padding: 0;
  margin: 14px 0;
}

.ed-subscribe-popup label.choice {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 8px 0;
  font-size: 0.95rem;
}

.ed-subscribe-popup input[type="email"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: var(--radius-sm, 8px);
  margin-top: 8px;
  font-family: inherit;
}

.ed-subscribe-popup__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 14px;
}

.ed-subscribe-msg {
  margin-top: 8px;
  font-size: 0.9rem;
}

.ed-subscribe-msg.is-error {
  color: #b42318;
}

.ed-subscribe-msg.is-ok {
  color: #0f6b4c;
}
