/* The main-page photographic language, confined to five editorial content roots.
   Media are atmospheric illustrations from the home shoot, never listing images. */
body.etagi-editorial[data-editorial-route] main {
  --mc-paper: #f6f8f5;
  --mc-ink: #163434;
  --mc-copy: #425955;
  --mc-line: #c9d5cf;
  --mc-pool: #dceee8;
  --mc-red: #bb2834;
  --mc-font: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --ink: var(--mc-ink);
  --mut: var(--mc-copy);
  --muted: var(--mc-copy);
  --line: var(--mc-line);
  --red: var(--mc-red);
  --font-display: var(--mc-font);
  --inner-deep: var(--mc-ink);
  --inner-copy: var(--mc-copy);
  color: var(--mc-ink);
  background: var(--mc-paper);
  font-family: var(--mc-font);
  hyphens: manual;
}

body[data-editorial-route="rent"] main { --mc-scene: url("../motion-20261023/terrace.webp"); --mc-mobile: url("../motion-20261023/terrace-small.webp"); }
body[data-editorial-route="resale"] main { --mc-scene: url("../motion-20261023/living.webp"); --mc-mobile: url("../motion-20261023/living-small.webp"); }
body[data-editorial-route="team"] main { --mc-scene: url("../motion-20261023/coast.webp"); --mc-mobile: url("../motion-20261023/coast-small.webp"); }
body[data-editorial-route="guides"] main { --mc-scene: url("../motion-20261023/bedroom.webp"); --mc-mobile: url("../motion-20261023/bedroom-small.webp"); }

body.etagi-editorial[data-editorial-route] main :is(.wrap, .container) {
  width: min(1400px, calc(100% - clamp(40px, 8vw, 112px)));
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
}
body.etagi-editorial[data-editorial-route] main :is(h1,h2,h3) {
  color: var(--mc-ink);
  font-family: var(--mc-font);
  font-weight: 450;
  letter-spacing: -.045em;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: manual;
}
body.etagi-editorial[data-editorial-route] main h2 {
  font-size: clamp(32px, 4vw, 62px);
  line-height: 1.05;
}
body.etagi-editorial[data-editorial-route] main :is(h1,h2,section[id],form[id]) { scroll-margin-block-start: 95px; }
body.etagi-editorial[data-editorial-route] main section:not(.subhero):not(.developer-hero):not(.developer-signal) {
  padding-block: clamp(44px, 5.8vw, 90px);
}
body.etagi-editorial[data-editorial-route] main :is(.wrap,.container) > p:not(.eyebrow) {
  color: var(--mc-copy);
  line-height: 1.65;
  max-width: 76ch;
}
body.etagi-editorial[data-editorial-route] main :is(p,li,summary,strong) { hyphens: manual; }
body.etagi-editorial[data-editorial-route] main :is(.wrap,.container) > p + p,
body.etagi-editorial[data-editorial-route] main :is(.wrap,.container) > h2 + p { margin-block-start: 1em; }
body.etagi-editorial[data-editorial-route] main :is(p,li) a:not(.btn):not(.button),
body.etagi-editorial[data-editorial-route] main .category a {
  color: #96303b;
  text-decoration: underline;
  text-underline-offset: .19em;
}
body.etagi-editorial[data-editorial-route] main :is(a,button,input,summary):focus-visible {
  outline: 3px solid #147367;
  outline-offset: 4px;
}

/* Four old single-column templates have no hero image node. An in-flow,
   decorative second column leaves the original copy and CTAs unobscured. */
