/* Premium layer for CPT/blog/archive templates (2026-11). Uses tokens from premium.css.
   Prefix: .edt-  (editorial template components) */

/* ---------- Breadcrumbs ---------- */
.edt-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--ed-muted);
}

.edt-crumbs li { margin: 0; padding: 0; color: var(--ed-muted); font-size: 12px; line-height: 1.5; display: inline-flex; align-items: center; gap: 12px; }
.edt-crumbs li + li::before { content: ""; width: 14px; height: 1px; background: var(--ed-line); background: #c9c6be; }
.edt-crumbs a { color: var(--ed-navy); text-decoration: none; }
.edt-crumbs a:hover { color: var(--ed-teal-ink); }
.edt-crumbs [aria-current] { color: var(--ed-muted); }

/* ---------- Editorial page header ---------- */
.edt-head {
  background: var(--ed-stone);
  padding: 72px 0 88px;
  border-bottom: 1px solid var(--ed-line);
}

.edt-head__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 64px;
  align-items: end;
}

.edt-head h1 { margin: 0; font-size: 64px; line-height: 1.04; letter-spacing: -0.03em; }
.edt-head .edt-head__sub { margin: 22px 0 0; font-size: 19px; line-height: 1.65; color: var(--ed-text); max-width: 560px; }
.edt-head__aside { justify-self: end; text-align: right; }
.edt-head__aside p { margin: 0; font-size: 15px; color: var(--ed-muted); }

.edt-head--article h1 { font-size: 56px; max-width: 980px; }

/* ---------- Meta / labels ---------- */
.edt-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ed-teal-ink);
  line-height: 1.4;
}

.edt-dot { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: #b8b5ad; margin: 0 12px; vertical-align: middle; }

.edt-metaline { display: flex; flex-wrap: wrap; align-items: center; margin: 26px 0 0; font-size: 14px; color: var(--ed-muted); }
.edt-metaline .edt-label { margin: 0; }
.edt-metaline time, .edt-metaline span { font-size: 14px; color: var(--ed-muted); }

/* ---------- Filters (project types) ---------- */
.edt-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.edt-filters li { margin: 0; padding: 0; }

.edt-filters a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 20px;
  border: 1px solid rgba(33, 32, 96, .2);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--ed-navy);
  text-decoration: none;
  background: transparent;
  transition: background .3s var(--ed-ease), color .3s, border-color .3s;
}

.edt-filters a small { font-size: 11px; font-weight: 600; color: var(--ed-muted); transition: color .3s; }
.edt-filters a:hover { border-color: var(--ed-navy); }
.edt-filters a.is-active { background: var(--ed-navy); border-color: var(--ed-navy); color: #fff; }
.edt-filters a.is-active small { color: rgba(255, 255, 255, .65); }

/* ---------- Sections ---------- */
.edt-section { padding: var(--ed-section) 0; }
.edt-section--tight { padding: 88px 0; }
.edt-section--stone { background: var(--ed-stone); }

.edt-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  margin: 0 0 56px;
}

.edt-section-head h2 { margin: 0; font-size: 44px; }

.edt-count { margin: 0 0 40px; font-size: 13px; letter-spacing: .04em; color: var(--ed-muted); }

/* ---------- Card grid ---------- */
.edt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 64px 36px;
}

.edt-card { position: relative; display: flex; flex-direction: column; min-width: 0; }

.edt-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--ed-radius);
  background: var(--ed-stone-2);
  overflow: hidden;
  margin: 0 0 24px;
}

.edt-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s var(--ed-ease-out);
}

.edt-card:hover .edt-card__media img { transform: scale(1.045); }

