/* =========================================================
   AWWRT BLOG TYPOGRAPHY + SPACING — DRAFT (17 Nov 2026)
   Brings the /blogs cards and the single blog page closer to
   Medium's reading proportions, on one spacing scale.
   Roboto and the dark palette stay.

   HOW IT LOADS
   The current blog CSS sits in <style> blocks inside <body>, so it
   comes after anything in <head>. Every selector below is prefixed
   with the page wrapper (.blogs-archive-page / .single-blog-page)
   to win on specificity instead. This works from Appearance >
   Customize > Additional CSS or from a theme stylesheet.

   Breakpoints match the existing CSS: 991px (tablet), 767px (phone).
========================================================= */


/* =========================================================
   0. SPACING SCALE
   Every gap below comes from these tokens. Base unit 4px:
   8 · 12 · 16 · 24 · 32 · 48 · 64. Phones step down one notch.

   Rules of thumb used throughout:
   - Things that belong together sit close (a lead-in sentence and
     its list or screenshot: 16px).
   - Paragraphs are about one line apart on desktop (30px); phones
     use Medium's tighter mobile rhythm (17px, chosen 17 Nov 2026).
   - Media gets more room after it than before it (32px), so the
     next sentence doesn't stick to the image.
   - Steps and FAQ items are separate units (40px each).
   - Sections get the largest gap (48px each side of the divider).
========================================================= */

.single-blog-page,
.blogs-archive-page {
    --space-8: 8px;
    --space-12: 12px;
    --space-16: 16px;
    --space-24: 24px;
    --space-32: 32px;
    --space-48: 48px;
    --space-64: 64px;

    --flow: 30px;          /* paragraph to paragraph */
    --flow-tight: 16px;    /* lead-in text to its own list / image */
    --media-after: 32px;   /* image, table or hotspot to next text */
    --head-after: 12px;    /* heading to its first line */
    --step-gap: 40px;      /* between steps */
    --sub-gap: 48px;       /* above a subheading (H3) */
    --faq-gap: 40px;       /* between FAQ items */
    --section: 48px;       /* each side of a section divider */
    --card-pad: 24px;      /* inside listing / related cards */
    --radius: 7px;         /* matches the existing cards */

    /* Text colours, matched to Medium's dark mode contrast.
       Medium (#171717 background) uses two levels only:
         primary   #e5e5e5 = 14.2:1  titles, headings, body, names
         secondary #b3b3b3 =  8.6:1  subtitles, dates, "in"/"by"
       No pure-white titles, no dimmer third grey, bold = body colour.
       Below: the same two contrast levels in AWWRT's blue-grey,
       solved for the page background (#15171d). Cards override
       these further down so they hit the same ratios on #202229.
       17 Nov 2026 (user): reading text one step softer than headings,
       following Material/Apple dark-theme practice (bright for headings
       and emphasis, softer for body): 14.2 → 12.0 → 8.6. */
    --text-heading: #e2e5ec;    /* 14.2:1 — titles, H1–H4, step labels */
    --text-body: #cfd4dd;       /* 12.0:1 — reading text, table cells  */
    --text-strong: #cfd4dd;     /* 12.0:1 — bold is weight only        */
    --text-secondary: #aab4c6;  /*  8.6:1 — excerpts, captions       */
    --text-muted: #aab4c6;      /*  8.6:1 — labels, dates, contents  */
    --text-faint: #4b5466;      /*  2.4:1 — separators only          */
    --text-accent: #75b8ff;     /*  8.6:1 — categories, links        */
    --accent: #168cff;          /* brand blue for lines and hover    */
    --surface-raised: #1b1e25;  /* table header, callouts            */
}

/* Same contrast on the lighter background of the category chips
   (#202229). Blog cards no longer have a box, so they use the page
   colours above. */
.blogs-archive-page .blog-category-card {
    --text-heading: #f1f2f6;    /* 14.2:1 on card */
    --text-body: #f1f2f6;
    --text-strong: #f1f2f6;
    --text-secondary: #b6bfcf;  /*  8.6:1 on card */
    --text-muted: #b6bfcf;
    --text-accent: #8ac3ff;     /*  8.6:1 on card */
}

/* Phones: Medium-style mobile rhythm (measured from Medium's app,
   17 Nov 2026), then text and spacing both enlarged by 18/17
   (body 17 → 18px, same evening): paragraph 17 < image/step 25 <
   subheading 30 < section 34. Lines 1.7 apart (section 1). */
@media (max-width: 767px) {
    .single-blog-page,
    .blogs-archive-page {
        --flow: 17px;
        --flow-tight: 13px;
        --media-after: 25px;
        --head-after: 8px;
        --step-gap: 25px;
        --sub-gap: 30px;
        --faq-gap: 25px;
        --section: 32px;
        --card-pad: 20px;
    }
}


/* =========================================================
   1. SINGLE BLOG PAGE
========================================================= */

/* Reading column: 680px, like Medium (about 75–80 characters of
   18px Roboto). The sidebar keeps its 270px; the pair is centered. */
.single-blog-page .single-blog-layout {
    grid-template-columns: minmax(0, 680px) 270px;
    justify-content: center;
    gap: 80px;
}

/* ---------- Header: breadcrumb → title → meta → rule → image ----------
   Before: 20 / 20 / 28 / 46 / 48. After: 32 / 16 / 24 / 32 / 48.
   The breadcrumb and byline spacing live in section 5 (one place). */

/* Same width as column + gap + sidebar (680 + 80 + 270), centered,
   so the breadcrumb starts on the title's left edge. */
.single-blog-page .single-blog-breadcrumb {
    max-width: 1030px;
    margin-left: auto;
    margin-right: auto;
}

