/*
Theme Name: Invasion
Description: A clean, fast blog theme for download and software sites, styled after the classic Invision Community forum look: a rebuilt primary menu with seven looks, twelve hover animations, three sizes and an adjustable width, slate widget title bars, a choice of 24 fonts and a two-tone site title with a spaced capital tagline. White post cards with a coloured right and bottom edge, an animated Download button, a list or grid view for the latest posts, over 130 colour presets in groups (including app stores, natural and aesthetic colours), colour styles for menu, post links and widget links (with hover colours), default or full view (no sidebar) for the homepage, posts and pages, a layout choice for each single post or page, optional thumbnails in the post list, a top bar with date, time and social links, a back to top / bottom button and a footer credit line. Layout and fonts are in Appearance > Customize > Theme Options; every colour is in Appearance > Customize > Colours.
Author: AshPaz
Author URI: https://appsurl.com
Version: 1.8.0
Requires at least: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: invasion
Tags: two-columns, right-sidebar, left-sidebar, grid-layout, custom-background, custom-colors, custom-header, custom-logo, custom-menu, footer-widgets, theme-options, threaded-comments, translation-ready, blog

This theme is licensed under the GPL. See readme.txt for credits.

Contents
  1. Design tokens          10. Related posts, author box, tags
  2. Reset and base         11. Comments and forms
  3. Typography             12. Pagination
  4. Icons                  13. Footer
  5. Layout                 14. WordPress core classes
  6. Header                 15. Accessibility and motion
  7. Navigation             16. Responsive
  8. Post cards, list and grid view, Download button
  9. Single post and page, static homepage, sidebar and widgets
 17. Code and preformatted text
*/