.edt-card__media--logo img { object-fit: contain; padding: 12%; box-sizing: border-box; background: #fff; }

.edt-card__meta { display: flex; flex-wrap: wrap; align-items: center; margin: 0 0 12px; }
.edt-card__meta time, .edt-card__meta span:not(.edt-label):not(.edt-dot) { font-size: 13px; color: var(--ed-muted); }

.edt-card__title { margin: 0 0 12px; font-size: 23px; line-height: 1.28; letter-spacing: -0.015em; }

.edt-card__title a {
  color: var(--ed-navy);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) left 100% / 0 1px no-repeat;
  transition: background-size .6s var(--ed-ease-out);
}

.edt-card:hover .edt-card__title a { background-size: 100% 1px; }

/* the whole card is clickable through the title link */
.edt-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }

.edt-card__sub { margin: 0 0 18px; font-size: 15px; line-height: 1.6; color: var(--ed-muted); }
.edt-card__excerpt { margin: 0 0 22px; font-size: 15px; line-height: 1.7; color: var(--ed-text); }
.edt-card .ed-link { margin-top: auto; align-self: flex-start; }

/* Featured (first) item */
.edt-featured {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 64px;
  align-items: center;
  margin: 0 0 88px;
  padding-bottom: 88px;
  border-bottom: 1px solid var(--ed-line);
}

.edt-featured .edt-card__media { aspect-ratio: 16 / 11; margin: 0; }
.edt-featured .edt-card__title { font-size: 40px; line-height: 1.12; letter-spacing: -0.025em; margin-bottom: 20px; }
.edt-featured .edt-card__excerpt { font-size: 17px; }

/* ---------- Pagination ---------- */
.edt-pagination, .edt-pagination ul, .navigation .nav-links, .wpbeginner-pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 80px 0 0;
  padding: 0;
  list-style: none;
}

.edt-pagination li { margin: 0; }

.edt-pagination .page-numbers, .navigation .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--ed-line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ed-navy);
  text-decoration: none;
  transition: background .3s, color .3s, border-color .3s;
  box-sizing: border-box;
}

.edt-pagination a.page-numbers:hover, .navigation a.page-numbers:hover { border-color: var(--ed-navy); }
.edt-pagination .page-numbers.current, .navigation .page-numbers.current { background: var(--ed-navy); border-color: var(--ed-navy); color: #fff; }
.edt-pagination .page-numbers.dots { border: 0; min-width: 24px; }

/* ---------- Single: hero figure ---------- */
.edt-figure { margin: 0; padding: 0; background: linear-gradient(var(--ed-stone) 50%, #fff 50%); }

.edt-figure__frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 8;
  max-height: 720px;
  width: 100%;
  border-radius: var(--ed-radius);
  overflow: hidden;
  background: var(--ed-stone-2);
}

.edt-figure__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.4s var(--ed-ease-out); }
a.edt-figure__frame:hover img { transform: scale(1.025); }

.edt-figure__frame .edt-zoom-hint {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(12, 13, 42, .7);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* ---------- Project details ---------- */
.edt-details {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 96px;
  align-items: start;
}

.edt-specs { margin: 0; padding: 0; border-top: 1px solid var(--ed-line); }
.edt-specs div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 22px 0; border-bottom: 1px solid var(--ed-line); }
.edt-specs dt { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ed-muted); }
.edt-specs dd { margin: 0; font-size: 18px; font-weight: 500; line-height: 1.5; color: var(--ed-navy); }

.edt-details__body h2 { margin: 0 0 28px; font-size: 40px; }
.edt-details__body .ed-prose > p:first-child { margin-top: 0; }

/* ---------- Gallery ---------- */
.edt-gallery {
  grid-auto-flow: dense;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.edt-gallery a {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--ed-radius);
  background: var(--ed-stone-2);
}

.edt-gallery a:nth-child(7n + 1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }

.edt-gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ed-ease-out), opacity .4s; }
.edt-gallery a:hover img { transform: scale(1.05); }

.edt-gallery a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(12, 13, 42, 0);
  transition: background .4s var(--ed-ease);
}

.edt-gallery a:hover::after { background: rgba(12, 13, 42, .18); }

