@import url("https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=block");

:root {
    --site-content-max-width: 1120px;
    --site-sidebar-width: clamp(220px, 20vw, 260px);

    /* Background shades */
    --color-bg-deep: #090909;
    --color-bg-main: #0e0e10;
    --color-bg-subtle: #171717;
    --color-bg-raised: #17161a;
    --color-bg-surface: #191919;
    --color-bg-control: #222222;
    --color-bg-hover: #242424;

    /* Text hierarchy + states */
    --color-text-heading: #ffffff;
    --color-text-main: #eeeeee;
    --color-text-body: #d2d2d2;
    --color-text-emphasis: #f4f4f4;
    --color-text-soft: #d8d8d8;
    --color-text-muted: #aaaaaa;
    --color-text-subtle: #8e8e8e;
    --color-text-placeholder: #888888;
    --color-text-disabled: #777777;
    --color-text-hover: #ffffff;
    --color-text-link: #ffffff;
    --color-text-link-hover: #ffffff;

    /* Accent palette */
    --color-primary: #836fff;
    --color-primary-hover: #c5b3ff;
    --color-primary-soft: #997aff;
    --color-primary-muted: #75699b;
    --color-primary-control: #382b79;

    /* Shared tag / pill system */
    --tag-bg: var(--color-bg-surface);
    --tag-bg-hover: var(--color-bg-hover);
    --tag-text: var(--color-text-muted);
    --tag-text-hover: var(--color-text-hover);
    --tag-border: var(--color-border-control);
    --tag-border-hover: var(--color-text-muted);

    --tag-type-text: var(--color-primary-soft);
    --tag-type-text-hover: var(--color-primary-hover);
    --tag-type-border: var(--color-primary-control);
    --tag-type-border-hover: var(--color-primary);

    --tag-min-height: 32px;
    --tag-padding-y: 6px;
    --tag-padding-x: 11px;
    --tag-radius: 999px;
    --tag-font-size: 13px;
    --tag-font-weight: 500;
    --tag-line-height: 1;
    --tag-letter-spacing: 0.02em;

    /* Borders / dividers */
    --color-border-main: #2d2d2d;
    --color-border-soft: #222222;
    --color-border-entity: #303030;
    --color-border-control: #333333;
    --color-border-muted: #444444;
    --color-border-hover: #4a4a4a;
    --color-border-emphasis: #555555;
    --color-border-link: #666666;

    /* Very subtle overlays */
    --color-overlay-soft: rgba(255, 255, 255, 0.014);
    --color-overlay-faint: rgba(255, 255, 255, 0.006);
    --color-overlay-border: rgba(255, 255, 255, 0.022);

    /* Global heading typography */
    --site-heading-color: var(--color-text-heading);

    --site-h1-size: clamp(44px, 5.2vw, 82px);
    --site-h1-weight: 600;
    --site-h1-line-height: 0.98;
    --site-h1-letter-spacing: -0.04em;
    --site-h1-margin-top: 0;
    --site-h1-margin-bottom: 18px;

    --site-h2-size: clamp(28px, 3vw, 42px);
    --site-h3-size: clamp(23px, 2.2vw, 32px);
    --site-h4-size: 21px;
    --site-subheading-weight: 500;
    --site-subheading-line-height: 1.12;
    --site-subheading-letter-spacing: -0.02em;
    --site-subheading-margin: 0.5em 0 0.6em;


    /* Canonical MMDB rich-text typography */
    --mmdb-rich-text-font-size: clamp(17px, 1.3vw, 20px);
    --mmdb-rich-text-line-height: 1.72;
    --mmdb-rich-text-block-spacing: 0;
    --mmdb-rich-text-list-padding: 1.35em;
    --mmdb-rich-text-list-item-spacing: 0.18em;
    --mmdb-rich-text-blockquote-padding: 24px;
    --mmdb-rich-text-mobile-font-size: 17px;
    --mmdb-rich-text-mobile-line-height: 1.68;
}


/* =========================================================
   Base
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--color-bg-main);
    color: var(--color-text-main);
    font-family: "Jost", sans-serif;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--color-bg-main);
    color: var(--color-text-main);
    font-family: "Jost", sans-serif;
}

body.menu-open {
    overflow: hidden;
}

button,
input,
textarea,
select {
    font-family: "Jost", sans-serif;
}

a {
    margin: 0;
    padding: 0;
    color: inherit;
}


/* =========================================================
   Global typography
   ========================================================= */

