:root {
    --gum-primary: #2f78c4;
    --gum-primary-dark: #175b9e;
    --gum-primary-soft: #eef6ff;
    --gum-ink: #0f172a;
    --gum-text: #334155;
    --gum-muted: #64748b;
    --gum-line: #e2e8f0;
    --gum-surface: #f8fafc;
    --gum-white: #ffffff;
    --gum-radius: 12px;
    --gum-radius-sm: 8px;
    --gum-shadow: 0 10px 35px rgba(15, 23, 42, .06);
    --gum-shell: 1180px;
    --gum-transition: 180ms ease;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--gum-white);
    color: var(--gum-ink);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.menu-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

svg {
    display: block;
    width: 1.15em;
    height: 1.15em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--gum-primary-dark);
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

::selection {
    background: #d9ebff;
    color: var(--gum-ink);
}

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

.screen-reader-text:focus {
    top: 8px;
    left: 8px;
    z-index: 99999;
    width: auto;
    height: auto;
    padding: 10px 14px;
    clip: auto;
    background: var(--gum-white);
    border: 1px solid var(--gum-primary);
    border-radius: var(--gum-radius-sm);
    color: var(--gum-primary-dark);
    white-space: normal;
}

.gum-shell {
    width: min(calc(100% - 48px), var(--gum-shell));
    margin-inline: auto;
}

.gum-main {
    min-height: 60vh;
}

/* Header */
.gum-header {
    position: relative;
    z-index: 100;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid var(--gum-line);
}

.gum-header__inner {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr) auto;
    align-items: center;
    min-height: 78px;
    gap: 32px;
}

.gum-brand {
    min-width: 0;
}

.gum-brand .custom-logo-link,
.gum-brand__fallback {
    display: inline-flex;
    align-items: center;
}

.gum-brand img,
.gum-brand .custom-logo {
    width: auto;
    height: 44px;
    max-width: 160px;
    object-fit: contain;
}

.gum-nav {
    justify-self: center;
}

.gum-nav__list,
.gum-nav ul {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gum-nav__list > li,
.gum-nav > ul > li {
    position: relative;
}

.gum-nav__list > li > a,
.gum-nav > ul > li > a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 8px;
    color: var(--gum-text);
    font-size: 14px;
    font-weight: 600;
    transition: color var(--gum-transition), background var(--gum-transition);
}

.gum-nav__list > li > a:hover,
.gum-nav__list > li.current-menu-item > a,
.gum-nav__list > li.current-menu-ancestor > a {
    background: var(--gum-primary-soft);
    color: var(--gum-primary-dark);
}

.gum-nav .sub-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    display: none;
    min-width: 220px;
    padding: 8px;
    background: var(--gum-white);
    border: 1px solid var(--gum-line);
    border-radius: var(--gum-radius);
    box-shadow: var(--gum-shadow);
}

.gum-nav li:hover > .sub-menu,
.gum-nav li:focus-within > .sub-menu {
    display: block;
}

.gum-nav .sub-menu a {
    display: block;
    padding: 9px 10px;
    border-radius: 7px;
    color: var(--gum-text);
    font-size: 14px;
}

.gum-nav .sub-menu a:hover {
    background: var(--gum-surface);
    color: var(--gum-primary-dark);
}

@media (min-width: 1025px) {
    /*
     * Keep desktop dropdowns reachable while the pointer crosses the visual
     * gap between a parent item and its submenu. The transparent pseudo-element
     * is still part of the submenu/parent hover tree, so the menu cannot close
     * in the few pixels between them.
     */
    .gum-nav__list > li > .sub-menu,
    .gum-nav > ul > li > .sub-menu {
        top: calc(100% + 8px);
    }

    .gum-nav__list > li > .sub-menu::before,
    .gum-nav > ul > li > .sub-menu::before {
        content: "";
        position: absolute;
        right: 0;
        bottom: 100%;
        left: 0;
        height: 10px;
    }

    .gum-nav .gum-auto-topics > .sub-menu {
        width: min(440px, calc(100vw - 32px));
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px;
    }

    .gum-nav .gum-auto-topics:hover > .sub-menu,
    .gum-nav .gum-auto-topics:focus-within > .sub-menu {
        display: grid;
    }
}

.gum-header__actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.gum-icon-button {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 50%;
    color: var(--gum-ink);
    transition: background var(--gum-transition), color var(--gum-transition);
}

.gum-icon-button:hover,
.gum-icon-button:focus-visible {
    background: var(--gum-primary-soft);
    color: var(--gum-primary-dark);
}

.gum-menu-toggle {
    display: none;
}

.gum-search-panel {
    background: var(--gum-white);
    border-top: 1px solid var(--gum-line);
    box-shadow: 0 12px 24px rgba(15, 23, 42, .05);
}

.gum-search-panel__inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-block: 18px;
}

.gum-search-form {
    display: flex;
    flex: 1;
    gap: 10px;
}

.gum-search-form__input,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 13px;
    background: var(--gum-white);
    border: 1px solid #cbd5e1;
    border-radius: var(--gum-radius-sm);
    color: var(--gum-ink);
    outline: 0;
    transition: border-color var(--gum-transition), box-shadow var(--gum-transition);
}

.gum-search-form__input:focus,
.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--gum-primary);
    box-shadow: 0 0 0 3px rgba(47, 120, 196, .13);
}

/* Buttons */
.gum-button,
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 18px;
    background: var(--gum-primary);
    border: 1px solid var(--gum-primary);
    border-radius: var(--gum-radius-sm);
    color: var(--gum-white);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    transition: transform var(--gum-transition), background var(--gum-transition), border-color var(--gum-transition);
}

.gum-button:hover,
.gum-button:focus-visible,
input[type="submit"]:hover {
    background: var(--gum-primary-dark);
    border-color: var(--gum-primary-dark);
    color: var(--gum-white);
    transform: translateY(-1px);
}

.gum-button--small {
    min-height: 38px;
    padding: 8px 14px;
    font-size: 13px;
}

.gum-button--arrow svg,
.gum-text-link svg {
    width: 16px;
    height: 16px;
}

/* Homepage hero */
.gum-hero {
    display: grid;
    grid-template-columns: minmax(300px, .8fr) minmax(0, 1.45fr);
    align-items: center;
    gap: clamp(34px, 5vw, 72px);
    padding-block: clamp(50px, 7vw, 92px);
}

.gum-hero__copy {
    max-width: 470px;
}

.gum-hero h1 {
    margin: 10px 0 18px;
    font-size: clamp(36px, 4.2vw, 58px);
    line-height: 1.04;
    letter-spacing: -.04em;
}

.gum-hero h1 a:hover {
    color: var(--gum-primary-dark);
}

.gum-hero__copy > p {
    margin: 0 0 14px;
    color: var(--gum-text);
    font-size: clamp(16px, 1.5vw, 18px);
}

.gum-hero .gum-meta {
    margin-bottom: 22px;
}

.gum-hero__media {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    background: var(--gum-surface);
}

.gum-hero__media img,
.gum-card__media img,
.gum-list-card__media img,
.gum-article__hero img,
.gum-page__hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gum-kicker,
.gum-eyebrow {
    display: inline-flex;
    color: var(--gum-primary);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.gum-kicker:hover {
    color: var(--gum-primary-dark);
}

.gum-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    color: var(--gum-muted);
    font-size: 13px;
}

/* Sections and cards */
.gum-section,
.gum-related {
    padding-block: 24px 68px;
}

.gum-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.gum-section-heading h2 {
    margin: 0;
    font-size: clamp(24px, 2.3vw, 32px);
    line-height: 1.15;
    letter-spacing: -.025em;
}

