/* Articles (theme 5.88.0, 1 Dec 2026). Direction A, picked by Pete 1 Dec ("Build A").
   Source: brand/guidelines/DESIGN-GUIDE.md (Articles section) and tokens.css. Design files:
   content/outputs/articles/2026-11-30-aeo-study/design/.
   1. Blog posts get a white page and ink text (Pete, 1 Dec: black on white is easier to read).
   2. Block styles for the repeating parts of an article, picked in the editor's Styles panel
      (registered in functions.php, gm_article_block_styles):
        Quote     > Sidenote      is-style-gm-sidenote  small grey note, thin grey rule
        Quote     > Takeaway      is-style-gm-takeaway  framed white card, sky shadow, sky label
        Paragraph > So what line  is-style-gm-question  small heading with a sky pixel square
        Table     > Data table    is-style-gm-data      framed table, ink rule under the head row
        Table     > Plan table    is-style-gm-plan      framed, sky heads, pixel step numbers, ticks
        Image     > Framed        is-style-gm-framed    framed print: white mat, ink outline, sky shadow
      The bold words that open a sidenote or takeaway ("Sidenote.", "What to do.") show as the label.
      The plan table's step chips, phone labels and tick list come from gm_article_plan_table().
   Loads on single posts after brand-v1.css, and in the block editor. Older posts are untouched
   except for the white page and ink text. Rollback: remove the enqueue in functions.php. */

