.editorial {
  --ed-pad: clamp(23px, 4.1vw, 65px);
  --ed-gap: clamp(30px, 4.5vw, 68px);
  margin-block: 3px var(--ed-gap);
}
.editorial h1 {
  font: 500 clamp(2.8rem, 5.3vw, 5.1rem)/1.01 var(--serif);
  letter-spacing: -.045em;
}
.editorial h2 { font-size: clamp(1.65rem, 2.7vw, 2.75rem); letter-spacing: -.025em; }
.ed-hero {
  display: grid; grid-template-columns: 1fr 1.06fr; min-height: clamp(290px, 27vw, 400px);
  overflow: hidden; border-radius: 8px; background: #342b23; color: #fffaf1;
}
.ed-hero-copy { align-self: center; padding: var(--ed-pad); }
.ed-hero-copy p, .ed-heading p, .ed-archive-head p {
  margin-top: 18px; max-width: 52ch; font-size: clamp(1.04rem, 1.35vw, 1.22rem); line-height: 1.55;
}
.ed-hero-copy p { color: #eadfce; }
.ed-hero > img { width: 100%; height: 100%; max-height: 435px; object-fit: cover; }
.ed-hero-link, .ed-link { display: inline-flex; gap: 12px; align-items: center; font-weight: 630; text-underline-offset: .28em; }
.ed-hero-link { color: #f6dbb4; margin-top: 24px; }
.ed-hero-link:hover { color: white; }
.ed-light { background: #eee7db; color: var(--deep); }
.ed-light .ed-hero-copy p, .ed-light .ed-hero-link, .ed-light .ed-hero-link:hover { color: #564432; }
.ed-link { color: var(--brown); }
.editorial .ui-icon { width: 1.06em; height: 1.06em; }
.ed-portals { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 30px); margin-top: clamp(22px, 3vw, 42px); }
.ed-portals > a { position: relative; display: block; padding: clamp(19px, 2vw, 30px); border: 1px solid var(--line); border-top: 2px solid #967348; border-radius: 3px 3px 8px 8px; background: #faf7f1; text-decoration: none; }
.ed-portals > a:hover, .ed-portals > a:focus-visible { background: #f0e8dc; border-color: #ab8965; }
.ed-portals h2 { font-size: clamp(1.45rem, 2.12vw, 2.05rem); margin-block: 20px 8px; }
.ed-portals p, .ed-profile p, .ed-report-copy > p, .ed-guide-section p, .ed-guide-notes p, .ed-heading p { color: var(--muted); line-height: 1.6; }
.ed-mark { display: inline-grid; place-items: center; width: 43px; height: 43px; background: #eadfce; color: #714820; border-radius: 50%; }
.ed-mark .ui-icon { width: 23px; height: 23px; }
.ed-go { position: absolute; right: 24px; top: 28px; color: var(--brown); }
.ed-profile { display: grid; grid-template-columns: 1.8fr 1fr; align-items: start; gap: var(--ed-gap); margin-top: var(--ed-gap); }
.ed-story section + section { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 24px; }
.ed-story p, .ed-guide-notes p { margin-top: 12px; max-width: 70ch; }
.ed-address { padding: clamp(23px,3vw,43px); background: #ede7dc; border-radius: 7px; border-top: 2px solid #a27c53; }
.ed-address h2 { margin-top: 14px; font-size: 1.62rem; }
.ed-address address { margin-block: 14px 20px; max-width: 31ch; font-style: normal; }
.ed-sources, .ed-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 23px; margin-top: 20px; }
.ed-sources a { color: var(--brown); font-weight: 600; }
.ed-heading { padding: clamp(16px,2vw,28px) 0 clamp(24px,3vw,43px); }
.ed-report {
  display: grid; grid-template-columns: .8fr 1.2fr; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #faf6ed;
}
.ed-paper {
  display: grid; place-items: center; padding: clamp(22px,3vw,48px); background-color: #584939;
  background-image: repeating-linear-gradient(135deg,transparent 0 7px,#fff1 7px 8px);
}
.ed-paper img { width: min(63%, 220px); height: auto; transform: rotate(-3deg); box-shadow: 8px 10px 0 #d2c7b4, 10px 15px 28px #201a1490; }
.ed-report-copy { padding: var(--ed-pad); align-self: center; }
.ed-report-copy .ed-date { color: #735538; font-size: .91rem; font-weight: 600; margin-bottom: 10px; }
.ed-report-copy h2 { margin-bottom: 15px; }
.ed-file-meta { list-style: none; margin: 18px 0; padding: 0; display: flex; gap: 0; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.ed-file-meta li + li { border-left: 1px solid #bfb4a3; margin-left: 12px; padding-left: 12px; }
.ed-actions .btn { gap: 12px; }
.ed-guide-section, .ed-collection { margin-top: var(--ed-gap); scroll-margin-top: 24px; }
.ed-guide-section h2, .ed-collection h2 { margin-bottom: 20px; }
.ed-choices, .ed-guide-notes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px,2.3vw,36px); }
.ed-choices article { overflow: hidden; display: grid; grid-template-columns: .64fr 1fr; border-radius: 6px; border: 1px solid var(--line); background: #f8f4ec; }
.ed-choices img { width: 100%; height: 100%; object-fit: cover; }
.ed-choices article > div { padding: clamp(16px, 1.8vw, 28px); }
.ed-choices h3 { font-size: clamp(1.25rem, 1.8vw, 1.7rem); }
.ed-choices p { margin: 10px 0 16px; }
.ed-guide-notes { margin-top: var(--ed-gap); }
.ed-guide-notes section { border-top: 2px solid #b39370; padding-top: 20px; }
.ed-guide-notes .ed-link { margin-top: 16px; }
.ed-archive-head {
  display: grid; grid-template-columns: 1.35fr .85fr; gap: var(--ed-gap); align-items: center;
  background: #eee8dd; padding: var(--ed-pad); border-radius: 8px;
}
.ed-index { display: grid; }
.ed-index a { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding-block: 10px; border-bottom: 1px solid #cfc1ad; font-weight: 600; color: #573b22; text-decoration: none; }
.ed-index a:hover { text-decoration: underline; }
.ed-index-count { display: inline-flex; gap: 10px; align-items: center; font-variant-numeric: tabular-nums; }
.ed-index-count .ui-icon { transform: rotate(90deg); }
.ed-collection .archive-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.ed-collection .archive-photo { background: #f5f0e8; }
.ed-collection .archive-caption { line-height: 1.25; min-height: 58px; }
@media (max-width: 980px) {
  .ed-choices article { grid-template-columns: 1fr; }
  .ed-choices img { height: 175px; }
  .ed-collection .archive-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .ed-hero, .ed-profile, .ed-archive-head, .ed-guide-notes, .ed-portals { grid-template-columns: 1fr; }
  .ed-hero { min-height: 0; }
  .ed-hero > img { aspect-ratio: 2.35; height: auto; }
  .ed-hero-copy { padding-block: 30px; }
  .ed-hero-link { margin-top: 17px; }
  .ed-portals > a { padding-left: 76px; }
  .ed-portals h2 { margin-top: 0; padding-right: 22px; }
  .ed-portals .ed-mark { position: absolute; top: 18px; left: 18px; }
  .ed-go { right: 18px; top: 20px; }
  .ed-report { grid-template-columns: 1fr; }
  .ed-paper img { width: 125px; }
  .ed-report-copy { padding: 24px; }
  .ed-archive-head { gap: 15px; }
  .ed-collection .archive-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .ed-collection .archive-caption { padding: 9px; font-size: .92rem; }
}
@media (max-width: 540px) {
  .ed-choices { grid-template-columns: 1fr; }
  .ed-choices article { grid-template-columns: minmax(0,.57fr) minmax(0,1fr); }
  .ed-choices img { height: 100%; }
}