/*--------------------------------------------------------------
# 1. Design tokens
# colours (Colour preset), fonts and widths are overwritten by the
# Customizer (Appearance > Customize > Theme Options > Styling).
--------------------------------------------------------------*/
:root {
    /* Customizer colours: blue buttons and links, slate bars and footer, grey-blue card edge */
    --iv-accent: #005AC2;
    --iv-deep: #2B3E50;
    --iv-edge: #8CA3BE;
    --iv-accent-deep: color-mix(in srgb, var(--iv-accent) 72%, #000);
    --iv-accent-bright: color-mix(in srgb, var(--iv-accent) 74%, #fff);
    --iv-ring: color-mix(in srgb, var(--iv-accent) 22%, transparent);

    /* Readable text on the accent and deep colours, form fields, links (all set from the colour preset) */
    --iv-on-accent: #FFFFFF;
    --iv-on-deep: #FFFFFF;
    --iv-field: #FFFFFF;
    --iv-link: var(--iv-accent);
    --iv-link-hover: var(--iv-accent-deep);
    --iv-post-link: var(--iv-link);
    --iv-post-hover: var(--iv-link-hover);
    --iv-widget-link: var(--iv-ink);
    --iv-widget-hover: var(--iv-link);
    --iv-widget-hover-foot: #FFFFFF;
    --iv-foot-text: #C5CFDB;
    --iv-foot-muted: #B4C0CE;
    --iv-foot-line: rgba(255, 255, 255, 0.18);
    --iv-foot-soft: rgba(255, 255, 255, 0.08);

    /* Primary menu: bar, text, hover colour, current tab (Customize > Theme Options > Styling > Primary menu) */
    --iv-menu-bg: var(--iv-deep);
    --iv-menu-text: #DCE4EE;
    --iv-menu-line: rgba(255, 255, 255, 0.14);
    --iv-menu-hover: #FFB020;
    --iv-menu-hover-text: #10151B;
    --iv-menu-hover-fg: #FFB020;
    --iv-menu-current: var(--iv-accent);
    --iv-menu-current-text: #FFFFFF;
    --iv-menu-hover-fg-light: var(--iv-accent);
    --iv-menu-w: 100%;
    --iv-menu-h: 48px;
    --iv-menu-fs: 15px;
    --iv-wtitle-link: var(--iv-wtitle-text);
    --iv-wtitle-hover: #FFB020;
    --iv-title2: var(--iv-accent);
    --iv-tagline: var(--iv-muted);

    /* Widget heading bars, top bar */
    --iv-wtitle-bg: var(--iv-deep);
    --iv-wtitle-text: var(--iv-on-deep);
    --iv-topbar-bg: #1F2D3B;
    --iv-topbar-text: #D5DEE8;
    --iv-topbar-line: rgba(255, 255, 255, 0.14);
    --iv-topbar-fill: #FFB020;
    --iv-topbar-fill-text: #10151B;
    --iv-topbar-fg: #FFFFFF;
    --iv-topbar-cur: var(--iv-accent);
    --iv-topbar-cur-text: #FFFFFF;
    --iv-bbar-bg: #16212C;
    --iv-bbar-text: #D5DEE8;
    --iv-bbar-line: rgba(255, 255, 255, 0.14);
    --iv-bbar-fill: #FFB020;
    --iv-bbar-fill-text: #10151B;
    --iv-bbar-fg: #FFFFFF;
    --iv-bbar-cur: var(--iv-accent);
    --iv-bbar-cur-text: #FFFFFF;

    /* page, boxes and text */
    --iv-bg: #E9EDF2;
    --iv-card: #FFFFFF;
    --iv-soft: #F1F4F8;
    --iv-line: #D3DAE3;
    --iv-line-strong: #B7C2D0;
    --iv-ink: #263445;
    --iv-text: #3F4B5B;
    --iv-muted: #647285;

    /* forum style: squarer corners */
    --iv-radius-card: 6px;
    --iv-radius-media: 4px;
    --iv-radius-field: 4px;
    --iv-radius-btn: 4px;
    --iv-pad: 28px;

    /* widths: set in Customize > Theme Options > Homepage */
    --iv-article-w: 740px;
    --iv-sidebar-w: 340px;
    --iv-static-w: 900px;
    --iv-title: var(--iv-deep);
    --iv-page-w: calc(var(--iv-article-w) + var(--iv-sidebar-w) + 40px);
    --iv-shadow: 0 1px 2px rgba(38, 52, 69, 0.06), 0 10px 22px -18px rgba(38, 52, 69, 0.5);

    /* fonts: set in Customize > Theme Options > Styling */
    --iv-font: "Plus Jakarta Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --iv-font-head: var(--iv-font);

    /* Content compatibility: page content written with --mu-* variables (for example a donation page)
       follows the Invasion colours and fonts through these aliases. Delete them if no page uses --mu-*. */
    --mu-accent: var(--iv-accent);
    --mu-deep: var(--iv-deep);
    --mu-edge: var(--iv-edge);
    --mu-font-head: var(--iv-font-head);
    --mu-font-body: var(--iv-font);
}

/*--------------------------------------------------------------
# 2. Reset and base
--------------------------------------------------------------*/
html {
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}
*, *:before, *:after {
    box-sizing: inherit;
    padding: 0;
    margin: 0;
}
body {
    overflow-x: hidden;
    font-family: var(--iv-font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--iv-text);
    background: var(--iv-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
article, aside, figcaption, figure, footer, header, main, nav, section { display: block }
b, strong { font-weight: 700 }
dfn, cite, em, i { font-style: italic }
mark, ins { background: #FDF3B8; color: #263445; text-decoration: none; }
small { font-size: 80% }
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sup { top: -0.5em }
sub { bottom: -0.25em }
img { height: auto; max-width: 100%; }
svg:not(:root) { overflow: hidden }
hr { height: 1px; background-color: var(--iv-line-strong); border: 0; margin: 0 0 1.5em; }
kbd, var, samp { font-family: Consolas, "Courier New", monospace; font-size: 0.92em; }
ul, ol { margin: 0; padding: 0 }
ul { list-style: disc }
ol { list-style: decimal }
li > ul, li > ol { margin-bottom: 0; margin-left: 17px; margin-top: 5px; }
dt { font-weight: 700 }
dd { margin: 0 1.5em 1.5em }
address { margin: 0 0 1.5em }
blockquote, q { quotes: "" "" }
blockquote:before, blockquote:after, q:before, q:after { content: "" }
table {
    width: 100%;
    margin-bottom: 22px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 15px;
    border: 1px solid var(--iv-line);
    border-radius: var(--iv-radius-media);
}
td, th { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--iv-line); }
th { font-weight: 700; color: var(--iv-ink); background: var(--iv-soft); }
tr:last-child td { border-bottom: 0 }
thead tr:first-child th:first-child { border-top-left-radius: 3px }
thead tr:first-child th:last-child { border-top-right-radius: 3px }

/* Tables in posts (Customize > Theme Options > Styling > Tables in posts) */
.table-scroll { margin-bottom: 22px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll > table, .wp-block-table > table { margin-bottom: 0; }
.wp-block-table { margin: 0 0 22px; overflow-x: auto; }
.post-single-content table {
    --t-head-bg: var(--iv-accent);
    --t-head-text: var(--iv-on-accent);
    --t-line: var(--iv-line);
    width: 100%;
    font-size: 15px;
    line-height: 1.5;
    color: var(--iv-text);
    background: var(--iv-card);
    border: 1px solid var(--t-line);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--iv-radius-media);
}
.post-single-content th, .post-single-content td { padding: 11px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--t-line); }
.post-single-content th { font-weight: 700; color: var(--t-head-text); background: var(--t-head-bg); }
.post-single-content tbody th { color: var(--iv-ink); background: var(--iv-soft); }
.post-single-content tbody tr:last-child td, .post-single-content tbody tr:last-child th { border-bottom: 0; }
.post-single-content thead tr:first-child th:first-child { border-top-left-radius: calc(var(--iv-radius-media) - 1px); }
.post-single-content thead tr:first-child th:last-child { border-top-right-radius: calc(var(--iv-radius-media) - 1px); }
.post-single-content tfoot td, .post-single-content tfoot th { font-weight: 700; color: var(--iv-ink); background: var(--iv-soft); border-top: 1px solid var(--t-line); }
.post-single-content table caption { padding: 8px 0 0; font-size: 13px; color: var(--iv-muted); caption-side: bottom; }
/* striped (default) */
.table-style-striped .post-single-content tbody tr:nth-child(even) td { background: var(--iv-soft); }
.table-style-striped .post-single-content tbody tr:hover td { background: color-mix(in srgb, var(--iv-accent) 10%, var(--iv-card)); }
/* classic grid */
.table-style-classic .post-single-content table { --t-head-bg: var(--iv-deep); --t-head-text: var(--iv-on-deep); --t-line: var(--iv-line-strong); border-radius: 0; border-collapse: collapse; }
.table-style-classic .post-single-content th, .table-style-classic .post-single-content td { border: 1px solid var(--t-line); }
.table-style-classic .post-single-content thead tr:first-child th:first-child, .table-style-classic .post-single-content thead tr:first-child th:last-child { border-radius: 0; }
.table-style-classic .post-single-content tbody tr:hover td { background: var(--iv-soft); }
/* minimal */
.table-style-minimal .post-single-content table { --t-head-bg: transparent; --t-head-text: var(--iv-ink); background: transparent; border: 0; border-radius: 0; }
.table-style-minimal .post-single-content th { text-transform: uppercase; font-size: 12.5px; letter-spacing: 0.08em; border-bottom: 2px solid var(--iv-accent); }
.table-style-minimal .post-single-content td { padding-left: 4px; padding-right: 12px; }
.table-style-minimal .post-single-content th { padding-left: 4px; padding-right: 12px; }
.table-style-minimal .post-single-content tbody tr:hover td { background: var(--iv-soft); }
/* modern */
.table-style-modern .post-single-content table { --t-head-bg: linear-gradient(100deg, var(--iv-deep), color-mix(in srgb, var(--iv-deep) 55%, var(--iv-accent))); --t-head-text: var(--iv-on-deep); --t-line: transparent; border: 0; border-radius: var(--iv-radius-card); box-shadow: var(--iv-shadow), 0 0 0 1px var(--iv-line); overflow: hidden; }
.table-style-modern .post-single-content thead { background: var(--t-head-bg); }
.table-style-modern .post-single-content th { background: transparent; }
.table-style-modern .post-single-content td { border-bottom: 1px solid var(--iv-line); }
.table-style-modern .post-single-content tbody tr { transition: background-color 0.2s ease; }
.table-style-modern .post-single-content tbody tr:hover td { background: color-mix(in srgb, var(--iv-accent) 9%, var(--iv-card)); }
/* soft */
.table-style-soft .post-single-content table { --t-head-bg: color-mix(in srgb, var(--iv-accent) 14%, var(--iv-card)); --t-head-text: var(--iv-link); border: 0; border-radius: var(--iv-radius-media); background: transparent; }
.table-style-soft .post-single-content th { border-radius: 0; border-bottom: 0; }
.table-style-soft .post-single-content thead tr:first-child th:first-child { border-radius: var(--iv-radius-media) 0 0 var(--iv-radius-media); }
.table-style-soft .post-single-content thead tr:first-child th:last-child { border-radius: 0 var(--iv-radius-media) var(--iv-radius-media) 0; }
.table-style-soft .post-single-content tbody tr:hover td { background: var(--iv-soft); }
/* compact */
.table-style-compact .post-single-content table { --t-head-bg: var(--iv-soft); --t-head-text: var(--iv-ink); --t-line: var(--iv-line-strong); font-size: 13.5px; border-radius: 0; border-collapse: collapse; }
.table-style-compact .post-single-content th, .table-style-compact .post-single-content td { padding: 6px 10px; border: 1px solid var(--t-line); }
.table-style-compact .post-single-content thead tr:first-child th:first-child, .table-style-compact .post-single-content thead tr:first-child th:last-child { border-radius: 0; }
/* row cards */
.table-style-rows .post-single-content table { border: 0; background: transparent; border-spacing: 0 8px; }
.table-style-rows .post-single-content th { padding-top: 4px; padding-bottom: 4px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--iv-muted); background: transparent; border: 0; }
.table-style-rows .post-single-content td { background: var(--iv-card); border: 0; box-shadow: inset 0 1px 0 var(--iv-line), inset 0 -1px 0 var(--iv-line); transition: transform 0.2s ease; }
.table-style-rows .post-single-content td:first-child { border-radius: var(--iv-radius-media) 0 0 var(--iv-radius-media); box-shadow: inset 1px 1px 0 var(--iv-line), inset 0 -1px 0 var(--iv-line); }
.table-style-rows .post-single-content td:last-child { border-radius: 0 var(--iv-radius-media) var(--iv-radius-media) 0; box-shadow: inset -1px 1px 0 var(--iv-line), inset 0 -1px 0 var(--iv-line); }
.table-style-rows .post-single-content tbody tr:hover td { background: color-mix(in srgb, var(--iv-accent) 8%, var(--iv-card)); }
/* dark */
.table-style-dark .post-single-content table { --t-head-bg: var(--iv-deep); --t-head-text: var(--iv-on-deep); --t-line: var(--iv-foot-line); color: var(--iv-foot-text); background: color-mix(in srgb, var(--iv-deep) 88%, #000); border-color: var(--iv-foot-line); }
.table-style-dark .post-single-content th { background: var(--iv-deep); }
.table-style-dark .post-single-content tbody tr:nth-child(even) td { background: rgba(255, 255, 255, 0.05); }
.table-style-dark .post-single-content tbody tr:hover td { background: rgba(255, 255, 255, 0.1); }
.table-style-dark .post-single-content a { color: var(--iv-widget-hover-foot); }
/* gradient */
.table-style-gradient .post-single-content table { --t-head-bg: linear-gradient(100deg, var(--iv-accent-deep), var(--iv-accent) 60%, var(--iv-accent-bright)); }
.table-style-gradient .post-single-content thead { background: var(--t-head-bg); }
.table-style-gradient .post-single-content th { background: transparent; }
.table-style-gradient .post-single-content tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--iv-accent) 7%, var(--iv-card)); }
/* outline */
.table-style-outline .post-single-content table { --t-line: color-mix(in srgb, var(--iv-accent) 28%, var(--iv-card)); background: transparent; border: 2px solid var(--iv-accent); }
.table-style-outline .post-single-content th { color: var(--iv-link); background: transparent; border-bottom: 2px solid var(--iv-accent); }
.table-style-outline .post-single-content tbody tr:hover td { background: color-mix(in srgb, var(--iv-accent) 8%, transparent); }
/* first column */
.table-style-first-col .post-single-content table { --t-head-bg: var(--iv-deep); --t-head-text: var(--iv-on-deep); }
.table-style-first-col .post-single-content td:first-child { font-weight: 700; color: var(--iv-ink); background: var(--iv-soft); border-right: 3px solid var(--iv-accent); }
.table-style-first-col .post-single-content tbody tr:hover td { background: color-mix(in srgb, var(--iv-accent) 8%, var(--iv-card)); }
.table-style-first-col .post-single-content tbody tr:hover td:first-child { background: color-mix(in srgb, var(--iv-accent) 14%, var(--iv-soft)); }
/* ruled */
.table-style-ruled .post-single-content table { --t-head-bg: transparent; --t-head-text: var(--iv-ink); background: var(--iv-card); border: 1px solid var(--iv-line); border-left: 4px double var(--iv-accent); border-radius: 4px; }
.table-style-ruled .post-single-content th { border-bottom: 3px double var(--iv-line-strong); }
.table-style-ruled .post-single-content td { border-bottom: 1px dashed var(--iv-line-strong); }
.table-style-ruled .post-single-content thead tr:first-child th:first-child, .table-style-ruled .post-single-content thead tr:first-child th:last-child { border-radius: 0; }
/* centred */
.table-style-centered .post-single-content table { --t-head-bg: var(--iv-deep); --t-head-text: var(--iv-on-deep); }
.table-style-centered .post-single-content th, .table-style-centered .post-single-content td { text-align: center; vertical-align: middle; }
.table-style-centered .post-single-content td:first-child, .table-style-centered .post-single-content th:first-child { text-align: left; font-weight: 700; }
.table-style-centered .post-single-content tbody tr:nth-child(even) td { background: var(--iv-soft); }
/* colourful */
.table-style-colorful .post-single-content td:first-child { font-weight: 700; color: var(--iv-on-deep); background: var(--iv-deep); border-bottom-color: var(--iv-foot-line); }
.table-style-colorful .post-single-content tbody tr:nth-child(even) td:not(:first-child) { background: color-mix(in srgb, var(--iv-accent) 8%, var(--iv-card)); }
.table-style-colorful .post-single-content tbody tr:hover td:not(:first-child) { background: color-mix(in srgb, var(--iv-accent) 16%, var(--iv-card)); }
/* column stripes */
.table-style-zebra-cols .post-single-content td:nth-child(odd) { background: var(--iv-soft); }
.table-style-zebra-cols .post-single-content tbody tr:hover td { background: color-mix(in srgb, var(--iv-accent) 10%, var(--iv-card)); }
/* accent rows */
.table-style-accent-rows .post-single-content table { --t-head-bg: var(--iv-soft); --t-head-text: var(--iv-ink); }
.table-style-accent-rows .post-single-content td:first-child { font-weight: 600; box-shadow: inset 4px 0 0 var(--iv-accent); }
.table-style-accent-rows .post-single-content tbody tr:nth-child(even) td:first-child { box-shadow: inset 4px 0 0 color-mix(in srgb, var(--iv-accent) 45%, transparent); }
.table-style-accent-rows .post-single-content tbody tr:hover td { background: color-mix(in srgb, var(--iv-accent) 8%, var(--iv-card)); }
/* terminal */
.table-style-terminal .post-single-content table { --t-line: #263041; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13.5px; color: #C9F5D4; background: #0D1117; border: 1px solid #30363D; border-radius: 6px; }
.table-style-terminal .post-single-content th { color: #7EE787; background: #161B22; text-transform: uppercase; letter-spacing: 0.06em; }
.table-style-terminal .post-single-content tbody th, .table-style-terminal .post-single-content tfoot td { color: #7EE787; background: #161B22; }
.table-style-terminal .post-single-content tbody tr:hover td { background: #161B22; }
.table-style-terminal .post-single-content a { color: #79C0FF; }
/* paper */
.table-style-paper .post-single-content table { --t-line: #E5D8B5; color: #3B3426; background: #FFFCF2; border: 1px solid #E5D8B5; border-radius: 3px; box-shadow: 0 10px 22px -14px rgba(60, 45, 10, 0.45); }
.table-style-paper .post-single-content th { color: #3B3426; background: #F1E6C6; border-bottom: 2px solid #D9C68F; }
.table-style-paper .post-single-content tbody tr:nth-child(even) td { background: #FAF3DE; }
.table-style-paper .post-single-content a { color: #8A5A00; }
/* pricing */
.table-style-pricing .post-single-content table { --t-head-bg: var(--iv-card); --t-head-text: var(--iv-ink); box-shadow: var(--iv-shadow); }
.table-style-pricing .post-single-content th { padding-top: 16px; padding-bottom: 16px; font-size: 16px; text-align: center; border-top: 4px solid var(--iv-accent); border-bottom: 1px solid var(--iv-line-strong); }
.table-style-pricing .post-single-content td { text-align: center; }
.table-style-pricing .post-single-content td:first-child { font-weight: 700; text-align: left; color: var(--iv-ink); background: var(--iv-soft); }
.table-style-pricing .post-single-content tbody tr:hover td:not(:first-child) { background: color-mix(in srgb, var(--iv-accent) 8%, var(--iv-card)); }
/* underlined */
.table-style-underlined .post-single-content table { --t-head-bg: transparent; --t-head-text: var(--iv-ink); background: transparent; border: 0; border-radius: 0; }
.table-style-underlined .post-single-content th { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; border-bottom: 4px solid var(--iv-accent); }
.table-style-underlined .post-single-content td { border-bottom: 1px solid var(--iv-line); }
.table-style-underlined .post-single-content tbody tr:hover td { background: var(--iv-soft); }
/* lift */
.table-style-lift .post-single-content tbody tr { transition: transform 0.2s ease; }
.table-style-lift .post-single-content tbody tr:hover { transform: translateY(-2px); }
.table-style-lift .post-single-content tbody tr:hover td { background: color-mix(in srgb, var(--iv-accent) 6%, var(--iv-card)); box-shadow: 0 10px 14px -10px rgba(0, 0, 0, 0.4); }
/* double frame */
.table-style-double .post-single-content table { --t-head-bg: var(--iv-deep); --t-head-text: var(--iv-on-deep); border: 4px double var(--iv-line-strong); border-radius: 0; }
.table-style-double .post-single-content thead tr:first-child th:first-child, .table-style-double .post-single-content thead tr:first-child th:last-child { border-radius: 0; }
.table-style-double .post-single-content tbody tr:nth-child(even) td { background: var(--iv-soft); }

/*--------------------------------------------------------------
# 3. Typography
--------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.55em;
    font-family: var(--iv-font-head);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--iv-ink);
}
h1 { font-size: clamp(28px, 4vw, 36px) }
h2 { font-size: clamp(24px, 3vw, 30px) }
h3 { font-size: 22px }
h4 { font-size: 20px }
h5 { font-size: 18px }
h6 { font-size: 16px }
p { margin-bottom: 1.25em }
a {
    color: var(--iv-link);
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
a:hover { color: var(--iv-link-hover) }

/*--------------------------------------------------------------
# 4. Icons (bundled icon font)
--------------------------------------------------------------*/
@font-face {
    font-family: 'invasion-icons';
    src: url('fonts/invasion-icons.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
.iv-icon:before {
    font-family: "invasion-icons";
    font-style: normal;
    font-weight: normal;
    display: inline-block;
    text-align: center;
    line-height: 1em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.icon-plus:before { content: '\e800' }
.icon-bookmark:before { content: '\e801' }
.icon-comment:before { content: '\e802' }
.icon-users:before { content: '\e803' }
.icon-mail:before { content: '\e805' }
.icon-twitter:before { content: '\f099' }
.icon-facebook:before { content: '\f09a' }
.icon-rss:before { content: '\f09e' }
.icon-pinterest-circled:before { content: '\f0d2' }
.icon-linkedin:before { content: '\f0e1' }
.icon-angle-double-right:before { content: '\f101' }
.icon-angle-left:before { content: '\f104' }
.icon-angle-right:before { content: '\f105' }
.icon-github:before { content: '\f113' }
.icon-youtube:before { content: '\f167' }
.icon-dropbox:before { content: '\f16b' }
.icon-instagram:before { content: '\f16d' }
.icon-flickr:before { content: '\f16e' }
.icon-tumblr:before { content: '\f173' }
.icon-dribbble:before { content: '\f17d' }
.icon-vimeo-squared:before { content: '\f194' }
.icon-reddit:before { content: '\f1a1' }
.icon-behance:before { content: '\f1b4' }
.icon-soundcloud:before { content: '\f1be' }

/*--------------------------------------------------------------
# 5. Layout
--------------------------------------------------------------*/
.main-container { width: 100%; max-width: 100%; margin: 0 auto; }
#page, .container { width: 94%; max-width: var(--iv-page-w); min-width: 240px; margin: 0 auto; position: relative; }
#page {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    min-height: 100px;
    padding: 34px 0 20px;
}
.article { flex: 1 1 0; min-width: 0; margin-bottom: 30px; }
/* Full view (no sidebar): the posts use the whole page width */
.sidebar-full #page:not(.static-home) .article { max-width: none; }
.alignleft { float: left }
.alignright { float: right }
@media screen and (min-width: 901px) {
    .sidebar-left #page { flex-direction: row-reverse }
    /* Sticky sidebar: it follows the scroll. js/theme.js adjusts "top" so a tall sidebar stops with its bottom edge in view. */
    .sidebar-sticky .sidebar { position: sticky; top: 20px; }
    .sidebar-sticky.admin-bar .sidebar { top: 52px; }
}

/*--------------------------------------------------------------
# 6. Header
--------------------------------------------------------------*/
#site-header {
    position: relative;
    z-index: 99;
    display: flow-root;
    padding: 26px 0 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}
.header-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px 24px;
}

/* Site title and tagline: heavy two-tone title (dark slate fading into the accent blue) and a spaced capital tagline */
.site-branding {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-height: 64px;
    padding: 2px 0;
}
.site-title {
    margin: 0;
    font-size: clamp(36px, 5.4vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}
.site-title a {
    color: var(--iv-title, var(--iv-deep));
    background: linear-gradient(90deg, var(--iv-title, var(--iv-deep)) 38%, var(--iv-title2, var(--iv-accent)) 80%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.site-title a:hover { opacity: 0.88; }
.site-description {
    margin: 0;
    font-size: clamp(11px, 1.3vw, 13px);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--iv-tagline, var(--iv-muted));
}
.site-description:empty { display: none }
/* Tagline shapes (Customize > Theme Options > Styling > Fonts and site title) */
.tagline-shape-pill .site-description, .tagline-shape-outline .site-description, .tagline-shape-ribbon .site-description { display: inline-block; width: max-content; max-width: 100%; margin-top: 8px; padding: 5px 16px; }
.tagline-shape-pill .site-description { background: color-mix(in srgb, var(--iv-tagline) 14%, transparent); border-radius: 999px; }
.tagline-shape-outline .site-description { border: 1.5px solid var(--iv-tagline); border-radius: 999px; }
.tagline-shape-ribbon .site-description { color: var(--iv-on-accent); background: var(--iv-accent); border-radius: 0 var(--iv-radius-btn) var(--iv-radius-btn) 0; }
.tagline-shape-bar .site-description { margin-top: 8px; padding: 2px 0 2px 12px; border-left: 4px solid var(--iv-tagline); }
.site-logo { margin: 4px 0 8px; line-height: 0; }
.custom-logo-link { display: inline-block }
.custom-logo { display: block; max-height: 64px; width: auto; }

/* Header banner area */
.widget-header-item { flex: 0 1 550px; width: 100%; max-width: 550px; margin-top: -1px; }
.widget-header-item img, .widget-header-item iframe, .widget-header-item ins { display: block; max-width: 100%; height: auto; }

/*--------------------------------------------------------------
# 7. Navigation (primary menu)
# Colours: --iv-menu-* (Customize > Theme Options > Styling > Primary menu).
# Look and hover animation are classes on the menu itself (look-pills, anim-grow ...); the same CSS serves the top and bottom bars.
--------------------------------------------------------------*/
a#pull { display: none }
.primary-navigation { display: block; width: 100%; max-width: 100%; }
div.primary-navigation { margin: 20px auto 0 }
#site-header:not(:has(.header-row)) .primary-navigation { margin-top: 0 }
#navigation { width: 100%; margin: 0 auto; font-size: var(--iv-menu-fs); }
.menu-size-sm { --iv-menu-h: 40px; --iv-menu-fs: 14px; }
.menu-size-lg { --iv-menu-h: 58px; --iv-menu-fs: 17px; }
#navigation ul { list-style-type: none }
#navigation li { position: relative }
#navigation a {
    display: block;
    padding: 0 18px;
    font-size: var(--iv-menu-fs);
    font-weight: 600;
    letter-spacing: 0.01em;
    text-align: left;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
#navigation .toggle-caret { display: none }
.menu-item-has-children > a:after, .cat-parent > a:after {
    content: '\f107';
    font-family: 'invasion-icons';
    margin-left: 8px;
    font-size: 12px;
    opacity: 0.7;
}
.widget .menu-item-has-children > a:after { display: none }

/* Expand/collapse carets (added by js/theme.js) */
.toggle-menu ul ul { display: none }
.toggle-menu .active > ul { display: block }
.toggle-menu .toggle-menu-item-parent { position: relative }
.toggle-menu .toggle-caret {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0;
    text-align: center;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}
.toggle-menu .toggle-caret i { font-size: 15px; line-height: 20px; color: inherit; text-align: center; }
.toggle-menu .active > .toggle-caret .iv-icon:before { content: '\e804' } /* minus */
.widget .toggle-caret {
    top: 7px;
    width: 26px;
    height: 26px;
    line-height: 26px;
    color: var(--iv-link);
    background: var(--iv-soft);
    border-radius: 3px;
}
.widget .toggle-caret i { line-height: 26px }
.widget li:first-child > .toggle-caret { top: -3px }
footer .widget .toggle-caret { color: var(--iv-on-deep); background: var(--iv-foot-soft); }

/* Menu colours and size for each place a menu is used: --m-* are read by the shared menu CSS below */
#navigation {
    --m-bg: var(--iv-menu-bg);
    --m-text: var(--iv-menu-text);
    --m-line: var(--iv-menu-line);
    --m-hover: var(--iv-menu-hover);
    --m-hover-text: var(--iv-menu-hover-text);
    --m-hover-fg: var(--iv-menu-hover-fg);
    --m-hover-fg-light: var(--iv-menu-hover-fg-light);
    --m-current: var(--iv-menu-current);
    --m-current-text: var(--iv-menu-current-text);
    --m-h: var(--iv-menu-h);
    --m-fs: var(--iv-menu-fs);
}
.topbar .iv-menu--bar {
    --m-bg: var(--iv-topbar-bg);
    --m-text: var(--iv-topbar-text);
    --m-line: var(--iv-topbar-line);
    --m-hover: var(--iv-topbar-fill);
    --m-hover-text: var(--iv-topbar-fill-text);
    --m-hover-fg: var(--iv-topbar-fg);
    --m-hover-fg-light: var(--iv-menu-hover-fg-light);
    --m-current: var(--iv-topbar-cur);
    --m-current-text: var(--iv-topbar-cur-text);
    --m-h: 40px;
    --m-fs: 13px;
    --m-px: 11px;
    --m-r: var(--iv-radius-media);
    --m-shadow: none;
}
.bottombar .iv-menu--bar {
    --m-bg: var(--iv-bbar-bg);
    --m-text: var(--iv-bbar-text);
    --m-line: var(--iv-bbar-line);
    --m-hover: var(--iv-bbar-fill);
    --m-hover-text: var(--iv-bbar-fill-text);
    --m-hover-fg: var(--iv-bbar-fg);
    --m-hover-fg-light: var(--iv-menu-hover-fg-light);
    --m-current: var(--iv-bbar-cur);
    --m-current-text: var(--iv-bbar-cur-text);
    --m-h: 46px;
    --m-fs: 14px;
    --m-px: 16px;
    --m-shadow: none;
}
@keyframes iv-menu-bounce {
    0% { transform: translateY(0); }
    35% { transform: translateY(-5px); }
    65% { transform: translateY(1px); }
    100% { transform: translateY(0); }
}
@keyframes iv-menu-pulse {
    0% { transform: scale(1); }
    45% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Primary menu: large screens (the drawer below takes over on small screens) */
@media screen and (min-width: 866px) {
    /* base: bar box, list, items */
    #navigation {
        --m-pad: 0px;
        --m-r: var(--iv-radius-card);
        --m-item-r: 0px;
        --m-px: 18px;
        --m-lh: var(--m-h);
        --m-gap: 0px;
        --m-shadow: 0 14px 26px -20px rgba(0, 0, 0, 0.6), inset 0 0 0 1px var(--m-line);
        padding: var(--m-pad);
        background: var(--m-bgx, var(--m-bg));
        border-radius: var(--m-r);
        box-shadow: var(--m-shadow);
    }
    #navigation .menu { display: flex; flex-wrap: wrap; align-items: stretch; gap: var(--m-gap); margin: 0; padding: 0; list-style: none; }
    #navigation .menu > li { position: relative; margin: 0; padding: 0; }
    #navigation .menu > li > a {
        position: relative;
        z-index: 0;
        isolation: isolate;
        overflow: hidden;
        display: block;
        padding: 0 var(--m-px);
        font-size: var(--m-fs);
        font-weight: 600;
        letter-spacing: 0.01em;
        line-height: var(--m-lh);
        text-align: left;
        color: var(--m-text);
        border-radius: var(--m-item-r);
        transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), letter-spacing 0.25s ease;
    }
    #navigation.look-bar .menu > li:first-child > a { border-radius: var(--m-r) 0 0 var(--m-r); }
    #navigation.look-bar .menu > li:last-child > a { border-radius: 0 var(--m-r) var(--m-r) 0; }

    /* hover layer: the colour fills the item from the bottom (slide, the default animation) */
    #navigation .menu > li > a::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        background: var(--m-hover);
        border-radius: inherit;
        opacity: 0;
        transform: scaleY(0);
        transform-origin: 50% 100%;
        transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s ease, background-position 0.7s ease, box-shadow 0.3s ease;
        pointer-events: none;
    }
    #navigation .menu > li:hover > a,
    #navigation .menu > li:focus-within > a { color: var(--m-hover-text); }
    #navigation .menu > li:hover > a::before,
    #navigation .menu > li:focus-within > a::before { opacity: 1; transform: scaleY(1); }

    /* current item */
    #navigation .menu > li.current-menu-item > a,
    #navigation .menu > li.current_page_item > a,
    #navigation .menu > li.current-menu-ancestor > a,
    #navigation .menu > li.current_page_ancestor > a,
    #navigation .menu > li.current-cat > a { color: var(--m-current-text); background: var(--m-current); }

    /* looks */
    #navigation.look-pills { --m-pad: 6px 8px; --m-gap: 4px; --m-item-r: 999px; --m-lh: calc(var(--m-h) - 10px); }
    #navigation.look-underline .menu > li.current-menu-item > a,
    #navigation.look-underline .menu > li.current_page_item > a,
    #navigation.look-underline .menu > li.current-menu-ancestor > a,
    #navigation.look-underline .menu > li.current_page_ancestor > a,
    #navigation.look-underline .menu > li.current-cat > a,
    #navigation.look-minimal .menu > li.current-menu-item > a,
    #navigation.look-minimal .menu > li.current_page_item > a,
    #navigation.look-minimal .menu > li.current-menu-ancestor > a,
    #navigation.look-minimal .menu > li.current_page_ancestor > a,
    #navigation.look-minimal .menu > li.current-cat > a {
        color: var(--m-text);
        background: transparent;
        box-shadow: inset 0 -3px 0 var(--m-current);
    }
    #navigation.look-tabs { --m-current: var(--iv-card); --m-current-text: var(--iv-ink); --m-pad: 8px 8px 0; --m-gap: 3px; --m-item-r: var(--iv-radius-media) var(--iv-radius-media) 0 0; }
    #navigation.look-segmented { --m-current: var(--iv-card); --m-current-text: var(--iv-ink); --m-pad: 5px; --m-r: 999px; --m-gap: 2px; --m-item-r: 999px; --m-px: 20px; --m-lh: calc(var(--m-h) - 12px); }
    #navigation.look-segmented .menu > li.current-menu-item > a,
    #navigation.look-segmented .menu > li.current_page_item > a { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); }
    #navigation.look-floating { --m-pad: 6px; --m-r: 999px; --m-gap: 4px; --m-item-r: 999px; --m-px: 20px; --m-lh: calc(var(--m-h) - 10px); --m-shadow: 0 20px 36px -16px rgba(0, 0, 0, 0.6), inset 0 0 0 1px var(--m-line); }
    #navigation.look-floating .menu { justify-content: center; }
    #navigation.look-light {
        --m-bg: var(--iv-card);
        --m-text: var(--iv-text);
        --m-line: var(--iv-line);
        --m-hover-fg: var(--m-hover-fg-light);
        --m-shadow: var(--iv-shadow), inset 0 0 0 1px var(--iv-line);
    }
    #navigation.look-minimal {
        --m-bg: transparent;
        --m-text: var(--iv-ink);
        --m-hover-fg: var(--m-hover-fg-light);
        --m-r: 0px;
        --m-shadow: inset 0 -2px 0 var(--iv-line-strong);
    }
    #navigation.look-outline {
        --m-bg: transparent;
        --m-text: var(--iv-ink);
        --m-hover-fg: var(--m-hover-fg-light);
        --m-shadow: inset 0 0 0 2px var(--iv-line-strong);
    }
    #navigation.look-cards {
        --m-bg: transparent;
        --m-text: var(--iv-ink);
        --m-hover-fg: var(--m-hover-fg-light);
        --m-gap: 10px;
        --m-r: 0px;
        --m-item-r: var(--iv-radius-media);
        --m-shadow: none;
    }
    #navigation.look-cards .menu > li > a { background: var(--iv-card); box-shadow: var(--iv-shadow), inset 0 0 0 1px var(--iv-line); }
    #navigation.look-cards .menu > li.current-menu-item > a,
    #navigation.look-cards .menu > li.current_page_item > a,
    #navigation.look-cards .menu > li.current-menu-ancestor > a,
    #navigation.look-cards .menu > li.current_page_ancestor > a,
    #navigation.look-cards .menu > li.current-cat > a { color: var(--m-current-text); background: var(--m-current); }
    #navigation.look-gradient {
        --m-bgx: linear-gradient(100deg, var(--m-bg) 30%, color-mix(in srgb, var(--m-bg) 35%, var(--iv-accent)));
        --m-current: color-mix(in srgb, var(--m-text) 24%, transparent);
        --m-current-text: var(--m-text);
    }
    #navigation.look-neon {
        --m-hover-fg: var(--m-hover);
        --m-shadow: 0 0 0 1px var(--m-hover), 0 0 18px -2px var(--m-hover), inset 0 0 14px -8px var(--m-hover);
    }
    #navigation.look-neon .menu > li.current-menu-item > a,
    #navigation.look-neon .menu > li.current_page_item > a,
    #navigation.look-neon .menu > li.current-menu-ancestor > a,
    #navigation.look-neon .menu > li.current_page_ancestor > a,
    #navigation.look-neon .menu > li.current-cat > a {
        color: var(--m-hover-fg);
        background: transparent;
        box-shadow: inset 0 -2px 0 var(--m-hover), 0 8px 14px -10px var(--m-hover);
    }
    #navigation.look-chevron { --m-r: 0px; --m-px: 26px; }
    #navigation.look-chevron .menu > li > a { clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 14px 50%); }
    #navigation.look-chevron .menu > li:first-child > a { padding-left: 18px; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); }
    #navigation.look-chevron .menu > li + li { margin-left: -8px; }

    /* hover animations */
    #navigation.anim-slide-down .menu > li > a::before { transform-origin: 50% 0; }
    #navigation.anim-slide-right .menu > li > a::before { transform: scaleX(0); transform-origin: 0 50%; }
    #navigation.anim-slide-right .menu > li:hover > a::before,
    #navigation.anim-slide-right .menu > li:focus-within > a::before { transform: scaleX(1); }
    #navigation.anim-grow .menu > li > a::before { transform: scale(0.4); border-radius: var(--iv-radius-media); }
    #navigation.anim-grow .menu > li:hover > a::before,
    #navigation.anim-grow .menu > li:focus-within > a::before { transform: scale(1); }
    #navigation.anim-skew .menu > li > a::before { transform: skewX(-18deg) scaleX(0); transform-origin: 0 50%; inset: 0 -12px; }
    #navigation.anim-skew .menu > li:hover > a::before,
    #navigation.anim-skew .menu > li:focus-within > a::before { transform: skewX(-18deg) scaleX(1); }
    #navigation.anim-shine .menu > li > a::before {
        transform: none;
        background: linear-gradient(110deg, var(--m-hover) 38%, color-mix(in srgb, var(--m-hover) 35%, #fff) 50%, var(--m-hover) 62%);
        background-size: 280% 100%;
        background-position: 100% 0;
    }
    #navigation.anim-shine .menu > li:hover > a::before,
    #navigation.anim-shine .menu > li:focus-within > a::before { transform: none; background-position: 0 0; }
    #navigation.anim-underline .menu > li > a::before,
    #navigation.anim-line-left .menu > li > a::before {
        inset: auto 14px 0 14px;
        height: 3px;
        border-radius: 3px 3px 0 0;
        opacity: 1;
        transform: scaleX(0);
        transform-origin: 50% 50%;
    }
    #navigation.anim-line-left .menu > li > a::before { transform-origin: 0 50%; }
    #navigation.anim-underline .menu > li:hover > a::before,
    #navigation.anim-underline .menu > li:focus-within > a::before,
    #navigation.anim-line-left .menu > li:hover > a::before,
    #navigation.anim-line-left .menu > li:focus-within > a::before { transform: scaleX(1); }
    #navigation.anim-double-line .menu > li > a::before {
        inset: 0 14px;
        background: transparent;
        border-top: 3px solid var(--m-hover);
        border-bottom: 3px solid var(--m-hover);
        border-radius: 0;
        opacity: 1;
        transform: scaleX(0);
    }
    #navigation.anim-double-line .menu > li:hover > a::before,
    #navigation.anim-double-line .menu > li:focus-within > a::before { transform: scaleX(1); }
    #navigation.anim-border .menu > li > a::before { background: transparent; box-shadow: inset 0 0 0 2px var(--m-hover); transform: none; }
    #navigation.anim-dot .menu > li > a::before { inset: auto auto 7px calc(50% - 3px); width: 6px; height: 6px; border-radius: 50%; transform: scale(0); }
    #navigation.anim-dot .menu > li:hover > a::before,
    #navigation.anim-dot .menu > li:focus-within > a::before { transform: scale(1); }
    #navigation.anim-underline .menu > li:hover > a,
    #navigation.anim-underline .menu > li:focus-within > a,
    #navigation.anim-line-left .menu > li:hover > a,
    #navigation.anim-line-left .menu > li:focus-within > a,
    #navigation.anim-double-line .menu > li:hover > a,
    #navigation.anim-double-line .menu > li:focus-within > a,
    #navigation.anim-border .menu > li:hover > a,
    #navigation.anim-border .menu > li:focus-within > a,
    #navigation.anim-dot .menu > li:hover > a,
    #navigation.anim-dot .menu > li:focus-within > a,
    #navigation.anim-letter .menu > li:hover > a,
    #navigation.anim-letter .menu > li:focus-within > a { color: var(--m-hover-fg); }
    #navigation.anim-lift .menu > li > a,
    #navigation.anim-glow .menu > li > a,
    #navigation.anim-bounce .menu > li > a,
    #navigation.anim-pulse .menu > li > a,
    #navigation.anim-zoom .menu > li > a { overflow: visible; }
    #navigation.anim-lift .menu > li > a::before { transform: none; box-shadow: 0 12px 20px -10px var(--m-hover); }
    #navigation.anim-lift .menu > li:hover > a,
    #navigation.anim-lift .menu > li:focus-within > a { transform: translateY(-2px); }
    #navigation.anim-lift .menu > li:hover > a::before,
    #navigation.anim-lift .menu > li:focus-within > a::before { transform: none; }
    #navigation.anim-glow .menu > li > a::before { transform: none; }
    #navigation.anim-glow .menu > li:hover > a::before,
    #navigation.anim-glow .menu > li:focus-within > a::before { box-shadow: 0 0 20px 2px var(--m-hover); }
    #navigation.anim-bounce .menu > li > a::before,
    #navigation.anim-pulse .menu > li > a::before,
    #navigation.anim-zoom .menu > li > a::before,
    #navigation.anim-fade .menu > li > a::before,
    #navigation.anim-none .menu > li > a::before { transform: none; }
    #navigation.anim-bounce .menu > li:hover > a { animation: iv-menu-bounce 0.45s ease; }
    #navigation.anim-pulse .menu > li:hover > a { animation: iv-menu-pulse 0.5s ease; }
    #navigation.anim-zoom .menu > li:hover > a,
    #navigation.anim-zoom .menu > li:focus-within > a { transform: scale(1.1); }
    #navigation.anim-letter .menu > li > a::before { opacity: 0; }
    #navigation.anim-letter .menu > li:hover > a,
    #navigation.anim-letter .menu > li:focus-within > a { letter-spacing: 0.07em; }
    #navigation.anim-letter .menu > li:hover > a::before,
    #navigation.anim-letter .menu > li:focus-within > a::before { opacity: 0; }
    #navigation.anim-none .menu > li > a,
    #navigation.anim-none .menu > li > a::before { transition: none; }


    /* Width and position when the menu is narrower than the content */
    #navigation { width: var(--iv-menu-w); margin-top: 0; margin-bottom: 0; }
    .menu-align-left #navigation { margin-left: 0; margin-right: auto; }
    .menu-align-center #navigation { margin-left: auto; margin-right: auto; }
    .menu-align-right #navigation { margin-left: auto; margin-right: 0; }

    /* Dropdowns: CSS only, they open on hover and on keyboard focus */
    #navigation ul ul {
        position: absolute;
        top: 100%;
        left: 0;
        display: none;
        width: 230px;
        margin: 6px 0 0;
        padding: 6px;
        z-index: 400;
        background: var(--iv-card);
        border: 1px solid var(--iv-line);
        border-radius: var(--iv-radius-card);
        box-shadow: 0 24px 44px -22px rgba(0, 0, 0, 0.55);
    }
    /* invisible bridge so the menu stays open while the pointer crosses the gap */
    #navigation ul ul:before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
    #navigation li:hover > ul, #navigation li:focus-within > ul { display: block }
    #navigation ul ul a {
        padding: 10px 14px;
        font-size: 14.5px;
        font-weight: 400;
        line-height: 1.35;
        color: var(--iv-text);
        border-radius: var(--iv-radius-media);
    }
    #navigation ul ul li:hover > a,
    #navigation ul ul li:focus-within > a {
        color: var(--iv-ink);
        background: color-mix(in srgb, var(--iv-menu-hover) 22%, var(--iv-card));
        box-shadow: inset 3px 0 0 var(--iv-menu-hover);
    }
    #navigation ul ul li.current-menu-item > a { color: var(--iv-link); font-weight: 600; }
    #navigation ul ul .menu-item-has-children > a, #navigation ul ul .cat-parent > a { padding-right: 30px; position: relative; }
    #navigation ul ul .menu-item-has-children > a:after, #navigation ul ul .cat-parent > a:after {
        content: '\f105';
        position: absolute;
        right: 12px;
        top: 50%;
        margin: 0;
        transform: translateY(-50%);
    }
    #navigation ul ul ul { top: -7px; left: 100%; margin: 0 0 0 8px; }
    #navigation ul ul ul:before { top: 0; bottom: 0; left: -10px; right: auto; width: 10px; height: auto; }
}

