/* =========================
   TwinSix KB / Teamwork Desk Theme
   New standalone stylesheet
   ========================= */

:root {
    --ts-color-dark: #0C1B3D;
    --ts-color-blackish: #081630;
    --ts-color-bg-light: #FFFFFF;
    --ts-color-white: #FFFFFF;
    --ts-color-lightgrey: #F5F5F5;
    --ts-color-grey: #CCCCCC;
    --ts-color-text-dark: #333333;

    --ts-color-accent-bright: #00A9FF;
    --ts-color-accent-dark: #0077CC;
    --ts-color-accent-light: #E6F7FF;

    --ts-brand-dark: #0C1B3D;
    --ts-brand-gold: #D3A439;
    --ts-brand-gold-dark: #7C5B04;
    --ts-color-button-hover: #047BE2;

    --ts-focus-outline: rgba(0, 169, 255, 0.45);
}

/* =========================
   Base
   ========================= */

html, body, button, input, textarea, select {
    font-family: "Inter", sans-serif !important;
}

body {
    background: var(--ts-color-bg-light) !important;
    color: var(--ts-color-text-dark) !important;
}

a {
    transition: color .2s ease;
}

:focus-visible {
    outline: 3px solid var(--ts-focus-outline);
    outline-offset: 2px;
}

/* =========================
   Top header
   ========================= */

.site--header,
.site--header.custom-site-header-color {
    background: var(--ts-brand-dark) !important;
    border-bottom: 3px solid var(--ts-brand-gold) !important;
    box-shadow: 0 2px 6px rgba(0,0,0,.18);
}