.single-blog-page .single-blog-title {
    margin-bottom: var(--space-16);
    font-size: 42px;
    line-height: 1.18;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.single-blog-page .single-blog-top-divider {
    margin-bottom: var(--space-32);
}

.single-blog-page .single-blog-featured-image {
    margin-bottom: var(--space-48);
}

.single-blog-page .single-blog-featured-image img {
    border-radius: var(--radius);
}

/* ---------- Body text ---------- */
.single-blog-page .single-blog-content {
    font-size: 18px;
    line-height: 1.7;
}

.single-blog-page .single-blog-content > :first-child {
    margin-top: 0;
}

.single-blog-page .single-blog-content > :last-child {
    margin-bottom: 0;
}

.single-blog-page .single-blog-content p {
    margin: 0 0 var(--flow);
}

/* ---------- Headings: big space above, small below ---------- */
/* The gaps form one ladder:
   paragraph 30 < step 40 < subheading 48 < section 64
   (phone, Medium-style: 17 < 25 < 30 < 34).

   Section headings (H2) are centred chapter breaks: a short 48px
   rule, 24px of space, then the heading. This replaces the old
   full-width divider line. On phones the heading and its rule move
   to the left edge so long headings don't wrap into ragged centred
   lines. */
.single-blog-page .single-blog-content h2 {
    margin: var(--space-64) 0 var(--space-16);
    font-size: 26px;
    line-height: 1.25;
    letter-spacing: -0.01em;
    text-align: center;
    text-wrap: balance;
}

.single-blog-page .single-blog-content h2::before {
    content: "";
    display: block;
    width: 48px;
    height: 1px;
    margin: 0 auto var(--space-24);
    background: var(--text-faint);
}

/* The first heading sits right under the cover image; no rule needed. */
.single-blog-page .single-blog-content > h2:first-child::before {
    display: none;
}

.single-blog-page .single-blog-content h3 {
    margin: var(--sub-gap) 0 var(--space-8);
    font-size: 21px;
    font-weight: 700;   /* the theme left H3 at 400; bold like H2 (and Medium) */
    line-height: 1.3;
    text-wrap: balance;
}

.single-blog-page .single-blog-content h4 {
    margin: var(--space-24) 0 var(--space-8);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

/* A subheading straight under a section heading belongs to it. */
.single-blog-page .single-blog-content h2 + h3 {
    margin-top: var(--space-16);
}

/* ---------- Section dividers ----------
   Before: a full-width line before every H2 with 48px on each side,
   about 97px per break, 10 times in one guide. The full lines are
   hidden; each H2 draws its own short centred rule instead (above). */
.single-blog-page .single-blog-content hr.wp-block-separator,
.single-blog-page .single-blog-content > hr {
    display: none;
}

/* ---------- Lists ----------
   The theme's CSS reset removes bullets and numbers, so list items
   looked like stray indented paragraphs. They come back here, in the
   secondary grey so they guide the eye without shouting. */
.single-blog-page .single-blog-content ul,
.single-blog-page .single-blog-content ol {
    margin: 0 0 var(--flow);
    padding-left: 24px;
}

.single-blog-page .single-blog-content ul {
    list-style: disc outside;
}

.single-blog-page .single-blog-content ol {
    list-style: decimal outside;
}

.single-blog-page .single-blog-content :is(ul, ol) ul {
    list-style-type: circle;
}

.single-blog-page .single-blog-content li {
    display: list-item;
    padding-left: 4px;
}

.single-blog-page .single-blog-content li::marker {
    color: var(--text-secondary);
}

.single-blog-page .single-blog-content ol > li::marker {
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.single-blog-page .single-blog-content li {
    margin-bottom: var(--space-12);
}

.single-blog-page .single-blog-content li:last-child {
    margin-bottom: 0;
}

.single-blog-page .single-blog-content li > p {
    margin-bottom: var(--space-8);
}

.single-blog-page .single-blog-content li > ul,
.single-blog-page .single-blog-content li > ol {
    margin: var(--space-8) 0 0;
}

/* ---------- Images, hotspots and tables ----------
   Before: 30px above, 0px below, so the next line touched the image.
   After: the lead-in sits 16px above its image; 32px clears below. */
.single-blog-page .single-blog-content .wp-block-image,
.single-blog-page .single-blog-content .wp-block-getwid-image-hotspot,
.single-blog-page .single-blog-content .wp-block-table {
    margin: 0 0 var(--media-after);
}

/* Only the vertical margins: WordPress centers .aligncenter with auto
   side margins, which must stay. */
.single-blog-page .single-blog-content .wp-block-image figure {
    margin-top: 0;
    margin-bottom: 0;
}

/* Screenshots fill the column, like Medium. Before: fixed at 460px by
   an inline style in a 680px column, so UI text inside them was hard
   to read. Tall screenshots stop at 560px high so one image can't
   take over the screen. No outline (ring removed 18 Nov 2026 at the
   user's request). */
.single-blog-page .single-blog-content .wp-block-image img {
    display: block;
    width: auto !important;   /* beats WordPress's inline width:460px */
    max-width: 100%;
    height: auto !important;
    max-height: 560px;
    margin-left: auto;
    margin-right: auto;
    border-radius: var(--radius);
}

.single-blog-page .single-blog-content .wp-block-image figure.is-resized {
    display: block;
    width: 100%;
}

.single-blog-page .single-blog-content .wp-block-table table {
    margin: 0;
}

/* Text that introduces a list or a screenshot sits close to it. */
.single-blog-page .single-blog-content :is(p, ul, ol):has(+ :is(ul, ol, .wp-block-image, .wp-block-getwid-image-hotspot, .wp-block-table)) {
    margin-bottom: var(--flow-tight);
}

.single-blog-page .single-blog-content figcaption {
    margin-top: var(--space-8);
    font-size: 14px;
    line-height: 1.45;
}

/* ---------- Tables: see section 6 ---------- */

/* ---------- Callouts (blockquote) ---------- */
.single-blog-page .single-blog-content blockquote {
    margin: var(--space-32) 0;
    padding: var(--space-16) var(--space-24);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.single-blog-page .single-blog-content blockquote > :last-child {
    margin-bottom: 0;
}

/* ---------- Steps ----------
   Every guide has an H2 with id="step-by-step-guide". Each step is a
   paragraph that opens with <strong>Step N…</strong>. Extra space above
   each step separates it from the previous step's images and lists.
   The rule stops at the next H2 and skips a step right under a heading. */
.single-blog-page .single-blog-content #step-by-step-guide ~ p:has(> strong:first-child):not(#step-by-step-guide ~ h2 ~ p):not(h2 + p):not(h3 + p) {
    margin-top: var(--step-gap);
}

.single-blog-page .single-blog-content #step-by-step-guide ~ p > strong:first-child:not(#step-by-step-guide ~ h2 ~ p > strong) {
    color: var(--text-heading);
}

/* ---------- FAQ ----------
   Every guide has an H2 with id="faq". Each question is
   <strong>Question?</strong><br>Answer. The question becomes its own
   larger line and the <br> is hidden so no blank line appears. */
.single-blog-page .single-blog-content #faq ~ p:has(> strong:first-child + br):not(#faq ~ h2 ~ p) {
    margin: 0 0 var(--faq-gap);
}

.single-blog-page .single-blog-content #faq ~ p:not(#faq ~ h2 ~ p) > strong:first-child:has(+ br) {
    display: block;
    margin-bottom: var(--space-8);
    color: var(--text-heading);
    font-size: 22px;
    line-height: 1.3;
    letter-spacing: -0.005em;
}

.single-blog-page .single-blog-content #faq ~ p:not(#faq ~ h2 ~ p) > strong:first-child + br {
    display: none;
}

/* ---------- Related blogs section ----------
   Before: 80px + 35px above. After: one 64px break.
   The cards themselves are styled in section 4. */
.single-blog-page .single-blog-related {
    margin-top: var(--space-64);
    padding-top: var(--space-32);
}

.single-blog-page .single-blog-related-header {
    margin-bottom: var(--space-24);
}

/* ---------- Tablet ---------- */
@media (max-width: 991px) {
    .single-blog-page .single-blog-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .single-blog-page .single-blog-main,
    .single-blog-page .single-blog-breadcrumb {
        max-width: 680px;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }

    .single-blog-page .single-blog-title {
        font-size: 40px;
    }
}

/* ---------- Phone ---------- */
@media (max-width: 767px) {
    .single-blog-page .single-blog-container {
        padding: 0 24px;
    }

    .single-blog-page .single-blog-title {
        margin-bottom: var(--space-12);
        font-size: 34px;
        line-height: 1.2;
        letter-spacing: -0.015em;
    }

    .single-blog-page .single-blog-top-divider {
        margin-bottom: var(--space-24);
    }

    .single-blog-page .single-blog-featured-image {
        margin-bottom: var(--space-32);
    }

    .single-blog-page .single-blog-content {
        font-size: 18px;
        line-height: 1.7;    /* ≈30.6px, Medium's mobile rhythm at 18px */
    }

    /* paragraph 17 < step 25 < subheading 30 < section 34.
       Headings go left on phones: centred two-line headings look ragged. */
    .single-blog-page .single-blog-content h2 {
        margin-top: 34px;
        margin-bottom: 13px;
        font-size: 23px;
        text-align: left;
    }

    .single-blog-page .single-blog-content h2::before {
        width: 32px;
        margin: 0 0 13px;
    }

    .single-blog-page .single-blog-content h3 {
        font-size: 20px;
    }

    .single-blog-page .single-blog-content h2 + h3 {
        margin-top: 13px;
    }

    .single-blog-page .single-blog-content h4 {
        font-size: 18px;
    }

    .single-blog-page .single-blog-content :is(ul, ol) {
        padding-left: 20px;
    }

    .single-blog-page .single-blog-content li {
        margin-bottom: var(--space-8);
    }

    .single-blog-page .single-blog-content blockquote {
        padding: var(--space-12) var(--space-16);
    }

    .single-blog-page .single-blog-content #faq ~ p:not(#faq ~ h2 ~ p) > strong:first-child:has(+ br) {
        font-size: 20px;
    }

    .single-blog-page .single-blog-related {
        margin-top: var(--space-48);
        padding-top: var(--space-24);
    }
}


/* =========================================================
   2. /BLOGS LISTING
========================================================= */

/* ---------- Section rhythm ----------
   Before: 30px between the featured cards (with a divider line
   between two bordered cards), 120px before "Recent Posts", 160px
   before "Categories". After: 24px between featured cards, then
   48px each side of every section divider. */
.blogs-archive-page .featured-blogs-section {
    padding-bottom: 0;
}

/* The original phone CSS adds 5px here, which breaks the rhythm. */
.blogs-archive-page .recent-blogs-section {
    padding: 0;
}

.blogs-archive-page .recent-blogs-section .blogs-container,
.blogs-archive-page .blog-categories-section .blogs-container {
    margin-top: 0;
}

.blogs-archive-page .blog-section-divider {
    margin: var(--section) 0;
}

/* No divider between the two featured posts; space separates them.
   The cards themselves are styled in section 4. */
.blogs-archive-page .featured-blog-card + .blog-section-divider:has(+ .featured-blog-card) {
    display: none;
}

.blogs-archive-page .recent-blogs-header,
.blogs-archive-page .categories-header {
    margin-bottom: var(--space-24);
}

.blogs-archive-page .blog-categories-section {
    padding: 0 0 var(--space-64);
}

/* ---------- Phone ---------- */
@media (max-width: 767px) {
    .blogs-archive-page .blogs-container {
        padding-left: 24px;
        padding-right: 24px;
    }

    .blogs-archive-page .featured-blogs-section {
        padding-top: var(--space-24);
    }

    .blogs-archive-page .blog-categories-section {
        padding-bottom: var(--space-48);
    }
}


