/*
 * JMWD Theme — front-end + canvas stylesheet
 *
 * Printed after the global styles on the front end and concatenated into
 * `/api/v1/global-styles/css` for the editor canvas.
 *
 * The design lives in theme.json: tokens, presets, elements, per-block
 * styles, and the block style variations in `styles/*.json`. This file holds
 * only what the editor can't express natively. Each section is logged in the
 * "Editor shortcomings" table of the design's INVENTORY.md before it lands
 * here:
 *
 *   1. Document basics (border-box sizing, body margin, screen-reader
 *      text) and the design's `text-wrap` on headings and leads (theme.json
 *      has no text-wrap).
 *   2. Buttons: the press and the transitions (element `:hover` can't set
 *      transform or transition), the Secondary variation's hover fill and the
 *      Ghost variation's sliding arrow on Buttons and Read More (variations
 *      have no pseudo-states),
 *      and the Actions variation's phone stack (no responsive direction).
 *   3. The Eyebrow variation's 24px rule, on both sides when centred
 *      (a pseudo-element), and the Tile, Avatar, Check and Mark variations' shrink-to-fit
 *      (the Icon block has no width control).
 *   4. The Glass and Brand card variations' hover: a 4px lift, a cyan
 *      border and a deeper shadow (variations have no pseudo-states).
 *   5. The Night and Day bands' pinned palettes (a variation can't redefine
 *      preset custom properties). Generated by tools/night-css.mjs.
 *   6. The Media slot variation's placeholder ground (the Cover has no
 *      background control, and an overlay would hide an uploaded image).
 *   7. Breadcrumbs: the kit's 10px gaps, a full-strength separator, links
 *      without an underline (element colours can't set text-decoration) and
 *      the current page in the text colour (the block's own stylesheet sets
 *      4px gaps and a 60% separator).
 *   8. The Post Terms Tags style: each term as a Tag pill, separators
 *      hidden (a block style reaches only the wrapper, not each term link).
 *   9. The Outline Number paragraph style's outlined digits (the editor has
 *      no text-stroke control).
 *  10. The Service Index style's active row: the first row, or the one
 *      hovered or focused, gets the cyan number, full-strength title, its
 *      summary and a filled, turned arrow (blocks have no hover or
 *      sibling states).
 *  11. The Billing Switch and Name Pills Tabs styles: the tab list as the
 *      kit's pill toggle, or as name pills below the panel (the Tabs block
 *      has no tab-list styling or placement controls).
 *  12. The Comparison table style: hairline rows, the featured column's
 *      tint, group-label rows, and the check and dash marks (table cells
 *      have no per-column or per-row styling).
 *  13. The Link Row group style (the row's heading link covers the whole
 *      row, with a hover tint and a sliding arrow) and buttons with a
 *      trailing arrow (`has-arrow`): a Group can't be a link, and Buttons
 *      have no icon.
 *  14. Blog controls: Categories as chips or a count list, the pill search
 *      field and pill page numbers (these blocks have no list, input or
 *      link-shape controls).
 *  15. FAQ accordion: the open panel turns light blue, and the "+" chip
 *      that turns into "×"; the box, title type and answer are native.
 *  16. Forms block: Keystone's form island draws daisyUI controls that no
 *      block control reaches; its tokens are re-pointed at the theme's, and
 *      the fields, labels, focus ring and consent checkbox match the kit.
 *  17. Carousel controls: the kit's pill for the current dot, 48px arrows
 *      with a hairline ring, and the controls row's distance from the
 *      slides (no block control for any of them; colours stay native).
 *      Dimmed carousels clip with a 1.5rem margin, so card shadows and
 *      the dimmed neighbours reach into the gutter instead of being cut.
 *  18. Portfolio: the Button style's hover for Read More (its colours and
 *      size are native, in styles/button.json), and the Project Index
 *      loop: a 01–05 counter, the row that lights up on hover (the first
 *      row until the list is hovered), and the arrow that fades in.
 *  19. Categories dropdown: the label and select as the kit's field (46px,
 *      hairline border, faint fill, a drawn chevron); no control reaches
 *      a select's shape.
 *  20. Signup Card: the Forms block on the cyan card gets white fields
 *      with navy text and a navy submit button (§16's tokens re-pointed
 *      inside the card; the card itself is native, styles/signup-card.json).
 *
 * Font Awesome is enqueued from Theme.php. Editor-only overrides live in
 * editor.css.
 */

/* ─── 1. Document ────────────────────────────────────────────────────── */

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* No font smoothing override: the design renders Hanken with the
 * platform's default smoothing, and `antialiased` visibly thins it on the
 * dark ground. */
body {
    margin: 0;
    text-rendering: optimizeLegibility;
}

:where(h1, h2, h3).wp-block-heading {
    text-wrap: balance;
}

.is-style-lead,
:where(p.wp-block-artisanpack-paragraph) {
    text-wrap: pretty;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.screen-reader-text:focus,
.screen-reader-text:focus-within {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    clip: auto;
    clip-path: none;
    white-space: normal;
}

/* ─── 2. Buttons ─────────────────────────────────────────────────────── */

.wp-block-button__link,
.wp-element-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    text-decoration: none;
    white-space: nowrap;
    transition:
        transform var(--wp--custom--motion--dur-fast) var(--wp--custom--motion--ease),
        box-shadow var(--wp--custom--motion--dur) var(--wp--custom--motion--ease),
        background-color var(--wp--custom--motion--dur) var(--wp--custom--motion--ease),
        border-color var(--wp--custom--motion--dur) var(--wp--custom--motion--ease),
        color var(--wp--custom--motion--dur) var(--wp--custom--motion--ease);
}

/* Buttons stay on one line, except a label too long for a phone (long
   calls to action in post content) wraps instead of pushing the page
   sideways. */
@media (max-width: 767px) {
    .wp-block-button__link {
        max-width: 100%;
        white-space: normal;
        text-align: center;
    }
}

.wp-block-button__link:active,
.wp-element-button:active {
    transform: translateY(1px);
}

/* The Secondary hairline is an inset ring, not a border, so the button
 * keeps the primary's height at every size (the kit's buttons have a fixed
 * height; a border would add 2px). */
.wp-block-button.is-style-secondary .wp-block-button__link:hover {
    background-color: color-mix(in srgb, var(--wp--preset--color--heading) 10%, transparent);
    color: var(--wp--preset--color--heading);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--wp--preset--color--heading) 60%, transparent);
}

.wp-block-button.is-style-navy .wp-block-button__link:hover {
    background-color: var(--wp--preset--color--navy);
    color: var(--wp--preset--color--white);
    box-shadow: none;
}

.wp-block-button.is-style-ghost .wp-block-button__link:hover {
    background-color: transparent;
    color: var(--wp--preset--color--primary-text);
    box-shadow: none;
}

/* The kit's arrow is Font Awesome's arrow-right at 13px (0.8125em of the
 * 16px label), from the theme-shipped FA7 Pro. */
.wp-block-button.is-style-ghost .wp-block-button__link::after {
    content: "\f061";
    display: inline-block;
    font-family: "Font Awesome 7 Pro";
    font-weight: 900;
    font-size: 0.8125em;
    line-height: 1;
    transition: transform var(--wp--custom--motion--dur) var(--wp--custom--motion--ease);
}

.wp-block-button.is-style-ghost .wp-block-button__link:hover::after {
    transform: translateX(4px);
}