body .site-main h1:not(.mmdb-entity-card__title):not(.entity-card__title),
body .site-main .ccm-block-page-title,
body .site-main .ccm-block-page-title.page-title {
    margin-top: var(--site-h1-margin-top) !important;
    margin-bottom: var(--site-h1-margin-bottom) !important;

    color: var(--site-heading-color) !important;

    font-family: "Jost", sans-serif !important;
    font-size: var(--site-h1-size) !important;
    font-weight: var(--site-h1-weight) !important;
    line-height: var(--site-h1-line-height) !important;
    letter-spacing: var(--site-h1-letter-spacing) !important;
    text-wrap: balance;
}

body .site-main h2:not(.mmdb-entity-card__title):not(.entity-card__title):not(.accordion-header),
body .site-main h3:not(.mmdb-entity-card__title):not(.entity-card__title):not(.accordion-header),
body .site-main h4:not(.mmdb-entity-card__title):not(.entity-card__title):not(.accordion-header) {
    margin: var(--site-subheading-margin) !important;

    color: var(--site-heading-color) !important;

    font-family: "Jost", sans-serif !important;
    font-weight: var(--site-subheading-weight) !important;
    line-height: var(--site-subheading-line-height) !important;
    letter-spacing: var(--site-subheading-letter-spacing) !important;
}

body .site-main h2:not(.mmdb-entity-card__title):not(.entity-card__title) {
    font-size: var(--site-h2-size) !important;
}

body .site-main h3:not(.mmdb-entity-card__title):not(.entity-card__title):not(.accordion-header) {
    font-size: var(--site-h3-size) !important;
}

body .site-main h4:not(.mmdb-entity-card__title):not(.entity-card__title) {
    font-size: var(--site-h4-size) !important;
}

/* H2 directly after H1 should be close, not floating away. */
body .site-main h1:not(.mmdb-entity-card__title):not(.entity-card__title)
+ h2:not(.mmdb-entity-card__title):not(.entity-card__title) {
    margin-top: 0.19em !important;
}

/* Normal content rhythm.
   These are the source rules for ordinary Concrete content, not overrides. */
.site-main p,
.site-main ul,
.site-main ol,
.site-main blockquote {
    margin-top: 0;
    margin-bottom: 0.9em;
}

.site-main ul,
.site-main ol {
    padding-left: var(--mmdb-rich-text-list-padding);
}

.site-main li {
    margin: var(--mmdb-rich-text-list-item-spacing) 0;
}

.site-main li > ul,
.site-main li > ol {
    margin-top: 0.3em;
    margin-bottom: 0.3em;
}

.site-main p a,
.site-main li a,
.site-main blockquote a {
    display: inline;
    margin: 0;
    padding: 0;
}


/* =========================================================
   Sidebar
   ========================================================= */

.site-sidebar {
    position: fixed;
    top: 0;
    left: 0;

    display: flex;
    flex-direction: column;

    width: var(--site-sidebar-width);
    height: 100vh;

    padding: 24px;

    overflow-x: hidden;
    overflow-y: auto;

    background: var(--color-bg-main);
    border-right: 1px solid var(--color-border-main);

    z-index: 1000;
}

.site-navigation {
    width: 100%;
    flex: 0 0 auto;
}

.site-sidebar-footer {
    width: calc(100% + 48px);

    margin: auto -24px -24px;
    padding: 18px 24px 22px;

    background: var(--color-bg-main);
    color: var(--color-text-disabled);

    border-top: 1px solid var(--color-border-soft);

    font-size: 13px;
    line-height: 1.45;
}

/*
 * The footer itself imposes no columns.
 * Concrete layouts/containers placed in the single "Sidebar Footer"
 * Global Area are the source of row/column structure.
 */
.site-sidebar-footer > .ccm-area,
.site-sidebar-footer .ccm-area,
.site-sidebar-footer .ccm-layout,
.site-sidebar-footer .ccm-layout-row {
    width: 100%;
}

.site-sidebar-footer .ccm-layout-row {
    margin-left: 0;
    margin-right: 0;
}

.site-sidebar-footer .ccm-layout-column {
    min-width: 0;
}

.site-sidebar-footer p {
    margin: 0;
}

.site-sidebar-footer a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.site-sidebar-footer a:hover,
.site-sidebar-footer a:focus-visible {
    color: var(--color-text-hover);
}

/* Native Concrete Social Links block */
.site-sidebar-footer .ccm-block-social-links {
    width: 100%;
    margin: 0;
    padding: 0;
}