.gum-text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gum-primary);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.gum-card-grid {
    display: grid;
    gap: 22px;
}

.gum-card-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gum-card {
    overflow: hidden;
    min-width: 0;
    background: var(--gum-white);
    border: 1px solid var(--gum-line);
    border-radius: var(--gum-radius);
    transition: transform var(--gum-transition), box-shadow var(--gum-transition), border-color var(--gum-transition);
}

.gum-card:hover {
    transform: translateY(-3px);
    border-color: #cbd5e1;
    box-shadow: var(--gum-shadow);
}

.gum-card__media {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--gum-surface);
}

.gum-card__media img {
    transition: transform 350ms ease;
}

.gum-card:hover .gum-card__media img {
    transform: scale(1.025);
}

.gum-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 120px;
    background:
        linear-gradient(135deg, rgba(47, 120, 196, .12), rgba(47, 120, 196, .03)),
        var(--gum-surface);
}

.gum-card__body {
    padding: 16px 17px 18px;
}

.gum-card__title {
    margin: 8px 0 14px;
    font-size: 18px;
    line-height: 1.28;
    letter-spacing: -.015em;
}

.gum-card__title a {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.gum-card__date,
.gum-list-card__date {
    color: var(--gum-muted);
    font-size: 12px;
}

.gum-category-strip {
    border-top: 1px solid var(--gum-line);
    padding-top: 44px;
}

/* Social follow */
.gum-follow {
    margin: 8px 0 68px;
    padding: 24px;
    background: linear-gradient(105deg, #f5f9ff, #fbfdff);
    border: 1px solid #dbeafe;
    border-radius: 14px;
}

.gum-follow__heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 16px;
}

.gum-follow__heading .gum-eyebrow {
    margin: 0;
}

.gum-follow__heading h2 {
    margin: 0;
    color: var(--gum-primary-dark);
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: -.015em;
}

.gum-follow__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    overflow: hidden;
    border-radius: 10px;
}

.gum-follow__item {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 22px;
    align-items: center;
    gap: 12px;
    min-height: 82px;
    padding: 14px 16px;
    color: var(--gum-white);
    background: var(--gum-primary);
    transition:
        filter var(--gum-transition),
        transform var(--gum-transition);
}

.gum-follow__item + .gum-follow__item {
    border-left: 1px solid rgba(255, 255, 255, .22);
}

.gum-follow__item--facebook {
    background: #356daf;
}

.gum-follow__item--instagram {
    background: #3f7fb4;
}

.gum-follow__item--x {
    background: #3f8fbe;
}

.gum-follow__item--telegram {
    background: #2799cf;
}

.gum-follow__item:hover {
    color: var(--gum-white);
    filter: brightness(.95);
}

.gum-follow__icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 9px;
    background: rgba(15, 23, 42, .1);
}

.gum-follow__icon svg {
    width: 24px;
    height: 24px;
}

.gum-follow__copy {
    display: grid;
    min-width: 0;
}

.gum-follow__copy strong {
    overflow: hidden;
    font-size: 15px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gum-follow__copy span {
    margin-top: 4px;
    overflow: hidden;
    color: rgba(255, 255, 255, .85);
    font-size: 12px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gum-follow__arrow {
    opacity: .7;
}

.gum-follow__arrow svg {
    width: 18px;
    height: 18px;
}

.gum-follow__empty {
    margin: 0;
    padding: 18px 20px;
    border: 1px dashed #bfdbfe;
    border-radius: 9px;
    color: var(--gum-muted);
    background: rgba(255, 255, 255, .7);
    font-size: 13px;
}

/* Archive */
.gum-archive,
.gum-page-shell {
    padding-block: 32px 72px;
}

.gum-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    color: var(--gum-muted);
    font-size: 12px;
}

.gum-breadcrumbs a:hover {
    color: var(--gum-primary-dark);
}

.gum-page-header {
    max-width: 760px;
    margin-bottom: 28px;
}

.gum-page-header h1 {
    margin: 5px 0 10px;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.06;
    letter-spacing: -.035em;
}

.gum-page-header p,
.gum-page-header__description {
    margin: 0;
    color: var(--gum-muted);
    font-size: 15px;
}

.gum-page-header__description p:last-child {
    margin-bottom: 0;
}

.gum-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 30px;
}

.gum-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 7px 13px;
    border: 1px solid var(--gum-line);
    border-radius: 7px;
    background: var(--gum-white);
    color: var(--gum-text);
    font-size: 13px;
    font-weight: 650;
}

.gum-chip:hover,
.gum-chip.is-active {
    background: var(--gum-primary);
    border-color: var(--gum-primary);
    color: var(--gum-white);
}

.gum-archive-grid {
    margin-top: 4px;
}

.gum-pagination {
    margin-top: 38px;
}

.gum-pagination > ul.page-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gum-pagination > ul.page-numbers > li {
    display: block;
    margin: 0;
    padding: 0;
}

.gum-pagination a.page-numbers,
.gum-pagination span.page-numbers {
    display: inline-grid;
    place-items: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--gum-line);
    border-radius: 7px;
    background: var(--gum-white);
    color: var(--gum-text);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

.gum-pagination .current,
.gum-pagination a:hover {
    background: var(--gum-primary);
    border-color: var(--gum-primary);
    color: var(--gum-white);
}

/* Article */
.gum-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 54px;
    align-items: start;
    padding-bottom: 56px;
}

.gum-article {
    min-width: 0;
}

.gum-article__header {
    max-width: 820px;
    margin-bottom: 24px;
}

.gum-article__header h1 {
    margin: 8px 0 14px;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.04;
    letter-spacing: -.04em;
}

.gum-article__hero {
    overflow: hidden;
    margin: 0 0 30px;
    border-radius: 14px;
    background: var(--gum-surface);
}

.gum-article__hero img {
    aspect-ratio: 16 / 9;
}

.gum-article__hero figcaption {
    padding: 8px 12px 10px;
    color: var(--gum-muted);
    font-size: 12px;
}

.gum-article__content {
    max-width: 780px;
    color: #1e293b;
    font-size: 17px;
    line-height: 1.78;
}

.gum-article__content > *:first-child {
    margin-top: 0;
}

.gum-article__content p,
.gum-article__content ul,
.gum-article__content ol,
.gum-article__content blockquote,
.gum-article__content figure,
.gum-article__content table,
.gum-article__content pre {
    margin-top: 0;
    margin-bottom: 1.45em;
}

.gum-article__content h2,
.gum-article__content h3,
.gum-article__content h4 {
    margin: 1.65em 0 .55em;
    color: var(--gum-ink);
    line-height: 1.2;
    letter-spacing: -.02em;
}

.gum-article__content h2 {
    font-size: 30px;
}

.gum-article__content h3 {
    font-size: 24px;
}