/* ---------- Article body (posts & spotlights) ---------- */
.edt-entry { padding: 0 0 var(--ed-section); }

/* core blocks sit in a reading column; ACF blocks stay full width */
.edt-entry > :not([class*="halfsides"]):not(.wp-block-group):not(.alignfull):not(.alignwide):not(style):not(script) {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--ed-gutter);
  padding-right: var(--ed-gutter);
  box-sizing: content-box;
}

.edt-entry > p, .edt-entry > ul, .edt-entry > ol { font-size: 18px; line-height: 1.85; color: var(--ed-text); }
.edt-entry > h2, .edt-entry > .wp-block-heading { margin-top: 1.6em; margin-bottom: .6em; font-size: 34px; }
.edt-entry > figure, .edt-entry > .wp-block-image, .edt-entry > .wp-block-embed { margin-top: 48px; margin-bottom: 48px; }
.edt-entry > .wp-block-image img { border-radius: var(--ed-radius); }
.edt-entry > .wp-block-image.size-full img, .edt-entry > .wp-block-image img { height: auto; }
.edt-entry .wp-block-embed__wrapper { position: relative; }
.edt-entry .wp-block-embed iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: var(--ed-radius); }
.edt-entry > .wp-block-spacer { max-width: none; }
.edt-entry > .wp-block-group { max-width: var(--ed-container); margin: 0 auto; padding: 0 var(--ed-gutter); }
.edt-entry > *:first-child { margin-top: 0; }
.edt-entry > :not(.edt-share) a:not(.btn):not(.ed-btn):not(.ed-link) { color: var(--ed-navy); text-decoration: underline; text-decoration-color: rgba(0, 194, 171, .7); text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* ---------- Share row ---------- */
.edt-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  max-width: 760px;
  margin: 0 auto;
  padding: 32px var(--ed-gutter) 0;
  box-sizing: content-box;
}

.edt-share__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; width: 100%; padding-top: 32px; border-top: 1px solid var(--ed-line); }
.edt-share h2 { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ed-muted); }
.edt-share__links { display: flex; flex-wrap: wrap; gap: 10px; }

.edt-share__links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid var(--ed-line);
  border-radius: 999px;
  color: var(--ed-navy);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background .3s, color .3s, border-color .3s;
}

.edt-share__links a svg { width: 15px; height: 15px; }
.edt-share__links a:hover { background: var(--ed-navy); border-color: var(--ed-navy); color: #fff; }

/* ---------- Empty / 404 / search ---------- */
.edt-empty { max-width: 640px; }
.edt-empty p { font-size: 18px; }

.edt-search {
  display: flex;
  gap: 0;
  max-width: 560px;
  margin: 36px 0 0;
  border: 1px solid rgba(33, 32, 96, .25);
  border-radius: var(--ed-radius);
  background: #fff;
  overflow: hidden;
  transition: border-color .3s;
}

.edt-search:focus-within { border-color: var(--ed-navy); }

.edt-search input[type="search"], .edt-search input[type="text"] {
  flex: 1;
  min-width: 0;
  height: 58px;
  padding: 0 20px;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--ed-font);
  font-size: 16px;
  color: var(--ed-navy);
}