/*--------------------------------------------------------------
# 8. Post cards, list and grid view, Download button
--------------------------------------------------------------*/
.post.excerpt {
    position: relative;
    display: flow-root;
    padding: 24px var(--iv-pad) 26px;
    background: var(--iv-card);
    border: 0;
    border-right: 5px solid var(--iv-edge);
    border-bottom: 5px solid var(--iv-edge);
    border-radius: var(--iv-radius-card);
    box-shadow: var(--iv-shadow);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.post.excerpt:hover {
    transform: translateY(-2px);
    border-right-color: var(--iv-accent);
    border-bottom-color: var(--iv-accent);
}
.post.excerpt.sticky { border-right-color: var(--iv-accent); border-bottom-color: var(--iv-accent); }

/* List view (default): one card per row. Grid view: cards side by side. */
.posts-area { container-type: inline-size; }
.posts-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; margin-bottom: 26px; }
.posts-list.is-grid { gap: 22px; }
.posts-list.is-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.posts-list.is-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.is-grid > .post.excerpt {
    --iv-pad: 20px;
    display: flex;
    flex-direction: column;
    padding: 20px var(--iv-pad) 22px;
}
.is-grid .title { font-size: 19px; line-height: 1.25; overflow-wrap: anywhere; }
.is-grid .post-info { gap: 2px 14px; font-size: 13px; }
.is-grid .post-content { font-size: 15px; }
.is-grid .download-wrap { justify-content: flex-start; margin-top: auto; padding-top: 16px; }
.is-grid.cols-3 .download-btn { padding-right: 18px; }
@container (max-width: 700px) {
    .posts-list.is-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 480px) {
    .posts-list.is-grid { grid-template-columns: minmax(0, 1fr); }
}
/* Phones: a grid view falls back to the list look (Theme Options > Homepage > Use the list view on phones) */
@media screen and (max-width: 600px) {
    .posts-list.is-grid.mobile-list { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .is-grid.mobile-list > .post.excerpt { --iv-pad: 20px; display: flow-root; padding: 24px var(--iv-pad) 26px; }
    .is-grid.mobile-list .title { font-size: clamp(21px, 6vw, 25px); line-height: 1.2; }
    .is-grid.mobile-list .post-info { gap: 4px 18px; font-size: 13.5px; }
    .is-grid.mobile-list .post-content { font-size: 16px; }
    .is-grid.mobile-list .download-wrap { justify-content: flex-end; margin-top: 16px; padding-top: 0; }
}

.single_post {
    --iv-pad: 36px;
    position: relative;
    display: flow-root;
    padding: 26px var(--iv-pad) 34px;
    background: var(--iv-card);
    border: 1px solid var(--iv-line);
    border-radius: var(--iv-radius-card);
    box-shadow: var(--iv-shadow);
}

/* Date tag: a swallow-tail label that wraps around the card's left edge */
.date-tag {
    position: relative;
    display: block;
    width: max-content;
    max-width: calc(100% + var(--iv-pad));
    margin: 0 0 16px calc(-1 * var(--iv-pad) - 8px);
    padding: 0 24px 0 16px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 30px;
    color: var(--iv-on-accent);
    background: var(--iv-accent);
}
.date-tag:after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    border-style: solid;
    border-width: 15px 10px 15px 0;
    border-color: transparent var(--iv-card) transparent transparent;
}
.date-tag__fold {
    position: absolute;
    top: 100%;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--iv-accent-deep);
    clip-path: polygon(0 0, 100% 0, 100% 100%);
}
/* Date styles (Customize > Theme Options > Homepage > Date style). The date is also used as a heading when posts are grouped by day. */
.date-tag .dt-parts { display: none; }
.date-group { grid-column: 1 / -1; margin: 4px 0 -8px; }
.date-group .date-tag { margin: 0; }
.date-style-ribbon .date-group .date-tag { margin-left: -8px; }
.date-style-calendar .dt-full, .date-style-split .dt-full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.date-style-calendar .dt-parts, .date-style-split .dt-parts { display: block; }