/* Read More with the Ghost style: the same link and sliding arrow. */
.wp-block-read-more.is-style-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.wp-block-read-more.is-style-ghost::after {
    content: "\f061";
    display: inline-block;
    font-family: "Font Awesome 7 Pro";
    font-weight: 900;
    font-size: 0.8125em;
    line-height: 1;
    transition: transform var(--wp--custom--motion--dur) var(--wp--custom--motion--ease);
}

.wp-block-read-more.is-style-ghost:hover::after {
    transform: translateX(4px);
}

/* The Actions variation: on phones the kit stacks the buttons and runs
 * each one full width, except a ghost link (the renderer has no responsive
 * flex direction for Buttons). */
@media (max-width: 767px) {
    .wp-block-buttons.is-style-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .wp-block-buttons.is-style-actions > .wp-block-button:not(.is-style-ghost) {
        width: 100%;
    }

    .wp-block-buttons.is-style-actions > .wp-block-button:not(.is-style-ghost) > .wp-block-button__link {
        width: 100%;
    }

    .wp-block-buttons.is-style-actions > .wp-block-button.is-style-ghost {
        align-self: flex-start;
    }
}

/* ─── 3. Eyebrow rule and icon tile ──────────────────────────────────── */

.is-style-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.is-style-eyebrow::before,
.is-style-eyebrow.has-text-align-center::after {
    content: "";
    flex: none;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.is-style-eyebrow.has-text-align-center {
    justify-content: center;
}

.wp-block-artisanpack-icon.is-style-tile,
.wp-block-artisanpack-icon.is-style-avatar,
.wp-block-artisanpack-icon.is-style-check,
.wp-block-artisanpack-icon.is-style-mark {
    display: flex;
    width: fit-content;
}

/* Squared icons are fit-content boxes, so a centred one needs auto margins. */
.wp-block-artisanpack-icon:is(.is-style-tile, .is-style-avatar, .is-style-check, .is-style-mark).aligncenter {
    margin-inline: auto;
}

/* A linked tile or mark (the social icons): the link is a block-level line
 * box (the body's line height), which would make it taller than wide. */
.wp-block-artisanpack-icon:is(.is-style-tile, .is-style-mark) > a {
    display: flex;
}

/* ─── 4. Card hover ──────────────────────────────────────────────────── */

.is-style-glass,
.is-style-brand-card {
    transition:
        transform var(--wp--custom--motion--dur) var(--wp--custom--motion--ease),
        border-color var(--wp--custom--motion--dur) var(--wp--custom--motion--ease),
        box-shadow var(--wp--custom--motion--dur) var(--wp--custom--motion--ease);
}

.is-style-glass:hover,
.is-style-brand-card:hover {
    transform: translateY(-4px);
    border-color: var(--wp--preset--color--border-primary);
    box-shadow: var(--wp--preset--shadow--card-hover);
}

@media (prefers-reduced-motion: reduce) {
    .is-style-glass,
    .is-style-brand-card,
    .wp-block-button__link,
    .wp-element-button {
        transition: none;
    }

    .is-style-glass:hover,
    .is-style-brand-card:hover {
        transform: none;
    }
}

/* ─── 5. Night and Day bands (generated) ─────────────────────────────── */

/* night:start (generated by tools/night-css.mjs) */
.is-style-night {
    --wp--preset--color--base: #00022B;
    --wp--preset--color--surface: #010E54;
    --wp--preset--color--surface-alt: #0A1660;
    --wp--preset--color--glass: color-mix(in srgb, var(--wp--preset--color--text) 5%, transparent);
    --wp--preset--color--text: #EFEFEF;
    --wp--preset--color--heading: #EFEFEF;
    --wp--preset--color--text-muted: color-mix(in srgb, var(--wp--preset--color--text) 78%, transparent);
    --wp--preset--color--text-soft: color-mix(in srgb, var(--wp--preset--color--text) 60%, transparent);
    --wp--preset--color--primary-text: #04D9FF;
    --wp--preset--color--primary-tint: color-mix(in srgb, var(--wp--preset--color--primary) 12%, transparent);
    --wp--preset--color--primary-tint-border: color-mix(in srgb, var(--wp--preset--color--primary) 25%, transparent);
    --wp--preset--color--text-link: #04D9FF;
    --wp--preset--color--link-hover: #04FFF7;
    --wp--preset--color--border: color-mix(in srgb, var(--wp--preset--color--text) 12%, transparent);
    --wp--preset--color--border-strong: color-mix(in srgb, var(--wp--preset--color--text) 20%, transparent);
    --wp--preset--color--border-primary: color-mix(in srgb, var(--wp--preset--color--primary) 45%, transparent);
    --wp--preset--color--border-button: color-mix(in srgb, var(--wp--preset--color--text) 35%, transparent);
    --wp--preset--color--card-shadow: transparent;
    --wp--preset--color--placeholder: #8A93B8;
    --wp--preset--color--media-a: color-mix(in srgb, var(--wp--preset--color--secondary) 38%, transparent);
    --wp--preset--color--media-b: color-mix(in srgb, var(--wp--preset--color--navy) 70%, transparent);
    --wp--preset--color--media-icon: color-mix(in srgb, var(--wp--preset--color--text) 28%, transparent);
    --wp--preset--color--error: #F0607A;
    --wp--preset--color--success: #2EBD7F;
    --wp--preset--gradient--brand: linear-gradient(123deg, var(--wp--preset--color--primary) 0%, var(--wp--preset--color--secondary) 100%);
    --wp--preset--gradient--brand-veil: linear-gradient(123deg, color-mix(in srgb, var(--wp--preset--color--primary) 60%, transparent) 0%, color-mix(in srgb, var(--wp--preset--color--secondary) 60%, transparent) 100%);
    --wp--preset--gradient--navy-panel: linear-gradient(135deg, color-mix(in srgb, var(--wp--preset--color--navy) 85%, transparent) 0%, color-mix(in srgb, var(--wp--preset--color--secondary) 45%, transparent) 100%), var(--wp--preset--color--base);
    --wp--preset--gradient--navy-blue: linear-gradient(135deg, var(--wp--preset--color--navy) 0%, var(--wp--preset--color--secondary) 100%);
    --wp--preset--gradient--glow: radial-gradient(ellipse 45% 55% at 20% 78%, rgba(4, 217, 255, 0.32) 0%, rgba(4, 217, 255, 0) 70%), radial-gradient(ellipse 45% 55% at 88% 2%, rgba(31, 81, 255, 0.34) 0%, rgba(31, 81, 255, 0) 70%), var(--wp--preset--color--base);
    --wp--preset--gradient--glow-page: radial-gradient(ellipse 40% 18% at 15% 12%, rgba(4, 217, 255, 0.30) 0%, rgba(4, 217, 255, 0) 70%), radial-gradient(ellipse 40% 18% at 90% 32%, rgba(31, 81, 255, 0.32) 0%, rgba(31, 81, 255, 0) 70%), radial-gradient(ellipse 40% 18% at 20% 59%, rgba(4, 255, 247, 0.26) 0%, rgba(4, 255, 247, 0) 70%), radial-gradient(ellipse 40% 18% at 85% 86%, rgba(8, 85, 177, 0.32) 0%, rgba(8, 85, 177, 0) 70%), var(--wp--preset--color--dark-blue);
    --wp--preset--gradient--media-placeholder: linear-gradient(135deg, var(--wp--preset--color--media-a) 0%, var(--wp--preset--color--media-b) 100%), var(--wp--preset--color--base);
    --wp--preset--gradient--scrim-hero: linear-gradient(90deg, var(--wp--preset--color--primary) 0%, var(--wp--preset--color--secondary) 60%, transparent 100%) left bottom / 100% 4px no-repeat, linear-gradient(90deg, rgba(0, 2, 43, 0.95) 0%, rgba(1, 14, 84, 0.8) 40%, rgba(8, 85, 177, 0.25) 75%, rgba(4, 217, 255, 0.1) 100%);
    --wp--preset--gradient--glow-hero: radial-gradient(circle 580px at 270px 170px, rgba(4, 217, 255, 0.45) 0%, rgba(4, 217, 255, 0) 65%), radial-gradient(circle 636px at calc(100% - 250px) 390px, rgba(31, 81, 255, 0.5) 0%, rgba(31, 81, 255, 0) 65%), var(--wp--preset--color--dark-blue);
    --wp--preset--gradient--fade-base: linear-gradient(180deg, transparent 0%, var(--wp--preset--color--base) 100%);
    --wp--preset--gradient--brand-rule: linear-gradient(90deg, var(--wp--preset--color--primary) 0%, var(--wp--preset--color--secondary) 100%);
    --wp--preset--gradient--brand-rule-fade: linear-gradient(90deg, var(--wp--preset--color--primary) 0%, var(--wp--preset--color--secondary) 60%, transparent 100%);
    --wp--preset--gradient--hairline-fade: linear-gradient(90deg, color-mix(in srgb, var(--wp--preset--color--primary) 60%, transparent) 0%, color-mix(in srgb, var(--wp--preset--color--text) 8%, transparent) 60%);
    --wp--preset--gradient--brand-rule-v: linear-gradient(180deg, var(--wp--preset--color--primary) 0%, var(--wp--preset--color--secondary) 100%);
    --wp--preset--gradient--quote-tint: linear-gradient(135deg, color-mix(in srgb, var(--wp--preset--color--primary) 12%, transparent) 0%, color-mix(in srgb, var(--wp--preset--color--text) 4%, transparent) 100%);
    --wp--preset--gradient--frame-brand: linear-gradient(123deg, var(--wp--preset--color--primary) 0%, var(--wp--preset--color--secondary) 50%, color-mix(in srgb, var(--wp--preset--color--text) 10%, transparent) 100%);
    --wp--preset--shadow--card: 0 10px 40px var(--wp--preset--color--card-shadow);
    --wp--preset--shadow--glow-primary: 0 8px 24px color-mix(in srgb, var(--wp--preset--color--primary) 28%, transparent);
    --wp--preset--shadow--glow-card: 0 30px 70px color-mix(in srgb, var(--wp--preset--color--primary) 25%, transparent);
    --wp--preset--shadow--ring-primary: 0 0 0 1px color-mix(in srgb, var(--wp--preset--color--primary) 45%, transparent);
}
/* night:end */

/* day:start (generated by tools/night-css.mjs) */
.is-style-day {
    --wp--preset--color--base: #EFEFEF;
    --wp--preset--color--surface: #FFFFFF;
    --wp--preset--color--surface-alt: #FAFAFA;
    --wp--preset--color--glass: #FFFFFF;
    --wp--preset--color--text: #262626;
    --wp--preset--color--heading: #010E54;
    --wp--preset--color--text-muted: #424242;
    --wp--preset--color--text-soft: #616161;
    --wp--preset--color--primary-text: #0855B1;
    --wp--preset--color--primary-tint: color-mix(in srgb, #0855B1 10%, transparent);
    --wp--preset--color--primary-tint-border: transparent;
    --wp--preset--color--text-link: #0855B1;
    --wp--preset--color--link-hover: #010E54;
    --wp--preset--color--border: #E6E8EE;
    --wp--preset--color--border-strong: color-mix(in srgb, var(--wp--preset--color--text) 20%, transparent);
    --wp--preset--color--border-primary: color-mix(in srgb, var(--wp--preset--color--primary) 45%, transparent);
    --wp--preset--color--border-button: color-mix(in srgb, #010E54 30%, transparent);
    --wp--preset--color--card-shadow: rgba(1, 14, 84, 0.06);
    --wp--preset--color--placeholder: #6B6B6B;
    --wp--preset--color--media-a: #E0E0E0;
    --wp--preset--color--media-b: #BDBDBD;
    --wp--preset--color--media-icon: color-mix(in srgb, var(--wp--preset--color--text) 28%, transparent);
    --wp--preset--color--error: #C41E3A;
    --wp--preset--color--success: #0B7047;
    --wp--preset--gradient--brand: linear-gradient(123deg, var(--wp--preset--color--primary) 0%, var(--wp--preset--color--secondary) 100%);
    --wp--preset--gradient--brand-veil: linear-gradient(123deg, color-mix(in srgb, var(--wp--preset--color--primary) 60%, transparent) 0%, color-mix(in srgb, var(--wp--preset--color--secondary) 60%, transparent) 100%);
    --wp--preset--gradient--navy-panel: linear-gradient(135deg, color-mix(in srgb, var(--wp--preset--color--navy) 85%, transparent) 0%, color-mix(in srgb, var(--wp--preset--color--secondary) 45%, transparent) 100%), var(--wp--preset--color--base);
    --wp--preset--gradient--navy-blue: linear-gradient(135deg, var(--wp--preset--color--navy) 0%, var(--wp--preset--color--secondary) 100%);
    --wp--preset--gradient--glow: radial-gradient(ellipse 45% 55% at 20% 78%, rgba(4, 217, 255, 0.32) 0%, rgba(4, 217, 255, 0) 70%), radial-gradient(ellipse 45% 55% at 88% 2%, rgba(31, 81, 255, 0.34) 0%, rgba(31, 81, 255, 0) 70%), var(--wp--preset--color--base);
    --wp--preset--gradient--glow-page: radial-gradient(ellipse 40% 18% at 15% 12%, rgba(4, 217, 255, 0.30) 0%, rgba(4, 217, 255, 0) 70%), radial-gradient(ellipse 40% 18% at 90% 32%, rgba(31, 81, 255, 0.32) 0%, rgba(31, 81, 255, 0) 70%), radial-gradient(ellipse 40% 18% at 20% 59%, rgba(4, 255, 247, 0.26) 0%, rgba(4, 255, 247, 0) 70%), radial-gradient(ellipse 40% 18% at 85% 86%, rgba(8, 85, 177, 0.32) 0%, rgba(8, 85, 177, 0) 70%), var(--wp--preset--color--dark-blue);
    --wp--preset--gradient--media-placeholder: linear-gradient(135deg, var(--wp--preset--color--media-a) 0%, var(--wp--preset--color--media-b) 100%), var(--wp--preset--color--base);
    --wp--preset--gradient--scrim-hero: linear-gradient(90deg, var(--wp--preset--color--primary) 0%, var(--wp--preset--color--secondary) 60%, transparent 100%) left bottom / 100% 4px no-repeat, linear-gradient(90deg, rgba(0, 2, 43, 0.95) 0%, rgba(1, 14, 84, 0.8) 40%, rgba(8, 85, 177, 0.25) 75%, rgba(4, 217, 255, 0.1) 100%);
    --wp--preset--gradient--glow-hero: radial-gradient(circle 580px at 270px 170px, rgba(4, 217, 255, 0.45) 0%, rgba(4, 217, 255, 0) 65%), radial-gradient(circle 636px at calc(100% - 250px) 390px, rgba(31, 81, 255, 0.5) 0%, rgba(31, 81, 255, 0) 65%), var(--wp--preset--color--dark-blue);
    --wp--preset--gradient--fade-base: linear-gradient(180deg, transparent 0%, var(--wp--preset--color--base) 100%);
    --wp--preset--gradient--brand-rule: linear-gradient(90deg, var(--wp--preset--color--primary) 0%, var(--wp--preset--color--secondary) 100%);
    --wp--preset--gradient--brand-rule-fade: linear-gradient(90deg, var(--wp--preset--color--primary) 0%, var(--wp--preset--color--secondary) 60%, transparent 100%);
    --wp--preset--gradient--hairline-fade: linear-gradient(90deg, color-mix(in srgb, var(--wp--preset--color--primary) 60%, transparent) 0%, color-mix(in srgb, var(--wp--preset--color--text) 8%, transparent) 60%);
    --wp--preset--gradient--brand-rule-v: linear-gradient(180deg, var(--wp--preset--color--primary) 0%, var(--wp--preset--color--secondary) 100%);
    --wp--preset--gradient--quote-tint: linear-gradient(135deg, color-mix(in srgb, var(--wp--preset--color--primary) 12%, transparent) 0%, color-mix(in srgb, var(--wp--preset--color--text) 4%, transparent) 100%);
    --wp--preset--gradient--frame-brand: linear-gradient(123deg, var(--wp--preset--color--primary) 0%, var(--wp--preset--color--secondary) 50%, color-mix(in srgb, var(--wp--preset--color--text) 10%, transparent) 100%);
    --wp--preset--shadow--card: 0 10px 40px var(--wp--preset--color--card-shadow);
    --wp--preset--shadow--glow-primary: 0 8px 24px color-mix(in srgb, var(--wp--preset--color--primary) 28%, transparent);
    --wp--preset--shadow--glow-card: 0 30px 70px color-mix(in srgb, var(--wp--preset--color--primary) 25%, transparent);
    --wp--preset--shadow--ring-primary: 0 0 0 1px color-mix(in srgb, var(--wp--preset--color--primary) 45%, transparent);
}
/* day:end */

/* ─── 6. Media slot ──────────────────────────────────────────────────── */

/* An empty Cover with the Media slot style shows the placeholder gradient.
 * An uploaded image is drawn over it (absolutely positioned, cover-fit), so
 * replacing the placeholder needs no overlay change. */
.wp-block-cover.is-style-media {
    background: var(--wp--preset--gradient--media-placeholder);
}

/* ─── 7. Breadcrumbs ─────────────────────────────────────────────────── */

.wp-block-artisanpack-breadcrumbs .ap-breadcrumbs__list,
.wp-block-artisanpack-breadcrumbs .ap-breadcrumbs__item {
    gap: 0.625rem;
}

.wp-block-artisanpack-breadcrumbs .ap-breadcrumbs__separator {
    width: 0.75em;
    height: 0.75em;
    opacity: 1;
}

.wp-block-artisanpack-breadcrumbs .ap-breadcrumbs__link {
    text-decoration: none;
}

.wp-block-artisanpack-breadcrumbs .ap-breadcrumbs__current {
    color: var(--wp--preset--color--text);
}

/* ─── 8. Post Terms as tags ──────────────────────────────────────────── */

/* The Tags style draws each term as the Tag pill. A block style can only
 * style the wrapper, and each term is its own link with a separator
 * between them. */
.wp-block-post-terms.is-style-term-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.wp-block-post-terms.is-style-term-tags .wp-block-post-terms__term {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    background: var(--wp--preset--color--primary-tint);
    color: var(--wp--preset--color--primary-text);
    text-decoration: none;
}

.wp-block-post-terms.is-style-term-tags .wp-block-post-terms__separator {
    display: none;
}

/* On a glass card the glow behind shows through the tint, so the tag sits
 * on the solid surface colour (AA: the bare tint drops to 4.3:1). */
.is-style-glass .wp-block-post-terms.is-style-term-tags .wp-block-post-terms__term {
    background: linear-gradient(var(--wp--preset--color--primary-tint), var(--wp--preset--color--primary-tint)), var(--wp--preset--color--surface);
}

/* ─── 9. Outline Number ──────────────────────────────────────────────── */

/* The Features subsections' big outlined step numbers (01, 02, 03). */
.is-style-outline-number {
    color: transparent;
    -webkit-text-stroke: 1.5px color-mix(in srgb, var(--wp--preset--color--primary-text) 70%, transparent);
}

/* ─── 10. Service Index ──────────────────────────────────────────────── */

/* Each row's summary is folded away (still read by screen readers) until
 * the row is active. On phones every summary shows: there's no hover. */
.is-style-service-index .service-index__summary {
    max-height: 0;
    margin-block-start: 0 !important;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.2s ease;
}

.is-style-service-index .service-index__number,
.is-style-service-index .service-index__title {
    color: var(--wp--preset--color--text-soft);
    transition: color 0.2s ease;
}

.is-style-service-index .service-index__title a {
    text-decoration: none;
}

.is-style-service-index .service-index__arrow {
    display: flex;
    width: fit-content;
    flex-shrink: 0;
    color: var(--wp--preset--color--text);
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.is-style-service-index > :is(:first-child, :hover, :focus-within) .service-index__number {
    color: var(--wp--preset--color--primary-text);
}

.is-style-service-index > :is(:first-child, :hover, :focus-within) .service-index__title {
    color: var(--wp--preset--color--text);
}

.is-style-service-index > :is(:first-child, :hover, :focus-within) .service-index__summary {
    max-height: 10rem;
    margin-block-start: 0.625rem !important;
    opacity: 1;
}

.is-style-service-index > :is(:first-child, :hover, :focus-within) .service-index__arrow {
    border-color: transparent;
    background-color: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--on-primary);
    transform: rotate(-45deg);
}

/* Another row is active: the first row steps back. */
.is-style-service-index:has(> :not(:first-child):is(:hover, :focus-within)) > :first-child .service-index__number {
    color: var(--wp--preset--color--text-soft);
}

.is-style-service-index:has(> :not(:first-child):is(:hover, :focus-within)) > :first-child .service-index__title {
    color: var(--wp--preset--color--text-soft);
}

.is-style-service-index:has(> :not(:first-child):is(:hover, :focus-within)) > :first-child .service-index__summary {
    max-height: 0;
    margin-block-start: 0 !important;
    opacity: 0;
}

.is-style-service-index:has(> :not(:first-child):is(:hover, :focus-within)) > :first-child .service-index__arrow {
    border-color: var(--wp--preset--color--border-strong);
    background-color: transparent;
    color: var(--wp--preset--color--text);
    transform: none;
}

@media (max-width: 767px) {
    .is-style-service-index .service-index__summary {
        max-height: none;
        margin-block-start: 0.625rem !important;
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .is-style-service-index :is(.service-index__summary, .service-index__arrow) {
        transition: none;
    }
}

/* ─── 11. Billing Switch (Tabs) ──────────────────────────────────────── */

.ap-tabs:is(.is-style-billing, .is-style-billing-on-brand) {
    margin-block-end: 0;
}

.ap-tabs:is(.is-style-billing, .is-style-billing-on-brand) .ap-tabs__list {
    display: flex;
    border-bottom: 0;
}

.ap-tabs.is-style-billing .ap-tabs__list {
    justify-content: center;
}

.ap-tabs:is(.is-style-billing, .is-style-billing-on-brand) .ap-tabs__list ul {
    gap: 0;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--wp--preset--color--text) 14%, transparent);
    background: color-mix(in srgb, var(--wp--preset--color--text) 8%, transparent);
}

.ap-tabs:is(.is-style-billing, .is-style-billing-on-brand) .ap-tabs__list a {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 1.25rem;
    border: 0;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--wp--preset--color--text);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.ap-tabs.is-style-billing .ap-tabs__list a[aria-selected="true"] {
    border: 0;
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--on-primary);
}

.ap-tabs.is-style-billing .ap-tab-section {
    padding: clamp(2rem, 1.6479rem + 1.5023vw, 3rem) 0 0;
}

/* On the brand gradient: white on a translucent track, navy when chosen. */
.ap-tabs.is-style-billing-on-brand .ap-tabs__list ul {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(1, 14, 84, 0.35);
}

.ap-tabs.is-style-billing-on-brand .ap-tabs__list a {
    color: #FFFFFF;
}

.ap-tabs.is-style-billing-on-brand .ap-tabs__list a[aria-selected="true"] {
    border: 0;
    background: var(--wp--preset--color--navy);
    color: #FFFFFF;
}

.ap-tabs.is-style-billing-on-brand .ap-tab-section {
    padding: 1.5rem 0 0;
}

/* Name Pills: the testimonial picker. The tab list sits under the panel,
 * as in the kit; each name is a bordered pill, the chosen one tinted. */
.ap-tabs.is-style-people {
    flex-direction: column-reverse;
    gap: clamp(2rem, 1.6479rem + 1.5023vw, 3rem);
    margin-block-end: 0;
}

.ap-tabs.is-style-people .ap-tabs__list {
    display: flex;
    justify-content: center;
    border-bottom: 0;
}

.ap-tabs.is-style-people .ap-tabs__list ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(0.5rem, 0.2183rem + 1.2019vw, 1rem);
}