.edt-search button {
  flex: none;
  height: 58px;
  padding: 0 26px;
  border: 0;
  background: var(--ed-navy);
  color: #fff;
  font-family: var(--ed-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .3s;
}

.edt-search button:hover { background: var(--ed-teal); color: var(--ed-ink); }

.edt-select {
  height: 48px;
  padding: 0 44px 0 18px;
  border: 1px solid rgba(33, 32, 96, .25);
  border-radius: 999px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23212060' stroke-width='1.4'/%3E%3C/svg%3E") right 18px center / 11px no-repeat;
  -webkit-appearance: none;
          appearance: none;
  font-family: var(--ed-font);
  font-size: 14px;
  color: var(--ed-navy);
  cursor: pointer;
}

/* ---------- Content With Slider block (spotlights + posts) ---------- */
.edt-cws { padding: 96px 0; background: #fff; }
.edt-entry > .edt-cws:first-child { padding-top: 96px; }
.edt-cws + .edt-cws { padding-top: 0; }
.edt-cws.is-dark { background: var(--ed-ink); padding-top: 96px; }

.edt-cws__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 88px;
  align-items: start;
}

.edt-cws.is-flipped .edt-cws__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.edt-cws.is-flipped .edt-cws__media { order: -1; }

.edt-cws__text h2 { margin: 0 0 28px; font-size: 44px; }
.edt-cws__text .ed-eyebrow { margin-bottom: 20px; }
.edt-cws__text .wyscontent { font-size: 17px; line-height: 1.85; }
.edt-cws__text .wyscontent p { margin: 0 0 1.15em; }
.edt-cws__text .wyscontent p:last-child { margin-bottom: 0; }
.edt-cws__btns { display: flex; flex-wrap: wrap; gap: 14px; margin: 44px 0 0; }

.edt-cws__media { position: sticky; top: calc(var(--ed-header-h) + 24px); min-width: 0; }

.edt-cws__slider {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--ed-radius);
  overflow: hidden;
  background: var(--ed-stone-2);
}

.edt-cws__slider .slick-list, .edt-cws__slider .slick-track { height: 100%; }
.edt-cws__slide { position: relative; height: 100%; }

.edt-cws__slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.edt-cws__slider:not(.slick-initialized) .edt-cws__slide + .edt-cws__slide { display: none; }
.edt-cws__slider:not(.slick-initialized) .edt-cws__slide { position: absolute; inset: 0; }
.edt-cws__slider img.object-contain { object-fit: contain; background: #fff; }

.edt-cws__nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.edt-cws__count { font-size: 12px; font-weight: 600; letter-spacing: .18em; color: var(--ed-muted); }
.edt-cws__arrows { display: flex; gap: 10px; }
.edt-cws__arrows .ed-arrow { width: 46px; height: 46px; }

.edt-cws.is-dark .edt-cws__count { color: rgba(255, 255, 255, .6); }

/* ---------- Legacy templates without posts (hardware, positions): light polish ---------- */
.single-hardware h1, .tax-hardware_category h1, .post-type-archive-positions h1, .single-positions h1 { letter-spacing: -0.03em; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .edt-head h1 { font-size: 52px; }
  .edt-head--article h1 { font-size: 46px; }
  .edt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 28px; }
  .edt-featured { grid-template-columns: 1fr; gap: 36px; }
  .edt-featured .edt-card__title { font-size: 34px; }
  .edt-details { grid-template-columns: 1fr; gap: 56px; }
  .edt-cws__grid, .edt-cws.is-flipped .edt-cws__grid { grid-template-columns: 1fr; gap: 48px; }
  .edt-cws.is-flipped .edt-cws__media { order: 0; }
  .edt-cws__media { position: relative; top: 0; max-width: 640px; }
  .edt-cws__slider { aspect-ratio: 4 / 3; }
}

@media (max-width: 991px) {
  .edt-head__grid { grid-template-columns: 1fr; gap: 24px; }
  .edt-head__aside { justify-self: start; text-align: left; }
}

