/* Edward-Jobs editorial pages. Builds on the existing navy/brass workspace. */
:root {
  --ed-paper: #f5f3ee;
  --ed-surface: #fffdf8;
  --ed-ink: #142235;
  --ed-muted: #526178;
  --ed-gold: #d9bc84;
  --ed-rule: #d8d0c1;
  --ed-brass: #80612e;
}

.ed-site .nav-container {
  gap: 12px;
}

.ed-site .nav-link {
  padding-inline: 10px;
  font-size: .8rem;
  white-space: nowrap;
}

.ed-site .nav-menu {
  margin-left: auto;
}

.ed-site .search-toggle__text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.ed-site .current-date {
  display: none;
}

.ed-footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 24px;
}

.ed-footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--brand-muted);
  font-size: .82rem;
  text-decoration: none;
}

.ed-landing, .ed-about, .ed-tools, .ed-knowledge {
  color: var(--ed-ink);
}

.ed-landing h1, .ed-landing h2, .ed-page-hero h1, .ed-page-lead, .ed-closing h2 {
  font-family: var(--brand-heading);
  font-weight: 600;
}

.ed-eyebrow {
  margin: 0 0 16px;
  color: var(--ed-brass);
  font-size: .7rem;
  line-height: 1.8;
  font-weight: 650;
  letter-spacing: .13em;
}

.ed-eyebrow span {
  margin-inline: 12px;
}

.ed-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(30px, 4.4vw, 58px);
  min-height: 580px;
  display: flex;
  align-items: center;
  border: 1px solid var(--brand-gold);
  border-radius: 12px;
  background: #101b29;
  color: var(--brand-ink);
}

.ed-hero::after {
  content: '';
  position: absolute;
  pointer-events: none;
  inset: 10px;
  border: 1px solid #c6a56b55;
  border-radius: 5px;
}

.ed-hero__art {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.ed-hero__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
}

.ed-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #101b29 0%, #101b29fa 33%, #101b29ed 50%, #101b2980 67%, #101b2910 100%);
}

.ed-hero__copy {
  max-width: 680px;
  width: 65%;
  padding-bottom: 44px;
}

.ed-hero .ed-eyebrow {
  color: var(--ed-gold);
  margin-bottom: 26px;
}

.ed-hero h1 {
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  line-height: 1.6;
  letter-spacing: -.035em;
  margin: 0 0 22px;
  color: var(--brand-ink);
}

.ed-hero h1 span {
  white-space: nowrap;
}

.ed-hero__lead {
  margin: 0 0 18px;
  color: var(--ed-gold);
  font-size: clamp(.98rem, 1.3vw, 1.1rem);
  line-height: 1.9;
  font-weight: 600;
}

.ed-hero__description {
  max-width: 33em;
  color: #c2cfdf;
  line-height: 2;
  font-size: .875rem;
  margin-bottom: 26px;
}

.ed-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 22px;
}

.ed-hero .ed-actions {
  max-width: 540px;
}

.ed-hero .ed-button {
  flex-basis: auto;
}

.ed-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid var(--ed-brass);
  border-radius: 5px;
  font-size: .83rem;
  line-height: 1.7;
  font-weight: 650;
  text-decoration: none;
  transition: background-color 160ms ease;
}

.ed-button--gold {
  color: var(--ed-ink);
  background: var(--ed-gold);
  border-color: var(--ed-gold);
}

.ed-button--gold:hover {
  background: #ebd3a7;
  color: var(--ed-ink);
}

.ed-button--outline {
  color: var(--ed-ink);
  background: var(--ed-surface);
}

.ed-button--outline:hover {
  background: #f1eadc;
  color: var(--ed-ink);
}

.ed-text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-size: .82rem;
  color: var(--brand-ink);
  text-decoration: underline;
  text-underline-offset: 7px;
}

.ed-text-link:hover {
  color: var(--ed-gold);
}

