/* =====================================================================
   PAEDZ v2 0.7 — reading experience (news, long-form articles, reviews)
   One shell (≈1120px) for header, cover and body; reading column + side column;
   fluid text (no paragraph boxes); simple source links; related band.
   Loaded after cards.css. Remove this file to return to 0.6 article visuals.
   ===================================================================== */
:root { --shell: 1120px; --side: 300px; }

/* ---------- 1. Shell + subtle page depth (not flat black) ---------- */
.art-shell { max-width: var(--shell); margin-inline: auto; }
.read-main { background: linear-gradient(180deg, #0c0e10 0, #070809 380px, #000 760px); }
.single-review .rv-head, .single-review .facts-line, .rv-body .read-grid { max-width: var(--shell); margin-inline: auto; }

/* ---------- 2. Article header ---------- */
.art-head { padding-block: 40px 22px; }
.art-head .art-shell > :not(.art-byline-row) { max-width: 860px; }
.art-kicker { margin-bottom: 12px; }
.art-title { margin: 0 0 12px; font-family: var(--f-head); font-weight: 900; font-size: clamp(1.6rem, 1.15rem + 1.25vw, 2.3rem); line-height: 1.38; color: var(--d-head); text-wrap: balance; }
.is-long .art-title { font-size: clamp(1.8rem, 1.25rem + 1.6vw, 2.7rem); line-height: 1.32; }
.art-head .dek { margin: 4px 0 0; font-size: clamp(1.02rem, .98rem + .2vw, 1.15rem); line-height: 1.85; color: var(--d-text); max-width: 68ch; }
.art-byline-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--c-border); }
.art-byline-row .byline { margin: 0; }
.is-long .art-head { padding-block: 52px 26px; }

