/* Editorial homepage horizontal rhythm – review only, Oct 29 2026.
   This file changes layout spacing, not content or portfolio assets. */
:root { --ed-max-grid: 1184px; }
.ed-body .ed-wrap,
.ed-body .site-header .nav-wrap,
.ed-body .site-footer .shell {
  width: calc(100% - 2 * clamp(32px, 7vw, 140px));
  max-width: var(--ed-max-grid);
  margin-inline: auto;
}
.ed-body .site-header .nav-wrap { gap: 19px; }
.ed-body .site-header .brand { min-width: 203px; flex-shrink: 0; }
.ed-body .site-header .main-nav,
.ed-body .site-header .nav-row { gap: clamp(8px, .88vw, 15px); }
.ed-body .site-header .main-nav a { font-size: 10px; }
.ed-body .site-header .main-nav .nav-cta { padding-inline: 16px; }
/* A balanced editorial hero: no text touches the viewport edge. */
.ed-hero-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(38px, 4.5vw, 72px);
  padding-block: 80px 78px;
  min-height: 600px;
}
.ed-hero-copy { min-width: 0; max-width: 600px; }
.ed-hero h1 { font-size: clamp(54px, 4.78vw, 74px); line-height: 1.1; letter-spacing: -.048em; max-width: 100%; }
.ed-hero-copy > p { max-width: 510px; }
.ed-actions { gap: 12px; }
.ed-photo { width: 100%; height: min(500px, 39vw); min-height: 415px; }
.ed-hero-side { max-width: 550px; }
/* All major content follows the same left and right measure. */
.ed-section-head { grid-template-columns: minmax(0, 1fr) minmax(275px, .6fr); gap: clamp(36px, 5vw, 70px); }
.ed-feature-main { grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); }
.ed-feature-main-copy { padding-inline: clamp(30px, 3.4vw, 49px); }
.ed-secondary-grid { gap: 7%; }
.ed-secondary-copy { max-width: 520px; }
.ed-process-grid { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 6.5%; }
.ed-learning-grid { gap: 8%; }
.ed-end-grid { gap: clamp(36px, 7vw, 95px); }
/* CareerCTRL was full bleed. Keep the full-width background, but align its text
   to the same inner page measure as all other editorial sections. */
