/* WordPress integration and core block styles (03-blocks.md section C).
   Component rules live in drjk.css; only the mapping onto core's markup belongs here. */

/* Template-part wrappers must not constrain the sticky header. */
.drjk-part{ display:contents; }
.wp-site-blocks > *, main.wp-block-group > *{ margin-block:0; }
html body{ --wp--style--root--padding-left:var(--gutter); --wp--style--root--padding-right:var(--gutter); }

/* Core's skip link is the first element in <body>. */
.skip-link:focus{ background:var(--cream); color:var(--green-900); padding:12px 18px; z-index:100; }

/* Buttons */
.wp-block-button .wp-block-button__link{
	display:inline-flex; align-items:center; justify-content:center; gap:10px;
	font-family:var(--sans); font-size:14px; font-weight:600; letter-spacing:.04em; text-transform:uppercase;
	padding:15px 26px; border-radius:var(--radius); border:none; cursor:pointer; transition:all .25s ease; white-space:nowrap;
	background:var(--green-800); color:var(--cream); box-shadow:var(--shadow-sm);
}
.wp-block-button .wp-block-button__link:hover{ background:var(--green-900); color:var(--cream); transform:translateY(-1px); box-shadow:var(--shadow); }
.wp-block-button.is-style-gold .wp-block-button__link{ background:var(--gold-600); color:var(--green-900); box-shadow:none; }
.wp-block-button.is-style-gold .wp-block-button__link:hover{ background:var(--gold-500); color:var(--green-900); box-shadow:var(--shadow); }
.wp-block-button.is-style-outline .wp-block-button__link{ background:transparent; color:var(--green-800); box-shadow:inset 0 0 0 1px var(--hair); }
.wp-block-button.is-style-outline .wp-block-button__link:hover{ background:transparent; color:var(--green-800); box-shadow:inset 0 0 0 1px var(--green-700); transform:none; }
.wp-block-button.is-style-ghost .wp-block-button__link{ background:transparent; color:var(--green-800); padding:15px 10px; box-shadow:none; }
.wp-block-button.is-style-ghost .wp-block-button__link:hover{ background:transparent; color:var(--green-800); transform:none; box-shadow:none; }
.wp-block-button.is-style-ghost .wp-block-button__link::after{ content:"→"; transition:transform .25s ease; }
.wp-block-button.is-style-ghost .wp-block-button__link:hover::after{ transform:translateX(3px); }
.on-dark .wp-block-button.is-style-ghost .wp-block-button__link{ color:var(--gold-500); }
.wp-block-buttons{ gap:12px; }
@media (max-width:640px){ .wp-block-buttons.is-stacked-mobile{ flex-direction:column; align-items:stretch; } .wp-block-buttons.is-stacked-mobile .wp-block-button__link{ width:100%; } }

/* Groups */
.wp-block-group.is-style-section{ padding:var(--section) 0; }
.wp-block-group.is-style-section-flush-top{ padding:0 0 var(--section); }
.wp-block-group.is-style-callout{ background:var(--green-50); border:1px solid var(--hair); border-radius:var(--radius); padding:22px 24px; font-size:16px; }
.wp-block-group.is-style-key-points{ background:var(--paper); border:1px solid var(--hair); border-radius:var(--radius); padding:24px 26px; }
.wp-block-group.is-style-key-points h3{ margin:0 0 14px; font-family:var(--sans); font-size:11px; letter-spacing:.22em; text-transform:uppercase; color:var(--green-700); font-weight:600; }
.wp-block-group.is-style-key-points ul{ margin:0; }
.wp-block-group.is-style-legal{ font-size:16px; }
.wp-block-group.is-style-legal h2{ font-size:24px; }

/* Lists: core list items have no inline SVG, so the icons are masks. */
.wp-block-list.is-style-checklist{ list-style:none; padding:0; margin:0 0 8px; display:flex; flex-direction:column; gap:10px; }
.wp-block-list.is-style-checklist li{ position:relative; padding-left:28px; font-size:14.5px; color:var(--ink-2); }
.wp-block-list.is-style-checklist li::before{ content:""; position:absolute; left:0; top:3px; width:16px; height:16px; background:var(--green-700); -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat; }
.on-dark .wp-block-list.is-style-checklist li{ color:var(--on-dark); }
.on-dark .wp-block-list.is-style-checklist li::before{ background:var(--gold-500); }
.wp-block-list.is-style-credentials{ list-style:none; padding:28px 0 0; margin:36px 0 0; display:grid; grid-template-columns:1fr 1fr; gap:14px 28px; border-top:1px solid var(--hair); }
.wp-block-list.is-style-credentials li{ position:relative; padding-left:30px; font-size:14.5px; color:var(--ink-2); line-height:1.45; }
.wp-block-list.is-style-credentials li::before{ content:""; position:absolute; left:0; top:2px; width:18px; height:18px; background:var(--gold-700); -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='6'/%3E%3Cpath d='M15.5 12.9 17 22l-5-3-5 3 1.5-9.1'/%3E%3C/svg%3E") center/contain no-repeat; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='6'/%3E%3Cpath d='M15.5 12.9 17 22l-5-3-5 3 1.5-9.1'/%3E%3C/svg%3E") center/contain no-repeat; }
.wp-block-list.is-style-credentials li strong{ color:var(--green-900); font-weight:600; display:block; }
@media (max-width:640px){ .wp-block-list.is-style-credentials{ grid-template-columns:1fr; } }