.gum-article__content a {
    color: var(--gum-primary-dark);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.gum-article__content blockquote {
    padding: 8px 0 8px 24px;
    border-left: 4px solid var(--gum-primary);
    color: var(--gum-text);
    font-size: 20px;
}

.gum-article__content blockquote p:last-child {
    margin-bottom: 0;
}

.gum-article__content img,
.gum-article__content .wp-block-image img {
    border-radius: 10px;
}

/*
 * Galleries
 *
 * Support classic [gallery] shortcodes, older Gutenberg galleries
 * (.blocks-gallery-grid) and current nested-image gallery blocks.
 */
.gum-article__content .gallery {
    display: grid !important;
    align-items: start;
    gap: 16px;
    width: 100% !important;
    margin: 0 0 1.45em !important;
}

.gum-article__content .gallery-columns-1 {
    grid-template-columns: 1fr;
}

.gum-article__content .gallery-columns-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gum-article__content .gallery-columns-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gum-article__content .gallery-columns-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gum-article__content .gallery-columns-5,
.gum-article__content .gallery-columns-6,
.gum-article__content .gallery-columns-7,
.gum-article__content .gallery-columns-8,
.gum-article__content .gallery-columns-9 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gum-article__content .gallery-item {
    float: none !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

.gum-article__content .gallery-icon,
.gum-article__content .gallery-icon a {
    display: block;
}

.gum-article__content .gallery img {
    display: block;
    width: 100% !important;
    height: auto !important;
    max-width: none;
    border: 0 !important;
}

.gum-article__content .gallery-caption {
    margin: 7px 2px 0;
    line-height: 1.45;
}

.gum-article__content .wp-block-gallery.has-nested-images,
.gum-article__content .wp-block-gallery .blocks-gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 16px !important;
    width: 100%;
    margin: 0 0 1.45em;
    padding: 0;
}

.gum-article__content .wp-block-gallery.has-nested-images.columns-1,
.gum-article__content .wp-block-gallery.columns-1 .blocks-gallery-grid {
    grid-template-columns: 1fr;
}

.gum-article__content .wp-block-gallery.has-nested-images.columns-2,
.gum-article__content .wp-block-gallery.columns-2 .blocks-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gum-article__content .wp-block-gallery.has-nested-images.columns-3,
.gum-article__content .wp-block-gallery.columns-3 .blocks-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gum-article__content .wp-block-gallery.has-nested-images.columns-4,
.gum-article__content .wp-block-gallery.columns-4 .blocks-gallery-grid,
.gum-article__content .wp-block-gallery.has-nested-images.columns-5,
.gum-article__content .wp-block-gallery.columns-5 .blocks-gallery-grid,
.gum-article__content .wp-block-gallery.has-nested-images.columns-6,
.gum-article__content .wp-block-gallery.columns-6 .blocks-gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gum-article__content .wp-block-gallery.has-nested-images figure.wp-block-image,
.gum-article__content .wp-block-gallery .blocks-gallery-item {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
}

.gum-article__content .wp-block-gallery.has-nested-images figure.wp-block-image img,
.gum-article__content .wp-block-gallery .blocks-gallery-item img {
    display: block;
    width: 100% !important;
    max-width: none !important;
}

.gum-article__content .wp-block-gallery.has-nested-images:not(.is-cropped) figure.wp-block-image img {
    height: auto !important;
}

.gum-article__content .wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image {
    height: 100%;
}

.gum-article__content .wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image img {
    height: 100% !important;
    object-fit: cover;
}

.gum-article__content .alignwide {
    width: min(100vw - 64px, 980px);
    max-width: none;
    margin-left: 50%;
    transform: translateX(-50%);
}

.gum-article__content table {
    width: 100%;
    border-collapse: collapse;
}

.gum-article__content th,
.gum-article__content td {
    padding: 10px;
    border: 1px solid var(--gum-line);
    text-align: left;
}

.gum-article__content pre {
    overflow: auto;
    padding: 18px;
    border-radius: 10px;
    background: #0f172a;
    color: #e2e8f0;
}

.gum-article__footer {
    max-width: 780px;
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid var(--gum-line);
}

.gum-share {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.gum-share__label {
    color: var(--gum-text);
    font-size: 13px;
    font-weight: 700;
}

.gum-share__buttons {
    display: flex;
    gap: 7px;
}

.gum-share__buttons a,
.gum-share__buttons button,
.gum-socials a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--gum-line);
    border-radius: 8px;
    background: var(--gum-white);
    color: var(--gum-primary-dark);
}

.gum-share__buttons button {
    font: inherit;
}

.gum-share__buttons a:hover,
.gum-share__buttons button:hover,
.gum-socials a:hover {
    background: var(--gum-primary-soft);
    border-color: #bfdbfe;
}

.gum-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    color: var(--gum-muted);
    font-size: 13px;
}

.gum-tags a {
    padding: 5px 9px;
    background: var(--gum-primary-soft);
    border-radius: 6px;
    color: var(--gum-primary-dark);
    font-weight: 650;
}

.gum-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--gum-line);
    font-size: 13px;
    font-weight: 700;
}

.gum-post-nav > div:last-child {
    text-align: right;
}

.gum-post-nav a {
    color: var(--gum-primary-dark);
}

.gum-article-sidebar {
    position: sticky;
    top: 24px;
    display: grid;
    gap: 20px;
}

.admin-bar .gum-article-sidebar {
    top: 56px;
}

.gum-sidebar-card,
.gum-widget {
    padding: 20px;
    border: 1px solid var(--gum-line);
    border-radius: var(--gum-radius);
    background: var(--gum-white);
}

.gum-sidebar-card > h2,
.gum-widget .widget-title {
    margin: 0 0 18px;
    font-size: 18px;
    line-height: 1.2;
}

.gum-list-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid var(--gum-line);
}

.gum-list-card:first-of-type {
    padding-top: 0;
    border-top: 0;
}

.gum-list-card:last-child {
    padding-bottom: 0;
}

.gum-list-card__media {
    overflow: hidden;
    aspect-ratio: 1.35 / 1;
    border-radius: 7px;
    background: var(--gum-surface);
}

.gum-list-card .gum-kicker {
    font-size: 9px;
}

.gum-list-card h3 {
    margin: 4px 0 6px;
    font-size: 13px;
    line-height: 1.3;
}

.gum-related {
    border-top: 1px solid var(--gum-line);
    padding-top: 44px;
}

/* Generic pages and comments */
.gum-page {
    max-width: 900px;
}

.gum-page__hero {
    overflow: hidden;
    margin: 0 0 30px;
    border-radius: 14px;
}

.gum-page__hero img {
    aspect-ratio: 16 / 8;
}

.gum-empty-state {
    padding: 48px 0;
}

.gum-empty-state h2,
.gum-empty-state h1 {
    margin: 4px 0 10px;
}

.gum-empty-state--404 {
    min-height: 55vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    max-width: 720px;
}

.gum-comments {
    max-width: 780px;
    padding: 38px 0 64px;
    border-top: 1px solid var(--gum-line);
}

.gum-comments__title,
.comment-reply-title {
    margin: 0 0 22px;
    font-size: 24px;
}

.comment-list {
    margin: 0 0 34px;
    padding: 0;
    list-style: none;
}

.comment-list .comment {
    padding: 18px 0;
    border-top: 1px solid var(--gum-line);
}

.comment-list .children {
    list-style: none;
}

.comment-meta {
    color: var(--gum-muted);
    font-size: 12px;
}

.comment-form label {
    display: block;
    margin-bottom: 5px;
    color: var(--gum-text);
    font-size: 13px;
    font-weight: 700;
}

.comment-form textarea {
    min-height: 150px;
}

/* Widgets */
.gum-widget ul {
    margin: 0;
    padding-left: 18px;
}

.gum-widget + .gum-widget {
    margin-top: 0;
}

/* Footer */
.gum-footer {
    margin-top: 24px;
    background: #f7f9fc;
    border-top: 1px solid var(--gum-line);
}

.gum-footer__grid {
    display: grid;
    grid-template-columns: 1.35fr repeat(3, 1fr);
    gap: 44px;
    padding: 48px 0 40px;
}

.gum-brand--footer img,
.gum-brand--footer .custom-logo {
    height: 42px;
}

