:root {
  --ed-ink: #252722;
  --ed-muted: #5c574e;
  --ed-accent: #9e391f;
  --ed-line: #d7cbb9;
  --ed-paper: #fff;
}
.ed-page { color: var(--ed-ink); }
.ed-page [hidden] { display: none !important; }
.ed-wrap { width: min(1200px, calc(100% - 64px)); margin: 0 auto 96px; }
.ed-skip {
  position: absolute;
  z-index: 20;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  padding: .75rem 1rem;
  background: var(--ed-paper);
  color: var(--ed-accent);
  border: 2px solid;
}
.ed-skip:focus { transform: none; }
.ed-page :focus-visible { outline: 2px solid var(--ed-accent); outline-offset: 4px; }
.ed-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 26px 0 16px;
  color: var(--ed-muted);
  font-size: .88rem;
}
.ed-breadcrumb a:hover { text-decoration: underline; }
.ed-hero {
  --ed-tint: #f2decd;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--ed-line);
  border-radius: 4px;
  padding: clamp(28px, 5.4vw, 72px);
  background: var(--ed-tint);
}
.ed-hero--journal { margin-top: 36px; }
.ed-hero--regional-routes, .ed-hero--tour-reports { --ed-tint: #ebe7d9; }
.ed-hero--room-histories, .ed-hero--case-studies { --ed-tint: #f3e7dd; }
.ed-hero--comedy-genres { --ed-tint: #f1e2d3; }
.ed-hero--comedy-tour-records { --ed-tint: #e8eadc; }
.ed-hero--live-comedy-formats { --ed-tint: #f0e2df; }
.ed-hero--comedy-history { --ed-tint: #eee5d5; }
.ed-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -115px;
  bottom: -220px;
  width: min(44vw, 520px);
  aspect-ratio: 1;
  border: 1px solid #9e391f22;
  border-radius: 50%;
  box-shadow: 0 0 0 44px #9e391f16, 0 0 0 87px #9e391f10;
  pointer-events: none;
}
.ed-hero-copy { max-width: 840px; }
.ed-hero h1 {
  margin: 0;
  max-width: 23ch;
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-size: clamp(2.1rem, 4.7vw, 4.05rem);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1.08;
  overflow-wrap: anywhere;
}
.ed-hero p {
  max-width: 68ch;
  margin: 22px 0 0;
  color: var(--ed-muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.65;
}
.ed-date {
  display: block;
  margin-top: 16px;
  color: var(--ed-muted);
  font-size: .84rem;
}
.ed-article-grid {
  display: grid;
  grid-template-columns: minmax(160px, 232px) minmax(0, 760px);
  gap: clamp(26px, 5.3vw, 82px);
  align-items: start;
  margin-top: 36px;
}
.ed-toc { position: sticky; top: 88px; }
.ed-toc nav {
  border-top: 2px solid var(--ed-accent);
  padding: 17px 3px 0;
}
.ed-toc h2 { margin: 0 0 12px; font-size: .93rem; }
.ed-toc ol { margin: 0; padding-left: 1.1rem; }
.ed-toc li { padding: 0 0 11px 4px; font-size: .88rem; line-height: 1.44; }
.ed-toc a:hover { color: var(--ed-accent); text-decoration: underline; }
.ed-body { min-width: 0; font-size: 1.05rem; line-height: 1.72; }
.ed-body section { scroll-margin-top: 105px; margin: 38px 0; }
.ed-body h2, .ed-category h2 {
  margin: 0 0 15px;
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-weight: 800;
  font-size: clamp(1.32rem, 2.6vw, 2rem);
  line-height: 1.22;
  letter-spacing: -.035em;
}
.ed-body p { margin: 0 0 16px; }
.ed-body ul { margin: 12px 0 18px; padding-left: 1.2rem; }
.ed-body li { padding-left: .2rem; margin: 0 0 .45rem; }
.ed-answer {
  border-left: 4px solid var(--ed-accent);
  padding: 17px 21px;
  border-radius: 0 14px 14px 0;
  background: #f3e3d3;
  font-weight: 700;
}
.ed-citation { margin-left: .16em; font-size: .7em; line-height: 0; }
.ed-citation a { color: var(--ed-accent); text-decoration: underline; }
.ed-table {
  margin: 22px 0;
  overflow-x: auto;
  border: 1px solid var(--ed-line);
  border-radius: 14px;
  background: var(--ed-paper);
}
.ed-table table { width: 100%; min-width: 460px; border-collapse: collapse; font-size: .92rem; }
.ed-table th, .ed-table td { padding: 13px 15px; text-align: left; vertical-align: top; }
.ed-table thead { color: var(--ed-ink); background: #efe0d0; }
.ed-table tr + tr { border-top: 1px solid var(--ed-line); }
.ed-table tbody tr:nth-child(even) { background: #fbf6ee; }
.ed-sources { padding: 13px 16px; background: #fff; border: 1px solid var(--ed-line); border-radius: 12px; }
.ed-sources summary { cursor: pointer; font-weight: 700; font-size: .92rem; }
.ed-sources ol { margin: 14px 0 0; padding-left: 1.25rem; font-size: .9rem; }
.ed-sources a { color: var(--ed-accent); text-decoration: underline; overflow-wrap: anywhere; }
.ed-related > div { display: grid; gap: 8px; }
.ed-related a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--ed-line);
  border-radius: 12px;
  padding: 13px 16px;
  background: #fff;
  font-weight: 600;
}
.ed-related a:hover { border-color: var(--ed-accent); color: var(--ed-accent); }
.ed-category-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.ed-category-nav a {
  border: 1px solid var(--ed-line);
  border-radius: 30px;
  padding: 8px 13px;
  background: #fff;
  font-size: .9rem;
  font-weight: 600;
}
.ed-category-nav a:hover { color: var(--ed-accent); border-color: var(--ed-accent); }
.ed-search { margin: 26px 0 35px; }
.ed-search label { display: block; font-weight: 700; margin-bottom: 8px; }
.ed-search-controls { display: flex; gap: 8px; max-width: 620px; }
.ed-search input, .ed-search button {
  border: 1px solid var(--ed-line);
  border-radius: 12px;
  padding: 11px 13px;
  background: #fff;
  font: inherit;
  color: inherit;
}
.ed-search input { flex: 1; min-width: 0; }
.ed-search button { cursor: pointer; }
.ed-search p { margin: 9px 0 0; font-size: .9rem; color: var(--ed-muted); }
.ed-category { scroll-margin-top: 105px; margin: 38px 0 48px; }
.ed-cards {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.ed-card a {
  display: block;
  height: 100%;
  padding: 17px 18px;
  border-radius: 14px;
  border: 1px solid var(--ed-line);
  background: #fff;
}
.ed-card a:hover { border-color: var(--ed-accent); }
.ed-card h3 { margin: 0 0 8px; font-size: 1rem; line-height: 1.33; }
.ed-card p { margin: 0; color: var(--ed-muted); font-size: .88rem; line-height: 1.54; }
@media (max-width: 860px) {
  .ed-wrap { width: min(100% - 40px, 740px); }
  .ed-article-grid { grid-template-columns: 1fr; margin-top: 24px; }
  .ed-toc { position: static; }
  .ed-toc nav { padding-bottom: 0; }
  .ed-toc ol { columns: 2; column-gap: 30px; }
  .ed-toc li { break-inside: avoid; }
  .ed-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .ed-wrap { width: calc(100% - 30px); margin-bottom: 56px; }
  .ed-hero { border-radius: 4px; padding: 24px 20px; }
  .ed-hero p { margin-top: 14px; }
  .ed-hero h1 { font-size: clamp(1.82rem, 7.2vw, 2.1rem); }
  .ed-hero--journal { margin-top: 21px; }
  .ed-body { font-size: 1rem; }
  .ed-toc ol { columns: 1; }
  .ed-cards { grid-template-columns: 1fr; }
}

.ed-page .ed-breadcrumb, .ed-page .ed-category-nav, .ed-page .ed-toc nav { margin-left: 0; margin-right: 0; }
.ed-page .ed-toc nav { display: block; }
.ed-download a { color: var(--ed-accent); text-decoration: underline; font-weight: 700; }
.ed-hero h1 { font-size: clamp(2.6rem, 6.1vw, 5rem); letter-spacing: -.025em; }
.ed-card a { border-radius: 3px; }
.ed-category-nav a { border-radius: 3px; }
@media(max-width:540px){.ed-hero h1{font-size:clamp(2.25rem,9vw,3rem)}}

.ed-page .ed-category-nav, .ed-page .ed-breadcrumb { display: flex; position: static; }
.ed-atlas-filter label { display: block; font-weight: 700; }
.ed-atlas-filter select {
  background: #fff;
  color: var(--ed-ink);
  border: 1px solid var(--ed-line);
  border-radius: 8px;
  padding: .6rem;
  margin: .25rem 0 .4rem;
  font: inherit;
  max-width: 100%;
}
.ed-atlas-filter .ed-atlas-count { color: var(--ed-muted); font-size: .9rem; }
.ed-atlas a { color: var(--ed-accent); text-decoration: underline; }
.ed-atlas td:last-child { white-space: nowrap; }

@media (max-width: 760px) {
  .ed-page :is(.ed-breadcrumb, .ed-category-nav, .ed-toc nav) {
    position: static;
    background: transparent;
    border-bottom: 0;
    z-index: auto;
    justify-content: flex-start;
  }
  .ed-page :is(.ed-breadcrumb, .ed-category-nav) { padding: 0; }
  .ed-page .ed-toc nav { padding: 14px 0 0; }
}