.date-style-flag .date-tag, .date-style-tag .date-tag, .date-style-soft .date-tag, .date-style-outline .date-tag,
.date-style-gradient .date-tag, .date-style-text .date-tag, .date-style-underline .date-tag, .date-style-calendar .date-tag,
.date-style-split .date-tag, .date-style-timeline .date-tag, .date-style-stamp .date-tag, .date-style-corner .date-tag {
    max-width: 100%;
    margin: 0 0 16px;
    padding: 0;
    color: var(--iv-ink);
    background: none;
    border-radius: 0;
}
.date-style-flag .date-tag:after, .date-style-tag .date-tag:after, .date-style-soft .date-tag:after, .date-style-outline .date-tag:after,
.date-style-gradient .date-tag:after, .date-style-text .date-tag:after, .date-style-underline .date-tag:after, .date-style-calendar .date-tag:after,
.date-style-split .date-tag:after, .date-style-timeline .date-tag:after, .date-style-stamp .date-tag:after, .date-style-corner .date-tag:after,
.date-style-flag .date-tag__fold, .date-style-tag .date-tag__fold, .date-style-soft .date-tag__fold, .date-style-outline .date-tag__fold,
.date-style-gradient .date-tag__fold, .date-style-text .date-tag__fold, .date-style-underline .date-tag__fold, .date-style-calendar .date-tag__fold,
.date-style-split .date-tag__fold, .date-style-timeline .date-tag__fold, .date-style-stamp .date-tag__fold, .date-style-corner .date-tag__fold { display: none; }

.date-style-flag .date-tag { padding: 0 26px 0 16px; color: var(--iv-on-accent); background: var(--iv-accent); clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 50%, calc(100% - 13px) 100%, 0 100%); }
.date-style-tag .date-tag { padding: 0 14px; font-size: 12.5px; line-height: 28px; color: var(--iv-on-accent); background: var(--iv-accent); border-radius: var(--iv-radius-btn); }
.date-style-soft .date-tag { padding: 0 15px; line-height: 28px; color: var(--iv-link); background: color-mix(in srgb, var(--iv-accent) 14%, var(--iv-card)); border-radius: 999px; }
.date-style-outline .date-tag { padding: 0 15px; line-height: 26px; color: var(--iv-link); border: 1.5px solid var(--iv-accent); border-radius: 999px; }
.date-style-gradient .date-tag { padding: 0 16px; line-height: 30px; color: var(--iv-on-accent); background: linear-gradient(110deg, var(--iv-accent-deep), var(--iv-accent) 60%, var(--iv-accent-bright)); border-radius: 999px; box-shadow: 0 8px 16px -8px var(--iv-accent); }
.date-style-text .date-tag { margin-bottom: 8px; font-size: 12px; letter-spacing: 0.1em; line-height: 1.4; text-transform: uppercase; color: var(--iv-muted); }
.date-style-underline .date-tag { padding-bottom: 6px; line-height: 1.3; border-bottom: 3px solid var(--iv-accent); }
.date-style-calendar .date-tag { width: 64px; overflow: hidden; text-align: center; line-height: 1; background: var(--iv-card); border: 1px solid var(--iv-line-strong); border-radius: var(--iv-radius-media); box-shadow: var(--iv-shadow); }
.date-style-calendar .dt-mon { display: block; padding: 6px 0; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--iv-on-accent); background: var(--iv-accent); }
.date-style-calendar .dt-day { display: block; padding: 8px 0 0; font-size: 26px; font-weight: 800; color: var(--iv-ink); }
.date-style-calendar .dt-yr { display: block; padding: 3px 0 7px; font-size: 11px; font-weight: 600; color: var(--iv-muted); }
.date-style-split .date-tag { padding-left: 12px; border-left: 4px solid var(--iv-accent); line-height: 1.15; }
.date-style-split .dt-parts { display: grid; grid-template-columns: auto auto; align-items: center; justify-content: start; column-gap: 10px; }
.date-style-split .dt-day { grid-row: 1 / span 2; font-size: 36px; font-weight: 800; line-height: 1; color: var(--iv-link); }
.date-style-split .dt-mon, .date-style-split .dt-yr { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--iv-muted); }
.date-style-split .dt-mon { align-self: end; }
.date-style-split .dt-yr { align-self: start; }
.date-style-timeline .date-tag { position: relative; padding-left: 24px; font-weight: 700; line-height: 1.3; }
.date-style-timeline .date-tag:before { content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 12px; margin-top: -6px; background: var(--iv-accent); border-radius: 50%; box-shadow: 0 0 0 4px color-mix(in srgb, var(--iv-accent) 22%, transparent); }
.date-style-stamp .date-tag { padding: 0 14px; font-size: 12px; letter-spacing: 0.12em; line-height: 26px; text-transform: uppercase; color: var(--iv-link); border: 2px dashed var(--iv-accent); border-radius: 4px; transform: rotate(-2deg); }
.date-style-corner .post.excerpt, .date-style-corner article.post { position: relative; }
.date-style-corner .post .date-tag { position: absolute; top: 14px; right: 14px; z-index: 1; margin: 0; padding: 0 12px; font-size: 12px; line-height: 26px; color: var(--iv-on-accent); background: var(--iv-accent); border-radius: var(--iv-radius-btn); }
.date-style-corner .date-group .date-tag { position: static; display: inline-block; }

/* Posts grouped by day (Theme Options > Homepage > Show the date once ...): one block per day, with an optional outline */
.day-block { display: grid; grid-template-columns: inherit; gap: 14px; grid-column: 1 / -1; padding: 12px 14px 16px; border-radius: var(--iv-radius-card); }
.posts-list.is-grid .day-block { column-gap: 18px; }
.day-block > .date-group { margin: 0; }
.day-block .date-group .date-tag { margin: 0; }
.day-block .date-group { align-self: start; }
.day-outline-solid .day-block { border: 2px solid var(--iv-line-strong); }
.day-outline-dashed .day-block { border: 2px dashed var(--iv-line-strong); }
.day-outline-dotted .day-block { border: 3px dotted var(--iv-line-strong); }
.day-outline-double .day-block { border: 4px double var(--iv-line-strong); }
.day-outline-accent .day-block { border: 2px solid var(--iv-accent); }
.day-outline-soft .day-block { background: color-mix(in srgb, var(--iv-accent) 7%, transparent); }
.day-outline-left .day-block { padding-left: 24px; border-left: 5px solid var(--iv-accent); border-radius: 4px var(--iv-radius-card) var(--iv-radius-card) 4px; }
.day-outline-off .day-block { padding: 0; gap: 14px; }
@media screen and (max-width: 600px) { .day-block { padding: 10px 10px 12px; } }

/* More date styles */
.date-style-banner .date-tag, .date-style-circle .date-tag, .date-style-ticket .date-tag, .date-style-bubble .date-tag, .date-style-highlight .date-tag,
.date-style-bracket .date-tag, .date-style-neon .date-tag, .date-style-sticker .date-tag, .date-style-brutal .date-tag, .date-style-mono .date-tag {
    max-width: 100%;
    margin: 0 0 16px;
    padding: 0;
    color: var(--iv-ink);
    background: none;
    border-radius: 0;
}
.date-style-banner .date-tag:after, .date-style-circle .date-tag:after, .date-style-ticket .date-tag:after, .date-style-bubble .date-tag:after, .date-style-highlight .date-tag:after,
.date-style-neon .date-tag:after, .date-style-sticker .date-tag:after, .date-style-brutal .date-tag:after, .date-style-mono .date-tag:after,
.date-style-banner .date-tag__fold, .date-style-circle .date-tag__fold, .date-style-ticket .date-tag__fold, .date-style-bubble .date-tag__fold, .date-style-highlight .date-tag__fold,
.date-style-bracket .date-tag__fold, .date-style-neon .date-tag__fold, .date-style-sticker .date-tag__fold, .date-style-brutal .date-tag__fold, .date-style-mono .date-tag__fold { display: none; }
.date-style-circle .dt-full, .date-style-ticket .dt-full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.date-style-circle .dt-parts, .date-style-ticket .dt-parts { display: flex; }