body.single-post, body.single-post .blog-single-hero, body.single-post .blog-single-body { background: #fff; }
body.single-post .blog-single-content, body.single-post .blog-single-content p, body.single-post .blog-single-content li { color: #0C0E0F; }

:is(.blog-single-content, .editor-styles-wrapper) {
  --gma-ink: #0C0E0F; --gma-white: #fff; --gma-paper-2: #E8E7E2; --gma-muted: #52565A;
  --gma-line: rgba(12,14,15,.16); --gma-grey-bar: #C9C8C2;
  --gma-sky: #059DD9; --gma-sky-dk: #047AA9;
  --gma-pixel: "Jersey 10", ui-monospace, monospace;
  --gma-c0-tl:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' shape-rendering='crispEdges'%3E%3Cpath fill='%230C0E0F' d='M8 0h4v1h-4zM8 1h4v1h-4zM4 2h6v1h-6zM4 3h6v1h-6zM2 4h4v1h-4zM2 5h4v1h-4zM2 6h2v1h-2zM2 7h2v1h-2zM0 8h4v1h-4zM0 9h4v1h-4zM0 10h2v1h-2zM0 11h2v1h-2z'/%3E%3Cpath fill='%23FFFFFF' d='M10 2h2v1h-2zM10 3h2v1h-2zM6 4h6v1h-6zM6 5h6v1h-6zM4 6h8v1h-8zM4 7h8v1h-8zM4 8h8v1h-8zM4 9h8v1h-8zM2 10h10v1h-10zM2 11h10v1h-10z'/%3E%3C/svg%3E");
  --gma-c0-tr:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' shape-rendering='crispEdges'%3E%3Cpath fill='%230C0E0F' d='M0 0h4v1h-4zM0 1h4v1h-4zM2 2h6v1h-6zM2 3h6v1h-6zM6 4h4v1h-4zM6 5h4v1h-4zM8 6h2v1h-2zM8 7h2v1h-2zM8 8h4v1h-4zM8 9h4v1h-4zM10 10h2v1h-2zM10 11h2v1h-2z'/%3E%3Cpath fill='%23FFFFFF' d='M0 2h2v1h-2zM0 3h2v1h-2zM0 4h6v1h-6zM0 5h6v1h-6zM0 6h8v1h-8zM0 7h8v1h-8zM0 8h8v1h-8zM0 9h8v1h-8zM0 10h10v1h-10zM0 11h10v1h-10z'/%3E%3C/svg%3E");
  --gma-c0-bl:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' shape-rendering='crispEdges'%3E%3Cpath fill='%230C0E0F' d='M0 0h2v1h-2zM0 1h2v1h-2zM0 2h4v1h-4zM0 3h4v1h-4zM2 4h2v1h-2zM2 5h2v1h-2zM2 6h4v1h-4zM2 7h4v1h-4zM4 8h6v1h-6zM4 9h6v1h-6zM8 10h4v1h-4zM8 11h4v1h-4z'/%3E%3Cpath fill='%23FFFFFF' d='M2 0h10v1h-10zM2 1h10v1h-10zM4 2h8v1h-8zM4 3h8v1h-8zM4 4h8v1h-8zM4 5h8v1h-8zM6 6h6v1h-6zM6 7h6v1h-6zM10 8h2v1h-2zM10 9h2v1h-2z'/%3E%3C/svg%3E");
  --gma-c0-br:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' shape-rendering='crispEdges'%3E%3Cpath fill='%230C0E0F' d='M10 0h2v1h-2zM10 1h2v1h-2zM8 2h4v1h-4zM8 3h4v1h-4zM8 4h2v1h-2zM8 5h2v1h-2zM6 6h4v1h-4zM6 7h4v1h-4zM2 8h6v1h-6zM2 9h6v1h-6zM0 10h4v1h-4zM0 11h4v1h-4z'/%3E%3Cpath fill='%23FFFFFF' d='M0 0h10v1h-10zM0 1h10v1h-10zM0 2h8v1h-8zM0 3h8v1h-8zM0 4h8v1h-8zM0 5h8v1h-8zM0 6h6v1h-6zM0 7h6v1h-6zM0 8h2v1h-2zM0 9h2v1h-2z'/%3E%3C/svg%3E");
  --gma-icon-tick:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 11' shape-rendering='crispEdges'%3E%3Cpath fill='%23059DD9' d='M1 0h9v1h1v9h-1v1h-9v-1h-1v-9h1z'/%3E%3Cpath fill='%230C0E0F' d='M8 3h1v1h-1zM7 4h1v1h-1zM8 4h1v1h-1zM2 5h1v1h-1zM6 5h1v1h-1zM7 5h1v1h-1zM2 6h1v1h-1zM3 6h1v1h-1zM5 6h1v1h-1zM6 6h1v1h-1zM3 7h1v1h-1zM4 7h1v1h-1zM5 7h1v1h-1zM4 8h1v1h-1z'/%3E%3C/svg%3E");
  --gma-clip-s:polygon(2px 0,calc(100% - 2px) 0,calc(100% - 2px) 2px,100% 2px,100% calc(100% - 2px),calc(100% - 2px) calc(100% - 2px),calc(100% - 2px) 100%,2px 100%,2px calc(100% - 2px),0 calc(100% - 2px),0 2px,2px 2px);
}

/* ---------- the pixel frame (from tokens.css .px-frame, white fill, sky shadow) ---------- */
:is(.blog-single-content, .editor-styles-wrapper) :is(.is-style-gm-framed, .is-style-gm-data, .is-style-gm-plan, .wp-block-quote.is-style-gm-takeaway) {
  position: relative; isolation: isolate; border: 0; border-radius: 0; background: none; }
:is(.blog-single-content, .editor-styles-wrapper) :is(.is-style-gm-framed, .is-style-gm-data, .is-style-gm-plan, .wp-block-quote.is-style-gm-takeaway)::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--gma-c0-tl) 0 0/12px 12px no-repeat, var(--gma-c0-tr) 100% 0/12px 12px no-repeat,
    var(--gma-c0-bl) 0 100%/12px 12px no-repeat, var(--gma-c0-br) 100% 100%/12px 12px no-repeat,
    linear-gradient(var(--gma-ink),var(--gma-ink)) 12px 0/calc(100% - 24px) 2px no-repeat,
    linear-gradient(var(--gma-ink),var(--gma-ink)) 12px 100%/calc(100% - 24px) 2px no-repeat,
    linear-gradient(var(--gma-ink),var(--gma-ink)) 0 12px/2px calc(100% - 24px) no-repeat,
    linear-gradient(var(--gma-ink),var(--gma-ink)) 100% 12px/2px calc(100% - 24px) no-repeat,
    linear-gradient(var(--gma-white),var(--gma-white)) 12px 2px/calc(100% - 24px) calc(100% - 4px) no-repeat,
    linear-gradient(var(--gma-white),var(--gma-white)) 2px 12px/calc(100% - 4px) calc(100% - 24px) no-repeat;
  filter: drop-shadow(4px 4px 0 var(--gma-sky)); }

