.ti-template-main {
    width: 100%;
    min-height: 60vh;
    padding: 1px 0 54px;
    background: #fff;
}
.ti-template-page {
    width: min(1170px, calc(100% - 32px));
    margin: 0 auto;
    padding-top: 0;
}
.ti-template-page-header h1 { margin: 24px 0; }
.ti-template-content { margin: 0 0 26px; }

.ti-public {
    --ti-accent: #ec168c;
    --ti-document-bg: #e8f5e9;
    --ti-animation: 280ms;
    width: 100%;
    color: #171a1e;
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
.ti-public *, .ti-public *::before, .ti-public *::after { box-sizing: border-box; }

.ti-section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 21px;
    min-height: 72px;
    margin: 0 0 29px;
}
.ti-section-title h1 {
    margin: 0;
    color: #d321bc;
    font-size: 23px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -.3px;
}
.ti-section-line {
    width: 100px;
    height: 1px;
    background: #c8c8c8;
}

.ti-article-navigation {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    align-items: center;
    gap: 20px 90px;
    margin: 0 auto 29px;
    padding: 0 85px;
}
.ti-article-tab {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 8px 15px;
    border: 0;
    border-radius: 5px;
    background: var(--ti-accent);
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.18);
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.ti-article-tab:hover, .ti-article-tab:focus {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,.18);
    opacity: .96;
}
.ti-article-tab.is-active { box-shadow: 0 0 0 2px rgba(236,22,140,.22), 0 2px 5px rgba(0,0,0,.16); }
.ti-wheelchair { width: 31px; height: 26px; display: inline-flex; align-items: center; justify-content: center; }
.ti-wheelchair svg { width: 31px; height: 26px; fill: currentColor; }

.ti-article-header {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 69px;
    padding: 13px 14px;
    margin-bottom: 8px;
    border-radius: 4px;
    background: var(--ti-accent);
    color: #fff;
}
.ti-article-header h2 {
    flex: 0 0 auto;
    margin: 0;
    color: #050505;
    font-size: clamp(27px, 2.7vw, 34px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.4px;
}
.ti-header-divider { width: 2px; height: 30px; background: rgba(255,255,255,.95); }
.ti-article-header p {
    margin: 0;
    color: #fff;
    font-size: clamp(17px, 1.9vw, 23px);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -.2px;
}

.ti-tree { padding-left: 22px; }
.ti-public-node { position: relative; margin: 0 0 6px; }
.ti-public-node[data-depth]:not([data-depth="1"]) { margin-left: 21px; }
.ti-public-node[data-depth]:not([data-depth="1"])::before {
    content: "";
    position: absolute;
    left: -21px;
    top: -8px;
    bottom: -8px;
    width: 2px;
    background: #e1e5e9;
}

.ti-node-heading {
    display: flex;
    align-items: flex-start;
    min-height: 38px;
    border: 1px solid #e0e4e8;
    border-left: 3px solid #e3e7ea;
    border-radius: 4px;
    background: #fff;
}
.ti-fraction-heading {
    padding: 6px 10px 6px 7px;
    border-left-color: var(--ti-accent);
    background: #f7f8f9;
}
.ti-toggle, .ti-toggle-placeholder {
    flex: 0 0 31px;
    width: 31px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
}
.ti-toggle { cursor: pointer; color: #ff2f95; }
.ti-toggle:hover, .ti-toggle:focus { background: rgba(236,22,140,.06); }
.ti-chevron {
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(-2px,-2px);
    transition: transform var(--ti-animation) ease;
}
.ti-public-node.is-open > .ti-node-heading .ti-chevron { transform: rotate(225deg) translate(-1px,-1px); }
.ti-heading-text {
    flex: 1;
    min-width: 0;
    padding: 8px 10px 8px 0;
    color: #15191d;
    font-weight: 400;
    line-height: 1.42;
}
.ti-fraction-heading .ti-heading-text {
    display: flex;
    align-items: baseline;
    gap: 4px;
    padding: 2px 0;
}
.ti-heading-text strong { font-weight: 500; }
.ti-fraction-heading strong { flex: 0 0 auto; font-weight: 600; }
.ti-separator { color: #777; }
.ti-node-description { color: #4e555d; font-style: italic; font-weight: 400; }

.ti-node-children-wrap {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows var(--ti-animation) cubic-bezier(.2,.72,.25,1);
}
.ti-public-node.is-open > .ti-node-children-wrap,
.ti-public-node.is-static > .ti-node-children-wrap { grid-template-rows: 1fr; }
.ti-node-children-inner { min-height: 0; overflow: hidden; }
.ti-node-children { padding: 6px 0 1px; }

.ti-document-row {
    display: flex;
    align-items: center;
    min-height: 39px;
    border-left: 2px solid #20b95c;
    border-radius: 4px;
    background: var(--ti-document-bg);
    overflow: hidden;
}
.ti-document-title {
    flex: 1;
    min-width: 0;
    padding: 9px 11px;
    color: #18231c !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 400;
}
.ti-document-title:hover { text-decoration: underline !important; }
.ti-download-button {
    flex: 0 0 38px;
    width: 38px;
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ff2f95 !important;
    background: rgba(255,255,255,.34);
    text-decoration: none !important;
    transition: background .18s ease;
}
.ti-download-button:hover { background: rgba(255,255,255,.78); }
.ti-download-button svg { width: 17px; height: 17px; fill: currentColor; }
.ti-document-description { margin: 3px 0 8px; padding: 4px 11px 3px; color: #58605a; font-size: 13px; }
.ti-document-description p { margin: 0; }
.ti-public-empty { padding: 24px; border: 1px dashed #ccd1d6; border-radius: 6px; color: #737980; text-align: center; background: #fafbfb; }

@media (max-width: 760px) {
    .ti-template-page { width: min(100% - 20px, 1170px); }
    .ti-section-title { min-height: 60px; gap: 12px; margin-bottom: 18px; }
    .ti-section-title h1 { font-size: 19px; }
    .ti-section-line { width: 52px; }
    .ti-article-navigation { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; padding: 0; margin-bottom: 18px; }
    .ti-article-tab { width: 100%; justify-content: center; padding: 8px 9px; font-size: 13px; }
    .ti-article-header { align-items: flex-start; flex-direction: column; gap: 5px; min-height: auto; padding: 13px; }
    .ti-header-divider { display: none; }
    .ti-article-header h2 { font-size: 25px; }
    .ti-article-header p { font-size: 16px; }
    .ti-tree { padding-left: 0; }
    .ti-public-node[data-depth]:not([data-depth="1"]) { margin-left: 10px; }
    .ti-public-node[data-depth]:not([data-depth="1"])::before { left: -10px; }
    .ti-fraction-heading .ti-heading-text { display: block; }
    .ti-separator { display: none; }
    .ti-node-description { display: block; margin-top: 2px; }
}

@media (prefers-reduced-motion: reduce) {
    .ti-public *, .ti-public *::before, .ti-public *::after { transition-duration: .01ms !important; }
}
