/*
Theme Name: Invamode
Theme URI: https://appsurl.com
Description: A fast, clean blog theme for download and software sites. Post cards with a coloured edge and an animated Download button, a list or grid view, 130+ colour presets (forums, social networks, streaming, app stores, code editors, natural and aesthetic colours), a rebuilt primary menu with many looks and hover animations, top and bottom bars, widget styles, table styles, date styles, full width or sidebar layouts per page, a back to top 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.0.5
Requires at least: 6.3
Tested up to: 6.8
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: appsurl.com
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.
style.css is the readable source. style.min.css is the same stylesheet minified; the theme loads it unless SCRIPT_DEBUG is on.

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
 18. Extra options, reading progress, copy button, print
*/

/*--------------------------------------------------------------
# 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 */
    --im-accent: #005AC2;
    --im-deep: #2B3E50;
    --im-edge: #8CA3BE;
    --im-accent-deep: color-mix(in srgb, var(--im-accent) 72%, #000);
    --im-accent-bright: color-mix(in srgb, var(--im-accent) 74%, #fff);
    --im-ring: color-mix(in srgb, var(--im-accent) 22%, transparent);

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

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

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

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

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

    /* widths: set in Customize > Theme Options > Homepage */
    --im-article-w: 740px;
    --im-sidebar-w: 340px;
    --im-static-w: 900px;
    --im-title: var(--im-deep);
    --im-page-w: calc(var(--im-article-w) + var(--im-sidebar-w) + 40px);
    --im-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 */
    --im-font: "Plus Jakarta Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --im-font-head: var(--im-font);

    /* Content compatibility: page content written with --mu-* variables (for example a donation page)
       follows the theme colours and fonts through these aliases. Delete them if no page uses --mu-*. */
    --mu-accent: var(--im-accent);
    --mu-deep: var(--im-deep);
    --mu-edge: var(--im-edge);
    --mu-font-head: var(--im-font-head);
    --mu-font-body: var(--im-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(--im-font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--im-text);
    background: var(--im-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(--im-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(--im-line);
    border-radius: var(--im-radius-media);
}
td, th { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--im-line); }
th { font-weight: 700; color: var(--im-ink); background: var(--im-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(--im-accent);
    --t-head-text: var(--im-on-accent);
    --t-line: var(--im-line);
    width: 100%;
    font-size: 15px;
    line-height: 1.5;
    color: var(--im-text);
    background: var(--im-card);
    border: 1px solid var(--t-line);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--im-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(--im-ink); background: var(--im-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(--im-radius-media) - 1px); }
.post-single-content thead tr:first-child th:last-child { border-top-right-radius: calc(var(--im-radius-media) - 1px); }
.post-single-content tfoot td, .post-single-content tfoot th { font-weight: 700; color: var(--im-ink); background: var(--im-soft); border-top: 1px solid var(--t-line); }
.post-single-content table caption { padding: 8px 0 0; font-size: 13px; color: var(--im-muted); caption-side: bottom; }
/* striped (default) */
.table-style-striped .post-single-content tbody tr:nth-child(even) td { background: var(--im-soft); }
.table-style-striped .post-single-content tbody tr:hover td { background: color-mix(in srgb, var(--im-accent) 10%, var(--im-card)); }
/* classic grid */
.table-style-classic .post-single-content table { --t-head-bg: var(--im-deep); --t-head-text: var(--im-on-deep); --t-line: var(--im-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(--im-soft); }
/* minimal */
.table-style-minimal .post-single-content table { --t-head-bg: transparent; --t-head-text: var(--im-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(--im-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(--im-soft); }
/* modern */
.table-style-modern .post-single-content table { --t-head-bg: linear-gradient(100deg, var(--im-deep), color-mix(in srgb, var(--im-deep) 55%, var(--im-accent))); --t-head-text: var(--im-on-deep); --t-line: transparent; border: 0; border-radius: var(--im-radius-card); box-shadow: var(--im-shadow), 0 0 0 1px var(--im-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(--im-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(--im-accent) 9%, var(--im-card)); }
/* soft */
.table-style-soft .post-single-content table { --t-head-bg: color-mix(in srgb, var(--im-accent) 14%, var(--im-card)); --t-head-text: var(--im-link); border: 0; border-radius: var(--im-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(--im-radius-media) 0 0 var(--im-radius-media); }
.table-style-soft .post-single-content thead tr:first-child th:last-child { border-radius: 0 var(--im-radius-media) var(--im-radius-media) 0; }
.table-style-soft .post-single-content tbody tr:hover td { background: var(--im-soft); }
/* compact */
.table-style-compact .post-single-content table { --t-head-bg: var(--im-soft); --t-head-text: var(--im-ink); --t-line: var(--im-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(--im-muted); background: transparent; border: 0; }
.table-style-rows .post-single-content td { background: var(--im-card); border: 0; box-shadow: inset 0 1px 0 var(--im-line), inset 0 -1px 0 var(--im-line); transition: transform 0.2s ease; }
.table-style-rows .post-single-content td:first-child { border-radius: var(--im-radius-media) 0 0 var(--im-radius-media); box-shadow: inset 1px 1px 0 var(--im-line), inset 0 -1px 0 var(--im-line); }
.table-style-rows .post-single-content td:last-child { border-radius: 0 var(--im-radius-media) var(--im-radius-media) 0; box-shadow: inset -1px 1px 0 var(--im-line), inset 0 -1px 0 var(--im-line); }
.table-style-rows .post-single-content tbody tr:hover td { background: color-mix(in srgb, var(--im-accent) 8%, var(--im-card)); }
/* dark */
.table-style-dark .post-single-content table { --t-head-bg: var(--im-deep); --t-head-text: var(--im-on-deep); --t-line: var(--im-foot-line); color: var(--im-foot-text); background: color-mix(in srgb, var(--im-deep) 88%, #000); border-color: var(--im-foot-line); }
.table-style-dark .post-single-content th { background: var(--im-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(--im-widget-hover-foot); }
/* gradient */
.table-style-gradient .post-single-content table { --t-head-bg: linear-gradient(100deg, var(--im-accent-deep), var(--im-accent) 60%, var(--im-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(--im-accent) 7%, var(--im-card)); }
/* outline */
.table-style-outline .post-single-content table { --t-line: color-mix(in srgb, var(--im-accent) 28%, var(--im-card)); background: transparent; border: 2px solid var(--im-accent); }
.table-style-outline .post-single-content th { color: var(--im-link); background: transparent; border-bottom: 2px solid var(--im-accent); }
.table-style-outline .post-single-content tbody tr:hover td { background: color-mix(in srgb, var(--im-accent) 8%, transparent); }
/* first column */
.table-style-first-col .post-single-content table { --t-head-bg: var(--im-deep); --t-head-text: var(--im-on-deep); }
.table-style-first-col .post-single-content td:first-child { font-weight: 700; color: var(--im-ink); background: var(--im-soft); border-right: 3px solid var(--im-accent); }
.table-style-first-col .post-single-content tbody tr:hover td { background: color-mix(in srgb, var(--im-accent) 8%, var(--im-card)); }
.table-style-first-col .post-single-content tbody tr:hover td:first-child { background: color-mix(in srgb, var(--im-accent) 14%, var(--im-soft)); }
/* ruled */
.table-style-ruled .post-single-content table { --t-head-bg: transparent; --t-head-text: var(--im-ink); background: var(--im-card); border: 1px solid var(--im-line); border-left: 4px double var(--im-accent); border-radius: 4px; }
.table-style-ruled .post-single-content th { border-bottom: 3px double var(--im-line-strong); }
.table-style-ruled .post-single-content td { border-bottom: 1px dashed var(--im-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(--im-deep); --t-head-text: var(--im-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(--im-soft); }
/* colourful */
.table-style-colorful .post-single-content td:first-child { font-weight: 700; color: var(--im-on-deep); background: var(--im-deep); border-bottom-color: var(--im-foot-line); }
.table-style-colorful .post-single-content tbody tr:nth-child(even) td:not(:first-child) { background: color-mix(in srgb, var(--im-accent) 8%, var(--im-card)); }
.table-style-colorful .post-single-content tbody tr:hover td:not(:first-child) { background: color-mix(in srgb, var(--im-accent) 16%, var(--im-card)); }
/* column stripes */
.table-style-zebra-cols .post-single-content td:nth-child(odd) { background: var(--im-soft); }
.table-style-zebra-cols .post-single-content tbody tr:hover td { background: color-mix(in srgb, var(--im-accent) 10%, var(--im-card)); }
/* accent rows */
.table-style-accent-rows .post-single-content table { --t-head-bg: var(--im-soft); --t-head-text: var(--im-ink); }
.table-style-accent-rows .post-single-content td:first-child { font-weight: 600; box-shadow: inset 4px 0 0 var(--im-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(--im-accent) 45%, transparent); }
.table-style-accent-rows .post-single-content tbody tr:hover td { background: color-mix(in srgb, var(--im-accent) 8%, var(--im-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(--im-card); --t-head-text: var(--im-ink); box-shadow: var(--im-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(--im-accent); border-bottom: 1px solid var(--im-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(--im-ink); background: var(--im-soft); }
.table-style-pricing .post-single-content tbody tr:hover td:not(:first-child) { background: color-mix(in srgb, var(--im-accent) 8%, var(--im-card)); }
/* underlined */
.table-style-underlined .post-single-content table { --t-head-bg: transparent; --t-head-text: var(--im-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(--im-accent); }
.table-style-underlined .post-single-content td { border-bottom: 1px solid var(--im-line); }
.table-style-underlined .post-single-content tbody tr:hover td { background: var(--im-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(--im-accent) 6%, var(--im-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(--im-deep); --t-head-text: var(--im-on-deep); border: 4px double var(--im-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(--im-soft); }

/*--------------------------------------------------------------
# 3. Typography
--------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.55em;
    font-family: var(--im-font-head);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--im-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(--im-link);
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
a:hover { color: var(--im-link-hover) }

/*--------------------------------------------------------------
# 4. Icons (bundled icon font)
--------------------------------------------------------------*/
@font-face {
    font-family: 'invamode-icons';
    src: url('fonts/invamode-icons.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
.im-icon:before {
    font-family: "invamode-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(--im-page-w); min-width: 240px; margin: 0 auto; position: relative; }
#page {
    display: flex;
    align-items: flex-start;
    gap: var(--im-col-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-family: var(--im-font-title, var(--im-font-head));
    font-size: clamp(36px, 5.4vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}
.site-title a {
    color: var(--im-title, var(--im-deep));
    background: linear-gradient(90deg, var(--im-title, var(--im-deep)) 38%, var(--im-title2, var(--im-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-family: var(--im-font-tagline, var(--im-font-head));
    font-size: clamp(11px, 1.3vw, 13px);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--im-tagline, var(--im-muted));
}
.site-description { position: relative; left: var(--im-tagline-indent, 0px); }
.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(--im-tagline) 14%, transparent); border-radius: 999px; }
.tagline-shape-outline .site-description { border: 1.5px solid var(--im-tagline); border-radius: 999px; }
.tagline-shape-ribbon .site-description { color: var(--im-on-accent); background: var(--im-accent); border-radius: 0 var(--im-radius-btn) var(--im-radius-btn) 0; }
.tagline-shape-bar .site-description { margin-top: 8px; padding: 2px 0 2px 12px; border-left: 4px solid var(--im-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: --im-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(--im-menu-fs); }
.menu-size-sm { --im-menu-h: 40px; --im-menu-fs: 14px; }
.menu-size-lg { --im-menu-h: 58px; --im-menu-fs: 17px; }
#navigation ul { list-style-type: none }
#navigation li { position: relative }
#navigation a {
    display: block;
    padding: 0 18px;
    font-size: var(--im-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: 'invamode-icons';
    margin-left: 8px;
    font-size: 12px;
    line-height: 1;
    vertical-align: middle;
    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 .im-icon:before { content: '\e804' } /* minus */
.widget .toggle-caret {
    top: 7px;
    width: 26px;
    height: 26px;
    line-height: 26px;
    color: var(--im-link);
    background: var(--im-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(--im-on-deep); background: var(--im-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(--im-menu-bg);
    --m-text: var(--im-menu-text);
    --m-line: var(--im-menu-line);
    --m-hover: var(--im-menu-hover);
    --m-hover-text: var(--im-menu-hover-text);
    --m-hover-fg: var(--im-menu-hover-fg);
    --m-hover-fg-light: var(--im-menu-hover-fg-light);
    --m-current: var(--im-menu-current);
    --m-current-text: var(--im-menu-current-text);
    --m-h: var(--im-menu-h);
    --m-fs: var(--im-menu-fs);
    /* "open" looks (no coloured bar) sit on the page here; in the bars below they sit on the bar */
    --m-open-text: var(--im-ink);
    --m-open-fg: var(--m-hover-fg-light);
    --m-open-line: var(--im-line-strong);
}
.topbar .im-menu--bar {
    --m-bg: var(--im-topbar-bg);
    --m-text: var(--im-topbar-text);
    --m-line: var(--im-topbar-line);
    --m-hover: var(--im-topbar-fill);
    --m-hover-text: var(--im-topbar-fill-text);
    --m-hover-fg: var(--im-topbar-fg);
    --m-hover-fg-light: var(--im-menu-hover-fg-light);
    --m-current: var(--im-topbar-cur);
    --m-current-text: var(--im-topbar-cur-text);
    --m-h: 40px;
    --m-fs: 13px;
    --m-px: 11px;
    --m-r: var(--im-radius-media);
    --m-shadow: none;
    --m-open-text: var(--im-topbar-text);
    --m-open-fg: var(--im-topbar-fg);
    --m-open-line: var(--im-topbar-line);
    --m-boxbg: transparent; /* the full-width strip already paints the bar */
}
.topbar--nobg .im-menu--bar {
    --m-boxbg: initial;
    --m-open-text: var(--im-ink);
    --m-open-fg: var(--m-hover-fg-light);
    --m-open-line: var(--im-line-strong);
}
.bottombar .im-menu--bar {
    --m-bg: var(--im-bbar-bg);
    --m-text: var(--im-bbar-text);
    --m-line: var(--im-bbar-line);
    --m-hover: var(--im-bbar-fill);
    --m-hover-text: var(--im-bbar-fill-text);
    --m-hover-fg: var(--im-bbar-fg);
    --m-hover-fg-light: var(--im-menu-hover-fg-light);
    --m-current: var(--im-bbar-cur);
    --m-current-text: var(--im-bbar-cur-text);
    --m-h: 46px;
    --m-fs: 14px;
    --m-px: 16px;
    --m-shadow: none;
    --m-open-text: var(--im-bbar-text);
    --m-open-fg: var(--im-bbar-fg);
    --m-open-line: var(--im-bbar-line);
}
.bottombar--nobg .im-menu--bar {
    --m-open-text: var(--im-ink);
    --m-open-fg: var(--m-hover-fg-light);
    --m-open-line: var(--im-line-strong);
}
@keyframes im-menu-bounce {
    0% { transform: translateY(0); }
    35% { transform: translateY(-5px); }
    65% { transform: translateY(1px); }
    100% { transform: translateY(0); }
}
@keyframes im-menu-swing {
    0% { transform: rotate(0); }
    25% { transform: rotate(-5deg); }
    55% { transform: rotate(4deg); }
    80% { transform: rotate(-2deg); }
    100% { transform: rotate(0); }
}
@keyframes im-menu-rubber {
    0% { transform: scale(1, 1); }
    30% { transform: scale(1.18, 0.82); }
    50% { transform: scale(0.9, 1.1); }
    70% { transform: scale(1.06, 0.95); }
    100% { transform: scale(1, 1); }
}
@keyframes im-menu-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-4px); }
    40% { transform: translateX(4px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(2px); }
}
@keyframes im-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(--im-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-boxbg, 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; display: flex; margin: 0; padding: 0; }
    #navigation .menu > li > a {
        position: relative;
        z-index: 0;
        isolation: isolate;
        overflow: hidden;
        display: block;
        flex: 1 1 auto;
        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;
    }
    /* 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, filter 0.3s 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-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; }

    #navigation.look-pills {
        --m-pad: 6px 8px; --m-gap: 4px; --m-item-r: 999px; --m-lh: calc(var(--m-h) - 10px);
    }

    #navigation.look-pills .menu > li.current-menu-item > a,
    #navigation.look-pills .menu > li.current_page_item > a,
    #navigation.look-pills .menu > li.current-menu-ancestor > a,
    #navigation.look-pills .menu > li.current_page_ancestor > a,
    #navigation.look-pills .menu > li.current-cat > a {
        box-shadow: 0 2px 10px -3px var(--m-current);
    }

    #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 {
        color: var(--m-text);
        background: transparent;
        box-shadow: inset 0 -3px 0 var(--m-hover-fg);
    }

    #navigation.look-tabs {
        --m-current: var(--im-card); --m-current-text: var(--im-ink); --m-pad: 8px 8px 0; --m-gap: 3px; --m-item-r: var(--im-radius-media) var(--im-radius-media) 0 0;
    }

    #navigation.look-segmented {
        --m-boxbg: initial;
        --m-bgx: color-mix(in srgb, var(--m-bg) 80%, var(--m-text));
        --m-current: var(--im-card); --m-current-text: var(--im-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,
    #navigation.look-segmented .menu > li.current-menu-ancestor > a,
    #navigation.look-segmented .menu > li.current_page_ancestor > a,
    #navigation.look-segmented .menu > li.current-cat > a {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    #navigation.look-floating {
        --m-boxbg: initial;
        --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-boxbg: initial;
        --m-bg: var(--im-card);
        --m-text: var(--im-text);
        --m-line: var(--im-line);
        --m-hover-fg: var(--m-hover-fg-light);
        --m-shadow: var(--im-shadow), inset 0 0 0 1px var(--im-line);
    }

    #navigation.look-minimal {
        --m-bgx: transparent;
        --m-text: var(--m-open-text);
        --m-hover-fg: var(--m-open-fg);
        --m-r: 0px;
        --m-shadow: inset 0 -2px 0 var(--m-open-line);
    }

    #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-hover-fg);
        background: transparent;
        box-shadow: inset 0 -3px 0 var(--m-current);
    }

    #navigation.look-outline {
        --m-bgx: transparent;
        --m-text: var(--m-open-text);
        --m-hover-fg: var(--m-open-fg);
        --m-shadow: inset 0 0 0 2px var(--m-open-line);
    }

    #navigation.look-cards {
        --m-bgx: transparent;
        --m-text: var(--im-ink);
        --m-hover-fg: var(--m-hover-fg-light);
        --m-gap: 10px;
        --m-r: 0px;
        --m-item-r: var(--im-radius-media);
        --m-shadow: none;
    }

    #navigation.look-cards .menu > li > a { background: var(--im-card); box-shadow: var(--im-shadow), inset 0 0 0 1px var(--im-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) 45%, var(--m-current)));
        --m-current: color-mix(in srgb, var(--m-text) 24%, transparent);
        --m-current-text: var(--m-text);
    }

    #navigation.look-neon {
        --m-boxbg: initial;
        --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; }

    #navigation.look-separators .menu > li + li::before { content: ""; position: absolute; top: 26%; bottom: 26%; left: 0; width: 1px; background: var(--m-line); pointer-events: none; }

    #navigation.look-boxed {
        --m-pad: 6px; --m-gap: 6px; --m-item-r: var(--im-radius-media);
    }

    #navigation.look-boxed .menu > li > a { box-shadow: inset 0 0 0 1px var(--m-line); }

    #navigation.look-lines .menu > li > a { box-shadow: inset 0 -2px 0 var(--m-line); }

    #navigation.look-lines .menu > li.current-menu-item > a,
    #navigation.look-lines .menu > li.current_page_item > a,
    #navigation.look-lines .menu > li.current-menu-ancestor > a,
    #navigation.look-lines .menu > li.current_page_ancestor > a,
    #navigation.look-lines .menu > li.current-cat > a {
        color: var(--m-text);
        background: transparent;
        box-shadow: inset 0 -3px 0 var(--m-hover-fg);
    }

    #navigation.look-glass {
        --m-boxbg: initial;
        --m-bgx: color-mix(in srgb, var(--m-bg) 80%, transparent);
        --m-shadow: 0 14px 28px -18px rgba(0, 0, 0, 0.5), inset 0 0 0 1px color-mix(in srgb, var(--m-text) 22%, transparent);
        -webkit-backdrop-filter: blur(10px) saturate(1.3);
        backdrop-filter: blur(10px) saturate(1.3);
    }

    #navigation.look-overline .menu > li.current-menu-item > a,
    #navigation.look-overline .menu > li.current_page_item > a,
    #navigation.look-overline .menu > li.current-menu-ancestor > a,
    #navigation.look-overline .menu > li.current_page_ancestor > a,
    #navigation.look-overline .menu > li.current-cat > a {
        color: var(--m-text);
        background: transparent;
        box-shadow: inset 0 3px 0 var(--m-hover-fg);
    }

    #navigation.look-raised {
        --m-pad: 6px 6px 9px; --m-gap: 6px; --m-item-r: var(--im-radius-media);
    }

    #navigation.look-raised .menu > li > a { background: color-mix(in srgb, var(--m-bg) 78%, #fff); box-shadow: 0 3px 0 color-mix(in srgb, var(--m-bg) 52%, #000); }

    #navigation.look-raised .menu > li.current-menu-item > a,
    #navigation.look-raised .menu > li.current_page_item > a,
    #navigation.look-raised .menu > li.current-menu-ancestor > a,
    #navigation.look-raised .menu > li.current_page_ancestor > a,
    #navigation.look-raised .menu > li.current-cat > a {
        background: var(--m-current);
        box-shadow: 0 3px 0 color-mix(in srgb, var(--m-current) 58%, #000);
    }

    #navigation.look-capsule {
        --m-boxbg: initial;
        --m-pad: 5px; --m-r: 999px; --m-gap: 2px; --m-item-r: 999px; --m-px: 20px; --m-lh: calc(var(--m-h) - 12px); --m-shadow: inset 0 0 0 1px var(--m-line);
    }

    #navigation.look-capsule .menu > li.current-menu-item > a,
    #navigation.look-capsule .menu > li.current_page_item > a,
    #navigation.look-capsule .menu > li.current-menu-ancestor > a,
    #navigation.look-capsule .menu > li.current_page_ancestor > a,
    #navigation.look-capsule .menu > li.current-cat > a {
        box-shadow: 0 6px 14px -6px var(--m-current);
    }

    #navigation.look-dots {
        --m-shadow: none;
    }

    #navigation.look-dots .menu > li.current-menu-item > a,
    #navigation.look-dots .menu > li.current_page_item > a,
    #navigation.look-dots .menu > li.current-menu-ancestor > a,
    #navigation.look-dots .menu > li.current_page_ancestor > a,
    #navigation.look-dots .menu > li.current-cat > a {
        color: var(--m-hover-fg);
        background: radial-gradient(circle at 50% calc(100% - 8px), var(--m-hover-fg) 3px, transparent 3.5px);
    }

    #navigation.look-slash {
        --m-bgx: transparent;
        --m-text: var(--m-open-text);
        --m-hover-fg: var(--m-open-fg);
        --m-r: 0px; --m-shadow: none; --m-px: 17px;
    }

    #navigation.look-slash .menu > li + li::before { content: "/"; position: absolute; left: 0; top: 50%; z-index: 1; transform: translate(-50%, -52%); font-weight: 300; line-height: 1; color: var(--m-text); opacity: 0.4; pointer-events: none; }

    #navigation.look-slash .menu > li.current-menu-item > a,
    #navigation.look-slash .menu > li.current_page_item > a,
    #navigation.look-slash .menu > li.current-menu-ancestor > a,
    #navigation.look-slash .menu > li.current_page_ancestor > a,
    #navigation.look-slash .menu > li.current-cat > a {
        color: var(--m-hover-fg);
        background: transparent;
        font-weight: 800;
    }

    #navigation.look-soft-pill {
        --m-pad: 6px 8px; --m-gap: 5px; --m-item-r: 10px; --m-lh: calc(var(--m-h) - 12px);
    }

    #navigation.look-soft-pill .menu > li > a { background: color-mix(in srgb, var(--m-text) 10%, transparent); }

    #navigation.look-soft-pill .menu > li.current-menu-item > a,
    #navigation.look-soft-pill .menu > li.current_page_item > a,
    #navigation.look-soft-pill .menu > li.current-menu-ancestor > a,
    #navigation.look-soft-pill .menu > li.current_page_ancestor > a,
    #navigation.look-soft-pill .menu > li.current-cat > a {
        background: var(--m-current);
    }

    #navigation.look-bracket {
        --m-hover-text: var(--m-hover-fg); --m-shadow: none;
    }

    #navigation.look-bracket .menu > li > a::before { inset: 9px 4px; border-radius: 0; background: linear-gradient(var(--m-hover-fg), var(--m-hover-fg)) 0 0 / 2px 100% no-repeat,linear-gradient(var(--m-hover-fg), var(--m-hover-fg)) 0 0 / 7px 2px no-repeat,linear-gradient(var(--m-hover-fg), var(--m-hover-fg)) 0 100% / 7px 2px no-repeat,linear-gradient(var(--m-hover-fg), var(--m-hover-fg)) 100% 0 / 2px 100% no-repeat,linear-gradient(var(--m-hover-fg), var(--m-hover-fg)) 100% 0 / 7px 2px no-repeat,linear-gradient(var(--m-hover-fg), var(--m-hover-fg)) 100% 100% / 7px 2px no-repeat; }

    #navigation.look-bracket .menu > li.current-menu-item > a,
    #navigation.look-bracket .menu > li.current_page_item > a,
    #navigation.look-bracket .menu > li.current-menu-ancestor > a,
    #navigation.look-bracket .menu > li.current_page_ancestor > a,
    #navigation.look-bracket .menu > li.current-cat > a {
        color: var(--m-hover-fg);
        background: transparent;
    }

    #navigation.look-bracket .menu > li.current-menu-item > a::before,
    #navigation.look-bracket .menu > li.current_page_item > a::before,
    #navigation.look-bracket .menu > li.current-menu-ancestor > a::before,
    #navigation.look-bracket .menu > li.current_page_ancestor > a::before,
    #navigation.look-bracket .menu > li.current-cat > a::before {
        opacity: 1;
        transform: none;
    }

    #navigation.look-underline-thick {
        --m-bgx: transparent;
        --m-text: var(--m-open-text);
        --m-hover-fg: var(--m-open-fg);
        --m-r: 0px; --m-shadow: none;
    }

    #navigation.look-underline-thick .menu > li.current-menu-item > a,
    #navigation.look-underline-thick .menu > li.current_page_item > a,
    #navigation.look-underline-thick .menu > li.current-menu-ancestor > a,
    #navigation.look-underline-thick .menu > li.current_page_ancestor > a,
    #navigation.look-underline-thick .menu > li.current-cat > a {
        color: var(--m-hover-fg);
        font-weight: 800;
        background: linear-gradient(var(--m-current), var(--m-current)) 50% 100% / calc(100% - var(--m-px) * 2) 5px no-repeat;
    }

    #navigation.look-ink {
        --m-bgx: transparent;
        --m-text: var(--m-open-text);
        --m-hover-fg: var(--m-open-fg);
        --m-r: 0px; --m-shadow: none;
    }

    #navigation.look-ink .menu > li.current-menu-item > a,
    #navigation.look-ink .menu > li.current_page_item > a,
    #navigation.look-ink .menu > li.current-menu-ancestor > a,
    #navigation.look-ink .menu > li.current_page_ancestor > a,
    #navigation.look-ink .menu > li.current-cat > a {
        color: var(--m-hover-fg);
        background: transparent;
        text-decoration: underline wavy var(--m-current) 2px;
        text-underline-offset: 9px;
        text-decoration-skip-ink: none;
    }

    #navigation.look-split {
        --m-shadow: none;
    }

    #navigation.look-split .menu > li.current-menu-item > a,
    #navigation.look-split .menu > li.current_page_item > a,
    #navigation.look-split .menu > li.current-menu-ancestor > a,
    #navigation.look-split .menu > li.current_page_ancestor > a,
    #navigation.look-split .menu > li.current-cat > a {
        background: linear-gradient(105deg, var(--m-current) 62%, color-mix(in srgb, var(--m-current) 70%, #000) 62%);
    }

    #navigation.look-magazine {
        --m-bgx: transparent;
        --m-text: var(--m-open-text);
        --m-hover-fg: var(--m-open-fg);
        --m-r: 0px; --m-px: 20px; --m-shadow: inset 0 1px 0 var(--m-open-line), inset 0 -1px 0 var(--m-open-line);
    }

    #navigation.look-magazine .menu > li > a { font-size: calc(var(--m-fs) - 1px); font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; }
    #navigation.look-magazine .menu > li + li::before { content: ""; position: absolute; top: 30%; bottom: 30%; left: 0; width: 1px; background: var(--m-open-line); pointer-events: none; }

    #navigation.look-magazine .menu > li.current-menu-item > a,
    #navigation.look-magazine .menu > li.current_page_item > a,
    #navigation.look-magazine .menu > li.current-menu-ancestor > a,
    #navigation.look-magazine .menu > li.current_page_ancestor > a,
    #navigation.look-magazine .menu > li.current-cat > a {
        color: var(--m-hover-fg);
        background: transparent;
        box-shadow: inset 0 -2px 0 var(--m-current);
    }

    #navigation.look-plain {
        --m-bgx: transparent;
        --m-text: var(--m-open-text);
        --m-hover-fg: var(--m-open-fg);
        --m-r: 0px; --m-shadow: none; --m-px: 16px; --m-hover-text: var(--m-open-fg);
    }

    #navigation.look-plain .menu > li > a::before { display: none; }

    #navigation.look-plain .menu > li.current-menu-item > a,
    #navigation.look-plain .menu > li.current_page_item > a,
    #navigation.look-plain .menu > li.current-menu-ancestor > a,
    #navigation.look-plain .menu > li.current_page_ancestor > a,
    #navigation.look-plain .menu > li.current-cat > a {
        color: var(--m-hover-fg);
        background: transparent;
        font-weight: 800;
    }

    #navigation.look-chip {
        --m-bgx: transparent; --m-shadow: none; --m-r: 0px; --m-pad: 6px 0; --m-gap: 6px; --m-item-r: 6px; --m-px: 14px; --m-lh: calc(var(--m-h) - 16px);
    }

    #navigation.look-chip .menu > li > a { background: color-mix(in srgb, var(--m-bg) 84%, var(--m-text)); }

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

    #navigation.look-ghost {
        --m-bgx: transparent;
        --m-text: var(--m-open-text);
        --m-hover-fg: var(--m-open-fg);
        --m-hover: color-mix(in srgb, var(--m-open-fg) 16%, transparent);
        --m-hover-text: var(--m-open-fg);
        --m-shadow: none; --m-r: 0px; --m-pad: 4px; --m-gap: 2px; --m-item-r: var(--im-radius-media); --m-lh: calc(var(--m-h) - 8px);
    }

    #navigation.look-ghost .menu > li.current-menu-item > a,
    #navigation.look-ghost .menu > li.current_page_item > a,
    #navigation.look-ghost .menu > li.current-menu-ancestor > a,
    #navigation.look-ghost .menu > li.current_page_ancestor > a,
    #navigation.look-ghost .menu > li.current-cat > a {
        color: var(--m-open-fg);
        background: color-mix(in srgb, var(--m-current) 18%, transparent);
    }

    #navigation.look-rail {
        --m-shadow: inset 0 -4px 0 var(--m-current);
    }

    #navigation.look-rail .menu > li.current-menu-item > a,
    #navigation.look-rail .menu > li.current_page_item > a,
    #navigation.look-rail .menu > li.current-menu-ancestor > a,
    #navigation.look-rail .menu > li.current_page_ancestor > a,
    #navigation.look-rail .menu > li.current-cat > a {
        color: var(--m-hover-fg);
        background: transparent;
        box-shadow: inset 0 -4px 0 color-mix(in srgb, var(--m-current) 55%, #fff);
    }

    #navigation.look-bevel {
        --m-boxbg: initial;
        --m-bgx: linear-gradient(180deg, color-mix(in srgb, var(--m-bg) 88%, #fff), var(--m-bg));
        --m-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 12px 22px -18px rgba(0, 0, 0, 0.6), inset 0 0 0 1px var(--m-line);
        --m-r: var(--im-radius-media);
    }

    #navigation.look-bevel .menu > li.current-menu-item > a,
    #navigation.look-bevel .menu > li.current_page_item > a,
    #navigation.look-bevel .menu > li.current-menu-ancestor > a,
    #navigation.look-bevel .menu > li.current_page_ancestor > a,
    #navigation.look-bevel .menu > li.current-cat > a {
        color: var(--m-hover-fg);
        background: color-mix(in srgb, var(--m-bg) 78%, #000);
        box-shadow: inset 0 3px 7px rgba(0, 0, 0, 0.5), inset 0 -1px 0 rgba(255, 255, 255, 0.12);
    }

    #navigation.look-stripe {
        --m-shadow: none;
    }

    #navigation.look-stripe .menu > li.current-menu-item > a,
    #navigation.look-stripe .menu > li.current_page_item > a,
    #navigation.look-stripe .menu > li.current-menu-ancestor > a,
    #navigation.look-stripe .menu > li.current_page_ancestor > a,
    #navigation.look-stripe .menu > li.current-cat > a {
        background: repeating-linear-gradient(135deg, var(--m-current) 0 7px, color-mix(in srgb, var(--m-current) 84%, #000) 7px 14px);
    }

    #navigation.look-rounded-bar {
        --m-boxbg: initial;
        --m-r: 999px; --m-px: 24px;
    }

    #navigation.look-rounded-bar .menu > li:first-child > a { border-radius: 999px 0 0 999px; }
    #navigation.look-rounded-bar .menu > li:last-child > a { border-radius: 0 999px 999px 0; }

    #navigation.look-compact {
        --m-pad: 3px; --m-px: 11px; --m-gap: 2px; --m-r: 6px; --m-item-r: 5px; --m-lh: calc(var(--m-h) - 14px);
    }

    #navigation.look-compact .menu > li > a { font-size: calc(var(--m-fs) - 1px); }

    /* hover animations: the look sets the colours, the animation only moves the hover layer or the item */
    #navigation.anim-slide-down .menu > li > a::before {
        transform-origin: 50% 0;
    }

    #navigation.anim-slide-left .menu > li > a::before {
        transform: scaleX(0);
        transform-origin: 100% 50%;
    }

    #navigation.anim-slide-left .menu > li:hover > a::before,
    #navigation.anim-slide-left .menu > li:focus-within > a::before {
        transform: scaleX(1);
    }

    #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(--im-radius-media);
    }

    #navigation.anim-grow .menu > li:hover > a::before,
    #navigation.anim-grow .menu > li:focus-within > a::before {
        transform: scale(1);
    }

    #navigation.anim-expand .menu > li > a::before {
        transform: scaleX(0.2);
        transform-origin: 50% 50%;
    }

    #navigation.anim-expand .menu > li:hover > a::before,
    #navigation.anim-expand .menu > li:focus-within > a::before {
        transform: scaleX(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,
    #navigation.anim-corners .menu > li:hover > a,
    #navigation.anim-corners .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,
    #navigation.anim-flip .menu > li > a,
    #navigation.anim-swing .menu > li > a,
    #navigation.anim-rubber .menu > li > a,
    #navigation.anim-shake .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,
    #navigation.anim-shake .menu > li > a::before { transform: none; }

    #navigation.anim-bounce .menu > li:hover > a { animation: im-menu-bounce 0.45s ease; }
    #navigation.anim-pulse .menu > li:hover > a { animation: im-menu-pulse 0.5s ease; }
    #navigation.anim-shake .menu > li:hover > a { animation: im-menu-shake 0.4s 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-blur-in .menu > li > a::before {
        transform: none;
        filter: blur(9px);
    }

    #navigation.anim-blur-in .menu > li:hover > a::before,
    #navigation.anim-blur-in .menu > li:focus-within > a::before {
        filter: blur(0);
    }

    #navigation.anim-flip .menu > li > a::before {
        transform: none;
    }

    #navigation.anim-flip .menu > li:hover > a,
    #navigation.anim-flip .menu > li:focus-within > a {
        transform: perspective(320px) rotateX(-24deg);
    }

    #navigation.anim-swing .menu > li > a::before,
    #navigation.anim-rubber .menu > li > a::before { transform: none; }

    #navigation.anim-swing .menu > li:hover > a { transform-origin: 50% 0; animation: im-menu-swing 0.6s ease; }
    #navigation.anim-rubber .menu > li:hover > a { animation: im-menu-rubber 0.6s ease; }

    #navigation.anim-ripple .menu > li > a::before {
        border-radius: 50%;
        transform: scale(0);
        transform-origin: 50% 50%;
    }

    #navigation.anim-ripple .menu > li:hover > a::before,
    #navigation.anim-ripple .menu > li:focus-within > a::before {
        transform: scale(3);
    }

    #navigation.anim-corners .menu > li > a::before {
        background:
            linear-gradient(var(--m-hover), var(--m-hover)) 0 0 / 12px 2px no-repeat,
            linear-gradient(var(--m-hover), var(--m-hover)) 0 0 / 2px 12px no-repeat,
            linear-gradient(var(--m-hover), var(--m-hover)) 100% 0 / 12px 2px no-repeat,
            linear-gradient(var(--m-hover), var(--m-hover)) 100% 0 / 2px 12px no-repeat,
            linear-gradient(var(--m-hover), var(--m-hover)) 0 100% / 12px 2px no-repeat,
            linear-gradient(var(--m-hover), var(--m-hover)) 0 100% / 2px 12px no-repeat,
            linear-gradient(var(--m-hover), var(--m-hover)) 100% 100% / 12px 2px no-repeat,
            linear-gradient(var(--m-hover), var(--m-hover)) 100% 100% / 2px 12px no-repeat;
        inset: 3px;
        transform: scale(1.18);
    }

    #navigation.anim-corners .menu > li:hover > a::before,
    #navigation.anim-corners .menu > li:focus-within > a::before {
        transform: scale(1);
    }

    #navigation.anim-drift .menu > li > a::before {
        transform: none;
        background: linear-gradient(90deg, var(--m-hover), color-mix(in srgb, var(--m-hover) 45%, var(--im-accent)), var(--m-hover));
        background-size: 300% 100%;
        background-position: 100% 0;
    }

    #navigation.anim-drift .menu > li:hover > a::before,
    #navigation.anim-drift .menu > li:focus-within > a::before {
        transform: none;
        background-position: 0 0;
    }

    #navigation.anim-fall .menu > li > a::before {
        opacity: 1;
        transform: translateY(-101%);
        transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    #navigation.anim-fall .menu > li:hover > a::before,
    #navigation.anim-fall .menu > li:focus-within > a::before {
        transform: translateY(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(--im-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(--im-card);
        border: 1px solid var(--im-line);
        border-radius: var(--im-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(--im-text);
        border-radius: var(--im-radius-media);
    }
    #navigation ul ul li:hover > a,
    #navigation ul ul li:focus-within > a {
        color: var(--im-ink);
        background: color-mix(in srgb, var(--im-menu-hover) 22%, var(--im-card));
        box-shadow: inset 3px 0 0 var(--im-menu-hover);
    }
    #navigation ul ul li.current-menu-item > a { color: var(--im-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(--im-pad) 26px;
    background: var(--im-card);
    border: 0;
    border-right: 5px solid var(--im-edge);
    border-bottom: 5px solid var(--im-edge);
    border-radius: var(--im-radius-card);
    box-shadow: var(--im-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(--im-accent);
    border-bottom-color: var(--im-accent);
}
.post.excerpt.sticky { border-right-color: var(--im-accent); border-bottom-color: var(--im-accent); }

/* Post card looks (Customize > Theme Options > Homepage > Post card look). The shared day card follows the same look. */
.card-style-outlined .post.excerpt, .card-style-outlined .day-block { border: 2px solid var(--im-line-strong); box-shadow: none; }
.card-style-outlined .post.excerpt:hover { border-color: var(--im-accent); }
.card-style-borderless .post.excerpt, .card-style-borderless .day-block { border: 0; }
.card-style-flat .post.excerpt, .card-style-flat .day-block { border: 0; box-shadow: none; }
.card-style-soft .post.excerpt, .card-style-soft .day-block { background: var(--im-soft); border: 0; box-shadow: none; }
.card-style-minimal .post.excerpt, .card-style-minimal .day-block { background: transparent; border: 0; border-bottom: 1px solid var(--im-line-strong); border-radius: 0; box-shadow: none; }
.card-style-minimal .post.excerpt:hover { transform: none; border-bottom-color: var(--im-accent); }
.card-style-left .post.excerpt, .card-style-left .day-block { border: 0; border-left: 5px solid var(--im-edge); }
.card-style-left .post.excerpt:hover { border-left-color: var(--im-accent); }
.card-style-top .post.excerpt, .card-style-top .day-block { border: 0; border-top: 4px solid var(--im-edge); }
.card-style-top .post.excerpt:hover { border-top-color: var(--im-accent); }
.card-style-raised .post.excerpt, .card-style-raised .day-block { border: 0; box-shadow: 0 22px 40px -26px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.06); }
.card-style-raised .post.excerpt:hover { transform: translateY(-4px); box-shadow: 0 30px 48px -26px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.08); }
.card-style-double .post.excerpt, .card-style-double .day-block { border: 4px double var(--im-line-strong); box-shadow: none; }
.card-style-double .post.excerpt:hover { border-color: var(--im-accent); }
.card-style-gradient .post.excerpt, .card-style-gradient .day-block { border: 3px solid transparent; background: linear-gradient(var(--im-card), var(--im-card)) padding-box, linear-gradient(135deg, var(--im-edge), var(--im-accent)) border-box; box-shadow: none; }
.card-style-glass .post.excerpt, .card-style-glass .day-block { background: color-mix(in srgb, var(--im-card) 62%, transparent); border: 1px solid color-mix(in srgb, var(--im-line-strong) 70%, transparent); box-shadow: var(--im-shadow); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.card-style-brutal .post.excerpt, .card-style-brutal .day-block { border: 2px solid var(--im-ink); border-radius: 0; box-shadow: 6px 6px 0 var(--im-ink); }
.card-style-brutal .post.excerpt:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--im-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 {
    --im-pad: 20px;
    display: flex;
    flex-direction: column;
    padding: 20px var(--im-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 { --im-pad: 20px; display: flow-root; padding: 24px var(--im-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 {
    --im-pad: 36px;
    position: relative;
    display: flow-root;
    padding: 26px var(--im-pad) 34px;
    background: var(--im-card);
    border: 1px solid var(--im-line);
    border-radius: var(--im-radius-card);
    box-shadow: var(--im-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(--im-pad));
    margin: 0 0 16px calc(-1 * var(--im-pad) - 8px);
    padding: 0 24px 0 16px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 30px;
    color: var(--im-on-accent);
    background: var(--im-accent);
}
.date-tag:after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    border-style: solid;
    border-width: 15px 10px 15px 0;
    border-color: transparent var(--im-card) transparent transparent;
}
.date-tag__fold {
    position: absolute;
    top: 100%;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--im-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-style-calendar .dt-full, .date-style-split .dt-full, .date-style-orbit .dt-full, .date-style-stack .dt-full, .date-style-pill-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, .date-style-orbit .dt-parts, .date-style-stack .dt-parts, .date-style-pill-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(--im-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(--im-on-accent); background: var(--im-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(--im-on-accent); background: var(--im-accent); border-radius: var(--im-radius-btn); }
.date-style-soft .date-tag { padding: 0 15px; line-height: 28px; color: var(--im-link); background: color-mix(in srgb, var(--im-accent) 14%, var(--im-card)); border-radius: 999px; }
.date-style-outline .date-tag { padding: 0 15px; line-height: 26px; color: var(--im-link); border: 1.5px solid var(--im-accent); border-radius: 999px; }
.date-style-gradient .date-tag { padding: 0 16px; line-height: 30px; color: var(--im-on-accent); background: linear-gradient(110deg, var(--im-accent-deep), var(--im-accent) 60%, var(--im-accent-bright)); border-radius: 999px; box-shadow: 0 8px 16px -8px var(--im-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(--im-muted); }
.date-style-underline .date-tag { padding-bottom: 6px; line-height: 1.3; border-bottom: 3px solid var(--im-accent); }
.date-style-calendar .date-tag { width: 64px; overflow: hidden; text-align: center; line-height: 1; background: var(--im-card); border: 1px solid var(--im-line-strong); border-radius: var(--im-radius-media); box-shadow: var(--im-shadow); }
.date-style-calendar .dt-mon { display: block; padding: 6px 0; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--im-on-accent); background: var(--im-accent); }
.date-style-calendar .dt-day { display: block; padding: 8px 0 0; font-size: 26px; font-weight: 800; color: var(--im-ink); }
.date-style-calendar .dt-yr { display: block; padding: 3px 0 7px; font-size: 11px; font-weight: 600; color: var(--im-muted); }
.date-style-split .date-tag { padding-left: 12px; border-left: 4px solid var(--im-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(--im-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(--im-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(--im-accent); border-radius: 50%; box-shadow: 0 0 0 4px color-mix(in srgb, var(--im-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(--im-link); border: 2px dashed var(--im-accent); border-radius: 4px; transform: rotate(-2deg); }
.date-style-corner .post.excerpt, .date-style-corner article.post, .date-style-corner .day-block { position: relative; }
.date-style-corner .post .date-tag, .date-style-corner .day-block .date-tag { position: absolute; top: 14px; right: 14px; z-index: 1; margin: 0; padding: 0 12px; font-size: 12px; line-height: 26px; color: var(--im-on-accent); background: var(--im-accent); border-radius: var(--im-radius-btn); }

/* Posts grouped by day (Theme Options > Homepage > Show the date once ...): when two or more posts share a day they
   share ONE card, with the date (and the post count) at the top and a compact row for each post. */
.day-block { position: relative; display: flow-root; grid-column: 1 / -1; padding: 24px var(--im-pad) 10px; background: var(--im-card); border: 0; border-right: 5px solid var(--im-edge); border-bottom: 5px solid var(--im-edge); border-radius: var(--im-radius-card); box-shadow: var(--im-shadow); }
.day-block > .date-group { display: flex; align-items: center; gap: 14px; margin: 0 0 4px; }
.day-block > .date-group .date-tag { margin-bottom: 0; }
.day-block > .date-group:after { content: ""; order: 1; flex: 1 1 auto; height: 1px; background: linear-gradient(90deg, var(--im-line-strong), transparent); }
.day-count { order: 2; flex: 0 0 auto; padding: 3px 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: var(--im-link); background: color-mix(in srgb, var(--im-accent) 12%, var(--im-card)); border-radius: 999px; }
.day-items { display: flex; flex-direction: column; }
.day-block .post.excerpt.day-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; background: none; border: 0; border-radius: 0; box-shadow: none; transform: none; }
.day-block .post.excerpt.day-item + .post.excerpt.day-item { border-top: 1px dashed var(--im-line-strong); }
.day-block .day-item > header { flex: 1 1 auto; min-width: 0; }
.day-block .day-item .title { margin: 0 0 4px; font-size: 18px; line-height: 1.25; }
.day-block .day-item .post-info { font-size: 12.5px; }
.day-block .day-item .download-wrap { flex: 0 0 auto; margin: 0; padding: 0; }
.day-block .day-item .download-btn { padding: 8px 18px 8px 10px; font-size: 14px; }
.day-block .post.excerpt.day-item .card-row { display: flex; flex: 1 1 auto; align-items: center; gap: 14px; }
.day-block .post.excerpt.day-item .card-thumb { flex: 0 0 64px; width: 64px; }
.day-block .post.excerpt.day-item .card-thumb img { aspect-ratio: 1 / 1; }
.day-block .post.excerpt.day-item .card-body { flex: 1 1 auto; flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; }
.day-block .post.excerpt.day-item .card-body .download-wrap { padding-top: 0; }
.date-style-corner .day-count { margin-right: 130px; }
.day-outline-solid .day-block { border: 2px solid var(--im-line-strong); }
.day-outline-dashed .day-block { border: 2px dashed var(--im-line-strong); }
.day-outline-dotted .day-block { border: 3px dotted var(--im-line-strong); }
.day-outline-double .day-block { border: 4px double var(--im-line-strong); }
.day-outline-accent .day-block { border: 2px solid var(--im-accent); }
.day-outline-soft .day-block { background: color-mix(in srgb, var(--im-accent) 7%, var(--im-card)); border: 0; }
.day-outline-left .day-block { border: 0; border-left: 5px solid var(--im-accent); }
@media screen and (max-width: 600px) {
    .day-block .post.excerpt.day-item { flex-wrap: wrap; }
    .day-block .day-item .download-wrap { width: 100%; }
    .day-block .day-item .download-btn { width: 100%; justify-content: center; }
}

/* 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(--im-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;
    max-width: none;
    margin: -24px calc(-1 * var(--im-pad)) 18px;
    padding: 9px var(--im-pad);
    font-size: 13px;
    letter-spacing: 0.05em;
    color: var(--im-on-accent);
    background: linear-gradient(100deg, var(--im-accent), var(--im-accent-bright));
    border-radius: var(--im-radius-card) var(--im-radius-card) 0 0;
}
.date-style-banner .single_post .date-tag { margin-top: -26px; }
.date-style-banner .day-block > .date-group { margin: -24px calc(-1 * var(--im-pad)) 6px; padding: 9px var(--im-pad); background: linear-gradient(100deg, var(--im-accent), var(--im-accent-bright)); border-radius: var(--im-radius-card) var(--im-radius-card) 0 0; }
.date-style-banner .day-block .date-tag { margin: 0; padding: 0; font-size: 13px; letter-spacing: 0.05em; color: var(--im-on-accent); background: none; border-radius: 0; }
.date-style-banner .day-block .day-count { color: var(--im-on-accent); background: rgba(255, 255, 255, 0.2); }
.date-style-banner .day-block > .date-group:after { background: rgba(255, 255, 255, 0.35); }
.date-style-circle .date-tag { width: 64px; height: 64px; color: var(--im-on-accent); background: linear-gradient(135deg, var(--im-accent), var(--im-accent-deep)); border-radius: 50%; box-shadow: 0 10px 18px -10px var(--im-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(--im-accent); border-radius: var(--im-radius-media); }
.date-style-ticket .dt-day { order: 0; padding: 6px 13px; font-size: 20px; font-weight: 800; line-height: 1.2; color: var(--im-on-accent); background: var(--im-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(--im-muted); }
.date-style-bubble .date-tag { position: relative; display: inline-block; margin-bottom: 22px; padding: 0 15px; line-height: 30px; color: var(--im-link); background: color-mix(in srgb, var(--im-accent) 14%, var(--im-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(--im-accent) 14%, var(--im-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(--im-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(--im-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(--im-link); border: 1.5px solid var(--im-accent); border-radius: 999px; box-shadow: 0 0 14px -2px var(--im-accent), inset 0 0 10px -6px var(--im-accent); text-shadow: 0 0 8px color-mix(in srgb, var(--im-accent) 55%, transparent); }
.date-style-sticker .date-tag { display: inline-block; padding: 0 15px; font-weight: 800; line-height: 28px; color: var(--im-on-accent); background: linear-gradient(120deg, var(--im-accent), var(--im-accent-bright)); border: 3px solid var(--im-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(--im-on-accent); background: var(--im-accent); border: 2px solid var(--im-ink); box-shadow: 4px 4px 0 var(--im-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(--im-ink); background: var(--im-soft); border: 1px solid var(--im-line-strong); border-radius: 4px; }
.date-style-icon .date-tag, .date-style-dashes .date-tag, .date-style-italic .date-tag, .date-style-vertical .date-tag, .date-style-slant .date-tag,
.date-style-tape .date-tag, .date-style-gradient-text .date-tag, .date-style-double .date-tag { max-width: 100%; margin: 0 0 16px; padding: 0; color: var(--im-ink); background: none; border-radius: 0; }
.date-style-icon .date-tag:after, .date-style-dashes .date-tag:after, .date-style-italic .date-tag:after, .date-style-vertical .date-tag:after, .date-style-slant .date-tag:after,
.date-style-tape .date-tag:after, .date-style-gradient-text .date-tag:after, .date-style-double .date-tag:after,
.date-style-icon .date-tag__fold, .date-style-dashes .date-tag__fold, .date-style-italic .date-tag__fold, .date-style-vertical .date-tag__fold, .date-style-slant .date-tag__fold,
.date-style-tape .date-tag__fold, .date-style-gradient-text .date-tag__fold, .date-style-double .date-tag__fold { display: none; }
.date-style-icon .date-tag { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; color: var(--im-muted); }
.date-style-icon .date-tag:before { content: ""; width: 14px; height: 13px; border: 2px solid var(--im-accent); border-top-width: 5px; border-radius: 3px; }
.date-style-dashes .date-tag { display: flex; width: 100%; align-items: center; gap: 12px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--im-muted); }
.date-style-dashes .date-tag:before, .date-style-dashes .date-tag:after { content: ""; display: block; flex: 1 1 auto; height: 1px; background: var(--im-line-strong); position: static; border: 0; width: auto; }
.date-style-dashes .date-tag:before { max-width: 40px; }
.date-style-italic .date-tag { font-family: Georgia, "Times New Roman", serif; font-size: 16px; font-style: italic; color: var(--im-link); }
.date-style-vertical .post.excerpt, .date-style-vertical .single_post { padding-left: calc(var(--im-pad) + 30px); }
.date-style-vertical .post .date-tag { position: absolute; top: 0; bottom: 0; left: 0; z-index: 1; display: flex; align-items: center; justify-content: center; width: 30px; margin: 0; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--im-on-accent); background: var(--im-accent); border-radius: var(--im-radius-card) 0 0 var(--im-radius-card); }
.date-style-vertical .post .date-tag time { display: block; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.date-style-vertical .day-block { padding-left: calc(var(--im-pad) + 30px); }
.date-style-vertical .day-block .date-tag { position: static; display: inline-block; width: auto; padding: 0 14px; line-height: 26px; border-radius: var(--im-radius-btn); }
.date-style-vertical .day-block .date-tag time { writing-mode: horizontal-tb; transform: none; }
.date-style-slant .date-tag { display: inline-block; padding: 0 22px; line-height: 30px; font-weight: 700; color: var(--im-on-accent); background: var(--im-accent); clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.date-style-tape .post.excerpt, .date-style-tape .single_post, .date-style-tape .day-block { overflow: visible; }
.date-style-tape .date-tag { display: inline-block; margin: -38px 0 18px 14px; padding: 0 22px; line-height: 28px; font-size: 12.5px; font-weight: 700; color: var(--im-ink); background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--im-accent) 30%, #fff) 0 8px, color-mix(in srgb, var(--im-accent) 18%, #fff) 8px 16px); box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18); transform: rotate(-2deg); }
.date-style-gradient-text .date-tag { display: inline-block; font-size: 18px; font-weight: 800; background: linear-gradient(100deg, var(--im-accent-deep), var(--im-accent-bright)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.date-style-double .date-tag { display: inline-block; padding: 3px 14px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; color: var(--im-link); border: 4px double var(--im-accent); 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(--im-ink) }
.title a:hover { color: var(--im-post-hover) }
.post-info {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    width: 100%;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--im-muted);
}
.post-info a { color: var(--im-muted) }
.post-info a:hover { color: var(--im-post-hover) }
.post-info i { margin-right: 6px; font-size: 15px; color: var(--im-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(--im-font-head);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1;
    color: var(--im-on-accent);
    background: linear-gradient(120deg, var(--im-accent-deep), var(--im-accent) 55%, var(--im-accent-bright));
    background-size: 200% 100%;
    background-position: 0 0;
    border-radius: var(--im-radius-btn);
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 10px 20px -10px color-mix(in srgb, var(--im-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: im-shine 0.9s ease-out 1; }
.download-btn:hover, .download-btn:focus-visible {
    color: var(--im-on-accent);
    background-position: 100% 0;
    transform: translateY(-3px);
    box-shadow: 0 16px 26px -10px color-mix(in srgb, var(--im-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: im-arrow 0.8s ease-in-out infinite; }
.download-btn:active { transform: translateY(0) scale(0.97); box-shadow: 0 6px 12px -8px var(--im-accent); }
@keyframes im-shine {
    from { transform: translateX(-160%) skewX(-20deg); }
    to { transform: translateX(420%) skewX(-20deg); }
}
@keyframes im-arrow {
    0%, 100% { transform: translateY(-2px); }
    50% { transform: translateY(3px); }
}

.breadcrumb { margin: 0 0 12px; font-size: 13.5px; line-height: 24px; color: var(--im-muted); }
.breadcrumb > span { display: inline-block; }
.breadcrumb__sep { padding: 0 6px; font-size: 11px; }
.breadcrumb a { color: var(--im-muted) }
.breadcrumb a:hover { color: var(--im-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(--im-soft);
    border-radius: var(--im-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(--im-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(--im-post-link); }
.post-single-content a:not(.wp-block-button__link):hover, .comment-text a:hover {
    color: var(--im-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(--im-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(--im-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(--im-soft);
    border-left: 4px solid var(--im-accent);
    border-radius: 0 var(--im-radius-media) var(--im-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(--im-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(--im-sidebar-w); width: var(--im-sidebar-w); max-width: 100%; font-size: 15px; line-height: 1.55; }
.sidebar a { color: var(--im-widget-link) }
.sidebar a:hover { color: var(--im-widget-hover) }
.sidebar p { line-height: 1.6 }
.widget { margin-bottom: 22px; overflow: hidden; }
.sidebar .widget {
    padding: 22px 24px 24px;
    background: var(--im-card);
    border: 1px solid var(--im-line);
    border-radius: var(--im-radius-card);
    box-shadow: var(--im-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(--im-wtitle-text);
    background: var(--im-wtitle-bg);
}
.sidebar .widget > h3 a, .sidebar .widget > .widget-title a { color: var(--im-wtitle-link); }
.sidebar .widget > h3 a:hover, .sidebar .widget > .widget-title a:hover { color: var(--im-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(--im-wtitle-bg) 35%, color-mix(in srgb, var(--im-wtitle-bg) 50%, var(--im-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-spotlight .sidebar .widget > h3, .widget-style-spotlight .sidebar .widget > .widget-title,
.widget-style-corner-tag .sidebar .widget > h3, .widget-style-corner-tag .sidebar .widget > .widget-title,
.widget-style-framed .sidebar .widget > h3, .widget-style-framed .sidebar .widget > .widget-title,
.widget-style-offset .sidebar .widget > h3, .widget-style-offset .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 {
    --im-wtitle-link: var(--im-ink);
    --im-wtitle-hover: var(--im-link);
    margin: 0 0 16px;
    padding: 0;
    color: var(--im-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(--im-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(--im-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(--im-wtitle-bg); }
.widget-style-outlined .sidebar .widget { box-shadow: none; border: 2px solid var(--im-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(--im-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(--im-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(--im-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(--im-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(--im-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 {
    --im-widget-link: var(--im-on-deep);
    --im-widget-hover: var(--im-widget-hover-foot);
    color: var(--im-foot-text);
    background: var(--im-deep);
    border-color: var(--im-foot-line);
}
.widget-style-dark .sidebar .widget > h3, .widget-style-dark .sidebar .widget > .widget-title { background: color-mix(in srgb, var(--im-deep) 70%, #000); color: var(--im-on-deep); }
.widget-style-dark .sidebar .widget li { border-bottom-color: var(--im-foot-line); }
.widget-style-dark .sidebar .widget p { color: var(--im-foot-muted); }
.widget-style-top-accent .sidebar .widget { border-top: 4px solid var(--im-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(--im-wtitle-bg); border-bottom: 4px double var(--im-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(--im-wtitle-bg); opacity: 0.55; }
.widget-style-gradient-border .sidebar .widget { border: 3px solid transparent; background: linear-gradient(var(--im-card), var(--im-card)) padding-box, linear-gradient(135deg, var(--im-wtitle-bg), var(--im-accent)) border-box; }
.widget-style-stripe .sidebar .widget > h3, .widget-style-stripe .sidebar .widget > .widget-title { background: repeating-linear-gradient(135deg, var(--im-wtitle-bg) 0 10px, color-mix(in srgb, var(--im-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(--im-ink); border-radius: 0; box-shadow: 6px 6px 0 var(--im-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(--im-ink); }
.widget-style-neon .sidebar .widget { border: 1.5px solid var(--im-accent); box-shadow: 0 0 22px -6px var(--im-accent), inset 0 0 18px -12px var(--im-accent); }
.widget-style-neon .sidebar .widget > h3, .widget-style-neon .sidebar .widget > .widget-title { padding-bottom: 10px; color: var(--im-link); border-bottom: 1px solid var(--im-accent); text-shadow: 0 0 10px color-mix(in srgb, var(--im-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(--im-bg) var(--im-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(--im-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(--im-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(--im-wtitle-bg); }
.widget-style-inset .sidebar .widget { background: var(--im-soft); border: 0; box-shadow: inset 0 3px 9px rgba(0, 0, 0, 0.08), inset 0 0 0 1px var(--im-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(--im-wtitle-bg); box-shadow: 5px 5px 0 color-mix(in srgb, var(--im-accent) 55%, transparent); }
.widget-style-fade .sidebar .widget { background: linear-gradient(180deg, color-mix(in srgb, var(--im-accent) 10%, var(--im-card)), var(--im-card) 70%); }
.widget-style-fade .sidebar .widget > h3, .widget-style-fade .sidebar .widget > .widget-title { color: var(--im-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-style-zigzag .sidebar .widget { overflow: visible; }
.widget-style-zigzag .sidebar .widget > h3, .widget-style-zigzag .sidebar .widget > .widget-title { position: relative; margin-bottom: 24px; }
.widget-style-zigzag .sidebar .widget > h3:after, .widget-style-zigzag .sidebar .widget > .widget-title:after { content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 9px; background: conic-gradient(from -45deg at bottom, transparent 90deg, var(--im-wtitle-bg) 0) 0 / 18px 100%; }
.widget-style-dual .sidebar .widget > h3, .widget-style-dual .sidebar .widget > .widget-title { background: linear-gradient(90deg, var(--im-wtitle-bg) 0 38%, color-mix(in srgb, var(--im-wtitle-bg) 78%, var(--im-accent)) 38%); }
.widget-style-spotlight .sidebar .widget { background: radial-gradient(120% 90px at 0 0, color-mix(in srgb, var(--im-accent) 16%, var(--im-card)), var(--im-card) 72%); }
.widget-style-spotlight .sidebar .widget > h3, .widget-style-spotlight .sidebar .widget > .widget-title { font-size: 17px; }
.widget-style-bubble .sidebar .widget { overflow: visible; }
.widget-style-bubble .sidebar .widget > h3, .widget-style-bubble .sidebar .widget > .widget-title { position: relative; display: inline-block; max-width: 100%; margin: -6px 0 24px; padding: 7px 18px; font-size: 14px; border-radius: 12px; }
.widget-style-bubble .sidebar .widget > h3:after, .widget-style-bubble .sidebar .widget > .widget-title:after { content: ""; position: absolute; top: 100%; left: 20px; border: 8px solid transparent; border-top-color: var(--im-wtitle-bg); }
.widget-style-glass .sidebar .widget { background: color-mix(in srgb, var(--im-card) 60%, transparent); border: 1px solid color-mix(in srgb, var(--im-line-strong) 70%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.widget-style-glass .sidebar .widget > h3, .widget-style-glass .sidebar .widget > .widget-title { background: color-mix(in srgb, var(--im-wtitle-bg) 80%, transparent); }
.widget-style-corner-tag .sidebar .widget { position: relative; }
.widget-style-corner-tag .sidebar .widget:before { content: ""; position: absolute; top: 0; left: 0; border-style: solid; border-width: 38px 38px 0 0; border-color: var(--im-wtitle-bg) transparent transparent transparent; }
.widget-style-corner-tag .sidebar .widget > h3, .widget-style-corner-tag .sidebar .widget > .widget-title { padding-left: 16px; }
.widget-style-framed .sidebar .widget > h3, .widget-style-framed .sidebar .widget > .widget-title { padding: 8px 14px; font-size: 14px; letter-spacing: 0.04em; text-align: center; border: 2px solid var(--im-wtitle-bg); border-radius: var(--im-radius-media); }
.widget-style-offset .sidebar .widget { overflow: visible; box-shadow: 7px 7px 0 color-mix(in srgb, var(--im-wtitle-bg) 55%, transparent); }
.widget-style-offset .sidebar .widget > h3, .widget-style-offset .sidebar .widget > .widget-title { padding-bottom: 8px; border-bottom: 2px solid var(--im-line-strong); }
.widget ul { list-style: none }
.widget li {
    margin: 0;
    padding: 10px 0;
    list-style-type: none;
    border-bottom: 1px dashed var(--im-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(--im-line-strong); text-underline-offset: 3px; }
.sidebar .widget .textwidget a:hover { color: var(--im-widget-hover) }
.widget .textwidget a[style], .widget .textwidget a[class] { text-decoration: none }
.widget .textwidget img { border-radius: var(--im-radius-media) }
.sidebar .wp-post-image, footer .wp-post-image { margin: 4px 12px 0 0; border-radius: var(--im-radius-media); float: left; }

/* Search form */
.search-form { width: 100%; }
.search-form fieldset {
    display: flex;
    width: 100%;
    min-width: 0;
    padding: 4px;
    background: var(--im-field);
    border: 1px solid var(--im-line-strong);
    border-radius: var(--im-radius-btn);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.search-form fieldset:focus-within { border-color: var(--im-accent); box-shadow: 0 0 0 3px var(--im-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(--im-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(--im-on-accent);
    cursor: pointer;
    background: var(--im-accent);
    border: 0;
    border-radius: var(--im-radius-btn);
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.search-form input[type="submit"]:hover { background: var(--im-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(--im-link);
    background: var(--im-soft);
    border: 1px solid var(--im-line);
    border-radius: var(--im-radius-btn);
}
.tagcloud a:hover, .sidebar .tagcloud a:hover { color: var(--im-on-accent); background: var(--im-accent); border-color: var(--im-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(--im-ink); }
#wp-calendar th, #wp-calendar td { padding: 7px 0; text-align: center; border: 0; }
#wp-calendar thead th { background: var(--im-soft); border-radius: 0 }
#wp-calendar tbody td a { display: inline-block; min-width: 28px; font-weight: 700; line-height: 28px; color: var(--im-link); background: var(--im-soft); border-radius: var(--im-radius-media); }
#wp-calendar tbody td#today { color: var(--im-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(--im-accent);
    border-radius: var(--im-radius-btn);
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.social-profile-icons ul li a:hover { background: var(--im-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(--im-line-strong);
}
.postauthor-top { grid-column: 1 / -1; margin-bottom: 14px; }
.related-posts h3 { margin: 0; font-size: 20px; color: var(--im-ink); }
.related-item { margin-bottom: 16px; }
.related-link { display: block; width: 100%; color: var(--im-ink) }
.related-link:hover { color: var(--im-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(--im-radius-media); }
.thumb-placeholder {
    display: flex !important;
    align-items: center;
    justify-content: center;
    aspect-ratio: 8 / 5;
    color: var(--im-accent);
    background: var(--im-soft);
    border: 1px solid var(--im-line);
    border-radius: var(--im-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(--im-soft);
    border: 1px solid var(--im-line);
    border-radius: var(--im-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(--im-muted); margin-right: 2px; }
.tags a {
    padding: 4px 13px;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--im-link);
    background: var(--im-soft);
    border: 1px solid var(--im-line);
    border-radius: var(--im-radius-btn);
}
.tags a:hover { color: var(--im-on-accent); background: var(--im-accent); border-color: var(--im-accent); }

/*--------------------------------------------------------------
# 11. Comments and forms
--------------------------------------------------------------*/
input, textarea, select { padding: 10px 14px; font-size: 15px; color: var(--im-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(--im-field);
    border: 1px solid var(--im-line-strong);
    border-radius: var(--im-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(--im-accent);
    box-shadow: 0 0 0 3px var(--im-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(--im-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(--im-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(--im-ink);
}
.total-comments:before {
    content: "";
    flex: 0 0 auto;
    width: 8px;
    height: 24px;
    background: var(--im-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(--im-card);
    border: 1px solid var(--im-line);
    border-radius: var(--im-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(--im-line-strong) }
.comment-card:target { border-color: var(--im-accent); box-shadow: 0 0 0 3px var(--im-ring); }
.comment-avatar { flex: 0 0 auto; }
.comment-avatar .avatar { display: block; width: 56px; height: 56px; margin: 0; border: 3px solid var(--im-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(--im-ink); font-style: normal; }
.comment-badge {
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--im-on-accent);
    background: var(--im-accent);
    border-radius: var(--im-radius-btn);
}
.comment-time, .comment-edit a { font-size: 13px; color: var(--im-muted); }
.comment-time:hover, .comment-edit a:hover { color: var(--im-post-hover); }
.comment-edit:before { content: "\00b7"; margin-right: 8px; color: var(--im-line-strong); }
.comment-text { overflow-wrap: anywhere; line-height: 1.7; color: var(--im-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(--im-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(--im-link);
    background: var(--im-soft);
    border-radius: var(--im-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(--im-on-accent); background: var(--im-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(--im-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(--im-line-strong);
}
/* Round connection point */
#comments .commentlist ol.children > li::after {
    content: "";
    position: absolute;
    left: -29px;
    top: 26px;
    width: 8px;
    height: 8px;
    background: var(--im-muted);
    border: 2px solid var(--im-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(--im-accent) 11%, var(--im-card)), var(--im-card) 75%);
    border-color: color-mix(in srgb, var(--im-accent) 35%, var(--im-line));
    box-shadow: inset 5px 0 0 var(--im-accent), 0 10px 24px -18px color-mix(in srgb, var(--im-accent) 60%, transparent);
}
.commentlist li.bypostauthor > .comment-card .avatar { border-color: var(--im-accent); }
.commentlist li.bypostauthor > .comment-card .comment-head .fn,
.commentlist li.bypostauthor > .comment-card .comment-head .fn a { color: var(--im-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(--im-link); background: var(--im-soft); border-radius: var(--im-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(--im-bg); border: 1px solid var(--im-line); border-radius: var(--im-radius-card); }
.commentlist #respond { margin: 12px 0 0; background: var(--im-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(--im-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(--im-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(--im-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(--im-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(--im-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(--im-accent-deep); transform: translateY(-1px); }
.required, .comment-notes, .form-allowed-tags { display: none; }
.comment-form .logged-in-as { font-size: 14px; color: var(--im-muted); }
.nocomments { color: var(--im-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(--im-ink);
    background: var(--im-card);
    border: 1px solid var(--im-line-strong);
    border-radius: var(--im-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(--im-on-accent); background: var(--im-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(--im-on-accent); background: var(--im-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(--im-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(--im-foot-text);
    background: var(--im-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(--im-foot-text); }
#site-footer p { color: var(--im-foot-muted) }
#site-footer .widget { margin-bottom: 22px }
#site-footer .widget > h3 { margin-bottom: 14px; padding-bottom: 10px; font-size: 16px; color: var(--im-on-deep); border-bottom: 1px solid var(--im-foot-line); }
#site-footer .widget a { color: var(--im-foot-text) }
#site-footer .widget a:hover { color: var(--im-widget-hover-foot) }
#site-footer .widget li { border-bottom-color: var(--im-foot-line) }
#site-footer .tagcloud a { color: var(--im-foot-text); background: var(--im-foot-soft); border-color: var(--im-foot-line); }
#site-footer .tagcloud a:hover { color: var(--im-deep); background: var(--im-on-deep); border-color: var(--im-on-deep); }
#site-footer .search-form fieldset { background: var(--im-foot-soft); border-color: var(--im-foot-line); }
#site-footer .search-form input[type="search"] { color: var(--im-on-deep) }
#site-footer ::placeholder { color: var(--im-foot-muted) }
#site-footer .widget select { color: var(--im-ink) }
.footer-credit { padding: 18px 0 24px; font-size: 14px; line-height: 1.6; color: var(--im-foot-muted); }
.footer-widgets + .footer-credit { border-top: 1px solid var(--im-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(--im-foot-text); text-decoration: underline; text-underline-offset: 2px; }
.footer-credit a:hover { color: var(--im-widget-hover-foot); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding: 14px 0 18px; border-top: 1px solid var(--im-foot-line); }
.footer-row__bar { flex: 1 1 auto; min-width: 0; }
.footer-row .bottombar--footer { padding: 0; border-top: 0; }
.footer-row .bottombar-inner { width: auto; max-width: none; margin: 0; padding: 0; justify-content: flex-start; }
.footer-row .footer-credit { flex: 0 1 auto; padding: 0; text-align: right; border-top: 0; }
@media screen and (max-width: 700px) {
    .footer-row { flex-direction: column; align-items: stretch; }
    .footer-row .footer-credit { text-align: center; }
}

/*--------------------------------------------------------------
# 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(--im-soft); border: 1px solid var(--im-line); border-radius: var(--im-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(--im-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(--im-on-accent);
    background: var(--im-accent);
    border-radius: var(--im-radius-btn);
}
.wp-block-button__link:hover { color: var(--im-on-accent); background: var(--im-accent-deep); }
.wp-block-separator { height: 1px; background: var(--im-line-strong); border: 0; }
.wp-block-quote, .wp-block-pullquote { border-color: var(--im-accent) }
.wp-block-image img { border-radius: var(--im-radius-media) }
.wp-block-table table { border-radius: var(--im-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(--im-card);
    border-radius: var(--im-radius-media);
    box-shadow: 0 0 0 3px var(--im-accent);
    clip: auto !important;
    clip-path: none;
    color: var(--im-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(--im-accent);
    outline-offset: 2px;
}
#site-footer a:focus-visible, #site-footer input:focus-visible { outline-color: var(--im-on-deep) }
#navigation a:focus-visible, a#pull:focus-visible { outline-color: var(--im-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(--im-muted); }
.area-style-boxed .widget-area { padding: 18px 22px; background: var(--im-card); border: 1px solid var(--im-line); border-top: 4px solid var(--im-accent); border-radius: var(--im-radius-card); box-shadow: var(--im-shadow); }
.area-style-outlined .widget-area { padding: 16px 20px; border: 2px dashed var(--im-line-strong); border-radius: var(--im-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(--im-muted); }

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

/* Social link button styles (Customize > Theme Options > Top bar > Social link button style) */
.topbar { --sb: 32px; }
.topbar--icons-sm { --sb: 28px; }
.topbar--icons-lg { --sb: 38px; }
.topbar--social-circle .topbar-social, .topbar--social-square .topbar-social, .topbar--social-outline .topbar-social,
.topbar--social-solid .topbar-social, .topbar--social-brand .topbar-social, .topbar--social-brand-square .topbar-social { gap: 6px; padding-right: 6px; }
.topbar--social-circle .topbar-social li.is-social > a, .topbar--social-square .topbar-social li.is-social > a, .topbar--social-outline .topbar-social li.is-social > a,
.topbar--social-solid .topbar-social li.is-social > a, .topbar--social-brand .topbar-social li.is-social > a, .topbar--social-brand-square .topbar-social li.is-social > a,
.topbar--social-circle .topbar-menu .menu > li.is-social > a, .topbar--social-square .topbar-menu .menu > li.is-social > a, .topbar--social-outline .topbar-menu .menu > li.is-social > a,
.topbar--social-solid .topbar-menu .menu > li.is-social > a, .topbar--social-brand .topbar-menu .menu > li.is-social > a, .topbar--social-brand-square .topbar-menu .menu > li.is-social > a {
    justify-content: center;
    width: var(--sb);
    min-height: 0;
    height: var(--sb);
    padding: 0;
    line-height: 1;
    border-radius: 50%;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.topbar--social-circle .topbar-social li.is-social > a, .topbar--social-circle .topbar-menu .menu > li.is-social > a,
.topbar--social-square .topbar-social li.is-social > a, .topbar--social-square .topbar-menu .menu > li.is-social > a { background: color-mix(in srgb, currentColor 16%, transparent); }
.topbar--social-square .topbar-social li.is-social > a, .topbar--social-square .topbar-menu .menu > li.is-social > a,
.topbar--social-brand-square .topbar-social li.is-social > a, .topbar--social-brand-square .topbar-menu .menu > li.is-social > a { border-radius: var(--im-radius-btn); }
.topbar--social-outline .topbar-social li.is-social > a, .topbar--social-outline .topbar-menu .menu > li.is-social > a { box-shadow: inset 0 0 0 1.5px currentColor; }
.topbar--social-solid .topbar-social li.is-social > a, .topbar--social-solid .topbar-menu .menu > li.is-social > a { color: var(--im-on-accent); background: var(--im-accent); }
.topbar--social-brand .topbar-social li.is-social > a, .topbar--social-brand .topbar-menu .menu > li.is-social > a,
.topbar--social-brand-square .topbar-social li.is-social > a, .topbar--social-brand-square .topbar-menu .menu > li.is-social > a { color: #fff; background: var(--sc, var(--im-accent)); }
.topbar--social-circle .topbar-social li.is-social > a:hover, .topbar--social-square .topbar-social li.is-social > a:hover,
.topbar--social-circle .topbar-menu .menu > li.is-social > a:hover, .topbar--social-square .topbar-menu .menu > li.is-social > a:hover { color: var(--m-hover-text); background: var(--m-hover); }
.topbar--social-outline .topbar-social li.is-social > a:hover, .topbar--social-outline .topbar-menu .menu > li.is-social > a:hover { color: var(--m-hover-text); background: var(--m-hover); box-shadow: inset 0 0 0 1.5px var(--m-hover); }
.topbar--social-solid .topbar-social li.is-social > a:hover, .topbar--social-brand .topbar-social li.is-social > a:hover, .topbar--social-brand-square .topbar-social li.is-social > a:hover,
.topbar--social-solid .topbar-menu .menu > li.is-social > a:hover, .topbar--social-brand .topbar-menu .menu > li.is-social > a:hover, .topbar--social-brand-square .topbar-menu .menu > li.is-social > a:hover { color: #fff; filter: brightness(1.12); box-shadow: 0 8px 14px -6px var(--sc, var(--im-accent)); }
.topbar--social-solid .topbar-social li.is-social > a:hover, .topbar--social-solid .topbar-menu .menu > li.is-social > a:hover { color: var(--im-on-accent); }
@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(--im-text); background: transparent; }
.topbar--match { background: transparent; }
.topbar--match .topbar-inner { width: var(--im-menu-w); margin: 6px auto; background: var(--im-topbar-bg); border-radius: var(--im-radius-card); }
.menu-align-left .topbar--match .topbar-inner { margin-left: 0; margin-right: auto; }
.menu-align-right .topbar--match .topbar-inner { margin-left: auto; margin-right: 0; }
@media screen and (max-width: 865px) { .topbar--match .topbar-inner { width: 100%; } }
.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(--im-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(--im-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 .im-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; }
}
@media screen and (max-width: 600px) {
    .bottombar--nophones { display: none; }
    body.has-fixed-bottombar.has-bottombar-nophones { padding-bottom: 0; }
    body.has-bottombar-nophones .scroll-btns { bottom: 14px; }
}

/* Menus in the top and bottom bars: the same looks and hover animations as the primary menu (generated from one template) */
/* base: bar box, list, items */
.im-menu--bar {
    --m-pad: 0px;
    --m-r: var(--im-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-boxbg, var(--m-bg)));
    border-radius: var(--m-r);
    box-shadow: var(--m-shadow);
}
.im-menu--bar .menu { display: flex; flex-wrap: wrap; align-items: stretch; gap: var(--m-gap); margin: 0; padding: 0; list-style: none; }
.im-menu--bar .menu > li { position: relative; display: flex; margin: 0; padding: 0; }
.im-menu--bar .menu > li > a {
    position: relative;
    z-index: 0;
    isolation: isolate;
    overflow: hidden;
    display: block;
    flex: 1 1 auto;
    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;
}
/* hover layer: the colour fills the item from the bottom (slide, the default animation) */
.im-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, filter 0.3s ease, background-position 0.7s ease, box-shadow 0.3s ease;
    pointer-events: none;
}
.im-menu--bar .menu > li:hover > a,
.im-menu--bar .menu > li:focus-within > a { color: var(--m-hover-text); }
.im-menu--bar .menu > li:hover > a::before,
.im-menu--bar .menu > li:focus-within > a::before { opacity: 1; transform: scaleY(1); }
/* current item */
.im-menu--bar .menu > li.current-menu-item > a,
.im-menu--bar .menu > li.current_page_item > a,
.im-menu--bar .menu > li.current-menu-ancestor > a,
.im-menu--bar .menu > li.current_page_ancestor > a,
.im-menu--bar .menu > li.current-cat > a { color: var(--m-current-text); background: var(--m-current); }

/* looks */
.im-menu--bar.look-bar .menu > li:first-child > a { border-radius: var(--m-r) 0 0 var(--m-r); }
.im-menu--bar.look-bar .menu > li:last-child > a { border-radius: 0 var(--m-r) var(--m-r) 0; }

.im-menu--bar.look-pills {
    --m-pad: 6px 8px; --m-gap: 4px; --m-item-r: 999px; --m-lh: calc(var(--m-h) - 10px);
}

.im-menu--bar.look-pills .menu > li.current-menu-item > a,
.im-menu--bar.look-pills .menu > li.current_page_item > a,
.im-menu--bar.look-pills .menu > li.current-menu-ancestor > a,
.im-menu--bar.look-pills .menu > li.current_page_ancestor > a,
.im-menu--bar.look-pills .menu > li.current-cat > a {
    box-shadow: 0 2px 10px -3px var(--m-current);
}

.im-menu--bar.look-underline .menu > li.current-menu-item > a,
.im-menu--bar.look-underline .menu > li.current_page_item > a,
.im-menu--bar.look-underline .menu > li.current-menu-ancestor > a,
.im-menu--bar.look-underline .menu > li.current_page_ancestor > a,
.im-menu--bar.look-underline .menu > li.current-cat > a {
    color: var(--m-text);
    background: transparent;
    box-shadow: inset 0 -3px 0 var(--m-hover-fg);
}

.im-menu--bar.look-tabs {
    --m-current: var(--im-card); --m-current-text: var(--im-ink); --m-pad: 8px 8px 0; --m-gap: 3px; --m-item-r: var(--im-radius-media) var(--im-radius-media) 0 0;
}

.im-menu--bar.look-segmented {
    --m-boxbg: initial;
    --m-bgx: color-mix(in srgb, var(--m-bg) 80%, var(--m-text));
    --m-current: var(--im-card); --m-current-text: var(--im-ink); --m-pad: 5px; --m-r: 999px; --m-gap: 2px; --m-item-r: 999px; --m-px: 20px; --m-lh: calc(var(--m-h) - 12px);
}

.im-menu--bar.look-segmented .menu > li.current-menu-item > a,
.im-menu--bar.look-segmented .menu > li.current_page_item > a,
.im-menu--bar.look-segmented .menu > li.current-menu-ancestor > a,
.im-menu--bar.look-segmented .menu > li.current_page_ancestor > a,
.im-menu--bar.look-segmented .menu > li.current-cat > a {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.im-menu--bar.look-floating {
    --m-boxbg: initial;
    --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);
}

.im-menu--bar.look-floating .menu { justify-content: center; }

.im-menu--bar.look-light {
    --m-boxbg: initial;
    --m-bg: var(--im-card);
    --m-text: var(--im-text);
    --m-line: var(--im-line);
    --m-hover-fg: var(--m-hover-fg-light);
    --m-shadow: var(--im-shadow), inset 0 0 0 1px var(--im-line);
}

.im-menu--bar.look-minimal {
    --m-bgx: transparent;
    --m-text: var(--m-open-text);
    --m-hover-fg: var(--m-open-fg);
    --m-r: 0px;
    --m-shadow: inset 0 -2px 0 var(--m-open-line);
}

.im-menu--bar.look-minimal .menu > li.current-menu-item > a,
.im-menu--bar.look-minimal .menu > li.current_page_item > a,
.im-menu--bar.look-minimal .menu > li.current-menu-ancestor > a,
.im-menu--bar.look-minimal .menu > li.current_page_ancestor > a,
.im-menu--bar.look-minimal .menu > li.current-cat > a {
    color: var(--m-hover-fg);
    background: transparent;
    box-shadow: inset 0 -3px 0 var(--m-current);
}

.im-menu--bar.look-outline {
    --m-bgx: transparent;
    --m-text: var(--m-open-text);
    --m-hover-fg: var(--m-open-fg);
    --m-shadow: inset 0 0 0 2px var(--m-open-line);
}

.im-menu--bar.look-cards {
    --m-bgx: transparent;
    --m-text: var(--im-ink);
    --m-hover-fg: var(--m-hover-fg-light);
    --m-gap: 10px;
    --m-r: 0px;
    --m-item-r: var(--im-radius-media);
    --m-shadow: none;
}

.im-menu--bar.look-cards .menu > li > a { background: var(--im-card); box-shadow: var(--im-shadow), inset 0 0 0 1px var(--im-line); }

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

.im-menu--bar.look-gradient {
    --m-bgx: linear-gradient(100deg, var(--m-bg) 30%, color-mix(in srgb, var(--m-bg) 45%, var(--m-current)));
    --m-current: color-mix(in srgb, var(--m-text) 24%, transparent);
    --m-current-text: var(--m-text);
}

.im-menu--bar.look-neon {
    --m-boxbg: initial;
    --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);
}

.im-menu--bar.look-neon .menu > li.current-menu-item > a,
.im-menu--bar.look-neon .menu > li.current_page_item > a,
.im-menu--bar.look-neon .menu > li.current-menu-ancestor > a,
.im-menu--bar.look-neon .menu > li.current_page_ancestor > a,
.im-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);
}

.im-menu--bar.look-chevron {
    --m-r: 0px; --m-px: 26px;
}

.im-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%); }
.im-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%); }
.im-menu--bar.look-chevron .menu > li + li { margin-left: -8px; }

.im-menu--bar.look-separators .menu > li + li::before { content: ""; position: absolute; top: 26%; bottom: 26%; left: 0; width: 1px; background: var(--m-line); pointer-events: none; }

.im-menu--bar.look-boxed {
    --m-pad: 6px; --m-gap: 6px; --m-item-r: var(--im-radius-media);
}

.im-menu--bar.look-boxed .menu > li > a { box-shadow: inset 0 0 0 1px var(--m-line); }

.im-menu--bar.look-lines .menu > li > a { box-shadow: inset 0 -2px 0 var(--m-line); }

.im-menu--bar.look-lines .menu > li.current-menu-item > a,
.im-menu--bar.look-lines .menu > li.current_page_item > a,
.im-menu--bar.look-lines .menu > li.current-menu-ancestor > a,
.im-menu--bar.look-lines .menu > li.current_page_ancestor > a,
.im-menu--bar.look-lines .menu > li.current-cat > a {
    color: var(--m-text);
    background: transparent;
    box-shadow: inset 0 -3px 0 var(--m-hover-fg);
}

.im-menu--bar.look-glass {
    --m-boxbg: initial;
    --m-bgx: color-mix(in srgb, var(--m-bg) 80%, transparent);
    --m-shadow: 0 14px 28px -18px rgba(0, 0, 0, 0.5), inset 0 0 0 1px color-mix(in srgb, var(--m-text) 22%, transparent);
    -webkit-backdrop-filter: blur(10px) saturate(1.3);
    backdrop-filter: blur(10px) saturate(1.3);
}

.im-menu--bar.look-overline .menu > li.current-menu-item > a,
.im-menu--bar.look-overline .menu > li.current_page_item > a,
.im-menu--bar.look-overline .menu > li.current-menu-ancestor > a,
.im-menu--bar.look-overline .menu > li.current_page_ancestor > a,
.im-menu--bar.look-overline .menu > li.current-cat > a {
    color: var(--m-text);
    background: transparent;
    box-shadow: inset 0 3px 0 var(--m-hover-fg);
}

.im-menu--bar.look-raised {
    --m-pad: 6px 6px 9px; --m-gap: 6px; --m-item-r: var(--im-radius-media);
}

.im-menu--bar.look-raised .menu > li > a { background: color-mix(in srgb, var(--m-bg) 78%, #fff); box-shadow: 0 3px 0 color-mix(in srgb, var(--m-bg) 52%, #000); }

.im-menu--bar.look-raised .menu > li.current-menu-item > a,
.im-menu--bar.look-raised .menu > li.current_page_item > a,
.im-menu--bar.look-raised .menu > li.current-menu-ancestor > a,
.im-menu--bar.look-raised .menu > li.current_page_ancestor > a,
.im-menu--bar.look-raised .menu > li.current-cat > a {
    background: var(--m-current);
    box-shadow: 0 3px 0 color-mix(in srgb, var(--m-current) 58%, #000);
}

.im-menu--bar.look-capsule {
    --m-boxbg: initial;
    --m-pad: 5px; --m-r: 999px; --m-gap: 2px; --m-item-r: 999px; --m-px: 20px; --m-lh: calc(var(--m-h) - 12px); --m-shadow: inset 0 0 0 1px var(--m-line);
}

.im-menu--bar.look-capsule .menu > li.current-menu-item > a,
.im-menu--bar.look-capsule .menu > li.current_page_item > a,
.im-menu--bar.look-capsule .menu > li.current-menu-ancestor > a,
.im-menu--bar.look-capsule .menu > li.current_page_ancestor > a,
.im-menu--bar.look-capsule .menu > li.current-cat > a {
    box-shadow: 0 6px 14px -6px var(--m-current);
}

.im-menu--bar.look-dots {
    --m-shadow: none;
}

.im-menu--bar.look-dots .menu > li.current-menu-item > a,
.im-menu--bar.look-dots .menu > li.current_page_item > a,
.im-menu--bar.look-dots .menu > li.current-menu-ancestor > a,
.im-menu--bar.look-dots .menu > li.current_page_ancestor > a,
.im-menu--bar.look-dots .menu > li.current-cat > a {
    color: var(--m-hover-fg);
    background: radial-gradient(circle at 50% calc(100% - 8px), var(--m-hover-fg) 3px, transparent 3.5px);
}

.im-menu--bar.look-slash {
    --m-bgx: transparent;
    --m-text: var(--m-open-text);
    --m-hover-fg: var(--m-open-fg);
    --m-r: 0px; --m-shadow: none; --m-px: 17px;
}

.im-menu--bar.look-slash .menu > li + li::before { content: "/"; position: absolute; left: 0; top: 50%; z-index: 1; transform: translate(-50%, -52%); font-weight: 300; line-height: 1; color: var(--m-text); opacity: 0.4; pointer-events: none; }

.im-menu--bar.look-slash .menu > li.current-menu-item > a,
.im-menu--bar.look-slash .menu > li.current_page_item > a,
.im-menu--bar.look-slash .menu > li.current-menu-ancestor > a,
.im-menu--bar.look-slash .menu > li.current_page_ancestor > a,
.im-menu--bar.look-slash .menu > li.current-cat > a {
    color: var(--m-hover-fg);
    background: transparent;
    font-weight: 800;
}

.im-menu--bar.look-soft-pill {
    --m-pad: 6px 8px; --m-gap: 5px; --m-item-r: 10px; --m-lh: calc(var(--m-h) - 12px);
}

.im-menu--bar.look-soft-pill .menu > li > a { background: color-mix(in srgb, var(--m-text) 10%, transparent); }

.im-menu--bar.look-soft-pill .menu > li.current-menu-item > a,
.im-menu--bar.look-soft-pill .menu > li.current_page_item > a,
.im-menu--bar.look-soft-pill .menu > li.current-menu-ancestor > a,
.im-menu--bar.look-soft-pill .menu > li.current_page_ancestor > a,
.im-menu--bar.look-soft-pill .menu > li.current-cat > a {
    background: var(--m-current);
}

.im-menu--bar.look-bracket {
    --m-hover-text: var(--m-hover-fg); --m-shadow: none;
}

.im-menu--bar.look-bracket .menu > li > a::before { inset: 9px 4px; border-radius: 0; background: linear-gradient(var(--m-hover-fg), var(--m-hover-fg)) 0 0 / 2px 100% no-repeat,linear-gradient(var(--m-hover-fg), var(--m-hover-fg)) 0 0 / 7px 2px no-repeat,linear-gradient(var(--m-hover-fg), var(--m-hover-fg)) 0 100% / 7px 2px no-repeat,linear-gradient(var(--m-hover-fg), var(--m-hover-fg)) 100% 0 / 2px 100% no-repeat,linear-gradient(var(--m-hover-fg), var(--m-hover-fg)) 100% 0 / 7px 2px no-repeat,linear-gradient(var(--m-hover-fg), var(--m-hover-fg)) 100% 100% / 7px 2px no-repeat; }

.im-menu--bar.look-bracket .menu > li.current-menu-item > a,
.im-menu--bar.look-bracket .menu > li.current_page_item > a,
.im-menu--bar.look-bracket .menu > li.current-menu-ancestor > a,
.im-menu--bar.look-bracket .menu > li.current_page_ancestor > a,
.im-menu--bar.look-bracket .menu > li.current-cat > a {
    color: var(--m-hover-fg);
    background: transparent;
}

.im-menu--bar.look-bracket .menu > li.current-menu-item > a::before,
.im-menu--bar.look-bracket .menu > li.current_page_item > a::before,
.im-menu--bar.look-bracket .menu > li.current-menu-ancestor > a::before,
.im-menu--bar.look-bracket .menu > li.current_page_ancestor > a::before,
.im-menu--bar.look-bracket .menu > li.current-cat > a::before {
    opacity: 1;
    transform: none;
}

.im-menu--bar.look-underline-thick {
    --m-bgx: transparent;
    --m-text: var(--m-open-text);
    --m-hover-fg: var(--m-open-fg);
    --m-r: 0px; --m-shadow: none;
}

.im-menu--bar.look-underline-thick .menu > li.current-menu-item > a,
.im-menu--bar.look-underline-thick .menu > li.current_page_item > a,
.im-menu--bar.look-underline-thick .menu > li.current-menu-ancestor > a,
.im-menu--bar.look-underline-thick .menu > li.current_page_ancestor > a,
.im-menu--bar.look-underline-thick .menu > li.current-cat > a {
    color: var(--m-hover-fg);
    font-weight: 800;
    background: linear-gradient(var(--m-current), var(--m-current)) 50% 100% / calc(100% - var(--m-px) * 2) 5px no-repeat;
}

.im-menu--bar.look-ink {
    --m-bgx: transparent;
    --m-text: var(--m-open-text);
    --m-hover-fg: var(--m-open-fg);
    --m-r: 0px; --m-shadow: none;
}

.im-menu--bar.look-ink .menu > li.current-menu-item > a,
.im-menu--bar.look-ink .menu > li.current_page_item > a,
.im-menu--bar.look-ink .menu > li.current-menu-ancestor > a,
.im-menu--bar.look-ink .menu > li.current_page_ancestor > a,
.im-menu--bar.look-ink .menu > li.current-cat > a {
    color: var(--m-hover-fg);
    background: transparent;
    text-decoration: underline wavy var(--m-current) 2px;
    text-underline-offset: 9px;
    text-decoration-skip-ink: none;
}

.im-menu--bar.look-split {
    --m-shadow: none;
}

.im-menu--bar.look-split .menu > li.current-menu-item > a,
.im-menu--bar.look-split .menu > li.current_page_item > a,
.im-menu--bar.look-split .menu > li.current-menu-ancestor > a,
.im-menu--bar.look-split .menu > li.current_page_ancestor > a,
.im-menu--bar.look-split .menu > li.current-cat > a {
    background: linear-gradient(105deg, var(--m-current) 62%, color-mix(in srgb, var(--m-current) 70%, #000) 62%);
}

.im-menu--bar.look-magazine {
    --m-bgx: transparent;
    --m-text: var(--m-open-text);
    --m-hover-fg: var(--m-open-fg);
    --m-r: 0px; --m-px: 20px; --m-shadow: inset 0 1px 0 var(--m-open-line), inset 0 -1px 0 var(--m-open-line);
}

.im-menu--bar.look-magazine .menu > li > a { font-size: calc(var(--m-fs) - 1px); font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; }
.im-menu--bar.look-magazine .menu > li + li::before { content: ""; position: absolute; top: 30%; bottom: 30%; left: 0; width: 1px; background: var(--m-open-line); pointer-events: none; }

.im-menu--bar.look-magazine .menu > li.current-menu-item > a,
.im-menu--bar.look-magazine .menu > li.current_page_item > a,
.im-menu--bar.look-magazine .menu > li.current-menu-ancestor > a,
.im-menu--bar.look-magazine .menu > li.current_page_ancestor > a,
.im-menu--bar.look-magazine .menu > li.current-cat > a {
    color: var(--m-hover-fg);
    background: transparent;
    box-shadow: inset 0 -2px 0 var(--m-current);
}

.im-menu--bar.look-plain {
    --m-bgx: transparent;
    --m-text: var(--m-open-text);
    --m-hover-fg: var(--m-open-fg);
    --m-r: 0px; --m-shadow: none; --m-px: 16px; --m-hover-text: var(--m-open-fg);
}

.im-menu--bar.look-plain .menu > li > a::before { display: none; }

.im-menu--bar.look-plain .menu > li.current-menu-item > a,
.im-menu--bar.look-plain .menu > li.current_page_item > a,
.im-menu--bar.look-plain .menu > li.current-menu-ancestor > a,
.im-menu--bar.look-plain .menu > li.current_page_ancestor > a,
.im-menu--bar.look-plain .menu > li.current-cat > a {
    color: var(--m-hover-fg);
    background: transparent;
    font-weight: 800;
}

.im-menu--bar.look-chip {
    --m-bgx: transparent; --m-shadow: none; --m-r: 0px; --m-pad: 6px 0; --m-gap: 6px; --m-item-r: 6px; --m-px: 14px; --m-lh: calc(var(--m-h) - 16px);
}

.im-menu--bar.look-chip .menu > li > a { background: color-mix(in srgb, var(--m-bg) 84%, var(--m-text)); }

.im-menu--bar.look-chip .menu > li.current-menu-item > a,
.im-menu--bar.look-chip .menu > li.current_page_item > a,
.im-menu--bar.look-chip .menu > li.current-menu-ancestor > a,
.im-menu--bar.look-chip .menu > li.current_page_ancestor > a,
.im-menu--bar.look-chip .menu > li.current-cat > a {
    background: var(--m-current);
}

.im-menu--bar.look-ghost {
    --m-bgx: transparent;
    --m-text: var(--m-open-text);
    --m-hover-fg: var(--m-open-fg);
    --m-hover: color-mix(in srgb, var(--m-open-fg) 16%, transparent);
    --m-hover-text: var(--m-open-fg);
    --m-shadow: none; --m-r: 0px; --m-pad: 4px; --m-gap: 2px; --m-item-r: var(--im-radius-media); --m-lh: calc(var(--m-h) - 8px);
}

.im-menu--bar.look-ghost .menu > li.current-menu-item > a,
.im-menu--bar.look-ghost .menu > li.current_page_item > a,
.im-menu--bar.look-ghost .menu > li.current-menu-ancestor > a,
.im-menu--bar.look-ghost .menu > li.current_page_ancestor > a,
.im-menu--bar.look-ghost .menu > li.current-cat > a {
    color: var(--m-open-fg);
    background: color-mix(in srgb, var(--m-current) 18%, transparent);
}

.im-menu--bar.look-rail {
    --m-shadow: inset 0 -4px 0 var(--m-current);
}

.im-menu--bar.look-rail .menu > li.current-menu-item > a,
.im-menu--bar.look-rail .menu > li.current_page_item > a,
.im-menu--bar.look-rail .menu > li.current-menu-ancestor > a,
.im-menu--bar.look-rail .menu > li.current_page_ancestor > a,
.im-menu--bar.look-rail .menu > li.current-cat > a {
    color: var(--m-hover-fg);
    background: transparent;
    box-shadow: inset 0 -4px 0 color-mix(in srgb, var(--m-current) 55%, #fff);
}

.im-menu--bar.look-bevel {
    --m-boxbg: initial;
    --m-bgx: linear-gradient(180deg, color-mix(in srgb, var(--m-bg) 88%, #fff), var(--m-bg));
    --m-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 12px 22px -18px rgba(0, 0, 0, 0.6), inset 0 0 0 1px var(--m-line);
    --m-r: var(--im-radius-media);
}

.im-menu--bar.look-bevel .menu > li.current-menu-item > a,
.im-menu--bar.look-bevel .menu > li.current_page_item > a,
.im-menu--bar.look-bevel .menu > li.current-menu-ancestor > a,
.im-menu--bar.look-bevel .menu > li.current_page_ancestor > a,
.im-menu--bar.look-bevel .menu > li.current-cat > a {
    color: var(--m-hover-fg);
    background: color-mix(in srgb, var(--m-bg) 78%, #000);
    box-shadow: inset 0 3px 7px rgba(0, 0, 0, 0.5), inset 0 -1px 0 rgba(255, 255, 255, 0.12);
}

.im-menu--bar.look-stripe {
    --m-shadow: none;
}

.im-menu--bar.look-stripe .menu > li.current-menu-item > a,
.im-menu--bar.look-stripe .menu > li.current_page_item > a,
.im-menu--bar.look-stripe .menu > li.current-menu-ancestor > a,
.im-menu--bar.look-stripe .menu > li.current_page_ancestor > a,
.im-menu--bar.look-stripe .menu > li.current-cat > a {
    background: repeating-linear-gradient(135deg, var(--m-current) 0 7px, color-mix(in srgb, var(--m-current) 84%, #000) 7px 14px);
}

.im-menu--bar.look-rounded-bar {
    --m-boxbg: initial;
    --m-r: 999px; --m-px: 24px;
}

.im-menu--bar.look-rounded-bar .menu > li:first-child > a { border-radius: 999px 0 0 999px; }
.im-menu--bar.look-rounded-bar .menu > li:last-child > a { border-radius: 0 999px 999px 0; }

.im-menu--bar.look-compact {
    --m-pad: 3px; --m-px: 11px; --m-gap: 2px; --m-r: 6px; --m-item-r: 5px; --m-lh: calc(var(--m-h) - 14px);
}

.im-menu--bar.look-compact .menu > li > a { font-size: calc(var(--m-fs) - 1px); }

/* hover animations: the look sets the colours, the animation only moves the hover layer or the item */
.im-menu--bar.anim-slide-down .menu > li > a::before {
    transform-origin: 50% 0;
}

.im-menu--bar.anim-slide-left .menu > li > a::before {
    transform: scaleX(0);
    transform-origin: 100% 50%;
}

.im-menu--bar.anim-slide-left .menu > li:hover > a::before,
.im-menu--bar.anim-slide-left .menu > li:focus-within > a::before {
    transform: scaleX(1);
}

.im-menu--bar.anim-slide-right .menu > li > a::before {
    transform: scaleX(0);
    transform-origin: 0 50%;
}

.im-menu--bar.anim-slide-right .menu > li:hover > a::before,
.im-menu--bar.anim-slide-right .menu > li:focus-within > a::before {
    transform: scaleX(1);
}

.im-menu--bar.anim-grow .menu > li > a::before {
    transform: scale(0.4);
    border-radius: var(--im-radius-media);
}

.im-menu--bar.anim-grow .menu > li:hover > a::before,
.im-menu--bar.anim-grow .menu > li:focus-within > a::before {
    transform: scale(1);
}

.im-menu--bar.anim-expand .menu > li > a::before {
    transform: scaleX(0.2);
    transform-origin: 50% 50%;
}

.im-menu--bar.anim-expand .menu > li:hover > a::before,
.im-menu--bar.anim-expand .menu > li:focus-within > a::before {
    transform: scaleX(1);
}

.im-menu--bar.anim-skew .menu > li > a::before {
    transform: skewX(-18deg) scaleX(0);
    transform-origin: 0 50%;
    inset: 0 -12px;
}

.im-menu--bar.anim-skew .menu > li:hover > a::before,
.im-menu--bar.anim-skew .menu > li:focus-within > a::before {
    transform: skewX(-18deg) scaleX(1);
}

.im-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;
}

.im-menu--bar.anim-shine .menu > li:hover > a::before,
.im-menu--bar.anim-shine .menu > li:focus-within > a::before {
    transform: none;
    background-position: 0 0;
}

.im-menu--bar.anim-underline .menu > li > a::before,
.im-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%;
}

.im-menu--bar.anim-line-left .menu > li > a::before {
    transform-origin: 0 50%;
}

.im-menu--bar.anim-underline .menu > li:hover > a::before,
.im-menu--bar.anim-underline .menu > li:focus-within > a::before,
.im-menu--bar.anim-line-left .menu > li:hover > a::before,
.im-menu--bar.anim-line-left .menu > li:focus-within > a::before { transform: scaleX(1); }

.im-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);
}

.im-menu--bar.anim-double-line .menu > li:hover > a::before,
.im-menu--bar.anim-double-line .menu > li:focus-within > a::before {
    transform: scaleX(1);
}

.im-menu--bar.anim-border .menu > li > a::before {
    background: transparent;
    box-shadow: inset 0 0 0 2px var(--m-hover);
    transform: none;
}

.im-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);
}

.im-menu--bar.anim-dot .menu > li:hover > a::before,
.im-menu--bar.anim-dot .menu > li:focus-within > a::before {
    transform: scale(1);
}

.im-menu--bar.anim-underline .menu > li:hover > a,
.im-menu--bar.anim-underline .menu > li:focus-within > a,
.im-menu--bar.anim-line-left .menu > li:hover > a,
.im-menu--bar.anim-line-left .menu > li:focus-within > a,
.im-menu--bar.anim-double-line .menu > li:hover > a,
.im-menu--bar.anim-double-line .menu > li:focus-within > a,
.im-menu--bar.anim-border .menu > li:hover > a,
.im-menu--bar.anim-border .menu > li:focus-within > a,
.im-menu--bar.anim-dot .menu > li:hover > a,
.im-menu--bar.anim-dot .menu > li:focus-within > a,
.im-menu--bar.anim-letter .menu > li:hover > a,
.im-menu--bar.anim-letter .menu > li:focus-within > a,
.im-menu--bar.anim-corners .menu > li:hover > a,
.im-menu--bar.anim-corners .menu > li:focus-within > a { color: var(--m-hover-fg); }

.im-menu--bar.anim-lift .menu > li > a,
.im-menu--bar.anim-glow .menu > li > a,
.im-menu--bar.anim-bounce .menu > li > a,
.im-menu--bar.anim-pulse .menu > li > a,
.im-menu--bar.anim-zoom .menu > li > a,
.im-menu--bar.anim-flip .menu > li > a,
.im-menu--bar.anim-swing .menu > li > a,
.im-menu--bar.anim-rubber .menu > li > a,
.im-menu--bar.anim-shake .menu > li > a { overflow: visible; }

.im-menu--bar.anim-lift .menu > li > a::before {
    transform: none;
    box-shadow: 0 12px 20px -10px var(--m-hover);
}

.im-menu--bar.anim-lift .menu > li:hover > a,
.im-menu--bar.anim-lift .menu > li:focus-within > a {
    transform: translateY(-2px);
}

.im-menu--bar.anim-lift .menu > li:hover > a::before,
.im-menu--bar.anim-lift .menu > li:focus-within > a::before {
    transform: none;
}

.im-menu--bar.anim-glow .menu > li > a::before {
    transform: none;
}

.im-menu--bar.anim-glow .menu > li:hover > a::before,
.im-menu--bar.anim-glow .menu > li:focus-within > a::before {
    box-shadow: 0 0 20px 2px var(--m-hover);
}

.im-menu--bar.anim-bounce .menu > li > a::before,
.im-menu--bar.anim-pulse .menu > li > a::before,
.im-menu--bar.anim-zoom .menu > li > a::before,
.im-menu--bar.anim-fade .menu > li > a::before,
.im-menu--bar.anim-none .menu > li > a::before,
.im-menu--bar.anim-shake .menu > li > a::before { transform: none; }

.im-menu--bar.anim-bounce .menu > li:hover > a { animation: im-menu-bounce 0.45s ease; }
.im-menu--bar.anim-pulse .menu > li:hover > a { animation: im-menu-pulse 0.5s ease; }
.im-menu--bar.anim-shake .menu > li:hover > a { animation: im-menu-shake 0.4s ease; }

.im-menu--bar.anim-zoom .menu > li:hover > a,
.im-menu--bar.anim-zoom .menu > li:focus-within > a {
    transform: scale(1.1);
}

.im-menu--bar.anim-letter .menu > li > a::before {
    opacity: 0;
}

.im-menu--bar.anim-letter .menu > li:hover > a,
.im-menu--bar.anim-letter .menu > li:focus-within > a {
    letter-spacing: 0.07em;
}

.im-menu--bar.anim-letter .menu > li:hover > a::before,
.im-menu--bar.anim-letter .menu > li:focus-within > a::before {
    opacity: 0;
}

.im-menu--bar.anim-blur-in .menu > li > a::before {
    transform: none;
    filter: blur(9px);
}

.im-menu--bar.anim-blur-in .menu > li:hover > a::before,
.im-menu--bar.anim-blur-in .menu > li:focus-within > a::before {
    filter: blur(0);
}

.im-menu--bar.anim-flip .menu > li > a::before {
    transform: none;
}

.im-menu--bar.anim-flip .menu > li:hover > a,
.im-menu--bar.anim-flip .menu > li:focus-within > a {
    transform: perspective(320px) rotateX(-24deg);
}

.im-menu--bar.anim-swing .menu > li > a::before,
.im-menu--bar.anim-rubber .menu > li > a::before { transform: none; }

.im-menu--bar.anim-swing .menu > li:hover > a { transform-origin: 50% 0; animation: im-menu-swing 0.6s ease; }
.im-menu--bar.anim-rubber .menu > li:hover > a { animation: im-menu-rubber 0.6s ease; }

.im-menu--bar.anim-ripple .menu > li > a::before {
    border-radius: 50%;
    transform: scale(0);
    transform-origin: 50% 50%;
}

.im-menu--bar.anim-ripple .menu > li:hover > a::before,
.im-menu--bar.anim-ripple .menu > li:focus-within > a::before {
    transform: scale(3);
}

.im-menu--bar.anim-corners .menu > li > a::before {
    background:
        linear-gradient(var(--m-hover), var(--m-hover)) 0 0 / 12px 2px no-repeat,
        linear-gradient(var(--m-hover), var(--m-hover)) 0 0 / 2px 12px no-repeat,
        linear-gradient(var(--m-hover), var(--m-hover)) 100% 0 / 12px 2px no-repeat,
        linear-gradient(var(--m-hover), var(--m-hover)) 100% 0 / 2px 12px no-repeat,
        linear-gradient(var(--m-hover), var(--m-hover)) 0 100% / 12px 2px no-repeat,
        linear-gradient(var(--m-hover), var(--m-hover)) 0 100% / 2px 12px no-repeat,
        linear-gradient(var(--m-hover), var(--m-hover)) 100% 100% / 12px 2px no-repeat,
        linear-gradient(var(--m-hover), var(--m-hover)) 100% 100% / 2px 12px no-repeat;
    inset: 3px;
    transform: scale(1.18);
}

.im-menu--bar.anim-corners .menu > li:hover > a::before,
.im-menu--bar.anim-corners .menu > li:focus-within > a::before {
    transform: scale(1);
}

.im-menu--bar.anim-drift .menu > li > a::before {
    transform: none;
    background: linear-gradient(90deg, var(--m-hover), color-mix(in srgb, var(--m-hover) 45%, var(--im-accent)), var(--m-hover));
    background-size: 300% 100%;
    background-position: 100% 0;
}

.im-menu--bar.anim-drift .menu > li:hover > a::before,
.im-menu--bar.anim-drift .menu > li:focus-within > a::before {
    transform: none;
    background-position: 0 0;
}

.im-menu--bar.anim-fall .menu > li > a::before {
    opacity: 1;
    transform: translateY(-101%);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.im-menu--bar.anim-fall .menu > li:hover > a::before,
.im-menu--bar.anim-fall .menu > li:focus-within > a::before {
    transform: translateY(0);
}

.im-menu--bar.anim-none .menu > li > a,
.im-menu--bar.anim-none .menu > li > a::before { transition: none; }

/* Dropdowns of the top and bottom bar menus: open on hover, on keyboard focus and on tap (js/theme.js adds .is-open) */
.im-menu--bar .menu ul {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 500;
    display: none;
    width: 230px;
    max-width: calc(100vw - 24px);
    margin: 6px 0 0;
    padding: 6px;
    list-style: none;
    background: var(--im-card);
    border: 1px solid var(--im-line);
    border-radius: var(--im-radius-card);
    box-shadow: 0 24px 44px -22px rgba(0, 0, 0, 0.55);
}
.im-menu--bar .menu li.flip-left > ul { left: auto; right: 0; } /* js/theme.js adds flip-left when a list would leave the screen */
/* the bottom bar sits at the bottom of the screen, so its lists open upward */
.bottombar .im-menu--bar .menu > li > ul { top: auto; bottom: 100%; margin: 0 0 6px; }
/* invisible bridge so the list stays open while the pointer crosses the gap */
.im-menu--bar .menu ul::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.bottombar .im-menu--bar .menu > li > ul::before { top: auto; bottom: -10px; }
.im-menu--bar .menu li:hover > ul,
.im-menu--bar .menu li:focus-within > ul,
.im-menu--bar .menu li.is-open > ul { display: block; }
.im-menu--bar .menu ul li { position: relative; margin: 0; padding: 0; }
.im-menu--bar .menu ul a {
    display: block;
    padding: 10px 14px;
    font-size: 14.5px;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: 0;
    text-transform: none;
    color: var(--im-text);
    border-radius: var(--im-radius-media);
    transition: background-color 0.15s ease, color 0.15s ease;
}
.im-menu--bar .menu ul li:hover > a,
.im-menu--bar .menu ul li:focus-within > a {
    color: var(--im-ink);
    background: color-mix(in srgb, var(--m-hover) 22%, var(--im-card));
    box-shadow: inset 3px 0 0 var(--m-hover);
}
.im-menu--bar .menu ul li.current-menu-item > a { color: var(--im-link); font-weight: 600; }
.im-menu--bar .menu ul .menu-item-has-children > a { padding-right: 30px; position: relative; }
.im-menu--bar .menu ul .menu-item-has-children > a:after { content: '\f105'; position: absolute; right: 12px; top: 50%; margin: 0; transform: translateY(-50%); }
.im-menu--bar .menu ul ul { top: -7px; left: 100%; margin: 0 0 0 8px; }
.im-menu--bar .menu ul ul::before { top: 0; bottom: 0; left: -10px; right: auto; width: 10px; height: auto; }
.bottombar .im-menu--bar .menu ul ul { top: auto; bottom: -7px; }
.im-menu--bar .menu li.flip-left > ul ul, .im-menu--bar .menu ul li.flip-left > ul { left: auto; right: 100%; margin: 0 8px 0 0; }

/* 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(--im-scroll-text);
    cursor: pointer;
    background: var(--im-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(--im-scroll-bg) 82%, #000); transform: translateY(-3px); }
.scroll-btn:focus-visible { outline: 3px solid var(--im-scroll-bg); outline-offset: 3px; }
.scroll-btn__label { display: none; }
.scroll-style-square .scroll-btn { border-radius: var(--im-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; }
    .branding-align-left .header-row { align-items: flex-start; }
    .branding-align-right .header-row { align-items: flex-end; }
    .site-branding { /* alignment comes from .branding-align-* */ }
    .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(--im-menu-text);
        background: var(--im-menu-bg);
        border-radius: var(--im-radius-card);
        transition: background-color 0.2s ease, color 0.2s ease;
    }
    a#pull:hover { color: var(--im-menu-hover-text); background: var(--im-menu-hover); }
    a#pull:after { content: '\f0c9'; font-family: "invamode-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(--im-menu-text);
        background: var(--im-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(--im-menu-text);
        background: transparent;
        border-radius: var(--im-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(--im-menu-hover-text); background: var(--im-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(--im-menu-current-text); background: var(--im-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(--im-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 { --im-pad: 20px; }
    .single_post { --im-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;
}
/* 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(--im-card)); }
.scheme-dark #cancel-comment-reply-link { color: #FCA5A5; background: color-mix(in srgb, #EF4444 20%, var(--im-card)); }
.scheme-dark #cancel-comment-reply-link:hover { background: color-mix(in srgb, #EF4444 32%, var(--im-card)); }
.scheme-dark mark, .scheme-dark ins { background: #5C4B00; color: #FFF3BF; }

/*--------------------------------------------------------------
# Extra options: card size, date position, day-item outlines, topbar position
--------------------------------------------------------------*/

/* Card padding + title size (from Customizer) */
.post.excerpt {
    padding: var(--im-card-pad, 24px) var(--im-pad) calc(var(--im-card-pad, 24px) + 2px);
}
.post.excerpt .title {
    font-size: var(--im-card-title, inherit);
}

/* Space between date and title (Customize > Homepage > Space between date and title).
   !important because many date styles set their own margins; this setting must win for all of them. */
.post.excerpt > .date-tag { margin-bottom: var(--im-date-gap, 8px) !important; }
.date-style-vertical .post.excerpt > .date-tag,
.date-style-corner .post.excerpt > .date-tag { margin-bottom: 0 !important; }
.date-style-bubble .post.excerpt > .date-tag { margin-bottom: calc(var(--im-date-gap, 8px) + 14px) !important; }
.date-pos-below .post.excerpt header > .date-tag { margin-top: var(--im-date-gap, 8px) !important; margin-bottom: 8px !important; }
.date-pos-below .post.excerpt header .title { margin-bottom: 0; }

/* Date positions */
.date-pos-top-right .post.excerpt > .date-tag {
    margin-left: auto;
    margin-right: calc(-1 * var(--im-pad) - 8px);
}
.date-pos-top-right .date-tag:after {
    right: auto;
    left: 0;
    border-width: 15px 0 15px 10px;
    border-color: transparent transparent transparent var(--im-card);
}
.date-pos-top-right .date-tag__fold {
    left: auto;
    right: 0;
    clip-path: polygon(0 0, 100% 0, 0 100%);
}
.date-pos-above .post.excerpt > .date-tag {
    margin-left: 0;
    max-width: 100%;
}
.date-pos-above .date-tag:after,
.date-pos-above .date-tag__fold { display: none; }
.date-pos-inline .title-row,
.date-pos-inline-end .title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--im-date-gap, 8px) calc(var(--im-date-gap, 8px) + 6px);
    margin-bottom: 6px;
}
.date-pos-inline .title-row .date-tag,
.date-pos-inline-end .title-row .date-tag {
    margin: 0;
    flex: 0 0 auto;
}
.date-pos-inline .title-row .title,
.date-pos-inline-end .title-row .title {
    margin: 0;
    flex: 1 1 auto;
}
.date-pos-inline .date-tag:after,
.date-pos-inline .date-tag__fold,
.date-pos-inline-end .date-tag:after,
.date-pos-inline-end .date-tag__fold { display: none; }
.date-pos-inline-end .title-row .title { order: 1; }
.date-pos-inline-end .title-row .date-tag { order: 2; margin-left: auto; }
.date-pos-below .header > .date-tag {
    margin: 4px 0 8px;
}
.date-pos-below .date-tag:after,
.date-pos-below .date-tag__fold { display: none; }
.date-pos-meta .post-info-with-date {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
}
.date-pos-meta .post-info-with-date .date-tag {
    margin: 0;
}
.date-pos-meta .date-tag:after,
.date-pos-meta .date-tag__fold { display: none; }

/* Date flow and indent (Customize > Homepage > Date flow, Date indent) */
.date-flow-inside .post.excerpt > .date-tag,
.date-flow-inside .post.excerpt header > .date-tag { margin-left: 0 !important; margin-right: auto !important; }
.date-flow-center .post.excerpt > .date-tag,
.date-flow-center .post.excerpt header > .date-tag { margin-left: auto !important; margin-right: auto !important; }
.date-flow-end .post.excerpt > .date-tag,
.date-flow-end .post.excerpt header > .date-tag { margin-left: auto !important; margin-right: 0 !important; }
.date-flow-inside .post.excerpt .date-tag:after, .date-flow-inside .post.excerpt .date-tag__fold,
.date-flow-center .post.excerpt .date-tag:after, .date-flow-center .post.excerpt .date-tag__fold,
.date-flow-end .post.excerpt .date-tag:after, .date-flow-end .post.excerpt .date-tag__fold { display: none; }
body:not(.date-style-vertical):not(.date-style-corner):not(.date-pos-edge-left):not(.date-pos-edge-center):not(.date-pos-edge-right):not(.date-pos-bottom-left) .post.excerpt > .date-tag,
body:not(.date-style-vertical):not(.date-style-corner):not(.date-pos-edge-left):not(.date-pos-edge-center):not(.date-pos-edge-right):not(.date-pos-bottom-left) .post.excerpt header > .date-tag { left: var(--im-date-indent, 0px); }
body.date-pos-top-right.date-flow-edge:not(.date-style-vertical):not(.date-style-corner):not(.date-pos-edge-left):not(.date-pos-edge-center):not(.date-pos-edge-right):not(.date-pos-bottom-left) .post.excerpt > .date-tag,
body.date-flow-end:not(.date-style-vertical):not(.date-style-corner):not(.date-pos-edge-left):not(.date-pos-edge-center):not(.date-pos-edge-right):not(.date-pos-bottom-left) .post.excerpt > .date-tag,
body.date-flow-end:not(.date-style-vertical):not(.date-style-corner):not(.date-pos-edge-left):not(.date-pos-edge-center):not(.date-pos-edge-right):not(.date-pos-bottom-left) .post.excerpt header > .date-tag { left: calc(-1 * var(--im-date-indent, 0px)); }
/* Date raise: moves the date up (or down when negative) without moving the title */
body:not(.date-style-vertical):not(.date-style-corner):not(.date-pos-edge-left):not(.date-pos-edge-center):not(.date-pos-edge-right):not(.date-pos-bottom-left):not(.date-pos-meta) .post.excerpt > .date-tag,
body:not(.date-style-vertical):not(.date-style-corner):not(.date-pos-edge-left):not(.date-pos-edge-center):not(.date-pos-edge-right):not(.date-pos-bottom-left):not(.date-pos-meta) .post.excerpt header > .date-tag,
body:not(.date-style-vertical):not(.date-style-corner):not(.date-pos-edge-left):not(.date-pos-edge-center):not(.date-pos-edge-right):not(.date-pos-bottom-left):not(.date-pos-meta) .post.excerpt .title-row > .date-tag { top: calc(-1 * var(--im-date-lift, 0px)); }

/* New date styles */
.date-style-chip .date-tag {
    padding: 0 12px 0 10px;
    font-size: 12px;
    line-height: 26px;
    color: var(--im-link);
    background: color-mix(in srgb, var(--im-accent) 12%, var(--im-card));
    border-radius: 999px;
}
.date-style-chip .date-tag:before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 8px;
    background: var(--im-accent);
    border-radius: 50%;
    vertical-align: middle;
}
.date-style-chip .date-tag:after,
.date-style-chip .date-tag__fold { display: none; }
.date-style-badge .date-tag {
    padding: 0 12px;
    font-size: 12px;
    font-weight: 700;
    line-height: 24px;
    color: var(--im-on-accent);
    background: var(--im-accent);
    border-radius: 6px;
}
.date-style-badge .date-tag:after,
.date-style-badge .date-tag__fold { display: none; }
.date-style-line .date-tag {
    padding: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--im-muted);
    border-bottom: 2px solid var(--im-accent);
}
.date-style-line .date-tag:after,
.date-style-line .date-tag__fold { display: none; }
.date-style-boxed .date-tag {
    padding: 6px 14px;
    font-size: 13px;
    line-height: 1.3;
    color: var(--im-link);
    background: color-mix(in srgb, var(--im-accent) 10%, var(--im-card));
    border: 1px solid var(--im-line-strong);
    border-radius: var(--im-radius-media);
}
.date-style-boxed .date-tag:after,
.date-style-boxed .date-tag__fold { display: none; }
.date-style-caps .date-tag {
    margin-bottom: var(--im-date-gap, 8px);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.4;
    text-transform: uppercase;
    color: var(--im-muted);
}
.date-style-caps .date-tag:after,
.date-style-caps .date-tag__fold { display: none; }

/* New card styles */
.card-style-neumorph .post.excerpt,
.card-style-neumorph .day-block {
    border: 0;
    background: var(--im-card);
    box-shadow: 8px 8px 18px color-mix(in srgb, var(--im-deep) 12%, transparent),
                -6px -6px 14px color-mix(in srgb, #fff 70%, transparent);
}
.scheme-dark.card-style-neumorph .post.excerpt,
.scheme-dark.card-style-neumorph .day-block {
    box-shadow: 8px 8px 18px rgba(0,0,0,0.35), -4px -4px 12px rgba(255,255,255,0.04);
}
.card-style-paper .post.excerpt,
.card-style-paper .day-block {
    border: 1px solid color-mix(in srgb, var(--im-line-strong) 70%, transparent);
    background: color-mix(in srgb, var(--im-card) 92%, #f5ecd8);
    box-shadow: 0 10px 24px -14px rgba(0,0,0,0.28);
}
.card-style-accent-top .post.excerpt,
.card-style-accent-top .day-block {
    border: 0;
    border-top: 5px solid var(--im-accent);
    box-shadow: var(--im-shadow);
}
.card-style-frame .post.excerpt,
.card-style-frame .day-block {
    border: 3px solid var(--im-line-strong);
    box-shadow: inset 0 0 0 4px var(--im-card), 0 8px 20px -12px rgba(0,0,0,0.25);
}
.card-style-shadow-card .post.excerpt,
.card-style-shadow-card .day-block {
    border: 0;
    box-shadow: 0 18px 40px -22px rgba(0,0,0,0.4), 0 2px 6px rgba(0,0,0,0.05);
}
.card-style-cut-corner .post.excerpt,
.card-style-cut-corner .day-block {
    border: 1px solid var(--im-line-strong);
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}
.card-style-stripe .post.excerpt,
.card-style-stripe .day-block {
    border: 1px solid var(--im-line);
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--im-accent) 22%, transparent) 0 28px, transparent 28px) top right / 56px 56px no-repeat,
        var(--im-card);
}

/* Day-item outlines and padding */
.day-block .post.excerpt.day-item {
    padding-top: var(--im-day-item-pad, 13px);
    padding-bottom: var(--im-day-item-pad, 13px);
}
.day-item-outline-solid .day-block .post.excerpt.day-item {
    border: 1px solid var(--im-line-strong);
    border-radius: var(--im-radius-media);
    padding-left: 14px;
    padding-right: 14px;
    margin: 4px 0;
}
.day-item-outline-solid .day-block .post.excerpt.day-item + .post.excerpt.day-item {
    border-top: 1px solid var(--im-line-strong);
}
.day-item-outline-dashed .day-block .post.excerpt.day-item {
    border: 1px dashed var(--im-line-strong);
    border-radius: var(--im-radius-media);
    padding-left: 14px;
    padding-right: 14px;
    margin: 4px 0;
}
.day-item-outline-dotted .day-block .post.excerpt.day-item {
    border: 2px dotted var(--im-line-strong);
    border-radius: var(--im-radius-media);
    padding-left: 14px;
    padding-right: 14px;
    margin: 4px 0;
}
.day-item-outline-soft .day-block .post.excerpt.day-item {
    background: color-mix(in srgb, var(--im-accent) 6%, var(--im-card));
    border-radius: var(--im-radius-media);
    padding-left: 14px;
    padding-right: 14px;
    margin: 3px 0;
}
.day-item-outline-left .day-block .post.excerpt.day-item {
    border-left: 4px solid var(--im-accent);
    padding-left: 12px;
    margin: 2px 0;
}

/* Top bar positions inside the header */
.topbar-pos-above-title #site-header > .topbar,
.topbar-pos-below-title #site-header > .topbar {
    border-radius: 0;
}
.topbar-pos-above-title #site-header > .topbar {
    margin-bottom: 0;
}
/* Soft integrated look when the top bar sits inside the header */
.topbar-pos-above-title #site-header > .topbar:not(.topbar--nobg),
.topbar-pos-below-title #site-header > .topbar:not(.topbar--nobg) {
    border-radius: var(--im-radius-media);
    overflow: hidden;
}
.topbar-pos-above-title #site-header > .topbar .container,
.topbar-pos-below-title #site-header > .topbar .container {
    max-width: var(--im-article-w, 1100px);
}

/*--------------------------------------------------------------
# Top bar offset + expanded topbar menu + new styles pack
--------------------------------------------------------------*/

/* Gap between top bar and site title only (no space above the top bar) */
#topbar {
    margin-top: 0;
    margin-bottom: 0;
}
/* Only when the top bar is above the whole header: gap becomes header top padding (no space above the bar) */
.topbar-pos-above #site-header {
    padding-top: var(--im-topbar-gap, 8px);
}
/* Inside-header positions: gap between the bar and the title row / menu */
.topbar-pos-above-title #site-header > .topbar + .header-row {
    margin-top: var(--im-topbar-gap, 8px);
}
.topbar-pos-below-title #site-header > .header-row {
    margin-bottom: var(--im-topbar-gap, 8px);
}
.topbar-pos-below-title #site-header > .topbar {
    margin-bottom: var(--im-topbar-gap, 8px);
}

/* ============================================================
   TOP BAR MENU: container only. Colours, looks and hover animations come from the shared menu CSS above.
   ============================================================ */
.topbar-menu { display: flex; flex: 1 1 auto; align-items: center; min-width: 0; margin: 0; }
.topbar-menu .menu { flex: 1 1 auto; min-width: 0; }

/* Social icons in topbar menu must stay clean */
.topbar-menu .menu > li.is-social > a::before { display: none !important; }
.topbar-menu .menu > li.is-social > a {
    overflow: visible;
    background: transparent !important;
    box-shadow: none !important;
}



/* New post card styles */
.card-style-layered .post.excerpt,
.card-style-layered .day-block {
    border: 1px solid var(--im-line);
    box-shadow: 8px 8px 0 color-mix(in srgb, var(--im-edge) 35%, transparent);
}
.card-style-notepad .post.excerpt,
.card-style-notepad .day-block {
    border: 1px solid var(--im-line-strong);
    background:
        linear-gradient(90deg, color-mix(in srgb, #e11 28%, transparent) 0 3px, transparent 3px) 0 0 / 100% 100% no-repeat,
        repeating-linear-gradient(transparent, transparent 27px, color-mix(in srgb, var(--im-line-strong) 55%, transparent) 27px 28px);
    background-color: var(--im-card);
}
.card-style-polaroid .post.excerpt,
.card-style-polaroid .day-block {
    border: 10px solid #fff;
    border-bottom-width: 28px;
    box-shadow: 0 14px 28px -16px rgba(0,0,0,0.4);
}
.scheme-dark.card-style-polaroid .post.excerpt,
.scheme-dark.card-style-polaroid .day-block { border-color: #2a2a2a; }
.card-style-ticket-edge .post.excerpt,
.card-style-ticket-edge .day-block {
    border: 1px solid var(--im-line-strong);
    mask-image: radial-gradient(circle at 0 12px, transparent 6px, #000 7px);
    mask-position: left center;
    mask-size: 12px 24px;
    mask-repeat: repeat-y;
}
.card-style-accent-glow .post.excerpt,
.card-style-accent-glow .day-block {
    border: 1px solid color-mix(in srgb, var(--im-accent) 35%, var(--im-line));
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--im-accent) 12%, transparent), 0 12px 28px -18px rgba(0,0,0,0.35);
}
.card-style-compact .post.excerpt {
    padding: 14px 16px 16px;
    border-radius: 6px;
}
.card-style-editorial .post.excerpt,
.card-style-editorial .day-block {
    border: 0;
    border-top: 1px solid var(--im-ink);
    border-radius: 0;
    box-shadow: none;
    padding-top: 18px;
}
.card-style-editorial .post.excerpt .title { font-size: 1.35em; letter-spacing: -0.01em; }

/* New date styles */
.date-style-orbit .date-tag {
    width: 56px;
    height: 56px;
    margin-bottom: var(--im-date-gap, 8px);
    padding: 0;
    text-align: center;
    border: 2px solid var(--im-accent);
    border-radius: 50%;
    background: var(--im-card);
    color: var(--im-ink);
}
.date-style-orbit .dt-full { display: none; }
.date-style-orbit .dt-parts { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; line-height: 1.05; }
.date-style-orbit .dt-day { font-size: 20px; font-weight: 800; }
.date-style-orbit .dt-mon { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--im-muted); }
.date-style-orbit .dt-yr { display: none; }
.date-style-orbit .date-tag:after, .date-style-orbit .date-tag__fold { display: none; }
.date-style-stack .date-tag {
    padding: 6px 12px;
    text-align: center;
    background: color-mix(in srgb, var(--im-accent) 10%, var(--im-card));
    border-radius: var(--im-radius-media);
    color: var(--im-ink);
}
.date-style-stack .dt-full { display: none; }
.date-style-stack .dt-parts { display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.date-style-stack .dt-day { font-size: 22px; font-weight: 800; color: var(--im-link); }
.date-style-stack .dt-mon { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.date-style-stack .dt-yr { font-size: 11px; color: var(--im-muted); }
.date-style-stack .date-tag:after, .date-style-stack .date-tag__fold { display: none; }
.date-style-minimal-dot .date-tag {
    padding: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--im-muted);
    background: none;
}
.date-style-minimal-dot .date-tag:before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 8px;
    background: var(--im-accent);
    border-radius: 50%;
    vertical-align: middle;
}
.date-style-minimal-dot .date-tag:after, .date-style-minimal-dot .date-tag__fold { display: none; }
.date-style-serif .date-tag {
    padding: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 18px;
    font-style: italic;
    font-weight: 400;
    color: var(--im-ink);
    background: none;
}
.date-style-serif .date-tag:after, .date-style-serif .date-tag__fold { display: none; }
.date-style-code-block .date-tag {
    padding: 4px 10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    color: var(--im-link);
    background: color-mix(in srgb, var(--im-accent) 10%, var(--im-card));
    border: 1px solid var(--im-line-strong);
    border-radius: 4px;
}
.date-style-code-block .date-tag:after, .date-style-code-block .date-tag__fold { display: none; }
.date-style-flag-soft .date-tag {
    padding: 0 22px 0 14px;
    color: var(--im-link);
    background: color-mix(in srgb, var(--im-accent) 14%, var(--im-card));
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
}
.date-style-flag-soft .date-tag:after, .date-style-flag-soft .date-tag__fold { display: none; }
.date-style-pill-split .date-tag {
    padding: 0;
    overflow: hidden;
    border-radius: 999px;
    background: color-mix(in srgb, var(--im-accent) 12%, var(--im-card));
    color: var(--im-ink);
}
.date-style-pill-split .dt-full { display: none; }
.date-style-pill-split .dt-parts { display: flex; align-items: stretch; }
.date-style-pill-split .dt-day {
    padding: 0 10px;
    font-weight: 800;
    line-height: 28px;
    color: var(--im-on-accent);
    background: var(--im-accent);
}
.date-style-pill-split .dt-mon,
.date-style-pill-split .dt-yr {
    padding: 0 8px 0 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 28px;
    color: var(--im-muted);
}
.date-style-pill-split .date-tag:after, .date-style-pill-split .date-tag__fold { display: none; }

/* New widget styles */
.widget-style-chip .widget-title {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--im-on-accent);
    background: var(--im-accent);
    border-radius: 999px;
}
.widget-style-overline .widget-title {
    background: none;
    color: var(--im-ink);
    border: 0;
    border-top: 3px solid var(--im-accent);
    padding: 10px 0 0;
}
.widget-style-plain .widget-title {
    background: none;
    color: var(--im-ink);
    border: 0;
    padding: 0 0 8px;
    font-weight: 800;
}
.widget-style-shadow-title .widget-title {
    background: none;
    color: var(--im-ink);
    border: 0;
    padding: 0 0 10px;
    text-shadow: 0 2px 0 color-mix(in srgb, var(--im-accent) 25%, transparent);
}
.widget-style-left-rail .widget {
    border-left: 4px solid var(--im-accent);
    padding-left: 14px;
}
.widget-style-left-rail .widget-title {
    background: none;
    color: var(--im-ink);
    border: 0;
    padding: 0 0 8px;
}
.widget-style-boxed-soft .widget {
    background: color-mix(in srgb, var(--im-accent) 6%, var(--im-card));
    border-radius: var(--im-radius-card);
    padding: 14px 16px;
}
.widget-style-boxed-soft .widget-title {
    background: none;
    color: var(--im-ink);
    border: 0;
    padding: 0 0 8px;
}
.widget-style-uppercase .widget-title {
    background: none;
    color: var(--im-muted);
    border: 0;
    padding: 0 0 8px;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.widget-style-divider .widget-title {
    background: none;
    color: var(--im-ink);
    border: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}
.widget-style-divider .widget-title::before,
.widget-style-divider .widget-title::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: var(--im-line-strong);
}


/* Site title & tagline position + indent (Customize > Theme Options > Styling) */
.branding-align-left .site-branding {
    align-items: flex-start;
    text-align: left;
    margin-left: var(--im-branding-indent, 0px);
    margin-right: 0;
}
.branding-align-center .site-branding {
    align-items: center;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    transform: translateX(var(--im-branding-indent, 0px));
}
.branding-align-right .site-branding {
    align-items: flex-end;
    text-align: right;
    margin-left: auto;
    margin-right: var(--im-branding-indent, 0px);
}
.branding-align-center .header-row {
    justify-content: center;
}
.branding-align-right .header-row {
    justify-content: flex-end;
}
/* Keep logo aligned with the title block */
.branding-align-center .site-logo,
.branding-align-right .site-logo { display: flex; }
.branding-align-center .site-logo { justify-content: center; }
.branding-align-right .site-logo { justify-content: flex-end; }

/*--------------------------------------------------------------
# 18. Reading progress, copy button, reading time, print
--------------------------------------------------------------*/
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    height: 3px;
    background: transparent;
    pointer-events: none;
}
.admin-bar .reading-progress { top: 32px; }
@media screen and (max-width: 782px) {
    .admin-bar .reading-progress { top: 46px; }
}
.reading-progress span {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--im-accent);
    transform: scaleX(0);
    transform-origin: 0 50%;
    will-change: transform;
}
.code-box { position: relative; }
.code-box pre { padding-top: 38px; }
.copy-code {
    position: absolute;
    top: 8px;
    right: 10px;
    padding: 3px 10px;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.6;
    color: var(--im-on-accent);
    background: var(--im-accent);
    border: 0;
    border-radius: var(--im-radius-btn);
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.15s ease, background-color 0.15s ease;
}
.copy-code:hover, .copy-code:focus-visible { opacity: 1; }
.copy-code.is-done { background: #15803D; color: #FFFFFF; opacity: 1; }
.reading-time { white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
    .reading-progress span, .copy-code { transition: none; }
}
@media print {
    #topbar, #site-header .primary-navigation, #sidebar, #site-footer, #bottombar, .scroll-btns, .reading-progress,
    .copy-code, .related-posts, .postauthor, #commentsAdd, .comments-nav, .widget-area, .skip-link { display: none !important; }
    body { background: #fff !important; color: #000 !important; }
    .main-container, .container, #page, .article, .single_post { width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; box-shadow: none !important; border: 0 !important; background: none !important; }
    a { color: #000 !important; text-decoration: underline; }
    .post-single-content a[href^="http"]:after { content: " (" attr(href) ")"; font-size: 0.85em; word-break: break-all; }
    pre, blockquote, table, img { page-break-inside: avoid; }
}

/* ============================================================
   More post card looks (Customize > Homepage > Post card look)
   ============================================================ */
.card-style-leaf .post.excerpt, .card-style-leaf .day-block { border: 1px solid var(--im-line); border-radius: 30px 6px 30px 6px; box-shadow: var(--im-shadow); }
.card-style-leaf .post.excerpt:hover { border-color: var(--im-accent); }
.card-style-round .post.excerpt, .card-style-round .day-block { border: 0; border-radius: 30px; box-shadow: 0 18px 36px -24px rgba(0, 0, 0, 0.45); }
.card-style-baseline .post.excerpt, .card-style-baseline .day-block { border: 0; border-bottom: 4px solid var(--im-edge); border-radius: 0; box-shadow: none; }
.card-style-baseline .post.excerpt:hover { border-bottom-color: var(--im-accent); }
.card-style-dashed .post.excerpt, .card-style-dashed .day-block { border: 2px dashed var(--im-line-strong); box-shadow: none; }
.card-style-dashed .post.excerpt:hover { border-color: var(--im-accent); }
.card-style-corners .post.excerpt, .card-style-corners .day-block {
    --cm: var(--im-edge);
    border: 0;
    box-shadow: inset 0 0 0 1px var(--im-line);
    background:
        linear-gradient(var(--cm), var(--cm)) 0 0 / 24px 3px no-repeat,
        linear-gradient(var(--cm), var(--cm)) 0 0 / 3px 24px no-repeat,
        linear-gradient(var(--cm), var(--cm)) 100% 0 / 24px 3px no-repeat,
        linear-gradient(var(--cm), var(--cm)) 100% 0 / 3px 24px no-repeat,
        linear-gradient(var(--cm), var(--cm)) 0 100% / 24px 3px no-repeat,
        linear-gradient(var(--cm), var(--cm)) 0 100% / 3px 24px no-repeat,
        linear-gradient(var(--cm), var(--cm)) 100% 100% / 24px 3px no-repeat,
        linear-gradient(var(--cm), var(--cm)) 100% 100% / 3px 24px no-repeat,
        var(--im-card);
}
.card-style-corners .post.excerpt:hover { --cm: var(--im-accent); }
.card-style-window .post.excerpt, .card-style-window .day-block {
    border: 1px solid var(--im-line-strong);
    border-top: 26px solid transparent;
    border-radius: 10px;
    padding-top: 18px;
    background:
        radial-gradient(circle at 14px 13px, #ff5f57 4.5px, transparent 5px),
        radial-gradient(circle at 32px 13px, #febc2e 4.5px, transparent 5px),
        radial-gradient(circle at 50px 13px, #28c840 4.5px, transparent 5px),
        linear-gradient(color-mix(in srgb, var(--im-edge) 16%, var(--im-card)), color-mix(in srgb, var(--im-edge) 16%, var(--im-card))) 0 0 / 100% 26px no-repeat,
        var(--im-card);
    background-origin: border-box;
    box-shadow: var(--im-shadow);
}
.card-style-inset .post.excerpt, .card-style-inset .day-block { border: 1px solid var(--im-line); background: var(--im-soft); box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.14), inset 0 -1px 0 rgba(255, 255, 255, 0.5); }
.card-style-duotone .post.excerpt, .card-style-duotone .day-block { border: 1px solid var(--im-line); background: linear-gradient(135deg, color-mix(in srgb, var(--im-accent) 16%, var(--im-card)) 0%, var(--im-card) 58%); box-shadow: none; }
.card-style-underglow .post.excerpt, .card-style-underglow .day-block { border: 0; box-shadow: 0 18px 22px -16px var(--im-accent), 0 0 0 1px var(--im-line); }
.card-style-underglow .post.excerpt:hover { box-shadow: 0 26px 30px -16px var(--im-accent), 0 0 0 1px var(--im-line); }
.card-style-stitched .post.excerpt, .card-style-stitched .day-block { border: 0; box-shadow: var(--im-shadow); outline: 2px dashed color-mix(in srgb, var(--im-line-strong) 85%, transparent); outline-offset: -9px; }
.card-style-stitched .post.excerpt:hover { outline-color: var(--im-accent); }
.card-style-bevel .post.excerpt, .card-style-bevel .day-block { border: 1px solid var(--im-line-strong); border-radius: var(--im-radius-media); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 -4px 0 var(--im-line), 0 8px 16px -12px rgba(0, 0, 0, 0.4); }
.card-style-bevel .post.excerpt:hover { border-color: var(--im-line-strong); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 -4px 0 var(--im-accent), 0 8px 16px -12px rgba(0, 0, 0, 0.4); }
.card-style-retro .post.excerpt, .card-style-retro .day-block { border: 3px solid var(--im-edge); border-radius: 14px; box-shadow: 6px 6px 0 var(--im-line-strong); }
.card-style-retro .post.excerpt:hover { transform: translate(-2px, -2px); border-color: var(--im-accent); box-shadow: 8px 8px 0 var(--im-edge); }

/* ============================================================
   More date styles (Customize > Homepage > Date style)
   ============================================================ */
.date-style-slashes .dt-full, .date-style-dot-sep .dt-full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.date-style-slashes .dt-parts, .date-style-dot-sep .dt-parts { display: inline-flex; align-items: baseline; gap: 0.5em; }
.date-style-fold .date-tag__fold, .date-style-underscore .date-tag__fold, .date-style-slashes .date-tag__fold, .date-style-dot-sep .date-tag__fold,
.date-style-gradient-bar .date-tag__fold, .date-style-glass .date-tag__fold, .date-style-bar-left .date-tag__fold, .date-style-floating .date-tag__fold,
.date-style-arrow .date-tag__fold, .date-style-lined .date-tag__fold, .date-style-pulse .date-tag__fold, .date-style-gradient-outline .date-tag__fold,
.date-style-underscore .date-tag:after, .date-style-slashes .date-tag:after, .date-style-dot-sep .date-tag:after, .date-style-gradient-bar .date-tag:after,
.date-style-glass .date-tag:after, .date-style-bar-left .date-tag:after, .date-style-floating .date-tag:after, .date-style-lined .date-tag:after,
.date-style-pulse .date-tag:after, .date-style-gradient-outline .date-tag:after { display: none; }
.date-style-fold .date-tag {
    padding: 0 18px 0 14px;
    font-size: 13px;
    font-weight: 700;
    line-height: 30px;
    color: var(--im-on-accent);
    background: var(--im-accent);
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}
.date-style-fold .date-tag:after { top: 0; right: 0; width: 12px; height: 12px; border: 0; background: var(--im-accent-deep); clip-path: polygon(0 0, 100% 100%, 0 100%); }
.date-style-underscore .date-tag { padding: 0; font-size: 14px; font-weight: 700; line-height: 1.4; color: var(--im-ink); background: none; }
.date-style-underscore .date-tag time { text-decoration: underline 3px var(--im-accent); text-underline-offset: 6px; text-decoration-skip-ink: none; }
.date-style-slashes .date-tag, .date-style-dot-sep .date-tag { padding: 0; font-size: 13px; font-weight: 700; line-height: 1.4; letter-spacing: 0.04em; color: var(--im-muted); background: none; }
.date-style-slashes .dt-mon, .date-style-dot-sep .dt-mon { text-transform: uppercase; }
.date-style-slashes .dt-day:before, .date-style-slashes .dt-yr:before { content: "/"; margin-right: 0.5em; color: var(--im-accent); }
.date-style-dot-sep .dt-day:before, .date-style-dot-sep .dt-yr:before { content: "\00B7"; margin-right: 0.5em; font-weight: 900; color: var(--im-accent); }
.date-style-gradient-bar .date-tag { padding: 0 44px 0 16px; font-size: 13px; font-weight: 700; line-height: 30px; color: var(--im-on-accent); background: linear-gradient(90deg, var(--im-accent) 0, var(--im-accent) 76%, transparent 100%); }
.date-style-glass .date-tag { padding: 0 14px; font-size: 12.5px; font-weight: 600; line-height: 28px; color: var(--im-ink); background: linear-gradient(135deg, color-mix(in srgb, var(--im-accent) 16%, transparent), color-mix(in srgb, var(--im-card) 70%, transparent)); border: 1px solid color-mix(in srgb, var(--im-ink) 14%, transparent); border-radius: 999px; box-shadow: 0 4px 14px -8px rgba(0, 0, 0, 0.35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.date-style-bar-left .date-tag { padding: 2px 0 2px 10px; font-size: 13.5px; font-weight: 800; line-height: 1.25; color: var(--im-ink); background: none; border-left: 4px solid var(--im-accent); }
.date-style-floating .date-tag { padding: 0 14px; font-size: 13px; font-weight: 700; line-height: 30px; color: var(--im-ink); background: var(--im-card); border-radius: 8px; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--im-line); }
.date-style-arrow .date-tag { padding: 0; font-size: 13.5px; font-weight: 700; line-height: 1.4; color: var(--im-link); background: none; }
.date-style-arrow .date-tag:after { position: static; display: inline-block; margin-left: 8px; border: 0; content: "\2192"; transition: transform 0.2s ease; }
.post.excerpt:hover .date-style-arrow .date-tag:after, .date-style-arrow .post.excerpt:hover .date-tag:after { transform: translateX(4px); }
.date-style-lined .date-tag { padding: 5px 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; line-height: 1.4; text-transform: uppercase; color: var(--im-muted); background: none; border-top: 1px solid var(--im-accent); border-bottom: 1px solid var(--im-accent); }
.date-style-pulse .date-tag { padding: 0 0 0 18px; font-size: 13px; font-weight: 700; line-height: 1.4; color: var(--im-ink); background: none; }
.date-style-pulse .date-tag:before { content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px; background: var(--im-accent); border-radius: 50%; animation: im-date-pulse 2s ease-out infinite; }
@keyframes im-date-pulse {
    0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--im-accent) 55%, transparent); }
    70% { box-shadow: 0 0 0 9px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
}
.date-style-gradient-outline .date-tag { padding: 0 14px; font-size: 12.5px; font-weight: 700; line-height: 26px; color: var(--im-ink); border: 2px solid transparent; border-radius: 999px; background: linear-gradient(var(--im-card), var(--im-card)) padding-box, linear-gradient(90deg, var(--im-accent), var(--im-accent-bright, var(--im-edge))) border-box; }
/* label and text styles sit inside the card padding (only Fold and Gradient bar keep the overhang to the card edge) */
.date-style-underscore .date-tag, .date-style-slashes .date-tag, .date-style-dot-sep .date-tag, .date-style-glass .date-tag,
.date-style-bar-left .date-tag, .date-style-floating .date-tag, .date-style-arrow .date-tag, .date-style-lined .date-tag,
.date-style-pulse .date-tag, .date-style-gradient-outline .date-tag { margin-left: 0; }
@media (prefers-reduced-motion: reduce) {
    .date-style-pulse .date-tag:before, .date-style-arrow .date-tag:after { animation: none; transition: none; }
}

/* ============================================================
   More date positions (Customize > Homepage > Date position)
   ============================================================ */
.date-pos-edge-left .post.excerpt > .date-tag,
.date-pos-edge-center .post.excerpt > .date-tag,
.date-pos-edge-right .post.excerpt > .date-tag,
.date-pos-bottom-left .post.excerpt > .date-tag { position: absolute; z-index: 2; margin: 0 !important; }
.date-pos-edge-left .post.excerpt > .date-tag { top: calc(-14px - var(--im-date-lift, 0px)); left: calc(18px + var(--im-date-indent, 0px)); right: auto; }
.date-pos-edge-right .post.excerpt > .date-tag { top: calc(-14px - var(--im-date-lift, 0px)); right: calc(18px + var(--im-date-indent, 0px)); left: auto; }
.date-pos-edge-center .post.excerpt > .date-tag { top: calc(-14px - var(--im-date-lift, 0px)); left: calc(var(--im-date-indent, 0px) * 2); right: 0; margin-left: auto !important; margin-right: auto !important; }
.date-pos-bottom-left .post.excerpt > .date-tag { top: auto; bottom: calc(26px + var(--im-date-lift, 0px)); left: calc(var(--im-pad) + var(--im-date-indent, 0px)); right: auto; }
.date-pos-edge-left .date-tag:after, .date-pos-edge-left .date-tag__fold,
.date-pos-edge-center .date-tag:after, .date-pos-edge-center .date-tag__fold,
.date-pos-edge-right .date-tag:after, .date-pos-edge-right .date-tag__fold,
.date-pos-bottom-left .date-tag__fold { display: none; }

/* Footer credit hidden on phones (Customize > Footer credit > Show on phones) */
@media screen and (max-width: 600px) {
    .footer-credit--nophones { display: none; }
}

/* Phones and small tablets: the classic centred site title and tagline (unless "Same position and indent as on desktop" is chosen) */
@media screen and (max-width: 865px) {
    body.branding-mobile-center .header-row { align-items: center; }
    body.branding-mobile-center .site-branding { align-items: center; margin-left: 0; margin-right: 0; text-align: center; transform: none; }
    body.branding-mobile-center .site-description { left: 0; }
    body.branding-mobile-center .site-logo { display: flex; justify-content: center; }
    body.branding-mobile-center.tagline-shape-bar .site-description { padding-left: 0; border-left: 0; }
    /* footer credit centred */
    #site-footer .footer-credit,
    #site-footer .footer-credit--left,
    #site-footer .footer-credit--right,
    .footer-row .footer-credit { text-align: center; }
    .footer-row { align-items: stretch; flex-direction: column; }
    .footer-row .bottombar-inner { justify-content: center; }
}