/* ---------- images: framed print ---------- */
:is(.blog-single-content, .editor-styles-wrapper) .wp-block-image.is-style-gm-framed { padding: 10px; margin: 36px 4px 40px 0; }
:is(.blog-single-content, .editor-styles-wrapper) .wp-block-image.is-style-gm-framed img { display: block; width: 100%; height: auto; margin: 0; border-radius: 0; }

/* ---------- tables: shared ---------- */
:is(.blog-single-content, .editor-styles-wrapper) .wp-block-table:is(.is-style-gm-data, .is-style-gm-plan) { margin: 36px 4px 40px 0; overflow: visible; }
:is(.blog-single-content, .editor-styles-wrapper) :is(.is-style-gm-data, .is-style-gm-plan) table { width: 100%; margin: 0; border-collapse: collapse; font-size: 16px; }
:is(.blog-single-content, .editor-styles-wrapper) :is(.is-style-gm-data, .is-style-gm-plan) :is(th, td) {
  border: 0; border-radius: 0 !important; background: none; color: var(--gma-ink); text-align: left; }
:is(.blog-single-content, .editor-styles-wrapper) :is(.is-style-gm-data, .is-style-gm-plan) tr:nth-child(even) td:not([colspan]) { background: none; }
:is(.blog-single-content, .editor-styles-wrapper) :is(.is-style-gm-data, .is-style-gm-plan) thead { border: 0; }

/* data table */
:is(.blog-single-content, .editor-styles-wrapper) .is-style-gm-data { padding: 8px 12px; }
:is(.blog-single-content, .editor-styles-wrapper) .is-style-gm-data th { font-size: 15px; font-weight: 700; line-height: 1.35; padding: 14px 12px; border-bottom: 2px solid var(--gma-ink); }
:is(.blog-single-content, .editor-styles-wrapper) .is-style-gm-data td { padding: 12px; line-height: 1.45; border-bottom: 1px solid var(--gma-line); font-variant-numeric: tabular-nums; }
:is(.blog-single-content, .editor-styles-wrapper) .is-style-gm-data tr:last-child td { border-bottom: 0; }
:is(.blog-single-content, .editor-styles-wrapper) .is-style-gm-data td:first-child { font-weight: 600; }

/* plan table */
:is(.blog-single-content, .editor-styles-wrapper) .is-style-gm-plan { padding: 2px; }
:is(.blog-single-content, .editor-styles-wrapper) .is-style-gm-plan th { background: var(--gma-sky); font-size: 16px; font-weight: 700; padding: 16px 18px; border-bottom: 2px solid var(--gma-ink); }
/* cells that touch the frame's stepped corners are clipped to the same steps */
:is(.blog-single-content, .editor-styles-wrapper) .is-style-gm-plan th:first-child { clip-path: polygon(0 8px, 2px 8px, 2px 4px, 4px 4px, 4px 2px, 8px 2px, 8px 0, 100% 0, 100% 100%, 0 100%); }
:is(.blog-single-content, .editor-styles-wrapper) .is-style-gm-plan th:last-child { clip-path: polygon(0 0, calc(100% - 8px) 0, calc(100% - 8px) 2px, calc(100% - 4px) 2px, calc(100% - 4px) 4px, calc(100% - 2px) 4px, calc(100% - 2px) 8px, 100% 8px, 100% 100%, 0 100%); }
:is(.blog-single-content, .editor-styles-wrapper) .is-style-gm-plan td[colspan] { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 2px) calc(100% - 8px), calc(100% - 2px) calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) calc(100% - 2px), calc(100% - 8px) calc(100% - 2px), calc(100% - 8px) 100%, 8px 100%, 8px calc(100% - 2px), 4px calc(100% - 2px), 4px calc(100% - 4px), 2px calc(100% - 4px), 2px calc(100% - 8px), 0 calc(100% - 8px)); }
:is(.blog-single-content, .editor-styles-wrapper) .is-style-gm-plan :is(th + th, td + td) { border-left: 1px solid var(--gma-line); }
:is(.blog-single-content, .editor-styles-wrapper) .is-style-gm-plan td { padding: 16px 18px; font-size: 16px; line-height: 1.5; vertical-align: top; border-bottom: 1px solid var(--gma-line); }
:is(.blog-single-content, .editor-styles-wrapper) .is-style-gm-plan td.gm-step-cell { position: relative; padding-left: 54px; }
:is(.blog-single-content, .editor-styles-wrapper) .is-style-gm-plan .gm-step {
  position: absolute; left: 18px; top: 15px; display: grid; place-items: center; width: 26px; height: 26px;
  font-size: 15px; font-weight: 650; line-height: 1; background: var(--gma-white);
  outline: 2px solid var(--gma-ink); outline-offset: -2px; clip-path: var(--gma-clip-s); }
