/*
Theme Name: Dr. Janet Page: Signature
Theme URI: https://www.drjanetpage.com/
Author: Dependent Media
Author URI: https://dependentmedia.com/
Description: Calm, restrained block theme for Dr. Janet Page's practice: her ink blue, warm paper, Castoro + Source Sans 3, her portraits framed like a book's author plate, her signature as the sign-off. Core blocks + Ninja Forms; no page builder.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: djp-signature
*/

/* ---------- fonts (self-hosted, latin; Castoro + Source Sans 3 from Google Fonts, OFL) ---------- */
@font-face { font-family: Castoro; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/castoro-latin-normal-400.woff2) format("woff2"); }
@font-face { font-family: Castoro; font-style: italic; font-weight: 400; font-display: swap; src: url(assets/fonts/castoro-latin-italic-400.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(assets/fonts/source-sans-3-latin-normal-400-700.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: italic; font-weight: 400 700; font-display: swap; src: url(assets/fonts/source-sans-3-latin-italic-400-700.woff2) format("woff2"); }

:root {
	--ink: #1E3F63;        /* her blue (live site #1b4a72, the cobalt of her portrait) */
	--ink-deep: #152E49;
	--text: #33383D;
	--muted: #5A6168;
	--paper: #F7F3EC;      /* warm paper bands */
	--paper-2: #EFE8DC;
	--line: #DDD5C8;
	--field: #868C93;      /* form field borders: 3.4:1 on white */
	--aqua: #7CC6CC;       /* the book cover's aqua: marks and rules only, never text */
	--aqua-soft: #DCF0F1;
	--error: #A3261D;
	--serif: Castoro, "Iowan Old Style", Georgia, serif;
	--sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
	--gut: max(20px, calc((100% - 1200px) / 2));
	--bar-h: 76px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 16px); }
body { margin: 0; background: #fff; color: var(--text); font: 400 1.125rem/1.65 var(--sans); font-kerning: normal; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; color: var(--ink); margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 1.45rem + 2.7vw, 3.375rem); line-height: 1.1; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 1.35rem + 1.4vw, 2.375rem); line-height: 1.18; }
h3 { font-size: 1.375rem; line-height: 1.3; }
h4 { font-size: 1.125rem; line-height: 1.35; }
p, ul, ol, figure, blockquote { margin: 0 0 1.1em; }
p { text-wrap: pretty; }
strong { font-weight: 650; }
cite { font-style: italic; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.djp-skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; font-weight: 600; }
.djp-skip:focus { top: 12px; }

/* the small mark from her book cover: a thin aqua ring before labels */
.djp-kicker { font: 600 0.8125rem/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); margin: 0 0 1rem; display: flex; align-items: center; gap: 0.7em; }
.djp-kicker::before { content: ""; flex: none; width: 0.85em; height: 0.85em; border: 2px solid var(--aqua); border-radius: 50%; }
.djp-lead { font-size: 1.25rem; line-height: 1.6; color: var(--text); max-width: 40em; }

/* ---------- layout ---------- */
.djp-main { display: block; overflow-x: clip; }
.djp-sec { padding: clamp(56px, 7vw, 104px) var(--gut); }
.djp-sec--tight { padding-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(32px, 4vw, 56px); }
.djp-sec--paper { background: var(--paper); }
.djp-sec--rule { border-top: 1px solid var(--line); }
.djp-sec > :last-child, .djp-prose > :last-child, .wp-block-group > :last-child { margin-bottom: 0; }
.djp-prose { max-width: 720px; }
.djp-sec.djp-prose { max-width: none; padding-inline: max(20px, calc((100% - 720px) / 2)); }
.djp-intro-h { max-width: 34em; margin-bottom: clamp(28px, 4vw, 48px); }
.djp-intro-h > p:last-child { margin-bottom: 0; }
.djp-cols { display: grid; gap: clamp(28px, 5vw, 72px); }
@media (min-width: 900px) {
	.djp-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
	.djp-cols--wide-left { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
	.djp-cols--wide-right { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
	.djp-cols--center { align-items: center; }
}
.djp-prose ul:not([class*="djp-"]), .djp-prose ol { padding-left: 1.3em; }
.djp-prose li { margin-bottom: 0.4em; }
.djp-prose h2 { margin-top: 1.6em; }
.djp-prose h3 { margin-top: 1.4em; }
.djp-prose img { height: auto; }
.djp-prose .wp-block-image, .djp-prose figure { margin: 1.8em 0; }
.djp-prose blockquote:not(.djp-quote blockquote) { margin: 1.6em 0; padding-left: 1.2em; border-left: 3px solid var(--aqua); font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--ink); }

/* ---------- photos: square corners, an italic caption over a hairline (the author-plate look) ---------- */
.djp-photo, .djp-fig { margin: 0; }
.djp-photo img, .djp-fig img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--paper-2); }
.djp-fig--tall img { aspect-ratio: 4 / 5; object-position: 50% 22%; }
.djp-fig--free img { aspect-ratio: auto; object-fit: contain; background: none; }
.djp-fig figcaption, .djp-photo figcaption, .wp-element-caption { margin: 0.7em 0 0; padding-top: 0.6em; border-top: 1px solid var(--line); font: italic 1rem/1.45 var(--serif); color: var(--muted); }
.djp-trio { display: grid; gap: clamp(16px, 2.4vw, 28px); }
@media (min-width: 700px) { .djp-trio { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.djp-trio .wp-block-image { margin: 0; }

/* ---------- buttons ---------- */
.djp-btn, .wp-block-button__link, .wp-element-button {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.55em; min-height: 50px; padding: 0.55em 1.45em;
	background: var(--ink); color: #fff; border: 1px solid var(--ink); border-radius: 3px; font: 600 1.0625rem/1.2 var(--sans);
	letter-spacing: 0.01em; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s;
}
.djp-btn:hover, .wp-block-button__link:hover { background: var(--ink-deep); border-color: var(--ink-deep); color: #fff; text-decoration: underline; text-underline-offset: 0.2em; }
.djp-btn--line, .is-style-outline .wp-block-button__link, .djp-btn-line .wp-block-button__link { background: transparent; color: var(--ink); }
.djp-btn--line:hover, .is-style-outline .wp-block-button__link:hover, .djp-btn-line .wp-block-button__link:hover { background: var(--ink); color: #fff; }
.djp-btn .djp-ico, .wp-block-button__link .djp-ico { width: 20px; height: 20px; }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px 14px; margin: 1.6em 0 0; }
.wp-block-buttons .wp-block-button { margin: 0; }
.djp-more a, a.djp-more { font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; }
.djp-more a:hover, a.djp-more:hover { border-bottom-width: 2px; }

/* ---------- icons ---------- */
.djp-ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.djp-ico--play { fill: currentColor; stroke: none; }

/* ---------- header (sticky) ---------- */
.djp-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.djp-header.is-scrolled { box-shadow: 0 6px 24px -14px rgba(21, 46, 73, .35); }
.admin-bar .djp-header { top: 32px; }
.djp-bar__in { display: flex; align-items: center; gap: 24px; min-height: var(--bar-h); padding: 10px var(--gut); }
.djp-brand { text-decoration: none; margin-right: auto; flex: none; }
.djp-mark { display: flex; flex-direction: column; line-height: 1; }
.djp-mark__name { font: 400 1.625rem/1.05 var(--serif); color: var(--ink); letter-spacing: -0.005em; }
.djp-mark__tag { font: 600 0.6875rem/1.2 var(--sans); letter-spacing: 0.17em; text-transform: uppercase; color: var(--muted); margin-top: 6px; display: flex; align-items: center; gap: 0.6em; }
.djp-mark__tag::before { content: ""; width: 0.8em; height: 0.8em; border: 1.5px solid var(--aqua); border-radius: 50%; }
.djp-nav { display: none; }
.djp-menu, .djp-sub { list-style: none; margin: 0; padding: 0; }
.djp-bar__cta { display: flex; align-items: center; gap: 18px; }
.djp-bar__tel { display: none; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--ink); white-space: nowrap; }
.djp-bar__tel:hover span { text-decoration: underline; text-underline-offset: 0.2em; }
.djp-bar__book { display: none; min-height: 46px; }
.djp-bar__menu { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 14px; background: #fff; color: var(--ink); border: 1px solid var(--field); border-radius: 3px; font: 600 1rem var(--sans); cursor: pointer; }
.djp-bar__menu .djp-ico--close, .djp-bar__menu[aria-expanded="true"] .djp-ico--menu { display: none; }
.djp-bar__menu[aria-expanded="true"] .djp-ico--close { display: block; }
@media (min-width: 768px) {
	.djp-bar__tel, .djp-bar__book { display: inline-flex; }
}
@media (min-width: 1180px) {
	.djp-nav { display: block; }
	.djp-bar__menu { display: none; }
	.djp-bar__in { gap: 28px; }
	.djp-menu--bar { display: flex; align-items: center; gap: 4px; }
	.djp-menu--bar > li { position: relative; }
	.djp-menu--bar .djp-menu__link, .djp-menu--bar .djp-menu__toggle { display: inline-flex; align-items: center; gap: 3px; min-height: 44px; padding: 0 10px; font: 600 1.0625rem/1 var(--sans); color: var(--text); text-decoration: none; background: none; border: 0; cursor: pointer; text-underline-offset: 0.45em; }
	.djp-menu--bar .djp-menu__toggle .djp-ico { width: 18px; height: 18px; transition: transform .2s; }
	.djp-menu--bar .djp-menu__link:hover, .djp-menu--bar .djp-menu__toggle:hover, .djp-menu--bar .is-in > .djp-menu__link, .djp-menu--bar .is-in > .djp-menu__toggle { color: var(--ink); text-decoration: underline 2px var(--ink); }
	.djp-menu--bar .djp-sub { display: none; position: absolute; left: 0; top: 100%; min-width: 250px; padding: 8px 0; background: #fff; border: 1px solid var(--line); box-shadow: 0 16px 34px -18px rgba(21, 46, 73, .4); }
	.djp-menu--bar .has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; } /* hover bridge */
	.djp-menu--bar .djp-sub { margin-top: 8px; }
	.djp-menu--bar .has-sub:hover > .djp-sub, .djp-menu--bar .has-sub.is-open > .djp-sub { display: block; }
	.djp-menu--bar .has-sub.is-open > .djp-menu__toggle .djp-ico { transform: rotate(180deg); }
	.djp-menu--bar .djp-sub a { display: block; padding: 9px 20px 9px 10px; margin-left: 10px; color: var(--text); text-decoration: none; font-weight: 500; }
	.djp-menu--bar .djp-sub a:hover, .djp-menu--bar .djp-sub a[aria-current] { color: var(--ink); text-decoration: underline; }
}
.djp-panel { border-top: 1px solid var(--line); padding: 8px var(--gut) 24px; max-height: calc(100vh - var(--bar-h)); overflow-y: auto; }
.djp-panel[hidden] { display: none; }
@media (min-width: 1180px) { .djp-panel { display: none !important; } }
.djp-menu--panel > li { border-bottom: 1px solid var(--line); }
.djp-menu--panel .djp-menu__link, .djp-menu--panel .djp-menu__toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 54px; padding: 0; font: 400 1.375rem var(--serif); color: var(--ink); text-decoration: none; background: none; border: 0; text-align: left; cursor: pointer; }
.djp-menu--panel .djp-sub { display: none; padding: 0 0 12px 16px; }
.djp-menu--panel .is-open > .djp-sub { display: block; }
.djp-menu--panel .is-open > .djp-menu__toggle .djp-ico { transform: rotate(180deg); }
.djp-menu--panel .djp-sub a { display: block; padding: 10px 0; font-weight: 600; text-decoration: none; }
.djp-menu--panel a[aria-current] { text-decoration: underline; }
.djp-panel__contact { display: flex; flex-direction: column; gap: 12px; margin: 22px 0 0; }
.djp-panel__contact a { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }

/* ---------- home: portrait banner beside the headline ---------- */
.djp-hero { background: var(--paper); padding: clamp(28px, 5vw, 80px) var(--gut) clamp(48px, 6vw, 96px); display: grid; gap: clamp(28px, 5vw, 80px); align-items: center; }
@media (min-width: 900px) { .djp-hero { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.djp-hero__text h1 { margin-bottom: 0.45em; }
.djp-hero__note { margin: 1.6em 0 0; font-size: 1rem; color: var(--muted); }
.djp-banner { max-width: 500px; width: 100%; margin: 0 auto; }
.djp-banner__stage { position: relative; aspect-ratio: 4 / 5; background: var(--paper-2); overflow: hidden; }
@media (max-width: 599px) { .djp-banner__stage { aspect-ratio: 1 / 1; } }
.djp-banner__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.6s ease; }
.djp-banner__slide.is-on { opacity: 1; }
.djp-banner__slide img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; display: block; }
.djp-banner__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.djp-banner__cap { margin: 0; font: italic 1.0625rem/1.35 var(--serif); color: var(--muted); }
.djp-banner__ctl { display: flex; align-items: center; gap: 2px; flex: none; }
.djp-banner__dot { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; background: none; border: 0; border-radius: 50%; cursor: pointer; }
.djp-banner__dot span { width: 11px; height: 11px; border: 1.5px solid var(--ink); border-radius: 50%; transition: background-color .3s; }
.djp-banner__dot[aria-current="true"] span { background: var(--ink); }
.djp-banner__pause { width: 38px; height: 38px; margin-left: 8px; display: grid; place-items: center; padding: 0; background: #fff; color: var(--ink); border: 1px solid var(--field); border-radius: 50%; cursor: pointer; }
.djp-banner__pause .djp-ico { width: 18px; height: 18px; }
.djp-banner__pause .djp-ico--play, .djp-banner__pause.is-paused .djp-ico--pause { display: none; }
.djp-banner__pause.is-paused .djp-ico--play { display: block; }

/* her own words, signed */
.djp-pull { margin: 0; font: italic clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem)/1.3 var(--serif); color: var(--ink); position: relative; padding-top: 0.9em; }
.djp-pull::before { content: "“"; position: absolute; top: -0.15em; left: -0.04em; font: 400 3.4em/1 var(--serif); color: var(--aqua); }
.djp-sig { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin: 1.6em 0 0; }
.djp-sig img { width: 200px; height: auto; }
.djp-sig span { font: 600 0.8125rem/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ---------- service cards ---------- */
.djp-svc { display: grid; gap: clamp(28px, 3vw, 36px) clamp(20px, 2.4vw, 32px); }
@media (min-width: 600px) { .djp-svc { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .djp-svc--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .djp-svc--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.djp-svc__card { position: relative; }
.djp-svc__card .djp-photo { margin-bottom: 18px; }
.djp-svc__h { font-size: 1.5rem; margin-bottom: 0.35em; }
.djp-svc__h a { text-decoration: none; }
.djp-svc__h a::after { content: ""; position: absolute; inset: 0; }
.djp-svc__card:hover .djp-svc__h a, .djp-svc__h a:focus-visible { text-decoration: underline; text-decoration-thickness: 1px; }
.djp-svc__h a:focus-visible { outline: none; }
.djp-svc__card:has(a:focus-visible) { outline: 3px solid var(--ink); outline-offset: 6px; }
.djp-svc__card p { margin: 0; color: var(--text); }

/* ---------- specialties: a quiet contents list ---------- */
.djp-spec { list-style: none; margin: 0; padding: 0; columns: 1; column-gap: clamp(28px, 4vw, 56px); }
@media (min-width: 640px) { .djp-spec { columns: 2; } }
@media (min-width: 1000px) { .djp-spec { columns: 3; } }
.djp-spec li { break-inside: avoid; display: flex; align-items: baseline; gap: 0.75em; padding: 0.75em 0; border-bottom: 1px solid var(--line); }
.djp-spec li::before { content: ""; flex: none; width: 0.6em; height: 0.6em; border: 1.5px solid var(--aqua); border-radius: 50%; transform: translateY(-0.05em); }

/* ---------- credentials ---------- */
.djp-creds { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px 0; }
@media (min-width: 640px) { .djp-creds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .djp-creds { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.djp-creds li { display: flex; flex-direction: column; gap: 8px; padding: 0 24px; border-left: 1px solid var(--line); }
.djp-creds strong { font: 400 clamp(2.75rem, 2rem + 2vw, 3.5rem)/1 var(--serif); color: var(--ink); }
.djp-creds span { font-size: 1.0625rem; line-height: 1.45; }
.djp-train { margin-top: clamp(32px, 4vw, 48px); display: grid; gap: 24px; align-items: center; }
@media (min-width: 800px) { .djp-train { grid-template-columns: minmax(0, 1fr) auto; } }
.djp-train p { margin: 0; }
.djp-train img { width: 150px; height: auto; display: block; }
.djp-asseen { margin: 1.4em 0 0; font-size: 1rem; color: var(--muted); }

/* ---------- quotes ---------- */
.djp-quotes { display: grid; gap: clamp(24px, 3vw, 40px); }
@media (min-width: 900px) { .djp-quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); } .djp-quotes--three { grid-template-columns: repeat(3, minmax(0, 1fr)); } .djp-quotes--one { grid-template-columns: minmax(0, 1fr); max-width: 52rem; } }
.djp-quote { margin: 0; position: relative; padding-top: 2.4rem; }
.djp-quote::before { content: "“"; position: absolute; top: -0.1rem; left: -0.05em; font: 400 4.5rem/1 var(--serif); color: var(--aqua); }
.djp-quote blockquote { margin: 0; }
.djp-quote blockquote p { margin: 0 0 0.8em; }
.djp-quote__h { font: italic 1.4rem/1.35 var(--serif); color: var(--ink); }
.djp-quotes--one .djp-quote blockquote p:not(.djp-quote__h) { font-size: 1.1875rem; }
.djp-quote figcaption { font: 600 0.875rem/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.djp-quote figcaption::before { content: "— "; }

/* ---------- the book ---------- */
.djp-cover img { display: block; width: 100%; max-width: 320px; height: auto; box-shadow: 0 22px 44px -22px rgba(21, 46, 73, .55); }
.djp-cover { margin: 0 auto; max-width: 320px; }
.djp-buy { list-style: none; margin: 1.6em 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 14px; }
.djp-reviews { display: grid; gap: clamp(24px, 3vw, 36px); }
@media (min-width: 800px) { .djp-reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.djp-review { margin: 0; padding: 22px 24px; background: #fff; border-top: 2px solid var(--aqua); }
.djp-sec--paper .djp-review { background: #fff; }
.djp-review blockquote { margin: 0 0 0.8em; font: italic 1.1875rem/1.5 var(--serif); color: var(--ink); }
.djp-review blockquote p { margin: 0; }
.djp-review figcaption { font-weight: 600; }
.djp-review figcaption span { display: block; font-weight: 400; color: var(--muted); font-size: 1rem; }
.djp-plan { list-style: none; margin: 1.2em 0; padding: 0; border-top: 1px solid var(--line); }
.djp-plan li { display: grid; grid-template-columns: 8.5em 1fr; gap: 12px; padding: 0.7em 0; border-bottom: 1px solid var(--line); }
.djp-plan li strong { font: italic 400 1.0625rem/1.5 var(--serif); color: var(--ink); }

/* ---------- articles ---------- */
.djp-posts { display: grid; gap: clamp(32px, 4vw, 48px) clamp(20px, 2.4vw, 32px); }
@media (min-width: 640px) { .djp-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .djp-posts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.djp-post { position: relative; }
.djp-post__img { margin-bottom: 16px; }
.djp-post__date { margin: 0 0 0.4em; font: 600 0.8125rem/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.djp-post__h { font-size: 1.4375rem; line-height: 1.25; margin-bottom: 0.45em; }
.djp-post__h a { text-decoration: none; }
.djp-post__h a::after { content: ""; position: absolute; inset: 0; }
.djp-post:hover .djp-post__h a { text-decoration: underline; text-decoration-thickness: 1px; }
.djp-post__h a:focus-visible { outline: none; }
.djp-post:has(a:focus-visible) { outline: 3px solid var(--ink); outline-offset: 6px; }
.djp-post__ex { margin: 0; font-size: 1.0625rem; }
.djp-pages { margin-top: clamp(40px, 5vw, 64px); }
.djp-pages ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.djp-pages a, .djp-pages span { display: inline-grid; place-items: center; min-width: 46px; min-height: 46px; padding: 0 12px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.djp-pages .current { background: var(--ink); border-color: var(--ink); color: #fff; }
.djp-pages a:hover { border-color: var(--ink); }
.djp-h1-page { font-size: 0.55em; color: var(--muted); }
.djp-head--article h1 { max-width: 22em; }
.djp-post-meta { margin: 0; font-size: 1rem; color: var(--muted); }
.djp-post-meta a { color: var(--muted); }
.djp-post-hero { margin: 0 0 2em; }
.djp-post-hero img { aspect-ratio: auto; max-height: 520px; object-fit: cover; }
.djp-prose--article .wp-block-post-content { font-size: 1.1875rem; line-height: 1.7; }
.djp-author { display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: start; margin-top: clamp(40px, 5vw, 64px); padding-top: 28px; border-top: 1px solid var(--line); font-size: 1.0625rem; }
.djp-author .djp-photo img { aspect-ratio: 1; object-position: 50% 30%; }
.djp-author p { margin: 0 0 0.6em; }
.djp-author__name { font: 400 1.375rem/1.2 var(--serif); color: var(--ink); }
.djp-author__links { display: flex; flex-wrap: wrap; gap: 6px 22px; font-weight: 600; }

/* ---------- inner page head ---------- */
.djp-head { background: var(--paper); padding-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(40px, 5vw, 72px); }
.djp-head h1 { max-width: 18em; }
.djp-head--photo { display: grid; gap: clamp(28px, 4vw, 64px); align-items: end; }
@media (min-width: 900px) { .djp-head--photo { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.djp-head--photo .wp-block-image { margin: 0; }
.djp-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 1.4rem; padding: 0; font-size: 0.9375rem; color: var(--muted); }
.djp-crumbs li + li::before { content: "/"; margin: 0 0.6em; color: var(--line); }
.djp-crumbs a { color: var(--muted); }

/* ---------- workshops, media, links ---------- */
.djp-shops { display: grid; gap: clamp(28px, 3vw, 40px) clamp(28px, 4vw, 56px); }
@media (min-width: 900px) { .djp-shops { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.djp-shop { padding-top: 20px; border-top: 2px solid var(--aqua); }
.djp-shop p { margin: 0; }
.djp-media { display: grid; gap: 28px clamp(28px, 4vw, 56px); }
@media (min-width: 800px) { .djp-media { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } }
.djp-media__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 10px; }
.djp-media__list li { padding: 6px 14px; background: #fff; border: 1px solid var(--line); font-size: 1rem; }
.djp-press { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.djp-press li { display: grid; gap: 4px 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 700px) { .djp-press li { grid-template-columns: 12em 1fr; } }
.djp-press__src { font: 600 0.875rem/1.5 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.djp-press a { display: inline-flex; align-items: baseline; gap: 8px; font-size: 1.125rem; }
.djp-press a .djp-ico { width: 16px; height: 16px; transform: translateY(2px); }
.djp-links { list-style: none; margin: 0; padding: 0; }
.djp-links--big { display: grid; gap: 0; max-width: 34rem; border-top: 1px solid var(--line); }
.djp-links--big a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font: 400 1.375rem var(--serif); text-decoration: none; }
.djp-links--big a:hover { text-decoration: underline; }
.djp-facts { list-style: none; margin: 0 0 1.2em; padding: 0; }
.djp-facts li { display: flex; gap: 12px; align-items: flex-start; padding: 0.55em 0; }
.djp-facts .djp-ico { color: var(--ink); margin-top: 3px; }

/* ---------- licence map ---------- */
.djp-map-fig { margin: 0; max-width: 460px; }
.djp-map { display: block; width: 100%; height: auto; }
.djp-map__bg path { fill: #F1ECE3; stroke: #CFC6B8; stroke-width: 1; }
.djp-sec--paper .djp-map__bg path { fill: #fff; }
.djp-map__on path { fill: var(--aqua-soft); stroke: var(--ink); stroke-width: 1.6; }
.djp-map__city { fill: var(--ink); stroke: #fff; stroke-width: 2.5; }
.djp-map__label { font: 600 17px var(--sans); fill: var(--ink-deep); paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.djp-map__state { font: italic 19px var(--serif); fill: var(--ink); }
.djp-map-fig figcaption { margin-top: 0.8em; padding-top: 0.6em; border-top: 1px solid var(--line); font: italic 1rem/1.45 var(--serif); color: var(--muted); }

/* ---------- closing call to action ---------- */
.djp-cta { display: grid; gap: 24px 48px; align-items: center; padding: clamp(32px, 4vw, 52px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .djp-cta { grid-template-columns: minmax(0, 1fr) auto; } }
.djp-cta h2 { margin-bottom: 0.3em; }
.djp-cta p { margin: 0; max-width: 38em; }
.djp-cta__btns { display: flex; flex-wrap: wrap; gap: 12px 14px; }

/* ---------- contact + form (Ninja Forms, free) ---------- */
.djp-contact { display: grid; gap: clamp(32px, 4vw, 64px); align-items: start; }
@media (min-width: 960px) { .djp-contact { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); } }
.djp-formbox h2 { margin-bottom: 0.3em; }
.djp-ccard { padding: 28px; background: var(--paper); border-top: 2px solid var(--aqua); font-size: 1.0625rem; }
.djp-ccard__big { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font: 400 1.75rem/1.1 var(--serif); }
.djp-ccard__big a { text-decoration: none; }
.djp-ccard__big a:hover { text-decoration: underline; }
.djp-ccard__list { list-style: none; margin: 0 0 18px; padding: 0; }
.djp-ccard__list li { display: flex; gap: 12px; align-items: flex-start; padding: 0.5em 0; overflow-wrap: anywhere; }
.djp-ccard__list .djp-ico, .djp-ccard__big .djp-ico { color: var(--ink); }
.djp-ccard__note { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 1rem; }

.djp-nf .nf-form-fields-required { margin: 0 0 18px; font-size: 1rem; color: var(--muted); }
.djp-nf .nf-field-container { margin: 0 0 20px; }
.djp-nf .nf-field-label label, .djp-nf .nf-field-label .nf-label-span, .djp-nf legend { display: block; margin: 0 0 6px; font-weight: 600; font-size: 1.0625rem; color: var(--text); }
.djp-nf .ninja-forms-req-symbol { color: var(--error); margin-left: 2px; }
.djp-nf .nf-field-description { margin: -2px 0 8px; font-size: 1rem; color: var(--muted); }
.djp-nf .nf-field-description p { margin: 0; }
.djp-nf input[type="text"], .djp-nf input[type="email"], .djp-nf input[type="tel"], .djp-nf select, .djp-nf textarea {
	width: 100%; min-height: 50px; padding: 11px 14px; font: 400 1.0625rem/1.4 var(--sans); color: var(--text); background: #fff;
	border: 1px solid var(--field); border-radius: 3px; appearance: none;
}
.djp-nf select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.djp-nf textarea { min-height: 140px; resize: vertical; }
.djp-nf input:focus-visible, .djp-nf select:focus-visible, .djp-nf textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.djp-nf .listradio-wrap ul, .djp-nf .listcheckbox-wrap ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.djp-nf .listradio-wrap li, .djp-nf .listcheckbox-wrap li { position: relative; margin: 0; }
.djp-nf .listradio-wrap input, .djp-nf .listcheckbox-wrap input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.djp-nf .listradio-wrap li label, .djp-nf .listcheckbox-wrap li label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 1px solid var(--field); border-radius: 3px; background: #fff; font-weight: 500; cursor: pointer; margin: 0; }
.djp-nf .listradio-wrap li label::before { content: ""; width: 14px; height: 14px; border: 1.5px solid var(--ink); border-radius: 50%; flex: none; }
.djp-nf .listradio-wrap input:checked + label, .djp-nf .listradio-wrap li label.nf-checked-label { border-color: var(--ink); background: var(--aqua-soft); }
.djp-nf .listradio-wrap input:checked + label::before, .djp-nf .listradio-wrap li label.nf-checked-label::before { background: var(--ink); box-shadow: inset 0 0 0 2.5px #fff; }
.djp-nf .listradio-wrap input:focus-visible + label { outline: 3px solid var(--ink); outline-offset: 2px; }
.djp-nf .nf-error .ninja-forms-field, .djp-nf .nf-error input, .djp-nf .nf-error textarea { border-color: var(--error); border-width: 2px; }
.djp-nf .nf-error-msg, .djp-nf .nf-error-required { color: var(--error); font-weight: 600; font-size: 1rem; margin-top: 6px; }
.djp-nf .nf-form-errors .nf-error-msg { padding: 12px 14px; background: #FBEDEB; border-left: 3px solid var(--error); margin: 0 0 16px; }
.djp-nf .submit-wrap input[type="submit"], .djp-nf input[type="button"] { min-height: 52px; padding: 0.55em 1.8em; background: var(--ink); color: #fff; border: 1px solid var(--ink); border-radius: 3px; font: 600 1.0625rem var(--sans); cursor: pointer; }
.djp-nf .submit-wrap input[type="submit"]:hover { background: var(--ink-deep); text-decoration: underline; }
.djp-nf .nf-field-element { position: relative; }
@media (min-width: 640px) {
	.djp-nf nf-fields-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 20px; }
	.djp-nf nf-field { grid-column: 1 / -1; }
	.djp-nf nf-field:has(.djp-half) { grid-column: auto; }
}
.djp-thanks { padding: clamp(24px, 3vw, 36px); background: var(--paper); border-top: 2px solid var(--aqua); }
.djp-thanks:focus { outline: none; }
.djp-thanks__check { width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 16px; border: 1.5px solid var(--ink); border-radius: 50%; color: var(--ink); }
.djp-thanks__check .djp-ico { width: 28px; height: 28px; stroke-width: 2; }
.djp-thanks ol { padding-left: 1.3em; }
.djp-confetti { position: fixed; inset: 0; z-index: 90; pointer-events: none; }

/* ---------- footer: the one dark band ---------- */
.djp-foot { background: var(--ink-deep); color: rgba(255, 255, 255, .88); font-size: 1.0625rem; }
.djp-foot a { color: #fff; text-decoration: none; }
.djp-foot a:hover { text-decoration: underline; }
.djp-foot :focus-visible { outline-color: #fff; }
.djp-foot__in { display: grid; gap: 36px 40px; padding: clamp(48px, 6vw, 80px) var(--gut) clamp(36px, 4vw, 52px); }
@media (min-width: 700px) { .djp-foot__in { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .djp-foot__in { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); } }
.djp-foot .djp-mark { margin: 0 0 14px; }
.djp-foot .djp-mark__name { color: #fff; }
.djp-foot .djp-mark__tag { color: rgba(255, 255, 255, .78); }
.djp-foot__role { margin: 0 0 16px; }
.djp-foot__facts { list-style: none; margin: 0; padding: 0; }
.djp-foot__facts li { display: flex; gap: 12px; align-items: flex-start; padding: 0.35em 0; overflow-wrap: anywhere; }
.djp-foot__facts .djp-ico { color: var(--aqua); margin-top: 2px; }
.djp-foot__h { font: 600 0.8125rem/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, .78); margin: 0 0 14px; }
.djp-foot__col ul { list-style: none; margin: 0; padding: 0; }
.djp-foot__col li { padding: 0.3em 0; }
.djp-foot__crisis { padding: 18px var(--gut); border-top: 1px solid rgba(255, 255, 255, .16); }
.djp-foot__crisis p { margin: 0; font-size: 1rem; }
.djp-foot__crisis a { text-decoration: underline; }
.djp-foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 18px var(--gut) 22px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: 0.9375rem; color: rgba(255, 255, 255, .82); }
.djp-foot__base p { margin: 0; }
.djp-credit a { text-decoration: underline; text-underline-offset: 0.18em; }

/* ---------- phones: the bottom bar with exactly Call and Book a consultation ---------- */
.djp-callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -16px rgba(21, 46, 73, .35); }
.djp-callbar a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 3px; font: 600 1.0625rem var(--sans); text-decoration: none; }
.djp-foot .djp-callbar__call { color: var(--ink); border: 1px solid var(--ink); background: #fff; }
.djp-foot .djp-callbar__book { color: #fff; background: var(--ink); border: 1px solid var(--ink); }
@media (max-width: 767px) { body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); } }
@media (min-width: 768px) { .djp-callbar { display: none; } }

/* ---------- the one quiet fade-in ---------- */
.djp-js .djp-rise { opacity: 0; transform: translateY(14px); transition: opacity .9s ease, transform .9s ease; }
.djp-js .djp-rise.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.djp-banner__slide { transition: none; }
	.djp-js .djp-rise { opacity: 1; transform: none; transition: none; }
	* { scroll-behavior: auto !important; }
}
@media print { .djp-header, .djp-callbar, .djp-banner__bar { display: none; } }

/* ---------- small pieces used by build-pages.php ---------- */
.djp-more--end { margin-top: clamp(28px, 3vw, 40px); }
.djp-review-line { font: italic 1.1875rem/1.5 var(--serif); color: var(--ink); padding-left: 1em; border-left: 2px solid var(--aqua); }
.djp-src { display: block; margin-top: 0.3em; font: 600 0.875rem/1.3 var(--sans); font-style: normal; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.djp-spec--one { columns: 1 !important; }
.djp-cols--spec .djp-spec { columns: 1; }
@media (min-width: 640px) { .djp-cols--spec .djp-spec { columns: 2; } }
.djp-trio--two { max-width: 1000px; }
@media (min-width: 700px) { .djp-trio--two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.djp-links--follow li { padding: 0.35em 0; }
.djp-cover.wp-block-image img, .djp-cover img { aspect-ratio: auto; object-fit: contain; background: none; }
.djp-head--photo .djp-cover { margin-inline: auto 0; }
.djp-head--photo .djp-fig--tall { max-width: 420px; justify-self: end; width: 100%; }
.djp-spec + .djp-more, .djp-spec ~ .djp-more { margin-top: 1.6em; }
@media (max-width: 379px) {
	.djp-bar__in { gap: 10px; }
	.djp-brand { flex: 0 1 auto; min-width: 0; }
	.djp-mark__name { font-size: 1.375rem; }
	.djp-mark__tag { font-size: 0.625rem; letter-spacing: 0.1em; }
	.djp-bar__menu { padding: 0 10px; gap: 6px; }
}
