/* Content-only design: the active theme retains its header, footer and background. */
body.dbj-journal-page main.wp-block-group { margin-block-start:0 !important; }
body.dbj-journal-page main > h1.wp-block-post-title,
body.dbj-journal-page main > .wp-block-post-title,
body.dbj-journal-page main > .wp-block-group:first-child > h1.wp-block-post-title:first-child { display:none !important; }
body.dbj-journal-page .entry-content.wp-block-post-content { margin-top:0 !important; }
body.dbj-journal-page .entry-content > .dbj-journal { width:100%; max-width:1180px !important; margin:0 auto 0 !important; }

.dbj-journal { --db-bg:#1b0d2d; --db-surface:#24122f; --db-gold:#f2c14e; --db-cream:#f7e9c8; --db-muted:#cbbcce; --db-line:#5b3e64; color:var(--db-cream); background:transparent; font-family:Manrope,Arial,sans-serif; font-size:14px; line-height:1.6; color-scheme:dark; overflow-wrap:break-word; position:relative; isolation:isolate; }
.dbj-journal::before { content:""; position:absolute; inset:0; pointer-events:none; z-index:0; background-image:radial-gradient(circle at center,rgba(242,193,78,.05) 0 1px,transparent 1.5px),linear-gradient(45deg,transparent 49.45%,rgba(242,193,78,.028) 49.7% 50.3%,transparent 50.55%),linear-gradient(-45deg,transparent 49.45%,rgba(247,233,200,.022) 49.7% 50.3%,transparent 50.55%); background-size:72px 72px; }
.dbj-journal > .db-wrap { position:relative; z-index:1; }
.dbj-journal * { box-sizing:border-box; }
.dbj-journal a { color:inherit; text-decoration:none; }
.dbj-journal button { font:inherit; }
.dbj-journal .db-wrap { max-width:1180px; margin:auto; padding:0; }
.dbj-journal .db-intro { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:24px 0 24px; }
.dbj-journal .db-eyebrow { color:var(--db-gold); font-size:11px; letter-spacing:2px; font-weight:500; text-transform:uppercase; }
.dbj-journal h1 { color:var(--db-cream); font-family:Georgia,'Times New Roman',serif; font-size:44px; font-weight:400; line-height:1.14; margin:9px 0 9px; letter-spacing:-1.1px; }
.dbj-journal .db-intro p { margin:0; color:var(--db-muted); font-size:13px; }
.dbj-journal .db-intro-stamp { width:85px; height:85px; border:1px solid var(--db-line); border-radius:50%; display:flex; justify-content:center; flex-direction:column; align-items:center; flex-shrink:0; color:var(--db-gold); text-align:center; font-family:Georgia,serif; font-size:16px; line-height:1.3; transform:rotate(8deg); margin-top:24px; }
.dbj-journal .db-intro-stamp small { font-family:Manrope,Arial,sans-serif; font-size:11px; letter-spacing:1.4px; }
.dbj-journal .db-feature { display:grid; grid-template-columns:1.15fr 1fr; align-items:center; gap:8px; padding:12px; background:linear-gradient(130deg,#301943,#24122f 65%,#271633); border:1px solid #8c693e; border-radius:20px; overflow:hidden; box-shadow:0 12px 35px rgba(12,3,20,.14); }
.dbj-journal .db-feature[hidden] { display:none; }
.dbj-journal .db-feature-visual { display:block; background:#24122f; min-width:0; border-radius:12px; overflow:hidden; }
.dbj-journal .db-feature-visual img { display:block; width:100%; height:auto; min-height:0; object-fit:contain; filter:none; }
.dbj-journal .db-feature-copy { padding:12px 18px; display:flex; flex-direction:column; align-items:flex-start; justify-content:center; }
.dbj-journal .db-feature-label { display:flex; align-items:center; gap:7px; font-size:11px; text-transform:uppercase; color:var(--db-gold); letter-spacing:1.4px; }
.dbj-journal .db-feature h2 { color:var(--db-cream); font-family:Georgia,'Times New Roman',serif; font-size:30px; font-weight:400; line-height:1.15; margin:11px 0 8px; letter-spacing:-.5px; }
.dbj-journal .db-feature-sub { font-size:14px; line-height:1.55; margin:0 0 9px; color:var(--db-cream); }
.dbj-journal .db-feature-excerpt { color:var(--db-muted); font-size:12px; line-height:1.65; margin:0 0 12px; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
.dbj-journal .db-feature-meta { color:var(--db-muted); font-size:11px; display:flex; gap:9px; flex-wrap:wrap; }
.dbj-journal .db-read-feature { display:inline-flex; align-items:center; gap:14px; border-radius:24px; color:var(--db-bg); background:var(--db-gold); font-size:12px; font-weight:500; padding:9px 16px; margin-top:18px; }
.dbj-journal .db-read-feature:hover { background:#f8d777; }
.dbj-journal .db-browse { padding:29px 0 18px; }
.dbj-journal .db-section-row { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:18px; }
.dbj-journal .db-section-heading { display:flex; align-items:center; gap:11px; }
.dbj-journal .db-section-heading::before { content:""; height:18px; width:3px; background:var(--db-gold); border-radius:2px; }
.dbj-journal .db-section-heading h2 { margin:0; font-family:Manrope,Arial,sans-serif; color:var(--db-cream); font-size:19px; font-weight:500; line-height:1.3; }
.dbj-journal .db-page-status { color:var(--db-muted); font-size:12px; white-space:nowrap; }
.dbj-journal .db-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:19px; }
.dbj-journal .db-story { border:1px solid var(--db-line); border-radius:16px; overflow:hidden; background:linear-gradient(155deg,#301b3e,#24122f 65%); min-width:0; display:flex; flex-direction:column; box-shadow:0 4px 14px rgba(12,3,20,.1); transition:border-color .25s,transform .25s,box-shadow .25s; }
.dbj-journal .db-story:focus-within { border-color:var(--db-gold); box-shadow:0 9px 28px rgba(12,3,20,.2); }
.dbj-journal .db-story-photo { display:block; aspect-ratio:16/9; overflow:hidden; background:#35233d; }
.dbj-journal .db-story-photo img { display:block; width:100%; height:100%; object-fit:cover; filter:none; transition:transform .5s cubic-bezier(.2,.65,.3,1); }
.dbj-journal .db-story-copy { padding:14px 15px 13px; display:flex; flex-direction:column; flex:1; min-width:0; }
.dbj-journal .db-story-meta { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:4px 8px; font-size:11px; margin-bottom:8px; }
.dbj-journal .db-category { color:var(--db-gold); }
.dbj-journal .db-story-meta time { color:var(--db-muted); }
.dbj-journal .db-story h3 { color:var(--db-cream); font-family:Manrope,Arial,sans-serif; margin:0 0 8px; font-size:16px; font-weight:500; line-height:1.48; min-height:71px; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; }
.dbj-journal .db-story h3 a:hover { color:var(--db-gold); }
.dbj-journal .db-story-excerpt { color:var(--db-muted); font-size:12px; line-height:1.7; margin:0 0 15px; min-height:61px; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; }
.dbj-journal .db-story-bottom { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:auto; padding-top:9px; border-top:1px solid var(--db-line); color:var(--db-muted); font-size:11px; }
.dbj-journal .db-story-bottom a { display:flex; align-items:center; gap:7px; color:var(--db-gold); font-size:12px; }
.dbj-journal .db-story-bottom :is(svg,.db-story-arrow) { transition:transform .25s; }
@media(hover:hover) and (pointer:fine) {
 .dbj-journal .db-story:hover { border-color:#d4a54a; transform:translateY(-4px); box-shadow:0 14px 32px rgba(12,3,20,.32),0 0 22px rgba(242,193,78,.045); }
 .dbj-journal .db-story:hover .db-story-photo img { transform:scale(1.035); }
 .dbj-journal .db-story:hover .db-story-bottom :is(svg,.db-story-arrow) { transform:translate(2px,-2px); }
}
.dbj-journal .db-pagination-wrap { margin-top:28px; padding-top:24px; border-top:1px solid var(--db-line); }
.dbj-journal .db-pagination { display:flex; justify-content:center; align-items:center; gap:8px; flex-wrap:wrap; }
.dbj-journal .db-pagination > :is(a,span) { min-width:44px; min-height:44px; border:1px solid var(--db-line); border-radius:12px; background:var(--db-surface); color:var(--db-cream); padding:9px 14px; display:inline-flex; align-items:center; justify-content:center; gap:8px; transition:background .18s,border-color .18s; }
.dbj-journal .db-pagination a:hover { border-color:var(--db-gold); background:#32203d; }
.dbj-journal .db-pagination [aria-current=page] { background:var(--db-gold); border-color:var(--db-gold); color:var(--db-bg); font-weight:500; }
.dbj-journal .db-pagination [aria-disabled=true] { color:#938198; border-color:#38283f; background:#1d1227; cursor:default; }
.dbj-journal .db-pagination i { width:16px; height:16px; }
.dbj-journal .db-coverage { text-align:center; color:var(--db-muted); font-size:11px; margin:14px 0 0; }
@media(min-width:1250px) { .dbj-journal .db-grid { grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media(max-width:800px) {
 .dbj-journal .db-wrap { padding:0; }
 .dbj-journal .db-feature-copy { padding:12px 13px; }
 .dbj-journal .db-feature h2 { font-size:28px; }
 .dbj-journal .db-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:570px) {
 .dbj-journal .db-wrap { padding:0; }
 .dbj-journal .db-intro { padding:16px 0 18px; justify-content:center; text-align:center; }
 .dbj-journal .db-intro > div:first-child { width:100%; }
 .dbj-journal .db-intro :is(.db-eyebrow,h1,p) { text-align:center; }
 .dbj-journal h1 { font-size:34px; }
 .dbj-journal .db-eyebrow { font-size:11px; letter-spacing:1.4px; }
 .dbj-journal .db-intro p { font-size:12px; max-width:300px; margin-inline:auto; }
 .dbj-journal .db-intro-stamp { display:none; }
 .dbj-journal .db-feature { grid-template-columns:1fr; border-radius:16px; padding:9px; gap:0; }
 .dbj-journal .db-feature-visual img { min-height:0; height:auto; }
 .dbj-journal .db-feature-copy { padding:17px 10px 10px; }
 .dbj-journal .db-feature h2 { font-size:28px; margin-top:10px; }
 .dbj-journal .db-feature-sub { font-size:13px; margin-bottom:10px; }
 .dbj-journal .db-read-feature { margin-top:13px; min-height:44px; }
 .dbj-journal .db-browse { padding-top:25px; padding-bottom:12px; }
 .dbj-journal .db-section-heading h2 { font-size:17px; }
 .dbj-journal .db-grid { grid-template-columns:1fr; gap:12px; }
 .dbj-journal .db-story { display:grid; grid-template-columns:110px minmax(0,1fr); border-radius:12px; }
 .dbj-journal .db-story-photo { aspect-ratio:auto; height:100%; min-height:147px; }
 .dbj-journal .db-story-copy { padding:11px 12px; }
 .dbj-journal .db-story-meta { font-size:11px; margin-bottom:5px; }
 .dbj-journal .db-story h3 { font-size:14px; min-height:0; margin-bottom:7px; line-height:1.45; }
 .dbj-journal .db-story-excerpt { font-size:12px; line-height:1.65; min-height:0; -webkit-line-clamp:2; margin-bottom:10px; }
 .dbj-journal .db-story-bottom { padding-top:6px; }
 .dbj-journal .db-story-bottom > span { display:none; }
 .dbj-journal .db-pagination { gap:4px; }
 .dbj-journal .db-pagination > :is(a,span) { border-radius:10px; padding:9px 12px; }
 .dbj-journal .db-page-word { display:none; }
}
@media(prefers-reduced-motion:reduce) { .dbj-journal .db-story,.dbj-journal .db-pagination > :is(a,span),.dbj-journal .db-story-photo img,.dbj-journal .db-story-bottom :is(svg,.db-story-arrow) { transition:none; } .dbj-journal .db-story:hover,.dbj-journal .db-story:hover .db-story-photo img,.dbj-journal .db-story:hover .db-story-bottom :is(svg,.db-story-arrow) { transform:none; } }
@media(pointer:coarse) {
 .dbj-journal .db-story h3 a { min-height:44px; display:block; }
 .dbj-journal .db-story-bottom a { min-height:44px; }
}

.dbj-journal .db-pagination span.db-pagination-ellipsis { border:0; background:transparent; padding-inline:0; min-width:20px; }
.dbj-journal a:focus-visible { outline:2px solid var(--db-gold); outline-offset:4px; border-radius:4px; }
.dbj-journal .db-image-fallback { display:flex; align-items:center; justify-content:center; min-height:150px; color:var(--db-gold); font-family:Georgia,serif; background:linear-gradient(135deg,#352146,#24122f); }
.dbj-journal .db-feature-visual .db-image-fallback { min-height:280px; }
.dbj-journal .db-feature img, .dbj-journal .db-story img { filter:none !important; }
.dbj-journal .db-section-row { flex-wrap:wrap; }
.dbj-journal .db-pagination > :is(a,span) { font-size:13px; line-height:1.4; }
.dbj-journal .db-read-feature { color:var(--db-bg) !important; }
@media(max-width:570px) { .dbj-journal .db-pagination > :is(a,span) { padding:9px 10px; } }

.dbj-journal .db-story-arrow { display:block; width:16px; height:16px; flex:0 0 16px; color:inherit; fill:none; stroke:currentColor; }

/* Compact space between this journal and the existing header/footer. */
body.dbj-journal-page main#wp--skip-link--target > .wp-block-group.alignfull {
  padding-top:8px !important;
  padding-bottom:12px !important;
}

/* Match the footer card's horizontal inset on mobile and tablet. */
@media (max-width:1279px) {
  body.dbj-journal-page main#wp--skip-link--target {
    --wp--style--root--padding-left:12px;
    --wp--style--root--padding-right:12px;
  }
}