:is(.blog-single-content, .editor-styles-wrapper) .is-style-gm-plan td[colspan] { background: var(--gma-paper-2); border-bottom: 0; padding: 20px 18px 14px; }
:is(.blog-single-content, .editor-styles-wrapper) .is-style-gm-plan td ul { margin: 10px 0 0; padding: 0; list-style: none; }
:is(.blog-single-content, .editor-styles-wrapper) .is-style-gm-plan td li { position: relative; margin: 0 0 8px; padding-left: 30px; font-size: 16px; line-height: 1.5; }
:is(.blog-single-content, .editor-styles-wrapper) .is-style-gm-plan td li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px;
  background: var(--gma-icon-tick) center/18px no-repeat; image-rendering: pixelated; }

/* ---------- "So what" line ---------- */
:is(.blog-single-content, .editor-styles-wrapper) p.is-style-gm-question {
  margin: 44px 0 14px; font-size: clamp(20px, 1.7vw, 24px); font-weight: 600; line-height: 1.25; letter-spacing: -.015em; color: var(--gma-ink); }
:is(.blog-single-content, .editor-styles-wrapper) p.is-style-gm-question::before {
  content: ""; display: inline-block; width: 10px; height: 10px; margin: 0 12px 3px 0; background: var(--gma-sky); }

/* ---------- sidenote and takeaway ---------- */
:is(.blog-single-content, .editor-styles-wrapper) .wp-block-quote:is(.is-style-gm-sidenote, .is-style-gm-takeaway) {
  font-style: normal; background: none; border-radius: 0; color: var(--gma-ink); quotes: none; }
:is(.blog-single-content, .editor-styles-wrapper) .wp-block-quote:is(.is-style-gm-sidenote, .is-style-gm-takeaway) p { margin: 0; font-style: normal; }
:is(.blog-single-content, .editor-styles-wrapper) .wp-block-quote:is(.is-style-gm-sidenote, .is-style-gm-takeaway) p + p { margin-top: 10px; }
:is(.blog-single-content, .editor-styles-wrapper) .wp-block-quote:is(.is-style-gm-sidenote, .is-style-gm-takeaway) p:first-child > strong:first-child {
  display: block; margin-bottom: 8px; font-family: var(--gma-pixel); font-weight: 400; font-size: 20px; line-height: 20px; letter-spacing: .02em; }

:is(.blog-single-content, .editor-styles-wrapper) .wp-block-quote.is-style-gm-sidenote { margin: 28px 0; padding: 2px 0 2px 18px; border: 0; border-left: 2px solid var(--gma-grey-bar); }
:is(.blog-single-content, .editor-styles-wrapper) .wp-block-quote.is-style-gm-sidenote p,
:is(.blog-single-content, .editor-styles-wrapper) .wp-block-quote.is-style-gm-sidenote p > strong:first-child { font-size: 15px; line-height: 1.55; color: var(--gma-muted); }
:is(.blog-single-content, .editor-styles-wrapper) .wp-block-quote.is-style-gm-sidenote p:first-child > strong:first-child { font-size: 20px; line-height: 20px; }