.ap-tabs.is-style-people .ap-tabs__list a {
    display: inline-flex;
    align-items: center;
    height: 44px;
    padding: 0 1.125rem;
    border: 1px solid var(--wp--preset--color--border-strong);
    border-radius: 999px;
    color: var(--wp--preset--color--text-muted);
    font-size: 0.875rem;
    font-weight: 700;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ap-tabs.is-style-people .ap-tabs__list a[aria-selected="true"] {
    border: 1px solid color-mix(in srgb, var(--wp--preset--color--primary) 50%, transparent);
    background: color-mix(in srgb, var(--wp--preset--color--primary) 14%, transparent);
    color: var(--wp--preset--color--text);
}

.ap-tabs.is-style-people .ap-tab-section {
    padding: 0;
}

/* ─── 12. Comparison table ───────────────────────────────────────────── */

.wp-block-table.is-style-comparison {
    margin: 0;
}

.wp-block-table.is-style-comparison table {
    width: 100%;
    border-collapse: collapse;
}

.wp-block-table.is-style-comparison td {
    padding: 1rem 0.5rem;
    line-height: 1.4;
    border: 0;
    border-top: 1px solid var(--wp--preset--color--border);
    color: var(--wp--preset--color--text);
    font-weight: 600;
    text-align: center;
}

.wp-block-table.is-style-comparison td:first-child {
    width: 40%;
    padding-left: 0;
    font-size: 1rem;
    font-weight: 400;
    text-align: left;
}

/* The featured (middle) plan's tinted column, closed at the bottom. */
.wp-block-table.is-style-comparison td:nth-child(3) {
    background: color-mix(in srgb, var(--wp--preset--color--primary-text) 7%, transparent);
}

.wp-block-table.is-style-comparison tr:last-child td:nth-child(3) {
    border-radius: 0 0 16px 16px;
}

/* Group-label rows: a label in the first cell, the others empty. */
.wp-block-table.is-style-comparison tr:has(> td:nth-child(2):empty) td {
    padding-top: 1.75rem;
    padding-bottom: 0.75rem;
    border-top: 0;
}

.wp-block-table.is-style-comparison tr:has(> td:nth-child(2):empty) td:first-child {
    color: var(--wp--preset--color--primary-text);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Included (bold) and not included (italic) marks. */
.wp-block-table.is-style-comparison strong {
    color: var(--wp--preset--color--primary-text);
}

.wp-block-table.is-style-comparison em {
    color: var(--wp--preset--color--text-soft);
    font-style: normal;
}

@media (max-width: 767px) {
    .wp-block-table.is-style-comparison td {
        padding-inline: 0.25rem;
        font-size: 0.8125rem;
    }

    .wp-block-table.is-style-comparison td:first-child {
        width: 34%;
        font-size: 0.875rem;
    }
}

/* ─── 13. Link rows and arrow buttons ────────────────────────────────── */

/* A Link Row's heading link stretches over the whole row, so the row is
 * one click target while the link text stays the accessible name. */
.is-style-link-row {
    position: relative;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.is-style-link-row :is(h2, h3, h4) a {
    text-decoration: none;
}

.is-style-link-row :is(h2, h3, h4) a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.is-style-link-row:hover,
.is-style-link-row:focus-within {
    background-color: color-mix(in srgb, var(--wp--preset--color--text) 5%, transparent);
}

.is-style-link-row .link-row__arrow {
    transition: transform var(--wp--custom--motion--dur) var(--wp--custom--motion--ease);
}

.is-style-link-row:is(:hover, :focus-within) .link-row__arrow {
    transform: translateX(4px);
}

/* Buttons with a trailing arrow: the label left, the arrow right. */
.wp-block-button.has-arrow .wp-block-button__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.wp-block-button.has-arrow .wp-block-button__link::after {
    content: "\f061";
    font-family: "Font Awesome 7 Pro";
    font-weight: 900;
    font-size: 0.8125em;
    line-height: 1;
    transition: transform var(--wp--custom--motion--dur) var(--wp--custom--motion--ease);
}

.wp-block-button.has-arrow .wp-block-button__link:hover::after {
    transform: translateX(4px);
}

/* A downward arrow for in-page jumps (`has-arrow has-arrow-down`). */
.wp-block-button.has-arrow-down .wp-block-button__link::after {
    content: "\f063";
}

.wp-block-button.has-arrow-down .wp-block-button__link:hover::after {
    transform: translateY(3px);
}

@media (prefers-reduced-motion: reduce) {
    .is-style-link-row,
    .is-style-link-row .link-row__arrow,
    .wp-block-button.has-arrow .wp-block-button__link::after {
        transition: none;
    }
}

/* ─── 14. Blog controls ──────────────────────────────────────────────── */

/* Categories as filter chips (the current category's chip is filled). */
.wp-block-categories.is-style-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wp-block-categories.is-style-chips li {
    margin: 0;
}

.wp-block-categories.is-style-chips a {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 1.125rem;
    border: 1px solid color-mix(in srgb, var(--wp--preset--color--text) 20%, transparent);
    border-radius: 999px;
    color: var(--wp--preset--color--text);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* The count's screen-reader label is absolutely positioned; keep it
   inside the chip so it can't escape the phone's scrolling row. */
.wp-block-categories.is-style-chips a {
    position: relative;
}

.wp-block-categories.is-style-chips .wp-block-categories__count {
    margin-inline-start: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    opacity: 0.7;
}

.wp-block-categories.is-style-chips a:hover,
.wp-block-categories.is-style-chips .current-cat > a {
    border-color: transparent;
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--on-primary);
}

/* On phones the chips scroll sideways in one row, as in the kit. */
@media (max-width: 767px) {
    .wp-block-categories.is-style-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }
}

/* Categories as a list with muted post counts on the right. */
.wp-block-categories.is-style-count-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wp-block-categories.is-style-count-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 0;
    color: var(--wp--preset--color--text-muted);
}

.wp-block-categories.is-style-count-list a {
    color: var(--wp--preset--color--text);
    text-decoration: none;
}

.wp-block-categories.is-style-count-list a:hover {
    color: var(--wp--preset--color--primary-text);
}

/* The pill search field with a magnifier. */
.wp-block-search.is-style-pill .wp-block-search__inside-wrapper {
    position: relative;
    border: 0;
    padding: 0;
}

.wp-block-search.is-style-pill .wp-block-search__inside-wrapper::before {
    content: "\f002";
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    font-family: "Font Awesome 7 Pro";
    font-weight: 900;
    font-size: 0.8125rem;
    color: var(--wp--preset--color--text-soft);
    pointer-events: none;
}

.wp-block-search.is-style-pill .wp-block-search__input {
    width: 100%;
    height: 44px;
    padding: 0 1.125rem 0 2.625rem;
    border: 1px solid color-mix(in srgb, var(--wp--preset--color--text) 20%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--wp--preset--color--text) 6%, transparent);
    color: var(--wp--preset--color--text);
    font: inherit;
}