.gum-footer__brand p,
.gum-footer__grid > div > p {
    max-width: 280px;
    margin: 16px 0;
    color: var(--gum-muted);
    font-size: 13px;
}

.gum-socials {
    display: flex;
    gap: 7px;
}

.gum-socials a {
    width: 34px;
    height: 34px;
}

.gum-footer__title {
    margin: 3px 0 14px;
    font-size: 14px;
}

.gum-footer__menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.gum-footer__menu li + li {
    margin-top: 7px;
}

.gum-footer__menu a {
    color: var(--gum-muted);
    font-size: 13px;
}

.gum-footer__menu a:hover {
    color: var(--gum-primary-dark);
}

.gum-footer-widgets {
    padding-top: 32px;
}

.gum-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0 24px;
    border-top: 1px solid var(--gum-line);
    color: var(--gum-muted);
    font-size: 11px;
}

/* WordPress alignment helpers */
.entry-content .alignleft {
    float: left;
    margin-right: 24px;
}

.entry-content .alignright {
    float: right;
    margin-left: 24px;
}

.entry-content .aligncenter {
    margin-inline: auto;
}

.wp-caption {
    max-width: 100%;
}

.sticky {
    position: relative;
}

.bypostauthor {
    position: relative;
}

.gallery-caption,
.wp-caption-text {
    color: var(--gum-muted);
    font-size: 12px;
}

/* Tablet */
@media (max-width: 1024px) {
    .gum-shell {
        width: min(calc(100% - 36px), var(--gum-shell));
    }

    .gum-header__inner {
        grid-template-columns: 150px minmax(0, 1fr) auto;
        gap: 18px;
    }

    .gum-brand img,
    .gum-brand .custom-logo {
        height: 38px;
        max-width: 140px;
    }

    .gum-nav__list > li > a,
    .gum-nav > ul > li > a {
        padding-inline: 8px;
        font-size: 13px;
    }

    .gum-hero {
        grid-template-columns: .9fr 1.25fr;
        gap: 34px;
        padding-block: 54px;
    }

    .gum-card-grid--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gum-follow__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gum-follow__item:nth-child(odd):not(:first-child) {
        border-left: 0;
    }

    .gum-follow__item:nth-child(n + 3) {
        border-top: 1px solid rgba(255, 255, 255, .22);
    }

    .gum-article-layout {
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 34px;
    }

    .gum-list-card {
        grid-template-columns: 78px minmax(0, 1fr);
    }

    .gum-footer__grid {
        grid-template-columns: 1.4fr 1fr 1fr;
    }

    .gum-footer__grid > div:last-child {
        grid-column: 2 / -1;
    }
}

/* Mobile navigation + stacked layouts */
@media (max-width: 780px) {
    body {
        font-size: 15px;
    }

    .gum-shell {
        width: min(calc(100% - 28px), var(--gum-shell));
    }

    .gum-header__inner {
        grid-template-columns: 44px 1fr 44px;
        min-height: 66px;
        gap: 8px;
    }

    .gum-brand {
        justify-self: center;
    }

    .gum-brand img,
    .gum-brand .custom-logo {
        height: 34px;
        max-width: 130px;
    }

    .gum-menu-toggle {
        display: inline-grid;
        justify-self: start;
    }

    .gum-nav {
        position: fixed;
        inset: 66px 0 0 0;
        z-index: 200;
        display: none;
        overflow-y: auto;
        padding: 18px 14px 32px;
        background: rgba(255, 255, 255, .995);
        border-top: 1px solid var(--gum-line);
    }

    .gum-nav.is-open {
        display: block;
    }

    .admin-bar .gum-nav {
        top: 112px;
    }

    .gum-nav__list,
    .gum-nav ul {
        display: block;
    }

    .gum-nav__list > li > a,
    .gum-nav > ul > li > a {
        min-height: 50px;
        padding-inline: 12px;
        border-bottom: 1px solid var(--gum-line);
        border-radius: 0;
        font-size: 16px;
    }

    .gum-nav .sub-menu {
        position: static;
        display: block;
        min-width: 0;
        padding: 0 0 8px 14px;
        border: 0;
        box-shadow: none;
    }

    .gum-search-panel__inner {
        padding-block: 12px;
    }

    .gum-search-form {
        gap: 7px;
    }

    .gum-hero {
        display: flex;
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 22px;
        padding-block: 26px 46px;
    }

    .gum-hero__copy {
        max-width: none;
    }

    .gum-hero h1 {
        margin: 7px 0 13px;
        font-size: clamp(32px, 10vw, 46px);
    }

    .gum-hero__media {
        border-radius: 12px;
    }

    .gum-section,
    .gum-related {
        padding-bottom: 48px;
    }

    .gum-section-heading {
        align-items: flex-end;
        gap: 14px;
        margin-bottom: 18px;
    }

    .gum-section-heading h2 {
        font-size: 24px;
    }

    .gum-text-link {
        font-size: 12px;
    }

    .gum-card-grid--3 {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .gum-card {
        display: grid;
        grid-template-columns: 128px minmax(0, 1fr);
        min-height: 112px;
        border-radius: 10px;
    }

    .gum-card__media {
        aspect-ratio: auto;
        min-height: 100%;
    }

    .gum-card__body {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 12px 13px;
    }

    .gum-card__title {
        margin: 5px 0 7px;
        font-size: 15px;
        line-height: 1.28;
    }

    .gum-card__title a {
        -webkit-line-clamp: 3;
    }

    .gum-card .gum-kicker {
        font-size: 9px;
    }

    .gum-follow {
        margin-bottom: 48px;
        padding: 18px;
    }

    .gum-follow__heading {
        display: block;
        margin-bottom: 14px;
    }

    .gum-follow__heading .gum-eyebrow {
        margin-bottom: 4px;
    }

    .gum-follow__heading h2 {
        font-size: 18px;
    }

    .gum-follow__grid {
        grid-template-columns: 1fr 1fr;
    }

    .gum-follow__item {
        grid-template-columns: 40px minmax(0, 1fr);
        min-height: 72px;
        padding: 12px;
    }

    .gum-follow__icon {
        width: 40px;
        height: 40px;
    }

    .gum-follow__arrow {
        display: none;
    }

    .gum-archive,
    .gum-page-shell {
        padding-block: 22px 52px;
    }

    .gum-breadcrumbs {
        margin-bottom: 20px;
        overflow: hidden;
        white-space: nowrap;
        flex-wrap: nowrap;
    }

    .gum-breadcrumbs > * {
        flex: 0 0 auto;
    }

    .gum-breadcrumbs > span:last-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .gum-page-header {
        margin-bottom: 22px;
    }

    .gum-page-header h1 {
        font-size: 36px;
    }

    .gum-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin-inline: -14px;
        padding-inline: 14px;
        padding-bottom: 5px;
        scrollbar-width: none;
    }

    .gum-chips::-webkit-scrollbar {
        display: none;
    }

    .gum-chip {
        flex: 0 0 auto;
    }

    .gum-archive-grid .gum-card {
        grid-template-columns: 118px minmax(0, 1fr);
    }

    .gum-article-layout {
        display: block;
        padding-bottom: 42px;
    }

    .gum-article__header h1 {
        font-size: clamp(34px, 10.5vw, 48px);
    }

    .gum-article__content {
        font-size: 16px;
        line-height: 1.72;
    }

    .gum-article__content h2 {
        font-size: 26px;
    }

    .gum-article__content h3 {
        font-size: 22px;
    }

    .gum-article__content .alignwide {
        width: 100%;
        margin-left: 0;
        transform: none;
    }

    .gum-article__content .gallery-columns-3,
    .gum-article__content .gallery-columns-4,
    .gum-article__content .gallery-columns-5,
    .gum-article__content .gallery-columns-6,
    .gum-article__content .gallery-columns-7,
    .gum-article__content .gallery-columns-8,
    .gum-article__content .gallery-columns-9,
    .gum-article__content .wp-block-gallery.has-nested-images.columns-3,
    .gum-article__content .wp-block-gallery.columns-3 .blocks-gallery-grid,
    .gum-article__content .wp-block-gallery.has-nested-images.columns-4,
    .gum-article__content .wp-block-gallery.columns-4 .blocks-gallery-grid,
    .gum-article__content .wp-block-gallery.has-nested-images.columns-5,
    .gum-article__content .wp-block-gallery.columns-5 .blocks-gallery-grid,
    .gum-article__content .wp-block-gallery.has-nested-images.columns-6,
    .gum-article__content .wp-block-gallery.columns-6 .blocks-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gum-share {
        align-items: flex-start;
        flex-direction: column;
    }

    .gum-post-nav {
        grid-template-columns: 1fr;
    }

    .gum-post-nav > div:last-child {
        text-align: left;
    }

    .gum-article-sidebar {
        position: static;
        margin-top: 36px;
    }

    .gum-sidebar-card {
        padding: 18px;
    }

    .gum-list-card {
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .gum-related .gum-card {
        grid-template-columns: 128px minmax(0, 1fr);
    }

    .gum-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px 22px;
        padding: 38px 0 30px;
    }

    .gum-footer__brand {
        grid-column: 1 / -1;
    }

    .gum-footer__grid > div:last-child {
        grid-column: 1 / -1;
    }

    .gum-footer__bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }
}