/* =========================================================
   3. TEXT COLOURS
   Before: titles, dates, author, breadcrumb, category labels and
   "Read more" were all pure white, and four near-identical greys
   (#9db2d3, #91a3c1, #c8cfdb, #d7dce5) did the quieter jobs.
   After: five steps — heading, body, secondary, muted, accent —
   so the title stays the brightest thing and supporting text
   recedes. Brand blue now marks categories and links.
========================================================= */

/* ---------- Article: breadcrumb ---------- */
.single-blog-page .single-blog-breadcrumb a {
    color: var(--text-secondary) !important;
}

.single-blog-page .single-blog-breadcrumb a:hover {
    color: var(--text-accent) !important;
}

.single-blog-page .single-blog-breadcrumb .breadcrumb-separator {
    color: var(--text-faint);
}

.single-blog-page .single-blog-breadcrumb .breadcrumb-current {
    color: var(--text-muted);
    font-weight: 400;
}

/* ---------- Article: title and meta ---------- */
.single-blog-page .single-blog-title {
    color: var(--text-heading);
}

.single-blog-page .single-blog-category {
    color: var(--text-accent);
}

.single-blog-page .single-blog-meta .meta-label {
    color: var(--text-muted);
    font-weight: 400;
}

.single-blog-page .single-blog-meta .meta-value {
    color: var(--text-body);
}

/* ---------- Article: body ---------- */
.single-blog-page .single-blog-content {
    color: var(--text-body);
}

.single-blog-page .single-blog-content :is(h2, h3, h4) {
    color: var(--text-heading);
}

/* Bold lifts slightly instead of jumping to pure white: the guides
   use bold for every button and field name, so full white would glare. */
.single-blog-page .single-blog-content :is(strong, b) {
    color: var(--text-strong);
}