:is(.blog-single-content, .editor-styles-wrapper) .wp-block-quote.is-style-gm-takeaway { margin: 32px 4px 12px 0; padding: 24px 28px 26px; }
:is(.blog-single-content, .editor-styles-wrapper) .wp-block-quote.is-style-gm-takeaway p { font-size: 18px; font-weight: 500; line-height: 1.55; color: var(--gma-ink); }
:is(.blog-single-content, .editor-styles-wrapper) .wp-block-quote.is-style-gm-takeaway p:first-child > strong:first-child { color: var(--gma-sky-dk); }

/* ---------- phones: the plan table stacks into one block per column, then the everyone row ---------- */
@media (max-width: 820px) {
  :is(.blog-single-content, .editor-styles-wrapper) .is-style-gm-plan table { display: block; }
  :is(.blog-single-content, .editor-styles-wrapper) .is-style-gm-plan thead { display: none; }
  :is(.blog-single-content, .editor-styles-wrapper) .is-style-gm-plan tbody { display: grid; grid-template-columns: 1fr; }
  :is(.blog-single-content, .editor-styles-wrapper) .is-style-gm-plan tr { display: contents; }
  :is(.blog-single-content, .editor-styles-wrapper) .is-style-gm-plan td { display: block; border-left: 0 !important; }
  :is(.blog-single-content, .editor-styles-wrapper) .is-style-gm-plan td:nth-child(1) { order: 1; }
  :is(.blog-single-content, .editor-styles-wrapper) .is-style-gm-plan td:nth-child(2) { order: 2; }
  :is(.blog-single-content, .editor-styles-wrapper) .is-style-gm-plan td:nth-child(3) { order: 3; }
  :is(.blog-single-content, .editor-styles-wrapper) .is-style-gm-plan td[colspan] { order: 4; }
  :is(.blog-single-content, .editor-styles-wrapper) .is-style-gm-plan td[data-col] { position: relative; padding-top: 64px; }
  :is(.blog-single-content, .editor-styles-wrapper) .is-style-gm-plan td[data-col] .gm-step { top: 63px; }
  :is(.blog-single-content, .editor-styles-wrapper) .is-style-gm-plan td[data-col]::before {
    content: attr(data-col); position: absolute; left: 0; right: 0; top: 0; padding: 12px 18px;
    background: var(--gma-sky); font-weight: 700; border-bottom: 2px solid var(--gma-ink); }
  :is(.blog-single-content, .editor-styles-wrapper) .is-style-gm-plan tbody > tr:first-child > td:first-child[data-col]::before { clip-path: polygon(0 8px, 2px 8px, 2px 4px, 4px 4px, 4px 2px, 8px 2px, 8px 0, calc(100% - 8px) 0, calc(100% - 8px) 2px, calc(100% - 4px) 2px, calc(100% - 4px) 4px, calc(100% - 2px) 4px, calc(100% - 2px) 8px, 100% 8px, 100% 100%, 0 100%); }
  :is(.blog-single-content, .editor-styles-wrapper) .is-style-gm-data { overflow-x: auto; }
  :is(.blog-single-content, .editor-styles-wrapper) .wp-block-quote.is-style-gm-takeaway { padding: 20px 20px 22px; }
  :is(.blog-single-content, .editor-styles-wrapper) .wp-block-quote.is-style-gm-takeaway p { font-size: 17px; }
}

/* the step number for screen readers (the pixel chip is hidden from them) */
:is(.blog-single-content, .editor-styles-wrapper) .is-style-gm-plan .screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ===================================================================================================
   The rest of a blog post page (5.88.1, 1 Dec 2026, Pete: "Yes, both"): the related cards, author box,
   sidebar boxes, the contents box and its "Index" tab, and the in-post diagnostic box, moved onto the
   same pixel frame. The post thumbnails themselves are not changed.
   =================================================================================================== */