@media (max-width: 480px) {
    .gum-shell {
        width: min(calc(100% - 24px), var(--gum-shell));
    }

    .gum-search-form .gum-button {
        padding-inline: 12px;
    }

    .gum-card,
    .gum-archive-grid .gum-card,
    .gum-related .gum-card {
        grid-template-columns: 108px minmax(0, 1fr);
    }

    .gum-card__body {
        padding: 10px 11px;
    }

    .gum-card__title {
        font-size: 14px;
    }

    .gum-article__content .gallery:not(.gallery-columns-1),
    .gum-article__content .wp-block-gallery.has-nested-images:not(.columns-1),
    .gum-article__content .wp-block-gallery:not(.columns-1) .blocks-gallery-grid {
        grid-template-columns: 1fr;
    }

    .gum-follow {
        padding: 14px;
    }

    .gum-follow__grid {
        grid-template-columns: 1fr;
    }

    .gum-follow__item + .gum-follow__item,
    .gum-follow__item:nth-child(odd):not(:first-child) {
        border-top: 1px solid rgba(255, 255, 255, .22);
        border-left: 0;
    }

    .gum-follow__copy strong {
        font-size: 14px;
    }

    .gum-footer__grid {
        grid-template-columns: 1fr;
    }

    .gum-footer__brand,
    .gum-footer__grid > div:last-child {
        grid-column: auto;
    }
}

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

/* ==========================================================
 * v1.2.0 refinements
 * ========================================================== */

/* Make the active page impossible to miss in long archives. */
.gum-pagination span.page-numbers.current,
.gum-pagination .page-numbers[aria-current="page"] {
    background: var(--gum-primary) !important;
    border-color: var(--gum-primary) !important;
    color: var(--gum-white) !important;
    box-shadow: 0 0 0 3px rgba(47, 120, 196, .14);
}

.gum-pagination span.page-numbers.current:hover,
.gum-pagination .page-numbers[aria-current="page"]:hover {
    background: var(--gum-primary-dark) !important;
    border-color: var(--gum-primary-dark) !important;
    color: var(--gum-white) !important;
}

/* Long hero titles should not push the lead image far down the page. */
.gum-hero {
    align-items: start;
}

.gum-hero__copy {
    min-width: 0;
}

.gum-hero h1 a {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
}

.gum-hero__copy > p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

/* Keep thumbnails and text aligned from the same top edge in the sidebar. */
.gum-list-card {
    align-items: start;
}

.gum-list-card__media {
    align-self: start;
    width: 100%;
}

.gum-list-card__body {
    min-width: 0;
    padding-top: 0;
}

.gum-list-card__body > .gum-kicker:first-child {
    margin-top: 0;
}

.gum-list-card h3 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

/* Social additions. */
.gum-follow__item--threads {
    background: #317eb7;
}

.gum-follow__item--youtube {
    background: #228fc6;
}

.gum-follow__item--support {
    background: #0f6fb4;
}

/* Context marker is only needed in the compact navigation. */
.gum-nav__context {
    display: none;
}

.gum-nav__list > li.gum-current-section > a,
.gum-nav > ul > li.gum-current-section > a {
    background: var(--gum-primary-soft);
    color: var(--gum-primary-dark);
}

@media (max-width: 1024px) {
    /* Tablet and mobile header stays visible while reading. */
    .gum-header {
        position: sticky;
        top: 0;
        z-index: 500;
        box-shadow: 0 1px 0 rgba(226, 232, 240, .9);
    }

    .admin-bar .gum-header {
        top: 32px;
    }

    .gum-header__inner {
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        min-height: 72px;
        gap: 8px;
    }

    .gum-menu-toggle {
        display: inline-grid;
        justify-self: start;
    }

    .gum-brand {
        justify-self: center;
    }

    .gum-brand img,
    .gum-brand .custom-logo {
        height: 38px;
        max-width: 146px;
    }

    /* Full viewport sheet: no content showing through and no centered menu column. */
    .gum-nav {
        position: fixed;
        inset: 72px 0 0 0;
        z-index: 520;
        display: none;
        justify-self: stretch;
        width: 100vw;
        max-width: none;
        margin: 0;
        overflow-y: auto;
        padding: 24px max(24px, calc((100vw - var(--gum-shell)) / 2)) 40px;
        background: #ffffff;
        border-top: 1px solid var(--gum-line);
        box-shadow: 0 20px 45px rgba(15, 23, 42, .12);
        text-align: left;
    }

    .admin-bar .gum-nav {
        top: 104px;
    }

    .gum-nav.is-open {
        display: block;
    }

    .gum-nav__context {
        display: grid;
        gap: 4px;
        max-width: 440px;
        margin: 0 0 14px;
        padding: 14px 16px;
        border: 1px solid #cfe3fa;
        border-radius: 10px;
        background: var(--gum-primary-soft);
        text-align: left;
    }

    .gum-nav__context span {
        color: var(--gum-muted);
        font-size: 11px;
        font-weight: 800;
        letter-spacing: .08em;
        text-transform: uppercase;
    }

    .gum-nav__context a {
        color: var(--gum-primary-dark);
        font-size: 18px;
        font-weight: 800;
        line-height: 1.25;
    }

    .gum-nav__list,
    .gum-nav ul {
        display: block;
        width: 100%;
        max-width: 440px;
        margin: 0;
        padding: 0;
        text-align: left;
    }

    .gum-nav__list > li,
    .gum-nav > ul > li {
        width: 100%;
    }

    .gum-nav__list > li > a,
    .gum-nav > ul > li > a {
        justify-content: flex-start;
        width: 100%;
        min-height: 54px;
        padding: 0 16px;
        border-bottom: 1px solid var(--gum-line);
        border-radius: 0;
        font-size: 17px;
        text-align: left;
    }

    .gum-nav__list > li.current-menu-item > a,
    .gum-nav__list > li.current-menu-ancestor > a,
    .gum-nav__list > li.gum-current-section > a,
    .gum-nav > ul > li.gum-current-section > a {
        background: var(--gum-primary-soft);
        box-shadow: inset 4px 0 0 var(--gum-primary);
        color: var(--gum-primary-dark);
    }

    .gum-nav .sub-menu {
        position: static;
        display: block;
        min-width: 0;
        padding: 0 0 8px 16px;
        border: 0;
        box-shadow: none;
    }

    /* Keep the lead story stable on tablet even for very long headlines. */
    .gum-hero {
        grid-template-columns: minmax(260px, .72fr) minmax(0, 1.45fr);
        gap: 32px;
        padding-block: 46px;
    }

    .gum-hero h1 {
        font-size: clamp(34px, 4.5vw, 46px);
    }

    /* More obvious category marker on article pages. */
    .gum-article__header > .gum-kicker {
        padding: 6px 9px;
        border-radius: 6px;
        background: var(--gum-primary-soft);
        color: var(--gum-primary-dark);
    }

    /* Predictable two-column footer on tablets. */
    .gum-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 34px 40px;
        padding: 40px 0 34px;
    }

    .gum-footer__brand {
        grid-column: 1 / -1;
    }

    .gum-footer__grid > div:last-child {
        grid-column: 1 / -1;
    }

    .gum-footer__brand p,
    .gum-footer__grid > div > p {
        max-width: 420px;
    }
}

