/*
|--------------------------------------------------------------------------
| DNTM
| Public interface
|--------------------------------------------------------------------------
*/


/*
|--------------------------------------------------------------------------
| RESET
|--------------------------------------------------------------------------
*/

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    font-size: 16px;
    line-height: 1.5;

    color: #182230;
    background: #f4f6f8;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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


/*
|--------------------------------------------------------------------------
| VARIABLES
|--------------------------------------------------------------------------
*/

:root {

    --color-primary: #0b4f78;
    --color-primary-hover: #083d5d;

    --color-text: #182230;
    --color-text-muted: #667085;

    --color-border: #d8dee6;

    --color-background: #f4f6f8;
    --color-surface: #ffffff;

    --color-success: #147a4b;
    --color-success-bg: #eaf7f0;

    --color-warning: #9a6700;
    --color-warning-bg: #fff6d8;

    --color-danger: #b42318;
    --color-danger-bg: #fff0ee;

    --shadow-card:
        0 1px 2px rgba(16, 24, 40, 0.04),
        0 4px 12px rgba(16, 24, 40, 0.06);

    --radius-small: 6px;
    --radius: 10px;
    --radius-large: 14px;

    --container-width: 1000px;
}


/*
|--------------------------------------------------------------------------
| GLOBAL
|--------------------------------------------------------------------------
*/

body {
    min-width: 320px;
}

.site {
    min-height: 100vh;

    display: flex;
    flex-direction: column;
}

.main {
    flex: 1;
}

.container {
    width: min(
        calc(100% - 32px),
        var(--container-width)
    );

    margin-left: auto;
    margin-right: auto;
}

.is-hidden {
    display: none !important;
}


/*
|--------------------------------------------------------------------------
| HEADER
|--------------------------------------------------------------------------
*/

.site-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
    min-height: 68px;

    display: flex;
    align-items: center;
}

.brand {
    display: inline-flex;
    align-items: baseline;
    gap: 12px;
}

.brand__name {
    font-size: 24px;
    line-height: 1;
    font-weight: 750;

    letter-spacing: -0.03em;

    color: var(--color-primary);
}

.brand__description {
    font-size: 14px;
    color: var(--color-text-muted);
}


/*
|--------------------------------------------------------------------------
| SEARCH PANEL
|--------------------------------------------------------------------------
*/

.search-panel {
    padding: 24px;

    background: var(--color-surface);

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

    box-shadow: var(--shadow-card);
    margin-bottom: 20px;
}

/*
|--------------------------------------------------------------------------
| FORM
|--------------------------------------------------------------------------
*/

.search-form__main {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    gap: 12px;

    align-items: end;
}

.field {
    min-width: 0;
}

.field__label {
    display: block;

    margin-bottom: 7px;

    font-size: 14px;
    font-weight: 600;

    color: #344054;
}