.site-sidebar-footer .ccm-block-social-links ul.list-inline {
    display: flex;
    width: 100%;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.site-sidebar-footer .ccm-block-social-links li.list-inline-item {
    margin: 0 !important;
    padding: 0;
}

.site-sidebar-footer .ccm-block-social-links a {
    display: flex;
    width: 26px;
    height: 26px;

    align-items: center;
    justify-content: center;

    margin: 0;
    padding: 0;

    color: var(--color-text-muted);

    background: transparent;
    border: 0;
    border-radius: 0;

    text-decoration: none;

    transition:
        color 0.15s ease,
        opacity 0.15s ease;
}

.site-sidebar-footer .ccm-block-social-links a:hover,
.site-sidebar-footer .ccm-block-social-links a:focus-visible {
    color: var(--color-text-hover);
}

.site-sidebar-footer .ccm-block-social-links i {
    display: block;
    width: 24px;
    height: 24px;

    font-size: 22px;
    line-height: 24px;
    text-align: center;
}

.site-sidebar-footer .ccm-block-social-links svg {
    display: block;
    width: 22px;
    height: 22px;
}

/* Fixed global copyright */
.site-copyright {
    position: fixed;
    right: 24px;
    bottom: 18px;

    z-index: 900;

    color: var(--color-text-disabled);

    font-family: "Jost", sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;

    pointer-events: none;
    user-select: none;
}


/* =========================================================
   Custom Top Navigation Bar template
   ========================================================= */

.mm-sidebar-navigation {
    width: 100%;
}

.mm-sidebar-brand {
    display: flex;
    width: 100%;
    margin: 0 0 32px;
    padding: 0;
    align-items: center;
    gap: 12px;
    color: var(--color-text-heading);
    text-decoration: none;
}

.mm-sidebar-brand__logo {
    display: block;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    object-fit: contain;
}

.mm-sidebar-brand__text {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.2;
}

.mm-sidebar-menu {
    width: 100%;
}

.mm-sidebar-menu__list,
.mm-sidebar-menu__children {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mm-sidebar-menu__item,
.mm-sidebar-menu__child {
    margin: 0;
    padding: 0;
}

.mm-sidebar-menu__link {
    display: block;
    width: 100%;
    padding: 8px 0;
    color: var(--color-text-muted);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    text-decoration: none;
    transition: color 0.15s ease;
}

.mm-sidebar-menu__link:hover,
.mm-sidebar-menu__link:focus-visible,
.mm-sidebar-menu__link.is-active,
.mm-sidebar-menu__link.is-active-parent {
    color: var(--color-text-hover);
}

.mm-sidebar-menu__children {
    padding-left: 16px;
}

.mm-sidebar-menu__child-link {
    display: block;
    padding: 6px 0;
    color: var(--color-text-disabled);
    font-size: 14px;
    line-height: 1.3;
    text-decoration: none;
    transition: color 0.15s ease;
}

.mm-sidebar-menu__child-link:hover,
.mm-sidebar-menu__child-link:focus-visible,
.mm-sidebar-menu__child-link.is-active,
.mm-sidebar-menu__child-link.is-active-parent {
    color: var(--color-text-hover);
}

.mm-sidebar-menu__link,
.mm-sidebar-menu__child-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mm-sidebar-menu__icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    color: currentColor;
}

.mm-sidebar-menu__icon--material {
    --mm-sidebar-icon-fill: 0;
    --mm-sidebar-icon-weight: 300;
    --mm-sidebar-icon-grade: 0;
    --mm-sidebar-icon-optical-size: 24;

    overflow: hidden;

    font-family: "Material Symbols Outlined";
    font-size: 20px;
    font-style: normal;
    font-weight: normal;
    line-height: 20px;

    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
    word-wrap: normal;

    direction: ltr;

    font-feature-settings: "liga";
    -webkit-font-feature-settings: "liga";

    font-variation-settings:
        "FILL" var(--mm-sidebar-icon-fill),
        "wght" var(--mm-sidebar-icon-weight),
        "GRAD" var(--mm-sidebar-icon-grade),
        "opsz" var(--mm-sidebar-icon-optical-size);

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    text-rendering: optimizeLegibility;
}

.mm-sidebar-menu__icon--custom {
    background: currentColor;
    -webkit-mask-image: var(--mm-sidebar-custom-icon);
    mask-image: var(--mm-sidebar-custom-icon);
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.mm-sidebar-menu__label {
    min-width: 0;
}

.mm-sidebar-search {
    display: flex;
    width: 100%;
    margin-top: 24px;
    gap: 8px;
}

.mm-sidebar-search__input {
    min-width: 0;
    width: 100%;
    padding: 8px 10px;
    background: var(--color-bg-raised);
    color: var(--color-text-main);
    border: 1px solid var(--color-border-control);
    border-radius: 6px;
}

.mm-sidebar-search__button {
    padding: 8px 10px;
    background: var(--color-bg-control);
    color: var(--color-text-main);
    border: 1px solid var(--color-border-control);
    border-radius: 6px;
    cursor: pointer;
}


/* =========================================================
   Main content
   ========================================================= */

.site-main {
    min-width: 0;
    margin-left: var(--site-sidebar-width);
    padding: 64px;
}

.site-content-shell {
    width: min(100%, var(--site-content-max-width));
    margin-left: auto;
    margin-right: auto;
}

.mmdb-entity-layout {
    width: min(100%, var(--site-content-max-width));
    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   Native Concrete media
   ========================================================= */

.site-main .ccm-image-block,
.site-main video,
.site-main iframe {
    max-width: 100%;
    border: 0 !important;
    outline: 0 !important;
    border-radius: clamp(10px, 1.3vw, 18px);
    box-shadow: none !important;
}

.site-main .ccm-image-block {
    display: block;
    height: auto;
}

.site-main video,
.site-main iframe {
    display: block;
    overflow: hidden;
    background: transparent !important;
}

.site-main video {
    height: auto;
    object-fit: contain;
}

.site-main video:focus,
.site-main video:focus-visible,
.site-main iframe:focus,
.site-main iframe:focus-visible {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

.site-main .ccm-block-youtube-wrapper,
.site-main .ccm-block-youtube-video,
.site-main .ccm-block-video-wrapper,
.site-main .ccm-block-embed-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border: 0 !important;
    outline: 0 !important;
    border-radius: clamp(10px, 1.3vw, 18px);
    box-shadow: none !important;
}

.site-main .ccm-block-youtube-wrapper iframe,
.site-main .ccm-block-youtube-video iframe,
.site-main .ccm-block-video-wrapper iframe,
.site-main .ccm-block-embed-wrapper iframe {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    border: 0 !important;
    outline: 0 !important;
    border-radius: inherit !important;
    box-shadow: none !important;
}


/* =========================================================
   Native Concrete accordion
   ========================================================= */

.site-main .ccm-block-accordion {
    width: 100%;
    margin: 0;
    background: transparent;
}

.site-main .ccm-block-accordion .accordion-item {
    overflow: hidden;
    margin: 0;
    background: transparent;
    color: var(--color-text-body);
    border: 0;
    border-top: 1px solid var(--color-border-main);
    border-radius: 0 !important;
}

.site-main .ccm-block-accordion .accordion-item:last-child {
    border-bottom: 1px solid var(--color-border-main);
}

body .site-main .ccm-block-accordion h3.accordion-header {
    margin: 0 !important;
    padding: 0 !important;
    font-family: "Jost", sans-serif !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    letter-spacing: normal !important;
}

.site-main .ccm-block-accordion .accordion-button {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 58px;
    margin: 0;
    padding: clamp(16px, 1.6vw, 20px) 52px clamp(16px, 1.6vw, 20px) 0;
    background: transparent !important;
    color: var(--color-text-main) !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    font-family: "Jost", sans-serif;
    font-size: clamp(16px, 1.15vw, 18px);
    font-weight: 500;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.site-main .ccm-block-accordion .accordion-button:hover,
.site-main .ccm-block-accordion .accordion-button:focus-visible,
.site-main .ccm-block-accordion .accordion-button:not(.collapsed) {
    background: transparent !important;
    color: var(--color-text-heading) !important;
}

.site-main .ccm-block-accordion .accordion-button::after {
    content: "expand_more";
    position: absolute;
    top: 50%;
    right: 0;
    width: 28px;
    height: 28px;
    margin: 0;
    background: none !important;
    color: var(--color-text-muted);
    font-family: "Material Symbols Outlined";
    font-size: 26px;
    font-style: normal;
    font-weight: normal;
    line-height: 28px;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
    font-feature-settings: "liga";
    -webkit-font-feature-settings: "liga";
    font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 26;
    transform: translateY(-50%) rotate(0deg);
    transition: color 0.15s ease, transform 0.2s ease;
}

.site-main .ccm-block-accordion .accordion-button:not(.collapsed)::after {
    color: var(--color-text-heading);
    transform: translateY(-50%) rotate(180deg);
}

.site-main .ccm-block-accordion .accordion-collapse {
    display: none;
    margin: 0;
    background: transparent;
}

.site-main .ccm-block-accordion .accordion-collapse.show {
    display: block;
}

.site-main .ccm-block-accordion .accordion-body {
    padding: 0 0 clamp(22px, 2vw, 30px);
    background: transparent;
    color: var(--color-text-body);
    font-size: clamp(15px, 1vw, 17px);
    line-height: 1.65;
}

.site-main .ccm-block-accordion .accordion-body > :first-child {
    margin-top: 0;
}

.site-main .ccm-block-accordion .accordion-body > :last-child {
    margin-bottom: 0;
}


/* =========================================================
   Hamburger
   ========================================================= */

.site-menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    padding: 0;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--color-text-heading);
    border: 0;
    cursor: pointer;
}

.site-menu-toggle__icon {
    position: relative;
    display: block;
    width: 22px;
    height: 16px;
}

.site-menu-toggle__icon::before,
.site-menu-toggle__icon::after,
.site-menu-toggle__icon span {
    content: "";
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: currentColor;
    transition:
        transform 0.2s ease,
        top 0.2s ease,
        opacity 0.2s ease;
}

.site-menu-toggle__icon::before { top: 0; }
.site-menu-toggle__icon span { top: 7px; }
.site-menu-toggle__icon::after { top: 14px; }

.site-menu-toggle.is-open .site-menu-toggle__icon::before {
    top: 7px;
    transform: rotate(45deg);
}

.site-menu-toggle.is-open .site-menu-toggle__icon span {
    opacity: 0;
}

.site-menu-toggle.is-open .site-menu-toggle__icon::after {
    top: 7px;
    transform: rotate(-45deg);
}


/* =========================================================
   Entity Overview
   ========================================================= */

.entity-overview {
    width: 100%;
}

.entity-grid {
    display: grid;
    grid-template-columns:
        repeat(
            auto-fill,
            minmax(
                min(100%, 300px),
                1fr
            )
        );
    gap: 24px;
}

.entity-card {
    overflow: hidden;
    background: var(--color-bg-raised);
    border: 1px solid var(--color-border-main);
    border-radius: 16px;
}

.entity-card__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--color-bg-control);
}

