/* Shared presentation for the CMS, Ask and member centre. */
:root {
    --ice-bg: #080d18;
    --ice-nav: #0b1321;
    --ice-surface: #121b2d;
    --ice-ink: #f2f6ff;
    --ice-muted: #9aadc7;
    --ice-line: #293750;
    --ice-blue: #59b4ff;
    --ice-primary: #146bce;
    --ice-primary-hover: #1675de;
    --ice-tint: #14233b;
    --ice-night: #0a1221;
    --ice-footer: #0c1422;
    --ice-green: #82ddb4;
    --ice-red: #ffaba7;
    --ice-radius: 10px;
    --ice-gutter: 20px;
    --ice-content: 1232px;
    --ice-font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

body.ice-theme {
    --ice-nav-height: 80px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: auto;
    padding-top: var(--ice-nav-height);
    background: var(--ice-bg);
    color: var(--ice-ink);
    color-scheme: dark;
    font-family: var(--ice-font);
    line-height: 1.65;
}

.ice-theme .ice-main {
    flex: 1 0 auto;
    width: 100%;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 28px 0 48px;
}

.ice-theme .ice-main::after {
    content: none;
}

.ice-wrap,
.ice-theme .container {
    width: 100%;
    max-width: calc(var(--ice-content) + 2 * var(--ice-gutter));
    margin-inline: auto;
    padding-inline: var(--ice-gutter);
}

.ice-theme .row {
    min-width: 0;
}

.ice-theme a {
    color: var(--ice-blue);
}

.ice-theme a:hover,
.ice-theme a:focus {
    color: #96ceff;
}

.ice-theme :focus-visible {
    outline: 2px solid var(--ice-blue);
    outline-offset: 3px;
}

.ice-theme :target {
    scroll-margin-top: calc(var(--ice-nav-height) + 16px);
}

.ice-theme :is(h1, h2, h3, h4, h5, h6) {
    color: inherit;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.ice-theme h1,
.ice-theme .category-title {
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 700;
}

.ice-theme h2 {
    font-weight: 650;
}

.ice-theme :is(.text-muted, .text-gray, .link-gray, .help-block, .description, .metas, .muted) {
    color: var(--ice-muted);
}

.ice-theme :is(.text-success, .link-success) {
    color: var(--ice-green);
}

.ice-theme :is(.text-danger, .n-error .n-msg) {
    color: var(--ice-red);
}

.ice-theme .text-warning {
    color: #ffd483;
}

.ice-theme :is(.text-primary, .text-info) {
    color: var(--ice-blue);
}

.ice-theme :is(.link-dark, .comment-content a.action) {
    color: var(--ice-ink);
}

.ice-theme .link-dark:hover {
    color: var(--ice-blue);
}

.ice-theme :is(.btn, .form-control) {
    border-radius: 8px;
}

.ice-theme :is(.btn-primary, .btn-primary:active, .btn-primary:active:focus) {
    background: var(--ice-primary);
    border-color: var(--ice-primary);
    color: #fff;
}

.ice-theme .btn-primary:is(:hover, :focus),
.ice-theme .open > .dropdown-toggle.btn-primary {
    background: var(--ice-primary-hover);
    border-color: var(--ice-primary-hover);
    color: #fff;
}

.ice-theme :is(.btn-default, .btn-gray, .btn-light, .btn-outline-primary) {
    background: var(--ice-surface);
    border-color: var(--ice-line);
    color: var(--ice-ink);
}

.ice-theme :is(.btn-default, .btn-gray, .btn-light, .btn-outline-primary):is(:hover, :focus, :active),
.ice-theme .open > .dropdown-toggle.btn-default {
    background: var(--ice-tint);
    border-color: var(--ice-blue);
    color: var(--ice-blue);
}

.ice-theme :is(.btn-success, .btn-warning, .btn-danger, .btn-info) {
    color: #fff;
}

.ice-theme .btn-link {
    color: var(--ice-blue);
}

.ice-theme :is(.form-control, select, textarea) {
    background-color: var(--ice-night);
    border-color: var(--ice-line);
    color: var(--ice-ink);
    box-shadow: none;
}

.ice-theme :is(.form-control, select, textarea):focus {
    border-color: var(--ice-blue);
    box-shadow: none;
}

.ice-theme :is(.form-control[disabled], .form-control[readonly], fieldset[disabled] .form-control) {
    color: var(--ice-muted);
    background-color: var(--ice-tint);
}

.ice-theme :is(input, textarea)::placeholder {
    color: var(--ice-muted);
    opacity: 1;
}

.ice-theme input:is([type="checkbox"], [type="radio"]) {
    accent-color: var(--ice-blue);
}

.ice-theme .has-error .form-control {
    border-color: var(--ice-red);
}

.ice-theme .has-error :is(.control-label, .help-block) {
    color: var(--ice-red);
}

.ice-theme :is(.input-group-addon, .well, .list-group-item, .radio .label) {
    background: var(--ice-night);
    border-color: var(--ice-line);
    color: var(--ice-muted);
}

.ice-theme :is(.panel, .thumbnail, .card, .ice-panel, .user-section, .user-profile) {
    background: var(--ice-surface);
    color: var(--ice-ink);
    border: 1px solid var(--ice-line);
    border-radius: var(--ice-radius);
    box-shadow: none;
}

.ice-theme :is(.panel-heading, .panel-footer, .thumbnail .caption) {
    background: transparent;
    color: inherit;
    border-color: var(--ice-line);
}

.ice-theme .panel-heading + .panel-collapse > .panel-body {
    border-top-color: var(--ice-line);
}

.ice-theme .panel-default > .panel-body {
    color: inherit;
}

.ice-theme :is(.panel-title small, .article-metas .metas-body, .media-intro, .loadmore-tips) {
    color: var(--ice-muted);
}

.ice-theme :is(.nav-tabs, .page-header, hr, .article-item, .comment-item, .answer-item,
.question-list-item),
.ice-theme .loadmore-line::before,
.ice-theme .loadmore-line::after {
    border-color: var(--ice-line);
}

.ice-theme :is(.panel-title .more, .nav-tabs, .nav-pills) {
    overflow-wrap: anywhere;
}

.ice-theme .nav > li > a {
    color: var(--ice-muted);
}

.ice-theme .nav > li > a:is(:hover, :focus),
.ice-theme :is(.nav-pills, .nav-tabs) > li.active > a,
.ice-theme :is(.nav-pills, .nav-tabs) > li.active > a:is(:hover, :focus) {
    background: var(--ice-tint);
    color: var(--ice-blue);
    border-color: var(--ice-line);
}

.ice-theme .nav-tabs > li > a {
    border-radius: 8px 8px 0 0;
}

.ice-theme :is(.dropdown-menu, .popover, .modal-content, .autocomplete-suggestions, .ui-autocomplete) {
    background: var(--ice-surface);
    border: 1px solid var(--ice-line);
    color: var(--ice-ink);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}

.ice-theme :is(.popover-title, .modal-header, .modal-footer) {
    background: var(--ice-tint);
    border-color: var(--ice-line);
    color: var(--ice-ink);
}

.ice-theme .popover.bottom > .arrow::after {
    border-bottom-color: var(--ice-tint);
}

.ice-theme .popover.top > .arrow::after {
    border-top-color: var(--ice-surface);
}

.ice-theme .popover.left > .arrow::after {
    border-left-color: var(--ice-surface);
}

.ice-theme .popover.right > .arrow::after {
    border-right-color: var(--ice-surface);
}

.ice-theme .dropdown-menu > li > a {
    color: var(--ice-ink);
}

.ice-theme .dropdown-menu > li > a:is(:hover, :focus),
.ice-theme .dropdown-menu > .active > a,
.ice-theme .autocomplete-selected {
    background: var(--ice-tint);
    color: var(--ice-blue);
}

.ice-theme :is(.autocomplete-search, .autocomplete-searchmenu) .autocomplete-suggestion {
    color: var(--ice-ink);
}

.ice-theme :is(.autocomplete-search, .autocomplete-searchmenu) .autocomplete-suggestion:is(.selected, :hover) {
    background: var(--ice-tint);
}

.ice-theme :is(.autocomplete-search, .autocomplete-searchmenu) .autocomplete-suggestion :is(b, em) {
    color: var(--ice-blue);
}

.ice-theme :is(.dropdown-menu .divider, .nav-divider) {
    background: var(--ice-line);
}

.ice-theme :is(.breadcrumb, .loadmore-line .loadmore-tips) {
    background: transparent;
    color: var(--ice-muted);
}

.ice-theme .breadcrumb > .active {
    color: var(--ice-muted);
}

.ice-theme .ice-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    margin: 0 0 14px;
    padding: 0;
    font-size: 13px;
}

.ice-theme .ice-breadcrumb > li + li::before {
    color: var(--ice-muted);
}

.ice-theme .ice-empty-state {
    display: grid;
    place-items: center;
    gap: 4px;
    min-height: 120px;
    margin: 12px 0;
    padding: 16px;
    color: var(--ice-muted);
    background: var(--ice-bg);
    border: 1px solid var(--ice-line);
    border-radius: 8px;
    text-align: center;
}

.ice-theme .ice-empty-state strong {
    color: var(--ice-ink);
}

.ice-theme :is(.pagination, .pager) > li > :is(a, span) {
    color: var(--ice-muted);
    background: var(--ice-surface);
    border-color: var(--ice-line);
}

.ice-theme :is(.pagination, .pager) > :is(.active, li:hover) > :is(a, span) {
    color: var(--ice-ink);
    background: var(--ice-tint);
    border-color: var(--ice-line);
}

.ice-theme .table :is(td, th),
.ice-theme :is(.table, .table-responsive, .bootstrap-table .fixed-table-container) {
    border-color: var(--ice-line);
    color: var(--ice-ink);
}

.ice-theme :is(.table-striped > tbody > tr:nth-of-type(odd), .table-hover > tbody > tr:hover,
.table > tbody > tr.active > td, .bootstrap-table .fixed-table-container .fixed-table-loading) {
    background: var(--ice-tint);
    color: var(--ice-ink);
}

.ice-theme .table-responsive {
    overflow-x: auto;
}

.ice-theme :is(pre, code, kbd) {
    color: #c6dcf8;
    background: var(--ice-night);
    border-color: var(--ice-line);
}

.ice-theme :is(.article-text, .wysiwyg, .ice-copy, .note-editable) {
    color: var(--ice-ink);
    overflow-wrap: anywhere;
}

.ice-theme :is(.article-text, .wysiwyg) :is(img, video) {
    max-width: 100%;
}

.ice-theme :is(.article-text, .wysiwyg) table {
    display: block;
    max-width: 100%;
    overflow: auto;
    background: transparent;
}

.ice-theme :is(.article-text, .wysiwyg) :is(td, th, blockquote) {
    border-color: var(--ice-line);
}

.ice-theme :is(.article-text, .wysiwyg) :is(blockquote, th, tr:nth-child(even)) {
    color: var(--ice-muted);
    background: var(--ice-tint);
}

.ice-theme :is(.tab-inner, .question-detail, .answer-detail, .comment-post, .article-detail,
.note-editor.note-frame, .markdown-editor, .md-editor, .tagsinput) {
    background: var(--ice-surface);
    border-color: var(--ice-line);
    color: var(--ice-ink);
    border-radius: var(--ice-radius);
}

.ice-theme .tab-inner[style] {
    background: var(--ice-surface) !important;
}

.ice-theme :is(.note-editor .note-editing-area .note-editable, .note-editor .note-statusbar,
.md-editor > textarea, .md-editor > .md-preview, .md-editor > .md-footer, .md-editor > .md-header) {
    color: var(--ice-ink);
    background: var(--ice-night);
    border-color: var(--ice-line);
}

.ice-theme :is(.label-default, .badge, .tag, .tabs-wrapper .tabs-group .content a) {
    color: var(--ice-muted);
    background: var(--ice-tint);
    border-radius: 5px;
}

.ice-theme :is(.tabs-wrapper .tabs-group .content .active a, .tag:hover) {
    background: var(--ice-primary);
    color: #fff;
}

.ice-theme .tabs-wrapper :is(.title, .tabs-group) {
    border-color: var(--ice-line);
    color: var(--ice-muted);
}

.ice-theme .tabs-wrapper {
    background: transparent;
}

.ice-theme :is(.article-list .article-title, .question-list-item .title, .addon-item .title,
.product-item .card .title, .media-heading, .list-group-heading, .question-title) a {
    color: var(--ice-ink);
}

.ice-theme :is(.article-list .article-title, .question-list-item .title, .addon-item .title,
.product-item .card .title, .media-heading, .question-title) a:hover {
    color: var(--ice-blue);
}

.ice-theme :is(.question-list-item .author, .question-list-item .author a, .question-list-item .excerpt,
.qa-rank, .qa-rank .views, .article-list .article-intro, .article-list .article-tag) {
    color: var(--ice-muted);
}

.ice-theme .qa-rank .answers {
    background: var(--ice-tint);
    border-color: transparent;
    color: var(--ice-muted);
}

.ice-theme .qa-rank .answered {
    color: var(--ice-blue);
}

.ice-theme .qa-rank .solved {
    color: var(--ice-green);
    background: #15382f;
}

.ice-theme :is(.question-list-item.highlight, .answer-item.best, .list-group-item.active) {
    color: var(--ice-ink);
    background: var(--ice-tint);
    border-color: var(--ice-line);
}

.ice-theme :is(.alert-info, .alert-success, .alert-warning, .alert-danger) {
    background: var(--ice-tint);
    border-color: var(--ice-line);
}

.ice-theme .alert-info { color: var(--ice-blue); }
.ice-theme .alert-success { color: var(--ice-green); }
.ice-theme .alert-warning { color: #ffd483; }
.ice-theme .alert-danger { color: var(--ice-red); }

.ice-theme :is(.loadmore, .no-data) {
    color: var(--ice-muted);
}

.ice-theme .close {
    color: var(--ice-ink);
    opacity: .85;
    text-shadow: none;
}

.ice-theme #floatbtn > a,
.ice-theme #floatbtn .floatbtn-item {
    color: var(--ice-blue);
    background: var(--ice-surface);
    border: 1px solid var(--ice-line);
    border-radius: 8px;
}

.ice-theme #floatbtn :is(a, .floatbtn-item):hover {
    color: #fff;
    background: var(--ice-primary);
}

