.otts-detail-shell {
    --otts-brand: #0d63e5;
    --otts-brand-dark: #084ea9;
    --otts-brand-soft: #eef5ff;
    --otts-ink: #12203a;
    --otts-muted: #657188;
    --otts-line: #d8e0ec;
    --otts-line-strong: #c8d4e5;
    --otts-surface: #f7f9fc;
    width: min(calc(100% - 48px), 1320px);
    margin: 0 auto;
    color: #17233b;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.otts-detail-shell a {
    color: var(--otts-brand);
    text-underline-offset: 3px;
}

.otts-detail-shell a:hover {
    color: var(--otts-brand-dark);
}

.otts-detail-shell a:focus-visible {
    outline: 3px solid rgba(13, 99, 229, .28);
    outline-offset: 3px;
}

.otts-breadcrumbs {
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--otts-muted);
    font-size: 14px;
}

.otts-breadcrumbs i {
    color: #9aa5b6;
    font-size: 11px;
}

.otts-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 368px;
    gap: 28px;
    align-items: start;
}

.otts-record-title {
    min-height: 92px;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 8px 4px 22px;
}

.otts-record-icon {
    width: 60px;
    height: 68px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    color: var(--otts-brand);
    font-size: 54px;
}

.otts-record-title h1 {
    margin: 0;
    color: var(--otts-ink);
    font-size: clamp(28px, 2.4vw, 39px);
    line-height: 1.15;
    letter-spacing: -.025em;
    overflow-wrap: anywhere;
}

.otts-record-title p {
    margin: 7px 0 0;
    color: #53607a;
    font-size: 20px;
    line-height: 1.2;
}

.otts-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    border: 1px solid var(--otts-line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(23, 53, 97, .04);
}

.otts-summary-item {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    position: relative;
}

.otts-summary-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 18px;
    right: 0;
    width: 1px;
    height: calc(100% - 36px);
    background: var(--otts-line);
}

.otts-summary-item > i {
    flex: 0 0 auto;
    color: var(--otts-brand);
    font-size: 27px;
}

.otts-summary-item div {
    min-width: 0;
}

.otts-summary-item span,
.otts-summary-item strong {
    display: block;
}

.otts-summary-item span {
    margin-bottom: 3px;
    color: var(--otts-muted);
    font-size: 12px;
    line-height: 1.25;
}