.date-style-banner .post.excerpt .date-tag, .date-style-banner .single_post .date-tag {
    width: auto;
    margin: -24px calc(-1 * var(--iv-pad)) 18px;
    padding: 9px var(--iv-pad);
    font-size: 13px;
    letter-spacing: 0.05em;
    color: var(--iv-on-accent);
    background: linear-gradient(100deg, var(--iv-accent), var(--iv-accent-bright));
    border-radius: var(--iv-radius-card) var(--iv-radius-card) 0 0;
}
.date-style-banner .single_post .date-tag { margin-top: -26px; }
.date-style-banner .date-group .date-tag { margin: 0; padding: 8px 18px; color: var(--iv-on-accent); background: linear-gradient(100deg, var(--iv-accent), var(--iv-accent-bright)); border-radius: var(--iv-radius-media); }
.date-style-circle .date-tag { width: 64px; height: 64px; color: var(--iv-on-accent); background: linear-gradient(135deg, var(--iv-accent), var(--iv-accent-deep)); border-radius: 50%; box-shadow: 0 10px 18px -10px var(--iv-accent); }
.date-style-circle .dt-parts { flex-direction: column; align-items: center; justify-content: center; height: 100%; line-height: 1; text-align: center; }
.date-style-circle .dt-day { order: 0; font-size: 24px; font-weight: 800; }
.date-style-circle .dt-mon { order: 1; margin-top: 2px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.date-style-circle .dt-yr { display: none; }
.date-style-ticket .dt-parts { display: inline-flex; align-items: stretch; overflow: hidden; border: 1.5px dashed var(--iv-accent); border-radius: var(--iv-radius-media); }
.date-style-ticket .dt-day { order: 0; padding: 6px 13px; font-size: 20px; font-weight: 800; line-height: 1.2; color: var(--iv-on-accent); background: var(--iv-accent); }
.date-style-ticket .dt-mon { order: 1; display: flex; align-items: center; padding: 0 5px 0 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.date-style-ticket .dt-yr { order: 2; display: flex; align-items: center; padding: 0 13px 0 4px; font-size: 12px; font-weight: 600; color: var(--iv-muted); }
.date-style-bubble .date-tag { position: relative; display: inline-block; margin-bottom: 22px; padding: 0 15px; line-height: 30px; color: var(--iv-link); background: color-mix(in srgb, var(--iv-accent) 14%, var(--iv-card)); border-radius: 12px; }
.date-style-bubble .date-tag:before { content: ""; position: absolute; top: 100%; left: 18px; border: 7px solid transparent; border-top-color: color-mix(in srgb, var(--iv-accent) 14%, var(--iv-card)); }
.date-style-highlight .date-tag { display: inline-block; padding: 0 5px; font-weight: 700; line-height: 1.5; background: linear-gradient(transparent 55%, color-mix(in srgb, var(--iv-accent) 38%, transparent) 55%); }
.date-style-bracket .date-tag { font-weight: 700; letter-spacing: 0.02em; }
.date-style-bracket .date-tag:before, .date-style-bracket .date-tag:after { content: "["; display: inline; position: static; width: auto; height: auto; margin-right: 8px; color: var(--iv-accent); background: none; border: 0; font-weight: 800; }
.date-style-bracket .date-tag:after { content: "]"; margin: 0 0 0 8px; }
.date-style-neon .date-tag { display: inline-block; padding: 0 15px; line-height: 26px; color: var(--iv-link); border: 1.5px solid var(--iv-accent); border-radius: 999px; box-shadow: 0 0 14px -2px var(--iv-accent), inset 0 0 10px -6px var(--iv-accent); text-shadow: 0 0 8px color-mix(in srgb, var(--iv-accent) 55%, transparent); }
.date-style-sticker .date-tag { display: inline-block; padding: 0 15px; font-weight: 800; line-height: 28px; color: var(--iv-on-accent); background: linear-gradient(120deg, var(--iv-accent), var(--iv-accent-bright)); border: 3px solid var(--iv-card); border-radius: 9px; box-shadow: 0 8px 16px -8px rgba(0, 0, 0, 0.5); transform: rotate(-3deg); }
.date-style-brutal .date-tag { display: inline-block; padding: 0 13px; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; line-height: 26px; text-transform: uppercase; color: var(--iv-on-accent); background: var(--iv-accent); border: 2px solid var(--iv-ink); box-shadow: 4px 4px 0 var(--iv-ink); }
.date-style-mono .date-tag { display: inline-block; padding: 2px 11px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; color: var(--iv-ink); background: var(--iv-soft); border: 1px solid var(--iv-line-strong); border-radius: 4px; }
article header { display: flow-root; width: 100%; margin-bottom: 14px; }
.title { margin: 0 0 8px; font-size: clamp(22px, 2.6vw, 26px); line-height: 1.2; }
.title a { color: var(--iv-ink) }
.title a:hover { color: var(--iv-post-hover) }
.post-info {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    width: 100%;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--iv-muted);
}
.post-info a { color: var(--iv-muted) }
.post-info a:hover { color: var(--iv-post-hover) }
.post-info i { margin-right: 6px; font-size: 15px; color: var(--iv-accent); vertical-align: -1px; }
.post-content { font-size: 16px; line-height: 1.7 }
.post-content p:last-child { margin-bottom: 0 }

/* Download button */
.download-wrap { display: flex; justify-content: flex-end; margin-top: 16px; }
.download-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px 10px 12px;
    font-family: var(--iv-font-head);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1;
    color: var(--iv-on-accent);
    background: linear-gradient(120deg, var(--iv-accent-deep), var(--iv-accent) 55%, var(--iv-accent-bright));
    background-size: 200% 100%;
    background-position: 0 0;
    border-radius: var(--iv-radius-btn);
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 10px 20px -10px color-mix(in srgb, var(--iv-accent) 80%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.28);
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease, background-position 0.45s ease;
}
.download-btn:before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 40%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: translateX(-160%) skewX(-20deg);
    pointer-events: none;
    z-index: 0;
}
.download-btn__icon, .download-btn__text { position: relative; z-index: 1; }
.download-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: color-mix(in srgb, currentColor 22%, transparent);
    border-radius: 50%;
    transition: background-color 0.25s ease, transform 0.25s ease;
}
.download-btn:hover:before, .download-btn:focus-visible:before { animation: iv-shine 0.9s ease-out 1; }
.download-btn:hover, .download-btn:focus-visible {
    color: var(--iv-on-accent);
    background-position: 100% 0;
    transform: translateY(-3px);
    box-shadow: 0 16px 26px -10px color-mix(in srgb, var(--iv-accent) 85%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.download-btn:hover .download-btn__icon, .download-btn:focus-visible .download-btn__icon { background: color-mix(in srgb, currentColor 34%, transparent); }
.download-btn:hover .download-btn__icon svg, .download-btn:focus-visible .download-btn__icon svg { animation: iv-arrow 0.8s ease-in-out infinite; }
.download-btn:active { transform: translateY(0) scale(0.97); box-shadow: 0 6px 12px -8px var(--iv-accent); }
@keyframes iv-shine {
    from { transform: translateX(-160%) skewX(-20deg); }
    to { transform: translateX(420%) skewX(-20deg); }
}
@keyframes iv-arrow {
    0%, 100% { transform: translateY(-2px); }
    50% { transform: translateY(3px); }
}

.breadcrumb { margin: 0 0 12px; font-size: 13.5px; line-height: 24px; color: var(--iv-muted); }
.breadcrumb > span { display: inline-block; }
.breadcrumb__sep { padding: 0 6px; font-size: 11px; }
.breadcrumb a { color: var(--iv-muted) }
.breadcrumb a:hover { color: var(--iv-post-hover) }
.postsby { margin: 0 0 24px; font-size: clamp(26px, 3.4vw, 32px); }

/* Thumbnails in the post list (Customize > Theme Options > Homepage) */
.card-row {
    display: grid;
    grid-template-columns: var(--ct-w, 180px) minmax(0, 1fr);
    gap: 4px 22px;
    align-items: start;
}
.card-body { min-width: 0; display: flex; flex-direction: column; }
.card-body > header { flex: 0 0 auto; }
.card-thumb {
    display: block;
    width: 100%;
    overflow: hidden;
    background: var(--iv-soft);
    border-radius: var(--iv-radius-media);
}
.card-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: var(--ct-ratio, 4 / 3);
    object-fit: cover;
    transition: transform 0.4s ease;
}
.post.excerpt:hover .card-thumb img { transform: scale(1.05); }
.ct-size-xs { --ct-w: 80px; }
.ct-size-sm { --ct-w: 120px; }
.ct-size-md { --ct-w: 180px; }
.ct-size-lg { --ct-w: 260px; }
.ct-shape-landscape { --ct-ratio: 4 / 3; }
.ct-shape-wide { --ct-ratio: 16 / 9; }
.ct-shape-square { --ct-ratio: 1 / 1; }
.ct-shape-natural .card-thumb img { height: auto; aspect-ratio: auto; }
.ct-pos-right .card-row { grid-template-columns: minmax(0, 1fr) var(--ct-w, 180px); }
.ct-pos-right .card-thumb { order: 2; }
.ct-pos-top .card-row, .ct-size-xl .card-row { grid-template-columns: minmax(0, 1fr); }
.ct-pos-top .card-thumb, .ct-size-xl .card-thumb { order: 0; }
.ct-size-xl .card-thumb img { aspect-ratio: var(--ct-ratio, 16 / 9); }
.ct-shape-natural.ct-size-xl .card-thumb img { aspect-ratio: auto; }
.ct-pos-top .card-row, .ct-size-xl .card-row, .is-grid .ct-size-md .card-row, .is-grid .ct-size-lg .card-row { row-gap: 16px; }
.has-thumb .download-wrap { margin-top: auto; padding-top: 16px; }
/* grid view: only the two smallest sizes sit beside the title, bigger ones go above it */
.is-grid .ct-size-md .card-row, .is-grid .ct-size-lg .card-row { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
.is-grid .ct-size-md .card-thumb, .is-grid .ct-size-lg .card-thumb { order: 0; }
.is-grid .has-thumb { flex-direction: column; }
.is-grid .has-thumb .card-row { flex: 1 1 auto; }
.is-grid .ct-pos-top .card-row, .is-grid .ct-size-xl .card-row { grid-template-rows: auto 1fr; }
@container (max-width: 480px) {
    .ct-size-md .card-row, .ct-size-lg .card-row { grid-template-columns: minmax(0, 1fr); }
    .ct-size-md .card-thumb, .ct-size-lg .card-thumb { order: 0; }
}

/*--------------------------------------------------------------
# 9. Single post, page, static homepage, sidebar and widgets
--------------------------------------------------------------*/
.single-title { margin: 4px 0 10px; font-size: clamp(28px, 4vw, 38px); line-height: 1.14; letter-spacing: -0.02em; }
.single_post header { margin-bottom: 16px }
.post-single-content { display: flow-root; width: 100%; font-size: 17px; line-height: 1.75; color: var(--iv-text); }
.post-single-content h2 { margin: 1.7em 0 0.55em }
.post-single-content h3 { margin: 1.5em 0 0.5em }
.post-single-content h4, .post-single-content h5, .post-single-content h6 { margin: 1.3em 0 0.5em }
.post-single-content > :first-child { margin-top: 0 }
/* Links in post content: colour from Styling > Links, underlined on hover only */
.post-single-content a:not(.wp-block-button__link), .comment-text a { color: var(--iv-post-link); }
.post-single-content a:not(.wp-block-button__link):hover, .comment-text a:hover {
    color: var(--iv-post-hover);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}
.post-single-content img:not(.wp-smiley):not(.avatar) { border-radius: var(--iv-radius-media) }
.article ul { margin: 1.2em 0 1.3em 1.5em; list-style-type: disc; }
.article ol { margin: 1.2em 0 1.3em 1.7em; list-style-type: decimal; }
.article ul li, .article ol li { margin-bottom: 6px }
.article li::marker { color: var(--iv-accent); font-weight: 700; }
.article ul ul, .article ol ol, .article ul ol, .article ol ul { margin-top: 6px; margin-bottom: 0; }
.commentlist, .related-posts, .tags { list-style: none }
blockquote {
    margin: 1.6em 0;
    padding: 16px 22px;
    background: var(--iv-soft);
    border-left: 4px solid var(--iv-accent);
    border-radius: 0 var(--iv-radius-media) var(--iv-radius-media) 0;
}
blockquote p:last-child { margin-bottom: 0 }

/* Static homepage (full size): no sidebar, width from Customize > Theme Options > Homepage; transparent wrapper so the page's own cards show */
#page.static-home { display: block; max-width: var(--iv-static-w); }
.static-home .article { max-width: none; margin: 0 0 30px; }
.static-home .single_post { padding: 0; background: none; border: 0; box-shadow: none; }
.static-home .single_post header { text-align: center; margin-bottom: 18px; }
.static-home .single-title { margin: 0; }

/* Sidebar */
.sidebar { flex: 0 0 var(--iv-sidebar-w); width: var(--iv-sidebar-w); max-width: 100%; font-size: 15px; line-height: 1.55; }
.sidebar a { color: var(--iv-widget-link) }
.sidebar a:hover { color: var(--iv-widget-hover) }
.sidebar p { line-height: 1.6 }
.widget { margin-bottom: 22px; overflow: hidden; }
.sidebar .widget {
    padding: 22px 24px 24px;
    background: var(--iv-card);
    border: 1px solid var(--iv-line);
    border-radius: var(--iv-radius-card);
    box-shadow: var(--iv-shadow);
}
.widget select { width: 100%; max-width: 100%; height: 42px; padding: 0 12px; }

/* Widget titles: a slate category bar at the top of the box; untitled widgets keep their normal padding */
.widget > h3, .widget > .widget-title { margin: 0 0 16px; font-size: 16px; font-weight: 700; line-height: 1.25; }
.sidebar .widget > h3, .sidebar .widget > .widget-title {
    margin: -22px -24px 16px;
    padding: 11px 24px;
    color: var(--iv-wtitle-text);
    background: var(--iv-wtitle-bg);
}
.sidebar .widget > h3 a, .sidebar .widget > .widget-title a { color: var(--iv-wtitle-link); }
.sidebar .widget > h3 a:hover, .sidebar .widget > .widget-title a:hover { color: var(--iv-wtitle-hover); }

/* Widget styles (Customize > Theme Options > Styling > Widget style). Flat styles use the heading bar colour as their accent. */
.widget-style-gradient .sidebar .widget > h3,
.widget-style-gradient .sidebar .widget > .widget-title { background: linear-gradient(100deg, var(--iv-wtitle-bg) 35%, color-mix(in srgb, var(--iv-wtitle-bg) 50%, var(--iv-accent))); }

.widget-style-underline .sidebar .widget > h3, .widget-style-underline .sidebar .widget > .widget-title,
.widget-style-top-accent .sidebar .widget > h3, .widget-style-top-accent .sidebar .widget > .widget-title,
.widget-style-double .sidebar .widget > h3, .widget-style-double .sidebar .widget > .widget-title,
.widget-style-centered .sidebar .widget > h3, .widget-style-centered .sidebar .widget > .widget-title,
.widget-style-gradient-border .sidebar .widget > h3, .widget-style-gradient-border .sidebar .widget > .widget-title,
.widget-style-brutal .sidebar .widget > h3, .widget-style-brutal .sidebar .widget > .widget-title,
.widget-style-neon .sidebar .widget > h3, .widget-style-neon .sidebar .widget > .widget-title,
.widget-style-folded .sidebar .widget > h3, .widget-style-folded .sidebar .widget > .widget-title,
.widget-style-dotted .sidebar .widget > h3, .widget-style-dotted .sidebar .widget > .widget-title,
.widget-style-inset .sidebar .widget > h3, .widget-style-inset .sidebar .widget > .widget-title,
.widget-style-block .sidebar .widget > h3, .widget-style-block .sidebar .widget > .widget-title,
.widget-style-fade .sidebar .widget > h3, .widget-style-fade .sidebar .widget > .widget-title,
.widget-style-side .sidebar .widget > h3, .widget-style-side .sidebar .widget > .widget-title,
.widget-style-outlined .sidebar .widget > h3, .widget-style-outlined .sidebar .widget > .widget-title,
.widget-style-soft .sidebar .widget > h3, .widget-style-soft .sidebar .widget > .widget-title {
    --iv-wtitle-link: var(--iv-ink);
    --iv-wtitle-hover: var(--iv-link);
    margin: 0 0 16px;
    padding: 0;
    color: var(--iv-ink);
    background: none;
}
.widget-style-underline .sidebar .widget > h3, .widget-style-underline .sidebar .widget > .widget-title { position: relative; padding-bottom: 11px; border-bottom: 2px solid var(--iv-line); }
.widget-style-underline .sidebar .widget > h3:after, .widget-style-underline .sidebar .widget > .widget-title:after { content: ""; position: absolute; left: 0; bottom: -2px; width: 60px; height: 2px; background: var(--iv-wtitle-bg); }
.widget-style-side .sidebar .widget > h3, .widget-style-side .sidebar .widget > .widget-title { padding: 2px 0 2px 13px; border-left: 5px solid var(--iv-wtitle-bg); }
.widget-style-outlined .sidebar .widget { box-shadow: none; border: 2px solid var(--iv-line-strong); }
.widget-style-outlined .sidebar .widget > h3, .widget-style-outlined .sidebar .widget > .widget-title { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.widget-style-soft .sidebar .widget { background: var(--iv-soft); border-color: transparent; box-shadow: none; }
.widget-style-soft .sidebar .widget > h3:before, .widget-style-soft .sidebar .widget > .widget-title:before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 10px; vertical-align: 1px; background: var(--iv-wtitle-bg); border-radius: 50%; }

.widget-style-pill .sidebar .widget > h3, .widget-style-pill .sidebar .widget > .widget-title {
    display: inline-block;
    max-width: 100%;
    margin: 0 0 16px;
    padding: 7px 18px;
    font-size: 14px;
    border-radius: 999px;
}
.widget-style-tab .sidebar .widget > h3, .widget-style-tab .sidebar .widget > .widget-title {
    display: inline-block;
    max-width: calc(100% + 24px);
    margin: -22px 0 16px -24px;
    padding: 9px 22px;
    border-radius: 0 0 var(--iv-radius-media) 0;
}
.widget-style-ribbon .sidebar .widget { overflow: visible; }
.widget-style-ribbon .sidebar .widget > h3, .widget-style-ribbon .sidebar .widget > .widget-title {
    position: relative;
    width: max-content;
    max-width: calc(100% + 16px);
    margin: 0 0 18px -32px;
    padding: 0 28px 0 22px;
    font-size: 14px;
    line-height: 34px;
}
.widget-style-ribbon .sidebar .widget > h3:before, .widget-style-ribbon .sidebar .widget > .widget-title:before {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 8px;
    height: 8px;
    background: color-mix(in srgb, var(--iv-wtitle-bg) 60%, #000);
    clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.widget-style-ribbon .sidebar .widget > h3:after, .widget-style-ribbon .sidebar .widget > .widget-title:after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    border-style: solid;
    border-width: 17px 11px 17px 0;
    border-color: transparent var(--iv-card) transparent transparent;
}
.widget-style-raised .sidebar .widget { box-shadow: 0 18px 36px -24px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.06); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.widget-style-raised .sidebar .widget:hover { transform: translateY(-3px); box-shadow: 0 26px 44px -22px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.08); }
.widget-style-dark .sidebar .widget {
    --iv-widget-link: var(--iv-on-deep);
    --iv-widget-hover: var(--iv-widget-hover-foot);
    color: var(--iv-foot-text);
    background: var(--iv-deep);
    border-color: var(--iv-foot-line);
}
.widget-style-dark .sidebar .widget > h3, .widget-style-dark .sidebar .widget > .widget-title { background: color-mix(in srgb, var(--iv-deep) 70%, #000); color: var(--iv-on-deep); }
.widget-style-dark .sidebar .widget li { border-bottom-color: var(--iv-foot-line); }
.widget-style-dark .sidebar .widget p { color: var(--iv-foot-muted); }
.widget-style-top-accent .sidebar .widget { border-top: 4px solid var(--iv-wtitle-bg); }
.widget-style-top-accent .sidebar .widget > h3, .widget-style-top-accent .sidebar .widget > .widget-title { margin-bottom: 14px; }
.widget-style-double .sidebar .widget > h3, .widget-style-double .sidebar .widget > .widget-title { padding: 8px 0; margin-bottom: 16px; text-align: center; border-top: 4px double var(--iv-wtitle-bg); border-bottom: 4px double var(--iv-wtitle-bg); }
.widget-style-centered .sidebar .widget > h3, .widget-style-centered .sidebar .widget > .widget-title { display: flex; align-items: center; gap: 12px; text-align: center; }
.widget-style-centered .sidebar .widget > h3:before, .widget-style-centered .sidebar .widget > .widget-title:before,
.widget-style-centered .sidebar .widget > h3:after, .widget-style-centered .sidebar .widget > .widget-title:after { content: ""; flex: 1 1 auto; height: 2px; background: var(--iv-wtitle-bg); opacity: 0.55; }
.widget-style-gradient-border .sidebar .widget { border: 3px solid transparent; background: linear-gradient(var(--iv-card), var(--iv-card)) padding-box, linear-gradient(135deg, var(--iv-wtitle-bg), var(--iv-accent)) border-box; }
.widget-style-stripe .sidebar .widget > h3, .widget-style-stripe .sidebar .widget > .widget-title { background: repeating-linear-gradient(135deg, var(--iv-wtitle-bg) 0 10px, color-mix(in srgb, var(--iv-wtitle-bg) 82%, #000) 10px 20px); }
.widget-style-cut .sidebar .widget > h3, .widget-style-cut .sidebar .widget > .widget-title { padding-right: 56px; clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 100%, 0 100%); margin-right: 0; }
.widget-style-brutal .sidebar .widget { border: 2px solid var(--iv-ink); border-radius: 0; box-shadow: 6px 6px 0 var(--iv-ink); }
.widget-style-brutal .sidebar .widget > h3, .widget-style-brutal .sidebar .widget > .widget-title { padding-bottom: 10px; margin-bottom: 14px; font-weight: 800; border-bottom: 2px solid var(--iv-ink); }
.widget-style-neon .sidebar .widget { border: 1.5px solid var(--iv-accent); box-shadow: 0 0 22px -6px var(--iv-accent), inset 0 0 18px -12px var(--iv-accent); }
.widget-style-neon .sidebar .widget > h3, .widget-style-neon .sidebar .widget > .widget-title { padding-bottom: 10px; color: var(--iv-link); border-bottom: 1px solid var(--iv-accent); text-shadow: 0 0 10px color-mix(in srgb, var(--iv-accent) 50%, transparent); }
.widget-style-folded .sidebar .widget { position: relative; border-top-right-radius: 0; }
.widget-style-folded .sidebar .widget:after { content: ""; position: absolute; top: 0; right: 0; border-style: solid; border-width: 0 34px 34px 0; border-color: transparent var(--iv-bg) var(--iv-wtitle-bg) transparent; }
.widget-style-sticker .sidebar .widget { overflow: visible; }
.widget-style-sticker .sidebar .widget > h3, .widget-style-sticker .sidebar .widget > .widget-title {
    display: inline-block;
    max-width: 100%;
    margin: -8px 0 18px -10px;
    padding: 7px 18px;
    font-size: 14px;
    border: 3px solid var(--iv-card);
    border-radius: 9px;
    box-shadow: 0 10px 18px -10px rgba(0, 0, 0, 0.55);
    transform: rotate(-2deg);
}
.widget-style-dotted .sidebar .widget { border: 3px dotted var(--iv-line-strong); box-shadow: none; }
.widget-style-dotted .sidebar .widget > h3, .widget-style-dotted .sidebar .widget > .widget-title { padding-bottom: 10px; border-bottom: 3px dotted var(--iv-wtitle-bg); }
.widget-style-inset .sidebar .widget { background: var(--iv-soft); border: 0; box-shadow: inset 0 3px 9px rgba(0, 0, 0, 0.08), inset 0 0 0 1px var(--iv-line); }
.widget-style-inset .sidebar .widget > h3, .widget-style-inset .sidebar .widget > .widget-title { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
.widget-style-block .sidebar .widget > h3:before, .widget-style-block .sidebar .widget > .widget-title:before { content: ""; display: inline-block; width: 11px; height: 11px; margin: 0 14px 0 0; vertical-align: 0; background: var(--iv-wtitle-bg); box-shadow: 5px 5px 0 color-mix(in srgb, var(--iv-accent) 55%, transparent); }
.widget-style-fade .sidebar .widget { background: linear-gradient(180deg, color-mix(in srgb, var(--iv-accent) 10%, var(--iv-card)), var(--iv-card) 70%); }
.widget-style-fade .sidebar .widget > h3, .widget-style-fade .sidebar .widget > .widget-title { color: var(--iv-link); }
.widget-style-arrow .sidebar .widget > h3, .widget-style-arrow .sidebar .widget > .widget-title {
    display: inline-block;
    max-width: calc(100% + 24px);
    margin: 0 0 16px -24px;
    padding: 8px 38px 8px 24px;
    font-size: 14px;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%);
}
.widget ul { list-style: none }
.widget li {
    margin: 0;
    padding: 10px 0;
    list-style-type: none;
    border-bottom: 1px dashed var(--iv-line-strong);
}
.widget li:first-child { padding-top: 0 }
.widget li:last-child { padding-bottom: 0; border-bottom: 0; }
.widget li > ul, .widget li > ol { margin: 10px 0 0 14px }
/* Widget lists (Recent Posts, Recent Comments, Top Posts, Popular Posts, ...): underline on hover */
.widget li a:hover,
footer .widget a:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}
.widget .tagcloud a:hover, .widget .social-profile-icons a:hover { text-decoration: none }
.widget .textwidget a { text-decoration: underline; text-decoration-color: var(--iv-line-strong); text-underline-offset: 3px; }
.sidebar .widget .textwidget a:hover { color: var(--iv-widget-hover) }
.widget .textwidget a[style], .widget .textwidget a[class] { text-decoration: none }
.widget .textwidget img { border-radius: var(--iv-radius-media) }
.sidebar .wp-post-image, footer .wp-post-image { margin: 4px 12px 0 0; border-radius: var(--iv-radius-media); float: left; }

/* Search form */
.search-form { width: 100%; }
.search-form fieldset {
    display: flex;
    width: 100%;
    min-width: 0;
    padding: 4px;
    background: var(--iv-field);
    border: 1px solid var(--iv-line-strong);
    border-radius: var(--iv-radius-btn);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.search-form fieldset:focus-within { border-color: var(--iv-accent); box-shadow: 0 0 0 3px var(--iv-ring); }
.search-form input[type="search"] {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    padding: 9px 14px;
    line-height: 1.3;
    background: transparent;
    border: 0;
    border-radius: var(--iv-radius-btn);
    box-shadow: none;
}
.search-form input[type="search"]:focus { outline: 0; box-shadow: none; }
.search-form input[type="submit"], .comment-form .form-submit :is(input, button) {
    flex: none;
    padding: 9px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--iv-on-accent);
    cursor: pointer;
    background: var(--iv-accent);
    border: 0;
    border-radius: var(--iv-radius-btn);
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.search-form input[type="submit"]:hover { background: var(--iv-accent-deep) }
.article .search-form fieldset { max-width: 460px }

/* Tag cloud */
.tagcloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tagcloud a {
    padding: 5px 13px;
    font-size: 13.5px !important;
    line-height: 1.4;
    color: var(--iv-link);
    background: var(--iv-soft);
    border: 1px solid var(--iv-line);
    border-radius: var(--iv-radius-btn);
}
.tagcloud a:hover, .sidebar .tagcloud a:hover { color: var(--iv-on-accent); background: var(--iv-accent); border-color: var(--iv-accent); }

/* Calendar */
#wp-calendar { margin-bottom: 0; font-size: 14px; border: 0; border-radius: 0; }
#wp-calendar caption { padding-bottom: 10px; font-size: 16px; font-weight: 700; color: var(--iv-ink); }
#wp-calendar th, #wp-calendar td { padding: 7px 0; text-align: center; border: 0; }
#wp-calendar thead th { background: var(--iv-soft); border-radius: 0 }
#wp-calendar tbody td a { display: inline-block; min-width: 28px; font-weight: 700; line-height: 28px; color: var(--iv-link); background: var(--iv-soft); border-radius: var(--iv-radius-media); }
#wp-calendar tbody td#today { color: var(--iv-ink); font-weight: 700; }
#wp-calendar tfoot td { padding-top: 10px }
#wp-calendar #prev { text-align: left }
#wp-calendar #next { text-align: right }

/* Social icons widget */
.social-profile-icons ul { display: flex; flex-wrap: wrap; gap: 8px; }
.social-profile-icons ul li { margin: 0; padding: 0; border: 0; }
.social-profile-icons ul li a {
    display: block;
    width: 38px;
    height: 38px;
    line-height: 38px;
    text-align: center;
    color: #fff !important;
    background: var(--iv-accent);
    border-radius: var(--iv-radius-btn);
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.social-profile-icons ul li a:hover { background: var(--iv-deep) !important; transform: translateY(-2px); }
.social-profile-icons ul li i { margin: 0; font-size: 16px; line-height: 38px; color: inherit; }
.social-profile-icons .social-youtube a { background: #C9322B }
.social-profile-icons .social-rss a { background: #D97A17 }
.social-profile-icons .social-twitter a { background: #14171A }
.social-profile-icons .social-facebook a { background: #4A6FC0 }
.social-profile-icons .social-vimeo a { background: #1F9FBF }
.social-profile-icons .social-dribbble a { background: #D94A83 }
.social-profile-icons .social-tumblr a { background: #426D9B }
.social-profile-icons .social-instagram a { background: #B03A6E }
.social-profile-icons .social-flickr a { background: #D63384 }
.social-profile-icons .social-pinterest a { background: #D2242C }
.social-profile-icons .social-linkedin a { background: #1F7BB0 }
.social-profile-icons .social-github a { background: #333A45 }
.social-profile-icons .social-behance a { background: #1879FD }
.social-profile-icons .social-soundcloud a { background: #E0621D }
.social-profile-icons .social-dropbox a { background: #3476E4 }
.social-profile-icons .social-reddit a { background: #E03D00 }

/*--------------------------------------------------------------
# 10. Related posts, author box, tags
--------------------------------------------------------------*/
.related-posts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 3%;
    margin-top: 28px;
    padding: 24px 0 0;
    border-top: 1px dashed var(--iv-line-strong);
}
.postauthor-top { grid-column: 1 / -1; margin-bottom: 14px; }
.related-posts h3 { margin: 0; font-size: 20px; color: var(--iv-ink); }
.related-item { margin-bottom: 16px; }
.related-link { display: block; width: 100%; color: var(--iv-ink) }
.related-link:hover { color: var(--iv-post-hover) }
.related-link:hover .title { text-decoration: underline; text-underline-offset: 3px; }
.related-posts .featured-thumbnail { display: block; width: 100%; max-width: 200px; }
.related-posts .featured-thumbnail img { display: block; width: 100%; aspect-ratio: 8 / 5; object-fit: cover; border-radius: var(--iv-radius-media); }
.thumb-placeholder {
    display: flex !important;
    align-items: center;
    justify-content: center;
    aspect-ratio: 8 / 5;
    color: var(--iv-accent);
    background: var(--iv-soft);
    border: 1px solid var(--iv-line);
    border-radius: var(--iv-radius-media);
}
.related-posts .title {
    margin: 0;
    padding-top: 10px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0;
}
.postauthor {
    display: flow-root;
    min-height: 125px;
    margin: 26px 0 8px;
    padding: 20px 22px;
    background: var(--iv-soft);
    border: 1px solid var(--iv-line);
    border-radius: var(--iv-radius-card);
}
.postauthor h4 { margin-bottom: 10px; font-size: 17px; font-weight: 700; }
.postauthor h5 { margin: 0; padding: 0; font-size: 15px; line-height: 1.5; text-transform: capitalize; }
.postauthor p { margin: 4px 0 0; font-size: 15px; line-height: 1.6; }
.postauthor img { float: left; margin: 4px 20px 6px 0; border-radius: 50%; }
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 24px 0 4px; }
.tags .tagtext { font-size: 14px; font-weight: 700; color: var(--iv-muted); margin-right: 2px; }
.tags a {
    padding: 4px 13px;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--iv-link);
    background: var(--iv-soft);
    border: 1px solid var(--iv-line);
    border-radius: var(--iv-radius-btn);
}
.tags a:hover { color: var(--iv-on-accent); background: var(--iv-accent); border-color: var(--iv-accent); }

/*--------------------------------------------------------------
# 11. Comments and forms
--------------------------------------------------------------*/
input, textarea, select { padding: 10px 14px; font-size: 15px; color: var(--iv-ink); }
input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="password"], input[type="number"], input[type="tel"], textarea, select {
    max-width: 100%;
    background: var(--iv-field);
    border: 1px solid var(--iv-line-strong);
    border-radius: var(--iv-radius-field);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input[type="text"]:focus, input[type="email"]:focus, input[type="url"]:focus, input[type="search"]:focus, input[type="password"]:focus, textarea:focus, select:focus {
    border-color: var(--iv-accent);
    box-shadow: 0 0 0 3px var(--iv-ring);
}
button, input, optgroup, select, textarea { color: inherit; font: inherit; font-size: 15px; margin: 0; }
button { overflow: visible }
button, select { text-transform: none }
legend { border: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
textarea { overflow: auto; resize: vertical; width: 100%; padding: 12px 14px; }
::placeholder { color: var(--iv-muted); opacity: 1; }
input[type="search"] { -webkit-appearance: none; appearance: none; }
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }

.avatar { border-radius: 50%; }
#comments { width: 100%; margin: 32px 0 0; padding: 26px 0 0; border-top: 1px dashed var(--iv-line-strong); }
.total-comments {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--iv-ink);
}
.total-comments:before {
    content: "";
    flex: 0 0 auto;
    width: 8px;
    height: 24px;
    background: var(--iv-accent);
}
ol.commentlist, ol.commentlist ol.children { margin: 0; padding: 0; list-style: none; }
.commentlist li { margin: 0; padding: 0; list-style: none; border: 0; }
.commentlist > li { margin-bottom: 16px; }
.comment-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    background: var(--iv-card);
    border: 1px solid var(--iv-line);
    border-radius: var(--iv-radius-card);
    box-shadow: 0 10px 24px -20px rgba(38, 52, 69, 0.6);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.comment-card:hover { border-color: var(--iv-line-strong) }
.comment-card:target { border-color: var(--iv-accent); box-shadow: 0 0 0 3px var(--iv-ring); }
.comment-avatar { flex: 0 0 auto; }
.comment-avatar .avatar { display: block; width: 56px; height: 56px; margin: 0; border: 3px solid var(--iv-soft); box-sizing: content-box; }
.comment-body { flex: 1 1 auto; min-width: 0; }
.comment-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 6px; }
.comment-head .fn, .comment-head .fn a { font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--iv-ink); font-style: normal; }
.comment-badge {
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--iv-on-accent);
    background: var(--iv-accent);
    border-radius: var(--iv-radius-btn);
}
.comment-time, .comment-edit a { font-size: 13px; color: var(--iv-muted); }
.comment-time:hover, .comment-edit a:hover { color: var(--iv-post-hover); }
.comment-edit:before { content: "\00b7"; margin-right: 8px; color: var(--iv-line-strong); }
.comment-text { overflow-wrap: anywhere; line-height: 1.7; color: var(--iv-text); }
.comment-text p { margin: 0 0 10px; line-height: 1.7; }
.comment-text p:last-child { margin-bottom: 0; }
.comment-text a { text-decoration: underline; }
.comment-awaiting-moderation {
    display: inline-block;
    margin: 0 0 8px;
    padding: 4px 12px;
    font-size: 13px;
    font-style: italic;
    font-weight: 600;
    color: #8A5A00;
    background: #FFF4D6;
    border-radius: var(--iv-radius-btn);
}
.comment-body .reply { margin-top: 12px; }
.comment-reply-link {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 600;
    line-height: 28px;
    color: var(--iv-link);
    background: var(--iv-soft);
    border-radius: var(--iv-radius-btn);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.comment-reply-link:before { content: "\21b3"; font-size: 14px; }
.comment-reply-link:hover { color: var(--iv-on-accent); background: var(--iv-accent); transform: translateY(-1px); }

/* Replies: connection lines. Each level moves to the right with its own line colour. */
#comments .commentlist ol.children {
    position: relative;
    margin: 14px 0 0 28px;
    padding: 0 0 0 24px;
    border-left: 2px solid var(--iv-line-strong);
}
/* Horizontal connector from the vertical line to each reply */
#comments .commentlist ol.children > li {
    position: relative;
    margin: 0 0 14px;
}
#comments .commentlist ol.children > li::before {
    content: "";
    position: absolute;
    left: -25px;
    top: 30px;
    width: 23px;
    height: 2px;
    background: var(--iv-line-strong);
}
/* Round connection point */
#comments .commentlist ol.children > li::after {
    content: "";
    position: absolute;
    left: -29px;
    top: 26px;
    width: 8px;
    height: 8px;
    background: var(--iv-muted);
    border: 2px solid var(--iv-card);
    border-radius: 50%;
    z-index: 2;
}
/* Second-level replies */
#comments .commentlist ol.children ol.children { border-left-color: #10B981; }
#comments .commentlist ol.children ol.children > li::before { background: #10B981; }
#comments .commentlist ol.children ol.children > li::after { background: #059669; }
/* Third-level replies */
#comments .commentlist ol.children ol.children ol.children { border-left-color: #D946EF; }
#comments .commentlist ol.children ol.children ol.children > li::before { background: #D946EF; }
#comments .commentlist ol.children ol.children ol.children > li::after { background: #C026D3; }

/* The post author's comments (any level): blue tint, solid accent bar on the left */
.commentlist li.bypostauthor > .comment-card {
    background: linear-gradient(90deg, color-mix(in srgb, var(--iv-accent) 11%, var(--iv-card)), var(--iv-card) 75%);
    border-color: color-mix(in srgb, var(--iv-accent) 35%, var(--iv-line));
    box-shadow: inset 5px 0 0 var(--iv-accent), 0 10px 24px -18px color-mix(in srgb, var(--iv-accent) 60%, transparent);
}
.commentlist li.bypostauthor > .comment-card .avatar { border-color: var(--iv-accent); }
.commentlist li.bypostauthor > .comment-card .comment-head .fn,
.commentlist li.bypostauthor > .comment-card .comment-head .fn a { color: var(--iv-link); }
.comments-nav { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
.comments-nav a { display: inline-block; padding: 6px 14px; font-size: 13px; font-weight: 600; color: var(--iv-link); background: var(--iv-soft); border-radius: var(--iv-radius-btn); }
.comments-nav.bottomnav { margin: 16px 0 0; }

/* Comment form: Name and Email share the first row (no Website field) */
#commentsAdd { width: 100%; margin-top: 28px; }
#respond { position: relative; padding: 24px; background: var(--iv-bg); border: 1px solid var(--iv-line); border-radius: var(--iv-radius-card); }
.commentlist #respond { margin: 12px 0 0; background: var(--iv-card); }
#respond h3, .comment-reply-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 700;
    color: var(--iv-ink);
}
.comment-reply-title small { font-size: 13px; font-weight: 600; }
#cancel-comment-reply-link {
    display: inline-block;
    padding: 4px 14px;
    font-size: 13px;
    font-weight: 600;
    line-height: 22px;
    color: #8A1C1C;
    background: #FBE9E7;
    border-radius: var(--iv-radius-btn);
    cursor: pointer;
}
#cancel-comment-reply-link:hover { background: #F5CFC9; }
.comment-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.comment-form > p { margin: 0; grid-column: 1 / -1; }
.comment-form .comment-form-author, .comment-form .comment-form-email { grid-column: auto; }
.comment-form label { display: block; padding: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--iv-ink); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form textarea {
    display: block;
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--iv-ink);
}
.comment-form textarea { min-height: 140px; line-height: 1.6; }
.comment-form input:focus, .comment-form textarea:focus { outline: 0; }
.comment-form .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 8px; }
.comment-form .comment-form-cookies-consent input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; padding: 0; accent-color: var(--iv-accent); }
.comment-form .comment-form-cookies-consent label { display: inline; padding: 0; font-weight: 400; line-height: 1.5; cursor: pointer; }
.comment-form .form-submit { margin: 4px 0 0; }
.comment-form .form-submit :is(input, button) { padding: 12px 30px; font-size: 15px; }
.comment-form .form-submit :is(input, button):hover { background: var(--iv-accent-deep); transform: translateY(-1px); }
.required, .comment-notes, .form-allowed-tags { display: none; }
.comment-form .logged-in-as { font-size: 14px; color: var(--iv-muted); }
.nocomments { color: var(--iv-muted) }

/*--------------------------------------------------------------
# 12. Pagination
--------------------------------------------------------------*/
.pagination .nav-links, .posts-navigation .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.posts-navigation .nav-links { justify-content: space-between; }
.page-numbers, .page-links .post-page-numbers, .nav-previous a, .nav-next a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    color: var(--iv-ink);
    background: var(--iv-card);
    border: 1px solid var(--iv-line-strong);
    border-radius: var(--iv-radius-btn);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.page-numbers.current, .page-links .post-page-numbers.current { color: var(--iv-on-accent); background: var(--iv-accent); border-color: transparent; }
a.page-numbers:hover, .page-links a.post-page-numbers:hover, .nav-previous a:hover, .nav-next a:hover { color: var(--iv-on-accent); background: var(--iv-accent); border-color: transparent; }
.page-numbers.dots { background: transparent; border-color: transparent; min-width: 0; padding: 0 4px; }
.page-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 16px; }
.page-links-title { font-weight: 700; color: var(--iv-muted); }
.infinite-loader { display: inline-block; margin: 0 auto; }
.infinite-scroll .posts-navigation { display: none }

/*--------------------------------------------------------------
# 13. Footer (widget columns only, no credit line)
--------------------------------------------------------------*/
#site-footer {
    clear: both;
    width: 100%;
    margin-top: 24px;
    overflow: hidden;
    color: var(--iv-foot-text);
    background: var(--iv-deep);
}
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0 44px;
    width: 100%;
    padding: 40px 0 22px;
}
.footer-widget { position: relative; color: var(--iv-foot-text); }
#site-footer p { color: var(--iv-foot-muted) }
#site-footer .widget { margin-bottom: 22px }
#site-footer .widget > h3 { margin-bottom: 14px; padding-bottom: 10px; font-size: 16px; color: var(--iv-on-deep); border-bottom: 1px solid var(--iv-foot-line); }
#site-footer .widget a { color: var(--iv-foot-text) }
#site-footer .widget a:hover { color: var(--iv-widget-hover-foot) }
#site-footer .widget li { border-bottom-color: var(--iv-foot-line) }
#site-footer .tagcloud a { color: var(--iv-foot-text); background: var(--iv-foot-soft); border-color: var(--iv-foot-line); }
#site-footer .tagcloud a:hover { color: var(--iv-deep); background: var(--iv-on-deep); border-color: var(--iv-on-deep); }
#site-footer .search-form fieldset { background: var(--iv-foot-soft); border-color: var(--iv-foot-line); }
#site-footer .search-form input[type="search"] { color: var(--iv-on-deep) }
#site-footer ::placeholder { color: var(--iv-foot-muted) }
#site-footer .widget select { color: var(--iv-ink) }
.footer-credit { padding: 18px 0 24px; font-size: 14px; line-height: 1.6; color: var(--iv-foot-muted); }
.footer-widgets + .footer-credit { border-top: 1px solid var(--iv-foot-line); }
.footer-credit:first-child { padding-top: 26px; }
.footer-credit--left { text-align: left; }
.footer-credit--center { text-align: center; }
.footer-credit--right { text-align: right; }
.footer-credit a { color: var(--iv-foot-text); text-decoration: underline; text-underline-offset: 2px; }
.footer-credit a:hover { color: var(--iv-widget-hover-foot); }

/*--------------------------------------------------------------
# 14. WordPress core classes
--------------------------------------------------------------*/
.article img.alignleft, .wp-caption.alignleft { display: block; float: left; margin: 0.3em 1.6em 0.6em 0; }
.article img.alignright, .wp-caption.alignright { display: block; float: right; margin: 0.3em 0 0.6em 1.6em; }
.article img.aligncenter, .wp-caption.aligncenter { display: block; float: none; clear: both; margin: 1em auto; }
.article img.alignnone { display: block; clear: both; margin: 1em 0; }
.wp-caption { max-width: 100%; margin-bottom: 1.5em; padding: 6px; background: var(--iv-soft); border: 1px solid var(--iv-line); border-radius: var(--iv-radius-media); }
.wp-caption img[class*="wp-image-"] { display: block; margin-left: auto; margin-right: auto; }
.wp-caption .wp-caption-text { margin: 0.5em 0 0.2em; }
.wp-caption-text, .gallery-caption { text-align: center; font-size: 14px; color: var(--iv-text); }
.gallery { display: grid; gap: 10px; margin-bottom: 1.5em; }
.gallery-columns-2 { grid-template-columns: repeat(2, 1fr) }
.gallery-columns-3 { grid-template-columns: repeat(3, 1fr) }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr) }
.gallery-columns-5 { grid-template-columns: repeat(5, 1fr) }
.gallery-columns-6 { grid-template-columns: repeat(6, 1fr) }
.gallery-columns-7 { grid-template-columns: repeat(7, 1fr) }
.gallery-columns-8 { grid-template-columns: repeat(8, 1fr) }
.gallery-columns-9 { grid-template-columns: repeat(9, 1fr) }
.gallery-item { margin: 0; text-align: center; }
embed, iframe, object { max-width: 100% }
.wp-smiley { margin: 0; padding: 0; border: none; }
.wp-block-button__link {
    padding: 11px 24px;
    font-weight: 600;
    color: var(--iv-on-accent);
    background: var(--iv-accent);
    border-radius: var(--iv-radius-btn);
}
.wp-block-button__link:hover { color: var(--iv-on-accent); background: var(--iv-accent-deep); }
.wp-block-separator { height: 1px; background: var(--iv-line-strong); border: 0; }
.wp-block-quote, .wp-block-pullquote { border-color: var(--iv-accent) }
.wp-block-image img { border-radius: var(--iv-radius-media) }
.wp-block-table table { border-radius: var(--iv-radius-media) }

/*--------------------------------------------------------------
# 15. Accessibility and motion
--------------------------------------------------------------*/
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    white-space: nowrap;
}
.screen-reader-text:focus {
    background-color: var(--iv-card);
    border-radius: var(--iv-radius-media);
    box-shadow: 0 0 0 3px var(--iv-accent);
    clip: auto !important;
    clip-path: none;
    color: var(--iv-link);
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 8px;
    line-height: normal;
    padding: 15px 23px 14px;
    top: 8px;
    width: auto;
    z-index: 100000;
}
#content:focus { outline: 0 }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 3px solid var(--iv-accent);
    outline-offset: 2px;
}
#site-footer a:focus-visible, #site-footer input:focus-visible { outline-color: var(--iv-on-deep) }
#navigation a:focus-visible, a#pull:focus-visible { outline-color: var(--iv-menu-text); outline-offset: -4px; }
.download-btn:focus-visible { outline-color: #FFC83D }
/* Extra widget areas (Customize > Theme Options > Widget areas) */
.widget-area { clear: both; margin: 0 0 24px; text-align: center; }
.widget-area--above-content { margin-top: 20px; }
.widget-area--in-list, .widget-area--home-top, .widget-area--home-bottom { grid-column: 1 / -1; }
.widget-area--before-post, .widget-area--after-post { margin: 18px 0; }
.area-widget { margin: 0 auto 16px; max-width: 100%; }
.area-widget:last-child { margin-bottom: 0; }
.area-widget img, .area-widget iframe, .area-widget ins, .area-widget video { max-width: 100%; height: auto; }
.area-title { margin: 0 0 10px; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--iv-muted); }
.area-style-boxed .widget-area { padding: 18px 22px; background: var(--iv-card); border: 1px solid var(--iv-line); border-top: 4px solid var(--iv-accent); border-radius: var(--iv-radius-card); box-shadow: var(--iv-shadow); }
.area-style-outlined .widget-area { padding: 16px 20px; border: 2px dashed var(--iv-line-strong); border-radius: var(--iv-radius-card); }
.area-style-labeled .widget-area:before { content: attr(data-label); display: block; margin-bottom: 8px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--iv-muted); }

/* Theme widgets: posts with thumbnails, call to action, about box, category chips */
.iv-posts { margin: 0; padding: 0; list-style: none; }
.iv-posts__item { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--iv-line-strong); }
.iv-posts__item:last-child { padding-bottom: 0; border-bottom: 0; }
.iv-posts__item:first-child { padding-top: 0; }
.iv-posts__thumb { flex: 0 0 56px; width: 56px; height: 56px; overflow: hidden; background: var(--iv-soft); border-radius: var(--iv-radius-media); }
.iv-posts__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.iv-posts__item:hover .iv-posts__thumb img { transform: scale(1.08); }
.iv-posts__text { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; }
.iv-posts__title { font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.iv-posts__date { margin-top: 2px; font-size: 12px; color: var(--iv-muted); }
.iv-cta { text-align: center; }
.iv-cta--left { text-align: left; }
.iv-cta__img { display: block; max-width: 100%; height: auto; margin: 0 auto 14px; border-radius: var(--iv-radius-media); }
.iv-cta--left .iv-cta__img { margin-left: 0; }
.iv-cta__heading { margin: 0 0 8px; font-size: 18px; }
.iv-cta__text { margin-bottom: 14px; font-size: 14.5px; color: var(--iv-text); }
.iv-cta__text p:last-child { margin-bottom: 0; }
.iv-cta__btn { display: inline-block; padding: 11px 24px; font-weight: 700; color: var(--iv-on-accent) !important; background: linear-gradient(120deg, var(--iv-accent-deep), var(--iv-accent) 55%, var(--iv-accent-bright)); border-radius: var(--iv-radius-btn); box-shadow: 0 10px 18px -10px var(--iv-accent); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.iv-cta__btn:hover { color: var(--iv-on-accent) !important; text-decoration: none; transform: translateY(-2px); box-shadow: 0 14px 22px -10px var(--iv-accent); }
.iv-about { text-align: center; }
.iv-about__img { display: block; width: 96px; height: 96px; margin: 0 auto 12px; object-fit: cover; border: 3px solid var(--iv-card); border-radius: 50%; box-shadow: 0 0 0 2px var(--iv-accent), var(--iv-shadow); }
.iv-about__name { margin: 0 0 6px; font-size: 17px; }
.iv-about__text { font-size: 14.5px; color: var(--iv-text); }
.iv-about__text p:last-child { margin-bottom: 0; }
.iv-about__link { display: inline-block; margin-top: 10px; font-weight: 600; }
.iv-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.iv-chips__chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px; font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--iv-link); background: color-mix(in srgb, var(--iv-accent) 11%, var(--iv-card)); border-radius: 999px; transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease; }
.iv-chips__chip span { padding: 0 7px; font-size: 11px; color: var(--iv-on-accent); background: var(--iv-accent); border-radius: 999px; }
.iv-chips__chip:hover { color: var(--iv-on-accent); background: var(--iv-accent); text-decoration: none; transform: translateY(-1px); }
.iv-chips__chip:hover span { color: var(--iv-accent); background: var(--iv-on-accent); }