/* Paragraphs */
p.is-style-eyebrow{ font-size:12px; letter-spacing:.24em; text-transform:uppercase; color:var(--green-700); font-weight:600; display:inline-flex; align-items:center; gap:10px; }
p.is-style-eyebrow::before{ content:""; width:24px; height:1px; background:currentColor; }
.on-dark p.is-style-eyebrow{ color:var(--gold-500); }
p.is-style-lede{ font-size:18px; line-height:1.55; color:var(--ink-2); margin:0; text-wrap:pretty; }
p.is-style-drop-cap::first-letter{ font-family:var(--serif); float:left; font-size:68px; line-height:.85; padding:6px 12px 0 0; color:var(--green-800); }

/* Headings: <em> accent applies to every heading, per 02-design-system.md. */
:is(h1,h2,h3,h4,h5,h6).wp-block-heading{ text-wrap:balance; }
:is(h1,h2,h3,h4,h5,h6) em{ font-style:italic; font-weight:400; color:var(--gold-700); }
.on-dark :is(h1,h2,h3,h4,h5,h6) em{ color:var(--gold-500); }
p{ text-wrap:pretty; }

/* Transcript */
.wp-block-details.is-style-transcript{ border:1px solid var(--hair); border-radius:var(--radius); margin-top:8px; }
.wp-block-details.is-style-transcript summary{ cursor:pointer; list-style:none; padding:18px 22px; display:flex; justify-content:space-between; align-items:center; font-weight:600; color:var(--green-900); }
.wp-block-details.is-style-transcript summary::-webkit-details-marker{ display:none; }
.wp-block-details.is-style-transcript > :not(summary){ padding-inline:22px; }

/* Photo card */
.wp-block-image.is-style-photo-card img{ border-radius:var(--radius-lg); aspect-ratio:3/2; object-fit:cover; width:100%; }

/* Breadcrumbs over the image page header (the reference only colors them for light backgrounds). */
.b-page-header.image .breadcrumbs,.on-dark .breadcrumbs{ color:var(--on-dark-2); }
.b-page-header.image .breadcrumbs a:hover,.on-dark .breadcrumbs a:hover{ color:var(--cream); }

/* Pagination (.pagination in the reference CSS) */
.wp-block-query-pagination{ gap:8px; justify-content:center; }

@media (prefers-reduced-motion:reduce){ *,*::before,*::after{ animation:none!important; transition:none!important; } }

/* Layout gaps: the reference CSS sets its own spacing, so core's flow gap must not add to it. */
.container.wp-block-group > *, .wp-block-post-content:not(.prose) > *, .wp-block-group.is-style-section > *, .wp-block-group.is-style-section-flush-top > *{ margin-block-start:0; }

