/* Technical Network: panda black and white, warm paper, and a restrained vermilion accent. */
:root {
  --ep-color-brand: #242322;
  --ep-color-brand-hover: #41403e;
  --ep-color-accent: #b34d35;
  --ep-color-canvas: #f4f1eb;
  --ep-color-surface: #fffdfa;
  --ep-color-surface-muted: #eeeae4;
  --ep-color-text: #242322;
  --ep-color-muted: #5d5955;
  --ep-color-border: #d7d1c9;
  --ep-color-focus: #8e3425;
  --ep-content-width: 1240px;
  --ep-prose-width: 780px;
  --ep-radius-sm: 3px;
  --ep-radius-md: 7px;
  --ep-radius-lg: 12px;
  color-scheme: light;
}

html { scroll-behavior: smooth; }
body { background: var(--ep-color-canvas); }

.ep-header {
  background: #242322;
  border-bottom: 3px solid #b34d35;
}
.ep-header-inner { min-height: 78px; gap: clamp(14px, 2.2vw, 32px); }
.ep-brand {
  gap: 12px;
  color: #fffdfa;
  font-size: 1.08rem;
  letter-spacing: .015em;
}
.ep-brand:hover { color: #fff; }
.ep-brand-mark {
  width: 43px;
  height: 43px;
  border: 1px solid #ded8cf;
  border-radius: 50%;
  background: #f2ead8;
}
.ep-brand-mark img { object-fit: cover; }
.ep-nav { gap: clamp(3px, .8vw, 13px); }
.ep-nav-link {
  position: relative;
  padding: 10px 11px;
  color: #f3eee7;
  font-size: .94rem;
  font-weight: 620;
  white-space: nowrap;
}
.ep-nav-link:hover,
.ep-nav-link[aria-current="page"] { color: #fff; }
.ep-nav-link[aria-current="page"]::after {
  position: absolute;
  inset: auto 11px 1px;
  height: 3px;
  background: #d06a4c;
  content: "";
}
.ep-header-actions { gap: 2px; }
.ep-header-actions .ep-btn {
  color: #f3eee7;
  border-color: transparent;
  background: transparent;
}
.ep-header-actions .ep-btn:hover {
  color: #fff;
  border-color: #c9c1b8;
  background: #ffffff12;
}

.ep-main { padding-block: clamp(28px, 5vw, 68px) clamp(48px, 7vw, 92px); }
.ep-home-content {
  max-width: none;
  margin-block: 0 clamp(42px, 6vw, 78px);
}
.ep-home-content > .ep-elements { display: block; }
#home-hero { box-shadow: 0 18px 42px #29252213; }
#home-hero h1 { max-width: 15ch; }
#home-services { scroll-margin-top: 28px; }
[data-ep-id="services-heading-row"] { border-block-end: 1px solid #d4cfc6; padding-block-end: 14px; }
[data-ep-id="service-row-learning"] { border-block-end: 1px solid #d4cfc6; }
[data-ep-id="service-row-learning"] a,
[data-ep-id="service-row-practice"] a,
[data-ep-id="service-row-tools"] a { text-underline-offset: .2em; }
[data-ep-id="service-row-learning"] a:hover,
[data-ep-id="service-row-practice"] a:hover,
[data-ep-id="service-row-tools"] a:hover { color: #8f3c27; }

.ep-section-heading {
  margin-block: 0 12px;
  color: #242322;
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  letter-spacing: -.015em;
  text-transform: none;
}
.ep-post-list { border-top-color: #d4cfc6; }
.ep-card {
  padding-block: clamp(20px, 3vw, 30px);
  border-bottom-color: #d4cfc6;
}
.ep-card-head { gap: 20px; }
.ep-card-title { font-size: clamp(1.16rem, 2vw, 1.48rem); }
.ep-card-title a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: .06em;
  text-underline-offset: .18em;
  transition: color .16s ease, text-decoration-color .16s ease;
}
.ep-card-title a:hover { text-decoration-color: currentColor; }
.ep-card-summary { max-width: 76ch; line-height: 1.75; }
.ep-badge--info { background: #eeeae4; color: #242322; }
.ep-badge--neutral { background: #ece8e2; color: #57524f; }
.ep-footer {
  margin-block-start: 16px;
  border-top-color: #d4cfc6;
  background: #efebe5;
}
.ep-footer-inner { align-items: center; }
.ep-footer a { text-underline-offset: .2em; }
.ep-footer a:hover { color: #8f3c27; }

.ep-header :focus-visible,
.ep-footer :focus-visible,
.ep-home-content :focus-visible {
  outline: 3px solid #c66a4b;
  outline-offset: 4px;
}

@media (max-width: 780px) {
  .ep-header-inner { min-height: 0; padding-block: 12px; }
  .ep-nav { gap: 2px; padding-block: 6px; }
  .ep-nav-link { padding: 9px 10px; }
  #home-hero { margin-block-end: 42px; }
}

@media (max-width: 520px) {
  .ep-header-inner { column-gap: 8px; }
  .ep-brand { gap: 8px; font-size: 1rem; }
  .ep-brand-mark { width: 38px; height: 38px; }
  .ep-nav { justify-content: flex-start; }
  .ep-nav-link { padding-inline: 8px; font-size: .875rem; }
  .ep-header-actions .ep-btn { min-height: 36px; padding-inline: 8px; font-size: .82rem; }
  .ep-footer-inner { align-items: flex-start; }
}

@media (max-width: 780px) {
  .ep-consent-banner:not([hidden]) {
    position: relative;
    inset: auto;
    display: grid;
    width: min(calc(100% - 32px), var(--ep-content-width));
    max-width: none;
    margin: 8px auto calc(16px + env(safe-area-inset-bottom));
    padding: 13px;
    border-radius: 8px;
  }
  .ep-consent-banner > div { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
  .ep-consent-banner button { min-height: 42px; padding: 8px; font-size: .84rem; }
  .ep-consent-banner [data-consent-action="accept"] { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ep-card-title a { transition: none; }
}