.ice-theme :is(.layui-layer-page, .layui-layer-dialog) {
    background: var(--ice-surface);
    color: var(--ice-ink);
    border-radius: var(--ice-radius);
}

.ice-theme :is(.layui-layer-page, .layui-layer-dialog) .layui-layer-title {
    background: var(--ice-tint);
    border-bottom-color: var(--ice-line);
    border-radius: var(--ice-radius) var(--ice-radius) 0 0;
    color: var(--ice-ink);
}

.ice-theme :is(.layui-layer-page, .layui-layer-dialog) .layui-layer-setwin {
    filter: invert(1) grayscale(1);
}

.ice-theme .ice-eyebrow {
    margin: 0;
    color: var(--ice-blue);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.ice-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.ice-actions i {
    margin-left: 6px;
    font-size: 12px;
}

.ice-section-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 24px;
    margin-bottom: 24px;
}

.ice-section-heading h2 {
    margin: 6px 0 0;
    font-size: clamp(21px, 2.3vw, 29px);
}

.ice-section-heading > a {
    flex-shrink: 0;
}

.ice-theme .ice-plugin-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ice-theme :is(.ice-plugin-grid, .ice-course-grid) > * {
    width: auto;
    min-width: 0;
    float: none;
    padding: 0;
}

.ice-theme :is(.ice-plugin-grid .addon-item, .ice-course-grid .card) {
    height: 100%;
    overflow: hidden;
    margin: 0;
    color: var(--ice-ink);
    background: var(--ice-surface);
    border: 1px solid var(--ice-line);
    border-radius: var(--ice-radius);
}