.single-blog-page .single-blog-content a {
    color: var(--text-accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-color: rgba(90, 170, 255, 0.45);
}

.single-blog-page .single-blog-content a:hover {
    text-decoration-color: currentColor;
}

.single-blog-page .single-blog-content figcaption {
    color: var(--text-secondary);
}

.single-blog-page .single-blog-content blockquote {
    color: var(--text-body);
    background: var(--surface-raised);
    border-left-color: var(--accent);
}

.single-blog-page .single-blog-content th {
    color: var(--text-heading);
    background: var(--surface-raised);
}

.single-blog-page .single-blog-content td {
    color: var(--text-body);
}

/* ---------- Article: contents sidebar ---------- */
.single-blog-page .single-blog-related-title {
    color: var(--text-heading);
}

.single-blog-page .single-blog-toc a {
    color: var(--text-muted);
}

.single-blog-page .single-blog-toc a:hover {
    color: var(--text-body);
}

.single-blog-page .single-blog-toc a.active {
    color: var(--text-heading);
}

.single-blog-page .single-blog-toc a.active::before {
    background: var(--text-accent);
}

/* ---------- Article: related blogs ---------- */
.single-blog-page .single-blog-related-view-all {
    color: var(--text-accent);
    font-size: 16px;
}

.single-blog-page .single-blog-related-view-all:hover {
    color: var(--text-heading);
}

/* ---------- Listing: section headers and categories ---------- */
.blogs-archive-page :is(.recent-blogs-header, .categories-header) h2 {
    color: var(--text-heading);
}

.blogs-archive-page .recent-view-all {
    color: var(--text-accent);
}

.blogs-archive-page .recent-view-all:hover {
    color: var(--text-heading);
}

.blogs-archive-page .blog-category-count {
    color: var(--text-muted) !important;
}

.blogs-archive-page .blog-category-name {
    color: var(--text-heading) !important;
}

.single-blog-page .single-blog-related-header h2 {
    color: var(--text-heading);
}

.blogs-archive-page .categories-arrows button {
    color: var(--text-heading);
}


/* =========================================================
   4. CARDS — MEDIUM STYLE
   For the featured and recent cards on /blogs and the related
   cards under each article.

   Removed: the box (outline, fill, rounded corners, inner padding),
   "Read more" (the whole card is already the link), and
   "Posted on" / "by awwrt" (every post is by awwrt).
   Moved: the uppercase "GUIDES" label above the title becomes a
   quiet footer line: "Guides · November 16, 2026".
   Kept: cover image, title, and a 2-line excerpt.

   Cards are now separated by space only, like Medium.
========================================================= */

/* ---------- No box ----------
   !important beats the original :hover rules, which repaint
   the fill and border. */
.blogs-archive-page :is(.featured-blog-card, .recent-blog-card),
.single-blog-page .single-blog-related-card {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0;
    box-shadow: none !important;
    overflow: visible;
    min-width: 0;
}

/* ---------- Cover image keeps rounded corners ---------- */
.blogs-archive-page :is(.featured-blog-image, .recent-blog-image) {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
}

.single-blog-page .single-blog-related-card > img {
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
}

/* ---------- Text block ----------
   A small grid puts the category and date on one footer line
   without touching the HTML:
       title
       excerpt
       category · date                                       */
.blogs-archive-page :is(.featured-blog-content, .recent-blog-content),
.single-blog-page .single-blog-related-card-content {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "title   title"
        "excerpt excerpt"
        "cat     meta";
    align-content: start;
    min-height: 0;
    height: auto;
    padding: var(--space-16) 0 0;
    background: transparent;
    overflow: visible;
}

.blogs-archive-page :is(.featured-blog-title, .recent-blog-title),
.single-blog-page .single-blog-related-card-title {
    grid-area: title;
    margin: 0;
    color: var(--text-heading);
    font-size: 20px;
    line-height: 1.3;
    letter-spacing: -0.005em;
    text-wrap: balance;
}

.blogs-archive-page :is(.featured-blog-excerpt, .recent-blog-excerpt) {
    grid-area: excerpt;
    margin: var(--space-8) 0 0;
    padding: 0;
    max-width: none;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* Footer line: "Guides · November 16, 2026" */
.blogs-archive-page :is(.featured-blog-category, .recent-blog-category),
.single-blog-page .single-blog-related-card-category {
    grid-area: cat;
    margin: var(--space-12) 0 0;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0;
    text-transform: none;
}

.blogs-archive-page :is(.featured-blog-meta, .recent-blog-meta),
.single-blog-page .single-blog-related-card-meta {
    grid-area: meta;
    display: flex;
    align-items: baseline;
    gap: 0;
    margin: var(--space-12) 0 0;
    font-size: 13px;
    line-height: 1.5;
}

.blogs-archive-page :is(.featured-blog-meta, .recent-blog-meta)::before,
.single-blog-page .single-blog-related-card-meta::before {
    content: "·";
    margin: 0 6px;
    color: var(--text-faint);
}

/* "Posted on", "by" and the author name go. */
.blogs-archive-page :is(.featured-blog-meta, .recent-blog-meta) .meta-label,
.blogs-archive-page :is(.featured-blog-meta, .recent-blog-meta) .meta-value:last-of-type,
.single-blog-page .single-blog-related-card-meta .meta-label,
.single-blog-page .single-blog-related-card-meta .meta-value:last-of-type {
    display: none;
}

.blogs-archive-page :is(.featured-blog-meta, .recent-blog-meta) .meta-value,
.single-blog-page .single-blog-related-card-meta .meta-value {
    color: var(--text-secondary);
    font-weight: 400;
}

/* "Read more" goes: the whole card is the link. */
.blogs-archive-page :is(.featured-blog-read-more, .recent-blog-read-more) {
    display: none;
}

/* ---------- Hover and keyboard focus ----------
   Without a box, the title shows the card is a link. */
.blogs-archive-page :is(.featured-blog-card, .recent-blog-card):hover :is(.featured-blog-title, .recent-blog-title),
.single-blog-page .single-blog-related-card:hover .single-blog-related-card-title {
    color: var(--text-accent);
}

.blogs-archive-page :is(.featured-blog-card, .recent-blog-card):focus-visible,
.single-blog-page .single-blog-related-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 6px;
    border-radius: var(--radius);
}

/* ---------- Featured posts: image beside text ---------- */
.blogs-archive-page .featured-blog-card {
    height: auto;
    min-height: 0;
    margin-bottom: 0;
    align-items: center;
    gap: var(--space-48);
}

.blogs-archive-page .featured-blog-image {
    flex: 0 0 56%;
    width: auto;
}

.blogs-archive-page .featured-blog-content {
    flex: 1;
    padding: 0;
}

.blogs-archive-page .featured-blog-title {
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.blogs-archive-page .featured-blog-excerpt {
    margin-top: var(--space-12);
    font-size: 17px;
    line-height: 1.6;
    -webkit-line-clamp: 3;
}

.blogs-archive-page .featured-blog-card + .blog-section-divider + .featured-blog-card {
    margin-top: var(--space-48);
}

/* ---------- Grids: more air now that boxes are gone ---------- */
.blogs-archive-page .recent-blogs-grid {
    row-gap: var(--space-48);
    column-gap: var(--space-32);
}

.single-blog-page .single-blog-related-grid {
    gap: var(--space-32);
}

/* ---------- Tablet: featured posts stack ---------- */
@media (max-width: 991px) {
    .blogs-archive-page .featured-blog-card,
    .blogs-archive-page .featured-blog-reverse {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .blogs-archive-page .featured-blog-image {
        order: 1;
        flex: none;
        width: 100%;
    }

    .blogs-archive-page .featured-blog-content {
        order: 2;
        padding-top: var(--space-16);
    }

    .blogs-archive-page .featured-blog-title {
        font-size: 24px;
    }

    .blogs-archive-page .featured-blog-excerpt {
        font-size: 15px;
        line-height: 1.55;
        -webkit-line-clamp: 2;
    }
}

/* ---------- Phone ---------- */
@media (max-width: 767px) {
    .blogs-archive-page .featured-blog-card {
        margin-bottom: 0;
    }

    .blogs-archive-page .featured-blog-card + .blog-section-divider + .featured-blog-card {
        margin-top: var(--space-32);
    }

    .blogs-archive-page .featured-blog-title {
        font-size: 21px;
        line-height: 1.25;
    }

    .blogs-archive-page .recent-blogs-grid,
    .single-blog-page .single-blog-related-grid {
        gap: var(--space-32);
    }

    .single-blog-page .single-blog-related-card-title {
        font-size: 19px;   /* /blogs list titles: section 7 (18px) */
    }
}


/* =========================================================
   5. ARTICLE HEADER — MEDIUM STYLE
   A back arrow above the title and a one-line byline under it:

       ← Guides
       Title of the post
       6 min read · November 16, 2026
       ─────────────────────────────────
       cover image

   No author, avatar, category or share buttons.
   Back arrow and byline: CSS only, using the existing markup.
   "6 min read" comes from php/awwrt-reading-time.php; without that
   plugin the byline shows the date alone.
========================================================= */

/* ---------- Back arrow ----------
   The breadcrumb "Home / Guides / Title" becomes one link back to
   the category: "← Guides". Home and the repeated title go. */
.single-blog-page .single-blog-breadcrumb {
    margin-bottom: var(--space-32);
    min-height: 0;
}

.single-blog-page .single-blog-breadcrumb > a:first-of-type,
.single-blog-page .single-blog-breadcrumb .breadcrumb-separator,
.single-blog-page .single-blog-breadcrumb .breadcrumb-current {
    display: none;
}

.single-blog-page .single-blog-breadcrumb > a:nth-of-type(2) {
    display: inline-flex;
    align-items: center;
    gap: var(--space-8);
    margin-left: -6px;
    padding: 6px 10px 6px 6px;
    border-radius: 999px;
    color: var(--text-secondary) !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    transition: color .15s ease, background-color .15s ease;
}

.single-blog-page .single-blog-breadcrumb > a:nth-of-type(2)::before {
    content: "";
    width: 20px;
    height: 20px;
    flex: none;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5'/%3E%3Cpath d='M11 6l-6 6 6 6'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5'/%3E%3Cpath d='M11 6l-6 6 6 6'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform .15s ease;
}

.single-blog-page .single-blog-breadcrumb > a:nth-of-type(2):hover {
    color: var(--text-heading) !important;
    background: rgba(255, 255, 255, 0.04);
}

.single-blog-page .single-blog-breadcrumb > a:nth-of-type(2):hover::before {
    transform: translateX(-2px);
}

.single-blog-page .single-blog-breadcrumb > a:nth-of-type(2):focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ---------- Byline ----------
   Spans in .single-blog-meta, in order:
   1 "Posted on"  2 date  3 "by"  4 author  5 reading time (plugin)
   Only the reading time and the date show, in that order. */
.single-blog-page .single-blog-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0;
    margin-bottom: var(--space-24);
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 20px;
}

.single-blog-page .single-blog-meta .meta-label,
.single-blog-page .single-blog-meta > span:nth-of-type(4) {
    display: none;
}

.single-blog-page .single-blog-meta .meta-readtime {
    order: 1;
    color: var(--text-secondary);
}

.single-blog-page .single-blog-meta .meta-readtime::after {
    content: "·";
    margin: 0 6px;
}

.single-blog-page .single-blog-meta > span:nth-of-type(2) {
    order: 2;
    color: var(--text-secondary);
    font-weight: 400;
}

@media (prefers-reduced-motion: reduce) {
    .single-blog-page .single-blog-breadcrumb > a:nth-of-type(2)::before {
        transition: none;
    }
}

/* ---------- Phone ---------- */
@media (max-width: 767px) {
    .single-blog-page .single-blog-breadcrumb {
        margin-bottom: var(--space-24);
    }

    .single-blog-page .single-blog-meta {
        margin-bottom: var(--space-16);
    }
}


/* =========================================================
   6. TABLES
   Before: WordPress draws a 3px line in the text colour under the
   header row (near-white on this dark page), every cell has a box
   border, and only the header cells are centred.
   After: one soft rounded outline, hairlines between rows only,
   a quiet raised header, everything left-aligned. On phones the
   first column stays pinned while the rest scrolls sideways.
   No row hover highlight (removed 18 Nov 2026): its see-through
   background replaced the pinned cell's solid one, so scrolled
   cells showed through it on phones ("text on text").
========================================================= */

.single-blog-page,
.blogs-archive-page {
    --table-line: #262a33;
    --table-head: #1b1e25;
    --table-body: #15171d;      /* page colour; solid behind the pinned column */
}

/* The figure is the sideways scroller on narrow screens. */
.single-blog-page .single-blog-content .wp-block-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.single-blog-page .single-blog-content table {
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--table-line);
    border-radius: 10px;
    overflow: clip;  /* rounds the corners without breaking the pinned column */
    font-variant-numeric: tabular-nums;
}

/* Removes WordPress's 3px header line and the per-cell boxes. */
.single-blog-page .single-blog-content :is(thead, tbody, tfoot, tr) {
    border: 0;
}

.single-blog-page .single-blog-content :is(th, td) {
    padding: 12px 16px;
    border: 0;
    border-bottom: 1px solid var(--table-line);
    text-align: left;
    vertical-align: top;
    font-size: 15px;
    line-height: 1.5;
}

/* Header row: smaller, quieter labels on a slightly raised band. */
.single-blog-page .single-blog-content thead th {
    background: var(--table-head);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.single-blog-page .single-blog-content tbody td {
    color: var(--text-body);
    background: transparent;
}

/* First column names the row, so it is the brightest. */
.single-blog-page .single-blog-content tbody :is(td, th):first-child {
    color: var(--text-heading);
    font-weight: 500;
}

.single-blog-page .single-blog-content tbody tr:last-child :is(td, th) {
    border-bottom: 0;
}

.single-blog-page .single-blog-content .wp-block-table figcaption {
    margin-top: var(--space-12);
    color: var(--text-secondary);
    font-size: 14px;
    text-align: left;
}

/* ---------- Phone ---------- */
@media (max-width: 767px) {
    /* Cells wrap, with set column widths (changed 18 Nov 2026). Before:
       one line per cell (nowrap), which made sentence tables like
       "If Something Goes Wrong" 1,000–1,800px wide and let the pinned
       first column (up to 517px) cover the whole 327px view, hiding
       every other column. Now: pinned column 128px (~40% of a phone),
       other columns at least 176px, so 2-column tables fit the screen
       and wider tables scroll with the next column readable. */
    .single-blog-page .single-blog-content :is(th, td) {
        padding: 10px 12px;
        white-space: normal;   /* sizes: 15px cells / 13px headers, as desktop */
    }

    .single-blog-page .single-blog-content :is(thead, tbody) :is(th, td):not(:first-child) {
        min-width: 176px;
    }

    /* Pin the first column while the rest scrolls. */
    .single-blog-page .single-blog-content :is(thead, tbody) :is(th, td):first-child {
        width: 128px;
        min-width: 128px;
        position: sticky;
        left: 0;
        z-index: 1;
        box-shadow: inset -1px 0 0 var(--table-line);
    }

    /* Pinned cells must stay opaque so scrolled cells never show through. */
    .single-blog-page .single-blog-content tbody :is(th, td):first-child {
        background: var(--table-body);
    }

    .single-blog-page .single-blog-content thead :is(th, td):first-child {
        background: var(--table-head);
    }
}


/* =========================================================
   7. RECENT POSTS — MEDIUM LIST LAYOUT
   One post per row, text on the left, a small cover on the right,
   rows separated by a hairline. Replaces the 3-column grid for
   "Recent Posts" only; the featured posts above are unchanged.

       Title of the post                      ┌────────┐
       A buyer's question in your DMs, or a   │ cover  │
       courier receipt in a drawer? Make…     └────────┘
       Guides · November 16, 2026
       ─────────────────────────────────────────────────

   Measured from Medium's feed (17 Nov 2026): 680px column,
   title 24/30 (phone 20/24), subtitle 16/20, thumbnail 160×107
   (phone 80×53), 56px text-to-thumbnail gap (phone 24).
   Roboto runs larger than Medium's Sohne, so titles are 22/19.
   Covers are 16:9, so thumbnails are 160×90 (phone 88×50).
========================================================= */

/* The list reads best at article width, centred, header included. */
.blogs-archive-page .recent-blogs-section .blogs-container {
    max-width: 720px;   /* 680 content + 20px side padding */
}

.blogs-archive-page .recent-blogs-grid {
    display: block;
    grid-template-columns: none;
}

.blogs-archive-page .recent-blog-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 160px;
    grid-template-areas: "text cover";
    column-gap: 56px;
    align-items: start;
    padding: var(--space-32) 0;
    border-bottom: 1px solid #2c3039 !important;
    border-radius: 0;
}

.blogs-archive-page .recent-blog-card:first-child {
    padding-top: var(--space-8);
}

.blogs-archive-page .recent-blog-card:last-child {
    border-bottom: 0 !important;
}

/* Small cover on the right, top-aligned with the title. */
.blogs-archive-page .recent-blog-image {
    grid-area: cover;
    width: 160px;
    aspect-ratio: 16 / 9;
    border-radius: 4px;
    box-shadow: 0 0 0 1px #262a33;
}

.blogs-archive-page .recent-blog-content {
    grid-area: text;
    padding: 0;
    min-width: 0;
}

.blogs-archive-page .recent-blog-title {
    font-size: 22px;
    line-height: 1.3;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.blogs-archive-page .recent-blog-excerpt {
    margin-top: var(--space-8);
    font-size: 16px;
    line-height: 1.5;
    -webkit-line-clamp: 2;
}

.blogs-archive-page :is(.recent-blog-category, .recent-blog-meta) {
    margin-top: var(--space-16);
}

/* ---------- Tablet ---------- */
@media (max-width: 991px) {
    .blogs-archive-page .recent-blog-card {
        column-gap: var(--space-32);
    }
}

/* ---------- Phone ---------- */
@media (max-width: 767px) {
    .blogs-archive-page .recent-blogs-section .blogs-container {
        max-width: none;
    }

    .blogs-archive-page .recent-blogs-grid {
        gap: 0;
    }

    .blogs-archive-page .recent-blog-card {
        grid-template-columns: minmax(0, 1fr) 88px;
        column-gap: var(--space-16);
        padding: var(--space-24) 0;
    }

    .blogs-archive-page .recent-blog-card:first-child {
        padding-top: var(--space-8);
    }

    .blogs-archive-page .recent-blog-image {
        width: 88px;
    }

    .blogs-archive-page .recent-blog-title {
        font-size: 18px;
        line-height: 1.3;
    }

    .blogs-archive-page .recent-blog-excerpt {
        font-size: 15px;
        line-height: 1.45;
    }

    .blogs-archive-page :is(.recent-blog-category, .recent-blog-meta) {
        margin-top: var(--space-12);
    }
}


/* =========================================================
   8. GUIDE VIDEOS
   Markup comes from php/awwrt-guide-video.php.
   Article: the cover becomes a click-to-play video at the same
   size (16:9, rounded). Nothing loads from YouTube until a click.
   Cards: a small "▶ 3:12" badge on the cover.
   Guides without a video keep the plain cover image.
========================================================= */

.single-blog-page .screen-reader-text,
.blogs-archive-page .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;
}

/* ---------- Article: click-to-play cover ---------- */
.single-blog-page .single-blog-video {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    background: #0d0f13;
    box-shadow: 0 0 0 1px #262a33;
}

.single-blog-page .single-blog-video .video-facade {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.single-blog-page .single-blog-video .video-facade img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: filter .2s ease;
}

.single-blog-page .single-blog-video .video-facade:hover img {
    filter: brightness(0.85);
}

.single-blog-page .single-blog-video .video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin: -36px 0 0 -36px;
    padding-left: 4px;          /* optically centre the triangle */
    border-radius: 50%;
    background: rgba(21, 23, 29, 0.72);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    color: #fff;
    -webkit-backdrop-filter: blur(6px);
            backdrop-filter: blur(6px);
    transition: background-color .2s ease, transform .2s ease;
}

