/* Editorial views only. Uses the existing theme palette and fonts. */
.dollink-journal, .dollink-story {
  --editorial-bg: #0d0d0d;
  --editorial-surface: #13131a;
  --editorial-text: #e2e8f0;
  --editorial-muted: #a0aec0;
  --editorial-line: rgba(255,255,255,.14);
  background: var(--editorial-bg);
  color: var(--editorial-text);
  padding: 3rem 0 5rem;
}
[data-theme="light"] .dollink-journal, [data-theme="light"] .dollink-story {
  --editorial-bg: #f8f9fb;
  --editorial-surface: #fff;
  --editorial-text: #181828;
  --editorial-muted: #505566;
  --editorial-line: rgba(24,24,40,.16);
}
.dollink-editorial-shell { width: min(1200px, calc(100% - 3rem)); margin-inline: auto; }
/* Override the existing global Astra resets only inside editorial views. */
#primary.dollink-journal, #primary.dollink-story { padding-top: 3rem !important; }
.dollink-journal article.dollink-journal-card { background: transparent !important; border: 0 !important; box-shadow: none !important; }
.dollink-journal article.dollink-journal-card--featured { padding-bottom: 2.5rem !important; border-bottom: 1px solid var(--editorial-line) !important; }
.dollink-editorial-eyebrow { display: block; color: var(--color-brand); font-size: .75rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.dollink-journal-heading { padding-bottom: 2rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--editorial-line); }
.dollink-journal-heading-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; }
.dollink-journal-heading h1 { margin: .5rem 0 0; color: var(--editorial-text); font-family: 'Creepster', cursive; font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 400; line-height: 1.1; }
.dollink-editorial-back { display: inline-flex; align-items: center; gap: .75rem; min-height: 44px; color: var(--editorial-muted); font-size: .8125rem; font-weight: 600; text-decoration: none; }
.dollink-editorial-back:hover { color: var(--color-brand); }
.dollink-journal-description { max-width: 65ch; margin-top: 1rem; color: var(--editorial-muted); line-height: 1.75; }
.dollink-journal-topics { display: flex; flex-wrap: wrap; gap: .5rem; margin: -1rem 0 2rem; }
.dollink-journal-topics a, .dollink-story-tags a { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1rem; border: 1px solid var(--editorial-line); border-radius: .375rem; color: var(--editorial-text); font-size: .8125rem; text-decoration: none; }
.dollink-journal-topics a:hover, .dollink-journal-topics [aria-current], .dollink-story-tags a:hover { border-color: var(--color-brand); }
.dollink-journal-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 3rem 2rem; }
.dollink-journal-card { min-width: 0; background: transparent; border: 0; padding: 0; margin: 0; }
.dollink-journal-image { display: block; aspect-ratio: 16/10; overflow: hidden; border-radius: .75rem; background: var(--editorial-surface); }
.dollink-journal-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.dollink-journal-image:hover img { transform: scale(1.025); }
.dollink-journal-image-fallback { display: grid; place-items: center; height: 100%; padding: 2rem; color: var(--color-brand); font-family: 'Creepster', cursive; font-size: 3rem; }
.dollink-journal-card-body { padding-top: 1.5rem; }
.dollink-journal-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-bottom: 1rem; color: var(--editorial-muted); font-size: .75rem; }
.dollink-journal-meta a, .dollink-story-categories a { color: var(--color-brand); text-decoration: none; font-weight: 600; }
.dollink-journal-card h2 { margin: 0 0 1rem; font-family: 'Inter', sans-serif; font-size: clamp(1.375rem, 2.2vw, 1.75rem); font-weight: 700; line-height: 1.3; letter-spacing: -.025em; text-wrap: balance; }
.dollink-journal-card h2 a { color: var(--editorial-text); text-decoration: none; }
.dollink-journal-card h2 a:hover { color: var(--color-brand); }
.dollink-journal-excerpt { margin: 0 0 1.5rem; color: var(--editorial-muted); font-size: .9375rem; line-height: 1.8; }
.dollink-journal-card-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding-top: .75rem; border-top: 1px solid var(--editorial-line); }
.dollink-journal-card-bottom > span { color: var(--editorial-muted); font-size: .75rem; }
.dollink-journal-read { display: inline-flex; align-items: center; gap: 1rem; min-height: 44px; color: var(--editorial-text); font-size: .8125rem; font-weight: 700; text-decoration: none; }
.dollink-journal-read > span { color: var(--color-brand); font-size: 1.25rem; }
.dollink-journal-read:hover { color: var(--color-brand); }
.dollink-journal-card--featured { grid-column: 1/-1; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(2rem, 4vw, 4rem); padding-bottom: 2.5rem; border-bottom: 1px solid var(--editorial-line); }
.dollink-journal-card--featured .dollink-journal-card-body { padding: 1rem 0; }
.dollink-journal-card--featured h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.dollink-journal-pagination { margin-top: 3rem; }
.dollink-journal-pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; }
.dollink-journal-pagination .page-numbers, .dollink-story-pages > a, .dollink-story-pages > span { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: .5rem; border: 1px solid var(--editorial-line); color: var(--editorial-text); text-decoration: none; }
.dollink-journal-pagination .current { border-color: var(--color-brand); }
.dollink-journal-empty { padding: 3rem 0; }
.dollink-story .dollink-editorial-shell { max-width: 1000px; }
.dollink-story-heading { max-width: 850px; margin: 2rem auto 2.5rem; }
.dollink-story-categories { display: flex; flex-wrap: wrap; gap: .75rem; font-size: .8125rem; }
.dollink-story-categories:empty { display: none; }
.dollink-story-heading h1 { margin: 1rem 0 1.5rem; color: var(--editorial-text); font-family: 'Inter', sans-serif; font-weight: 750; font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -.04em; line-height: 1.15; text-wrap: balance; overflow-wrap: anywhere; }
.dollink-story-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--editorial-line); color: var(--editorial-muted); font-size: .8125rem; line-height: 1.6; }
.dollink-story-article { margin: 0; padding: 0; background: transparent; border: 0; }
.dollink-story-cover { margin: 0 0 3rem; }
.dollink-story-cover img { display: block; width: 100%; height: auto; max-height: 600px; object-fit: cover; border-radius: .75rem; }
.dollink-story-cover figcaption { margin-top: .75rem; color: var(--editorial-muted); font-size: .8125rem; text-align: center; }
.dollink-story-content { max-width: 68ch; margin-inline: auto; color: var(--editorial-text); font-size: 1.0625rem; line-height: 1.9; overflow-wrap: anywhere; }
.dollink-story-content > * { margin-block: 0 1.5rem; }
.dollink-story-content > p:first-child { font-size: 1.1875rem; line-height: 1.8; }
.dollink-story-content :is(h2,h3,h4,h5,h6) { margin-top: 2.5rem; color: var(--editorial-text); font-family: 'Inter', sans-serif; line-height: 1.35; letter-spacing: -.02em; }
.dollink-story-content h2 { font-size: 1.75rem; }
.dollink-story-content h3 { font-size: 1.375rem; }
.dollink-story-content :is(ul,ol) { padding-left: 1.5rem; margin-left: 0; }
.dollink-story-content li { margin-bottom: .75rem; padding-left: .25rem; }
.dollink-story-content li::marker { color: var(--color-brand); }
.dollink-story-content a { color: var(--color-brand); text-decoration: underline; text-underline-offset: .2em; }
.dollink-story-content blockquote { margin-inline: 0; padding: 1rem 1.5rem; border-left: 3px solid var(--color-brand); background: var(--editorial-surface); }
.dollink-story-content :is(img,video,iframe) { max-width: 100%; }
.dollink-story-content :is(img,video) { height: auto; }
.dollink-story-content .wp-block-embed__wrapper { overflow: hidden; }
.dollink-story-content :is(pre,.wp-block-table) { overflow-x: auto; max-width: 100%; }
.dollink-story-content pre { padding: 1rem; background: var(--editorial-surface); font-size: .875rem; }
.dollink-story-content table { width: 100%; border-collapse: collapse; }
.dollink-story-content :is(th,td) { padding: .75rem; border: 1px solid var(--editorial-line); }
.dollink-story-tags { display: flex; flex-wrap: wrap; gap: .5rem; max-width: 68ch; margin: 2rem auto; }
.dollink-story-navigation { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--editorial-line); }
.dollink-story-navigation a { display: flex; flex-direction: column; gap: .75rem; padding: 1.5rem; border: 1px solid var(--editorial-line); border-radius: .5rem; text-decoration: none; }
.dollink-story-navigation a:only-child { grid-column: 1/-1; }
.dollink-story-navigation a:hover { border-color: var(--color-brand); }
.dollink-story-navigation span { color: var(--editorial-muted); font-size: .8125rem; }
.dollink-story-navigation strong { color: var(--editorial-text); font-size: 1rem; line-height: 1.5; }
:is(.dollink-journal,.dollink-story) a:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 5px; }
@media (max-width: 767px) {
  #primary.dollink-journal, #primary.dollink-story { padding-top: 2rem !important; }
  .dollink-journal, .dollink-story { padding: 2rem 0 3rem; }
  .dollink-editorial-shell { width: calc(100% - 2rem); }
  .dollink-journal-heading-row { display: block; }
  .dollink-journal-heading-row > a { margin-top: .75rem; }
  .dollink-journal-grid, .dollink-journal-card--featured, .dollink-story-navigation { grid-template-columns: minmax(0,1fr); }
  .dollink-journal-card--featured { gap: .5rem; }
  .dollink-journal-card--featured .dollink-journal-card-body { padding-top: 1rem; }
  .dollink-story-heading { margin-top: 1.5rem; }
  .dollink-story-content { font-size: 1rem; line-height: 1.85; }
  .dollink-story-content > p:first-child { font-size: 1.0625rem; }
  .dollink-story-cover { margin-bottom: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .dollink-journal-image img { transition: none; }
  .dollink-journal-image:hover img { transform: none; }
}

/* Single post: split editorial cover, reading sheet and contextual rail. */
.dollink-story--editorial {
  --editorial-inset: #0e0e14;
  --editorial-tint: rgba(255,42,133,.07);
  --editorial-shadow: 0 12px 40px rgba(0,0,0,.12);
}
[data-theme="light"] .dollink-story--editorial {
  --editorial-inset: #f4f5f8;
  --editorial-tint: rgba(224,0,108,.045);
  --editorial-shadow: 0 12px 40px rgba(24,24,40,.04);
}
.dollink-story--editorial .dollink-editorial-shell { max-width: 1280px; }
.dollink-story-topline { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.dollink-story-topline .dollink-editorial-eyebrow { font-size: .625rem; letter-spacing: .18em; text-align: right; }
.dollink-story-hero { display: grid; overflow: hidden; margin-bottom: 2.5rem; background: var(--editorial-surface); border: 1px solid var(--editorial-line); border-radius: 1rem; box-shadow: var(--editorial-shadow); }
.dollink-story-hero.has-cover { grid-template-columns: 1.15fr 1fr; }
.dollink-story-hero-copy { padding: clamp(1.5rem, 3.5vw, 3rem); border-top: 3px solid var(--color-brand); }
.dollink-story-hero .dollink-story-categories { text-transform: uppercase; font-size: .6875rem; letter-spacing: .12em; }
.dollink-story-hero h1 { margin: 1.25rem 0; color: var(--editorial-text); font-family: 'Inter', sans-serif; font-size: clamp(2rem, 3.2vw, 3rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.12; text-wrap: balance; overflow-wrap: anywhere; }
.dollink-story-deck { margin: 0 0 1.75rem; color: var(--editorial-muted); font-size: .9375rem; line-height: 1.75; }
.dollink-story-hero-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--editorial-line); font-size: .75rem; }
.dollink-story-author-mark { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; background: var(--editorial-tint); border: 1px solid var(--editorial-line); color: var(--color-brand); font-weight: 800; font-size: 1rem; }
.dollink-story-author-mark img { display: block; width: 100%; height: 100%; padding: 4px; object-fit: contain; border-radius: inherit; }
.dollink-story-hero-meta strong, .dollink-story-hero-meta time { display: block; }
.dollink-story-hero-meta strong { margin-bottom: .25rem; color: var(--editorial-text); }
.dollink-story-hero-meta time { color: var(--editorial-muted); }
.dollink-story-reading { margin-left: auto; color: var(--editorial-muted); white-space: nowrap; }
.dollink-story-hero-image { display: grid; align-content: center; min-width: 0; margin: 0; background: #0d0d12; }
.dollink-story-hero-image img { display: block; width: 100%; height: 100%; min-height: 360px; max-height: 560px; object-fit: contain; }
.dollink-story-hero-image figcaption { padding: .75rem 1.5rem; color: #a0aec0; font-size: .75rem; text-align: center; }
.dollink-story-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; align-items: start; gap: 2rem; }
.dollink-story-reading-column { min-width: 0; }
.dollink-story-paper { padding: clamp(1.5rem, 3.5vw, 3.5rem); border: 1px solid var(--editorial-line); border-radius: .75rem; background: var(--editorial-surface); box-shadow: var(--editorial-shadow); }
.dollink-story-paper .dollink-story-content { max-width: none; font-size: 1.0625rem; line-height: 1.9; }
.dollink-story-paper .dollink-story-content > p:first-child { padding-left: 1.25rem; border-left: 3px solid var(--color-brand); font-size: 1.125rem; font-weight: 500; line-height: 1.8; }
.dollink-story-content > p:has(> strong:only-child) { margin: 2.5rem 0 1.5rem; color: var(--editorial-text); font-size: 1.375rem; letter-spacing: -.025em; }
.dollink-story-content .dollink-story-step { position: relative; padding-left: 3.25rem; margin-top: 2.25rem; scroll-margin-top: 12rem; }
.dollink-story-step-number { position: absolute; inset: 0 auto auto 0; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--editorial-line); border-radius: .375rem; background: var(--editorial-tint); color: var(--color-brand); font-size: .875rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.dollink-story-content > ul, .dollink-story-content > ol { padding: 1.5rem 1.5rem 1rem 2.75rem; border-radius: .5rem; background: var(--editorial-inset); border: 1px solid var(--editorial-line); font-size: .9375rem; }
.dollink-story-content :is(h2,h3)[id] { scroll-margin-top: 12rem; }
.dollink-story-content [id]:target { outline: 1px solid var(--color-brand); outline-offset: .5rem; border-radius: .25rem; }
.dollink-story-sidebar { min-width: 0; align-self: stretch; }
.dollink-story-sidebar-sticky { position: sticky; top: 6.5rem; display: grid; gap: 1.25rem; }
.dollink-story-side-panel { padding: 1.5rem; border: 1px solid var(--editorial-line); border-radius: .75rem; background: var(--editorial-surface); }
.dollink-story-side-panel h2 { margin: 0 0 1.25rem; color: var(--editorial-text); font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 700; letter-spacing: -.02em; }
.dollink-story-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.dollink-story-toc li { margin: 0; padding: 0; border-bottom: 1px solid var(--editorial-line); }
.dollink-story-toc li:last-child { border: 0; }
.dollink-story-toc a { display: flex; align-items: baseline; gap: .75rem; min-height: 44px; padding: .75rem 0; color: var(--editorial-muted); font-size: .75rem; line-height: 1.6; text-decoration: none; }
.dollink-story-toc a > span { flex: 0 0 1.25rem; color: var(--color-brand); font-size: .625rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.dollink-story-toc a:hover { color: var(--editorial-text); }
.dollink-story-sidebar .dollink-story-toc { max-height: 360px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--editorial-line) transparent; }
.dollink-story-side-label { display: block; margin-bottom: .5rem; color: var(--editorial-muted); font-size: .6875rem; text-transform: uppercase; letter-spacing: .1em; }
.dollink-story-author-panel p { color: var(--editorial-muted); font-size: .8125rem; line-height: 1.7; }
.dollink-story-author-panel dl { margin: 0; }
.dollink-story-author-panel dl > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding: .75rem 0; border-top: 1px solid var(--editorial-line); font-size: .6875rem; }
.dollink-story-author-panel dt { color: var(--editorial-muted); font-weight: 400; }
.dollink-story-author-panel dd { margin: 0; color: var(--editorial-text); }
.dollink-story-side-panel.dollink-story-author-panel { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--editorial-tint), transparent 65%), var(--editorial-surface); }
.dollink-story-author-panel::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--color-brand), transparent); }
.dollink-story-author-identity { display: flex; align-items: center; gap: .875rem; margin-bottom: 1.25rem; }
.dollink-story-author-identity .dollink-story-author-mark { width: 52px; height: 52px; flex-basis: 52px; border-radius: .875rem; background: var(--editorial-surface); box-shadow: 0 4px 12px var(--editorial-tint); }
.dollink-story-author-identity .dollink-story-side-label { margin-bottom: .375rem; font-size: .625rem; }
.dollink-story-author-identity h2 { margin: 0; font-size: 1.125rem; }
.dollink-story-author-panel .dollink-story-author-bio { margin: 0 0 1.25rem; font-size: .8125rem; line-height: 1.8; }
.dollink-story-author-panel dl { padding: 0 .875rem; border: 1px solid var(--editorial-line); border-radius: .5rem; background: var(--editorial-inset); }
.dollink-story-author-panel dl > div:first-child { border-top: 0; }
.dollink-story-author-link { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; margin-top: .75rem; color: var(--editorial-text); font-size: .75rem; font-weight: 600; text-decoration: none; }
.dollink-story-author-link span { color: var(--color-brand); font-size: 1.125rem; }
.dollink-story-author-link:hover { color: var(--color-brand); }
.dollink-story-shop-link { display: block; padding: 1.5rem; background: var(--editorial-tint); border: 1px solid var(--editorial-line); border-radius: .75rem; text-decoration: none; }
.dollink-story-shop-link > span { display: block; margin-bottom: .75rem; color: var(--editorial-muted); font-size: .6875rem; }
.dollink-story-shop-link strong { display: flex; justify-content: space-between; color: var(--editorial-text); font-size: .9375rem; }
.dollink-story-shop-link strong > span { color: var(--color-brand); }
.dollink-story-shop-link:hover { border-color: var(--color-brand); }
.dollink-story-mobile-toc { display: none; }
.dollink-story--editorial .dollink-story-navigation { margin-top: 1.5rem; padding-top: 0; border-top: 0; }
.dollink-story--editorial .dollink-story-navigation a { background: var(--editorial-surface); }
@media (max-width: 1023px) {
  .dollink-story-layout { grid-template-columns: minmax(0,1fr); }
  .dollink-story-sidebar-sticky { position: static; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dollink-story-sidebar .dollink-story-side-panel:first-child:has(.dollink-story-toc) { display: none; }
  .dollink-story-mobile-toc { display: block; margin: 0 0 1.5rem; border: 1px solid var(--editorial-line); border-radius: .5rem; background: var(--editorial-surface); }
  .dollink-story-mobile-toc summary { display: flex; justify-content: space-between; align-items: center; min-height: 52px; padding: 1rem 1.5rem; color: var(--editorial-text); font-size: .875rem; font-weight: 600; cursor: pointer; list-style: none; }
  .dollink-story-mobile-toc summary::-webkit-details-marker { display: none; }
  .dollink-story-mobile-toc summary span { color: var(--color-brand); }
  .dollink-story-mobile-toc[open] summary span { transform: rotate(45deg); }
  .dollink-story-mobile-toc .dollink-story-toc { padding: 0 1.5rem 1rem; }
  .dollink-story-mobile-toc summary:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
}
@media (max-width: 767px) {
  .dollink-story-hero.has-cover { grid-template-columns: minmax(0,1fr); }
  .dollink-story-hero h1 { font-size: clamp(1.75rem, 7vw, 2.5rem); }
  .dollink-story-hero-image img { min-height: 0; max-height: 300px; aspect-ratio: 16/9; }
  .dollink-story-topline .dollink-editorial-eyebrow { max-width: 40%; }
  .dollink-story-hero-meta { margin-top: 1.5rem; }
  .dollink-story-reading { flex-basis: 100%; margin: .25rem 0 0; }
  .dollink-story-layout { gap: 1.5rem; }
  .dollink-story-paper { padding: 1.5rem 1.25rem; }
  .dollink-story-paper .dollink-story-content { font-size: .9375rem; }
  .dollink-story-paper .dollink-story-content > p:first-child { font-size: 1rem; }
  .dollink-story-sidebar-sticky { grid-template-columns: minmax(0,1fr); }
}