body.single-post {
  --gma-ink: #0C0E0F; --gma-white: #fff; --gma-paper-2: #E8E7E2; --gma-muted: #52565A; --gma-line: rgba(12,14,15,.16);
  --gma-sky: #059DD9; --gma-sky-deep: #03597C; --gma-pixel: "Jersey 10", ui-monospace, monospace;
  --gma-c0-tl:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' shape-rendering='crispEdges'%3E%3Cpath fill='%230C0E0F' d='M8 0h4v1h-4zM8 1h4v1h-4zM4 2h6v1h-6zM4 3h6v1h-6zM2 4h4v1h-4zM2 5h4v1h-4zM2 6h2v1h-2zM2 7h2v1h-2zM0 8h4v1h-4zM0 9h4v1h-4zM0 10h2v1h-2zM0 11h2v1h-2z'/%3E%3Cpath fill='%23FFFFFF' d='M10 2h2v1h-2zM10 3h2v1h-2zM6 4h6v1h-6zM6 5h6v1h-6zM4 6h8v1h-8zM4 7h8v1h-8zM4 8h8v1h-8zM4 9h8v1h-8zM2 10h10v1h-10zM2 11h10v1h-10z'/%3E%3C/svg%3E");
  --gma-c0-tr:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' shape-rendering='crispEdges'%3E%3Cpath fill='%230C0E0F' d='M0 0h4v1h-4zM0 1h4v1h-4zM2 2h6v1h-6zM2 3h6v1h-6zM6 4h4v1h-4zM6 5h4v1h-4zM8 6h2v1h-2zM8 7h2v1h-2zM8 8h4v1h-4zM8 9h4v1h-4zM10 10h2v1h-2zM10 11h2v1h-2z'/%3E%3Cpath fill='%23FFFFFF' d='M0 2h2v1h-2zM0 3h2v1h-2zM0 4h6v1h-6zM0 5h6v1h-6zM0 6h8v1h-8zM0 7h8v1h-8zM0 8h8v1h-8zM0 9h8v1h-8zM0 10h10v1h-10zM0 11h10v1h-10z'/%3E%3C/svg%3E");
  --gma-c0-bl:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' shape-rendering='crispEdges'%3E%3Cpath fill='%230C0E0F' d='M0 0h2v1h-2zM0 1h2v1h-2zM0 2h4v1h-4zM0 3h4v1h-4zM2 4h2v1h-2zM2 5h2v1h-2zM2 6h4v1h-4zM2 7h4v1h-4zM4 8h6v1h-6zM4 9h6v1h-6zM8 10h4v1h-4zM8 11h4v1h-4z'/%3E%3Cpath fill='%23FFFFFF' d='M2 0h10v1h-10zM2 1h10v1h-10zM4 2h8v1h-8zM4 3h8v1h-8zM4 4h8v1h-8zM4 5h8v1h-8zM6 6h6v1h-6zM6 7h6v1h-6zM10 8h2v1h-2zM10 9h2v1h-2z'/%3E%3C/svg%3E");
  --gma-c0-br:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' shape-rendering='crispEdges'%3E%3Cpath fill='%230C0E0F' d='M10 0h2v1h-2zM10 1h2v1h-2zM8 2h4v1h-4zM8 3h4v1h-4zM8 4h2v1h-2zM8 5h2v1h-2zM6 6h4v1h-4zM6 7h4v1h-4zM2 8h6v1h-6zM2 9h6v1h-6zM0 10h4v1h-4zM0 11h4v1h-4z'/%3E%3Cpath fill='%23FFFFFF' d='M0 0h10v1h-10zM0 1h10v1h-10zM0 2h8v1h-8zM0 3h8v1h-8zM0 4h8v1h-8zM0 5h8v1h-8zM0 6h6v1h-6zM0 7h6v1h-6zM0 8h2v1h-2zM0 9h2v1h-2z'/%3E%3C/svg%3E");
  --gma-icon-tick:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 11' shape-rendering='crispEdges'%3E%3Cpath fill='%23059DD9' d='M1 0h9v1h1v9h-1v1h-9v-1h-1v-9h1z'/%3E%3Cpath fill='%230C0E0F' d='M8 3h1v1h-1zM7 4h1v1h-1zM8 4h1v1h-1zM2 5h1v1h-1zM6 5h1v1h-1zM7 5h1v1h-1zM2 6h1v1h-1zM3 6h1v1h-1zM5 6h1v1h-1zM6 6h1v1h-1zM3 7h1v1h-1zM4 7h1v1h-1zM5 7h1v1h-1zM4 8h1v1h-1z'/%3E%3C/svg%3E");
  --gma-clip-s:polygon(2px 0,calc(100% - 2px) 0,calc(100% - 2px) 2px,100% 2px,100% calc(100% - 2px),calc(100% - 2px) calc(100% - 2px),calc(100% - 2px) 100%,2px 100%,2px calc(100% - 2px),0 calc(100% - 2px),0 2px,2px 2px);
  --gma-c1-tl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' shape-rendering='crispEdges'%3E%3Cpath fill='%230C0E0F' d='M8 0h4v2h-4zM4 2h8v2h-8zM2 4h10v4h-10zM0 8h12v4h-12z'/%3E%3C/svg%3E");
  --gma-c1-tr: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' shape-rendering='crispEdges'%3E%3Cpath fill='%230C0E0F' d='M0 0h4v2h-4zM0 2h8v2h-8zM0 4h10v4h-10zM0 8h12v4h-12z'/%3E%3C/svg%3E");
  --gma-c1-bl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' shape-rendering='crispEdges'%3E%3Cpath fill='%230C0E0F' d='M0 0h12v4h-12zM2 4h10v4h-10zM4 8h8v2h-8zM8 10h4v2h-4z'/%3E%3C/svg%3E");
  --gma-c1-br: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' shape-rendering='crispEdges'%3E%3Cpath fill='%230C0E0F' d='M0 0h12v4h-12zM0 4h10v4h-10zM0 8h8v2h-8zM0 10h4v2h-4z'/%3E%3C/svg%3E");
}