.single-blog-page .single-blog-video .video-facade:hover .video-play,
.single-blog-page .single-blog-video .video-facade:focus-visible .video-play {
    background: var(--accent);
    transform: scale(1.06);
}

.single-blog-page .single-blog-video .video-facade:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.single-blog-page .single-blog-video .video-length {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    line-height: 20px;
    font-variant-numeric: tabular-nums;
}

.single-blog-page .single-blog-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.single-blog-page .single-blog-video .video-noscript {
    position: absolute;
    left: 12px;
    bottom: 12px;
    color: #fff;
}

/* ---------- Cards: "▶ 3:12" badge ---------- */
.blogs-archive-page :is(.recent-blog-image, .featured-blog-image),
.single-blog-page .card-cover {
    position: relative;
}

.single-blog-page .card-cover {
    display: block;
}

.single-blog-page .card-cover > img {
    display: block;
}

.blogs-archive-page .card-video-badge,
.single-blog-page .card-video-badge {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px 2px 6px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
}

/* Small list thumbnails (160×90, phone 88×50): tighter badge. */
.blogs-archive-page .recent-blog-image .card-video-badge {
    right: 4px;
    bottom: 4px;
    padding: 1px 5px 1px 4px;
    gap: 3px;
    font-size: 11px;
    line-height: 16px;
}

/* Big featured covers: a larger, centred play button too. */
.blogs-archive-page .featured-blog-image .card-video-badge {
    right: 12px;
    bottom: 12px;
    font-size: 13px;
    line-height: 20px;
    padding: 2px 8px 2px 7px;
}

.blogs-archive-page .featured-blog-image:has(.card-video-badge)::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
    border-radius: 50%;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.5v13a1 1 0 0 0 1.53.85l10.4-6.5a1 1 0 0 0 0-1.7L9.53 4.65A1 1 0 0 0 8 5.5z' fill='white'/%3E%3C/svg%3E") 54% 50% / 26px no-repeat,
        rgba(21, 23, 29, 0.72);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    transition: background-color .2s ease, transform .2s ease;
    pointer-events: none;
}

.blogs-archive-page .featured-blog-card:hover .featured-blog-image:has(.card-video-badge)::after {
    background-color: var(--accent);
    transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
    .single-blog-page .single-blog-video .video-play,
    .single-blog-page .single-blog-video .video-facade img,
    .blogs-archive-page .featured-blog-image::after {
        transition: none;
    }
}

/* ---------- Phone ---------- */
@media (max-width: 767px) {
    .single-blog-page .single-blog-video .video-play {
        width: 56px;
        height: 56px;
        margin: -28px 0 0 -28px;
    }

    .single-blog-page .single-blog-video .video-play svg {
        width: 22px;
        height: 22px;
    }

    .blogs-archive-page .recent-blog-image .card-video-badge {
        right: 3px;
        bottom: 3px;
        padding: 0 4px 0 3px;
        font-size: 10px;
        line-height: 14px;
    }

    .blogs-archive-page .recent-blog-image .card-video-badge svg {
        width: 8px;
        height: 8px;
    }
}


/* =========================================================
   9. HOTSPOT TOOLTIPS (Getwid Image Hotspot)
   Before: Getwid's "light" tippy theme — a white box with dark
   text on the dark page, a 16px bold centred title and 12px
   explanation text (smaller than every other text in the guide).
   After: a dark card in the blog colours, title left-aligned,
   explanation at a readable 15px (phone 14px), arrow matched.
   The tooltip is rendered inside the hotspot block, so these
   rules only reach hotspots in blog articles.
========================================================= */

.single-blog-page .wp-block-getwid-image-hotspot .tippy-box {
    --tip-bg: #202229;
    --tip-line: #2c3039;
    --text-heading: #f1f2f6;    /* same card colours as .blog-category-card */
    --text-secondary: #b6bfcf;
    background-color: var(--tip-bg);
    color: var(--text-secondary);
    border-radius: var(--radius);
    box-shadow:
        0 0 0 1px var(--tip-line),
        0 12px 32px rgba(0, 0, 0, 0.45);
    text-align: left;
}

.single-blog-page .wp-block-getwid-image-hotspot .tippy-content {
    padding: var(--space-12) var(--space-16) 14px;
}

.single-blog-page .wp-block-getwid-image-hotspot .wp-block-getwid-image-hotspot__tooltip {
    text-align: left;
}