.entity-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.entity-card__content {
    padding: 20px;
}

.entity-card__title {
    margin: 0;
    color: var(--color-text-heading);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.1;
}

.entity-card__summary {
    margin: 12px 0 0;
    color: var(--color-text-muted);
    font-size: 15px;
    line-height: 1.5;
}


/* =========================================================
   MMDB single entity view
   ========================================================= */

.mmdb-entity-page {
    --mmdb-entity-content-width: var(--site-content-max-width);
    --mmdb-entity-muted: var(--color-text-subtle);
    --mmdb-entity-border: var(--color-border-entity);
    --mmdb-entity-surface: var(--color-bg-surface);
    --mmdb-entity-surface-hover: var(--color-bg-hover);
    --mmdb-entity-section-gap: clamp(40px, 5vw, 72px);
    --mmdb-gallery-gap: clamp(10px, 1.1vw, 14px);

    padding-top: clamp(28px, 3vw, 48px);
    padding-bottom: clamp(72px, 8vw, 120px);
}

.mmdb-entity-page .ccm-area {
    width: 100%;
}

.mmdb-entity-page .mmdb-image,
.mmdb-entity-page .ccm-block-page-title.page-title,
.mmdb-entity-page h1.ccm-block-page-title,
.mmdb-entity-page h1.page-title,
.mmdb-entity-page .mmdb-meta,
.mmdb-entity-page .mmdb-tags,
.mmdb-entity-page .mmdb-date,
.mmdb-entity-page .mmdb-gallery,
.mmdb-entity-page .mmdb-rich-text,
.mmdb-entity-page .mmdb-block-placeholder {
    width: min(100%, var(--mmdb-entity-content-width));
    margin-left: auto;
    margin-right: auto;
}