@media (max-width: 767px) {
  .edt-head { padding: 40px 0 56px; }
  .edt-crumbs { margin-bottom: 28px; }
  .edt-head h1 { font-size: 40px; }
  .edt-head--article h1 { font-size: 34px; }
  .edt-head .edt-head__sub { font-size: 17px; }
  .edt-section-head { flex-direction: column; align-items: flex-start; margin-bottom: 40px; }
  .edt-section-head h2 { font-size: 30px; }
  .edt-grid { grid-template-columns: 1fr; gap: 48px; }
  .edt-card__title { font-size: 21px; }
  .edt-featured .edt-card__title { font-size: 28px; }
  .edt-filters { flex-wrap: nowrap; overflow-x: auto; margin-right: calc(var(--ed-gutter) * -1); padding-right: var(--ed-gutter); padding-bottom: 4px; scrollbar-width: none; }
  .edt-filters::-webkit-scrollbar { display: none; }
  .edt-filters a { white-space: nowrap; }
  .edt-figure__frame { aspect-ratio: 4 / 3; }
  .edt-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .edt-gallery a:nth-child(7n + 1) { grid-column: span 2; grid-row: auto; aspect-ratio: 4 / 3; }
  .edt-details__body h2 { font-size: 30px; }
  .edt-entry > p, .edt-entry > ul, .edt-entry > ol { font-size: 17px; }
  .edt-entry > h2, .edt-entry > .wp-block-heading { font-size: 27px; }
  .edt-cws, .edt-entry > .edt-cws:first-child, .edt-cws.is-dark { padding: 64px 0; }
  .edt-cws + .edt-cws { padding-top: 0; }
  .edt-cws__text h2 { font-size: 30px; }
  .edt-search button { padding: 0 18px; }
}

/* project details: heading left, specs + copy right */
.edt-details__head h2 { margin: 0; font-size: 44px; }
.edt-details__body .edt-specs { margin-bottom: 0; }
.edt-details__body .edt-specs div { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 24px; align-items: baseline; }
.edt-details__body .ed-prose { margin-top: 40px; }
@media (max-width: 767px) {
  .edt-details__head h2 { font-size: 30px; }
  .edt-details__body .edt-specs div { grid-template-columns: 1fr; gap: 6px; }
}

.edt-share__links a { text-decoration: none !important; }
.edt-featured .edt-card__text { min-width: 0; }
.edt-featured .edt-card__meta time { font-size: 14px; }
.edt-empty p.ed-eyebrow { font-size: 12px; }
.edt-head .edt-head__sub p { margin: 0; font-size: inherit; line-height: inherit; }
.edt-head .edt-search { margin-top: 28px; }
.edt-entry--post { padding-top: 88px; }
.edt-entry--post > .edt-cws:first-child { padding-top: 0; }
@media (max-width: 767px) { .edt-entry--post { padding-top: 56px; } }

/* ---------- Hardware category + single (CPT currently has no posts): bring onto the palette ---------- */
body.tax-hardware_category .hardware-category-archive { background: var(--ed-stone); padding: 88px 0 var(--ed-section); }
body.tax-hardware_category .hardware-category-header,
body.tax-hardware_category .hardware-no-posts,
body.tax-hardware_category .hardware-card { border-radius: var(--ed-radius-lg); box-shadow: none; border: 1px solid var(--ed-line); }
body.tax-hardware_category .hardware-category-header { padding: 48px; gap: 56px; align-items: center; }
body.tax-hardware_category .hardware-category-info h1 { color: var(--ed-navy); font-size: 56px; letter-spacing: -0.03em; margin: 0 0 16px; }
body.tax-hardware_category .hardware-category-description, body.tax-hardware_category .hardware-category-description p { font-size: 18px; color: var(--ed-text); }
body.tax-hardware_category .hardware-no-posts p { color: var(--ed-muted); font-size: 16px; }
body.tax-hardware_category .hardware-category-slider-section h2 { color: var(--ed-navy); }
body.tax-hardware_category .hardware-card h3 { color: var(--ed-navy); }
body.tax-hardware_category .hardware-card-cta { color: var(--ed-navy); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }

body.single-hardware .hardware-single-container { padding-top: 72px; padding-bottom: var(--ed-section); }
body.single-hardware .hardware-header h1 { color: var(--ed-navy); font-size: 56px; letter-spacing: -0.03em; }
body.single-hardware .hardware-section h2 { color: var(--ed-navy); font-size: 28px; }
body.single-hardware .hardware-section { border-color: var(--ed-line); box-shadow: none; }
body.single-hardware .hardware-main-image, body.single-hardware .hardware-gallery-item { border-radius: var(--ed-radius); overflow: hidden; }