.single-blog-page .wp-block-getwid-image-hotspot .wp-block-getwid-image-hotspot__tooltip-title {
    margin: 0 0 4px;
    color: var(--text-heading);    /* 14.2:1 on the card */
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
}

.single-blog-page .wp-block-getwid-image-hotspot .wp-block-getwid-image-hotspot__tooltip-content {
    color: var(--text-secondary);  /* 8.6:1 on the card */
    font-size: 15px;
    line-height: 1.5;
    text-align: left;
}

.single-blog-page .wp-block-getwid-image-hotspot .wp-block-getwid-image-hotspot__tooltip-content :is(strong, b) {
    color: var(--text-heading);
}

/* Arrow: same colour as the card on every side. */
.single-blog-page .wp-block-getwid-image-hotspot .tippy-box[data-placement^="top"] > .tippy-arrow::before {
    border-top-color: var(--tip-bg);
}

.single-blog-page .wp-block-getwid-image-hotspot .tippy-box[data-placement^="bottom"] > .tippy-arrow::before {
    border-bottom-color: var(--tip-bg);
}

.single-blog-page .wp-block-getwid-image-hotspot .tippy-box[data-placement^="left"] > .tippy-arrow::before {
    border-left-color: var(--tip-bg);
}

.single-blog-page .wp-block-getwid-image-hotspot .tippy-box[data-placement^="right"] > .tippy-arrow::before {
    border-right-color: var(--tip-bg);
}

.single-blog-page .wp-block-getwid-image-hotspot .tippy-box > .tippy-svg-arrow {
    fill: var(--tip-bg);
}

/* ---------- Phone ---------- */
@media (max-width: 767px) {
    .single-blog-page .wp-block-getwid-image-hotspot .tippy-box {
        max-width: min(300px, calc(100vw - 32px)) !important;   /* never wider than Getwid's 300px; narrower on small screens */
    }

    .single-blog-page .wp-block-getwid-image-hotspot .tippy-content {
        padding: 10px 14px 12px;
    }

    .single-blog-page .wp-block-getwid-image-hotspot .wp-block-getwid-image-hotspot__tooltip-title {
        font-size: 15px;
    }

    .single-blog-page .wp-block-getwid-image-hotspot .wp-block-getwid-image-hotspot__tooltip-content {
        font-size: 14px;
    }
}


/* =========================================================
   10. HOTSPOT MARKERS (Getwid Image Hotspot)
   Before: a 32px dark grey disc with a white "+" icon.
   After: a light grey dot with a thin dark edge inside a soft
   grey halo (the halo also drives Getwid's pulse, so the pulse
   is grey too). Grey palette only, no blue — chosen 17 Nov 2026.
   The 32px click/tap area stays the same.
========================================================= */

.single-blog-page .wp-block-getwid-image-hotspot .wp-block-getwid-image-hotspot__dot {
    background: rgba(170, 180, 198, 0.30) !important;   /* #aab4c6 halo; beats the block's inline colour */
    box-shadow: none !important;
}

.single-blog-page .wp-block-getwid-image-hotspot .wp-block-getwid-image-hotspot__dot-icon {
    display: none !important;
}

.single-blog-page .wp-block-getwid-image-hotspot .wp-block-getwid-image-hotspot__dot-content {
    display: grid;
    place-items: center;
}

.single-blog-page .wp-block-getwid-image-hotspot .wp-block-getwid-image-hotspot__dot-content::after {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #e2e5ec;
    box-shadow: 0 0 0 2px #15171d;
}

/* No pulsing for readers who ask their device to reduce motion. */
@media (prefers-reduced-motion: reduce) {
    .single-blog-page .wp-block-getwid-image-hotspot .wp-block-getwid-image-hotspot__dot::before,
    .single-blog-page .wp-block-getwid-image-hotspot .wp-block-getwid-image-hotspot__dot::after {
        animation: none !important;
    }
}

/* No outline on hotspot images ("Key Fields Explained"). Every
   hotspot PNG has a 2px light frame (#343945) baked into its edge
   (pixels 1–2). Trim 0.3% off each side to hide it: that is ~4px of
   the image file, at least 3px on all 9 guides. clip-path doesn't
   change layout, and the markers are siblings of the image, so they
   don't move or get cut. Added 18 Nov 2026 at the user's request. */
.single-blog-page .wp-block-getwid-image-hotspot .wp-block-getwid-image-hotspot__image {
    clip-path: inset(0.3%);
}


/* =========================================================
   11. CATEGORY PAGE (/blogs-category/guides/)
   The category archive has its own template (.blog-category-page),
   so sections 2–7 never reached it: it still showed boxed cards,
   uppercase "GUIDES", "Posted on … by awwrt" and "Read more".
   Readers land here from "← Guides" on every article and from
   "View All" on /blogs, so it now matches the /blogs Recent Posts
   list (section 7): one 680px column, text left, 160×90 cover
   right, hairlines between rows, "Guides · date" footer.
   The theme's styles for this page sit in <style> blocks inside
   <body>, so every rule is prefixed with .blog-category-page.
========================================================= */

.blog-category-page {
    --space-8: 8px;
    --space-12: 12px;
    --space-16: 16px;
    --space-24: 24px;
    --space-32: 32px;
    --space-48: 48px;
    --space-64: 64px;
    --radius: 7px;
    --text-heading: #e2e5ec;    /* same contrast levels as section 0 */
    --text-secondary: #aab4c6;
    --text-faint: #4b5466;
    --text-accent: #75b8ff;
    --accent: #168cff;
    --row-line: #2c3039;
}

/* ---------- Column: same width as the /blogs list ---------- */
.blog-category-page .blog-category-container {
    max-width: 720px;   /* 680 content + 20px side padding */
}

/* ---------- Header: "← Blogs", then the title ---------- */
.blog-category-page .blog-category-header {
    padding: 0;
}

.blog-category-page .blog-category-breadcrumb {
    margin: 0 0 var(--space-24);
    font-size: 14px;
}

.blog-category-page .blog-category-breadcrumb > a:first-of-type,
.blog-category-page .blog-category-breadcrumb .breadcrumb-separator,
.blog-category-page .blog-category-breadcrumb .breadcrumb-current {
    display: none;
}

.blog-category-page .blog-category-breadcrumb > a:nth-of-type(2) {
    display: inline-flex;
    align-items: center;
    gap: var(--space-8);
    margin-left: -6px;
    padding: 6px 10px 6px 6px;
    border-radius: 999px;
    color: var(--text-secondary) !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    transition: color .15s ease, background-color .15s ease;
}

.blog-category-page .blog-category-breadcrumb > a:nth-of-type(2)::before {
    content: "";
    width: 20px;
    height: 20px;
    flex: none;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5'/%3E%3Cpath d='M11 6l-6 6 6 6'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5'/%3E%3Cpath d='M11 6l-6 6 6 6'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform .15s ease;
}

.blog-category-page .blog-category-breadcrumb > a:nth-of-type(2):hover {
    color: var(--text-heading) !important;
    background: rgba(255, 255, 255, 0.04);
}

.blog-category-page .blog-category-breadcrumb > a:nth-of-type(2):hover::before {
    transform: translateX(-2px);
}

.blog-category-page .blog-category-breadcrumb > a:nth-of-type(2):focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.blog-category-page .blog-category-title {
    color: var(--text-heading);
    font-size: 42px;
    line-height: 1.18;
    letter-spacing: -0.02em;
}

.blog-category-page .blog-category-posts-section {
    padding: var(--space-48) 0 var(--space-64);
}

.blog-category-page .blog-category-posts-title {
    margin: 0 0 var(--space-8);
    color: var(--text-heading);
    font-size: 22px;
    line-height: 1.3;
}

/* ---------- One post per row, no box ---------- */
.blog-category-page .blog-category-posts-grid {
    display: block;
    grid-template-columns: none;
}

.blog-category-page .blog-category-post-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 160px;
    grid-template-areas: "text cover";
    column-gap: 56px;
    align-items: start;
    padding: var(--space-32) 0;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid var(--row-line) !important;
    border-radius: 0;
    box-shadow: none !important;
    overflow: visible;
}

.blog-category-page .blog-category-post-card:first-child {
    padding-top: var(--space-16);
}

.blog-category-page .blog-category-post-card:last-child {
    border-bottom: 0 !important;
}

/* Small cover on the right, top-aligned with the title. */
.blog-category-page .blog-category-post-image {
    grid-area: cover;
    width: 160px;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 0 0 1px #262a33;
}

.blog-category-page .blog-category-no-image {
    min-height: 0;
}

/* Text block: title, excerpt, then "Guides · date". */
.blog-category-page .blog-category-post-content {
    grid-area: text;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "title   title"
        "excerpt excerpt"
        "cat     meta";
    align-content: start;
    min-width: 0;
    min-height: 0;
    padding: 0;
}