/* Top bar above the site title (Customize > Theme Options > Top bar) */
.topbar { width: 100%; font-size: 13px; line-height: 1.4; color: var(--iv-topbar-text); background: var(--iv-topbar-bg); }
.topbar-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; min-height: 40px; }
.topbar-menu .menu > li > a:not([href]) { cursor: default; white-space: nowrap; font-variant-numeric: tabular-nums; }
.topbar-menu .menu > li.tb-push { margin-left: auto; }
.topbar-menu { display: flex; flex: 1 1 auto; align-items: center; min-width: 0; margin: 4px 0; }
.topbar-menu .menu { flex: 1 1 auto; min-width: 0; }
.topbar .iv-menu--bar { color: var(--m-text); }
.topbar-menu .menu > li > a:focus-visible, .bottombar-menu .menu > li > a:focus-visible { outline: 2px solid var(--m-hover-fg); outline-offset: -3px; }
.topbar .iv-icon { font-size: 16px; line-height: 1; }
.topbar .iv-icon:before { margin: 0; }
.topbar .tb-icon { display: block; width: 17px; height: 17px; }
.topbar-menu .menu > li.is-social > a { display: flex; align-items: center; justify-content: center; padding: 0 9px; }
.topbar-menu .menu > li.is-social > a:hover { transform: translateY(-2px) scale(1.12); }
.topbar-social { display: flex; flex: 0 0 auto; flex-wrap: wrap; align-items: center; margin: 0 0 0 auto; padding: 0 4px 0 0; list-style: none; }
.topbar-social li { margin: 0; padding: 0; }
.topbar-social a { display: flex; align-items: center; min-height: var(--m-lh, 40px); padding: 0 9px; color: inherit; transition: color 0.2s ease, transform 0.2s ease; }
.topbar-social li.is-custom a { padding: 0 10px; }
.topbar-social a:hover, .topbar-social a:focus-visible { color: var(--m-hover-fg); }
.topbar-social li.is-social a:hover { transform: translateY(-2px) scale(1.12); }
.topbar--icons-sm .iv-icon { font-size: 14px; }
.topbar--icons-sm .tb-icon { width: 15px; height: 15px; }
.topbar--icons-lg .iv-icon { font-size: 21px; }
.topbar--icons-lg .tb-icon { width: 21px; height: 21px; }
@media screen and (max-width: 600px) {
    .topbar--hide-mobile { display: none; }
    .topbar-inner { gap: 0 12px; }
    .topbar-menu { flex-wrap: wrap; }
    .topbar-menu .menu { flex: 1 1 100%; }
    .topbar-social { margin-left: 0; padding: 0; }
}
.topbar--nobg { color: var(--iv-text); background: transparent; }
.topbar--nobg .topbar-inner { padding-top: 6px; padding-bottom: 6px; }