.wp-block-search.is-style-pill .wp-block-search__input::placeholder {
    color: var(--wp--preset--color--text-soft);
}

/* Pagination as 44px pills, the current page filled. */
.wp-block-query-pagination.is-style-pills,
.wp-block-query-pagination.is-style-pills .wp-block-query-pagination-numbers {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.wp-block-query-pagination.is-style-pills :is(.page-numbers, .wp-block-query-pagination-previous, .wp-block-query-pagination-next) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    border: 1px solid color-mix(in srgb, var(--wp--preset--color--text) 16%, transparent);
    border-radius: 999px;
    color: var(--wp--preset--color--text);
    text-decoration: none;
}

.wp-block-query-pagination.is-style-pills .page-numbers.current {
    border-color: transparent;
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--on-primary);
}

.wp-block-query-pagination.is-style-pills .page-numbers.dots {
    border-color: transparent;
}

/* ─── 15. FAQ accordion ──────────────────────────────────────────────── */

/* FAQ (styles/faq.json) on Accordions. Each panel's box, title type and
   answer are native; the renderer draws the click target and the toggle
   icon itself, and no control reaches a panel's open state. */

/* The title's own padding sits outside the click target, so the padding
   goes on the target, with room on the right for the chip. */
.is-style-faq .ap-accordion__title {
    padding: 0;
}