.otts-summary-item strong {
    color: var(--otts-ink);
    font-size: 15px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.otts-sections {
    margin-top: 20px;
    border: 1px solid var(--otts-line);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.otts-section {
    padding: 19px 20px 0;
}

.otts-section:last-child {
    padding-bottom: 18px;
}

.otts-card-ad {
    min-width: 0;
    overflow: hidden;
    position: relative;
}

.otts-card-ad:empty {
    display: none;
}

.otts-card-ad--desktop {
    min-height: 110px;
    margin: 4px 20px;
    padding: 16px 0;
    border-top: 1px solid var(--otts-line);
    border-bottom: 1px solid var(--otts-line);
}

.otts-card-ad--mobile {
    min-height: 110px;
    margin-top: 20px;
    padding: 14px 0;
    border-top: 1px solid var(--otts-line);
    border-bottom: 1px solid var(--otts-line);
}

.otts-section h2 {
    margin: 0;
    padding: 0 0 12px 16px;
    border-bottom: 1px solid var(--otts-line-strong);
    position: relative;
    color: var(--otts-ink);
    font-size: 18px;
    line-height: 1.3;
}

.otts-section h2::before {
    content: "";
    position: absolute;
    top: 1px;
    bottom: 12px;
    left: 0;
    width: 3px;
    border-radius: 3px;
    background: var(--otts-brand);
}

.otts-section dl {
    margin: 0;
}

.otts-data-row {
    display: grid;
    grid-template-columns: minmax(220px, 34%) minmax(0, 1fr);
    gap: 24px;
    padding: 10px 14px;
    border-bottom: 1px solid #e4e9f1;
}

.otts-data-row:last-child {
    border-bottom: 0;
}

.otts-data-row dt,
.otts-data-row dd {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.otts-data-row dt {
    color: #536077;
    font-weight: 500;
}

.otts-data-row dd {
    color: #17243c;
    overflow-wrap: anywhere;
}

.otts-access {
    margin-top: 4px;
    padding: 26px;
    border: 1px solid var(--otts-line-strong);
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(23, 53, 97, .08);
    position: sticky;
    top: 18px;
    text-align: center;
}

.otts-access-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.otts-access-heading > i {
    color: var(--otts-brand);
    font-size: 27px;
}

.otts-access-heading h2 {
    margin: 0;
    color: var(--otts-ink);
    font-size: 20px;
    line-height: 1.25;
}

.otts-access-lock {
    width: 112px;
    height: 112px;
    margin: 28px auto 18px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--otts-brand-soft);
    color: #244f95;
    font-size: 54px;
}

.otts-access h3 {
    margin: 0 0 8px;
    color: var(--otts-ink);
    font-size: 20px;
}

.otts-access > p {
    max-width: 29ch;
    margin: 0 auto 24px;
    color: var(--otts-muted);
    font-size: 14px;
    line-height: 1.5;
}

.otts-primary-action,
.otts-secondary-action {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 7px;
    font-weight: 700;
    text-decoration: none;
}

.otts-primary-action {
    border: 1px solid var(--otts-brand);
    background: var(--otts-brand);
    color: #fff !important;
    box-shadow: 0 6px 14px rgba(13, 99, 229, .18);
}

.otts-primary-action:hover {
    border-color: var(--otts-brand-dark);
    background: var(--otts-brand-dark);
}

.otts-secondary-action {
    margin-top: 10px;
    border: 1px solid var(--otts-brand);
    color: var(--otts-brand);
}

.otts-secondary-action:hover {
    background: var(--otts-brand-soft);
}

.otts-search-protection {
    margin-top: 20px;
    padding: 18px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid var(--otts-line);
    border-bottom: 1px solid var(--otts-line);
    color: #42506a;
    text-align: left;
    font-size: 13px;
    line-height: 1.4;
}

.otts-search-protection i {
    flex: 0 0 auto;
    color: var(--otts-brand);
    font-size: 21px;
}

.otts-locked-document {
    min-height: 104px;
    margin-top: 20px;
    padding: 18px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    border: 1px dashed #b8c8df;
    border-radius: 8px;
    background: var(--otts-surface);
    text-align: left;
}

.otts-locked-document > i:first-child {
    color: #7891b7;
    font-size: 34px;
}

.otts-locked-document > i:last-child {
    color: #355d99;
    font-size: 18px;
}

.otts-locked-document strong,
.otts-locked-document span {
    display: block;
}

.otts-locked-document strong {
    color: #34435c;
    font-size: 14px;
}

.otts-locked-document span {
    margin-top: 3px;
    color: #7a8598;
    font-size: 12px;
}

.otts-related {
    margin-top: 20px;
    padding: 18px 4px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px 34px;
    border-top: 1px solid var(--otts-line);
    border-bottom: 1px solid var(--otts-line);
    font-size: 14px;
}

.otts-related strong {
    color: #34425a;
}

.otts-related a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

.otts-related i {
    font-size: 11px;
}

.otts-source-note {
    margin: 16px 0 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--otts-muted);
    font-size: 12px;
    line-height: 1.45;
}

.otts-source-note i {
    color: #58709a;
    font-size: 14px;
}

@media (max-width: 1080px) {
    .otts-detail-grid {
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 20px;
    }

    .otts-summary {
        grid-template-columns: 1fr 1fr;
    }

    .otts-summary-item:nth-child(2n)::after {
        display: none;
    }

    .otts-summary-item:nth-child(-n + 2) {
        border-bottom: 1px solid var(--otts-line);
    }
}

@media (max-width: 840px) {
    .otts-detail-shell {
        width: min(calc(100% - 32px), 1320px);
    }

    .otts-detail-grid {
        grid-template-columns: 1fr;
    }

    .otts-access {
        position: static;
        grid-row: 2;
    }

    .otts-card-ad--desktop {
        display: none;
    }
}

@media (max-width: 600px) {
    .otts-detail-shell {
        width: min(calc(100% - 24px), 1320px);
    }

    .otts-breadcrumbs {
        min-height: 48px;
        overflow: hidden;
        white-space: nowrap;
    }

    .otts-breadcrumbs span {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .otts-record-title {
        min-height: auto;
        gap: 14px;
        padding: 8px 0 18px;
    }

    .otts-record-icon {
        width: 44px;
        height: 50px;
        font-size: 42px;
    }

    .otts-record-title h1 {
        font-size: 23px;
    }

    .otts-record-title p {
        margin-top: 5px;
        font-size: 17px;
    }

    .otts-summary {
        grid-template-columns: 1fr;
    }

    .otts-summary-item {
        padding: 15px 17px;
        border-bottom: 1px solid var(--otts-line);
    }

    .otts-summary-item:last-child {
        border-bottom: 0;
    }

    .otts-summary-item::after {
        display: none;
    }

    .otts-section {
        padding: 17px 14px 0;
    }

    .otts-section h2 {
        font-size: 17px;
    }

    .otts-data-row {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 10px 4px;
    }

    .otts-data-row dd {
        font-weight: 500;
    }

    .otts-access {
        padding: 22px 18px;
    }

    .otts-access-lock {
        width: 92px;
        height: 92px;
        margin-top: 22px;
        font-size: 46px;
    }

    .otts-related {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
}