.blog-category-page .blog-category-post-title {
    grid-area: title;
    margin: 0;
    color: var(--text-heading);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    text-wrap: balance;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.blog-category-page .blog-category-post-excerpt {
    grid-area: excerpt;
    margin: var(--space-8) 0 0;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.blog-category-page .blog-category-post-category {
    grid-area: cat;
    margin: var(--space-16) 0 0;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0;
    text-transform: none;
}

.blog-category-page .blog-category-post-meta {
    grid-area: meta;
    display: flex;
    align-items: baseline;
    gap: 0;
    margin: var(--space-16) 0 0;
    font-size: 13px;
    line-height: 1.5;
}

.blog-category-page .blog-category-post-meta::before {
    content: "·";
    margin: 0 6px;
    color: var(--text-faint);
}

/* "Posted on", "by" and the author name go. */
.blog-category-page .blog-category-post-meta .meta-label,
.blog-category-page .blog-category-post-meta .meta-value:last-of-type {
    display: none;
}

.blog-category-page .blog-category-post-meta .meta-value {
    color: var(--text-secondary);
    font-weight: 400;
}

/* "Read more" goes: the whole row is the link. */
.blog-category-page .blog-category-post-read-more {
    display: none;
}

/* ---------- Hover and keyboard focus ---------- */
.blog-category-page .blog-category-post-card:hover .blog-category-post-title {
    color: var(--text-accent);
}

.blog-category-page .blog-category-post-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 6px;
    border-radius: var(--radius);
}

/* ---------- Pagination: quiet, grey ---------- */
.blog-category-page .blog-category-pagination {
    margin-top: var(--space-32);
    justify-content: flex-start;
}

.blog-category-page .blog-category-pagination :is(a, span) {
    background: transparent;
    border-color: var(--row-line);
    color: var(--text-secondary);
    font-size: 14px;
}

.blog-category-page .blog-category-pagination a:hover {
    border-color: var(--text-faint);
    color: var(--text-heading);
}

.blog-category-page .blog-category-pagination .current {
    background: #2c3039;
    border-color: #4b5466;
    color: var(--text-heading);
}

@media (prefers-reduced-motion: reduce) {
    .blog-category-page .blog-category-breadcrumb > a:nth-of-type(2)::before {
        transition: none;
    }
}

/* ---------- Tablet ---------- */
@media (max-width: 991px) {
    .blog-category-page .blog-category-post-card {
        column-gap: var(--space-32);
    }
}

/* ---------- Phone ---------- */
@media (max-width: 767px) {
    .blog-category-page .blog-category-container {
        max-width: none;
        padding-left: 24px;
        padding-right: 24px;
    }

    .blog-category-page .blog-category-header {
        padding: var(--space-24) 0 0;
    }

    .blog-category-page .blog-category-title {
        font-size: 32px;
        line-height: 1.2;
    }

    .blog-category-page .blog-category-posts-section {
        padding: var(--space-32) 0 var(--space-48);
    }

    .blog-category-page .blog-category-post-card {
        grid-template-columns: minmax(0, 1fr) 88px;
        column-gap: var(--space-16);
        padding: var(--space-24) 0;
    }

    .blog-category-page .blog-category-post-card:first-child {
        padding-top: var(--space-12);
    }

    .blog-category-page .blog-category-post-image {
        width: 88px;
        height: auto;
    }

    .blog-category-page .blog-category-post-title {
        font-size: 18px;
    }

    .blog-category-page .blog-category-post-excerpt {
        font-size: 15px;
        line-height: 1.45;
    }

    .blog-category-page :is(.blog-category-post-category, .blog-category-post-meta) {
        margin-top: var(--space-12);
    }
}


/* =========================================================
   12. LIST ROWS — COVER ON THE LEFT (18 Nov 2026)
   User asked for the image first, then the text, on the two
   list views: "Recent Posts" on /blogs (section 7) and the
   category page (section 11). Only the column order changes;
   cover sizes (160×90, phone 88×50), text sizes and spacing
   stay. Gap is 32px (was 56px with the cover on the right) so
   the cover sits close to the title it belongs to; phone 16px.
   Undo: delete this section.
========================================================= */

.blogs-archive-page .recent-blog-card,
.blog-category-page .blog-category-post-card {
    grid-template-columns: 160px minmax(0, 1fr);
    grid-template-areas: "cover text";
    column-gap: var(--space-32);
}

@media (max-width: 767px) {
    .blogs-archive-page .recent-blog-card,
    .blog-category-page .blog-category-post-card {
        grid-template-columns: 88px minmax(0, 1fr);
        column-gap: var(--space-16);
    }
}


/* =========================================================
   13. LIST ROWS — 4:3 COVERS + GUIDES PAGE FOOTER (18 Nov 2026)
   a) Covers are cropped to 4:3 (were 16:9), keeping the RIGHT side:
      desktop/tablet 160×90 → 168×126, phone 88×50 → 120×90, phones
      under 360px 88×66. The cover text sits on the right of every
      cover, so the crop takes ~25% off the left (app screenshots)
      and never cuts the text; checked on all 9 covers 18 Nov. The
      user chose 4:3 over 2:1 and square (less empty space under the
      cover than 2:1, more picture kept than square). The image files
      are unchanged. Future covers: keep the text in the right ~70%.
   b) Category page only: the "Guides" label repeats the page title,
      so the row footer is just the date. /blogs keeps "Guides · date".
   c) Phone titles may use 4 lines (was 3): "How to Find and Edit
      Artworks, Contacts, Exhibitions and Records in AWWRT" was being
      cut off at 360–414px.
   Undo: delete this section.
========================================================= */

.blogs-archive-page .recent-blog-card,
.blog-category-page .blog-category-post-card {
    grid-template-columns: 168px minmax(0, 1fr);
}

.blogs-archive-page .recent-blog-image,
.blog-category-page .blog-category-post-image {
    width: 168px;
    aspect-ratio: 4 / 3;
}

.blogs-archive-page .recent-blog-image img,
.blog-category-page .blog-category-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 100% 50%;   /* keep the right side (cover text) */
}

@media (max-width: 767px) {
    .blogs-archive-page .recent-blog-card,
    .blog-category-page .blog-category-post-card {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .blogs-archive-page .recent-blog-image,
    .blog-category-page .blog-category-post-image {
        width: 120px;
    }

    .blogs-archive-page .recent-blog-title,
    .blog-category-page .blog-category-post-title {
        -webkit-line-clamp: 4;
    }
}

@media (max-width: 359px) {
    .blogs-archive-page .recent-blog-card,
    .blog-category-page .blog-category-post-card {
        grid-template-columns: 88px minmax(0, 1fr);
    }

    .blogs-archive-page .recent-blog-image,
    .blog-category-page .blog-category-post-image {
        width: 88px;
    }
}

.blog-category-page .blog-category-post-category {
    display: none;
}

.blog-category-page .blog-category-post-meta::before {
    content: none;
}


/* =========================================================
   14. /BLOGS PAGE HEADING (18 Nov 2026)
   The theme's archive-blogs.php had no H1. With the user's OK the
   template now prints, just before the featured section:
     <section class="blogs-page-header"><div class="blogs-container">
       <h1 class="blogs-page-title">Blogs</h1></div></section>
   (backup of the original template:
   theme-edits/2026-11-18-blogs-h1/archive-blogs.backup-2026-11-17.php).
   Same look as the "Guides" heading (section 11): 42px bold, bright
   heading colour; phone 32px. The heading takes the featured
   section's old top spacing (section padding 34px, phone 24px, plus
   the theme's 70px .blogs-container margin), so the page starts at
   the same height as before; the featured cards follow 32px below
   (phone 24px), lined up with the heading. Undo: remove the line from
   the template; these rules then match nothing.
========================================================= */

.blogs-archive-page .blogs-page-header {
    padding-top: 34px;
}

.blogs-archive-page .blogs-page-title {
    margin: 0;
    color: var(--text-heading);
    font-size: 42px;
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.02em;
}

.blogs-archive-page .blogs-page-header + .featured-blogs-section {
    padding-top: 0;
}

.blogs-archive-page .blogs-page-header + .featured-blogs-section > .blogs-container {
    margin-top: var(--space-32);
}

@media (max-width: 767px) {
    .blogs-archive-page .blogs-page-header {
        padding-top: 24px;
    }

    .blogs-archive-page .blogs-page-title {
        font-size: 32px;
        line-height: 1.2;
    }

    .blogs-archive-page .blogs-page-header + .featured-blogs-section > .blogs-container {
        margin-top: var(--space-24);
    }
}


/* =========================================================
   15. CATEGORY PAGE — TOP 4 AS CARDS, THEN THE LIST (18 Nov 2026)
   User asked for a few card-style posts at the top, under "Recent",
   before the list. The 4 newest posts become cards (cover on top,
   16:9, full width of the card; title, 2-line excerpt, date); the
   rest stay as list rows (sections 11–13). CSS only, no template
   change: the posts grid becomes 2 columns, the first 4 cards take
   one column each, every other row spans both.
   Two cards per row from 560px up; narrower phones stack them.
   Only on page 1 (body:not(.paged)); later pages are all list rows.
   Undo: delete this section.
========================================================= */

body:not(.paged) .blog-category-page .blog-category-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-32);
}

