/* The article format (acg 0.22.0, 18 Nov 2026). Build sheet: All Common Ground\Mockups\Site Refresh 2026-11\
   article-format\build-sheet-article-format-and-home-hero-2026-11-18.md. Loaded only on posts whose content wrapper
   carries "acg-format" (functions.php adds body.has-article-format); every rule is scoped to that class.
   Seven reusable parts, structure not branding: 1 the sheet, 2 side contents, 3 section markers, 4 comparison grid,
   5 people cards, 6 ruled lists, 7 captioned figures with a lightbox; plus 8, spacing.
   Margin rules lead with .acg-reading: on the real page every group is .is-layout-flow, and refresh.css zeroes
   ".acg-reading .is-layout-flow > *" at two classes. Colours come from the theme tokens only. */

/* ---- 1 and 2 (the sheet, side contents): since 0.25.0 the shared reading layout (reading-layout/, the ekg-base
   module) and ACG's mapping of it, assets/css/acg-reading-layout.css ---- */

/* ---- 3. section markers: a rule, a short bar in the pillar colours (I blue, II magenta, III green, IV red), a
   two-digit number (silent to screen readers), and more space between sections than inside them ---- */
.has-article-format .acg-format{counter-reset:acg-sec}
.has-article-format .acg-format > .wp-block-group:nth-of-type(4n+1){--sec:var(--pillar-1)}
.has-article-format .acg-format > .wp-block-group:nth-of-type(4n+2){--sec:var(--pillar-2)}
.has-article-format .acg-format > .wp-block-group:nth-of-type(4n+3){--sec:var(--pillar-3)}
.has-article-format .acg-format > .wp-block-group:nth-of-type(4n+4){--sec:var(--pillar-4)}
.has-article-format .acg-reading .acg-format > .wp-block-group + .wp-block-group,
.has-article-format .acg-reading .acg-format > .wp-block-image + .wp-block-group{margin-top:72px}
.has-article-format .acg-reading .acg-format > .wp-block-group > h2:first-child,
.has-article-format .acg-reading .acg-format > h2{counter-increment:acg-sec;position:relative;margin:0 0 18px;padding-top:30px;border-top:1px solid var(--hairline);
  background:linear-gradient(var(--sec,var(--gold-d)),var(--sec,var(--gold-d))) 0 0/56px 3px no-repeat;background-origin:border-box;
  font-size:clamp(25px,3vw,31px);line-height:1.2}
.has-article-format .acg-format > .wp-block-group > h2:first-child::before,
.has-article-format .acg-format > h2::before{content:counter(acg-sec,decimal-leading-zero);content:counter(acg-sec,decimal-leading-zero) / "";
  display:block;margin:0 0 10px;font-family:var(--sans);font-size:12px;font-weight:700;letter-spacing:.16em;color:var(--sec,var(--muted))}
.has-article-format .acg-reading .acg-format > .wp-block-group > h3,
.has-article-format .acg-reading .acg-format > h3{margin:36px 0 10px;padding-left:14px;border-left:3px solid var(--hairline);font-size:20px;line-height:1.3}

/* ---- 4. comparison grid: cards, 2 by 2 on wide screens, one column on a phone; the "Who holds this view" slot
   at the foot of each card stays hidden while it is empty ---- */
.has-article-format .acg-reading .pos-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:22px 0 26px}
.has-article-format .acg-reading .pos-card{display:flex;flex-direction:column;background:var(--paper);border:1px solid var(--hairline);border-top:4px solid var(--c,var(--gold-d));border-radius:12px;padding:18px 20px 16px}
.has-article-format .acg-reading .pos-card h3{font-family:var(--serif);font-size:18px;line-height:1.3;margin:0 0 8px;padding:0;border:0}
.has-article-format .acg-reading .pos-card p{font-size:15.5px;line-height:1.55;margin:0}
/* 0.22.7: the "Who holds this view" block sits right under the card's description; a shorter card's spare height goes
   to the bottom of the card (cards in a row still share one height: the grid stretches them). */
