
/* Deep editorial page components: purpose-specific header, article and card layout. */
html[data-io-deep="1"]{color-scheme:dark}
html[data-io-deep="1"] body.io-deep-root{--deep-bg:#0c111b;--deep-panel:#182230;--deep-line:#90734b;--deep-ink:#fbf5eb;--deep-muted:#dfd5c5;--deep-accent:#ffcc75;background:var(--deep-bg)!important;color:var(--deep-ink)!important;overflow-x:clip;min-height:100vh}
html[data-io-deep="1"] body.io-v4-books{--deep-bg:#081632;--deep-panel:#14284a;--deep-line:#587da9;--deep-ink:#f4f7ff;--deep-muted:#d9e6fa;--deep-accent:#ffd47a}
html[data-io-deep="1"] body.io-v4-qadah{--deep-bg:#141116;--deep-panel:#29212c;--deep-line:#906c51;--deep-ink:#fff4e7;--deep-muted:#eadbcf;--deep-accent:#ffdb9f}
html[data-io-deep="1"] body.io-v4-mash{--deep-bg:#0e141b;--deep-panel:#202a30;--deep-line:#9d8644;--deep-ink:#fff9e9;--deep-muted:#e7e0cc;--deep-accent:#ffe057}
.io-deep-root .io-v4-header{position:relative;inset:auto;padding:14px 0 4px}
.io-deep-root .io-v4-header-inner{background:var(--deep-panel);border-color:var(--deep-line);backdrop-filter:none}
.io-deep-root .io-v4-header a,.io-deep-root .io-v4-header button{min-height:44px}
.io-deep-root .io-v4-menu a[aria-current=page]{background:#ffffff18;color:var(--deep-accent)}
.io-deep-root .io-v4-menu[data-open=true]{background:var(--deep-panel)}
.io-deep-root .io-deep-hero{width:min(1250px,calc(100% - 40px));margin:clamp(24px,4vw,56px) auto 28px;padding:clamp(22px,4.5vw,64px);background:var(--deep-panel);border:1px solid var(--deep-line);border-radius:24px;display:grid;gap:clamp(20px,4vw,54px);align-items:center;grid-template-columns:minmax(0,1fr);position:relative}
.io-deep-root .io-deep-hero[data-art=true]{grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr)}
.io-deep-root .io-deep-hero-copy{min-width:0}
.io-deep-root .io-deep-hero h1{font-size:clamp(2rem,4vw,4rem)!important;line-height:1.3!important;color:var(--deep-ink)!important;max-width:24ch;margin:.65rem 0 1rem!important;text-wrap:balance;overflow-wrap:anywhere}
.io-deep-root .io-deep-hero p{max-width:72ch;color:var(--deep-muted);line-height:1.95;font-size:clamp(1rem,1.35vw,1.14rem);white-space:normal;overflow-wrap:anywhere}
.io-deep-root .io-deep-label{font-size:.77rem;font-weight:800;letter-spacing:.08em;color:var(--deep-accent)}
.io-deep-root .io-deep-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:1.3rem}
.io-deep-root .io-deep-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:10px 17px;border:1px solid var(--deep-line);border-radius:11px;background:var(--deep-bg);color:var(--deep-ink);text-decoration:none;font-weight:800;text-align:center}
.io-deep-root .io-deep-actions a:first-child{background:var(--deep-accent);color:#14191f;border-color:var(--deep-accent)}
.io-deep-root .io-deep-image{display:block;width:100%;max-height:340px;object-fit:cover;border-radius:15px;border:1px solid var(--deep-line);aspect-ratio:16/10}
.io-deep-root .io-deep-episode{display:block;position:relative;min-width:0}
.io-deep-root .io-deep-episode img{aspect-ratio:16/9}
.io-deep-root .io-deep-episode span{display:block;text-align:center;background:var(--deep-bg);color:var(--deep-ink);padding:12px;border:1px solid var(--deep-line);border-radius:10px;margin-top:9px;font-weight:800}
.io-deep-root .source-preserving-journey{width:min(1150px,calc(100% - 40px));margin:0 auto 48px;padding:0!important;display:grid;grid-template-columns:minmax(0,1fr);gap:18px;color:var(--deep-ink)!important;background:none!important}
.io-deep-root .source-preserving-journey > :is(.source-introduction,.original-chapter,.native-route-map,.media-journey){width:100%;min-width:0;max-width:none;margin:0!important;padding:clamp(20px,3.5vw,42px)!important;background:var(--deep-panel)!important;box-shadow:none!important;border:1px solid var(--deep-line)!important;border-radius:18px;overflow:visible;display:block!important;min-height:0!important;color:var(--deep-ink)!important}
.io-deep-root .source-preserving-journey .source-copy{width:100%!important;max-width:none!important}
.io-deep-root .source-preserving-journey :is(h2,h3,h4){color:var(--deep-ink)!important;text-shadow:none!important;line-height:1.45!important;overflow-wrap:anywhere;margin-block:0 1rem}
.io-deep-root .source-preserving-journey :is(p,li,blockquote,dd){color:var(--deep-muted)!important;max-width:84ch;line-height:1.9;overflow-wrap:anywhere}
.io-deep-root .source-preserving-journey :is(h2,h3,h4):not(:first-child){margin-top:1.35rem}
.io-deep-root .source-preserving-journey .eyebrow{color:var(--deep-accent)!important}
.io-deep-root .source-route-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:12px!important}
.io-deep-root .source-route-grid>a{display:flex!important;align-items:center;min-height:48px;padding:12px!important;background:var(--deep-bg)!important;color:var(--deep-ink)!important;border:1px solid var(--deep-line);border-radius:11px;overflow-wrap:anywhere;text-decoration:none}
.io-deep-root .source-preserving-journey a{color:var(--deep-accent);text-underline-offset:3px}
.io-deep-root .media-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:16px}
.io-deep-root .source-preserving-journey :is(img,video,iframe){max-width:100%;height:auto;object-fit:contain}
.io-deep-root .io-native{width:min(1150px,calc(100% - 40px));margin:24px auto!important;background:var(--deep-panel)!important;border:1px solid var(--deep-line)!important;border-radius:18px}
.io-deep-root .io-native :is(h2,h3,label,legend){color:var(--deep-ink)!important}
.io-deep-root .io-native :is(.io-native-note,.io-native-status){color:var(--deep-muted)!important}
.io-deep-root .io-v4-footer{background:var(--deep-panel);border-top-color:var(--deep-line);margin-top:0}
.io-deep-root :is(a,button,input,select,textarea,summary):focus-visible{outline:3px solid var(--deep-accent)!important;outline-offset:3px}
@media(max-width:760px){.io-deep-root .io-deep-hero[data-art=true]{grid-template-columns:minmax(0,1fr)}.io-deep-root .io-deep-hero,.io-deep-root .source-preserving-journey,.io-deep-root .io-native{width:calc(100% - 24px)}.io-deep-root .io-deep-hero h1{font-size:clamp(1.8rem,7.6vw,2.7rem)!important}.io-deep-root .io-deep-image{max-height:240px}.io-deep-root .io-deep-actions a{flex:1 1 135px}}
@media(prefers-reduced-motion:reduce){html[data-io-deep="1"]{scroll-behavior:auto}}

/* Parent-path navigation with a visible focusable hit area and no fake paths. */
.io-deep-root .io-deep-breadcrumb{margin:0 0 14px;color:var(--deep-muted);font-weight:750;font-size:.84rem;line-height:1.5}
.io-deep-root .io-deep-breadcrumb ol{display:flex;flex-wrap:wrap;gap:3px 6px;align-items:center;padding:0;margin:0;list-style:none}
.io-deep-root .io-deep-breadcrumb li{display:inline-flex;align-items:center;gap:6px;min-width:0}
.io-deep-root .io-deep-breadcrumb li+li::before{content:"/";color:var(--deep-muted);padding-inline:2px}
.io-deep-root .io-deep-breadcrumb a{display:inline-flex;min-height:44px;align-items:center;color:var(--deep-accent)!important;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.io-deep-root .io-deep-breadcrumb [aria-current=page]{color:var(--deep-muted)}

/* The body is a document, not a clipped nested scroll container. */
html[data-io-deep="1"],html[data-io-deep="1"] body.io-deep-root{height:auto!important;max-height:none!important;overflow-x:clip!important;overflow-y:visible!important;touch-action:auto}
html[data-io-deep="1"] body.io-deep-root main{overflow:visible!important;min-width:0}
.io-deep-root .source-preserving-journey .original-chapter .source-copy{overflow-wrap:anywhere;min-width:0}

/* Keep the existing native spam trap in the form without expanding the document. */
.io-deep-root .io-native input.io-honeypot[aria-hidden="true"]{position:absolute!important;inset:auto!important;inset-inline-start:0!important;top:0!important;width:1px!important;height:1px!important;min-width:0!important;min-height:0!important;max-width:1px!important;max-height:1px!important;padding:0!important;margin:0!important;border:0!important;clip-path:inset(50%)!important;overflow:hidden!important;white-space:nowrap!important;pointer-events:none!important;opacity:0!important}
.io-deep-root .io-native form:has(input.io-honeypot){position:relative}

/* Inherit the verified document locale; V4's Arabic default must not override English pages. */
html[dir="ltr"][data-io-deep="1"] body.io-deep-root{direction:ltr!important;text-align:start}
html[dir="rtl"][data-io-deep="1"] body.io-deep-root{direction:rtl!important;text-align:start}