body.etagi-editorial[data-editorial-route] main .subhero.plain {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1.05fr) minmax(0,.9fr);
  align-items: stretch;
  gap: clamp(28px,5.5vw,88px);
  width: min(1520px, calc(100% - 32px));
  margin-inline: auto;
  padding: 0;
  min-height: 0;
  overflow: visible;
  contain: none;
  background: var(--mc-paper);
}
body.etagi-editorial[data-editorial-route] main .subhero.plain::before { content: none; }
body.etagi-editorial[data-editorial-route] main .subhero.plain::after {
  content: "";
  pointer-events: none;
  grid-column: 2;
  grid-row: 1;
  align-self: stretch;
  min-height: clamp(330px, 38vw, 610px);
  border-radius: 3px;
  background: #c8dad3 var(--mc-scene) center / cover no-repeat;
}
body.etagi-editorial[data-editorial-route] main .subhero.plain .inner {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  width: 100%;
  margin: 0;
  padding: clamp(34px,4vw,66px) 0 clamp(40px,5vw,80px) clamp(14px,3.5vw,54px);
}
body.etagi-editorial[data-editorial-route] main :is(.subhero.plain,.developer-hero) h1 {
  margin: 18px 0;
  color: var(--mc-ink);
  font: 450 clamp(45px,5.3vw,88px)/.99 var(--mc-font);
  letter-spacing: -.06em;
}
body.etagi-editorial[data-editorial-route] main .subhero.plain :is(.tagline,.crumbs,.crumbs a),
body.etagi-editorial[data-editorial-route] main .developer-hero :is(.eyebrow,.breadcrumbs,.breadcrumbs a) {
  border: 0;
  padding: 0;
  background: none;
  box-shadow: none;
  color: var(--mc-copy);
  font-family: var(--mc-font);
  font-size: 13px;
  letter-spacing: .012em;
  text-transform: none;
}
body.etagi-editorial[data-editorial-route] main .tagline .dot { width: 7px; height: 7px; background: #e8323b; box-shadow: none; margin: 0; }
body.etagi-editorial[data-editorial-route] main .crumbs a:hover { text-decoration: underline; }
body.etagi-editorial[data-editorial-route] main :is(.subhero.plain p.sub,.developer-hero-lead) {
  color: var(--mc-copy);
  font: 400 clamp(16px,1.4vw,20px)/1.6 var(--mc-font);
}
body.etagi-editorial[data-editorial-route] main :is(.subhero .inner > p:last-child:not(.sub),.developer-hero-note,.note-fresh) {
  margin-block-start: 18px;
  color: var(--mc-copy);
  font-size: 14px;
  line-height: 1.55;
}
body.etagi-editorial[data-editorial-route] main :is(.cta,.developer-hero-actions) { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 24px; }
body.etagi-editorial[data-editorial-route] main :is(.btn,.button) {
  min-width: 0;
  max-width: 100%;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 3px;
  font: 600 15px/1.35 var(--mc-font);
  white-space: normal;
  overflow-wrap: anywhere;
  text-decoration: none;
  box-shadow: none;
  text-align: center;
  justify-content: center;
}
body.etagi-editorial[data-editorial-route] main :is(.btn.red,.btn.white,.button-primary,.selection-submit) { background: var(--mc-red); color: white; }
body.etagi-editorial[data-editorial-route] main :is(.btn.glass,.button-light) { background: transparent; color: var(--mc-ink); border-color: #8da29a; backdrop-filter: none; }
body.etagi-editorial[data-editorial-route] main :is(.btn.red,.btn.white,.button-primary,.selection-submit):hover { background: #9d212b; color: white; box-shadow: none; transform: none; }
body.etagi-editorial[data-editorial-route] main :is(.btn.glass,.button-light):hover { background: #e6ece7; color: var(--mc-ink); }

/* Reading lists and consultation panels, not rows of gradient tiles. */
body.etagi-editorial[data-editorial-route] main :is(.cards,.guides,.category-map) { gap: 18px; }
body.etagi-editorial[data-editorial-route] main :is(.card,.guide,.category,.developer-project,.verification-list article) {
  min-width: 0;
  border: 0;
  border-top: 1px solid var(--mc-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: clamp(20px,2.7vw,36px) 12px clamp(24px,3vw,40px) 0;
}
body.etagi-editorial[data-editorial-route] main :is(.guide,.card):hover { transform: none; box-shadow: none; }
body.etagi-editorial[data-editorial-route] main .guide:hover h3 { text-decoration: underline; text-underline-offset: .15em; }
body.etagi-editorial[data-editorial-route] main :is(.gt,.ptag,.project-state) { background: var(--mc-pool); color: var(--mc-ink); }
body.etagi-editorial[data-editorial-route] main :is(.rd,.project-source,.verification-list span),
body.etagi-editorial[data-editorial-route] main .release-checks li::before { color: var(--mc-red); }
body.etagi-editorial[data-editorial-route] main :is(.release-checks,.band,.verification-strip,.source-box,.selection-bar) {
  background: #e7f0ea;
  color: var(--mc-ink);
  border: 0;
  border-radius: 3px;
  box-shadow: none;
}
body.etagi-editorial[data-editorial-route] main :is(.release-checks,.band) { padding: clamp(24px,5vw,76px); }
body.etagi-editorial[data-editorial-route] main .band::before,
body.etagi-editorial[data-editorial-route] main .band::after { content: none; }
body.etagi-editorial[data-editorial-route] main .band :is(h2,.eyebrow),
body.etagi-editorial[data-editorial-route] main .verification-strip strong { color: var(--mc-ink); }
body.etagi-editorial[data-editorial-route] main :is(.band .lead,.release-checks li,.verification-strip p) { color: var(--mc-copy); }
body.etagi-editorial[data-editorial-route] main .release-checks li { gap: 8px; grid-template-columns: 30px minmax(0,1fr); }

/* Apartment page already includes a real, explicitly captioned hero image. */
body.etagi-editorial[data-editorial-route="apartments"] main .developer-hero {
  color: var(--mc-ink);
  padding: clamp(32px,4.5vw,76px) 0;
  background: var(--mc-paper);
}
body.etagi-editorial[data-editorial-route="apartments"] main .developer-hero::after,
body.etagi-editorial[data-editorial-route="apartments"] main .developer-visual::after { content: none; }
body.etagi-editorial[data-editorial-route="apartments"] main .developer-visual img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 3px;
  filter: none;
}
body.etagi-editorial[data-editorial-route="apartments"] main .developer-visual figcaption {
  position: static;
  padding: 10px 0 0;
  color: var(--mc-copy);
  background: none;
  backdrop-filter: none;
  font-size: 13px;
}
body.etagi-editorial[data-editorial-route="apartments"] main :is(.developer-section-alt,.developer-capture,.developer-signal) { background: #edf3ee; }
body.etagi-editorial[data-editorial-route="apartments"] main .developer-project { min-height: 0; }
body.etagi-editorial[data-editorial-route="apartments"] main :is(.project-fact,.developer-faq p) { font-size: 15px; }
body.etagi-editorial[data-editorial-route="apartments"] main .selection-options label span { min-height: 44px; color: var(--mc-ink); background: white; font-size: 14px; }
body.etagi-editorial[data-editorial-route="apartments"] main .selection-options input:checked + span { color: white; background: var(--mc-ink); border-color: var(--mc-ink); }
body.etagi-editorial[data-editorial-route="apartments"] main .selection-options input:focus-visible + span { outline: 3px solid #147367; outline-offset: 2px; }

@media (max-width: 760px) {
  body.etagi-editorial[data-editorial-route] main .subhero.plain { width: calc(100% - 16px); grid-template-columns: minmax(0,1fr); gap: 0; }
  body.etagi-editorial[data-editorial-route] main .subhero.plain .inner { padding: 27px 12px 26px; }
  body.etagi-editorial[data-editorial-route] main .subhero.plain::after { grid-column: 1; grid-row: 2; min-height: 0; aspect-ratio: 2.25; background-image: var(--mc-mobile); }
  body.etagi-editorial[data-editorial-route] main :is(.subhero.plain,.developer-hero) h1 { font-size: clamp(39px,10.5vw,64px); line-height: 1.02; }
  body.etagi-editorial[data-editorial-route] main :is(.cards,.guides,.category-map,.release-checks,.developer-hero-grid,.developer-section-head,.source-box) { grid-template-columns: minmax(0,1fr); }
  body.etagi-editorial[data-editorial-route] main .developer-hero-grid { gap: 22px; }
  body.etagi-editorial[data-editorial-route] main .developer-visual img { aspect-ratio: 1.85; }
  body.etagi-editorial[data-editorial-route] main .release-checks { gap: 16px; }
  body.etagi-editorial[data-editorial-route] main :is(.cta,.developer-hero-actions) { margin-block-start: 18px; }
  body.etagi-editorial[data-editorial-route] main .developer-signal article { min-height: 0; }
}