.has-article-format .acg-reading .pos-held{margin-top:0;padding-top:12px}
.has-article-format .acg-reading .pos-held > *:first-child{margin-top:12px;padding-top:10px;border-top:1px dashed var(--hairline)}
.has-article-format .acg-reading .pos-held p{font-size:13.5px;line-height:1.45;color:var(--muted)}
.has-article-format .pos-held:empty{display:none}
/* 4b. "Who holds this view" filled (0.22.2 on the live line, 0.22.3 on staging; addendum 18 Nov 2026): a small label, the note with its source links, and
   for most cards a native <details> ("In their own words") holding the quotations, closed by default. Cards in a row
   stay the same height while closed (the slot sits at the foot of each card); opening one grows its row. */
.has-article-format .acg-reading .pos-held .held-label{margin:0 0 4px;font-family:var(--sans);font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.has-article-format .acg-reading .pos-held .held-note{margin:0;font-size:14px;line-height:1.5;color:var(--charcoal)}
.has-article-format .acg-reading .pos-held a{color:var(--blue-d);text-decoration:underline;text-underline-offset:2px;text-decoration-thickness:1px}
.has-article-format .acg-reading .pos-held a:hover{color:var(--ink)}
.has-article-format .acg-reading .pos-held .held-quotes{margin:10px 0 0}
.has-article-format .acg-reading .held-quotes summary{display:list-item;cursor:pointer;padding:3px 0;font-family:var(--sans);font-size:13px;font-weight:600;color:var(--ink)}
.has-article-format .acg-reading .held-quotes summary:focus-visible{outline:2px solid var(--blue-d);outline-offset:2px;border-radius:4px}
.has-article-format .acg-reading .acg-format .held-quotes ul.wp-block-list{margin:8px 0 2px;padding:0;border:0}
.has-article-format .acg-reading .acg-format .held-quotes ul.wp-block-list > li{margin:0 0 8px;padding:0 0 0 12px;border:0;border-left:2px solid var(--hairline);font-size:13.5px;line-height:1.5;color:var(--charcoal)}
.has-article-format .acg-reading .acg-format .held-quotes ul.wp-block-list > li:last-child{margin-bottom:0}
.has-article-format .acg-format .held-quotes ul.wp-block-list > li::before{content:none}
@media(max-width:700px){.has-article-format .acg-reading .pos-grid{grid-template-columns:1fr}}

/* ---- 5. people cards: portraits beside the item's own text; portraits above the text on a phone. The portraits
   are cropped inside the panel's ring (clip to the inner circle, then scale back to the box), as on the row before. ---- */
.has-article-format .acg-reading .people{display:grid;gap:14px;margin:22px 0 26px}
.has-article-format .acg-reading .person-card{display:grid;grid-template-columns:176px minmax(0,1fr);gap:22px;align-items:start;background:var(--paper);border:1px solid var(--hairline);border-radius:12px;padding:18px 22px}
.has-article-format .acg-reading .pc-who{display:flex;justify-content:center;gap:10px}
.has-article-format .acg-reading .pc-who .wp-block-image{width:96px;margin:0;text-align:center}
.has-article-format .acg-reading .pc-who.is-pair .wp-block-image{width:80px}
.has-article-format .pc-who img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover;border:0;border-radius:0;clip-path:circle(30% at 50% 47%);transform:scale(1.667);transform-origin:50% 47%;margin:0 auto}
.has-article-format .acg-reading .pc-who figcaption{margin:10px 0 0;font-family:var(--sans);font-size:12.5px;line-height:1.3;color:var(--charcoal)}
.has-article-format .acg-reading .pc-txt{margin:0;font-size:16.5px;line-height:1.62}
.has-article-format .acg-reading .pc-txt > strong:first-child{display:block;margin:0 0 6px;font-family:var(--serif);font-size:17.5px;line-height:1.35}
@media(max-width:600px){
  .has-article-format .acg-reading .person-card{grid-template-columns:1fr;gap:14px;padding:18px}
  .has-article-format .acg-reading .pc-who{justify-content:flex-start}
  .has-article-format .acg-reading .pc-who .wp-block-image,.has-article-format .acg-reading .pc-who.is-pair .wp-block-image{width:78px}
}

/* ---- 6. reference lists: no stock bullets; ruled rows with a small ring in the section colour. Ordered lists
   keep their numbers. ---- */