@media (max-width: 782px) {
    .admin-bar .gum-header {
        top: 46px;
    }
}

@media (max-width: 780px) {
    .gum-header__inner {
        min-height: 66px;
    }

    .gum-brand img,
    .gum-brand .custom-logo {
        height: 34px;
        max-width: 132px;
    }

    .gum-nav {
        inset: 66px 0 0 0;
        padding: 18px 18px 32px;
    }

    .admin-bar .gum-nav {
        top: 112px;
    }

    .gum-nav__context,
    .gum-nav__list,
    .gum-nav ul {
        max-width: none;
    }

    .gum-hero {
        display: flex;
        flex-direction: column-reverse;
        gap: 22px;
        padding-block: 26px 46px;
    }

    .gum-hero h1 a {
        -webkit-line-clamp: 6;
    }

    .gum-list-card {
        grid-template-columns: 104px minmax(0, 1fr);
        gap: 12px;
    }

    .gum-list-card h3 {
        -webkit-line-clamp: 3;
    }
}

@media (max-width: 600px) {
    .gum-footer__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .gum-footer__brand,
    .gum-footer__grid > div:last-child {
        grid-column: auto;
    }
}

/* Six social networks read better as a balanced grid. */
@media (min-width: 1025px) {
    .gum-follow__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .gum-follow__item + .gum-follow__item {
        border-left: 1px solid rgba(255, 255, 255, .22);
    }

    .gum-follow__item:nth-child(3n + 1) {
        border-left: 0;
    }

    .gum-follow__item:nth-child(n + 4) {
        border-top: 1px solid rgba(255, 255, 255, .22);
    }
}

/* =========================================================
 * v1.3.0 refinements
 * ======================================================= */

/* Sidebar rows: vertically center the thumbnail against the complete text block. */
.gum-list-card {
    align-items: center;
}

.gum-list-card__media {
    align-self: center;
}

/* Never let legacy embeds escape the article column. */
.gum-article__content iframe {
    display: block;
    max-width: 100% !important;
}

/* Gallery previews use one predictable crop regardless of source image proportions. */
.gum-article__content .gallery-icon {
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    background: var(--gum-surface);
}

.gum-article__content .gallery-icon a {
    width: 100%;
    height: 100%;
}

.gum-article__content .gallery img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

.gum-article__content .wp-block-gallery.has-nested-images figure.wp-block-image,
.gum-article__content .wp-block-gallery .blocks-gallery-item,
.gum-article__content .wp-block-gallery .blocks-gallery-item figure {
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    background: var(--gum-surface);
}

.gum-article__content .wp-block-gallery.has-nested-images figure.wp-block-image img,
.gum-article__content .wp-block-gallery .blocks-gallery-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Desktop submenu hierarchy: first level drops down, deeper levels open to the right. */
@media (min-width: 1025px) {
    .gum-nav .sub-menu .sub-menu {
        top: -9px;
        left: calc(100% + 8px);
    }

    /* Same hover bridge for deeper desktop menu levels. */
    .gum-nav .sub-menu .sub-menu::before {
        content: "";
        position: absolute;
        top: 0;
        right: 100%;
        bottom: 0;
        width: 10px;
        height: auto;
    }

    .gum-submenu-toggle {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    /* Footer: brand row + exactly three useful columns below it on tablet. */
    .gum-footer__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 32px 34px;
        padding: 40px 0 34px;
    }

    .gum-footer__brand {
        grid-column: 1 / -1;
    }

    .gum-footer__grid > div:last-child {
        grid-column: auto;
    }

    /* Mobile/tablet submenu accordion. Parent link remains a normal destination. */
    .gum-nav li.menu-item-has-children {
        position: relative;
    }

    .gum-nav li.menu-item-has-children > a {
        padding-right: 58px;
    }

    .gum-submenu-toggle {
        position: absolute;
        top: 6px;
        right: 6px;
        z-index: 2;
        display: inline-grid;
        place-items: center;
        width: 42px;
        height: 42px;
        padding: 0;
        border: 0;
        border-radius: 8px;
        background: transparent;
        color: var(--gum-text);
        cursor: pointer;
    }

    .gum-submenu-toggle:hover,
    .gum-submenu-toggle:focus-visible,
    .gum-submenu-toggle[aria-expanded="true"] {
        background: var(--gum-primary-soft);
        color: var(--gum-primary-dark);
    }

    .gum-submenu-toggle svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
        transition: transform var(--gum-transition);
    }

    .gum-submenu-toggle[aria-expanded="true"] svg {
        transform: rotate(180deg);
    }

    /* Progressive enhancement: without JS submenus remain visible. */
    .gum-nav.has-submenu-toggles .sub-menu {
        display: none;
    }

    .gum-nav.has-submenu-toggles li.submenu-open > .sub-menu {
        display: block;
    }

    .gum-nav .sub-menu {
        margin: 0 0 4px 16px;
        padding: 4px 0 8px 14px;
        border-left: 2px solid #d9e9f8;
        background: transparent;
    }

    .gum-nav .sub-menu li {
        position: relative;
        width: 100%;
    }

    .gum-nav .sub-menu a {
        display: flex;
        align-items: center;
        min-height: 46px;
        padding: 8px 52px 8px 12px;
        border-radius: 8px;
        color: var(--gum-text);
        font-size: 15px;
        font-weight: 600;
        line-height: 1.25;
    }

    .gum-nav .sub-menu a:hover,
    .gum-nav .sub-menu .current-menu-item > a,
    .gum-nav .sub-menu .current-menu-ancestor > a,
    .gum-nav .sub-menu .gum-current-section > a {
        background: var(--gum-primary-soft);
        color: var(--gum-primary-dark);
    }

    .gum-nav .sub-menu .sub-menu {
        margin-left: 12px;
        border-left-color: #b9d8f4;
    }
}

@media (max-width: 600px) {
    .gum-footer__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .gum-footer__brand,
    .gum-footer__grid > div:last-child {
        grid-column: auto;
    }
}

