/* Premium profiles: an editorial layer, not a replacement for the archive theme.
   Load after the existing shared styles. No fixed or sticky reading controls. */
.premium-profile {
  --profile-ink: #d5cdc3;
  --profile-muted: #c1b3a4;
}
.premium-profile .detail-top {
  align-items: flex-start;
  margin-bottom: 24px;
}
.premium-profile .detail-top > div,
.premium-profile .detail-content,
.premium-profile .detail-aside { min-width: 0; }
.premium-profile .detail-top h1 {
  font-size: clamp(40px, 5.6vw, 66px);
  line-height: 1.06;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.premium-profile .detail-top .place-share { flex-shrink: 0; margin-top: 7px; }
.premium-profile .detail-city { font-size: 13px; color: var(--profile-muted); }
.premium-profile .detail-badges > span { font-size: 11px; line-height: 1.5; }
.premium-profile .detail-badges > .access-label { margin-bottom: 0; }
.premium-profile .profile-now-line { font-size: 15px; line-height: 1.75; }
.premium-profile .obscurity-line { font-size: 13px; line-height: 1.8; color: var(--profile-muted); }

.premium-profile .profile-introduction {
  max-width: 76ch;
  margin: 0 0 25px;
  padding: 0 0 0 20px;
  border-left: 2px solid var(--gold, #b79b5b);
}
.premium-profile .profile-intro-heading {
  margin: 0 0 9px;
  color: #d0b681;
  font: 500 11px/1.6 var(--sans, sans-serif);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.premium-profile .profile-intro {
  color: #e0d7cb;
  font-size: 17px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.premium-profile .profile-section-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0 0 28px;
  padding: 9px 0;
  border-top: 1px solid #5c4338;
  border-bottom: 1px solid var(--line, #2a2630);
}
.premium-profile .profile-section-nav-label {
  color: var(--profile-muted);
  font: 500 10px/1.7 var(--sans, sans-serif);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.premium-profile .profile-section-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.premium-profile .profile-section-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  color: #dfc58d;
  font-size: 13px;
  text-decoration: underline;
  text-decoration-color: #796343;
  text-underline-offset: 5px;
}
.premium-profile .profile-section-nav a:hover { background: #261b23; color: var(--bone, #e8e1d3); }
.premium-profile .profile-introduction,
.premium-profile .history-section[id],
.premium-profile .source-list li[id] { scroll-margin-top: 30px; }
.premium-profile :is(a, button, summary):focus-visible,
.premium-profile [tabindex="-1"]:focus-visible {
  outline: 2px solid #e4c784;
  outline-offset: 4px;
}
.premium-profile .history-section[id]:target,
.premium-profile .profile-introduction:target { border-left: 2px solid var(--gold, #b79b5b); padding-left: 16px; }

/* Preserve the whole licensed frame and its natural tones. Never crop for drama. */
.premium-profile .detail-photo,
.premium-profile .licensed-photo { background: #121114; }
.premium-profile .detail-photo > a,
.premium-profile .licensed-photo > a { display: block; width: fit-content; max-width: 100%; margin-inline: auto; }
.premium-profile .detail-photo img,
.premium-profile .licensed-photo img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
  filter: none;
  transform: none;
}
.premium-profile .detail-photo figcaption,
.premium-profile .licensed-photo figcaption { padding: 10px 0 0; margin-top: 0; }
.premium-profile figcaption .photo-caption { margin: 0 0 6px; font-size: 14px; line-height: 1.85; color: var(--profile-ink); }
.premium-profile .photo-short-credit { font-size: 12px; color: var(--profile-muted); }
.premium-profile .detail-photo figcaption a,
.premium-profile .licensed-photo figcaption a { display: inline-block; padding-block: 5px; }
.premium-profile .profile-gallery { gap: 28px; }

.premium-profile > .archive-placeholder.profile-no-photo {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 0;
  margin: 0 0 30px;
  padding: 17px 20px;
  background: #151216;
  border: 1px solid #49382f;
  text-align: left;
}
.premium-profile > .profile-no-photo::before { content: none; }
.premium-profile .profile-no-photo-mark {
  flex: 0 0 auto;
  color: var(--gold, #b79b5b);
  font-size: 28px;
  line-height: 1;
}
.premium-profile .profile-no-photo p { font-size: 13px; line-height: 1.7; color: var(--profile-muted); }

.premium-profile .detail-layout { grid-template-columns: minmax(0, 1fr) 240px; gap: 42px; }
.premium-profile .history-section { margin-bottom: 30px; padding-bottom: 30px; }
.premium-profile .history-section h2 {
  font-size: clamp(30px, 3.4vw, 37px);
  line-height: 1.2;
  gap: 14px;
  margin-bottom: 20px;
}
.premium-profile .section-number { align-self: center; flex-shrink: 0; font-size: 11px; }
.premium-profile .history-section > p,
.premium-profile .sourced-history > p,
.premium-profile .research-note p {
  max-width: 72ch;
  color: var(--profile-ink);
  font-size: 16px;
  line-height: 1.95;
  margin: 0 0 17px;
  overflow-wrap: anywhere;
}
.premium-profile .history-section > p:last-child,
.premium-profile .research-note p:last-child { margin-bottom: 0; }
.premium-profile .history-section :is(p, li) a,
.premium-profile .profile-intro a { color: #dcc28f; text-decoration: underline; text-underline-offset: 3px; }
.premium-profile .sourced-history { margin-bottom: 28px; }
.premium-profile .sourced-history h3,
.premium-profile .research-note h3 { font-size: 27px; line-height: 1.3; margin-bottom: 12px; }
.premium-profile .documented-quote {
  padding: 15px 20px;
  border-left: 2px solid var(--gold, #b79b5b);
  background: #19151a;
  font-style: italic;
}
.premium-profile .claim-sources { margin-top: 8px; font-size: 13px !important; }
.premium-profile .claim-sources a { display: inline-block; min-width: 32px; padding: 7px 5px; text-align: center; }
.premium-profile .history-section.claims { padding: 23px; }
.premium-profile .claim-notice { font-size: 11px; line-height: 1.8; letter-spacing: .4px; }
.premium-profile .research-note { margin-top: 0; padding: 18px 20px; }
.premium-profile .research-note.cemetery-folklore { background: transparent; border: 0; padding: 0; }
.premium-profile .visiting-safety { font-size: 13px; line-height: 1.85; }
.premium-profile .access-label { font-size: 12px; line-height: 1.7; }
.premium-profile .map-precision-note { font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.premium-profile .history-section > ul { padding-left: 23px; font-size: 16px; line-height: 1.9; color: var(--profile-ink); }
.premium-profile .profile-timeline li { grid-template-columns: 100px minmax(0, 1fr); gap: 18px; }
.premium-profile .profile-timeline h3 { font-size: 25px; line-height: 1.3; }
.premium-profile .profile-timeline p { font-size: 16px; line-height: 1.85; overflow-wrap: anywhere; }
.premium-profile .timeline-date { font-size: 13px; overflow-wrap: anywhere; }

.premium-profile .history-section > .profile-evidence-note,
.premium-profile .history-section > .profile-source-notes { font-size: 13px; line-height: 1.85; color: var(--profile-muted); }
.premium-profile .profile-source-list li { gap: 15px; padding: 18px 0; }
.premium-profile .profile-source-list li::before { padding-top: 4px; font-size: 12px; flex-shrink: 0; }
.premium-profile .profile-source-entry { flex: 1; min-width: 0; }
.premium-profile .profile-source-list a { min-height: 44px; font-size: 15px; line-height: 1.75; overflow-wrap: anywhere; }
.premium-profile .profile-source-domain {
  display: block;
  margin-top: 5px;
  color: var(--profile-muted);
  font-size: 12px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.premium-profile .profile-source-list li:target { background: #241a20; outline: 1px solid #90774c; outline-offset: 5px; }
.premium-profile .file-meta { padding: 22px; border-top: 2px solid #937445; }
.premium-profile .file-meta > .eyebrow { font-size: 10px; line-height: 1.8; }
.premium-profile .meta-row span { font-size: 10px; line-height: 1.7; }
.premium-profile .meta-row p { font-size: 14px; line-height: 1.8; color: var(--profile-ink); }
.premium-profile .file-meta-note { font-size: 12px; line-height: 1.9; color: var(--profile-muted); }
.premium-profile .profile-evidence-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 9px; font-size: 13px; color: #dcc28f; text-decoration: underline; text-underline-offset: 4px; }
.premium-profile .image-credits summary { font-size: 13px; }
.premium-profile .image-credit-list p { font-size: 12px; }

@media (max-width: 900px) {
  .premium-profile .detail-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .premium-profile .detail-content { order: 0; }
  .premium-profile .detail-aside { order: 1; }
  .premium-profile .file-meta { max-width: 76ch; }
  .premium-profile .profile-introduction { max-width: 72ch; }
}
@media (max-width: 600px) {
  .premium-profile .detail-top { flex-wrap: wrap; gap: 15px; }
  .premium-profile .detail-top h1 { font-size: clamp(36px, 10vw, 48px); }
  .premium-profile .detail-top .place-share { margin-top: 0; }
  .premium-profile .profile-introduction { padding-left: 15px; }
  .premium-profile .profile-intro { font-size: 16px; line-height: 1.85; }
  .premium-profile .profile-section-nav { display: block; margin-bottom: 23px; padding: 12px 0 5px; }
  .premium-profile .profile-section-nav-label { display: block; margin-bottom: 5px; }
  .premium-profile .profile-section-nav ul { gap: 0 2px; }
  .premium-profile .profile-section-nav a { padding-inline: 10px; }
  .premium-profile > .archive-placeholder.profile-no-photo { margin-bottom: 25px; padding: 14px 16px; }
  .premium-profile .history-section { margin-bottom: 25px; padding-bottom: 25px; }
  .premium-profile .history-section.claims { padding: 18px; }
  .premium-profile .profile-timeline li { grid-template-columns: minmax(0, 1fr); gap: 7px; padding-left: 16px; }
  .premium-profile .profile-source-list a { font-size: 14px; }
  .premium-profile .file-meta { padding: 18px; }
  .premium-profile .detail-bottom-nav a { font-size: 13px; line-height: 1.7; }
}