.ed-hero__signature {
  position: absolute;
  bottom: 30px;
  left: clamp(30px, 4.4vw, 58px);
  right: clamp(30px, 4.4vw, 58px);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid #c6a56b55;
  color: #c2cfdf;
  font-size: .75rem;
  letter-spacing: .07em;
}

.ed-hero__signature span {
  color: var(--ed-gold);
}

.ed-mobile-break {
  display: none;
}

.ed-intro-line {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: center;
  gap: 32px;
  padding: 32px 10px;
  border-bottom: 1px solid var(--ed-rule);
}

.ed-intro-line .ed-eyebrow {
  margin: 0;
}

.ed-intro-line > p {
  color: var(--ed-muted);
  font-size: .85rem;
  line-height: 1.9;
}

.ed-section {
  padding-block: 72px;
}

.ed-section-heading {
  margin-bottom: 36px;
}

.ed-section-heading .ed-eyebrow {
  margin-bottom: 10px;
}

.ed-section-heading h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  line-height: 1.6;
  margin-bottom: 12px;
}

.ed-section-heading > p:last-child {
  color: var(--ed-muted);
  font-size: .9rem;
  line-height: 1.9;
}

.ed-challenges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.ed-challenge {
  padding: 28px 28px 24px;
  background: var(--ed-surface);
  border-top: 2px solid var(--ed-brass);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.ed-number {
  color: var(--ed-brass);
  font-family: Georgia, serif;
  font-size: 2rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.ed-challenge h3 {
  font-size: 1.08rem;
  line-height: 1.75;
  margin: 22px 0 20px;
}

.ed-challenge p {
  font-size: .86rem;
  line-height: 1.95;
  color: var(--ed-muted);
  margin-bottom: 14px;
}

.ed-inline-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 44px;
  font-size: .83rem;
  font-weight: 650;
  line-height: 1.75;
  color: #244e70;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.ed-inline-link:hover {
  color: var(--ed-brass);
}

.ed-challenge .ed-inline-link {
  width: 100%;
  margin-top: auto;
  padding-top: 18px;
}

.ed-themes-section {
  padding-top: 12px;
}

.ed-theme-row {
  display: grid;
  grid-template-columns: minmax(220px, .9fr) minmax(0, 1.45fr) auto;
  gap: 32px;
  align-items: center;
  padding: 32px 0;
  border-top: 1px solid var(--ed-rule);
}

.ed-theme-row:last-child {
  border-bottom: 1px solid var(--ed-rule);
}

.ed-theme-row__title {
  position: relative;
  padding-left: 48px;
}

.ed-theme-row__title .ed-number {
  position: absolute;
  left: 0;
  top: 4px;
  font-size: 1.6rem;
}

.ed-theme-row__title .ed-eyebrow {
  font-size: .65rem;
  margin-bottom: 7px;
}

.ed-theme-row h3 {
  font-size: 1.1rem;
  line-height: 1.8;
}

.ed-theme-row > div > p:not(.ed-eyebrow) {
  color: var(--ed-muted);
  line-height: 1.9;
  font-size: .88rem;
  margin-bottom: 14px;
}

.ed-topic-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding: 0;
}

.ed-topic-tags li {
  display: inline-block;
  padding: 3px 9px;
  border: 1px solid var(--ed-rule);
  border-radius: 3px;
  color: var(--ed-muted);
  font-size: .7rem;
  line-height: 1.7;
}

.ed-lab {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  padding: 52px;
  background: var(--brand-navy);
  color: var(--brand-ink);
  border: 1px solid var(--brand-gold);
  border-radius: 10px;
}

.ed-lab .ed-eyebrow {
  color: var(--ed-gold);
}

.ed-lab h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  line-height: 1.65;
  margin-bottom: 22px;
  color: var(--brand-ink);
}

.ed-lab__copy > p:not(.ed-eyebrow) {
  line-height: 2;
  color: #c2cfdf;
  font-size: .88rem;
  margin-bottom: 18px;
}

.ed-lab .ed-button {
  margin-top: 8px;
}

.ed-lab__practice {
  align-self: center;
}