.mmdb-entity-page .mmdb-image {
    aspect-ratio: 16 / 9;
    margin-top: 0;
    margin-bottom: clamp(34px, 4.5vw, 56px);
    overflow: hidden;
    background: var(--color-bg-raised);
    border-radius: clamp(10px, 1.3vw, 18px);
}

.mmdb-entity-page .mmdb-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mmdb-entity-page .mmdb-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 0;
    margin-bottom: 10px;
    gap: 8px;
}

.mmdb-entity-page .mmdb-tags__link {
    display: inline-flex;
    min-height: 32px;
    padding: 6px 11px;
    align-items: center;
    background: var(--mmdb-entity-surface);
    color: var(--color-text-soft);
    border: 1px solid var(--mmdb-entity-border);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease,
        transform 0.15s ease;
}

.mmdb-entity-page .mmdb-tags__link:hover,
.mmdb-entity-page .mmdb-tags__link:focus-visible {
    background: var(--mmdb-entity-surface-hover);
    color: var(--color-text-heading);
    border-color: var(--color-border-hover);
    transform: translateY(-1px);
}

.mmdb-entity-page .mmdb-date {
    display: block;
    margin-top: 0;
    margin-bottom: var(--mmdb-entity-section-gap);
    color: var(--mmdb-entity-muted);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.02em;
}