.ed-careerctrl { grid-template-columns: minmax(0, 50%) minmax(0, 50%); }
.ed-careerctrl-copy {
  padding-left: max(clamp(32px, 7vw, 140px), calc((100vw - var(--ed-max-grid)) / 2));
  padding-right: clamp(35px, 4vw, 72px);
}
.ed-careerctrl-art { padding-right: max(30px, calc((100vw - var(--ed-max-grid)) / 2)); }
/* Keep the ends of lines elegant without hard-coded line breaks. */
.ed-hero-copy > p,.ed-section-intro p,.ed-feature-main-copy p,
.ed-secondary-copy p,.ed-process-intro p,.ed-careerctrl p,
.ed-learning p,.ed-end p { text-wrap: pretty; orphans: 2; widows: 2; }
@media (max-width: 1200px) {
  .ed-body .ed-wrap,.ed-body .site-header .nav-wrap,.ed-body .site-footer .shell {
    width: calc(100% - 2 * clamp(30px, 5.7vw, 80px));
  }
  .ed-hero-grid { gap: 34px; }
  .ed-hero h1 { font-size: clamp(50px, 5.15vw, 67px); }
  .ed-careerctrl-copy { padding-left: clamp(30px, 5.7vw, 80px); }
  .ed-careerctrl-art { padding-right: clamp(22px, 4vw, 55px); }
}
@media (max-width: 1020px) {
  /* Prevent the full navigation from crowding the brand on small desktop/tablet. */
  .ed-body .site-header .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 42px; flex: none; background: transparent; border: 1px solid #9d8354; border-radius: 5px; cursor: pointer; margin-left: auto; }
  .ed-body .site-header .menu-toggle span { width: 20px; height: 2px; background: #e9d6b6; display: block; margin: 0 auto; }
  .ed-body .site-header .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #1b1713; border-top: 1px solid #58462f; flex-direction: column; align-items: stretch; padding: 20px max(28px,6vw) 26px; box-shadow: 0 12px 19px #0008; }
  .ed-body .site-header .main-nav.open { display: flex; }
  .ed-body .site-header .nav-row { flex-direction: column; align-items: stretch; gap: 2px; }
  .ed-body .site-header .main-nav a { padding: 11px 8px; justify-content: flex-start; font-size: 13px; }
  .ed-body .site-header .main-nav .nav-cta { justify-content: center; margin-top: 8px; }
}
@media (max-width: 900px) {
  .ed-hero-grid { grid-template-columns: minmax(0,1fr) minmax(0,.88fr); gap: 27px; min-height: 0; padding-block: 62px; }
  .ed-hero h1 { font-size: clamp(43px,5.6vw,54px); }
  .ed-photo { min-height: 340px; height: 395px; }
  .ed-section-head { gap: 28px; }
  .ed-careerctrl { grid-template-columns: 1fr 1fr; }
  .ed-careerctrl-copy { padding-inline: 36px 30px; }
  .ed-careerctrl-art { padding-inline: 20px; }
}
@media (max-width: 680px) {
  .ed-body .ed-wrap,.ed-body .site-header .nav-wrap,.ed-body .site-footer .shell {
    width: calc(100% - 48px);
    max-width: none;
  }
  .ed-hero-grid { display: flex; flex-direction: column; gap: 32px; padding-block: 56px 37px; }
  .ed-hero-copy { max-width: 100%; }
  .ed-hero h1 { font-size: clamp(43px,11.1vw,60px); letter-spacing: -.047em; line-height: 1.1; }
  .ed-hero-copy > p { max-width: 100%; font-size: 13px; }
  .ed-actions { gap: 10px; }
  .ed-actions .ed-button { flex: 1 1 45%; }
  .ed-photo { max-width: 450px; height: 370px; min-height: 0; }
  .ed-section-head { display: grid; grid-template-columns: minmax(0,1fr); gap: 16px; }
  .ed-secondary-grid { grid-template-columns: 1fr; gap: 46px; }
  .ed-careerctrl { display: flex; flex-direction: column; }
  .ed-careerctrl-copy { padding: 61px 24px 40px; }
  .ed-careerctrl-art { padding: 34px 24px 40px; }
  .ed-end-grid { gap: 22px; }
}
@media (max-width: 390px) {
  .ed-body .ed-wrap,.ed-body .site-header .nav-wrap,.ed-body .site-footer .shell { width: calc(100% - 44px); }
  .ed-hero h1 { font-size: clamp(39px, 10.9vw, 45px); }
  .ed-actions { flex-direction: column; }
  .ed-actions .ed-button { flex: auto; width: 100%; }
  .ed-photo { height: 330px; }
  .ed-careerctrl-copy { padding-inline: 22px; }
}


/* Mobile My Approach correction, review only.
   Desktop styles remain exactly as in the approved editorial grid. */
@media (min-width: 681px) and (max-width: 900px) {
  .editorial-home .ed-process .ed-process-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .editorial-home .ed-process .ed-steps {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 25px 34px;
    margin-top: 0;
  }
  .editorial-home .ed-process .ed-process-intro {min-width:0;}
}
@media (max-width: 680px) {
  /* Intro occupies an independent full-width grid row. */
  .editorial-home .ed-process .ed-process-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    align-items: start;
  }
  .editorial-home .ed-process .ed-process-intro {
    grid-column: 1 / -1;
    width:100%;
    max-width:none;
    min-width:0;
  }
  .editorial-home .ed-process .ed-process-intro h2 {
    font-size: clamp(36px, 9.3vw, 44px);
    line-height:1.14;
    max-width:100%;
    text-wrap:balance;
  }
  .editorial-home .ed-process .ed-process-intro p {
    max-width: 34em;
    font-size: 14px;
    line-height: 1.75;
    text-wrap:pretty;
  }
  .editorial-home .ed-process .ed-steps {
    grid-column:1 / -1;
    margin:0;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:26px 28px;
    width:100%;
    min-width:0;
  }
  .editorial-home .ed-process .ed-steps li {min-width:0; padding-top:20px;}
  .editorial-home .ed-process .ed-steps h3 {font-size:13px;line-height:1.4;letter-spacing:.09em;}
  .editorial-home .ed-process .ed-steps p {
    font-size:13px;
    line-height:1.7;
    max-width:none;
    text-wrap:pretty;
    overflow-wrap:normal;
  }
  .editorial-home .ed-hero-copy > p {font-size:14px;line-height:1.75;}
  .editorial-home .ed-actions .ed-button {min-height:51px; align-items:center;justify-content:center;text-align:center;}
  .editorial-home .ed-proof-grid small {font-size:11px;line-height:1.45;}
}
@media (max-width: 480px) {
  /* Readable vertical sequence rather than four squeezed mini-columns. */
  .editorial-home .ed-process .ed-steps {
    grid-template-columns:minmax(0,1fr);
    gap:21px;
  }
  .editorial-home .ed-process .ed-steps li {
    display:grid;
    grid-template-columns:54px minmax(0,1fr);
    column-gap:14px;
    align-items:start;
    padding-top:17px;
  }
  .editorial-home .ed-process .ed-steps .ed-step-num {grid-column:1;grid-row:1 / 3; font-size:30px;margin-top:1px;}
  .editorial-home .ed-process .ed-steps h3 {grid-column:2;grid-row:1;margin:0 0 5px;}
  .editorial-home .ed-process .ed-steps p {grid-column:2;grid-row:2;}
  /* Two readable proof metrics + a full-width third metric. */
  .editorial-home .ed-proof-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    column-gap:0;
    row-gap:0;
    padding-block:20px 18px;
  }
  .editorial-home .ed-proof-grid>div {min-width:0; padding:0 14px 15px 0;}
  .editorial-home .ed-proof-grid>div:nth-child(2){padding:0 0 15px 15px; border-right:0;}
  .editorial-home .ed-proof-grid>div:nth-child(3){
    grid-column:1 / -1;
    border-top:1px solid rgba(207,173,112,.27);
    margin-top:13px;
    padding:14px 0 0;
  }
  .editorial-home .ed-proof-grid strong {font-size:29px;}
  .editorial-home .ed-proof-grid small {font-size:12px;max-width:28em;}
}