/* share controls */
.share { display: flex; align-items: center; gap: 6px; }
.share-b { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: var(--c-surface); color: var(--d-text); cursor: pointer; transition: border-color .15s, color .15s; }
.share-b[hidden] { display: none; }
.share-b:hover { color: #fff; border-color: var(--d-control); }
.share-b .icon { width: 17px; height: 17px; }
.share-b .bicon { fill: currentColor; stroke: none; }
.share-ok { position: absolute; inset: 0; display: none; place-items: center; color: var(--green); }
.share-b.is-ok > .icon { visibility: hidden; }
.share-b.is-ok .share-ok { display: grid; }

/* ---------- 3. Cover ---------- */
.art-cover { margin: 0 0 32px; }
.art-cover .media, .art-cover-pae figure { position: relative; display: block; margin: 0; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 1px solid var(--c-border); background: #0d0f10; }
.art-cover .media img, .art-cover-pae img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art-cover figcaption { margin-top: 10px; font-size: .875rem; color: var(--d-meta); line-height: 1.7; }

/* ---------- 4. Body layout: reading column + side column ---------- */
.art-layout { padding-bottom: 8px; }
.art-layout.has-side { display: grid; grid-template-columns: minmax(0, 1fr) var(--side); gap: 56px; align-items: start; }
.art-main { min-width: 0; max-width: 740px; }
.art-layout:not(.has-side) .art-main { margin-inline: auto; }
.art-side { position: sticky; top: calc(var(--head-h) + 24px); min-width: 0; }
.admin-bar .art-side { top: calc(var(--head-h) + 56px); }
.side-panel { padding: 16px 18px 12px; border: 1px solid var(--c-border); border-radius: var(--c-radius); background: var(--c-surface); }
.side-panel h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; font-family: var(--f-head); font-weight: 900; font-size: 1.05rem; color: var(--d-head); }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li + li a { border-top: 1px solid var(--c-border); }
.side-list a { display: grid; gap: 4px; padding: 12px 0; }
.side-t { font-family: var(--f-head); font-weight: 700; font-size: .9375rem; line-height: 1.6; color: var(--d-head); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; transition: color .15s; }
.side-list a:hover .side-t { color: #fff; }
.side-list time { font-size: .8125rem; color: var(--d-meta); font-weight: 600; }
.side-more { display: inline-flex; margin-top: 4px; padding-block: 8px; font-weight: 800; font-size: .875rem; color: var(--d-text); }
.side-more:hover { color: #fff; }

/* review body uses the same proportions */
.rv-body .read-grid.has-toc { grid-template-columns: minmax(0, 1fr) 280px; column-gap: 56px; }
.rv-body .read-grid.has-toc > * { grid-column: 1; }
.rv-body .read-grid.has-toc > .aside-col { grid-column: 2; grid-row: 1 / span 999; display: block; }
.rv-body .read-grid:not(.has-toc) { grid-template-columns: minmax(0, 740px); justify-content: center; }
.rv-body .read-grid:not(.has-toc) > * { grid-column: 1; }
.rv-body .prose, .rv-body .verdict { max-width: 740px; }

/* ---------- 5. Heading navigator: clearer, same design ---------- */
.toc { gap: 12px; padding: 16px 16px 12px; border: 1px solid var(--c-border); border-radius: var(--c-radius); background: var(--c-surface); }
.toc-h { margin: 0; font-family: var(--f-head); font-weight: 900; font-size: .95rem; color: var(--d-head); }
.toc nav { max-height: calc(100vh - var(--head-h) - 150px); overflow: auto; scrollbar-width: thin; }
.toc nav a { padding: 7px 12px; color: var(--d-text); border-inline-start-color: rgba(255,255,255,.12); font-size: .875rem; border-radius: 0; transition: color .15s, background-color .15s, border-color .15s; }
.toc nav a:hover { color: #fff; background: rgba(255,255,255,.04); }
.toc nav a.on { color: #fff; font-weight: 800; border-inline-start-color: var(--d-accent); background: rgba(240,52,34,.08); }
.toc nav a.sub { padding-inline-start: 26px; font-size: .8125rem; color: var(--d-meta); }
.toc nav a.sub.on { color: #fff; }
.toc-progress { height: 3px; background: rgba(255,255,255,.1); }
.toc-m { background: var(--c-surface); border-color: var(--c-border); }
.toc-m a { color: var(--d-text); }
.toc-m-count { color: var(--d-meta); }

/* ---------- 6. Text: fluid, comfortable, media integrated ---------- */
.art-main .prose, .rv-body .prose { font-size: clamp(1.0625rem, 1rem + .2vw, 1.15rem); line-height: 2; color: #e4e5e1; }
.is-long .prose { font-size: clamp(1.08rem, 1rem + .3vw, 1.2rem); }
.prose > * { margin-block: 0 1.2em; }
.prose a { text-decoration-color: rgba(255,255,255,.38); text-decoration-thickness: 1px; text-underline-offset: .28em; transition: color .15s, text-decoration-color .15s; }
.prose a:hover { color: #fff; text-decoration-color: currentColor; }
.prose h2 { margin-block: 1.8em .6em; }
.prose img { height: auto; border-radius: 10px; }
.prose :is(figure.wp-block-image, .wp-block-gallery, .wp-block-embed, .wp-block-video, .wp-block-table) { margin-block: 1.7em; }
.prose figcaption, .prose .wp-element-caption { font-size: .875rem; color: var(--d-meta); text-align: start; }
.prose .wp-block-gallery { gap: 8px !important; }
.prose .wp-block-gallery img { border-radius: 8px; }
.prose :is(.wp-block-embed iframe, iframe[src*="youtube"], iframe[src*="youtu.be"], iframe[src*="vimeo"], video) { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 1px solid var(--c-border) !important; border-radius: 12px !important; background: #000; }
.prose .wp-block-embed__wrapper { position: relative; }
.prose .wp-has-aspect-ratio .wp-block-embed__wrapper::before { display: none; }
.prose .wp-has-aspect-ratio iframe { position: static; }
.prose blockquote:not(.pull) { margin: 1.8em 0; padding: 4px 22px 4px 0; border: 0; border-inline-start: 3px solid var(--amber); font-family: var(--f-head); font-weight: 700; font-size: 1.15em; line-height: 1.75; color: var(--d-head); background: none; }
.prose blockquote:not(.pull) p { margin: 0 0 .5em; }
.prose blockquote cite { display: block; margin-top: 8px; font-family: var(--f-body); font-style: normal; font-weight: 600; font-size: .85rem; color: var(--d-meta); }
.prose .wp-block-table { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.7; }
.prose :is(th, td) { padding: 10px 14px; border-bottom: 1px solid var(--c-border); text-align: start; vertical-align: top; }
.prose thead th { font-family: var(--f-head); font-weight: 800; color: var(--d-head); background: #101314; border-bottom-color: rgba(255,255,255,.18); }
.prose hr { border: 0; height: 1px; background: var(--c-border); margin-block: 2em; }

/* pasted full-HTML articles: their outer "page box" is dropped, their callouts follow the theme */
.prose .paedz-article { max-width: none !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; color: inherit !important; font-family: inherit !important; line-height: inherit !important; overflow: visible !important; }
.prose .paedz-article > div[style], .prose .quick-box { background: var(--c-surface) !important; border: 1px solid var(--c-border) !important; border-radius: 12px !important; color: var(--d-text) !important; }
.prose .paedz-article h2[style] { font-size: clamp(1.45rem, 1.25rem + .7vw, 1.9rem) !important; color: var(--d-head) !important; margin-block: 1.8em .6em !important; }
.prose .paedz-article h3[style] { font-size: clamp(1.15rem, 1.08rem + .3vw, 1.3rem) !important; color: var(--d-head) !important; }
.prose .paedz-article a[style]:not([style*="background"]) { color: inherit !important; }
.prose .paedz-article p[style] { color: inherit; }

/* ---------- 7. Sources: one small line of text links ---------- */
.prose .src-line { margin: 2em 0 0 !important; font-size: .9rem; line-height: 1.9; color: var(--d-meta); }
.src-k { font-weight: 700; color: var(--d-meta); margin-inline-end: 2px; }
.prose a.src-a { color: var(--d-text); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); text-decoration-thickness: 1px; text-underline-offset: .3em; }
.prose a.src-a:hover { color: #fff; text-decoration-color: currentColor; }
.prose a.src-a:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 2px; }
.src-sep { margin-inline: 8px; color: #5c6262; }
.src-note { color: var(--d-meta); }

/* ---------- 8. End of article ---------- */
.art-end { display: grid; gap: 18px; margin-top: 36px; }
.art-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.art-tags a { display: inline-flex; align-items: center; min-height: 32px; padding-inline: 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; font-size: .8125rem; font-weight: 700; color: var(--d-text); }
.art-tags a:hover { color: #fff; border-color: var(--d-control); }
.art-share-end { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px; border-block: 1px solid var(--c-border); }
.art-share-end > span { font-family: var(--f-head); font-weight: 800; color: var(--d-head); }
.author-card { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; align-items: start; padding: 18px 20px; border: 1px solid var(--c-border); border-radius: var(--c-radius); background: var(--c-surface); }
.author-card .avatar, .author-card img { width: 64px; height: 64px; border-radius: 50%; }
.author-card-k { display: block; font-size: .8125rem; color: var(--d-meta); font-weight: 700; }
.author-card-n { font-family: var(--f-head); font-weight: 900; font-size: 1.1rem; color: var(--d-head); }
a.author-card-n:hover { color: #fff; }
.author-card-r { display: block; font-size: .875rem; color: var(--d-text); margin-top: 2px; }
.author-card p { margin: 8px 0 0; font-size: .9375rem; line-height: 1.8; color: var(--d-text); }

/* ---------- 9. Related band ---------- */
.related { margin-top: 48px; padding-block: 36px 44px; border-top: 1px solid var(--c-border); background: #08090a; }
.related .shead { margin-bottom: 18px; }
.single .foot, .single-post .foot { margin-top: 0; }
/* deliberate neutral fallback when a post genuinely has no image */
.img-ph { background: radial-gradient(120% 90% at 85% 10%, #1a1e20 0, #0d0f10 60%), #0d0f10; color: #3a4043; font-size: .8rem; letter-spacing: .14em; }
.img-ph span { padding: 4px 10px; border: 1px solid #23282a; border-radius: 999px; }

/* ---------- 10. Responsive ---------- */
@media (max-width: 1180px) {
  .art-layout.has-side { grid-template-columns: minmax(0, 1fr) 260px; gap: 36px; }
  .rv-body .read-grid.has-toc { grid-template-columns: minmax(0, 1fr); }
  .rv-body .read-grid.has-toc > .aside-col { display: none; }
}
@media (max-width: 1180px) and (min-width: 901px) {
  .is-long .art-layout.has-side { grid-template-columns: minmax(0, 1fr); }
  .is-long .art-side { display: none; }
  .is-long .art-main { margin-inline: auto; }
  .is-long .art-main > .toc-m { display: block; }
}
@media (max-width: 900px) {
  .art-layout.has-side { display: block; }
  .art-side { position: static; margin-top: 32px; }
  .is-long .art-side { display: none; }
  .art-main > .toc-m { display: block; }
  .art-main { max-width: none; }
}
@media (max-width: 640px) {
  .art-head, .is-long .art-head { padding-block: 22px 16px; }
  .art-title { font-size: clamp(1.45rem, 1.2rem + 1.4vw, 1.8rem); }
  .is-long .art-title { font-size: clamp(1.55rem, 1.25rem + 1.6vw, 1.95rem); }
  .art-byline-row { margin-top: 14px; padding-top: 12px; }
  .art-cover { margin-bottom: 22px; }
  .art-cover .media, .art-cover-pae figure { border-radius: 10px; }
  .share-b { width: 36px; height: 36px; }
  .author-card { grid-template-columns: 52px minmax(0, 1fr); padding: 14px 16px; }
  .author-card .avatar, .author-card img { width: 52px; height: 52px; }
  .related { margin-top: 36px; padding-block: 28px 32px; }
  .prose :is(th, td) { padding: 8px 10px; }
}
@media (prefers-reduced-motion: reduce) { .share-b, .side-t, .toc nav a, .prose a { transition: none; } }
/* the header shares the body shell (v2.css limits direct children of .art-head .wrap to 50rem) */
.art-head .wrap > .art-shell { max-width: var(--shell); }
/* a leading box heading promoted for the outline keeps its original size */
.prose h2.is-h3, .prose .paedz-article h2.is-h3[style] { font-size: clamp(1.15rem, 1.08rem + .3vw, 1.3rem) !important; margin-block: 0 .5em; }
.prose h2.is-h4 { font-size: 1.05rem !important; margin-block: 0 .5em; }
.author-card-n { display: inline-block; padding-block: 4px; min-height: 24px; }

/* ---------- 0.10 — Studio 3.0 content types: offer line, Arabic support, anime facts ---------- */
.profile-line { margin: 0 0 22px; padding-block: 12px; border-block: 1px solid var(--line); font-size: var(--t-15); line-height: 1.9; color: var(--d-text); }
.profile-line strong { color: var(--fg); font-weight: 800; }
.profile-line a { color: var(--fg); text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); text-underline-offset: .28em; }
.profile-line a:hover { color: #fff; text-decoration-color: currentColor; }
.offer-state.is-expired { color: var(--d-meta); }
.arabic-games p { margin: 0 0 4px; }
.arabic-games ul { margin: 0; padding: 0; list-style: none; }
.arabic-games li + li { margin-top: 2px; }
.arabic-games .ar-unknown { color: var(--d-meta); }
.art-shell.facts-wrap { margin-bottom: 22px; }
.facts-line dd a { color: inherit; text-decoration: underline dotted rgba(255,255,255,.45); text-underline-offset: .28em; }
.dek-verdict { margin-top: 8px; }
/* image credit written by Studio 3.0 inside captions (image + gallery) */
.prose figcaption .paedz-credit, .prose .wp-element-caption .paedz-credit, .art-cover figcaption .paedz-credit { display: block; margin-top: 2px; font-size: .85em; color: var(--d-meta); }