/* Existing navigation, including Bootstrap dropdowns and the CMS mobile drawer. */
.ice-theme .ice-navigation {
    min-height: var(--ice-nav-height);
    margin: 0;
    background: var(--ice-nav);
    border: 0;
    border-bottom: 1px solid var(--ice-line);
    box-shadow: none;
}

.ice-theme .ice-navigation .navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: var(--ice-nav-height);
    margin-left: 0;
    padding: 0;
    color: var(--ice-ink);
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
}

.ice-theme .ice-navigation .navbar-brand img {
    display: block;
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.ice-theme .ice-navigation .navbar-nav > li > a {
    height: auto;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 22px;
    color: var(--ice-muted);
    background: transparent;
}

.ice-theme .ice-navigation .navbar-nav > :is(.active, .open) > a,
.ice-theme .ice-navigation .navbar-nav > li > a:is(:hover, :focus) {
    color: var(--ice-blue);
}

.ice-theme .ice-navigation .navbar-nav > li > a.ice-nav-register {
    padding: 9px 14px;
    color: #fff;
    background: var(--ice-primary);
}

.ice-theme .ice-navigation .navbar-nav > li > a.ice-nav-register:is(:hover, :focus) {
    background: var(--ice-primary-hover);
}

.ice-theme .ice-navigation .navbar-form,
.ice-theme .ice-navigation .form-search {
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    position: relative;
}

.ice-theme .ice-navigation .ice-nav-search .ice-search-icon {
    position: absolute;
    inset-inline-start: 12px;
    top: 50%;
    color: var(--ice-muted);
    pointer-events: none;
    transform: translateY(-50%);
}

.ice-theme .ice-navigation .ice-nav-search:focus-within .ice-search-icon {
    color: var(--ice-blue);
}

.ice-theme .ice-navigation .ice-nav-search input.form-control[type="search"] {
    display: block;
    width: clamp(110px, 12vw, 178px);
    height: 38px;
    padding: 6px 12px 6px 34px;
    color: var(--ice-ink);
    caret-color: var(--ice-blue);
    background: var(--ice-night);
    border: 1px solid var(--ice-line);
    border-radius: 8px;
    box-shadow: none;
    cursor: text;
    font-size: 13px;
    transition: background-color .15s ease, border-color .15s ease;
}

.ice-theme .ice-navigation .ice-nav-search input.form-control[type="search"]:hover {
    background: var(--ice-surface);
}

.ice-theme .ice-navigation .ice-nav-search input.form-control[type="search"]:focus {
    background: var(--ice-night);
    border-color: var(--ice-blue);
    outline: none;
    box-shadow: 0 0 0 2px rgb(89 180 255 / 18%);
}

.ice-theme .ice-navigation .ice-nav-search input.form-control[type="search"]::placeholder {
    color: var(--ice-muted);
    opacity: 1;
}

@media (forced-colors: active) {
    .ice-theme .ice-navigation .ice-nav-search input.form-control[type="search"]:focus {
        outline: 2px solid Highlight;
        outline-offset: 2px;
    }
}

.ice-theme .ice-navigation .navbar-toggle {
    width: 44px;
    height: 44px;
    margin: 10px 0 0 6px;
    padding: 10px;
    color: var(--ice-ink);
    background: var(--ice-surface);
    border: 1px solid var(--ice-line);
    border-radius: 8px;
}

.ice-theme .ice-navigation .navbar-toggle .icon-bar {
    width: 20px;
    background: var(--ice-ink);
}

.ice-theme .ice-navigation .ice-mobile-search {
    display: none;
}

@media (min-width: 768px) {
    .ice-theme .ice-navigation > .container {
        display: flex;
        align-items: center;
        gap: 18px;
    }

    .ice-theme .ice-navigation > .container::before,
    .ice-theme .ice-navigation > .container::after {
        content: none;
    }

    .ice-theme .ice-navigation .navbar-collapse.collapse {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        min-width: 0;
        flex: 1;
        gap: 12px;
        padding: 0;
    }

    .ice-theme .ice-navigation .navbar-collapse :is(.navbar-nav, .navbar-right) {
        position: static;
        display: flex;
        align-items: center;
        width: auto;
        margin: 0 !important;
        background: transparent;
        white-space: nowrap;
    }

    .ice-theme .ice-navigation .navbar-nav > li.dropdown:focus-within > .dropdown-menu,
    .ice-theme .ice-navigation .navbar-nav .dropdown-submenu:focus-within > .dropdown-menu {
        display: block;
    }

    .ice-theme .ice-navigation .navbar-nav > li > .dropdown-menu {
        margin-top: 0;
    }
}

@media (min-width: 768px) and (max-width: 1099px) {
    .ice-theme .ice-navigation .navbar-brand span {
        display: none;
    }

    .ice-theme .ice-navigation .navbar-nav > li > a {
        padding-inline: 7px;
        font-size: 13px;
    }

    .ice-theme .ice-navigation > .container,
    .ice-theme .ice-navigation .navbar-collapse.collapse {
        gap: 8px;
    }
}

@media (max-width: 767px) {
    body.ice-theme {
        --ice-nav-height: 64px;
    }

    .ice-theme .ice-main {
        padding: 20px 0 32px;
    }

    .ice-theme .ice-main > .container {
        overflow-x: visible;
    }

    .ice-theme .ice-navigation .navbar-header {
        margin-inline: 0;
    }

    .ice-theme .ice-navigation .ice-mobile-search {
        display: grid;
        float: right;
        place-items: center;
        width: 44px;
        height: 44px;
        margin-top: 10px;
        background: var(--ice-surface);
        border: 1px solid var(--ice-line);
        border-radius: 8px;
    }

    .ice-theme .ice-navigation .navbar-collapse {
        background: var(--ice-nav);
        border-color: var(--ice-line);
        overscroll-behavior: contain;
    }

    .ice-theme.ice-cms .ice-navigation .navbar-collapse {
        left: 0;
        top: var(--ice-nav-height);
        width: min(320px, calc(100vw - 36px));
        height: calc(100dvh - var(--ice-nav-height));
        margin: 0;
        visibility: hidden;
        transform: translateX(-100%);
        transition: transform .2s ease, visibility .2s;
    }

    .ice-theme.ice-cms .ice-navigation .navbar-collapse.active {
        visibility: visible;
        transform: none;
    }

    .ice-theme.ice-cms .ice-navigation .navbar-collapse-bg {
        inset: var(--ice-nav-height) 0 0;
        height: auto;
        background: rgba(0, 0, 0, .54);
    }

    .ice-theme .ice-navigation .navbar-nav .open .dropdown-menu,
    .ice-theme .ice-navigation .navbar-nav .open .dropdown-menu > li > a {
        background: var(--ice-nav);
        color: var(--ice-muted);
    }

    .ice-theme .ice-navigation .navbar-nav .open .dropdown-menu > li > a:is(:hover, :focus) {
        background: var(--ice-tint);
        color: var(--ice-blue);
    }

    .ice-theme .ice-navigation .ice-nav-search input.form-control[type="search"] {
        width: 100%;
    }

    .ice-theme .category-title > .more {
        float: none !important;
        display: block;
        margin: 10px 0 0;
    }

    .ice-theme .category-title .breadcrumb {
        padding-left: 0;
    }
}

.ice-theme .ice-footer {
    position: static;
    height: auto;
    margin: 0;
    padding: 34px 0 22px;
    background: var(--ice-footer);
    border-top: 1px solid var(--ice-line);
    color: var(--ice-muted);
    font-size: 13px;
}

.ice-footer-nav {
    display: grid;
    grid-template-columns: minmax(245px, 2fr) repeat(3, minmax(100px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.ice-theme .ice-footer-nav > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
}

.ice-theme .ice-footer :is(a, summary) {
    color: var(--ice-muted);
}

.ice-theme .ice-footer :is(a, summary):is(:hover, :focus) {
    color: var(--ice-blue);
}

.ice-theme .ice-footer strong,
.ice-theme .ice-footer-brand > a {
    color: var(--ice-ink);
    font-weight: 650;
}

.ice-theme .ice-footer-brand > a {
    font-size: 18px;
}

.ice-footer-brand p {
    margin: 0;
}

.ice-footer-social summary {
    cursor: pointer;
}

.ice-footer-social ul {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.ice-footer-social li {
    display: grid;
    gap: 5px;
    text-align: center;
}

.ice-footer-social img {
    display: block;
    width: 74px;
    height: 74px;
    margin: 0 auto 4px;
    background: #fff;
    border-radius: 4px;
}

.ice-footer-copyright {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    padding-top: 16px;
    border-top: 1px solid var(--ice-line);
}

@media (max-width: 767px) {
    .ice-footer-nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .ice-footer-brand {
        grid-column: 1 / -1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ice-theme.ice-cms .ice-navigation .navbar-collapse {
        transition: none;
    }
}