.ed-process {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  list-style: none;
  padding: 0;
  border: 1px solid #586071;
  background: #586071;
}

.ed-process li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: var(--brand-navy);
  font-size: .92rem;
}

.ed-process span {
  font-size: .7rem;
  letter-spacing: .1em;
  color: var(--ed-gold);
}

.ed-lab__examples {
  margin-top: 26px;
}

.ed-lab__examples h3 {
  font-size: .8rem;
  font-weight: 500;
  color: var(--ed-gold);
  margin-bottom: 12px;
}

.ed-lab__examples ul {
  padding-left: 1.2em;
  font-size: .8rem;
  line-height: 2.1;
  color: #c2cfdf;
}

.ed-about-teaser {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 72px;
}

.ed-about-teaser h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.8;
}

.ed-about-motto {
  color: var(--ed-brass);
  font-size: .85rem;
  margin-top: 20px;
}

.ed-about-teaser__text p {
  font-size: .92rem;
  line-height: 2.1;
  margin-bottom: 20px;
  color: var(--ed-muted);
}

.ed-about-teaser .ed-button {
  margin-top: 8px;
}

.ed-page-hero {
  padding: 48px 0 44px;
  border-bottom: 1px solid var(--ed-rule);
  margin-bottom: 44px;
}

.ed-page-hero h1 {
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  line-height: 1.6;
  margin-bottom: 20px;
}

.ed-page-lead {
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  line-height: 1.9;
  margin-bottom: 20px;
}

.ed-page-hero > p:last-child:not(.ed-page-lead) {
  max-width: 47em;
  color: var(--ed-muted);
  font-size: .95rem;
  line-height: 2;
}

.ed-about-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 64px;
}

.ed-contents {
  align-self: start;
  position: sticky;
  top: 130px;
  padding-left: 20px;
  border-left: 2px solid var(--ed-brass);
}

.ed-contents a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--ed-muted);
  font-size: .8rem;
  text-decoration: none;
}

.ed-contents a:hover {
  color: var(--ed-brass);
  text-decoration: underline;
}

.ed-prose {
  max-width: 48em;
  line-height: 2.1;
  font-size: .95rem;
}

.ed-prose section {
  scroll-margin-top: 150px;
  margin-bottom: 56px;
}

.ed-prose h2 {
  font-size: clamp(1.4rem, 2.1vw, 1.8rem);
  line-height: 1.8;
  margin-bottom: 24px;
}

.ed-prose h3 {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 12px;
}

.ed-prose p {
  margin-bottom: 20px;
  color: var(--ed-muted);
}

.ed-prose strong {
  color: var(--ed-ink);
  font-weight: 650;
}

.ed-prose ul {
  padding-left: 1.4em;
  color: var(--ed-muted);
}

.ed-prose a:not(.ed-button) {
  color: #244e70;
}

.ed-value {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 18px;
  padding: 28px 0 8px;
  border-top: 1px solid var(--ed-rule);
}

.ed-value .ed-number {
  font-size: 1.55rem;
  margin-top: 7px;
}

.ed-future-list {
  columns: 2;
  margin-bottom: 24px;
}

.ed-future-list li {
  break-inside: avoid;
}

.ed-closing {
  padding: 32px;
  border-left: 3px solid var(--ed-brass);
  background: #eee9df;
}

.ed-closing__motto {
  font-family: var(--brand-heading);
  font-weight: 600;
  color: var(--ed-ink) !important;
}

.ed-knowledge-intro {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
}

.ed-topic-panel {
  padding: 28px;
  background: #eee9df;
  align-self: start;
}

.ed-topic-panel h2 {
  font-size: 1rem;
  margin-bottom: 20px;
}

.ed-topic-panel .ed-topic-tags li {
  background: var(--ed-paper);
  font-size: .78rem;
}

.ed-article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  padding: 30px 0;
  border-top: 1px solid var(--ed-rule);
  align-items: center;
}

.ed-article h3 {
  font-size: 1.2rem;
  line-height: 1.8;
  margin: 10px 0;
}