body:not(.paged) .blog-category-page .blog-category-post-card {
    grid-column: 1 / -1;
}

body:not(.paged) .blog-category-page .blog-category-post-card:nth-child(-n+4) {
    grid-column: auto;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "cover"
        "text";
    row-gap: var(--space-16);
    padding: var(--space-16) 0 var(--space-48);
    border-bottom: 0 !important;
}

body:not(.paged) .blog-category-page .blog-category-post-card:nth-child(-n+4) .blog-category-post-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
}

body:not(.paged) .blog-category-page .blog-category-post-card:nth-child(-n+4) .blog-category-post-image img {
    object-position: 50% 50%;   /* the whole 16:9 cover shows, no crop */
}

body:not(.paged) .blog-category-page .blog-category-post-card:nth-child(-n+4) .blog-category-post-title {
    font-size: 20px;
    line-height: 1.3;
    -webkit-line-clamp: 3;
}

/* The list starts under a hairline, like the rows between it. */
body:not(.paged) .blog-category-page .blog-category-post-card:nth-child(5) {
    border-top: 1px solid var(--row-line) !important;   /* section 11 clears all borders with !important */
}

@media (max-width: 767px) {
    body:not(.paged) .blog-category-page .blog-category-posts-grid {
        column-gap: var(--space-16);
    }

    body:not(.paged) .blog-category-page .blog-category-post-card:nth-child(-n+4) {
        grid-template-columns: minmax(0, 1fr);
        padding: var(--space-12) 0 var(--space-32);
    }

    body:not(.paged) .blog-category-page .blog-category-post-card:nth-child(-n+4) .blog-category-post-image {
        width: 100%;
    }
}

/* Narrow phones: the cards stack (two per row only from 560px). */
@media (max-width: 559px) {
    body:not(.paged) .blog-category-page .blog-category-posts-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}


/* =========================================================
   16. RELATED GUIDES UNDER ARTICLES — LIST ROWS BELOW 1024px (18 Nov 2026)
   1024px and up keeps 3 cards in a row. Below that the theme showed
   2 columns (3 cards → 2 + 1 alone, iPad portrait) or 3 huge stacked
   cards (phones, up to ~1,290px of scrolling). Now the 3 related
   guides are list rows like the Guides page: 4:3 cover on the LEFT
   (cropped keeping the right side, where the cover text is), title,
   "Guides · date", hairlines between rows.
   Covers: 168×126 (768–1023px), 120×90 (phones), 88×66 (<360px).
   CSS only. Undo: delete this section.
========================================================= */

@media (max-width: 1023px) {
    .single-blog-page .single-blog-related-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .single-blog-page .single-blog-related-card {
        display: grid;
        grid-template-columns: 168px minmax(0, 1fr);
        grid-template-areas: "cover text";
        column-gap: var(--space-32);
        align-items: start;
        padding: var(--space-24) 0;
        border-bottom: 1px solid #2c3039 !important;   /* section 4 clears borders with !important */
    }

    .single-blog-page .single-blog-related-card:first-child {
        padding-top: var(--space-8);
    }

    .single-blog-page .single-blog-related-card:last-child {
        border-bottom: 0 !important;
    }

    .single-blog-page .single-blog-related-card > img {
        grid-area: cover;
        width: 168px;
        height: auto;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        object-position: 100% 50%;
        border-radius: 4px;
    }

    .single-blog-page .single-blog-related-card-content {
        grid-area: text;
        min-width: 0;
        padding: 0;
    }
}

@media (max-width: 767px) {
    .single-blog-page .single-blog-related-card {
        grid-template-columns: 120px minmax(0, 1fr);
        column-gap: var(--space-16);
    }

    .single-blog-page .single-blog-related-card > img {
        width: 120px;
    }
}

@media (max-width: 359px) {
    .single-blog-page .single-blog-related-card {
        grid-template-columns: 88px minmax(0, 1fr);
    }

    .single-blog-page .single-blog-related-card > img {
        width: 88px;
    }
}


/* =========================================================
   17. /BLOGS RESPONSIVE FIXES FROM THE 18 NOV AUDIT
   a) Featured posts from 560 to 991px stacked as huge full-width
      covers (728×410 at 768px; the page was 3,560px tall). Now
      image beside text, like desktop (normal card: text left /
      cover right; "reverse" card: the other way), the cover taking
      half the row. Phones under 560px still stack.
   b) "View All" (Recent Posts) was a 20px-tall tap target on
      phones: 6px more hit area above and below, same look.
   c) Categories box: "9 posts" was 11px, under the 13px minimum
      used everywhere else.
   Undo: delete this section.
========================================================= */

@media (min-width: 560px) and (max-width: 991px) {
    .blogs-archive-page .featured-blog-card {
        flex-direction: row;
        align-items: center;
        gap: var(--space-32);
    }

    .blogs-archive-page .featured-blog-reverse {
        flex-direction: row-reverse;
    }

    .blogs-archive-page .featured-blog-image {
        order: 0;
        flex: 0 0 50%;
        width: auto;
    }

    .blogs-archive-page .featured-blog-content {
        order: 0;
        flex: 1 1 0;
        min-width: 0;
        padding-top: 0;
    }
}

.blogs-archive-page .recent-view-all {
    padding: 6px 0;
    margin: -6px 0;
}

.blogs-archive-page .blog-category-count {
    font-size: 13px;
}


/* =========================================================
   18. "VIEW ALL" LINKS — WHITE, UNDERLINE ON HOVER (18 Nov 2026)
   Next to "Recent Posts" on /blogs and "Related Blogs" under
   articles. Was blue (#75B8FF). Now the site's white heading colour
   (#E2E5EC); hover, keyboard focus and tap show an underline
   instead of a colour change.
   Undo: delete this section.
========================================================= */

.blogs-archive-page .recent-view-all,
.single-blog-page .single-blog-related-view-all {
    color: var(--text-heading);
    text-decoration: none;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}

.blogs-archive-page .recent-view-all:is(:hover, :focus-visible, :active),
.single-blog-page .single-blog-related-view-all:is(:hover, :focus-visible, :active) {
    color: var(--text-heading);
    text-decoration-line: underline !important;   /* the theme's inline style sets text-decoration: none !important */
}


/* =========================================================
   19. "VIEW ALL" — TIDY-UPS THAT NEED NO THEME EDIT (18 Nov 2026)
   a) /blogs: "View All" next to "Recent Posts" linked to /blogs
      itself (the page already shows every post), so it is hidden.
   b) Under articles: "View All" → "View all" (sentence case, like
      every other label). Same words underneath, so screen readers
      and search engines are unaffected.
   The agreed wording changes (Blog / Latest / Related) need theme
   edits and are parked — see blog-redesign/README.md open items.
   Undo: delete this section.
========================================================= */

.blogs-archive-page .recent-view-all {
    display: none;
}

.single-blog-page .single-blog-related-view-all {
    display: inline-block;
    text-transform: lowercase;
}

.single-blog-page .single-blog-related-view-all::first-letter {
    text-transform: uppercase;
}


/* =========================================================
   14b. /BLOGS PAGE HEADING — matched to Pricing (24 Nov 2026)
   pages/blogs.php now prints the shared heading block
   (template-parts/page-heading.php: centred, gradient 48px, grey
   support line), the same as Pricing and Guides. Section 14 above
   no longer matches anything. The featured cards follow the block
   with no extra gap: its own bottom padding (40px) is the gap, as on
   Pricing between the support line and the plans.
========================================================= */

.blogs-archive-page .blogs-page-heading + .featured-blogs-section,
.blogs-archive-page .awwrt-blog-search-section ~ .featured-blogs-section {
    padding-top: 0;
}

.blogs-archive-page .blogs-page-heading + .featured-blogs-section > .blogs-container,
.blogs-archive-page .awwrt-blog-search-section ~ .featured-blogs-section > .blogs-container {
    margin-top: 0;
}

/* The search field sits between the heading and the featured posts (template-parts/
   blog-search.php): the heading's 40px gap is above it, its own 40px gap below it.
   `~` not `+`: the search's <script> sits between the two sections. */
.blogs-archive-page .blogs-page-heading:has(+ .awwrt-blog-search-section) { padding-bottom: 40px; }