.is-style-faq .ap-accordion__title-content {
    padding: 1.25rem 4.75rem 1.25rem 1.5rem;
}

.is-style-faq .ap-accordion__title-content:focus-visible {
    outline: 2px solid var(--wp--preset--color--primary-text);
    outline-offset: -2px;
    border-radius: 11px;
}

/* The question and the answer hold blocks, but neither is a layout
   container with a gap control: trim the outer margins only, so an answer
   with several paragraphs keeps the space between them. */
.is-style-faq :is(.ap-accordion__title-content, .ap-accordion__body) > :first-child {
    margin-top: 0;
}

.is-style-faq :is(.ap-accordion__title-content, .ap-accordion__body) > :last-child {
    margin-bottom: 0;
}

/* An open panel turns light blue with navy text (preset colour classes
   are !important). */
.is-style-faq .ap-accordion:has(> .ap-accordion__title [aria-expanded="true"]) {
    border-color: var(--wp--preset--color--light-blue) !important;
    background-color: var(--wp--preset--color--light-blue) !important;
    color: var(--wp--preset--color--on-light-blue) !important;
}

/* The design's "+" chip, which turns into "×" when open. */
.is-style-faq .ap-accordion__icon--plus-minus {
    right: 1.5rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--wp--preset--color--primary-tint);
    color: var(--wp--preset--color--primary-text);
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.is-style-faq .ap-accordion__icon--plus-minus::before,
.is-style-faq .ap-accordion__icon--plus-minus::after {
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2px;
    margin: -1px 0 0 -6px;
    border-radius: 1px;
}