.field__input,
.field__select {
    width: 100%;
    height: 44px;

    padding: 0 12px;

    color: var(--color-text);
    background: var(--color-surface);

    border: 1px solid #cbd3dc;
    border-radius: var(--radius-small);

    outline: none;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.field__input--large {
    height: 50px;

    padding-left: 15px;
    padding-right: 15px;

    font-size: 18px;
}

.field__input::placeholder {
    color: #98a2b3;
}

.field__input:focus,
.field__select:focus {
    border-color: var(--color-primary);

    box-shadow:
        0 0 0 3px rgba(11, 79, 120, 0.12);
}


/*
|--------------------------------------------------------------------------
| BUTTON
|--------------------------------------------------------------------------
*/

.button {
    height: 44px;

    padding: 0 20px;

    border: 0;
    border-radius: var(--radius-small);

    font-weight: 650;

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

.button--primary {
    color: #ffffff;
    background: var(--color-primary);
}

.button--primary:hover {
    background: var(--color-primary-hover);
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.search-form__submit {
    height: 50px;
    min-width: 120px;
}


/*
|--------------------------------------------------------------------------
| SEARCH OPTIONS
|--------------------------------------------------------------------------
*/

.search-options {
    margin-top: 22px;
    padding-top: 22px;

    border-top: 1px solid #eaecf0;
}

.search-options .field {
    max-width: 320px;
}


/*
|--------------------------------------------------------------------------
| CHECKBOX
|--------------------------------------------------------------------------
*/

.checkbox {
    display: inline-flex;
    align-items: flex-start;

    gap: 9px;

    cursor: pointer;
}

.checkbox__input {
    width: 17px;
    height: 17px;

    margin: 3px 0 0;

    accent-color: var(--color-primary);
}

.checkbox__label {
    color: #344054;
}

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

/*
|--------------------------------------------------------------------------
| CUTOFF
|--------------------------------------------------------------------------
*/

.cutoff-fields {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(120px, 180px));

    gap: 12px;

    margin-top: 16px;
}


/*
|--------------------------------------------------------------------------
| SEARCH MESSAGE
|--------------------------------------------------------------------------
*/

.search-message {
    margin-top: 20px;
    padding: 12px 14px;

    border-radius: var(--radius-small);

    color: var(--color-danger);
    background: var(--color-danger-bg);

    border: 1px solid rgba(180, 35, 24, 0.18);
}


/*
|--------------------------------------------------------------------------
| RESULTS
|--------------------------------------------------------------------------
*/

.results-section {
    padding: 0 0 64px;
}

.result-summary {
    margin-bottom: 20px;
}


/*
|--------------------------------------------------------------------------
| RESULT CARD
|--------------------------------------------------------------------------
*/

.result-card {
    padding: 22px;

    background: var(--color-surface);

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

    box-shadow: var(--shadow-card);
}

.result-card__header {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;
}

.result-card__title {
    margin: 0;

    font-size: 24px;
    line-height: 1.25;
}

.result-card__meta {
    margin-top: 6px;

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

.result-card__stats {
    flex-shrink: 0;

    text-align: right;
}

.result-card__count {
    display: block;

    font-size: 28px;
    line-height: 1;

    font-weight: 700;
}

.result-card__count-label {
    display: block;

    margin-top: 5px;

    font-size: 13px;

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


/*
|--------------------------------------------------------------------------
| STATUS
|--------------------------------------------------------------------------
*/

.status {
    display: inline-flex;
    align-items: center;

    padding: 4px 8px;

    border-radius: 999px;

    font-size: 13px;
    font-weight: 650;
}

.status--success {
    color: var(--color-success);
    background: var(--color-success-bg);
}

.status--warning {
    color: var(--color-warning);
    background: var(--color-warning-bg);
}

.dntm-tool-status.database-status__card {
    margin-bottom: 20px;
}
/* ==========================================================================
   LEGAL NOTICE
   ========================================================================== */

.legal-notice {
    display: flex;
    align-items: flex-start;
    gap: 14px;

    margin: 0 0 24px;
    padding: 16px 18px;

    border: 1px solid #ead99c;
    border-radius: var(--radius);

    background: var(--color-warning-bg);
}

.legal-notice__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;

    width: 24px;
    height: 24px;

    border: 1px solid var(--color-warning);
    border-radius: 50%;

    color: var(--color-warning);

    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.legal-notice__content {
    min-width: 0;
}

.legal-notice__title {
    display: block;

    margin: 0 0 4px;

    color: var(--color-warning);

    font-size: 15px;
    font-weight: 700;
}

.legal-notice__text {
    margin: 0;

    color: var(--color-text);

    font-size: 14px;
    line-height: 1.55;
}
/*
|--------------------------------------------------------------------------
| EDITION WARNING
|--------------------------------------------------------------------------
*/

.edition-warning {
    margin-top: 16px;

    padding: 12px 14px;

    color: #7a5100;
    background: var(--color-warning-bg);

    border: 1px solid rgba(154, 103, 0, 0.2);
    border-radius: var(--radius-small);
}


/*
|--------------------------------------------------------------------------
| NOTICES
|--------------------------------------------------------------------------
*/

.notices {
    display: grid;
    gap: 12px;
}


/*
|--------------------------------------------------------------------------
| NOTICE
|--------------------------------------------------------------------------
*/

.notice {
    overflow: hidden;

    background: var(--color-surface);

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

    box-shadow:
        0 1px 2px rgba(16, 24, 40, 0.03);
}

.notice__header {
    width: 100%;

    display: grid;

    grid-template-columns:
        minmax(100px, 140px)
        minmax(0, 1fr)
        auto;

    gap: 18px;

    align-items: center;

    padding: 16px 18px;

    text-align: left;

    border: 0;

    color: inherit;
    background: transparent;
}

.notice__header:hover {
    background: #fafbfc;
}

.notice__issue {
    font-size: 14px;

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

.notice__number {
    font-weight: 700;
}

.notice__heading {
    margin-top: 2px;

    font-size: 14px;

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

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notice__toggle {
    color: var(--color-primary);

    font-size: 14px;
    font-weight: 600;
}

.notice__body {
    padding: 0 18px 18px;

    border-top: 1px solid #eaecf0;
}

.notice__text {
    margin: 16px 0 0;

    white-space: pre-wrap;

    line-height: 1.65;
}

.notice__warning {
    margin-top: 18px;
    padding: 14px 16px;

    background: #f6faff;
    border: 1px solid #64bbdb;
    border-left: 4px solid #64bbdb;

    border-radius: 8px;
}

.notice__warning .result-card__meta {
    margin-bottom: 8px;

    font-weight: 600;
    color: #397daf;
}

.notice__warning .notice__text {
    margin: 0;

    color: #2f2f2f;
    line-height: 1.55;
    white-space: pre-line;
}
/*
|--------------------------------------------------------------------------
| NOTICE FLAGS
|--------------------------------------------------------------------------
*/

.notice-flags {
    display: inline-flex;

    gap: 6px;

    margin-left: 6px;
}

.notice-flag {
    display: inline-block;

    padding: 1px 5px;

    border-radius: 4px;

    font-size: 11px;
    font-weight: 700;

    vertical-align: middle;
}

.notice-flag--starred {
    color: #7a5100;
    background: var(--color-warning-bg);
}

.notice-flag--temporary {
    color: #6941c6;
    background: #f4f0ff;
}


/*
|--------------------------------------------------------------------------
| EMPTY RESULT
|--------------------------------------------------------------------------
*/

.empty-result {
    padding: 28px;

    text-align: center;

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

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

    box-shadow: var(--shadow-card);
}

.empty-result__title {
    margin-bottom: 5px;

    color: var(--color-text);

    font-size: 18px;
    font-weight: 650;
}


/*
|--------------------------------------------------------------------------
| LOADING
|--------------------------------------------------------------------------
*/

.loading {
    position: fixed;

    inset: 0;

    z-index: 100;

    display: flex;

    flex-direction: column;

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

    gap: 14px;

    background: rgba(244, 246, 248, 0.82);

    backdrop-filter: blur(2px);
}

.loading__spinner {
    width: 34px;
    height: 34px;

    border: 3px solid #d8dee6;
    border-top-color: var(--color-primary);

    border-radius: 50%;

    animation:
        dntm-spinner 0.7s linear infinite;
}

.loading__text {
    font-size: 14px;

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

@keyframes dntm-spinner {

    to {
        transform: rotate(360deg);
    }

}


/*
|--------------------------------------------------------------------------
| FOOTER
|--------------------------------------------------------------------------
*/
.dntm-shell__footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 0px;
    font-size: 13px;
}

.dntm-shell__footer-links a {
    text-decoration: none;
}

.dntm-shell__footer-links a:hover {
    text-decoration: underline;
}
.site-footer {
    padding: 28px 0;

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

    background: var(--color-surface);
}

.site-footer__inner {
    display: flex;

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

    gap: 24px;
}

.site-footer__brand {
    font-weight: 700;

    color: var(--color-primary);
}

.site-footer__text {
    max-width: 600px;

    text-align: right;

    font-size: 13px;

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

.dntm-shell__footer-links {
    display: flex;
    flex-direction: raw;
    gap: 20px;
    margin-bottom: 20px;
}

.dntm-shell__footer-copyright {
    margin-top: 0px;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 12px;
    line-height: 1.5;
}
.dntm-shell__footer-column {
    
}
/*
|--------------------------------------------------------------------------
| DATABASE STATUS
|--------------------------------------------------------------------------
*/

.database-status__card {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;

    padding: 18px 22px;

    background: #eef5fa;

    border: 1px solid #cbddea;

    border-radius: var(--radius);

}


.database-status__item {

    font-size: 14px;

    color: #344054;

}


.database-status__item strong {

    display: block;

    margin-bottom: 4px;

    color: var(--color-primary);

}

.result-status {

    margin-top: 12px;

}

@media (max-width: 720px) {

    .database-status__card {

        grid-template-columns: 1fr;

    }

}

/*
|--------------------------------------------------------------------------
| TABLET
|--------------------------------------------------------------------------
*/

@media (max-width: 720px) {

    .search-section {
        padding-top: 42px;
    }

    .search-form__main {
        grid-template-columns: 1fr;
    }

    .search-form__submit {
        width: 100%;
    }

    .result-card__header {
        flex-direction: column;
    }

    .result-card__stats {
        text-align: left;
    }

    .notice__header {
        grid-template-columns:
            minmax(90px, 120px)
            minmax(0, 1fr);
    }

    .notice__toggle {
        display: none;
    }

}


/*
|--------------------------------------------------------------------------
| MOBILE
|--------------------------------------------------------------------------
*/

@media (max-width: 520px) {

    .container {
        width: min(
            calc(100% - 24px),
            var(--container-width)
        );
    }

    .site-header__inner {
        min-height: 60px;
    }

    .brand__description {
        display: none;
    }

    .search-section {
        padding-top: 32px;
        padding-bottom: 24px;
    }

    .search-intro {
        margin-bottom: 20px;
    }

    .search-intro__text {
        font-size: 16px;
    }

    .search-panel {
        padding: 18px;
    }

    .search-tabs {
        width: 100%;
    }

    .search-tabs__button {
        flex: 1;

        min-width: 0;
    }

    .cutoff-fields {
        grid-template-columns: 1fr 1fr;
    }

    .result-card {
        padding: 18px;
    }

    .notice__header {
        display: block;

        padding: 15px;
    }

    .notice__issue {
        margin-bottom: 5px;
    }

    .notice__heading {
        white-space: normal;
    }

    .notice__body {
        padding-left: 15px;
        padding-right: 15px;
    }

    .site-footer__inner {
        display: block;
    }

    .site-footer__text {
        margin-top: 6px;

        text-align: left;
    }

}

/*
|--------------------------------------------------------------------------
| HEADER AUTH
|--------------------------------------------------------------------------
*/

.site-header__inner {
    justify-content: space-between;
    gap: 24px;
}

.header-auth {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
}

.header-auth__link,
.header-auth__logout {
    padding: 0;

    border: 0;
    background: transparent;

    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);

    cursor: pointer;
}

.header-auth__link:hover,
.header-auth__logout:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

.header-auth__form {
    margin: 0;
}

@media (max-width: 520px) {

    .site-header__inner {
        gap: 12px;
    }

    .header-auth {
        gap: 9px;
    }

    .header-auth__link,
    .header-auth__logout {
        font-size: 13px;
    }

}

/*
|--------------------------------------------------------------------------
| DNTM APPLICATION SHELL
|--------------------------------------------------------------------------
*/

.dntm-shell {
    min-height: 100vh;

    display: flex;

    background: var(--color-background);
}

.dntm-shell__workspace {
    min-width: 0;
    min-height: 100vh;

    flex: 1;

    display: flex;
    flex-direction: column;

    margin-left: 270px;
}

.dntm-shell__main {
    flex: 1;
}

.dntm-shell__content {
    width: min(
        calc(100% - 64px),
        1180px
    );

    margin: 0 auto;

    padding: 48px 0 64px;
}


/*
|--------------------------------------------------------------------------
| DNTM MOBILE HEADER
|--------------------------------------------------------------------------
*/

.dntm-shell__mobile-header {
    display: none;

    min-height: 60px;

    padding: 0 20px;

    align-items: center;

    background: var(--color-surface);

    border-bottom: 1px solid var(--color-border);
}

.dntm-shell__menu-button {
    width: 40px;
    height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;
    border-radius: var(--radius-small);

    color: var(--color-text);
    background: transparent;
}

.dntm-shell__menu-button:hover {
    background: #eef1f4;
}

.dntm-shell__menu-icon {
    font-size: 22px;
    line-height: 1;
}

.dntm-shell__mobile-brand {
    margin-left: 12px;

    font-size: 20px;
    font-weight: 750;

    letter-spacing: -0.03em;

    color: var(--color-primary);
}


/*
|--------------------------------------------------------------------------
| DNTM SIDEBAR
|--------------------------------------------------------------------------
*/

.dntm-sidebar {
    position: fixed;

    top: 0;
    bottom: 0;
    left: 0;

    z-index: 50;

    width: 270px;

    background: var(--color-surface);

    border-right: 1px solid var(--color-border);
}

.dntm-sidebar__inner {
    height: 100%;

    display: flex;
    flex-direction: column;

    padding: 24px 16px 16px;
}


/*
|--------------------------------------------------------------------------
| DNTM SIDEBAR BRAND
|--------------------------------------------------------------------------
*/

.dntm-sidebar__brand {
    padding: 0 10px 26px;
}

.dntm-sidebar__brand-link {
    display: block;
}

.dntm-sidebar__brand {
    padding: 0 8px 22px;
}

.dntm-sidebar__brand-link {
    display: block;
}

.dntm-sidebar__brand-logo {
    display: block;

    width: 100%;
    max-width: 205px;
    height: auto;
    object-fit: contain;
}


/*
|--------------------------------------------------------------------------
| DNTM SIDEBAR NAVIGATION
|--------------------------------------------------------------------------
*/

.dntm-sidebar__nav {
    flex: 1;

    overflow-y: auto;
}

.dntm-sidebar__section {
    margin-bottom: 24px;
}

.dntm-sidebar__section-title {
    margin: 0 10px 8px;

    font-size: 11px;
    line-height: 1.4;

    font-weight: 700;

    letter-spacing: 0.08em;

    text-transform: uppercase;

    color: #98a2b3;
}

.dntm-sidebar__link {
    min-height: 44px;
    cursor: pointer;

    display: flex;
    align-items: center;

    gap: 11px;

    padding: 9px 10px;

    border-radius: 8px;

    color: #344054;

    font-size: 14px;
    font-weight: 600;

    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}

.dntm-sidebar__link:hover {
    color: var(--color-text);

    background: #f2f4f7;
}

.dntm-sidebar__link.is-active {
    color: var(--color-primary);

    background: #eef5fa;
}

.dntm-sidebar__link-icon {
    width: 22px;

    flex: 0 0 22px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;
    line-height: 1;
}

.dntm-sidebar__link-text {
    min-width: 0;
}

/*
|--------------------------------------------------------------------------
| DNTM SIDEBAR COMMUNITY
|--------------------------------------------------------------------------
*/

.dntm-sidebar__community {
    flex-shrink: 0;

    margin-bottom: 16px;
    padding-top: 16px;

    border-top: 1px solid #eaecf0;
}

.dntm-sidebar__community-link {
    min-height: 52px;

    display: flex;
    align-items: center;

    gap: 11px;

    padding: 8px 10px;

    border-radius: 8px;

    color: #344054;

    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}

.dntm-sidebar__community-link:hover {
    color: var(--color-primary);

    background: #f2f4f7;
}

.dntm-sidebar__community-icon {
    width: 36px;
    height: 36px;

    flex: 0 0 36px;

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

    border-radius: 9px;

    color: #ffffff;
    background: #0077ff;

    font-size: 12px;
    font-weight: 750;
    line-height: 1;
}

.dntm-sidebar__community-content {
    min-width: 0;

    display: flex;
    flex-direction: column;
}

.dntm-sidebar__community-title {
    font-size: 13px;
    font-weight: 650;
    line-height: 1.4;

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

.dntm-sidebar__community-description {
    margin-top: 2px;

    font-size: 11px;
    line-height: 1.35;

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

/*
|--------------------------------------------------------------------------
| DNTM SIDEBAR ACCOUNT
|--------------------------------------------------------------------------
*/

.dntm-sidebar__bottom {
    flex-shrink: 0;

    padding-top: 16px;

    border-top: 1px solid #eaecf0;
}

.dntm-sidebar__account {
    display: flex;
    align-items: center;

    gap: 11px;

    min-width: 0;

    padding: 4px;
}

.dntm-sidebar__account-avatar {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

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

    border-radius: 50%;

    color: var(--color-primary);

    background: #e7f1f7;

    font-size: 15px;
    font-weight: 750;
}

.dntm-sidebar__account-info {
    min-width: 0;

    flex: 1;
}

.dntm-sidebar__account-name {
    display: block;

    max-width: 100%;

    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;

    font-size: 13px;
    font-weight: 650;

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

a.dntm-sidebar__account-name:hover {
    color: var(--color-primary);
}

.dntm-sidebar__account-actions {
    display: flex;
    align-items: center;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 3px;
}

.dntm-sidebar__account-action {
    padding: 0;

    border: 0;

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

    font-size: 12px;
    line-height: 1.4;

    cursor: pointer;
}

.dntm-sidebar__account-action:hover {
    color: var(--color-primary);
}

.dntm-sidebar__logout-form {
    margin: 0;

    display: flex;
}

.dntm-sidebar__logout {
    font-family: inherit;
}


/*
|--------------------------------------------------------------------------
| DNTM SIDEBAR OVERLAY
|--------------------------------------------------------------------------
*/

.dntm-shell__overlay {
    display: none;
}


/*
|--------------------------------------------------------------------------
| DNTM HOME
|--------------------------------------------------------------------------
*/

.dntm-home {
    display: grid;

    gap: 24px;
}


/*
|--------------------------------------------------------------------------
| DNTM HOME HERO
|--------------------------------------------------------------------------
*/

.dntm-home__hero {
    padding: 4px 0 6px;
}

.dntm-home__hero-content {
    max-width: 760px;
}

.dntm-home__eyebrow {
    margin-bottom: 10px;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 0.06em;

    text-transform: uppercase;

    color: var(--color-primary);
}

.dntm-home__title {
    margin: 0;

    font-size: clamp(34px, 5vw, 48px);
    line-height: 1.1;

    letter-spacing: -0.04em;
}

.dntm-home__lead {
    max-width: 680px;

    margin: 16px 0 0;

    font-size: 18px;
    line-height: 1.6;

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


/*
|--------------------------------------------------------------------------
| DNTM HOME SECTIONS
|--------------------------------------------------------------------------
*/

.dntm-home__section {
    min-width: 0;
}

.dntm-home__section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 24px;

    margin-bottom: 18px;
}

.dntm-home__section-title {
    margin: 0;

    font-size: 22px;
    line-height: 1.25;

    letter-spacing: -0.02em;
}

.dntm-home__section-description {
    margin: 5px 0 0;

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

    font-size: 14px;
}


/*
|--------------------------------------------------------------------------
| DNTM HOME TOOLS
|--------------------------------------------------------------------------
*/

.dntm-home__tools {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;
}

.dntm-home__tool {
    min-width: 0;

    display: grid;

    grid-template-columns:
        auto
        minmax(0, 1fr)
        auto;

    gap: 16px;

    align-items: start;

    padding: 22px;

    background: var(--color-surface);

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

    box-shadow: var(--shadow-card);

    transition:
        border-color 0.15s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.dntm-home__tool:hover {
    border-color: #b8c9d6;

    transform: translateY(-1px);

    box-shadow:
        0 2px 4px rgba(16, 24, 40, 0.05),
        0 8px 18px rgba(16, 24, 40, 0.08);
}

.dntm-home__tool-icon {
    width: 42px;
    height: 42px;

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

    border-radius: 9px;

    color: var(--color-primary);
    background: #eef5fa;

    font-size: 21px;
}

.dntm-home__tool-content {
    min-width: 0;
}

.dntm-home__tool-title {
    margin: 0;

    font-size: 17px;
    line-height: 1.35;
}

.dntm-home__tool-description {
    margin: 7px 0 0;

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

    font-size: 14px;
    line-height: 1.55;
}

.dntm-home__tool-arrow {
    padding-top: 9px;

    color: #98a2b3;

    font-size: 20px;

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

.dntm-home__tool:hover
.dntm-home__tool-arrow {
    color: var(--color-primary);

    transform: translateX(2px);
}


/*
|--------------------------------------------------------------------------
| DNTM HOME ANNOUNCEMENTS
|--------------------------------------------------------------------------
*/

.dntm-home__announcements {
    display: grid;

    gap: 12px;
}

.dntm-home__announcement {
    padding: 20px 22px;

    background: var(--color-surface);

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

    box-shadow:
        0 1px 2px rgba(16, 24, 40, 0.03);
}

.dntm-home__announcement-meta {
    margin-bottom: 6px;

    color: var(--color-primary);

    font-size: 12px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.05em;
}

.dntm-home__announcement-title {
    margin: 0;

    font-size: 17px;
}

.dntm-home__announcement-text {
    max-width: 760px;

    margin: 7px 0 0;

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

    font-size: 14px;
    line-height: 1.6;
}


/*
|--------------------------------------------------------------------------
| DNTM TOOL PAGE
|--------------------------------------------------------------------------
*/

.dntm-tool {
    max-width: 1000px;
}

.dntm-tool__header {
    max-width: 720px;

    margin-bottom: 28px;
}

.dntm-tool__title {
    margin: 0;

    font-size: clamp(30px, 5vw, 40px);
    line-height: 1.15;

    letter-spacing: -0.035em;
}

.dntm-tool__description {
    margin: 10px 0 0;

    font-size: 16px;
    line-height: 1.6;

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


/*
|--------------------------------------------------------------------------
| SERVICE ACCESS GATE
|--------------------------------------------------------------------------
*/

.service-gate__title {
    margin: 0 0 8px;

    font-size: 22px;
    line-height: 1.3;
}

.service-gate__text {
    margin: 0;

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

.service-gate__actions {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;

    margin-top: 20px;
}

.service-gate__button {
    min-height: 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 18px;

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

    background: var(--color-surface);

    color: var(--color-text);

    font-weight: 650;
}

.service-gate__button:hover {
    border-color: #b8c1cc;
}

.service-gate__button--primary {
    color: #ffffff;

    border-color: var(--color-primary);

    background: var(--color-primary);
}

.service-gate__button--primary:hover {
    border-color: var(--color-primary-hover);

    background: var(--color-primary-hover);
}


/*
|--------------------------------------------------------------------------
| DNTM LAYOUT TABLET
|--------------------------------------------------------------------------
*/

@media (max-width: 900px) {

    .dntm-shell__workspace {
        margin-left: 0;
    }

    .dntm-shell__mobile-header {
        display: flex;
    }

    .dntm-shell__content {
        width: min(
            calc(100% - 40px),
            1180px
        );

        padding-top: 36px;
    }


    /*
    |--------------------------------------------------------------------------
    | MOBILE SIDEBAR
    |--------------------------------------------------------------------------
    */

    .dntm-sidebar {
        width: min(300px, 86vw);

        transform: translateX(-100%);

        box-shadow:
            8px 0 30px rgba(16, 24, 40, 0.14);

        transition:
            transform 0.2s ease;
    }

    .dntm-sidebar.is-open {
        transform: translateX(0);
    }

    .dntm-shell__overlay {
        position: fixed;

        inset: 0;

        z-index: 40;

        display: block;

        visibility: hidden;

        opacity: 0;

        background:
            rgba(16, 24, 40, 0.38);

        transition:
            opacity 0.2s ease,
            visibility 0.2s ease;
    }

    .dntm-shell__overlay.is-active {
        visibility: visible;

        opacity: 1;
    }


    /*
    |--------------------------------------------------------------------------
    | HOME
    |--------------------------------------------------------------------------
    */

    .dntm-home__tools {
        grid-template-columns: 1fr;
    }

}


/*
|--------------------------------------------------------------------------
| DNTM LAYOUT MOBILE
|--------------------------------------------------------------------------
*/

@media (max-width: 520px) {

    .dntm-shell__mobile-header {
        padding-left: 12px;
        padding-right: 12px;
    }

    .dntm-shell__content {
        width: min(
            calc(100% - 24px),
            1180px
        );

        padding-top: 28px;
        padding-bottom: 44px;
    }

    .dntm-home {
        gap: 34px;
    }

    .dntm-home__title {
        font-size: 34px;
    }

    .dntm-home__lead {
        font-size: 16px;
    }

    .dntm-home__tool {
        padding: 18px;

        grid-template-columns:
            auto
            minmax(0, 1fr);
    }

    .dntm-home__tool-arrow {
        display: none;
    }

    .dntm-tool__header {
        margin-bottom: 22px;
    }

    .dntm-tool__title {
        font-size: 30px;
    }

}

.dntm-sidebar__account.is-active {
    padding: 8px;

    border-radius: 8px;

    background: #eef5fa;
}
.dntm-shell__footer-inner {
    padding: 0 20px;
    padding-bottom: 10px;
    text-align: left;
    font-size: 12px;
    color: #727272;
}
.dntm-shell__footer-inner .dntm-shell__footer-links a {
    color: #0b4f78;
    font-size: 13px;
}

/*
|--------------------------------------------------------------------------
| NAVAREA / NAVIP
|--------------------------------------------------------------------------
*/

.nav-warning-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.nav-warning-list {
    display: grid;
    gap: 16px;
}

.nav-warning-region-summary {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.nav-warning-heading {
    margin-top: 18px;
    font-weight: 650;
    white-space: pre-wrap;
}

.nav-warning-text {
    margin-top: 16px;
    line-height: 1.65;
    white-space: pre-wrap;
}
/*
|--------------------------------------------------------------------------
| PRIP
|--------------------------------------------------------------------------
*/

.prip-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.prip-number-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.prip-list {
    display: grid;
    gap: 16px;
}

.prip-region-summary {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.prip-heading {
    margin-top: 18px;
    font-weight: 650;
    white-space: pre-wrap;
}

.prip-text {
    margin-top: 16px;
    line-height: 1.65;
    white-space: pre-wrap;
}
.field.search-form__number {
    margin-bottom: 14px;
}
/* ==========================================================================
   DOCUMENT PAGES
   ========================================================================== */

.dntm-document {
    max-width: 920px;
    margin: 0 auto;
}

.dntm-document__header {
    margin-bottom: 32px;
}

.dntm-document__title {
    margin: 0 0 12px;

    color: var(--color-text);

    font-size: 32px;
    line-height: 1.2;
}

.dntm-document__lead {
    max-width: 760px;
    margin: 0;

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

    font-size: 16px;
    line-height: 1.6;
}

.dntm-document__content {
    padding: 28px 32px;

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

    background: var(--color-surface);
    box-shadow: var(--shadow-card);
}

.dntm-document__section + .dntm-document__section {
    margin-top: 36px;
    padding-top: 36px;

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

.dntm-document__section h2 {
    margin: 0 0 16px;

    color: var(--color-text);

    font-size: 21px;
    line-height: 1.3;
}

.dntm-document__section p {
    margin: 0 0 14px;

    color: var(--color-text);

    line-height: 1.7;
}

.dntm-document__section p:last-child {
    margin-bottom: 0;
}

.dntm-document__section ul {
    margin: 14px 0 18px;
    padding-left: 24px;
}

.dntm-document__section li {
    margin-bottom: 8px;

    color: var(--color-text);

    line-height: 1.65;
}

.dntm-document__section li:last-child {
    margin-bottom: 0;
}


/* ==========================================================================
   DOCUMENT PAGES — MOBILE
   ========================================================================== */

@media (max-width: 700px) {

    .dntm-document__header {
        margin-bottom: 24px;
    }

    .dntm-document__title {
        font-size: 26px;
    }

    .dntm-document__lead {
        font-size: 15px;
    }

    .dntm-document__content {
        padding: 22px 18px;
    }

    .dntm-document__section + .dntm-document__section {
        margin-top: 28px;
        padding-top: 28px;
    }

    .dntm-document__section h2 {
        font-size: 19px;
    }

}
/* ==========================================================================
   ERROR REPORT
   ========================================================================== */

.report-error__form {
    display: grid;
    gap: 22px;
}

.report-error__field {
    display: grid;
    gap: 8px;
}

.report-error__label {
    color: var(--color-text);

    font-size: 14px;
    font-weight: 600;
}

.report-error__input,
.report-error__textarea {
    width: 100%;

    padding: 11px 13px;

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

    background: var(--color-surface);
    color: var(--color-text);

    font: inherit;
}

.report-error__textarea {
    min-height: 160px;

    resize: vertical;
}

.report-error__input:focus,
.report-error__textarea:focus {
    outline: 2px solid rgba(11, 79, 120, 0.18);
    outline-offset: 1px;

    border-color: var(--color-primary);
}

.report-error__actions {
    display: flex;
    justify-content: flex-start;
}

.report-error__submit {
    padding: 10px 18px;

    border: 0;
    border-radius: var(--radius-small);

    background: var(--color-primary);
    color: #ffffff;

    font: inherit;
    font-weight: 600;

    cursor: pointer;
}

.report-error__submit:hover {
    background: var(--color-primary-hover);
}

.report-error__success {
    margin-bottom: 24px;
    padding: 14px 16px;

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

    background: var(--color-success-bg);
}

.report-error__success p {
    margin: 5px 0 0;
}

.report-error__errors {
    margin-bottom: 24px;
    padding: 14px 16px;

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

    background: var(--color-danger-bg);
}

.report-error__errors ul {
    margin: 8px 0 0;
    padding-left: 22px;
}

.report-error__honeypot {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    overflow: hidden !important;

    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;

    white-space: nowrap !important;
}
.report-error-link {
    margin-top: 18px;
    text-align: right;
}

.report-error-link a {
    color: var(--color-text-muted);
    font-size: 14px;
    text-decoration: none;
}

.report-error-link a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* ==========================================================================
   Cookie notice
   ========================================================================== */

.dntm-cookie-notice {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 1000;

    display: flex;
    align-items: center;
    gap: 18px;

    width: calc(100% - 32px);
    max-width: 720px;

    padding: 14px 16px 14px 20px;

    background: #242424;
    border-radius: 14px;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.25);

    color: #fff;

    transform: translateX(-50%);
}

.dntm-cookie-notice[hidden] {
    display: none;
}

.dntm-cookie-notice__text {
    flex: 1;

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

.dntm-cookie-notice__text a {
    color: #5fa8ff;
    text-decoration: none;
}

.dntm-cookie-notice__text a:hover {
    text-decoration: underline;
}

.dntm-cookie-notice__button {
    flex: 0 0 auto;

    padding: 9px 18px;

    border: 0;
    border-radius: 9px;

    background: #1677ff;
    color: #fff;

    font: inherit;
    font-weight: 600;

    cursor: pointer;
}

.dntm-cookie-notice__button:hover {
    filter: brightness(1.08);
}

@media (max-width: 600px) {
    .dntm-cookie-notice {
        bottom: 12px;

        flex-direction: column;
        align-items: stretch;

        gap: 12px;

        width: calc(100% - 24px);
    }

    .dntm-cookie-notice__button {
        width: 100%;
    }
}