@media (max-width: 767px) {
  body.tax-hardware_category .hardware-category-header { padding: 28px; gap: 24px; }
  body.tax-hardware_category .hardware-category-info h1, body.single-hardware .hardware-header h1 { font-size: 36px; }
}
.edt-entry > .wp-block-group.is-layout-flex { gap: 24px; align-items: flex-start; margin-top: 24px; margin-bottom: 24px; }
.edt-entry > .wp-block-group.is-layout-flex > .wp-block-embed { flex: 1 1 0; min-width: 0; margin: 0; }
.edt-entry > .wp-block-spacer:first-child + .edt-cws { padding-top: 0; }
@media (max-width: 767px) {
  .edt-entry > .wp-block-group.is-layout-flex { flex-wrap: wrap !important; }
  .edt-entry > .wp-block-group.is-layout-flex > .wp-block-embed { flex: 1 1 100%; }
}

/* ---------- Projects archive (2026-11-15): stat, tighter grid start, hover arrow ---------- */
.edt-head--projects .edt-head__sub { max-width: 520px; }
.edt-stat { display: flex; align-items: flex-end; justify-content: flex-end; gap: 14px; margin: 0; }
.edt-head__aside .edt-stat strong { font-size: 88px; line-height: .82; font-weight: 600; letter-spacing: -0.04em; color: var(--ed-navy); }
.edt-head__aside .edt-stat span { font-size: 12px; font-weight: 600; line-height: 1.5; letter-spacing: .18em; text-transform: uppercase; color: var(--ed-muted); text-align: left; }
.edt-section--archive { padding-top: 80px; }
.edt-section--archive .edt-count { margin-bottom: 36px; }
.edt-card--project .edt-card__media { margin-bottom: 22px; }
.edt-card--project .edt-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12, 13, 42, .38), rgba(12, 13, 42, 0) 55%); opacity: 0; transition: opacity .6s var(--ed-ease-out); pointer-events: none; }
.edt-card__go { position: absolute; right: 18px; bottom: 18px; z-index: 1; width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--ed-navy); opacity: 0; transform: translateY(10px) scale(.9); transition: opacity .45s var(--ed-ease-out), transform .7s var(--ed-ease-out); }
.edt-card__go::before { content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 12px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M0 5h14.5M10.5 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M0 5h14.5M10.5 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E") center/contain no-repeat; }
@media (hover: hover) {
  .edt-card--project:hover .edt-card__media::after { opacity: 1; }
  .edt-card--project:hover .edt-card__go { opacity: 1; transform: none; }
}
.edt-card--project:focus-within .edt-card__go { opacity: 1; transform: none; }
.edt-pagination ul.page-numbers { margin: 0; height: auto; min-width: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.edt-pagination .prev, .edt-pagination .next { padding: 0 22px; }
@media (max-width: 991px) {
  .edt-stat { justify-content: flex-start; }
  .edt-head__aside .edt-stat strong { font-size: 64px; }
}
@media (max-width: 767px) {
  .edt-section--archive { padding-top: 48px; }
  .edt-head__aside .edt-stat strong { font-size: 52px; }
  .edt-pagination { margin-top: 56px; }
}

/* Chrome QA 2026-11-15: AA contrast on the stone header, 44px taps on phones, form anchor below the fixed header */
.edt-head .ed-eyebrow { color: #007766; }
.edt-head .edt-crumbs li, .edt-head .edt-crumbs [aria-current], .edt-filters a small, .edt-head__aside .edt-stat span { color: #646779; }
.gform_anchor { scroll-margin-top: calc(var(--ed-header-h, 80px) + 24px); }
@media (max-width: 767px) {
  .edt-filters a { height: 44px; }
  .edt-crumbs a { display: inline-block; padding: 13px 0; margin: -13px 0; }
}