/* the frame, as on the article parts: white fill, ink outline, sky shadow */
body.single-post :is(.blog-card, .blog-author-box, .gm-sidebar-widget, .gm-url-box-inline),
body.single-post div#ez-toc-container.ez-toc-light-blue {
  position: relative; isolation: isolate; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important;
  --gma-f: var(--gma-white); --gma-tl: var(--gma-c0-tl); --gma-tr: var(--gma-c0-tr); --gma-bl: var(--gma-c0-bl); --gma-br: var(--gma-c0-br);
  --gma-so: 4px; --gma-sc: var(--gma-sky); }
body.single-post .gm-url-box-inline { --gma-f: var(--gma-ink); --gma-tl: var(--gma-c1-tl); --gma-tr: var(--gma-c1-tr); --gma-bl: var(--gma-c1-bl); --gma-br: var(--gma-c1-br); }
body.single-post :is(.blog-card, .blog-author-box, .gm-sidebar-widget, .gm-url-box-inline)::before,
body.single-post div#ez-toc-container.ez-toc-light-blue::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--gma-tl) 0 0/12px 12px no-repeat, var(--gma-tr) 100% 0/12px 12px no-repeat,
    var(--gma-bl) 0 100%/12px 12px no-repeat, var(--gma-br) 100% 100%/12px 12px no-repeat,
    linear-gradient(var(--gma-ink),var(--gma-ink)) 12px 0/calc(100% - 24px) 2px no-repeat,
    linear-gradient(var(--gma-ink),var(--gma-ink)) 12px 100%/calc(100% - 24px) 2px no-repeat,
    linear-gradient(var(--gma-ink),var(--gma-ink)) 0 12px/2px calc(100% - 24px) no-repeat,
    linear-gradient(var(--gma-ink),var(--gma-ink)) 100% 12px/2px calc(100% - 24px) no-repeat,
    linear-gradient(var(--gma-f),var(--gma-f)) 12px 2px/calc(100% - 24px) calc(100% - 4px) no-repeat,
    linear-gradient(var(--gma-f),var(--gma-f)) 2px 12px/calc(100% - 4px) calc(100% - 24px) no-repeat;
  filter: drop-shadow(var(--gma-so) var(--gma-so) 0 var(--gma-sc)); }

/* hero meta and card meta: no lone dot when the date is empty */
body.single-post .blog-single-date:empty, body.single-post .blog-single-date:empty + .meta-sep,
body.single-post .blog-card-meta span:empty, body.single-post .blog-card-meta span:empty + span { display: none; }