/* Bottom bar (Customize > Theme Options > Bottom bar) */
.bottombar--footer { padding: 14px 0; border-top: 1px solid var(--iv-foot-line); }
.bottombar-inner { display: flex; }
.bottombar--left .bottombar-inner { justify-content: flex-start; }
.bottombar--center .bottombar-inner { justify-content: center; }
.bottombar--right .bottombar-inner { justify-content: flex-end; }
.bottombar--spread .bottombar-inner { justify-content: stretch; }
.bottombar--spread .bottombar-menu { flex: 1 1 auto; }
.bottombar--spread .bottombar-menu .menu > li { flex: 1 1 0; }
.bottombar--spread .bottombar-menu .menu > li > a { text-align: center; }
.bottombar--footer .bottombar-menu { max-width: 100%; }
.bottombar--fixed {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 850;
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px));
    background: var(--iv-bbar-bg);
    box-shadow: 0 -10px 26px -14px rgba(0, 0, 0, 0.5);
}
.bottombar--nobg.bottombar--fixed { background: transparent; box-shadow: none; pointer-events: none; }
.bottombar--nobg .iv-menu--bar { pointer-events: auto; }
.has-fixed-bottombar { padding-bottom: 64px; }
.has-fixed-bottombar .scroll-btns { bottom: 78px; }
@media screen and (min-width: 601px) {
    .bottombar--phones { display: none; }
    body.has-fixed-bottombar.has-bottombar-phones { padding-bottom: 0; }
}

/* Menus in the top and bottom bars: the same looks and hover animations as the primary menu */
/* base: bar box, list, items */
.iv-menu--bar {
    --m-pad: 0px;
    --m-r: var(--iv-radius-card);
    --m-item-r: 0px;
    --m-px: 18px;
    --m-lh: var(--m-h);
    --m-gap: 0px;
    --m-shadow: 0 14px 26px -20px rgba(0, 0, 0, 0.6), inset 0 0 0 1px var(--m-line);
    padding: var(--m-pad);
    background: var(--m-bgx, var(--m-bg));
    border-radius: var(--m-r);
    box-shadow: var(--m-shadow);
}
.iv-menu--bar .menu { display: flex; flex-wrap: wrap; align-items: stretch; gap: var(--m-gap); margin: 0; padding: 0; list-style: none; }
.iv-menu--bar .menu > li { position: relative; margin: 0; padding: 0; }
.iv-menu--bar .menu > li > a {
    position: relative;
    z-index: 0;
    isolation: isolate;
    overflow: hidden;
    display: block;
    padding: 0 var(--m-px);
    font-size: var(--m-fs);
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: var(--m-lh);
    text-align: left;
    color: var(--m-text);
    border-radius: var(--m-item-r);
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), letter-spacing 0.25s ease;
}
.iv-menu--bar.look-bar .menu > li:first-child > a { border-radius: var(--m-r) 0 0 var(--m-r); }
.iv-menu--bar.look-bar .menu > li:last-child > a { border-radius: 0 var(--m-r) var(--m-r) 0; }

/* hover layer: the colour fills the item from the bottom (slide, the default animation) */
.iv-menu--bar .menu > li > a::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--m-hover);
    border-radius: inherit;
    opacity: 0;
    transform: scaleY(0);
    transform-origin: 50% 100%;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s ease, background-position 0.7s ease, box-shadow 0.3s ease;
    pointer-events: none;
}
.iv-menu--bar .menu > li:hover > a,
.iv-menu--bar .menu > li:focus-within > a { color: var(--m-hover-text); }
.iv-menu--bar .menu > li:hover > a::before,
.iv-menu--bar .menu > li:focus-within > a::before { opacity: 1; transform: scaleY(1); }

/* current item */
.iv-menu--bar .menu > li.current-menu-item > a,
.iv-menu--bar .menu > li.current_page_item > a,
.iv-menu--bar .menu > li.current-menu-ancestor > a,
.iv-menu--bar .menu > li.current_page_ancestor > a,
.iv-menu--bar .menu > li.current-cat > a { color: var(--m-current-text); background: var(--m-current); }

/* looks */
.iv-menu--bar.look-pills { --m-pad: 6px 8px; --m-gap: 4px; --m-item-r: 999px; --m-lh: calc(var(--m-h) - 10px); }
.iv-menu--bar.look-underline .menu > li.current-menu-item > a,
.iv-menu--bar.look-underline .menu > li.current_page_item > a,
.iv-menu--bar.look-underline .menu > li.current-menu-ancestor > a,
.iv-menu--bar.look-underline .menu > li.current_page_ancestor > a,
.iv-menu--bar.look-underline .menu > li.current-cat > a,
.iv-menu--bar.look-minimal .menu > li.current-menu-item > a,
.iv-menu--bar.look-minimal .menu > li.current_page_item > a,
.iv-menu--bar.look-minimal .menu > li.current-menu-ancestor > a,
.iv-menu--bar.look-minimal .menu > li.current_page_ancestor > a,
.iv-menu--bar.look-minimal .menu > li.current-cat > a {
    color: var(--m-text);
    background: transparent;
    box-shadow: inset 0 -3px 0 var(--m-current);
}
.iv-menu--bar.look-tabs { --m-current: var(--iv-card); --m-current-text: var(--iv-ink); --m-pad: 8px 8px 0; --m-gap: 3px; --m-item-r: var(--iv-radius-media) var(--iv-radius-media) 0 0; }
.iv-menu--bar.look-segmented { --m-current: var(--iv-card); --m-current-text: var(--iv-ink); --m-pad: 5px; --m-r: 999px; --m-gap: 2px; --m-item-r: 999px; --m-px: 20px; --m-lh: calc(var(--m-h) - 12px); }
.iv-menu--bar.look-segmented .menu > li.current-menu-item > a,
.iv-menu--bar.look-segmented .menu > li.current_page_item > a { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); }
.iv-menu--bar.look-floating { --m-pad: 6px; --m-r: 999px; --m-gap: 4px; --m-item-r: 999px; --m-px: 20px; --m-lh: calc(var(--m-h) - 10px); --m-shadow: 0 20px 36px -16px rgba(0, 0, 0, 0.6), inset 0 0 0 1px var(--m-line); }
.iv-menu--bar.look-floating .menu { justify-content: center; }
.iv-menu--bar.look-light {
    --m-bg: var(--iv-card);
    --m-text: var(--iv-text);
    --m-line: var(--iv-line);
    --m-hover-fg: var(--m-hover-fg-light);
    --m-shadow: var(--iv-shadow), inset 0 0 0 1px var(--iv-line);
}
.iv-menu--bar.look-minimal {
    --m-bg: transparent;
    --m-text: var(--iv-ink);
    --m-hover-fg: var(--m-hover-fg-light);
    --m-r: 0px;
    --m-shadow: inset 0 -2px 0 var(--iv-line-strong);
}
.iv-menu--bar.look-outline {
    --m-bg: transparent;
    --m-text: var(--iv-ink);
    --m-hover-fg: var(--m-hover-fg-light);
    --m-shadow: inset 0 0 0 2px var(--iv-line-strong);
}
.iv-menu--bar.look-cards {
    --m-bg: transparent;
    --m-text: var(--iv-ink);
    --m-hover-fg: var(--m-hover-fg-light);
    --m-gap: 10px;
    --m-r: 0px;
    --m-item-r: var(--iv-radius-media);
    --m-shadow: none;
}
.iv-menu--bar.look-cards .menu > li > a { background: var(--iv-card); box-shadow: var(--iv-shadow), inset 0 0 0 1px var(--iv-line); }
.iv-menu--bar.look-cards .menu > li.current-menu-item > a,
.iv-menu--bar.look-cards .menu > li.current_page_item > a,
.iv-menu--bar.look-cards .menu > li.current-menu-ancestor > a,
.iv-menu--bar.look-cards .menu > li.current_page_ancestor > a,
.iv-menu--bar.look-cards .menu > li.current-cat > a { color: var(--m-current-text); background: var(--m-current); }
.iv-menu--bar.look-gradient {
    --m-bgx: linear-gradient(100deg, var(--m-bg) 30%, color-mix(in srgb, var(--m-bg) 35%, var(--iv-accent)));
    --m-current: color-mix(in srgb, var(--m-text) 24%, transparent);
    --m-current-text: var(--m-text);
}
.iv-menu--bar.look-neon {
    --m-hover-fg: var(--m-hover);
    --m-shadow: 0 0 0 1px var(--m-hover), 0 0 18px -2px var(--m-hover), inset 0 0 14px -8px var(--m-hover);
}
.iv-menu--bar.look-neon .menu > li.current-menu-item > a,
.iv-menu--bar.look-neon .menu > li.current_page_item > a,
.iv-menu--bar.look-neon .menu > li.current-menu-ancestor > a,
.iv-menu--bar.look-neon .menu > li.current_page_ancestor > a,
.iv-menu--bar.look-neon .menu > li.current-cat > a {
    color: var(--m-hover-fg);
    background: transparent;
    box-shadow: inset 0 -2px 0 var(--m-hover), 0 8px 14px -10px var(--m-hover);
}
.iv-menu--bar.look-chevron { --m-r: 0px; --m-px: 26px; }
.iv-menu--bar.look-chevron .menu > li > a { clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 14px 50%); }
.iv-menu--bar.look-chevron .menu > li:first-child > a { padding-left: 18px; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); }
.iv-menu--bar.look-chevron .menu > li + li { margin-left: -8px; }