.mmdb-entity-page:has(.mmdb-meta) .mmdb-tags,
.mmdb-entity-page:has(.mmdb-meta) .mmdb-date {
    display: none;
}

.mmdb-entity-page .mmdb-gallery {
    display: grid;
    margin-top: 0;
    margin-bottom: var(--mmdb-entity-section-gap);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--mmdb-gallery-gap);
}

.mmdb-entity-page .mmdb-gallery__item {
    position: relative;
    aspect-ratio: 1 / 1;
    margin: 0;
    overflow: hidden;
    background: var(--mmdb-entity-surface);
    border-radius: 10px;
}


.mmdb-entity-page .mmdb-gallery__item video {
    aspect-ratio: auto;
    background: var(--mmdb-entity-surface) !important;
}

.mmdb-entity-page .mmdb-gallery__link {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    cursor: pointer;
}

.mmdb-entity-page .mmdb-gallery__item img,
.mmdb-entity-page .mmdb-gallery__item video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
    outline: 0;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.25s ease;
}

.mmdb-entity-page .mmdb-gallery__item:not(.mmdb-gallery__item--ghost):hover img,
.mmdb-entity-page .mmdb-gallery__item:not(.mmdb-gallery__item--ghost):hover video {
    transform: scale(1.025);
}

.mmdb-entity-page .mmdb-gallery__item--ghost {
    display: none;
    background:
        linear-gradient(
            135deg,
            var(--color-overlay-soft),
            var(--color-overlay-faint)
        );
    border: 1px solid var(--color-overlay-border);
    pointer-events: none;
}

.mmdb-entity-page .mmdb-gallery--mod4-1 .mmdb-gallery__item--ghost-1,
.mmdb-entity-page .mmdb-gallery--mod4-1 .mmdb-gallery__item--ghost-2,
.mmdb-entity-page .mmdb-gallery--mod4-1 .mmdb-gallery__item--ghost-3,
.mmdb-entity-page .mmdb-gallery--mod4-2 .mmdb-gallery__item--ghost-1,
.mmdb-entity-page .mmdb-gallery--mod4-2 .mmdb-gallery__item--ghost-2,
.mmdb-entity-page .mmdb-gallery--mod4-3 .mmdb-gallery__item--ghost-1 {
    display: block;
}

.mmdb-entity-page .mmdb-rich-text {
    margin-top: 0;
    margin-bottom: 0;
    color: var(--color-text-body);
    font-size: var(--mmdb-rich-text-font-size);
    line-height: var(--mmdb-rich-text-line-height);
}

.mmdb-entity-page .mmdb-rich-text > :first-child {
    margin-top: 0;
}

.mmdb-entity-page .mmdb-rich-text > :last-child {
    margin-bottom: 0;
}

.mmdb-entity-page .mmdb-rich-text p,
.mmdb-entity-page .mmdb-rich-text ul,
.mmdb-entity-page .mmdb-rich-text ol,
.mmdb-entity-page .mmdb-rich-text blockquote {
    margin-top: 0;
    margin-bottom: var(--mmdb-rich-text-block-spacing);
}

.mmdb-entity-page .mmdb-rich-text ul,
.mmdb-entity-page .mmdb-rich-text ol {
    padding-left: var(--mmdb-rich-text-list-padding);
}

.mmdb-entity-page .mmdb-rich-text li {
    margin: var(--mmdb-rich-text-list-item-spacing) 0;
}

