/* ── AGL Sports Desk: Chalkzone Blog + The Gerihatrick Times ──
   Shared by media.html (the two desk columns, editor, lightbox) and
   admin/admin-media.html (Articles review tab renders the same articles).
   Moved out of media.html's inline <style> on 2026-10-20. */

/* ── Sports Desk split: Chalkzone Blog (TJ Blog, purple) | The Gerihatrick Times (AGL Media, cyan) ── */
.cz-desks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.cz-desk { --cz-accent: #a855f7; --cz-accent-soft: #c084fc; --cz-accent-rgb: 168, 85, 247; min-width: 0; margin: 0; border-color: rgba(var(--cz-accent-rgb), .4); }
/* side by side: cancel the page's stacked-section spacing (.panel + .panel) so the tops line up */
.media-page .cz-desks > .cz-desk { margin-top: 0; }
.cz-desk--agl { --cz-accent: #15d8ff; --cz-accent-soft: #6be6ff; --cz-accent-rgb: 21, 216, 255; }
.cz-desk .eyebrow { color: var(--cz-accent-soft); }
.cz-desk .panel-heading h2 { box-shadow: inset 0 -2px 0 rgba(var(--cz-accent-rgb), .55); padding-bottom: .15rem; }
.cz-desk .cz-search-field input:focus { border-color: rgba(var(--cz-accent-rgb), .6); box-shadow: 0 0 0 3px rgba(var(--cz-accent-rgb), .14); }
.cz-desk .cz-page.is-current { background: rgba(var(--cz-accent-rgb), .18); border-color: var(--cz-accent); color: var(--cz-accent-soft); }
.cz-desk .cz-page:hover:not(:disabled) { border-color: rgba(var(--cz-accent-rgb), .55); }
/* Headline list: newest first, scrolls after ~5 headlines */
.cz-rail { display: flex; flex-direction: column; gap: .3rem; max-height: 17.5rem; overflow-y: auto; padding: .3rem; border: 1px solid rgba(192,196,210,.16); border-radius: 10px; background: rgba(255,255,255,.02); scrollbar-width: thin; scrollbar-color: rgba(var(--cz-accent-rgb), .5) transparent; }
.cz-rail[hidden] { display: none; }
.cz-rail[aria-busy="true"] { opacity: .6; }
.cz-rail .cz-blog-state { border: 0; }
.cz-rail-item { display: block; width: 100%; padding: .5rem .65rem; border: 0; border-left: 3px solid transparent; border-radius: 0 6px 6px 0; background: none; color: #e7ebf2; font: inherit; text-align: left; cursor: pointer; }
.cz-rail-item:hover { background: rgba(255,255,255,.05); }
.cz-rail-item:focus-visible { outline: 2px solid rgba(var(--cz-accent-rgb), .7); outline-offset: -2px; }
.cz-rail-item.is-on { border-left-color: var(--cz-accent); background: rgba(var(--cz-accent-rgb), .13); }
.cz-rail-title { display: block; font-size: .86rem; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.cz-rail-item.is-on .cz-rail-title { color: #fff; }
.cz-rail-meta { display: block; margin-top: .2rem; font-size: .66rem; font-weight: 700; letter-spacing: .03em; color: rgba(255,255,255,.45); }
.cz-rail-kind { display: inline-block; margin-right: .4rem; padding: 0 .35rem; border: 1px solid rgba(var(--cz-accent-rgb), .45); border-radius: 4px; color: var(--cz-accent-soft); font-size: .56rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.cz-desk .cz-pager { margin-top: .6rem; }
.cz-reader { margin-top: 1rem; container-type: inline-size; }
/* masthead sized to the column so "The Gerihatrick Times" stays on one line */
.cz-reader .cz-np-mast-name { font-size: clamp(.95rem, 5cqi, 2.1rem); letter-spacing: .05em; white-space: nowrap; }
.cz-reader:empty { display: none; }
.cz-desk .cz-post:not(.cz-np) { border-left: 3px solid var(--cz-accent); }
.cz-desk .cz-post:not(.cz-np) .cz-post-author { color: var(--cz-accent-soft); }
@media (max-width: 900px) {
  .cz-desks { grid-template-columns: 1fr; }
}

/* ── Chalkzone Blog ── */
.cz-blog-top { display: flex; align-items: center; gap: 1rem; margin: 0 0 1rem; }
.cz-blog-logo { width: 64px; height: 64px; object-fit: contain; flex: 0 0 auto; }
.cz-blog-intro { font-size: .85rem; line-height: 1.55; color: rgba(255,255,255,.55); margin: 0; max-width: 72ch; }
.cz-blog-actions:empty { display: none; }
.cz-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cz-link { color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
.cz-link:hover { color: #fff; }

.cz-blog-search { display: flex; gap: .5rem; margin: 0 0 .7rem; }
.cz-search-field { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; }
.cz-search-field svg { position: absolute; left: .8rem; width: 16px; height: 16px; color: rgba(255,255,255,.4); pointer-events: none; }
.cz-search-field input {
  width: 100%; box-sizing: border-box; padding: .6rem 2.2rem .6rem 2.35rem;
  background: rgba(255,255,255,.05); border: 1px solid rgba(192,196,210,.22); border-radius: 8px;
  color: #f0f3f8; font: inherit; font-size: .85rem;
}
.cz-search-field input::placeholder { color: rgba(255,255,255,.35); }
.cz-search-field input:focus { outline: none; border-color: rgba(201,162,39,.6); box-shadow: 0 0 0 3px rgba(201,162,39,.14); }
.cz-search-field input::-webkit-search-cancel-button { display: none; }
.cz-search-clear { position: absolute; right: .35rem; width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: rgba(255,255,255,.55); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.cz-search-clear:hover { color: #fff; background: rgba(255,255,255,.08); }
.cz-blog-summary { min-height: 1.1em; margin: 0 0 .6rem; font-size: .72rem; font-weight: 700; letter-spacing: .04em; color: rgba(255,255,255,.45); }

/* The list scrolls inside the panel so a page of 10 posts doesn't stretch the media page. */
.cz-post-list {
  display: flex; flex-direction: column; gap: .8rem;
  max-height: min(560px, 75vh); overflow-y: auto; overflow-anchor: none; padding-right: .5rem;
  scrollbar-width: thin; scrollbar-color: rgba(201,162,39,.5) rgba(255,255,255,.05);
}
.cz-post-list:focus-visible { outline: 2px solid rgba(201,162,39,.6); outline-offset: 2px; border-radius: 6px; }
.cz-post-list::-webkit-scrollbar { width: 8px; }
.cz-post-list::-webkit-scrollbar-track { background: rgba(255,255,255,.04); border-radius: 4px; }
.cz-post-list::-webkit-scrollbar-thumb { background: rgba(201,162,39,.45); border-radius: 4px; }
.cz-post-list::-webkit-scrollbar-thumb:hover { background: rgba(201,162,39,.7); }
.cz-post { flex-shrink: 0; }
.cz-post-list[aria-busy="true"] { opacity: .6; transition: opacity .15s; }
.cz-blog-state { padding: 1.6rem 1rem; text-align: center; border: 1px dashed rgba(192,196,210,.22); border-radius: 10px; color: rgba(255,255,255,.55); font-size: .85rem; }
.cz-blog-state p { margin: 0 0 .6rem; }
.cz-blog-state p:last-child { margin: 0; }

.cz-post { padding: 1rem 1.1rem; border: 1px solid rgba(192,196,210,.18); border-radius: 10px; background: linear-gradient(160deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,.012) 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.cz-post-title { margin: 0 0 .3rem; font-size: 1.15rem; line-height: 1.3; color: #f0f3f8; overflow-wrap: anywhere; }
.cz-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .7rem; margin-bottom: .75rem; font-size: .7rem; font-weight: 700; letter-spacing: .04em; color: rgba(255,255,255,.45); }
.cz-post-author { color: #c9a227; text-transform: uppercase; letter-spacing: .1em; font-weight: 900; }
.cz-post-edited { font-style: italic; font-weight: 600; }
.cz-post-body { font-size: .9rem; line-height: 1.65; color: rgba(255,255,255,.78); overflow-wrap: anywhere; }
.cz-post-body p { margin: 0 0 .8rem; }
.cz-post-body p:last-child { margin-bottom: 0; }
.cz-post-body.is-clamped { max-height: 11.5em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
/* Formatted post bodies (chalkzone-blog.js renderBody) */
.cz-post-body .cz-h { margin: 1.15rem 0 .5rem; font-size: .95rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: #f0cf61; line-height: 1.35; }
.cz-post-body .cz-h:first-child { margin-top: 0; }
.cz-post-body strong { color: #fff; font-weight: 800; }
.cz-post-body .cz-h strong { color: inherit; font-weight: inherit; }
.cz-post-body em { font-style: italic; color: rgba(255,255,255,.88); }
.cz-post-body .cz-list { margin: 0 0 .8rem; padding-left: 1.35rem; }
.cz-post-body .cz-list li { margin: 0 0 .3rem; padding-left: .15rem; }
.cz-post-body ul.cz-list li::marker { color: #c9a227; }
.cz-post-body ol.cz-list li::marker { color: #c9a227; font-weight: 800; }
.cz-post-body .cz-quote { margin: 0 0 .8rem; padding: .5rem .9rem; border-left: 3px solid #c9a227; border-radius: 0; background: rgba(201,162,39,.07); color: rgba(255,255,255,.88); font-style: italic; }
.cz-share { margin-left: auto; padding: .1rem .55rem; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: none; color: rgba(255,255,255,.6); font: inherit; font-size: .66rem; font-weight: 800; letter-spacing: .06em; cursor: pointer; }
.cz-share:hover:not(:disabled) { border-color: rgba(201,162,39,.6); color: #f0cf61; }
.cz-share:disabled { color: #4ade80; border-color: rgba(74,222,128,.45); cursor: default; }
.cz-blog-search[hidden] { display: none; }
.cz-blog-summary .cz-btn { margin-left: .25rem; padding: .25rem .65rem; font-size: .66rem; }
/* Editor: formatting toolbar + preview */
.cz-toolbar { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0 0 .4rem; }
.cz-tool { padding: .28rem .6rem; border: 1px solid rgba(192,196,210,.24); border-radius: 6px; background: rgba(255,255,255,.04); color: #dfe5ee; font: inherit; font-size: .72rem; font-weight: 700; cursor: pointer; }
.cz-tool:hover:not(:disabled) { border-color: rgba(201,162,39,.55); background: rgba(255,255,255,.08); }
.cz-tool:disabled { opacity: .4; cursor: default; }
.cz-tool.is-b { font-weight: 900; }
.cz-tool.is-i { font-style: italic; }
.cz-tool--preview { margin-left: auto; color: #f0cf61; border-color: rgba(201,162,39,.45); }
.cz-preview { min-height: 12rem; max-height: 50vh; overflow-y: auto; padding: .8rem 1rem; border: 1px dashed rgba(201,162,39,.4); border-radius: 8px; background: rgba(255,255,255,.03); }
.cz-preview[hidden] { display: none; }
.cz-preview-empty { color: rgba(255,255,255,.45); font-style: italic; }
.cz-counter.is-near { color: #fbbf24; }
.cz-announce { display: flex; align-items: center; gap: .45rem; margin: .2rem 0 .3rem; font-size: .8rem; color: rgba(255,255,255,.8); cursor: pointer; }
.cz-announce-off { margin: .2rem 0 .3rem; }
.cz-form .cz-announce input { width: auto; padding: 0; margin: 0; accent-color: #c9a227; }
.cz-announce { flex-wrap: wrap; }
.cz-announce-note { font-size: .72rem; color: rgba(255,255,255,.5); }
.cz-announce-status { flex-basis: 100%; font-size: .74rem; color: #f0cf61; }
.cz-announce-status:empty { display: none; }
.cz-post mark { background: rgba(201,162,39,.35); color: #fff; border-radius: 2px; padding: 0 .1em; }
.cz-readmore { margin-top: .4rem; padding: 0; border: 0; background: none; color: #f0cf61; font: inherit; font-size: .75rem; font-weight: 800; cursor: pointer; }
.cz-readmore:hover { color: #ffe99a; text-decoration: underline; }
.cz-readmore[hidden] { display: none; }

.cz-post-tags { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; margin: .8rem 0 0; padding: 0; }
.cz-tag { padding: .15rem .55rem; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: rgba(255,255,255,.04); color: rgba(255,255,255,.65); font: inherit; font-size: .68rem; font-weight: 700; cursor: pointer; }
.cz-tag:hover { border-color: rgba(201,162,39,.6); color: #f0cf61; }

.cz-post-actions { display: flex; gap: .5rem; margin-top: .9rem; padding-top: .8rem; border-top: 1px solid rgba(255,255,255,.07); }
.cz-btn { padding: .38rem .9rem; border: 1px solid rgba(192,196,210,.28); border-radius: 6px; background: rgba(255,255,255,.05); color: #dfe5ee; font: inherit; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.cz-btn:hover { background: rgba(255,255,255,.1); border-color: rgba(201,162,39,.5); }
.cz-btn--danger { color: #f87171; border-color: rgba(248,113,113,.4); }
.cz-btn--danger:hover { background: rgba(248,113,113,.12); border-color: #f87171; }
.cz-btn--solid { background: #dc2626; border-color: #dc2626; color: #fff; }
.cz-btn--solid:hover { background: #ef4444; border-color: #ef4444; }
.cz-btn:disabled { opacity: .55; cursor: default; }

.cz-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .35rem; margin-top: 1rem; }
.cz-pager[hidden] { display: none; }
.cz-page { min-width: 2.2rem; padding: .4rem .65rem; border: 1px solid rgba(192,196,210,.22); border-radius: 6px; background: rgba(255,255,255,.04); color: #dfe5ee; font: inherit; font-size: .78rem; font-weight: 800; cursor: pointer; }
.cz-page:hover:not(:disabled) { border-color: rgba(201,162,39,.55); background: rgba(255,255,255,.08); }
.cz-page.is-current { background: rgba(201,162,39,.18); border-color: #c9a227; color: #f0cf61; cursor: default; }
.cz-page:disabled { opacity: .35; cursor: default; }
.cz-page-gap { color: rgba(255,255,255,.35); padding: 0 .1rem; }

.cz-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.cz-modal-backdrop { position: absolute; inset: 0; background: rgba(3,6,12,.78); backdrop-filter: blur(3px); }
.cz-modal-card { position: relative; width: min(680px, 100%); max-height: calc(100vh - 2rem); overflow-y: auto; padding: 1.2rem 1.3rem; border: 1px solid rgba(192,196,210,.25); border-radius: 12px; background: linear-gradient(160deg, #141b2a, #0a0f1a); box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.cz-form { display: flex; flex-direction: column; gap: .4rem; }
.cz-form h3 { margin: 0 0 .4rem; font-size: 1.15rem; color: #f0f3f8; }
.cz-form label { margin-top: .4rem; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.cz-form input, .cz-form textarea { width: 100%; box-sizing: border-box; padding: .6rem .7rem; background: rgba(255,255,255,.05); border: 1px solid rgba(192,196,210,.22); border-radius: 8px; color: #f0f3f8; font: inherit; font-size: .9rem; }
.cz-form textarea { resize: vertical; min-height: 10rem; line-height: 1.55; }
.cz-form input:focus, .cz-form textarea:focus { outline: none; border-color: rgba(201,162,39,.6); box-shadow: 0 0 0 3px rgba(201,162,39,.14); }
.cz-form-hint { display: flex; justify-content: space-between; gap: 1rem; font-size: .68rem; color: rgba(255,255,255,.4); }
.cz-form-status { min-height: 1.2em; margin: .3rem 0 0; font-size: .78rem; color: #f87171; }
.cz-form-actions { display: flex; justify-content: flex-end; gap: .5rem; margin-top: .4rem; }
.cz-confirm-text { margin: 0; font-size: .88rem; line-height: 1.5; color: rgba(255,255,255,.7); overflow-wrap: anywhere; }

/* Images, dividers, player links (both media modes) */
.cz-fig { margin: .4rem 0 1rem; break-inside: avoid; }
.cz-fig-zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.cz-fig img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: contain; border-radius: 6px; background: rgba(255,255,255,.04); }
.cz-fig figcaption, .cz-np-hero-cap { margin: .35rem 0 0; font-family: Georgia, 'Times New Roman', serif; font-size: .76rem; font-style: italic; line-height: 1.4; color: rgba(255,255,255,.58); }
.cz-credit { margin-left: .45rem; font-family: inherit; font-style: normal; font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.4); }
.cz-divider { width: 40%; height: 1px; margin: 1.3rem auto; border: 0; background: linear-gradient(90deg, transparent, rgba(201,162,39,.75), transparent); }
.cz-player { color: #f0cf61; text-decoration-color: rgba(201,162,39,.5); word-break: normal; }

/* ── Newspaper mode: night edition ── */
.cz-np { position: relative; overflow: hidden; padding: 1.1rem 1.3rem 1.2rem; border-color: rgba(201,162,39,.3); background: linear-gradient(180deg, #0f1626 0%, #0a0f1a 100%); }
.cz-np-mast { margin: 0 0 .95rem; padding: .35rem 0 .3rem; border-top: 3px double #c9a227; border-bottom: 1px solid rgba(201,162,39,.55); text-align: center; }
.cz-np-mast-name { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.35rem, 3.6vw, 2.1rem); font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #f5f6f9; line-height: 1.15; }
.cz-np-mast-line { display: flex; justify-content: space-between; gap: .6rem; margin-top: .2rem; padding-top: .2rem; border-top: 1px solid rgba(201,162,39,.25); font-size: .6rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.cz-np-hl { margin: 0 0 .45rem; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.35rem, 3.4vw, 2rem); font-weight: 700; line-height: 1.12; letter-spacing: 0; text-transform: none; color: #f5f6f9; overflow-wrap: anywhere; }
.cz-np-deck { margin: 0 0 .6rem; font-family: Georgia, 'Times New Roman', serif; font-size: 1.02rem; font-style: italic; line-height: 1.45; color: rgba(255,255,255,.72); }
.cz-np-by { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .75rem; margin: 0 0 1rem; padding-bottom: .65rem; border-bottom: 1px solid rgba(201,162,39,.25); font-size: .7rem; font-weight: 700; letter-spacing: .04em; color: rgba(255,255,255,.45); }
.cz-np-body { font-family: Georgia, 'Times New Roman', serif; font-size: 1rem; line-height: 1.72; color: rgba(255,255,255,.84); }
.cz-np-body .cz-h { font-family: inherit; letter-spacing: .04em; break-after: avoid; }
.cz-np-body .cz-quote { break-inside: avoid; }
.cz-np .cz-fig--hero img { max-height: 460px; object-fit: cover; }
.cz-np-extras { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.cz-np-extras .cz-fig { flex: 1 1 220px; min-width: 0; margin: 0; }
/* A · Front page: columns + drop cap (one column while clamped in the list) */
.cz-np--front .cz-np-cols:not(.is-clamped) { column-width: 17em; column-gap: 1.8rem; column-rule: 1px solid rgba(201,162,39,.2); }
.cz-np--front .cz-np-cols > p:first-child::first-letter { float: left; margin: .06em .12em 0 0; font-size: 3.5em; font-weight: 700; line-height: .82; color: #f0cf61; }
/* B · Feature: headline on the hero, big pull quotes */
.cz-np-hero { position: relative; margin: -1.1rem -1.3rem 0; }
.cz-np-hero .cz-fig { margin: 0; }
.cz-np-hero .cz-fig img { max-height: 440px; min-height: 220px; object-fit: cover; border-radius: 0; }
.cz-np-hero-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 3rem 1.3rem 1rem; background: linear-gradient(180deg, transparent, rgba(5,8,14,.94)); pointer-events: none; }
.cz-np-hero-text .cz-np-hl { margin: 0; font-size: clamp(1.5rem, 4vw, 2.4rem); text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.cz-np-hero-cap { margin: .4rem 0 .9rem; }
.cz-np--feature .cz-np-hero + .cz-np-deck, .cz-np--feature .cz-np-hero + .cz-np-by { margin-top: .9rem; }
.cz-np--feature .cz-np-body .cz-quote { margin: 1.2rem 0; padding: .8rem 1rem; border: 0; border-top: 2px solid #c9a227; border-bottom: 2px solid #c9a227; background: none; font-size: 1.25rem; line-height: 1.4; text-align: center; color: #f5f6f9; }
/* C · Sidebar */
.cz-np-split { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 1.3rem; }
.cz-np-aside { display: flex; flex-direction: column; gap: .8rem; padding-left: 1.2rem; border-left: 1px solid rgba(201,162,39,.22); }
.cz-np-aside .cz-fig { margin: 0; }
/* D · Photo story */
.cz-np--photo .cz-np-hl, .cz-np--photo .cz-np-deck { text-align: center; }
.cz-np--photo .cz-np-by { justify-content: center; }
.cz-np-gallery { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1.1rem; }
.cz-np-gallery .cz-fig { flex: 1 1 200px; min-width: 0; margin: 0; }
.cz-np-gallery .cz-fig:first-child { flex-basis: 100%; }
.cz-np-gallery .cz-fig:not(:first-child) img { aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 640px) {
  .cz-np { padding: .95rem .95rem 1rem; }
  .cz-np-hero { margin: -.95rem -.95rem 0; }
  .cz-np-hero-text { padding: 2.5rem .95rem .85rem; }
  .cz-np-split { grid-template-columns: 1fr; }
  .cz-np-aside { padding-left: 0; border-left: 0; }
  .cz-np-mast-line span:last-child { display: none; }
}

/* Lightbox */
.cz-modal-card--image { width: min(1100px, 100%); padding: .8rem; }
.cz-lightbox { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.cz-lightbox img { display: block; max-width: 100%; max-height: calc(100vh - 9rem); width: auto; height: auto; border-radius: 6px; }
.cz-lightbox figcaption { align-self: stretch; font-family: Georgia, 'Times New Roman', serif; font-size: .85rem; font-style: italic; color: rgba(255,255,255,.7); }

/* Editor: media mode, layouts, images, player picker, draft note */
.cz-modal-card--wide { width: min(860px, 100%); }
.cz-form-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; }
.cz-form-top h3 { margin: 0; }
.cz-form .cz-form-label { margin-top: .4rem; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.cz-seg { display: inline-flex; border: 1px solid rgba(192,196,210,.28); border-radius: 8px; overflow: hidden; }
.cz-seg button { padding: .42rem 1rem; border: 0; background: transparent; color: rgba(255,255,255,.7); font: inherit; font-size: .74rem; font-weight: 800; letter-spacing: .06em; cursor: pointer; }
.cz-seg button + button { border-left: 1px solid rgba(192,196,210,.2); }
.cz-seg button:hover { background: rgba(255,255,255,.06); }
.cz-seg button[aria-pressed="true"] { background: rgba(201,162,39,.2); color: #f0cf61; }
.cz-np-fields { display: flex; flex-direction: column; gap: .4rem; }
.cz-np-fields[hidden] { display: none; }
.cz-layouts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .45rem; }
.cz-layout { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .55rem .4rem .45rem; border: 1px solid rgba(192,196,210,.22); border-radius: 8px; background: rgba(255,255,255,.03); color: rgba(255,255,255,.65); font: inherit; font-size: .72rem; font-weight: 800; cursor: pointer; }
.cz-layout:hover { border-color: rgba(201,162,39,.5); }
.cz-layout[aria-pressed="true"] { border-color: #c9a227; background: rgba(201,162,39,.09); color: #f0cf61; }
.cz-layout-sketch { display: block; line-height: 0; }
.cz-layout-hint { margin: 0; display: block; }
.cz-player-pick { display: flex; gap: .4rem; align-items: center; margin: 0 0 .4rem; }
.cz-player-pick[hidden] { display: none; }
.cz-form .cz-player-pick input { flex: 1; min-width: 0; padding: .4rem .6rem; font-size: .82rem; }
.cz-tool--danger { color: #f87171; border-color: rgba(248,113,113,.35); }
.cz-imgs { display: flex; flex-direction: column; gap: .45rem; }
.cz-imgs:empty { display: none; }
.cz-img-hint { display: block; margin: 0; }
.cz-img-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: .6rem; align-items: start; padding: .5rem; border: 1px solid rgba(192,196,210,.18); border-radius: 8px; background: rgba(255,255,255,.03); }
.cz-img-thumb { position: relative; width: 92px; height: 64px; overflow: hidden; border-radius: 6px; background: #1f2a3d; }
.cz-img-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cz-img-num, .cz-img-tag { position: absolute; bottom: 3px; padding: 0 .3rem; border-radius: 4px; font-size: .6rem; font-weight: 900; line-height: 1.5; }
.cz-img-num { left: 3px; background: rgba(201,162,39,.92); color: #1d1a15; }
.cz-img-tag { right: 3px; background: rgba(5,8,14,.85); color: #f0cf61; letter-spacing: .04em; }
.cz-img-fields { display: flex; flex-direction: column; gap: .3rem; }
.cz-form .cz-img-fields input { padding: .38rem .55rem; font-size: .8rem; }
.cz-img-btns { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .25rem; max-width: 160px; }
.cz-img-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.cz-img-status { font-size: .74rem; color: #f0cf61; }
.cz-draft-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding: .5rem .7rem; border: 1px solid rgba(201,162,39,.4); border-radius: 8px; background: rgba(201,162,39,.08); font-size: .78rem; color: #f0cf61; }
.cz-preview .cz-post { margin: 0; }
.cz-pub-row { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; }
.cz-pub-row .cz-form-label { margin-top: 0; }
.cz-pub-note { font-size: .72rem; color: rgba(255,255,255,.55); }
.cz-seg--pub button[data-pub="tj"][aria-pressed="true"] { background: rgba(168,85,247,.22); color: #d8b4fe; }
.cz-seg--pub button[data-pub="agl"][aria-pressed="true"] { background: rgba(21,216,255,.16); color: #6be6ff; }
@media (max-width: 560px) {
  .cz-layouts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cz-img-row { grid-template-columns: 72px minmax(0, 1fr); }
  .cz-img-thumb { width: 72px; height: 54px; }
  .cz-img-btns { grid-column: 1 / -1; justify-content: flex-start; max-width: none; }
}

@media (max-width: 520px) {
  .cz-blog-logo { width: 48px; height: 48px; }
  .cz-blog-search { flex-wrap: wrap; }
  .cz-blog-search .button { flex: 1; }
  .cz-post { padding: .85rem .85rem; }
  .cz-post-title { font-size: 1.02rem; }
}

/* ── Proofreading: Writer submissions ── */
.cz-review-pill { display: inline-block; margin-right: .4rem; padding: 0 .35rem; border: 1px solid rgba(240,207,97,.55); border-radius: 4px; color: #f0cf61; font-size: .56rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.cz-review-pill.is-changes { border-color: rgba(251,146,60,.6); color: #fdba74; }
.cz-reader-stack { display: flex; flex-direction: column; gap: .7rem; }
.cz-review-banner { padding: .7rem .9rem; border: 1px solid rgba(240,207,97,.45); border-radius: 10px; background: rgba(240,207,97,.07); color: #f5e6b0; font-size: .82rem; line-height: 1.5; }
.cz-review-banner.is-changes { border-color: rgba(251,146,60,.55); background: rgba(251,146,60,.08); color: #fed7aa; }
.cz-review-banner > p { margin: 0; }
.cz-review-banner .cz-btn { margin-top: .6rem; }
.cz-review-notes { margin: .55rem 0 0; padding: .55rem .75rem; border-left: 3px solid #fb923c; border-radius: 0; background: rgba(0,0,0,.25); color: #fff; font-style: normal; }
.cz-review-notes strong { display: block; margin-bottom: .2rem; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: #fdba74; }
.cz-review-notes p { margin: 0; white-space: pre-wrap; }
.cz-review-note { padding: .55rem .75rem; border: 1px solid rgba(240,207,97,.4); border-radius: 8px; background: rgba(240,207,97,.07); color: #f5e6b0; font-size: .78rem; }
.cz-review-note > p { margin: 0; }

/* ── Admin > Media > Articles (admin/article-review.js) ── */
.ar-layout { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: 1rem; align-items: start; }
.ar-queue { display: flex; flex-direction: column; gap: .3rem; }
.ar-group-label { margin: .6rem 0 .2rem; font-size: .66rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.ar-group-label:first-child { margin-top: 0; }
.ar-item { display: block; width: 100%; padding: .55rem .7rem; border: 1px solid rgba(192,196,210,.16); border-left: 3px solid transparent; border-radius: 0 8px 8px 0; background: rgba(255,255,255,.03); color: #e7ebf2; font: inherit; text-align: left; cursor: pointer; }
.ar-item:hover { background: rgba(255,255,255,.06); }
.ar-item.is-on { border-left-color: #15d8ff; background: rgba(21,216,255,.1); }
.ar-item-title { display: block; font-size: .86rem; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.ar-item-meta { display: block; margin-top: .2rem; font-size: .68rem; color: rgba(255,255,255,.5); }
.ar-empty { padding: 1.2rem 1rem; border: 1px dashed rgba(192,196,210,.22); border-radius: 10px; text-align: center; color: rgba(255,255,255,.55); font-size: .85rem; }
.ar-detail { display: flex; flex-direction: column; gap: .8rem; min-width: 0; }
.ar-detail-head { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; font-size: .78rem; color: rgba(255,255,255,.65); }
.ar-detail-head .cz-review-pill { margin: 0; }
.ar-preview { container-type: inline-size; }
.ar-preview .cz-np-mast-name { font-size: clamp(.95rem, 5cqi, 2.1rem); letter-spacing: .05em; white-space: nowrap; }
.ar-decide { display: flex; flex-direction: column; gap: .5rem; padding: .8rem; border: 1px solid rgba(192,196,210,.2); border-radius: 10px; background: rgba(255,255,255,.03); }
.ar-decide textarea { width: 100%; box-sizing: border-box; min-height: 5.5rem; padding: .55rem .65rem; border: 1px solid rgba(192,196,210,.22); border-radius: 8px; background: rgba(255,255,255,.05); color: #f0f3f8; font: inherit; font-size: .86rem; resize: vertical; }
.ar-decide-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.ar-status { min-height: 1.2em; margin: 0; font-size: .8rem; color: #f0cf61; }
.ar-status.is-error { color: #f87171; }
.ar-tab-count { display: inline-block; min-width: 1.3em; margin-left: .35rem; padding: 0 .35rem; border-radius: 999px; background: #f0cf61; color: #1d1a15; font-size: .68rem; font-weight: 900; line-height: 1.5; text-align: center; }
.ar-tab-count:empty { display: none; }
@media (max-width: 860px) {
  .ar-layout { grid-template-columns: 1fr; }
}