/* hover animations */
.iv-menu--bar.anim-slide-down .menu > li > a::before { transform-origin: 50% 0; }
.iv-menu--bar.anim-slide-right .menu > li > a::before { transform: scaleX(0); transform-origin: 0 50%; }
.iv-menu--bar.anim-slide-right .menu > li:hover > a::before,
.iv-menu--bar.anim-slide-right .menu > li:focus-within > a::before { transform: scaleX(1); }
.iv-menu--bar.anim-grow .menu > li > a::before { transform: scale(0.4); border-radius: var(--iv-radius-media); }
.iv-menu--bar.anim-grow .menu > li:hover > a::before,
.iv-menu--bar.anim-grow .menu > li:focus-within > a::before { transform: scale(1); }
.iv-menu--bar.anim-skew .menu > li > a::before { transform: skewX(-18deg) scaleX(0); transform-origin: 0 50%; inset: 0 -12px; }
.iv-menu--bar.anim-skew .menu > li:hover > a::before,
.iv-menu--bar.anim-skew .menu > li:focus-within > a::before { transform: skewX(-18deg) scaleX(1); }
.iv-menu--bar.anim-shine .menu > li > a::before {
    transform: none;
    background: linear-gradient(110deg, var(--m-hover) 38%, color-mix(in srgb, var(--m-hover) 35%, #fff) 50%, var(--m-hover) 62%);
    background-size: 280% 100%;
    background-position: 100% 0;
}
.iv-menu--bar.anim-shine .menu > li:hover > a::before,
.iv-menu--bar.anim-shine .menu > li:focus-within > a::before { transform: none; background-position: 0 0; }
.iv-menu--bar.anim-underline .menu > li > a::before,
.iv-menu--bar.anim-line-left .menu > li > a::before {
    inset: auto 14px 0 14px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    opacity: 1;
    transform: scaleX(0);
    transform-origin: 50% 50%;
}
.iv-menu--bar.anim-line-left .menu > li > a::before { transform-origin: 0 50%; }
.iv-menu--bar.anim-underline .menu > li:hover > a::before,
.iv-menu--bar.anim-underline .menu > li:focus-within > a::before,
.iv-menu--bar.anim-line-left .menu > li:hover > a::before,
.iv-menu--bar.anim-line-left .menu > li:focus-within > a::before { transform: scaleX(1); }
.iv-menu--bar.anim-double-line .menu > li > a::before {
    inset: 0 14px;
    background: transparent;
    border-top: 3px solid var(--m-hover);
    border-bottom: 3px solid var(--m-hover);
    border-radius: 0;
    opacity: 1;
    transform: scaleX(0);
}
.iv-menu--bar.anim-double-line .menu > li:hover > a::before,
.iv-menu--bar.anim-double-line .menu > li:focus-within > a::before { transform: scaleX(1); }
.iv-menu--bar.anim-border .menu > li > a::before { background: transparent; box-shadow: inset 0 0 0 2px var(--m-hover); transform: none; }
.iv-menu--bar.anim-dot .menu > li > a::before { inset: auto auto 7px calc(50% - 3px); width: 6px; height: 6px; border-radius: 50%; transform: scale(0); }
.iv-menu--bar.anim-dot .menu > li:hover > a::before,
.iv-menu--bar.anim-dot .menu > li:focus-within > a::before { transform: scale(1); }
.iv-menu--bar.anim-underline .menu > li:hover > a,
.iv-menu--bar.anim-underline .menu > li:focus-within > a,
.iv-menu--bar.anim-line-left .menu > li:hover > a,
.iv-menu--bar.anim-line-left .menu > li:focus-within > a,
.iv-menu--bar.anim-double-line .menu > li:hover > a,
.iv-menu--bar.anim-double-line .menu > li:focus-within > a,
.iv-menu--bar.anim-border .menu > li:hover > a,
.iv-menu--bar.anim-border .menu > li:focus-within > a,
.iv-menu--bar.anim-dot .menu > li:hover > a,
.iv-menu--bar.anim-dot .menu > li:focus-within > a,
.iv-menu--bar.anim-letter .menu > li:hover > a,
.iv-menu--bar.anim-letter .menu > li:focus-within > a { color: var(--m-hover-fg); }
.iv-menu--bar.anim-lift .menu > li > a,
.iv-menu--bar.anim-glow .menu > li > a,
.iv-menu--bar.anim-bounce .menu > li > a,
.iv-menu--bar.anim-pulse .menu > li > a,
.iv-menu--bar.anim-zoom .menu > li > a { overflow: visible; }
.iv-menu--bar.anim-lift .menu > li > a::before { transform: none; box-shadow: 0 12px 20px -10px var(--m-hover); }
.iv-menu--bar.anim-lift .menu > li:hover > a,
.iv-menu--bar.anim-lift .menu > li:focus-within > a { transform: translateY(-2px); }
.iv-menu--bar.anim-lift .menu > li:hover > a::before,
.iv-menu--bar.anim-lift .menu > li:focus-within > a::before { transform: none; }
.iv-menu--bar.anim-glow .menu > li > a::before { transform: none; }
.iv-menu--bar.anim-glow .menu > li:hover > a::before,
.iv-menu--bar.anim-glow .menu > li:focus-within > a::before { box-shadow: 0 0 20px 2px var(--m-hover); }
.iv-menu--bar.anim-bounce .menu > li > a::before,
.iv-menu--bar.anim-pulse .menu > li > a::before,
.iv-menu--bar.anim-zoom .menu > li > a::before,
.iv-menu--bar.anim-fade .menu > li > a::before,
.iv-menu--bar.anim-none .menu > li > a::before { transform: none; }
.iv-menu--bar.anim-bounce .menu > li:hover > a { animation: iv-menu-bounce 0.45s ease; }
.iv-menu--bar.anim-pulse .menu > li:hover > a { animation: iv-menu-pulse 0.5s ease; }
.iv-menu--bar.anim-zoom .menu > li:hover > a,
.iv-menu--bar.anim-zoom .menu > li:focus-within > a { transform: scale(1.1); }
.iv-menu--bar.anim-letter .menu > li > a::before { opacity: 0; }
.iv-menu--bar.anim-letter .menu > li:hover > a,
.iv-menu--bar.anim-letter .menu > li:focus-within > a { letter-spacing: 0.07em; }
.iv-menu--bar.anim-letter .menu > li:hover > a::before,
.iv-menu--bar.anim-letter .menu > li:focus-within > a::before { opacity: 0; }
.iv-menu--bar.anim-none .menu > li > a,
.iv-menu--bar.anim-none .menu > li > a::before { transition: none; }

/* Back to top / bottom buttons (Customize > Theme Options > Back to top / bottom) */
.scroll-btns {
    position: fixed;
    bottom: 22px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.scroll-btns.scroll-right { right: 22px; align-items: flex-end; }
.scroll-btns.scroll-left { left: 22px; align-items: flex-start; }
.scroll-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 46px;
    height: 46px;
    padding: 0;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    color: var(--iv-scroll-text);
    cursor: pointer;
    background: var(--iv-scroll-bg);
    border: 0;
    border-radius: 50%;
    box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    pointer-events: auto;
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background-color 0.2s ease;
}
.scroll-btn.is-visible { opacity: 1; visibility: visible; transform: none; }
.scroll-btn.is-visible:hover { background: color-mix(in srgb, var(--iv-scroll-bg) 82%, #000); transform: translateY(-3px); }
.scroll-btn:focus-visible { outline: 3px solid var(--iv-scroll-bg); outline-offset: 3px; }
.scroll-btn__label { display: none; }
.scroll-style-square .scroll-btn { border-radius: var(--iv-radius-btn); }
.scroll-style-pill .scroll-btn { width: auto; padding: 0 18px 0 14px; border-radius: 999px; }
.scroll-style-pill .scroll-btn__label { display: inline; }
@media screen and (max-width: 600px) {
    .scroll-btns { bottom: 14px; gap: 8px; }
    .scroll-btns.scroll-right { right: 14px; }
    .scroll-btns.scroll-left { left: 14px; }
    .scroll-btn { width: 42px; height: 42px; }
    .scroll-style-pill .scroll-btn { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto }
    *, *:before, *:after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/*--------------------------------------------------------------
# 16. Responsive
--------------------------------------------------------------*/
@media screen and (max-width: 900px) {
    #page { flex-direction: column; align-items: stretch; gap: 0; }
    .sidebar { flex: none; width: 100%; }
}
@media screen and (max-width: 865px) {
    .header-row { flex-direction: column; align-items: center; }
    .site-branding { align-items: center; text-align: center; }
    .site-title { font-size: clamp(32px, 9vw, 44px); }
    .widget-header-item { flex: none; margin: 0 auto; }
    div.primary-navigation { margin-top: 14px }
    a#pull {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 0 3%;
        padding: 0 20px;
        font-size: 15px;
        font-weight: 600;
        line-height: 48px;
        color: var(--iv-menu-text);
        background: var(--iv-menu-bg);
        border-radius: var(--iv-radius-card);
        transition: background-color 0.2s ease, color 0.2s ease;
    }
    a#pull:hover { color: var(--iv-menu-hover-text); background: var(--iv-menu-hover); }
    a#pull:after { content: '\f0c9'; font-family: "invasion-icons"; font-weight: normal; }

    /* slide-in drawer (transform only: no layout work while it moves) */
    #navigation.mobile-menu-wrapper {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 300px;
        max-width: 86vw;
        transform: translateX(-105%);
        visibility: hidden;
        height: 100%;
        padding: 18px 12px 30px;
        z-index: 9999;
        overflow: auto;
        color: var(--iv-menu-text);
        background: var(--iv-menu-bg);
        transition: transform 0.3s ease, visibility 0s linear 0.3s;
    }
    .mobile-menu-active #navigation.mobile-menu-wrapper { transform: none; visibility: visible; transition-delay: 0s; }
    #navigation li { width: 100%; background: transparent; }
    #navigation a, #navigation ul ul a {
        width: 100%;
        padding: 0 20px;
        font-size: 16px;
        line-height: 48px;
        color: var(--iv-menu-text);
        background: transparent;
        border-radius: var(--iv-radius-media);
        transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
    }
    #navigation a:hover, #navigation li:hover > a { padding-left: 26px; color: var(--iv-menu-hover-text); background: var(--iv-menu-hover); }
    #navigation.anim-none a:hover, #navigation.anim-none li:hover > a { padding-left: 20px; }
    #navigation ul li.current-menu-item > a,
    #navigation ul li.current_page_item > a,
    #navigation ul li.current-menu-ancestor > a,
    #navigation ul li.current-cat > a { color: var(--iv-menu-current-text); background: var(--iv-menu-current); }
    #navigation ul ul { padding: 0 0 0 12px }
    #navigation ul ul a { font-size: 15px; font-weight: 400; line-height: 42px; color: var(--iv-menu-text); }
    .menu-item-has-children > a:after, .cat-parent > a:after { content: '' }
    #navigation .toggle-caret {
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        width: 48px;
        height: 48px;
        line-height: 48px;
        color: inherit;
        text-align: center;
    }
    #navigation .toggle-caret i { line-height: 48px }
    #mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
        display: none;
        cursor: pointer;
        background: rgba(15, 22, 32, 0.55);
    }
    .mobile-menu-active #mobile-menu-overlay { display: block }
    .mobile-menu-active { overflow: hidden }
}
@media screen and (max-width: 720px) {
    :root { --iv-pad: 20px; }
    .single_post { --iv-pad: 22px; padding-top: 22px; }
    #page { padding-top: 24px }
    .single-title { font-size: 28px }
    .comment-form { grid-template-columns: minmax(0, 1fr); }
    .comment-form .comment-form-author, .comment-form .comment-form-email { grid-column: 1 / -1; }
    .comment-card { padding: 14px; gap: 12px; }
    .comment-avatar .avatar { width: 40px; height: 40px; }
    #respond { padding: 18px 16px; }
}
@media screen and (max-width: 600px) {
    #comments .commentlist ol.children { margin-left: 12px; padding-left: 18px; }
    #comments .commentlist ol.children > li::before { left: -19px; width: 17px; }
    #comments .commentlist ol.children > li::after { left: -23px; }
}
@media screen and (max-width: 550px) {
    .related-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 4%; }
}
@media screen and (max-width: 480px) {
    .footer-widgets { grid-template-columns: minmax(0, 1fr) }
    .download-wrap { justify-content: stretch; }
    .download-btn { width: 100%; justify-content: center; }
}

/*--------------------------------------------------------------
# 17. Code and preformatted text
--------------------------------------------------------------*/
/* Modern WordPress Preformatted Text & Code Boxes */
pre {
    display: block;
    box-sizing: border-box;
    max-width: 100%;
    margin: 20px 0;
    padding: 22px 24px;
    overflow-x: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: normal;
    background: #f8f5ff;
    color: #4c1d95;
    border: 2px solid #d8b4fe;
    border-left: 5px solid #7c3aed;
    border-radius: 10px;
    font-family: Consolas, "Courier New", monospace;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.8;
    box-shadow: 0 3px 12px rgba(76, 29, 149, 0.08);
}
/* Inline code */
code {
    padding: 3px 6px;
    background: #f3e8ff;
    color: #7e22ce;
    border: 1px solid #e9d5ff;
    border-radius: 4px;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.92em;
    font-weight: 500;
}
/* Avoid double borders inside code blocks */
pre code {
    display: block;
    padding: 0;
    background: transparent;
    color: inherit;
    border: none;
    border-radius: 0;
    font-size: inherit;
    line-height: inherit;
}
/* Dark mode support, if the site uses a dark theme */
@media (prefers-color-scheme: dark) {
    pre {
        background: #1e1b2e;
        color: #e9d5ff;
        border-color: #6b21a8;
        border-left-color: #c084fc;
        box-shadow: none;
    }
    code {
        background: #2e1065;
        color: #e9d5ff;
        border-color: #581c87;
    }
}
/* Mobile adjustments */
@media (max-width: 600px) {
    pre {
        padding: 14px 16px;
        font-size: 13px;
        line-height: 1.7;
        border-radius: 7px;
    }
}

/* Dark colour presets: code boxes follow the dark scheme (the light purple box would glare) */
.scheme-dark pre {
    background: #1e1b2e;
    color: #e9d5ff;
    border-color: #6b21a8;
    border-left-color: #c084fc;
    box-shadow: none;
}
.scheme-dark code {
    background: #2e1065;
    color: #e9d5ff;
    border-color: #581c87;
}

/* Dark colour presets: notices that use light tints */
.scheme-dark .comment-awaiting-moderation { color: #FCD34D; background: color-mix(in srgb, #F59E0B 20%, var(--iv-card)); }
.scheme-dark #cancel-comment-reply-link { color: #FCA5A5; background: color-mix(in srgb, #EF4444 20%, var(--iv-card)); }
.scheme-dark #cancel-comment-reply-link:hover { background: color-mix(in srgb, #EF4444 32%, var(--iv-card)); }
.scheme-dark mark, .scheme-dark ins { background: #5C4B00; color: #FFF3BF; }
