/* Public reading and collection refinements. Only explicitly opted-in pages. */
.root-public-refined {
  --rp-accent: #71406f;
  --rp-gutter: clamp(20px, 4vw, 48px);
}

/* Larger targets without changing the shared menu's visibility or behavior. */
.root-public-refined .bs-shared-nav__links a,
.root-public-refined .bs-shared-nav__more summary,
.root-public-refined .bs-shared-nav__credits {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.root-public-refined .bs-mobile-toggle {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
}
.root-public-refined :is(a, button, summary, audio):focus-visible {
  outline: 3px solid var(--rp-accent);
  outline-offset: 4px;
}

/* Exhibits and podcasts: bring the actual collection closer to the entrance. */
.rp-collection {
  --yellow: var(--rp-accent);
  --rp-inset: max(var(--rp-gutter), calc((100vw - 1240px) / 2));
}
.rp-collection .masthead {
  min-height: 76px;
  padding: 10px var(--rp-inset);
  gap: 12px 28px;
  flex-wrap: wrap;
  border-bottom-color: rgba(17, 17, 15, .18);
}
.rp-collection .wordmark { min-height: 44px; }
.rp-collection .nav-link,
.rp-collection .more-menu summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .08em;
  border-bottom: 0;
}
.rp-collection .nav-link { text-decoration: underline; text-underline-offset: 5px; }
.rp-collection .more-menu summary { gap: 8px; }
.rp-collection .more-panel { top: calc(100% + 8px); box-shadow: 0 16px 40px #11110f1a; }
.rp-collection .more-panel a { min-height: 44px; display: flex; align-items: center; }
.rp-collection .page-hero {
  min-height: 0;
  padding: clamp(44px, 6vw, 76px) var(--rp-inset);
  border-bottom-color: rgba(17, 17, 15, .18);
}
.rp-collection .page-hero:after {
  width: min(34vw, 420px);
  right: -12vw;
  border-width: clamp(24px, 4vw, 56px);
  opacity: .12;
}
.rp-collection .page-hero .eyebrow { margin: 0; font-size: 12px; color: var(--rp-accent); }
.rp-collection .page-hero h1 {
  max-width: 100%;
  margin-top: 20px;
  font-size: clamp(42px, 7vw, 80px);
  line-height: 1;
  letter-spacing: -.055em;
}
.rp-collection .lede {
  max-width: 48ch;
  margin-top: 24px;
  font-size: clamp(21px, 2.2vw, 28px);
  line-height: 1.4;
}
.rp-collection .collection { padding: clamp(24px, 4vw, 48px) var(--rp-inset); }
.rp-collection .grid { max-width: 1240px; gap: 24px; }
.rp-collection .item { min-height: 0; border-radius: 14px; }
.rp-collection .item-copy { min-width: 0; padding: clamp(24px, 2.8vw, 34px); }
.rp-collection .item-type { margin-bottom: 16px; font-size: 12px; color: var(--rp-accent); }
.rp-collection .item h2 {
  max-width: 20ch;
  font-size: clamp(30px, 3.1vw, 44px);
  line-height: 1.08;
  letter-spacing: -.04em;
  overflow-wrap: break-word;
}
.rp-collection .item p { margin-top: 18px; font-size: 20px; line-height: 1.45; }
.rp-collection .item-action { padding-top: 28px; font-size: 12px; line-height: 1.5; }
.rp-collection .podcast { grid-template-columns: minmax(160px, .23fr) minmax(0, 1fr); }
.rp-collection .podcast-art {
  min-height: 0;
  padding: 28px;
  gap: 32px;
  color: #fff;
  border-right: 0;
}
.rp-collection .podcast-number { font-size: 12px; line-height: 1.5; }
.rp-collection .podcast-mark { font-size: clamp(80px, 9vw, 120px); line-height: .9; letter-spacing: -.08em; }
.rp-collection .podcast h2 { max-width: 26ch; font-size: clamp(28px, 3vw, 40px); }
.rp-collection .podcast audio { display: block; max-width: 100%; margin-top: 24px; }
.rp-collection .duration { font-size: 12px !important; line-height: 1.5 !important; letter-spacing: .06em !important; }
.rp-collection .footer {
  min-height: 0;
  padding: clamp(44px, 6vw, 76px) var(--rp-inset);
  gap: 44px;
  border-top: 1px solid #ffffff26;
}
.rp-collection .footer-statement { max-width: 18ch; font-size: clamp(36px, 5vw, 60px); line-height: 1.02; letter-spacing: -.045em; }
.rp-collection .footer-small,
.rp-collection .footer-links { font-size: 12px; line-height: 1.7; letter-spacing: .06em; }
.rp-collection .footer-links { gap: 4px 24px; }
.rp-collection .footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.rp-collection .footer a:focus-visible { outline-color: #e0b7dc; }

/* Four prose essays: readable from the first paint, including without JS. */
.rp-essay { --ink-faint: #696155; font-weight: 400; }
.rp-essay .masthead { padding-top: 28px; gap: 16px; flex-wrap: wrap; }
.rp-essay .hero { padding-top: clamp(36px, 5vw, 56px); }
.rp-essay .title { margin-top: 36px; line-height: 1.1; }
.rp-essay :is(.eyebrow, .no, .mark span, .colophon .more) { font-size: 12px; line-height: 1.5; letter-spacing: .12em; }
.rp-essay :is(.no, .pile-cap b) { color: var(--rp-accent); }
.rp-essay .count { color: #826435; }
.rp-essay .byline { line-height: 1.5; }
.rp-essay .essay-nav-extra a { display: inline-flex; min-height: 44px; align-items: center; letter-spacing: .08em; }
.rp-essay .reveal { opacity: 1; transform: none; transition: none; }
.rp-essay .engine-foot,
.rp-essay .composer textarea::placeholder { color: #b5afa4; }
.rp-essay .engine-eyebrow { font-size: 12px; line-height: 1.5; letter-spacing: .12em; }
.rp-essay .composer { gap: 12px; padding: 4px; border-bottom-color: #807666; border-radius: 4px; }
.rp-essay .composer:focus-within { outline: 3px solid #d9b8d6; outline-offset: 5px; }
.rp-essay .composer textarea { min-width: 0; font-weight: 400; }
.rp-essay .send { min-height: 44px; padding: 12px; font-size: 13px; letter-spacing: .1em; }
.rp-essay .engine :is(a, button):focus-visible { outline-color: #d9b8d6; }

/* Constitution: a deliberate opening rather than a small title in a full screen. */
html[data-institution="build"] .rp-constitution .opening { min-height: 0; padding: clamp(44px, 7vw, 88px) 0; }
html[data-institution="build"] .rp-constitution .opening .institution { margin-bottom: 28px; }
html[data-institution="build"] .rp-constitution .opening h1 {
  max-width: 100%;
  font-size: clamp(31px, 8.4vw, 94px);
  line-height: 1.02;
  letter-spacing: -.055em;
  overflow-wrap: normal;
  word-break: normal;
}
html[data-institution="build"] .rp-constitution .opening .version-date { margin-top: 28px; font-size: 12px; line-height: 1.5; }
html[data-institution="build"] .rp-constitution .opening-line { margin-top: 24px; font-size: clamp(24px, 3vw, 34px); line-height: 1.35; }
html[data-institution="build"] .rp-constitution .begin-link { min-height: 44px; margin-top: 28px; font-size: 12px; line-height: 1.4; }
.rp-constitution .site-header > a,
.rp-constitution .site-more summary { min-height: 44px; display: inline-flex; align-items: center; }
.rp-constitution .opening a:focus-visible { outline-color: #e0b7dc; }

/* Archive status styling: retain all authentication and account states. */
html[data-institution="record"] .rp-archive .member-message[data-kind="error"] { color: #922d3c; }
html[data-institution="record"] .rp-archive .member-input:focus-visible { outline: 3px solid var(--rp-accent); outline-offset: 3px; box-shadow: none; }

/* Existing Listen and Gallery actions keep their hierarchy and handlers. */
.rp-listen .ep-actions { gap: 8px 12px; }
.rp-listen .ep-share,
.rp-listen .ep-essay { display: inline-flex; min-height: 44px; align-items: center; padding: 8px 12px; line-height: 1.45; }
.rp-listen .ep-share { border: 1px solid currentColor; border-radius: 4px; }
.rp-gallery .win-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.rp-gallery .win-cta > .btn { min-height: 48px; margin-left: 0 !important; }

@media (max-width: 760px) {
  .rp-collection .masthead { padding-block: 8px; gap: 0 20px; }
  .rp-collection .masthead-nav { gap: 20px; }
  .rp-collection .nav-link { display: inline-flex; }
  .rp-collection .page-hero:after { width: 65vw; right: -40vw; }
  .rp-collection .grid { grid-template-columns: 1fr; gap: 20px; }
  .rp-collection .item h2 { font-size: clamp(30px, 5.6vw, 40px); }
  .rp-collection .podcast { display: grid; grid-template-columns: 1fr; }
  .rp-collection .podcast-art { min-height: 0; padding: 20px 24px; flex-direction: row; align-items: center; gap: 20px; border-bottom: 0; }
  .rp-collection .podcast-mark { font-size: 64px; }
  .rp-collection .podcast h2 { font-size: clamp(28px, 5.4vw, 38px); }
  .rp-collection .footer-links { margin-top: 20px; }
}
@media (max-width: 380px) {
  .rp-collection .masthead-nav { width: 100%; justify-content: space-between; }
  .rp-collection .page-hero h1 { font-size: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .rp-essay .grain { animation: none; }
}
/* Give the collections the same quiet editorial surface as Essays. */
.rp-collection {background:#faf8f3;}
.rp-collection .masthead {background:rgba(250,248,243,.97);}
.rp-collection .page-hero {padding-block:48px;}
.rp-collection .page-hero:after {display:none;}
.rp-collection .page-hero h1 {font-size:clamp(42px,5vw,68px);font-weight:600;}
.rp-collection .lede {font-size:clamp(20px,1.8vw,24px);max-width:58ch;}
.rp-collection .collection {background:transparent;}
.rp-collection .item {background:#fffdf9;border:1px solid #e2dbe2;border-radius:10px;}
.rp-collection .footer {background:#f0edf0;color:#211b22;border-top:1px solid #ddd6de;}
.rp-collection .footer-statement {max-width:none;font-size:clamp(28px,3vw,40px);line-height:1.15;}
.rp-collection .footer a:focus-visible {outline-color:var(--rp-accent);}
/* Resolve the archive's inherited light-page / dark-card palette collision. */
html[data-institution="record"] .rp-archive {
  --mds-paper:#faf8f3;--mds-panel:#fffdf9;--mds-panel-sunk:#f7f3f6;
  --mds-ink:#241c27;--mds-ink-soft:#665e69;--mds-line:#dcd4df;
  --mds-sage-panel:#edf3e8;--mds-sage-deep:#426336;
  --mds-amber-panel:#f7eddc;--mds-amber-deep:#825e22;
  --mds-grey-panel:#eeebef;--mds-grey-deep:#625a67;
  --mds-violet-panel:#eee7f2;--mds-violet-deep:#654272;
  --mds-shadow-soft:0 12px 40px #3024370a;
  --mds-shadow-raised:0 6px 24px #3024370d;
  color-scheme:light;background:var(--mds-paper);color:var(--mds-ink);
}
.rp-archive .signin-shell {max-width:600px;}
.rp-archive .signin-brand {font-family:var(--mds-font-sans);color:var(--mds-ink);}
html[data-institution="record"] .rp-archive .mds-title {color:var(--mds-ink);font-family:var(--mds-font-sans);line-height:1.15;}
.rp-archive .mds-btn--primary {background:#714177;color:#fff;border-color:#714177;box-shadow:none;}
.rp-archive .mds-btn--primary:hover {background:#5b3261;}