.is-style-faq .ap-accordion__icon--plus-minus::before {
    width: 2px;
    height: 12px;
    margin: -6px 0 0 -1px;
}

.is-style-faq .ap-accordion__title-content[aria-expanded="true"] ~ .ap-accordion__icon--plus-minus {
    background: var(--wp--preset--color--navy);
    color: var(--wp--preset--color--on-brand);
    transform: translateY(-50%) rotate(45deg);
}

.is-style-faq .ap-accordion__title-content[aria-expanded="true"] ~ .ap-accordion__icon--plus-minus::before {
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .is-style-faq .ap-accordion__icon--plus-minus {
        transition: none;
    }
}

/* ─── 16. Forms block ────────────────────────────────────────────────── */

/* Keystone mounts the form (a React island) inside the Forms block and
   styles it with daisyUI, whose tokens sit on `:where([data-keystone-form])`.
   Re-point them at the theme's, so the fields follow dark and Light. */
.wp-block-artisanpack-form {
    --color-base-100: color-mix(in srgb, var(--wp--preset--color--text) 6%, transparent);
    --color-base-200: color-mix(in srgb, var(--wp--preset--color--text) 10%, transparent);
    --color-base-300: color-mix(in srgb, var(--wp--preset--color--text) 18%, transparent);
    --color-base-content: var(--wp--preset--color--text);
    --color-primary: var(--wp--preset--color--primary);
    --color-primary-content: var(--wp--preset--color--on-primary);
    --color-error: var(--wp--preset--color--error);
    --radius-field: 8px;
    --radius-selector: 5px;
    color: var(--wp--preset--color--text);
}

/* Labels: the kit's 14px semibold, 8px above the field. */
.wp-block-artisanpack-form .fieldset-legend {
    justify-content: flex-start;
    gap: 0.25rem;
    margin: 0;
    padding: 0 0 0.5rem;
    color: var(--wp--preset--color--text);
    font-size: 0.875rem;
    font-weight: 600;
}

/* Fields: 50px, a hairline border, the faint fill, 16px text. */
.wp-block-artisanpack-form :is(.input, .textarea, .select) {
    border: 1px solid var(--color-base-300);
    background-color: var(--color-base-100);
    color: var(--wp--preset--color--text);
    font-size: 1rem;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wp-block-artisanpack-form :is(.input, .select) {
    height: 3.125rem;
    padding-inline: 1rem;
}

.wp-block-artisanpack-form .textarea {
    padding: 0.875rem 1rem;
}

.wp-block-artisanpack-form :is(.input input, .textarea, .select select)::placeholder {
    color: inherit;
    opacity: 0.7;
}

.wp-block-artisanpack-form :is(.input:focus-within, .textarea:focus, .select:focus-within) {
    outline: none;
    border-color: var(--wp--preset--color--primary-text);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--primary) 22%, transparent);
}

/* Consent and single checkboxes: the box first, at the left (the island
   puts it after the label and packs the reversed row to the right). */
.wp-block-artisanpack-form label:has(> .checkbox) {
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.625rem;
    color: var(--wp--preset--color--text-muted);
    font-size: 0.875rem;
}

.wp-block-artisanpack-form .checkbox {
    width: 20px;
    height: 20px;
    border: 1.5px solid color-mix(in srgb, var(--wp--preset--color--text) 40%, transparent);
    border-radius: 5px;
}

.wp-block-artisanpack-form .checkbox:checked {
    border-color: var(--wp--preset--color--primary);
    background-color: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--on-primary);
}

.wp-block-artisanpack-form .checkbox:focus-visible {
    outline: 2px solid var(--wp--preset--color--primary-text);
    outline-offset: 2px;
}