.has-article-format .acg-reading .acg-format ul.wp-block-list{list-style:none;padding:0;margin:14px 0 22px;border-top:1px solid var(--hairline)}
.has-article-format .acg-reading .acg-format ul.wp-block-list > li{position:relative;margin:0;padding:11px 0 11px 30px;border-bottom:1px solid var(--hairline)}
.has-article-format .acg-format ul.wp-block-list > li::before{content:"";position:absolute;left:5px;top:calc(11px + .86em - 5px);width:10px;height:10px;box-sizing:border-box;border-radius:50%;border:2px solid var(--sec,var(--gold-d))}

/* ---- 7. figures: a caption under every content image; the image links to its full-size file, and
   acg-article.js opens it in a lightbox ---- */
.has-article-format .acg-reading .acg-format figure.wp-block-image > a{display:block;border-radius:10px}
.has-article-format .acg-format figure.wp-block-image > a.zoom{cursor:zoom-in}
.has-article-format .acg-format figure.wp-block-image > a img{transition:box-shadow .2s}
.has-article-format .acg-format figure.wp-block-image > a:hover img{box-shadow:0 8px 24px rgba(40,50,45,.16)}
.has-article-format .acg-reading .acg-format figure.wp-block-image figcaption{margin:10px auto 0;max-width:560px;font-family:var(--sans);font-size:13.5px;line-height:1.5;color:var(--muted);text-align:center}
.acg-lightbox{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:56px 20px 28px;border:0;background:transparent;color:#f8f5ee;box-sizing:border-box;overflow-x:hidden}
.acg-lightbox[open]{display:flex;align-items:center;justify-content:center}
.acg-lightbox::backdrop{background:rgba(23,23,22,.92)}
/* 0.22.4: the image and caption stay inside the dialog's padding (at 375 the image was 94vw wide, 2px past the edge) */
.acg-lightbox figure{margin:0;display:flex;flex-direction:column;align-items:center;max-height:100%;max-width:100%;min-width:0}
.acg-lightbox img{display:block;max-width:min(100%,1200px);max-height:calc(100vh - 160px);width:auto;height:auto;border:0;border-radius:6px;background:var(--surface)}
.acg-lightbox figcaption{max-width:720px;margin:14px 0 0;font:14px/1.5 var(--sans);text-align:center;color:#f8f5ee}
.acg-lightbox .lb-close{position:absolute;top:14px;right:16px;font:600 14px/1 var(--sans);color:#f8f5ee;background:rgba(255,255,255,.08);border:1px solid rgba(248,245,238,.5);border-radius:999px;padding:9px 16px;cursor:pointer}
.acg-lightbox .lb-close:hover{background:rgba(255,255,255,.16)}
.acg-lightbox .lb-close:focus-visible{outline:2px solid #f8f5ee;outline-offset:3px}
html.lb-open{overflow:hidden}
@media(prefers-reduced-motion:no-preference){
  .acg-lightbox[open]{animation:acg-lb-in .18s ease-out}
  .acg-lightbox[open]::backdrop{animation:acg-lb-in .18s ease-out}
}
@keyframes acg-lb-in{from{opacity:0}}
@media(prefers-reduced-motion:reduce){.has-article-format .acg-format figure.wp-block-image > a img{transition:none}}

/* ---- 8. spacing the format exposed ---- */
/* the manuscript page: the same space above and below, caption included */
.has-article-format .acg-reading .acg-p-ur .wp-block-image.manuscript{max-width:460px;margin:30px auto 30px}
.has-article-format .acg-reading .acg-p-ur .wp-block-image.manuscript > a{width:max-content;max-width:100%;margin:0 auto}
.has-article-format .acg-reading .acg-format .wp-block-table + .wp-block-image{margin-top:30px}
/* the reflection's quiet photo between two sections */
.has-article-format .acg-reading .acg-format > .wp-block-image.quiet-photo{margin:72px 0 0}
/* a heading never sits closer to the block above than to its own text */
.has-article-format .acg-reading .acg-format .qcard h3,.has-article-format .acg-reading .acg-format .step-card h3,.has-article-format .acg-reading .acg-format .pcard h3{padding:0;border:0}