@media (max-width: 480px) {
    /* Keep gallery previews compact on phones instead of one huge image per row. */
    .gum-article__content .gallery:not(.gallery-columns-1),
    .gum-article__content .wp-block-gallery.has-nested-images:not(.columns-1),
    .gum-article__content .wp-block-gallery:not(.columns-1) .blocks-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px !important;
    }

    .gum-article__content .gallery,
    .gum-article__content .wp-block-gallery.has-nested-images,
    .gum-article__content .wp-block-gallery .blocks-gallery-grid {
        gap: 10px !important;
    }

    .gum-article__content .gallery-caption,
    .gum-article__content .wp-block-gallery figcaption {
        font-size: 11px;
        line-height: 1.3;
    }
}

@media (max-width: 1024px) {
    .gum-nav__list > li.gum-current-section-ancestor > a,
    .gum-nav > ul > li.gum-current-section-ancestor > a {
        background: #f5f9fd;
        color: var(--gum-primary-dark);
    }
}


/* =========================================================
 * v1.4.0 refinements
 * ======================================================= */

/* The sixth support card is injected only while exactly five social URLs are configured. */
.gum-follow__item--support .gum-follow__icon {
    background: rgba(255, 255, 255, .08);
}


/* =========================================================
 * v1.5.0: discovery, source, support and media-type badges
 * ======================================================= */

/* Popular topics */
.gum-popular-topics {
    margin: 10px 0 64px;
    padding: 28px;
    border: 1px solid var(--gum-line);
    border-radius: var(--gum-radius);
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 72%);
}

.gum-popular-topics__heading {
    margin-bottom: 18px;
}

.gum-popular-topics__heading .gum-eyebrow {
    margin: 0 0 5px;
}

.gum-popular-topics__heading h2 {
    margin: 0;
}

.gum-topic-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.gum-topic-chip {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid #d7e5f3;
    border-radius: 999px;
    background: var(--gum-white);
    color: var(--gum-text);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.15;
    transition: border-color var(--gum-transition), background var(--gum-transition), color var(--gum-transition), transform var(--gum-transition);
}

.gum-topic-chip:hover {
    transform: translateY(-1px);
    border-color: #a9ceeF;
    background: var(--gum-primary-soft);
    color: var(--gum-primary-dark);
}

/* Legacy source link upgraded into an editorial source card. */
.gum-source-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 14px;
    margin: 34px 0 8px !important;
    padding: 15px 16px;
    border: 1px solid #cfe2f5;
    border-radius: 12px;
    background: #f7fbff;
}

.gum-source-card__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--gum-primary-soft);
    color: var(--gum-primary-dark);
}