/* The submit button spans the form on phones, as in the kit. */
@media (max-width: 767px) {
    .wp-block-artisanpack-form button[type="submit"] {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wp-block-artisanpack-form :is(.input, .textarea, .select) {
        transition: none;
    }
}

/* ─── 17. Carousel controls ─────────────────────────────────────────── */

/*
 * The block clips a dimmed carousel at its own edge (`overflow-x: clip`),
 * which cuts the glass cards' shadows. Clip both axes with a margin the
 * size of the smallest gutter instead (Chrome ignores the margin when only
 * one axis clips, and rejects the gutter's clamp()).
 */
.wp-block-artisanpack-carousel.has-dimmed-inactive.is-ready {
    overflow: clip;
    overflow-clip-margin: 1.5rem;
}

.wp-block-artisanpack-carousel {
    --ap-carousel-dot-color: var(--wp--preset--color--text-muted);
}

.wp-block-artisanpack-carousel__controls {
    gap: 0.75rem;
    margin-block-start: clamp(1.5rem, 1.1479rem + 1.5023vw, 2.5rem);
}

.wp-block-artisanpack-carousel.is-controls-below > .wp-block-artisanpack-carousel__controls {
    gap: 1.5rem;
}

.wp-block-artisanpack-carousel__arrow {
    width: 3rem;
    height: 3rem;
    border-color: var(--wp--preset--color--border-strong);
    color: var(--wp--preset--color--heading);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.wp-block-artisanpack-carousel__arrow:not([aria-disabled="true"]):hover {
    border-color: var(--wp--preset--color--primary-text);
}

.wp-block-artisanpack-carousel__arrow svg {
    width: 1.125rem;
    height: 1.125rem;
}

/* An 8px dot (the current one a 28px pill) inside a 24px-tall target. */
.wp-block-artisanpack-carousel__dots {
    gap: 0;
}

.wp-block-artisanpack-carousel__dot {
    width: 1.5rem;
    padding: 0.5rem;
    border-radius: 999px;
    opacity: 1;
    transition: width 0.2s ease;
}

.wp-block-artisanpack-carousel__dot.is-active {
    width: 2.75rem;
}

.wp-block-artisanpack-carousel__arrow:focus-visible,
.wp-block-artisanpack-carousel__dot:focus-visible {
    outline-color: var(--wp--preset--color--primary-text);
}

@media (prefers-reduced-motion: reduce) {
    .wp-block-artisanpack-carousel__arrow,
    .wp-block-artisanpack-carousel__dot {
        transition: none;
    }
}

/* ─── 18. Portfolio ──────────────────────────────────────────────────── */

/* Read More, Button style: the kit's primary button states. */
.wp-block-read-more.is-style-button {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    text-decoration: none;
    transition: background-color var(--wp--custom--motion--dur) var(--wp--custom--motion--ease),
        box-shadow var(--wp--custom--motion--dur) var(--wp--custom--motion--ease);
}

.wp-block-read-more.is-style-button:hover {
    background-color: var(--wp--preset--color--primary-hover);
    color: var(--wp--preset--color--on-primary);
    box-shadow: var(--wp--preset--shadow--glow-primary);
}

.wp-block-read-more.is-style-button:focus-visible {
    outline: 2px solid var(--wp--preset--color--primary);
    outline-offset: 2px;
}

/*
 * Project Index (a Post Template style): each row is numbered 01, 02, …
 * from the loop position, which no block can print. The active row (the
 * hovered one, or the first while the list isn't hovered) turns its
 * number and title cyan, nudges the title and shows the arrow.
 */
.wp-block-post-template.is-style-project-index {
    counter-reset: project;
}

.wp-block-post-template.is-style-project-index > li {
    counter-increment: project;
}

.is-style-project-index .project-index__row::before {
    content: counter(project, decimal-leading-zero);
    flex: 0 0 3rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--wp--preset--color--text-muted);
    transition: color var(--wp--custom--motion--dur) var(--wp--custom--motion--ease);
}

.is-style-project-index .project-index__title {
    transition: transform 0.3s var(--wp--custom--motion--ease);
}

.is-style-project-index .project-index__title a {
    color: var(--wp--preset--color--heading);
    text-decoration: none;
    transition: color var(--wp--custom--motion--dur) var(--wp--custom--motion--ease);
}

.is-style-project-index .project-index__arrow {
    opacity: 0;
    transition: opacity var(--wp--custom--motion--dur) var(--wp--custom--motion--ease);
}

.is-style-project-index > li:is(:hover, :focus-within) .project-index__row::before,
.is-style-project-index:not(:hover):not(:focus-within) > li:first-child .project-index__row::before,
.is-style-project-index > li:is(:hover, :focus-within) .project-index__title a,
.is-style-project-index:not(:hover):not(:focus-within) > li:first-child .project-index__title a {
    color: var(--wp--preset--color--primary-text);
}

.is-style-project-index > li:is(:hover, :focus-within) .project-index__arrow,
.is-style-project-index:not(:hover):not(:focus-within) > li:first-child .project-index__arrow {
    opacity: 1;
}

@media (min-width: 768px) {
    .is-style-project-index > li:is(:hover, :focus-within) .project-index__title,
    .is-style-project-index:not(:hover):not(:focus-within) > li:first-child .project-index__title {
        transform: translateX(0.5rem);
    }
}

@media (max-width: 767px) {
    .is-style-project-index .project-index__row::before {
        content: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wp-block-read-more.is-style-button,
    .is-style-project-index .project-index__title,
    .is-style-project-index .project-index__title a,
    .is-style-project-index .project-index__arrow {
        transition: none;
    }
}

/* ─── 19. Categories dropdown ────────────────────────────────────────── */

/* The kit's SelectBox: a small bold label over a 46px field. */
.wp-block-categories-dropdown {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wp-block-categories-dropdown .wp-block-categories__label {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--wp--preset--color--text-muted);
}

.wp-block-categories-dropdown select {
    box-sizing: border-box;
    width: 100%;
    height: 2.875rem;
    padding: 0 2.5rem 0 0.875rem;
    border: 1px solid color-mix(in srgb, var(--wp--preset--color--text) 20%, transparent);
    border-radius: 8px;
    background-color: color-mix(in srgb, var(--wp--preset--color--text) 6%, transparent);
    background-image:
        linear-gradient(45deg, transparent 50%, currentColor 50%),
        linear-gradient(135deg, currentColor 50%, transparent 50%);
    background-position: calc(100% - 1.25rem) 50%, calc(100% - 0.9375rem) 50%;
    background-size: 0.3125rem 0.3125rem;
    background-repeat: no-repeat;
    color: var(--wp--preset--color--text);
    font: inherit;
    font-size: 0.9375rem;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.wp-block-categories-dropdown select:hover {
    border-color: var(--wp--preset--color--primary-text);
}

.wp-block-categories-dropdown select:focus-visible {
    outline: 2px solid var(--wp--preset--color--primary);
    outline-offset: 2px;
}

/* The open list follows the page, not the translucent field. */
.wp-block-categories-dropdown option {
    background-color: var(--wp--preset--color--surface);
    color: var(--wp--preset--color--text);
}

@media (prefers-reduced-motion: reduce) {
    .wp-block-categories-dropdown select {
        transition: none;
    }
}

/* ─── 20. Signup Card ────────────────────────────────────────────────── */

/* The form on the cyan card: white fields, navy text and a navy button.
   §16 reads the text preset and daisyUI's tokens, so re-point both here. */
.is-style-signup-card .wp-block-artisanpack-form {
    --wp--preset--color--text: #010E54;
    --color-base-100: #FFFFFF;
    --color-base-200: #FFFFFF;
    --color-base-300: rgba(1, 14, 84, 0.35);
    --color-base-content: #010E54;
    --color-primary: #010E54;
    --color-primary-content: #EFEFEF;
}


/* ─── 21. Social Links labels ────────────────────────────────────────── */

/* Visible labels sit at 0.65em of the icon size on a zero line height
   (WordPress parity), with no control of their own. The design's pills
   read at 15px beside a 16px icon. */
.wp-block-social-links.has-visible-labels .wp-social-link .wp-block-social-link-label {
    font-size: 0.9375em;
    line-height: 1.2;
    margin-inline: 0.625rem 0;
}

/* Stop-gap for visual-editor #1121 (fixed upstream in PR #1125, not yet
   released). The icon border settings ride on the <ul> as
   `--ap-social-links-border-*` properties, and the block library's
   `html :where([style*="border-color"])` rules match that substring, giving
   the whole list a 3px currentColor border. The list has no border support
   of its own, so reset it. Remove once the theme requires the release that
   ships the fix. */
.wp-block-artisanpack-social-links:is(.has-icon-border, .has-icon-hover-border-color) {
    border-style: none;
}

/* ─── 22. Check-mark lists ───────────────────────────────────────────── */

/* List block, Checks style: a cyan check before each item instead of a
   bullet. List has no marker control. */
.wp-block-list.is-style-checks {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.wp-block-list.is-style-checks > li {
    position: relative;
    padding-inline-start: 1.75rem;
}

.wp-block-list.is-style-checks > li::before {
    content: "\f058";
    position: absolute;
    inset-inline-start: 0;
    font-family: "Font Awesome 7 Pro";
    font-weight: 900;
    font-size: 0.875em;
    color: var(--wp--preset--color--primary-text);
}

/* ─── 23. Header, mobile menu and footer ─────────────────────────────── */

/* The header bar's frosted glass: no block exposes `backdrop-filter`. It
   sits on a layer behind the bar's content: on the bar itself it would
   make the bar the containing block of the fixed menu overlay and trap
   the overlay inside it. */
.wp-block-template-part--header .wp-block-group:has(> .wp-block-image) {
    position: relative;
    isolation: isolate;
}

.wp-block-template-part--header .wp-block-group:has(> .wp-block-image)::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    pointer-events: none;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

/* The current page's link is bright with a 2px cyan underline. The
   renderer marks it (`current-menu-item`), but Navigation has no colour
   or decoration for a current item. */
.wp-block-template-part--header .wp-block-navigation:not(.is-vertical) .current-menu-item > .wp-block-navigation-item__content {
    position: relative;
    color: var(--wp--preset--color--heading);
}

.wp-block-template-part--header .wp-block-navigation:not(.is-vertical) .current-menu-item > .wp-block-navigation-item__content::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.5rem;
    height: 2px;
    border-radius: 2px;
    background: var(--wp--preset--color--primary);
}

/* In the overlay the current link is bright, without the underline. */
.wp-block-navigation__overlay-content .current-menu-item > .wp-block-navigation-item__content {
    color: var(--wp--preset--color--primary-text);
}

.wp-block-navigation__overlay-content .current-menu-item > .wp-block-navigation-item__content::after {
    content: none;
}

/* Links brighten on hover (Navigation has no hover colour). */
.wp-block-template-part--header .wp-block-navigation-item__content:is(:hover, :focus-visible),
.wp-block-template-part--footer .wp-block-navigation-item__content:is(:hover, :focus-visible) {
    color: var(--wp--preset--color--primary-text);
}

/* The skip link floats over the header when focused instead of pushing
   the bar down. */
.wp-block-template-part--header .screen-reader-text:focus-within {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 100;
    padding: 0.625rem 1rem;
    border-radius: 8px;
    background: var(--wp--preset--color--surface);
}

/* The menu toggles take the theme's focus ring. */
.wp-block-navigation__responsive-container-open:focus-visible,
.wp-block-navigation__responsive-container-close:focus-visible {
    outline: 2px solid var(--wp--preset--color--primary);
    outline-offset: 2px;
}

/* In-page jumps stop below the sticky header. */
html {
    scroll-padding-top: 8rem;
}

/* A wordmark squeezed by its row (the landing-page header on phones)
   scales down instead of stretching: Image has no object-fit control. */
.wp-block-template-part .wp-block-image img {
    object-fit: contain;
    object-position: left center;
}

/* The footer's email address may wrap rather than overflow a narrow
   column (Paragraph has no word-break control). */
.wp-block-template-part--footer a[href^="mailto:"] {
    overflow-wrap: anywhere;
    text-decoration: none;
}

/* The header floats over each page's first section (the header part's
   negative bottom margin, and the extra top padding on heroes and page
   headers, both read `--wp--custom--header-height`). On phones the bar is
   92px tall instead of 124px; theme.json custom values can't vary by
   breakpoint. */
@media (max-width: 767px) {
    :root {
        --wp--custom--header-height: 5.75rem;
    }
}

/* ─── 24. Table of contents ──────────────────────────────────────────── */

/* The design's “On this page” list: cyan numbers, muted links that tint on
   hover, no underline. The TOC block has no list, link or marker
   controls. */
.wp-block-artisanpack-toc .ap-toc__list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin: 0;
    padding-inline-start: 1.5rem;
}

.wp-block-artisanpack-toc .ap-toc__item {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
}

.wp-block-artisanpack-toc .ap-toc__item::marker {
    color: var(--wp--preset--color--primary-text);
}

.wp-block-artisanpack-toc .ap-toc__link {
    display: block;
    margin-inline: -0.625rem;
    padding: 0.5rem 0.625rem;
    border-radius: 8px;
    color: var(--wp--preset--color--text-muted);
    text-decoration: none;
    transition: background-color var(--wp--custom--motion--dur) var(--wp--custom--motion--ease), color var(--wp--custom--motion--dur) var(--wp--custom--motion--ease);
}

.wp-block-artisanpack-toc .ap-toc__link:is(:hover, :focus-visible) {
    background-color: var(--wp--preset--color--primary-tint);
    color: var(--wp--preset--color--primary-text);
}

@media (prefers-reduced-motion: reduce) {
    .wp-block-artisanpack-toc .ap-toc__link {
        transition: none;
    }
}

/* The post rail (an unordered TOC): a hairline down the left, no
   bullets, and the hovered link marked by a cyan bar on that line. */
.wp-block-artisanpack-toc ul.ap-toc__list {
    gap: 0;
    padding-inline-start: 0;
    list-style: none;
    border-inline-start: 1px solid var(--wp--preset--color--border);
}

.wp-block-artisanpack-toc ul.ap-toc__list .ap-toc__item {
    font-size: 0.875rem;
    font-weight: 500;
}

.wp-block-artisanpack-toc ul.ap-toc__list .ap-toc__link {
    margin-inline: -1px 0;
    padding: 0.5rem 0 0.5rem 1rem;
    border-radius: 0;
    border-inline-start: 2px solid transparent;
}

.wp-block-artisanpack-toc ul.ap-toc__list .ap-toc__link:is(:hover, :focus-visible) {
    background-color: transparent;
    border-inline-start-color: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--heading);
}

/* ─── 25. Author avatar ───────────────────────────────────────────────── */

/* The Avatar block prints an empty wrapper when the author has no photo;
   collapse it so the byline and the bio card don't keep a blank slot. */
.wp-block-avatar:not(:has(img)) {
    display: none;
}