.ed-article a {
  color: #244e70;
}

.ed-article p, .ed-article time {
  color: var(--ed-muted);
  font-size: .88rem;
  line-height: 1.9;
}

.ed-article time {
  font-size: .75rem;
}

.ed-empty {
  padding: 32px;
  border: 1px solid var(--ed-rule);
  background: var(--ed-surface);
}

.ed-empty h3 {
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 12px;
}

.ed-empty p {
  color: var(--ed-muted);
  line-height: 1.9;
  margin-bottom: 24px;
  font-size: .9rem;
}

.ed-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
}

.ed-pagination a {
  padding: 12px;
  min-height: 44px;
  color: #244e70;
}

.ed-topic-footer, .ed-tool-return {
  border-top: 1px solid var(--ed-rule);
  padding-block: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  color: var(--ed-muted);
  font-size: .88rem;
}

.ed-tool-panel {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 48px;
  padding: 36px;
  border: 1px solid var(--ed-rule);
  background: var(--ed-surface);
  margin-bottom: 28px;
}

.ed-tool-panel h2 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.8;
}

.ed-tool-panel p:not(.ed-eyebrow) {
  color: var(--ed-muted);
  font-size: .9rem;
  line-height: 2;
  margin-bottom: 18px;
}

.ed-status {
  display: inline-block;
  padding: 4px 12px;
  font-size: .75rem;
  border: 1px solid var(--ed-brass);
  color: var(--ed-brass);
  margin-bottom: 24px;
  border-radius: 3px;
}

.ed-availability {
  padding-top: 18px;
  border-top: 1px solid var(--ed-rule);
}

.ed-project-definition {
  max-width: 56em;
  font-size: .9rem;
  color: var(--ed-muted);
  line-height: 2;
  margin: 0 0 32px;
}

.ed-hero :focus-visible, .ed-lab :focus-visible {
  outline-color: var(--ed-gold);
}

.ed-preview-note {
  padding: 10px 16px;
  background: #eee9df;
  color: #526178;
  font-size: .75rem;
  line-height: 1.8;
  margin-bottom: 16px;
  border-radius: 4px;
}

@media (min-width: 1025px) and (max-width: 1190px) {
  .ed-site .nav-link {
    padding-inline: 8px;
  }
}