.site--header .brand-logo,
.site--header .brand-logo:visited {
    color: var(--ts-color-white) !important;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.site--header .brand-logo:hover,
.site--header .brand-logo:focus {
    color: var(--ts-color-white) !important;
    text-decoration: none !important;
}

.site--header .header--nav a,
.site--header .header--nav a:visited {
    color: var(--ts-color-white) !important;
    font-weight: 500;
}

.site--header .header--nav a:hover,
.site--header .header--nav a:focus {
    color: var(--ts-brand-gold) !important;
    text-decoration: underline;
}

/* Mobile hamburger */
.site--header .menu-toggle .menu-lines span {
    background-color: var(--ts-color-white) !important;
}

/* =========================
   Search / breadcrumb band
   ========================= */

.search--row.search-inner {
    background: linear-gradient(180deg, #f7fbff 0%, var(--ts-color-accent-light) 100%) !important;
    border-bottom: 1px solid rgba(12, 27, 61, 0.10);
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.search--row .row-title,
.search--row .row-title a,
.search--row .row-title a:visited {
    color: var(--ts-brand-dark) !important;
    font-weight: 700;
    text-decoration: none !important;
}

.history-path,
.history-path li {
    color: #5f6b7a !important;
}

.history-path a,
.history-path a:visited {
    color: var(--ts-brand-dark) !important;
    text-decoration: none;
}

.history-path a:hover,
.history-path a:focus {
    color: var(--ts-color-button-hover) !important;
    text-decoration: underline;
}

/* =========================
   Search form
   ========================= */

.search-form .search_input {
    background: #fff !important;
    color: var(--ts-color-text-dark) !important;
    border: 1px solid #d7dee7 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

.search-form .search_input:focus {
    border-color: var(--ts-color-accent-bright) !important;
    box-shadow: 0 0 0 3px rgba(0,169,255,.18) !important;
    outline: none !important;
}

.search-form .search_submit,
.search-form input.search_submit,
.search-form input[type="button"].search_submit {
    background: var(--ts-brand-gold) !important;
    color: #fff !important;
    border: 1px solid var(--ts-brand-gold) !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: background-color .2s ease, border-color .2s ease;
}

.search-form .search_submit:hover,
.search-form .search_submit:focus {
    background: var(--ts-brand-gold-dark) !important;
    border-color: var(--ts-brand-gold-dark) !important;
    color: #fff !important;
}

/* Optional live results dropdown */
.search-results {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(12,27,61,0.08);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    background: #fff;
}

.search-results li a {
    color: var(--ts-color-text-dark) !important;
}

.search-results li a:hover {
    background: var(--ts-color-accent-light) !important;
    color: var(--ts-brand-dark) !important;
}

/* =========================
   Main content area
   ========================= */

.content-main {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.left-content {
    background: #fff;
    border: 1px solid rgba(12,27,61,0.08);
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 6px 20px rgba(0,0,0,.05);
}

.right-sidebar.related-articles {
    background: transparent;
}

/* =========================
   Article controls
   ========================= */

.article-controls .controls {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-controls .btn-print {
    background: var(--ts-brand-gold) !important;
    color: #fff !important;
    border: 1px solid var(--ts-brand-gold) !important;
    border-radius: 8px !important;
    padding: .45rem .9rem;
    font-weight: 600;
}

.article-controls .btn-print:hover,
.article-controls .btn-print:focus {
    background: var(--ts-brand-gold-dark) !important;
    border-color: var(--ts-brand-gold-dark) !important;
}

/* =========================
   Article header
   ========================= */

.article-header {
    border-bottom: 1px solid rgba(12,27,61,0.08);
    margin-bottom: 1.25rem;
    padding-bottom: .75rem;
}

.article-header .header-title {
    color: var(--ts-brand-dark) !important;
    font-weight: 700;
    margin-bottom: .35rem;
}

.article-header small {
    color: #6c757d !important;
}

/* =========================
   Article body
   ========================= */

.article-body,
.article-body article,
.article-body div,
.article-body p,
.article-body li,
.article-body span {
    color: var(--ts-color-text-dark) !important;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
    color: var(--ts-color-accent-dark) !important;
    font-weight: 700;
}

.article-body a,
.article-body a:visited {
    color: var(--ts-color-accent-dark) !important;
    text-decoration: underline;
    text-decoration-color: rgba(0,119,204,.35);
}

.article-body a:hover,
.article-body a:focus {
    color: var(--ts-color-button-hover) !important;
    text-decoration-color: var(--ts-color-button-hover);
}

.article-body ul li::marker {
    color: var(--ts-brand-gold);
}

/* =========================
   Footer
   ========================= */

.site--footer {
    background: var(--ts-brand-dark) !important;
    color: var(--ts-color-white) !important;
    border-top: 3px solid var(--ts-brand-gold);
}

.site--footer,
.site--footer p,
.site--footer .copyrights {
    color: var(--ts-color-white) !important;
}

/* =========================
   Modals / contact form
   ========================= */

.modal-content {
    border-radius: 14px !important;
    border: 1px solid rgba(12,27,61,0.10) !important;
    box-shadow: 0 14px 40px rgba(0,0,0,.18);
}

.modal-header {
    background: var(--ts-brand-dark) !important;
    color: #fff !important;
    border-bottom: none !important;
}

.modal-header .modal-title,
.modal-header .close,
.modal-header .close span {
    color: #fff !important;
    opacity: 1 !important;
}

.modal-body {
    color: var(--ts-color-text-dark) !important;
}

.modal-body .form-control {
    border-radius: 8px !important;
    border: 1px solid #d7dee7 !important;
    box-shadow: none !important;
}

.modal-body .form-control:focus {
    border-color: var(--ts-color-accent-bright) !important;
    box-shadow: 0 0 0 3px rgba(0,169,255,.18) !important;
}

.modal-footer {
    border-top: 1px solid rgba(12,27,61,0.08) !important;
}

/* Default modal buttons */
.modal-footer .btn-default {
    background: #fff !important;
    color: var(--ts-brand-dark) !important;
    border: 1px solid #d7dee7 !important;
    border-radius: 8px !important;
}

.modal-footer .btn-default:hover,
.modal-footer .btn-default:focus {
    color: var(--ts-color-button-hover) !important;
    border-color: var(--ts-color-button-hover) !important;
}

.modal-footer .btn-primary,
input.btn.btn-primary[type="submit"] {
    background: var(--ts-brand-gold) !important;
    border-color: var(--ts-brand-gold) !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-weight: 600;
}

.modal-footer .btn-primary:hover,
.modal-footer .btn-primary:focus,
input.btn.btn-primary[type="submit"]:hover,
input.btn.btn-primary[type="submit"]:focus {
    background: var(--ts-brand-gold-dark) !important;
    border-color: var(--ts-brand-gold-dark) !important;
    color: #fff !important;
}

/* =========================
   Nice small polish
   ========================= */

.article-body hr,
hr {
    border-color: rgba(12,27,61,0.10) !important;
}

::selection {
    background: rgba(0,169,255,.18);
    color: var(--ts-brand-dark);
}

/* =========================
   KB theme cleanup pass
   ========================= */

/* Top header alignment */
.site--header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
}

.site--header .brand-logo,
.site--header .header--nav a {
    line-height: 1.2;
}

/* Search row balance */
.search--row.search-inner {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.search--row .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.search--row .row-content {
    flex: 1 1 auto;
    min-width: 0;
}

.search--row .search-form {
    flex: 0 0 280px;
    margin: 0;
}

.search-form .search_input {
    height: 42px !important;
    padding: 0 14px !important;
    font-size: 16px !important;
}

.search-form .search_submit {
    height: 42px !important;
    padding: 0 16px !important;
}

/* Main article + sidebar layout */
.article--structure {
    display: flex;
    align-items: flex-start;
    gap: 28px;
}

.left-content {
    flex: 1 1 auto;
    min-width: 0;
    padding: 1.5rem 1.75rem !important;
}

.right-sidebar.related-articles {
    flex: 0 0 280px;
    padding-top: 1.25rem;
}

/* Article header spacing */
.article-header {
    margin-bottom: 1rem !important;
    padding-bottom: 1rem !important;
}

.article-header .header-title {
    margin: 0 0 .15rem 0 !important;
    line-height: 1.1;
}

.article-header small {
    display: block;
    margin-top: .2rem;
}

/* Article body rhythm */
.article-body p,
.article-body li {
    line-height: 1.65;
    margin-bottom: 1rem;
}

.article-body h2,
.article-body h3 {
    margin-top: 2rem !important;
    margin-bottom: .85rem !important;
    line-height: 1.2;
}

/* Remove giant blank gaps from editor output */
.article-body p:empty,
.article-body div:empty {
    display: none !important;
}

.article-body br {
    line-height: 1 !important;
}

/* Print controls area */
.article-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 1rem;
}

.article-controls iframe {
    display: none !important;
}

/* Proper TwinSix print button */
.article-controls .controls {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.article-controls .btn-print {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid var(--ts-brand-gold) !important;
    background: var(--ts-brand-gold) !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: .45rem .9rem !important;
    min-width: 84px;
    height: 38px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    box-shadow: none !important;
}

.article-controls .btn-print:hover,
.article-controls .btn-print:focus {
    background: var(--ts-brand-gold-dark) !important;
    border-color: var(--ts-brand-gold-dark) !important;
}

/* Recently viewed sidebar */
.related-articles {
    color: var(--ts-color-text-dark);
}

.related-articles h3,
.related-articles h4 {
    color: var(--ts-brand-dark) !important;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .75rem;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.related-articles a,
.related-articles a:visited {
    color: var(--ts-color-accent-dark) !important;
}

.related-articles a:hover,
.related-articles a:focus {
    color: var(--ts-color-button-hover) !important;
}

/* Mobile */
@media (max-width: 991px) {
    .search--row .container,
    .article--structure {
        display: block;
    }

    .search--row .search-form {
        margin-top: 1rem;
        width: 100%;
        max-width: 320px;
    }

    .right-sidebar.related-articles {
        margin-top: 1.5rem;
        padding-top: 0;
    }
}

:root {
    --ts-color-dark: #0C1B3D;
    --ts-color-bg-light: #FFFFFF;
    --ts-color-white: #FFFFFF;
    --ts-color-lightgrey: #F5F5F5;
    --ts-color-text-dark: #333333;
    --ts-color-accent-bright: #00A9FF;
    --ts-color-accent-dark: #0077CC;
    --ts-color-accent-light: #E6F7FF;
    --ts-brand-dark: #0C1B3D;
    --ts-brand-gold: #D3A439;
    --ts-brand-gold-dark: #7C5B04;
    --ts-color-button-hover: #047BE2;
}

html, body, button, input, textarea, select {
    font-family: "Inter", sans-serif !important;
}

body {
    background: var(--ts-color-bg-light);
    color: var(--ts-color-text-dark);
}

/* Header */
.ts-site-header,
.site--header.custom-site-header-color {
    background: var(--ts-brand-dark) !important;
    border-bottom: 2px solid var(--ts-brand-gold);
}

.ts-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
}

.ts-brand-logo,
.ts-brand-logo:visited {
    color: #fff !important;
    font-weight: 700;
    text-decoration: none !important;
}

.ts-brand-logo:hover,
.ts-brand-logo:focus {
    color: #fff !important;
    text-decoration: none !important;
}

.ts-brand-logo img {
    max-height: 34px;
    width: auto;
    display: block;
}

.ts-header-nav ul {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ts-header-nav a,
.ts-header-nav a:visited {
    color: #fff !important;
    text-decoration: none;
    font-weight: 500;
}

.ts-header-nav a:hover,
.ts-header-nav a:focus {
    color: var(--ts-brand-gold) !important;
    text-decoration: underline;
}

/* Article layout */
.article--structure {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.left-content {
    flex: 1 1 auto;
    min-width: 0;
    background: #fff;
    border: 1px solid rgba(12, 27, 61, 0.08);
    border-radius: 14px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 6px 20px rgba(0,0,0,.05);
}

.right-sidebar.related-articles {
    flex: 0 0 280px;
}

/* Controls */
.article-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 1rem;
}

.article-controls .controls {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ts-btn,
.btn-print {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    height: 38px;
    padding: 0 .95rem;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    text-decoration: none !important;
    box-shadow: none !important;
}

.ts-btn--gold,
.btn-print {
    background: var(--ts-brand-gold) !important;
    border-color: var(--ts-brand-gold) !important;
    color: #fff !important;
}

.ts-btn--gold:hover,
.ts-btn--gold:focus,
.btn-print:hover,
.btn-print:focus {
    background: var(--ts-brand-gold-dark) !important;
    border-color: var(--ts-brand-gold-dark) !important;
    color: #fff !important;
}

/* Header text */
.article-header {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(12, 27, 61, 0.08);
}

.header-title {
    color: var(--ts-brand-dark) !important;
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
}

/* Body */
.article-content,
.article-body,
.article-body article,
.article-body p,
.article-body li,
.article-body div,
.article-body span {
    color: var(--ts-color-text-dark) !important;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4 {
    color: var(--ts-color-accent-dark) !important;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: .85rem;
}

.article-body p,
.article-body li {
    line-height: 1.65;
    margin-bottom: 1rem;
}

.article-body a,
.article-body a:visited {
    color: var(--ts-color-accent-dark) !important;
}

.article-body a:hover,
.article-body a:focus {
    color: var(--ts-color-button-hover) !important;
}

/* Sidebar */
.sidebar-blocks {
    background: #fff;
    border: 1px solid rgba(12, 27, 61, 0.08);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
}

.sidebar-blocks .block-title {
    color: var(--ts-brand-dark) !important;
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: .75rem;
    text-transform: uppercase;
}

.sidebar-blocks ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-blocks li + li {
    margin-top: .55rem;
}

.sidebar-blocks a,
.sidebar-blocks a:visited {
    color: var(--ts-color-accent-dark) !important;
}

.sidebar-blocks a:hover,
.sidebar-blocks a:focus {
    color: var(--ts-color-button-hover) !important;
}

/* Footer */
.ts-site-footer,
.site--footer {
    background: var(--ts-brand-dark) !important;
    border-top: 2px solid var(--ts-brand-gold);
    color: #fff !important;
}

.ts-site-footer .copyrights,
.site--footer .copyrights {
    color: #fff !important;
    margin: 0;
}

/* Mobile */
@media (max-width: 991px) {
    .article--structure {
        flex-direction: column;
    }

    .right-sidebar.related-articles {
        width: 100%;
        flex: none;
    }

    .ts-header-inner {
        min-height: auto;
        padding-top: .75rem;
        padding-bottom: .75rem;
    }
}

/* Header balance */
.ts-header-inner,
.site--header .container {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ts-brand-logo,
.brand-logo {
    display: inline-flex;
    align-items: center;
    min-height: 52px;
    font-size: 15px;
}

/* Search band */
.search--row.search-inner {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.search--row .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.search--row .row-title {
    margin: 0 0 4px 0 !important;
    font-size: 24px !important;
    line-height: 1.1;
}

.search-form {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 260px;
}

.search-form .search_input {
    width: 260px !important;
    height: 40px !important;
    font-size: 15px !important;
    padding: 0 14px !important;
}

/* Main content width */
.content-main {
    padding-top: 18px !important;
}

.content-main > .article--structure {
    gap: 24px;
}

/* Article card */
.left-content {
    padding: 18px 18px 22px 18px !important;
    border-radius: 12px !important;
}

/* Article controls row */
.article-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 38px;
    margin-bottom: 8px !important;
}

/* Article header */
.article-header {
    margin-bottom: 10px !important;
    padding-bottom: 10px !important;
}

.header-title {
    font-size: 30px !important;
    line-height: 1.1 !important;
    margin: 0 !important;
}

/* Body spacing */
.article-body h2 {
    font-size: 28px !important;
    margin-top: 28px !important;
    margin-bottom: 12px !important;
}

.article-body p,
.article-body li {
    font-size: 16px !important;
    line-height: 1.7 !important;
    margin-bottom: 14px !important;
}

/* Sidebar cards */
.sidebar-blocks {
    padding: 14px 16px !important;
    border-radius: 12px !important;
}

.sidebar-blocks .block-title {
    font-size: 13px !important;
    letter-spacing: .04em;
    margin-bottom: 10px !important;
}

.sidebar-blocks ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sidebar-blocks li + li {
    margin-top: 8px;
}

.article-header {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(12, 27, 61, 0.12);
}

.article-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.header-title {
    margin: 0 !important;
    color: var(--ts-brand-dark) !important;
    font-size: 32px !important;
    line-height: 1.1 !important;
    font-weight: 700;
}

.article-print-btn {
    flex: 0 0 auto;
    min-width: 88px;
    height: 36px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .article-header-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .article-print-btn {
        margin-top: .25rem;
    }
}

/* =========================
   Top site header
   ========================= */

.site--header,
.site--header.custom-site-header-color,
.ts-site-header {
    background: var(--ts-brand-dark) !important;
    border-bottom: 2px solid var(--ts-brand-gold) !important;
    box-shadow: 0 1px 4px rgba(0,0,0,.12);
}

.ts-header-inner,
.site--header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    gap: 1.5rem;
}

.ts-header-left {
    flex: 1 1 auto;
    min-width: 0;
}

.ts-brand-logo,
.ts-brand-logo:visited,
.site--header .brand-logo,
.site--header .brand-logo:visited {
    display: inline-flex;
    align-items: center;
    color: #fff !important;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.2;
    text-decoration: none !important;
    white-space: nowrap;
}

.ts-brand-logo:hover,
.ts-brand-logo:focus,
.site--header .brand-logo:hover,
.site--header .brand-logo:focus {
    color: #fff !important;
    text-decoration: none !important;
}

.ts-brand-logo img,
.site--header .brand-logo img {
    display: block;
    max-height: 32px;
    width: auto;
}

.ts-header-nav,
.site--header .header--nav {
    flex: 0 0 auto;
    margin-left: auto;
}

.ts-header-nav ul,
.site--header .header--nav ul {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ts-header-nav a,
.ts-header-nav a:visited,
.site--header .header--nav a,
.site--header .header--nav a:visited {
    color: #fff !important;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.ts-header-nav a:hover,
.ts-header-nav a:focus,
.site--header .header--nav a:hover,
.site--header .header--nav a:focus {
    color: var(--ts-brand-gold) !important;
    text-decoration: underline;
}

/* Mobile menu icon */
.site--header .menu-toggle .menu-lines span {
    background: #fff !important;
}

/* =========================
   Search band
   ========================= */

.search--row.search-inner,
.search--row {
    background: #dceaf4 !important;
    border-bottom: 1px solid rgba(12,27,61,0.08);
}

.search--row .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.search--row .row-content {
    flex: 1 1 auto;
}

.search--row .row-title {
    margin: 0 0 4px 0 !important;
    font-size: 24px !important;
    line-height: 1.15;
    color: var(--ts-brand-dark) !important;
}

.search--row .row-title a,
.search--row .row-title a:visited {
    color: var(--ts-brand-dark) !important;
    text-decoration: none !important;
}

.history-path,
.history-path li {
    color: var(--ts-brand-dark) !important;
}

.history-path a,
.history-path a:visited {
    color: var(--ts-brand-dark) !important;
}

.search-form {
    flex: 0 0 270px;
    margin: 0;
}

.search-form .search_input {
    width: 100% !important;
    height: 40px !important;
    padding: 0 14px !important;
    border-radius: 8px !important;
}

/* =========================
   Article header
   ========================= */

.article-header {
    margin-bottom: 1rem !important;
    padding-bottom: .8rem !important;
    border-bottom: 1px solid rgba(12,27,61,0.12);
}

.header-title {
    margin: 0 !important;
    color: var(--ts-brand-dark) !important;
    font-size: 30px !important;
    line-height: 1.1 !important;
    font-weight: 700;
}

/* =========================
   Article / sidebar layout
   ========================= */

.article--structure {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.left-content {
    flex: 1 1 auto;
    min-width: 0;
    background: #fff;
    border: 1px solid rgba(12,27,61,0.08);
    border-radius: 14px;
    padding: 18px 18px 22px 18px !important;
    box-shadow: 0 4px 14px rgba(0,0,0,.04);
}

.right-sidebar.related-articles {
    flex: 0 0 240px;
}

.sidebar-blocks {
    background: #fff;
    border: 1px solid rgba(12,27,61,0.08);
    border-radius: 14px;
    padding: 14px 16px !important;
}

.sidebar-blocks .block-title {
    margin: 0 0 10px 0 !important;
    font-size: 13px !important;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--ts-brand-dark) !important;
    text-transform: uppercase;
}

/* =========================
   Body copy rhythm
   ========================= */

.article-body h2 {
    font-size: 28px !important;
    margin-top: 28px !important;
    margin-bottom: 12px !important;
}

.article-body p,
.article-body li {
    font-size: 16px !important;
    line-height: 1.7 !important;
    margin-bottom: 14px !important;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 991px) {
    .article--structure,
    .search--row .container {
        display: block;
    }

    .right-sidebar.related-articles {
        margin-top: 1rem;
    }

    .search-form {
        margin-top: 1rem;
        max-width: 320px;
    }
}

/* =========================
   Home page
   ========================= */

.home-hero {
    background: linear-gradient(180deg, #dceaf4 0%, #eef5fa 100%);
    border-bottom: 1px solid rgba(12,27,61,0.08);
    padding: 56px 0 54px 0;
}

.home-hero__inner {
    display: flex;
    justify-content: center;
}

.home-hero__content {
    width: 100%;
    max-width: 760px;
    text-align: center;
}

.home-hero__title {
    margin: 0 0 10px 0;
    color: var(--ts-brand-dark) !important;
    font-size: 42px;
    line-height: 1.08;
    font-weight: 700;
}

.home-hero__subtitle {
    margin: 0 0 24px 0;
    color: #415166;
    font-size: 18px;
    line-height: 1.6;
}

.home-search-form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 680px;
    margin: 0 auto;
}

.home-search-form .search_input {
    flex: 1 1 auto;
    min-width: 0;
    height: 48px !important;
    padding: 0 16px !important;
    border-radius: 10px !important;
    border: 1px solid #cfd9e4 !important;
    font-size: 16px !important;
    background: #fff !important;
}

.home-search-form .search_submit {
    flex: 0 0 auto;
    height: 48px !important;
    padding: 0 18px !important;
    border-radius: 10px !important;
    background: var(--ts-brand-gold) !important;
    color: #fff !important;
    border: 1px solid var(--ts-brand-gold) !important;
    font-weight: 600 !important;
}

.home-search-form .search_submit:hover,
.home-search-form .search_submit:focus {
    background: var(--ts-brand-gold-dark) !important;
    border-color: var(--ts-brand-gold-dark) !important;
}

/* Content area */
.home-content {
    padding-top: 36px !important;
    padding-bottom: 48px !important;
}

.home-section {
    margin-bottom: 28px;
}

.home-section__header {
    margin-bottom: 18px;
}

.home-section__title {
    margin: 0 0 6px 0;
    color: var(--ts-brand-dark) !important;
    font-size: 28px;
    font-weight: 700;
}

.home-section__subtitle {
    margin: 0;
    color: #5d6b7d;
    font-size: 16px;
}

/* Category grid */
.home-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.home-category-card,
.home-popular-card {
    background: #fff;
    border: 1px solid rgba(12,27,61,0.08);
    border-radius: 14px;
    padding: 18px 18px 16px 18px;
    box-shadow: 0 4px 14px rgba(0,0,0,.04);
}

.home-category-card__header {
    margin-bottom: 10px;
}

.home-category-card__title {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
}

.home-category-card__title a,
.home-category-card__title a:visited {
    color: var(--ts-brand-dark) !important;
    text-decoration: none;
}

.home-category-card__title a:hover,
.home-category-card__title a:focus {
    color: var(--ts-color-button-hover) !important;
    text-decoration: underline;
}

.home-category-card__links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.home-category-card__links li {
    padding: 10px 0;
    border-top: 1px solid rgba(12,27,61,0.08);
}

.home-category-card__links li:first-child {
    border-top: 0;
    padding-top: 4px;
}

.home-category-card__links a,
.home-category-card__links a:visited {
    color: var(--ts-color-accent-dark) !important;
    text-decoration: none;
    font-size: 16px;
    line-height: 1.5;
}

.home-category-card__links a:hover,
.home-category-card__links a:focus {
    color: var(--ts-color-button-hover) !important;
    text-decoration: underline;
}

.home-category-card__footer {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(12,27,61,0.08);
}

.home-link-more,
.home-link-more:visited {
    color: var(--ts-brand-dark) !important;
    font-weight: 600;
    text-decoration: none;
}

.home-link-more:hover,
.home-link-more:focus {
    color: var(--ts-color-button-hover) !important;
    text-decoration: underline;
}

/* Mobile */
@media (max-width: 991px) {
    .home-category-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .home-hero {
        padding: 42px 0;
    }

    .home-hero__title {
        font-size: 34px;
    }

    .home-hero__subtitle {
        font-size: 16px;
    }

    .home-search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .home-search-form .search_submit {
        width: 100%;
    }
}

/* Home hero: kill legacy search-row divider line */
.search--row,
.search--row.search-inner,
.home-hero {
    border: 0 !important;
    box-shadow: none !important;
    background-image: none !important;
}

/* Remove legacy pseudo-elements that draw lines/bars */
.search--row::before,
.search--row::after,
.search--row.search-inner::before,
.search--row.search-inner::after,
.home-hero::before,
.home-hero::after {
    content: none !important;
    display: none !important;
    border: 0 !important;
    box-shadow: none !important;
    background: none !important;
}

/* Ensure the hero content sits above any old decorative layer */
.home-hero,
.home-hero__inner,
.home-hero__content,
.home-search-form {
    position: relative;
    z-index: 2;
}

/* Keep the controls clean */
.home-search-form .search_input,
.home-search-form .search_submit {
    position: relative;
    z-index: 3;
    box-shadow: none !important;
}

/* =========================
   HOME HERO SEARCH HARD RESET
   ========================= */

.home-search-form,
.home-search-form::before,
.home-search-form::after,
.home-search-form .search_input,
.home-search-form .search_input::before,
.home-search-form .search_input::after,
.home-search-form .search_submit,
.home-search-form .search_submit::before,
.home-search-form .search_submit::after,
.home-search-form .search-results,
.home-search-form .search-results::before,
.home-search-form .search-results::after {
    background-image: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
    border-top: 0 !important;
    outline: none !important;
}

/* Make sure no legacy overlay is sitting over the controls */
.home-search-form {
    position: relative !important;
    isolation: isolate;
    z-index: 5;
}

.home-search-form .search_input,
.home-search-form .search_submit {
    position: relative !important;
    z-index: 6;
}

/* Hide any legacy search-results layer on the homepage */
.home-search-form .search-results {
    display: none !important;
}

/* Force native clean rendering */
.home-search-form .search_input,
.home-search-form .search_submit {
    -webkit-appearance: none !important;
    appearance: none !important;
    background-clip: padding-box !important;
}

/* Keep your intended visual styling explicit */
.home-search-form .search_input {
    display: block !important;
    width: 100% !important;
    height: 48px !important;
    line-height: 48px !important;
    padding: 0 16px !important;
    background: #fff !important;
    border: 1px solid #cfd9e4 !important;
    border-radius: 10px !important;
}

.home-search-form .search_submit {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 48px !important;
    line-height: 48px !important;
    padding: 0 18px !important;
    background: var(--ts-brand-gold) !important;
    border: 1px solid var(--ts-brand-gold) !important;
    border-radius: 10px !important;
    color: #fff !important;
}

.home-search-form {
    position: relative;
}

.home-search-form::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 12px;
    background: radial-gradient(
        circle at center,
        rgba(0,169,255,.12),
        transparent 70%
    );
    z-index: -1;
}
.home-category-card {
    transition: transform .15s ease, box-shadow .15s ease;
}

.home-category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(0,0,0,.08);
}

.home-category-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.home-hero {
    border-bottom: 1px solid rgba(12,27,61,.08);
    box-shadow: inset 0 -1px 0 rgba(255,255,255,.5);
}

.home-search-form {
    max-width: 760px;
}

/* Remove blue header band on article pages */
.search--row,
.search--row.search-inner {
    background: #fff !important;
    border-bottom: 1px solid rgba(12,27,61,.08) !important;
}
.search-form::before,
.search-form::after,
.search-form .search_input::before,
.search-form .search_input::after,
.search-form .search_submit::before,
.search-form .search_submit::after {
    content: none !important;
    display: none !important;
}
.search--row .container {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}
.search-form .search_input {
    height: 36px !important;
}
/* Kill article/search header divider completely */
.search--row,
.search--row.search-inner {
    background: #fff !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

/* Also kill any legacy decorative lines */
.search--row::before,
.search--row::after,
.search--row.search-inner::before,
.search--row.search-inner::after {
    content: none !important;
    display: none !important;
    border: 0 !important;
    box-shadow: none !important;
    background: none !important;
}

/* =========================
   Category page
   ========================= */

.ts-category-layout {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.ts-category-content {
    flex: 1 1 auto;
    min-width: 0;
    background: #fff;
    border: 1px solid rgba(12,27,61,0.08);
    border-radius: 14px;
    padding: 18px 20px 20px 20px;
    box-shadow: 0 4px 14px rgba(0,0,0,.04);
}

.ts-category-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(12,27,61,0.08);
}

.ts-category-header__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ts-category-heading {
    min-width: 0;
}

.ts-category-title {
    margin: 0;
    color: var(--ts-brand-dark) !important;
    font-size: 30px;
    line-height: 1.1;
    font-weight: 700;
}

.ts-category-sort-form {
    flex: 0 0 auto;
    margin: 0;
}

.ts-input-sort {
    min-width: 220px;
    height: 40px;
    border: 1px solid #cfd9e4 !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: var(--ts-color-text-dark) !important;
    box-shadow: none !important;
}

.ts-input-sort:focus {
    border-color: var(--ts-color-accent-bright) !important;
    box-shadow: 0 0 0 3px rgba(0,169,255,.18) !important;
}

.ts-category-results {
    padding: 0;
}

.ts-articles-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ts-articles-list__item {
    border-top: 1px solid rgba(12,27,61,0.08);
}

.ts-articles-list__item:first-child {
    border-top: 0;
}

.ts-articles-list__link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    text-decoration: none !important;
    color: var(--ts-color-text-dark) !important;
}

.ts-articles-list__link:hover,
.ts-articles-list__link:focus {
    color: var(--ts-color-button-hover) !important;
}

.ts-articles-list__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.ts-articles-list__text {
    display: inline-block;
    line-height: 1.5;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 991px) {
    .ts-category-layout {
        flex-direction: column;
    }

    .ts-category-content {
        width: 100%;
    }

    .ts-category-header__top {
        flex-direction: column;
        align-items: flex-start;
    }

    .ts-input-sort {
        min-width: 0;
        width: 100%;
    }
}

/* Kill Teamwork's legacy search overlay everywhere */
.search-form {
    position: relative !important;
    z-index: 1;
}

.search-form .search-results {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: none !important;
    overflow: hidden !important;
}

/* Also kill any pseudo-elements tied to the search UI */
.search-form::before,
.search-form::after,
.search-form .search-results::before,
.search-form .search-results::after,
.search_input::before,
.search_input::after {
    content: none !important;
    display: none !important;
}
.search_input {
    appearance: none !important;
    -webkit-appearance: none !important;
    background: #fff !important;
    background-image: none !important;
    box-shadow: none !important;
    border: 1px solid #cfd9e4 !important;
    border-radius: 8px !important;
}