/* in-post diagnostic box: ink card in the frame, sky shadow, no side bar */
body.single-post .gm-url-box-inline { border-left: 0 !important; margin: 40px 4px 44px 0; }

/* contents box */
body.single-post div#ez-toc-container.ez-toc-light-blue { display: block; width: auto; padding: 22px 26px 18px; margin: 36px 4px 40px 0; }
body.single-post #ez-toc-container .ez-toc-title { font-family: "Archivo", system-ui, sans-serif; font-size: 18px; font-weight: 600; color: var(--gma-ink); }
body.single-post #ez-toc-container nav { margin-top: 10px; }
body.single-post #ez-toc-container ul li, body.single-post #ez-toc-container ul li a { font-size: 16px; line-height: 1.5; color: var(--gma-ink); text-decoration: none; }
body.single-post #ez-toc-container ul li { margin: 0 0 6px; }
body.single-post #ez-toc-container ul li a:hover { color: var(--gma-sky-deep); text-decoration: underline; }
body.single-post #ez-toc-container .ez-toc-btn { border: 0; background: none; box-shadow: none; }

/* the contents plugin's sticky "Index" tab: square, ink, and off on phones where it covered the text */
body.single-post .ez-toc-open-icon { border-radius: 0 !important; background: var(--gma-ink) !important; color: var(--gma-white) !important; box-shadow: none !important; }
body.single-post .ez-toc-open-icon .text { font-family: var(--gma-pixel); font-size: 18px; letter-spacing: .04em; }
@media (max-width: 820px) { body.single-post .ez-toc-sticky { display: none !important; } }

/* author box */
body.single-post .blog-author-box { margin: 56px 4px 8px 0; padding: 24px 28px; }
body.single-post .blog-author-avatar img { border-radius: 0; clip-path: var(--gma-clip-s); }
body.single-post .blog-author-label { font-family: var(--gma-pixel); font-size: 20px; line-height: 20px; letter-spacing: .02em; text-transform: none; color: var(--gma-muted); }
body.single-post .blog-author-name a { color: var(--gma-ink); text-decoration: none; font-weight: 650; }
body.single-post .blog-author-name a:hover { color: var(--gma-sky-deep); text-decoration: underline; }

/* sidebar */
body.single-post .gm-sidebar-widget { padding: 24px; margin-right: 4px; }
body.single-post .gm-sidebar-title { font-size: 18px; font-weight: 600; color: var(--gma-ink); }
body.single-post .gm-sidebar-cat-list a { color: var(--gma-ink); }
body.single-post .gm-sidebar-cat-list a:hover { color: var(--gma-sky-deep); }
body.single-post .gm-sidebar-cat-count { border-radius: 0; background: var(--gma-paper-2); color: var(--gma-ink); clip-path: var(--gma-clip-s); }
body.single-post .gm-sidebar-post-thumb { border-radius: 0; }

/* related posts: white band, framed cards; the card presses 2px into its shadow on hover */
body.single-post .blog-related { background: #fff; border-top: 1px solid var(--gma-line); }
body.single-post .blog-card { overflow: visible; padding: 2px; transform: none; transition: transform .12s steps(2); }
body.single-post .blog-card:hover { transform: translate(2px, 2px); --gma-so: 2px; }
body.single-post .blog-card-img { overflow: hidden; clip-path: polygon(0 8px, 2px 8px, 2px 4px, 4px 4px, 4px 2px, 8px 2px, 8px 0, calc(100% - 8px) 0, calc(100% - 8px) 2px, calc(100% - 4px) 2px, calc(100% - 4px) 4px, calc(100% - 2px) 4px, calc(100% - 2px) 8px, 100% 8px, 100% 100%, 0 100%); border-bottom: 2px solid var(--gma-ink); }
body.single-post .blog-card:hover .blog-card-img img { transform: none; }
body.single-post .blog-card-cat { color: var(--gma-sky-deep); }
body.single-post .blog-card h3 { font-weight: 600; color: var(--gma-ink); }
body.single-post .blog-card:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { body.single-post .blog-card { transition: none; } }