@media (max-width: 1000px) {
  .ed-hero__copy {
    width: 78%;
  }
  .ed-hero::before {
    background: linear-gradient(90deg, #101b29 0%, #101b29f5 50%, #101b2970 100%);
  }
  .ed-challenges {
    gap: 16px;
  }
  .ed-challenge {
    padding: 24px 18px;
  }
  .ed-theme-row {
    grid-template-columns: minmax(190px, 1fr) 1.5fr;
    gap: 18px 28px;
  }
  .ed-theme-row > .ed-inline-link {
    grid-column: 2;
    justify-self: start;
  }
  .ed-lab {
    padding: 36px;
    gap: 36px;
  }
  .ed-about-teaser {
    gap: 40px;
  }
  .ed-about-layout {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 36px;
  }
  .ed-knowledge-intro {
    gap: 32px;
  }
}

@media (max-width: 700px) {
  .ed-site .header .nav-container {
    width: calc(100% - 32px);
    padding-inline: 0;
  }
  .ed-site .logo {
    font-size: 1.05rem;
  }
  .ed-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    min-height: 0;
  }
  .ed-hero__copy {
    width: auto;
    max-width: none;
    padding: 28px 24px 24px;
    order: -1;
  }
  .ed-hero__art {
    position: relative;
    inset: auto;
    z-index: 0;
    height: 190px;
  }
  .ed-hero__art img {
    object-position: center 48%;
  }
  .ed-hero::before {
    display: none;
  }
  .ed-hero h1 {
    font-size: clamp(1.65rem, 5.8vw, 2.7rem);
    letter-spacing: -.04em;
    line-height: 1.65;
    margin-bottom: 18px;
  }
  .ed-hero h1 span {
    white-space: normal;
  }
  .ed-hero .ed-eyebrow {
    font-size: .58rem;
    letter-spacing: .08em;
    margin-bottom: 18px;
  }
  .ed-hero .ed-eyebrow span {
    margin-inline: 6px;
  }
  .ed-hero__lead {
    font-size: .92rem;
  }
  .ed-hero__description {
    font-size: .82rem;
    line-height: 1.9;
    margin-bottom: 18px;
  }
  .ed-mobile-break {
    display: block;
  }
  .ed-desktop-break {
    display: none;
  }
  .ed-hero .ed-actions {
    gap: 6px 20px;
  }
  .ed-hero .ed-button {
    width: 100%;
    font-size: .78rem;
    padding-inline: 14px;
  }
  .ed-hero__signature {
    position: static;
    flex-wrap: wrap;
    gap: 8px;
    padding: 20px 24px;
    font-size: .7rem;
  }
  .ed-intro-line {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-block: 26px;
  }
  .ed-section {
    padding-block: 44px;
  }
  .ed-themes-section {
    padding-top: 0;
  }
  .ed-section-heading {
    margin-bottom: 26px;
  }
  .ed-challenges {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .ed-challenge {
    padding: 24px;
  }
  .ed-challenge h3 br {
    display: none;
  }
  .ed-challenge h3 {
    margin-top: 16px;
  }
  .ed-challenge p {
    font-size: .88rem;
  }
  .ed-theme-row {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-block: 26px;
  }
  .ed-theme-row > .ed-inline-link {
    grid-column: 1;
  }
  .ed-lab {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 28px 24px;
  }
  .ed-process li {
    padding: 18px 12px;
  }
  .ed-about-teaser {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .ed-about-teaser h2 {
    font-size: 2rem;
    line-height: 1.6;
  }
  .ed-page-hero {
    padding-block: 24px 32px;
    margin-bottom: 32px;
  }
  .ed-about-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .ed-contents {
    position: static;
    display: flex;
    gap: 6px 20px;
    flex-wrap: wrap;
  }
  .ed-contents .ed-eyebrow {
    width: 100%;
    margin: 0;
  }
  .ed-prose section {
    scroll-margin-top: 120px;
    margin-bottom: 40px;
  }
  .ed-prose {
    font-size: .9rem;
  }
  .ed-future-list {
    columns: 1;
  }
  .ed-closing {
    padding: 24px;
  }
  .ed-knowledge-intro, .ed-tool-panel {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .ed-tool-panel {
    padding: 24px;
  }
  .ed-article {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .ed-article > .ed-inline-link {
    justify-self: start;
  }
  .ed-empty {
    padding: 24px;
  }
  .ed-topic-footer, .ed-tool-return {
    flex-direction: column;
    align-items: flex-start;
  }
  .ed-footer-nav {
    gap: 4px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ed-button {
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

@media print {
  .ed-hero, .ed-lab {
    display: block;
    background: #fff;
    color: #000;
    border-color: #777;
    padding: 16pt 0;
  }
  .ed-hero__art, .ed-hero::before, .ed-hero::after, .ed-hero__signature, .ed-contents, .ed-footer-nav, .ed-preview-note {
    display: none;
  }
  .ed-hero__copy {
    width: auto;
    padding: 0;
  }
  .ed-hero h1, .ed-hero p, .ed-lab h2, .ed-lab p, .ed-lab li, .ed-lab h3, .ed-lab span {
    color: #000;
  }
  .ed-process li {
    background: #fff;
  }
  .ed-about-layout {
    display: block;
  }
  .ed-section {
    padding-block: 20pt;
  }
  .ed-challenge, .ed-tool-panel {
    break-inside: avoid;
  }
  .ed-button {
    color: #000;
    background: #fff;
  }
}

/* Article category links reuse the existing section navigation. */
.blog-list .ed-page-hero {
  padding-block: 2rem;
}

.blog-list .ed-page-hero > p:last-child {
  max-width: 48rem;
}

.project-section-nav a[aria-current="page"] {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .35em;
}