/* drjk/hero: only the primary button goes full width on mobile; stats can be switched off in the editor. */
@media (max-width:640px){ .b-hero .wp-block-button:not(.is-style-ghost),.b-hero .wp-block-button:not(.is-style-ghost) .wp-block-button__link{ width:100%; } }
.b-hero.hide-stats .b-stats{ display:none; }
/* Archive and single templates: blocks composed directly in the template, no page body. */
main.wp-block-group > *, main.wp-block-group > article.wp-block-group > *{ margin-block-start:0; }
.post-layout.wp-block-group > *, .post-aside.wp-block-group > *, .aside-card.wp-block-group > *, .post-hero .row.wp-block-group > *, .video-hero .row.wp-block-group > *{ margin-block-start:0; }
.post-hero .container > .h-1{ margin-block-start:18px; }
.video-hero .container > .h-1{ margin-block-start:16px; }
.video-hero .container > .row{ margin-block-start:28px; }
.container.post-video-body{ padding-top:64px; }
.post-related.wp-block-group{ margin-block-start:var(--section); background:var(--paper); border-top:1px solid var(--hair); }
.wp-block-group.archive-grid-section{ padding:72px 0 var(--section); }
.archive-promo .b-promo-banner{ margin-top:72px; }
.b-status.archive-empty .code{ display:none; }
.prose h2[id]{ scroll-margin-top:110px; }
/* Podcasts, shop and contact pages: gaps in the reference CSS. */
.episode h3 a{ color:inherit; }
.episode .player{ grid-column:1 / -1; }
.episode .player iframe{ display:block; width:100%; border:0; border-radius:var(--radius); }
@media (max-width:640px){ .episode{ position:relative; } .episode h3 a::after{ content:""; position:absolute; inset:0; } }
.b-embed-player.is-narrow{ max-width:880px; margin-inline:auto; }
.b-embed-player .embed-frame{ border-radius:var(--radius); overflow:hidden; }
.b-embed-player iframe{ display:block; width:100%; height:100%; border:0; }
.product .by{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
@media (min-width:961px){ .b-product-grid.cols-3{ grid-template-columns:repeat(3,1fr); } .b-product-grid.cols-2{ grid-template-columns:repeat(2,1fr); } }
.info-list .wp-block-image{ margin:0; }
p.disclaimer.is-centered{ text-align:center; border:0; }
/* Page layouts (T09/T10): the 920px column and flush spacing for block-built containers. */
.container-narrow.wp-block-group > *{ margin-block-start:0; }
.container-narrow.is-w-920{ max-width:920px; }
.b-optin-hero .mock-guide img{ width:180px; height:auto; border-radius:4px 10px 10px 4px; box-shadow:var(--shadow-lg); }
.form-card .form-fine a{ text-decoration:underline; }

/* theme.json heading styles must not override headings the reference leaves at browser defaults. */
.steps .s h3{ font-family:var(--sans); font-weight:700; letter-spacing:normal; }

/* Product covers: the image's width/height attributes would otherwise stretch the 3:4 box. */
.product .cover{ min-height:0; }
.product .cover img{ width:100%; height:100%; max-width:100%; object-fit:contain; box-shadow:none; filter:drop-shadow(0 10px 12px rgba(25,50,40,.18)); }

/* theme.json's heading color would otherwise win over the panel's light text. */
.aside-card.dark h4{ color:var(--cream); }

/* Accessibility fixes found by axe; these override values in the reference CSS. */
.footer-bar a{ text-decoration:underline; text-underline-offset:3px; }
.b-logo-marquee .logo-pill{ opacity:1; color:var(--ink-2); }
.chip .count{ opacity:1; color:var(--ink-2); }
.chip[aria-current="true"] .count{ color:var(--cream); }
.b-status .code{ color:var(--gold-700); }

/* drjk/audio-player and podcast artwork (07-podcast-sync.md). Square show art is shown whole. */
.b-audio-player{ display:grid; grid-template-columns:96px minmax(0,1fr); gap:20px; align-items:center; background:var(--cream); border:1px solid var(--hair); border-radius:var(--radius-lg); padding:18px; box-shadow:var(--shadow); color:var(--ink); }
.b-audio-player .art img{ width:96px; height:96px; object-fit:cover; border-radius:var(--radius); }
.b-audio-player .kicker{ font-size:11.5px; letter-spacing:.12em; text-transform:uppercase; font-weight:600; color:var(--green-800); margin-bottom:8px; }
.b-audio-player audio{ display:block; width:100%; height:44px; accent-color:var(--green-800); border-radius:999px; }
.b-audio-player audio::-webkit-media-controls-panel{ background:var(--paper); }
.b-audio-player audio::-webkit-media-controls-play-button{ background-color:var(--green-800); border-radius:50%; }
.b-audio-player .foot{ display:flex; justify-content:space-between; gap:16px; margin-top:8px; font-size:13px; color:var(--ink-2); }
.b-audio-player .foot a{ color:var(--green-800); font-weight:600; text-decoration:underline; text-underline-offset:3px; }
.video-hero .b-audio-player{ margin-bottom:4px; }
.b-podcast-feature .b-audio-player{ align-self:center; }
.video-frame.is-audio{ background:var(--green-900); }
.video-frame.is-audio::before{ display:none; }
.video-frame.is-audio img{ object-fit:contain; }
.post-card.is-podcast .thumb{ background:var(--green-900); }
.post-card.is-podcast .thumb img{ object-fit:contain; }
.b-episode-list.is-podcasts .thumb{ background:var(--green-900); }
.b-episode-list.is-podcasts .thumb img{ object-fit:contain; }
@media (max-width:640px){ .b-audio-player{ grid-template-columns:1fr; padding:14px; } .b-audio-player .art{ display:none; } }
/* Hover bridge: covers the 6px gap above the dropdown so the pointer can reach it without leaving .has-sub. */
.main-nav .sub::before{ content:""; position:absolute; left:0; right:0; bottom:100%; height:8px; }
/* Marquee logos: per-logo height from drjk/logo-item (optical sizing), 80% on small screens. */
.logo-pill img{ height:var(--logo-h,36px); width:auto; }
@media (max-width:640px){ .logo-pill img{ height:calc(var(--logo-h,36px) * .8); } }