.gum-source-card__icon svg,
.gum-source-card__arrow svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gum-source-card__copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.gum-source-card__eyebrow {
    color: var(--gum-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.gum-article__content .gum-source-card a {
    color: var(--gum-text);
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
}

.gum-source-card small {
    overflow: hidden;
    color: var(--gum-muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gum-source-card__arrow {
    color: var(--gum-primary-dark);
}

/* Compact article support CTA */
.gum-article-support {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    margin-bottom: 22px;
    padding: 14px 15px;
    border: 1px solid #cfe2f5;
    border-radius: 12px;
    background: #f8fbff;
}

.gum-article-support__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--gum-primary-soft);
    color: var(--gum-primary-dark);
}

.gum-article-support__icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gum-article-support__copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.gum-article-support__copy strong {
    color: var(--gum-text);
    font-size: 14px;
}

.gum-article-support__copy span {
    color: var(--gum-muted);
    font-size: 12px;
    line-height: 1.4;
}

/* Photo / Video content-type badges on news thumbnails. */
.gum-card__media,
.gum-list-card__media {
    position: relative;
}

.gum-media-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 28px;
    padding: 5px 8px;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 999px;
    background: rgba(5, 45, 80, .82);
    box-shadow: 0 3px 12px rgba(15, 23, 42, .12);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .055em;
    line-height: 1;
    text-transform: uppercase;
    backdrop-filter: blur(7px);
}

.gum-media-badge--photo {
    background: rgba(0, 113, 188, .86);
}

.gum-media-badge--video {
    background: rgba(9, 61, 105, .88);
}

.gum-media-badge__icon {
    display: inline-grid;
    place-items: center;
}

.gum-media-badge svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gum-list-card__media .gum-media-badge {
    top: 5px;
    left: 5px;
    min-height: 23px;
    padding: 4px 6px;
    font-size: 8px;
}

.gum-list-card__media .gum-media-badge svg {
    width: 11px;
    height: 11px;
}

@media (max-width: 780px) {
    .gum-popular-topics {
        margin-bottom: 48px;
        padding: 20px;
    }

    .gum-topic-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin-inline: -20px;
        padding: 0 20px 4px;
        scrollbar-width: none;
    }

    .gum-topic-chips::-webkit-scrollbar {
        display: none;
    }

    .gum-topic-chip {
        flex: 0 0 auto;
    }

    .gum-article-support {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .gum-article-support .gum-button {
        grid-column: 1 / -1;
        width: 100%;
        justify-content: center;
    }

    .gum-source-card {
        grid-template-columns: 40px minmax(0, 1fr) 22px;
        gap: 11px;
        padding: 13px;
    }

    .gum-source-card__icon {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .gum-popular-topics {
        margin-inline: -2px;
        padding: 18px;
    }

    .gum-media-badge {
        top: 7px;
        left: 7px;
        min-height: 24px;
        padding: 4px 6px;
    }

    .gum-media-badge__label {
        font-size: 8px;
    }

    .gum-list-card__media .gum-media-badge__label {
        display: none;
    }

    .gum-list-card__media .gum-media-badge {
        width: 24px;
        height: 24px;
        min-height: 24px;
        padding: 0;
        justify-content: center;
    }
}

/* =========================================================
 * v1.6.2: pinned topics + all-topics index
 * ======================================================= */

/* Final "Всі теми" row spans the complete two-column desktop dropdown. */
@media (min-width: 1025px) {
    .gum-nav .gum-auto-topics > .sub-menu > .gum-auto-topics-all {
        grid-column: 1 / -1;
        margin-top: 4px;
        padding-top: 6px;
        border-top: 1px solid var(--gum-line);
    }

    .gum-nav .gum-auto-topics > .sub-menu > .gum-auto-topics-all > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: var(--gum-primary-dark);
        font-weight: 800;
    }

    .gum-nav .gum-auto-topics > .sub-menu > .gum-auto-topics-all > a::after {
        content: "→";
        margin-left: 12px;
        font-size: 16px;
        line-height: 1;
    }
}

@media (max-width: 1024px) {
    .gum-nav .gum-auto-topics > .sub-menu > .gum-auto-topics-all {
        margin-top: 4px;
        padding-top: 6px;
        border-top: 1px solid #d9e9f8;
    }

    .gum-nav .gum-auto-topics > .sub-menu > .gum-auto-topics-all > a {
        color: var(--gum-primary-dark);
        font-weight: 800;
    }
}

.gum-topics-index {
    padding-bottom: 72px;
}

.gum-topics-index__header {
    max-width: 760px;
    margin-bottom: 34px;
}

.gum-topics-index__header .gum-eyebrow {
    margin-bottom: 10px;
}

.gum-topics-index__header p:last-child {
    max-width: 680px;
    margin: 12px 0 0;
    color: var(--gum-muted);
    font-size: 16px;
    line-height: 1.65;
}

.gum-all-topics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.gum-all-topic {
    display: flex;
    min-width: 0;
    min-height: 84px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 16px 18px;
    border: 1px solid var(--gum-line);
    border-radius: 12px;
    background: var(--gum-white);
    transition: border-color var(--gum-transition), background var(--gum-transition), transform var(--gum-transition);
}

.gum-all-topic:hover,
.gum-all-topic:focus-visible {
    transform: translateY(-1px);
    border-color: #b8d6f1;
    background: var(--gum-primary-soft);
}

.gum-all-topic__name {
    overflow-wrap: anywhere;
    color: var(--gum-text);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
}

.gum-all-topic__count {
    color: var(--gum-muted);
    font-size: 12px;
    line-height: 1.3;
}

@media (max-width: 1024px) {
    .gum-all-topics-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .gum-topics-index {
        padding-bottom: 52px;
    }

    .gum-all-topics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .gum-all-topic {
        min-height: 76px;
        padding: 13px 14px;
    }
}

@media (max-width: 420px) {
    .gum-all-topics-grid {
        grid-template-columns: 1fr;
    }
}

/* v1.6.3: topic ordering/current-topic behavior is handled server-side. */

/* =========================================================
 * v1.7.0: headline sizing, support methods, TikTok and footer
 * ======================================================= */

/* Give long lead headlines more room without allowing them to intrude into the image. */
.gum-hero {
    grid-template-columns: minmax(0, .78fr) minmax(0, 1.5fr);
    gap: clamp(36px, 4.4vw, 66px);
}

.gum-hero__copy,
.gum-hero__media {
    min-width: 0;
}

.gum-hero__copy {
    max-width: 440px;
}

.gum-hero h1 {
    font-size: clamp(32px, 3.25vw, 48px);
    line-height: 1.045;
}

.gum-hero h1 a {
    -webkit-line-clamp: 6;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
}

.gum-article__header h1 {
    font-size: clamp(34px, 4.15vw, 52px);
    line-height: 1.055;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
}

/* Shared support-provider icon buttons. */
.gum-support-methods {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.gum-support-method {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border: 1px solid #cfe0f2;
    border-radius: 10px;
    background: var(--gum-white);
    color: var(--gum-primary-dark);
    transition: transform var(--gum-transition), background var(--gum-transition), border-color var(--gum-transition), color var(--gum-transition);
}

.gum-support-method:hover,
.gum-support-method:focus-visible {
    transform: translateY(-1px);
    border-color: #a9cbea;
    background: var(--gum-primary-soft);
    color: var(--gum-primary-dark);
}

.gum-support-method svg {
    width: 20px;
    height: 20px;
}

.gum-support-method img {
    width: 20px;
    height: 20px;
    display: block;
    object-fit: contain;
    border-radius: 6px;
}

.gum-support-method--patreon {
    color: #e85b46;
}

.gum-support-method--paypal {
    color: #1769aa;
}

.gum-support-method--monobank {
    color: #111827;
}

/* Compact support links in the desktop header; mobile/tablet gets them inside the menu sheet. */
.gum-header__actions {
    gap: 4px;
}

.gum-header-support {
    flex-wrap: nowrap;
    gap: 3px;
    margin-right: 3px;
}

.gum-header-support .gum-support-method {
    width: 32px;
    height: 32px;
    border-color: transparent;
    border-radius: 50%;
    background: transparent;
}

.gum-header-support .gum-support-method:hover,
.gum-header-support .gum-support-method:focus-visible {
    border-color: transparent;
    background: var(--gum-primary-soft);
}

.gum-header-support .gum-support-method svg {
    width: 18px;
    height: 18px;
}

.gum-header-support .gum-support-method img {
    width: 18px;
    height: 18px;
}

.gum-nav__support {
    display: none;
}

/* Article support CTA now exposes every configured payment method. */
.gum-article-support__methods {
    justify-content: flex-end;
    flex-wrap: nowrap;
}

/* TikTok follows the same restrained blue palette as the other social cards. */
.gum-follow__item--tiktok {
    background: #1d86bd;
}

/* With seven configured networks a 4+3 desktop layout feels more balanced. */
@media (min-width: 1180px) {
    .gum-follow--count-7 .gum-follow__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .gum-follow--count-7 .gum-follow__item:nth-child(3n + 1) {
        border-left: 1px solid rgba(255, 255, 255, .22);
    }

    .gum-follow--count-7 .gum-follow__item:nth-child(4n + 1) {
        border-left: 0;
    }

    .gum-follow--count-7 .gum-follow__item:nth-child(n + 4) {
        border-top: 0;
    }

    .gum-follow--count-7 .gum-follow__item:nth-child(n + 5) {
        border-top: 1px solid rgba(255, 255, 255, .22);
    }
}

/* Footer no longer contains a separate “Розділи” navigation column. */
.gum-footer__grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(180px, .75fr) minmax(220px, 1fr);
    gap: 48px;
}

.gum-footer__brand,
.gum-footer__grid > div:last-child {
    grid-column: auto;
}

.gum-footer__support-methods {
    margin-top: 14px;
}

@media (max-width: 1024px) {
    .gum-hero {
        grid-template-columns: minmax(0, .78fr) minmax(0, 1.42fr);
        gap: 28px;
    }

    .gum-hero h1 {
        font-size: clamp(30px, 4vw, 40px);
    }

    .gum-article__header h1 {
        font-size: clamp(32px, 4.8vw, 46px);
    }

    .gum-header-support {
        display: none;
    }

    .gum-nav__support {
        display: block;
        width: 100%;
        max-width: 440px;
        margin-top: 24px;
        padding: 16px;
        border: 1px solid #d7e6f5;
        border-radius: 10px;
        background: #f8fbff;
    }

    .gum-nav__support-label {
        display: block;
        margin-bottom: 10px;
        color: var(--gum-ink);
        font-size: 13px;
        font-weight: 800;
    }

    .gum-nav__support-methods {
        gap: 10px;
    }

    /* Keep the requested three-column footer on tablets. */
    .gum-footer__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 28px;
        padding: 40px 0 34px;
    }

    .gum-footer__brand,
    .gum-footer__grid > div:last-child {
        grid-column: auto;
    }

    .gum-footer__brand p,
    .gum-footer__grid > div > p {
        max-width: none;
    }
}

@media (max-width: 780px) {
    .gum-hero h1 {
        font-size: clamp(28px, 7.8vw, 36px);
    }

    .gum-article__header h1 {
        font-size: clamp(30px, 8.4vw, 40px);
    }

    .gum-article-support {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .gum-article-support__methods {
        grid-column: 1 / -1;
        justify-content: flex-start;
        padding-left: 55px;
    }
}

@media (max-width: 600px) {
    .gum-footer__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .gum-footer__brand,
    .gum-footer__grid > div:last-child {
        grid-column: auto;
    }
}

@media (max-width: 420px) {
    .gum-article-support__methods {
        padding-left: 0;
    }
}

@media (min-width: 1025px) and (max-width: 1180px) {
    .gum-header-support {
        display: none;
    }
}


/* v1.7.4: reliable mobile/tablet menu close control. */
.gum-menu-toggle__icon {
    display: inline-grid;
    place-items: center;
}

.gum-menu-toggle__icon--close {
    display: none;
}

.gum-menu-toggle[aria-expanded="true"] .gum-menu-toggle__icon--open {
    display: none;
}

.gum-menu-toggle[aria-expanded="true"] .gum-menu-toggle__icon--close {
    display: inline-grid;
}

@media (max-width: 1024px) {
    /* The fixed menu sheet has a high z-index; keep the header controls above it
       so the same button that opens the sheet can always close it. */
    .gum-header__inner {
        position: relative;
        z-index: 540;
    }

    .gum-menu-toggle,
    .gum-brand,
    .gum-header__actions {
        position: relative;
        z-index: 541;
    }
}