.mmdb-entity-page .mmdb-rich-text a {
    display: inline;
    margin: 0;
    padding: 0;

    color: var(--color-text-link);

    text-decoration-color: var(--color-border-link);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

.mmdb-entity-page .mmdb-rich-text a:hover,
.mmdb-entity-page .mmdb-rich-text a:focus-visible {
    text-decoration-color: var(--color-text-link-hover);
}

.mmdb-entity-page .mmdb-rich-text strong {
    color: var(--color-text-emphasis);
    font-weight: 500;
}

.mmdb-entity-page .mmdb-rich-text blockquote {
    padding-left: var(--mmdb-rich-text-blockquote-padding);
    color: var(--color-text-main);
    border-left: 2px solid var(--color-border-emphasis);
}

.mmdb-entity-page .mmdb-rich-text img,
.mmdb-entity-page .mmdb-rich-text video,
.mmdb-entity-page .mmdb-rich-text iframe {
    max-width: 100%;
    border-radius: clamp(10px, 1.3vw, 18px);
}

.mmdb-entity-page .mmdb-block-placeholder {
    margin-top: 16px;
    margin-bottom: 16px;
    padding: 16px 18px;
    background: var(--color-bg-subtle);
    color: var(--color-text-placeholder);
    border: 1px dashed var(--color-border-muted);
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.4;
    opacity: 1;
}

.ccm-edit-mode .mmdb-entity-page .mmdb-image,
.ccm-edit-mode .mmdb-entity-page .mmdb-gallery,
.ccm-edit-mode .mmdb-entity-page .mmdb-rich-text {
    position: relative;
}

@media (max-width: 640px) {
    .mmdb-entity-page .mmdb-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mmdb-entity-page .mmdb-gallery__item--ghost {
        display: none !important;
    }

    .mmdb-entity-page .mmdb-gallery--mod2-1 .mmdb-gallery__item--ghost-1 {
        display: block !important;
    }
}


/* =========================================================
   Concrete editing
   ========================================================= */

.ccm-page {
    min-height: 100vh;
}

.ccm-area {
    min-height: 1px;
}

body.ccm-toolbar-visible .site-sidebar,
.ccm-toolbar-visible .site-sidebar {
    top: 48px;
    height: calc(100vh - 48px);
}

.ccm-edit-mode .site-sidebar,
body.ccm-edit-mode .site-sidebar {
    z-index: auto;
    overflow: visible;
}



/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 800px) {
    .site-copyright {
        right: 16px;
        bottom: 14px;
    }

    .site-sidebar.is-open .site-sidebar-footer .ccm-block-social-links a {
        width: 32px;
        height: 32px;
    }

    .site-sidebar.is-open .site-sidebar-footer .ccm-block-social-links i {
        width: 30px;
        height: 30px;
        font-size: clamp(24px, 6vw, 28px);
        line-height: 30px;
    }

    .site-sidebar.is-open .site-sidebar-footer .ccm-block-social-links svg {
        width: 28px;
        height: 28px;
    }



    :root {
        --site-h1-size: clamp(38px, 11vw, 60px);
        --site-h1-line-height: 1;
        --site-h1-margin-bottom: 14px;
    }

    .site-sidebar {
        top: 0;
        left: 0;
        width: 100%;
        height: 72px;
        padding: 12px 16px;
        overflow: hidden;
        background: var(--color-bg-main);
        border-right: 0;
        border-bottom: 1px solid var(--color-border-main);
        transition: height 0.25s ease;
        z-index: 1100;
    }

    .site-sidebar.is-open {
        height: 100dvh;
        overflow-y: auto;
    }

    .site-sidebar:not(.is-open) .site-sidebar-footer {
        display: none;
    }

    .site-sidebar.is-open .site-sidebar-footer {
        display: flex;
        width: calc(100% + 32px);
        margin: auto -16px -12px;
        padding: 36px 32px 40px;
        flex-direction: column;
        gap: 20px;
        font-size: 16px;
    }

    .site-sidebar.is-open .site-sidebar-footer > .ccm-area {
        width: 100%;
    }

    .site-sidebar.is-open .site-sidebar-footer .ccm-block {
        width: 100%;
    }

    .mm-sidebar-brand {
        width: calc(100% - 64px);
        height: 48px;
        margin: 0;
    }

    .mm-sidebar-brand__logo {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .mm-sidebar-brand__text {
        font-size: 16px;
    }

    .site-menu-toggle {
        position: absolute;
        top: 12px;
        right: 16px;
        display: flex;
        z-index: 10;
    }

    .site-sidebar:not(.is-open) .mm-sidebar-menu,
    .site-sidebar:not(.is-open) .mm-sidebar-search {
        display: none;
    }

    .site-sidebar.is-open .mm-sidebar-menu {
        display: block;
        margin-top: 32px;
    }

    .mm-sidebar-menu__link {
        padding: 20px 16px;
        font-size: 24px;
        line-height: 1.2;
    }

    .mm-sidebar-menu__child-link {
        padding: 14px 16px;
        font-size: 18px;
    }

    .site-main {
        margin-left: 0;
        padding:
            104px
            24px
            48px;
    }

    .entity-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .entity-card__title {
        font-size: 22px;
    }

    .mmdb-entity-page {
        padding:
            96px
            20px
            64px;
    }

    .mmdb-entity-page .mmdb-image {
        margin-bottom: 30px;
        border-radius: 10px;
    }

    .mmdb-entity-page .mmdb-date {
        margin-bottom: 42px;
    }

    .mmdb-entity-page .mmdb-gallery {
        margin-left: 0;
        margin-bottom: 48px;
    }

    .mmdb-entity-page .mmdb-rich-text {
        font-size: var(--mmdb-rich-text-mobile-font-size);
        line-height: var(--mmdb-rich-text-mobile-line-height);
    }

    body.ccm-toolbar-visible .site-sidebar,
    .ccm-toolbar-visible .site-sidebar {
        top: 48px;
        height: 72px;
    }

    body.ccm-toolbar-visible .site-sidebar.is-open,
    .ccm-toolbar-visible .site-sidebar.is-open {
        height: calc(100dvh - 48px);
    }

    .ccm-edit-mode .site-sidebar,
    body.ccm-edit-mode .site-sidebar {
        z-index: auto;
        overflow: visible;
    }

    .mm-sidebar-menu__icon {
        width: 26px;
        height: 26px;
        flex-basis: 26px;
    }

    .mm-sidebar-menu__icon--material {
        --mm-sidebar-icon-optical-size: 26;
        font-size: 26px;
        line-height: 26px;
    }
}


/* =========================================================
   MMDB entity gallery density v1.7.3
   Count-aware up to 8 columns, with width-aware responsive caps.
   JS sets --mmdb-gallery-columns and exactly the required ghost slots.
   ========================================================= */

.mmdb-entity-page .mmdb-gallery {
    grid-template-columns: repeat(var(--mmdb-gallery-columns, 4), minmax(0, 1fr));
}

.mmdb-entity-page .mmdb-gallery__item--ghost {
    display: none;
}

/* =========================================================
   Native Concrete layouts in the Sidebar Footer
   ========================================================= */

.site-sidebar-footer .row {
    --bs-gutter-x: 16px;
    --bs-gutter-y: 12px;

    width: auto;
}

.site-sidebar-footer [class*="col-"] {
    min-width: 0;
}

.site-sidebar-footer .ccm-layout-column-wrapper,
.site-sidebar-footer .ccm-layout-column {
    min-width: 0;
}

.site-sidebar-footer .ccm-layout-column .ccm-block {
    margin-bottom: 0;
}

@media (max-width: 800px) {
    .site-sidebar-footer .row {
        --bs-gutter-x: 12px;
        --bs-gutter-y: 12px;
    }
}

/* =========================================================
   Mathias Mars Containers
   ========================================================= */

.mm-container {
    width: 100%;
    min-width: 0;
}

.mm-container__row {
    display: grid;
    width: 100%;
    min-width: 0;
    gap: 16px;
}

.mm-container__column {
    min-width: 0;
}

.mm-container--two .mm-container__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mm-container--three .mm-container__row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mm-container--four .mm-container__row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mm-container--one-two .mm-container__row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}

.mm-container--two-one .mm-container__row {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

/*
 * Sidebar containers stay compact. Native Social Links can be placed
 * in any column/row and inherit the sidebar block styling already present.
 */
.site-sidebar-footer .mm-container__row {
    gap: 12px;
}

.site-sidebar-footer .mmdb-flex-grid {
    align-items: center;
}

.site-sidebar-footer .mmdb-flex-grid__cell {
    display: flex;
    min-width: 0;
    align-items: center;
}

@media (max-width: 800px) {
    .mm-container--three .mm-container__row,
    .mm-container--four .mm-container__row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .mm-container__row,
    .mm-container--two .mm-container__row,
    .mm-container--three .mm-container__row,
    .mm-container--four .mm-container__row,
    .mm-container--one-two .mm-container__row,
    .mm-container--two-one .mm-container__row {
        grid-template-columns: 1fr;
    }

    /* Sidebar footer intentionally keeps its simple two-column row. */
    .site-sidebar-footer .mm-container--two .mm-container__row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================================================
   Reusable tooltip
   ========================================================= */

.mm-tooltip {
    position: fixed;

    z-index: 5000;

    display: inline-flex;
    max-width: min(280px, calc(100vw - 32px));
    padding: 8px 10px;

    align-items: center;
    gap: 7px;

    background: var(--color-bg-control);
    color: var(--color-text-main);

    border: 1px solid var(--color-border-control);
    border-radius: 6px;

    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;

    white-space: nowrap;

    pointer-events: none;

    opacity: 0;
    transform: translateY(0);

    transition:
        opacity 0.32s ease,
        transform 0.32s ease;
}

.mm-tooltip__icon {
    flex: 0 0 auto;
    font-size: 12px;
    line-height: 1;
}

.mm-tooltip__label {
    min-width: 0;
}

.mm-tooltip.is-visible {
    opacity: 1;
    transform: translateY(-12px);
}

