/*
Theme Name: Tele86 Knowledge Base
Theme URI: https://tele86.com/
Author: Tele86
Author URI: https://tele86.com/
Description: A lightweight, problem-first Telegram knowledge base theme built for Tele86.
Version: 1.2.0
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: tele86
*/

:root {
    --ink-950: #111d31;
    --ink-900: #18263d;
    --ink-800: #263850;
    --ink-700: #40536c;
    --ink-600: #607089;
    --ink-500: #7b899d;
    --line: #dfe6ee;
    --line-soft: #eaf0f5;
    --surface: #ffffff;
    --surface-soft: #f5f8fb;
    --surface-blue: #edf8fd;
    --telegram-blue: #229ed9;
    --tele86-blue: #176ea4;
    --tele86-blue-dark: #0c527e;
    --safety: #12805c;
    --warning: #a96206;
    --service: #24324a;
    --shadow-sm: 0 1px 2px rgba(17, 29, 49, 0.05), 0 8px 24px rgba(17, 29, 49, 0.05);
    --shadow-md: 0 18px 50px rgba(17, 29, 49, 0.10);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --content: 760px;
    --wide: 1180px;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

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

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

body {
    margin: 0;
    color: var(--ink-800);
    background: var(--surface-soft);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.75;
    text-rendering: optimizeLegibility;
}

body.admin-bar .site-header {
    top: 32px;
}

a {
    color: var(--tele86-blue);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--tele86-blue-dark);
}

img {
    max-width: 100%;
    height: auto;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid rgba(34, 158, 217, 0.35);
    outline-offset: 3px;
}

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

.skip-link {
    position: fixed;
    z-index: 99999;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    color: #fff;
    background: var(--ink-950);
    border-radius: 8px;
    transform: translateY(-150%);
}

.skip-link:focus {
    color: #fff;
    transform: translateY(0);
}

.site-header {
    position: sticky;
    z-index: 1000;
    top: 0;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(223, 230, 238, 0.92);
    backdrop-filter: blur(16px);
}

.site-header__inner {
    display: grid;
    grid-template-columns: minmax(190px, auto) 1fr minmax(170px, auto);
    gap: 28px;
    align-items: center;
    width: min(calc(100% - 40px), var(--wide));
    min-height: 76px;
    margin: 0 auto;
}

.wordmark {
    display: inline-flex;
    flex-direction: column;
    justify-self: start;
    color: var(--ink-950);
    text-decoration: none;
    line-height: 1.05;
}

.wordmark:hover {
    color: var(--ink-950);
}

.wordmark__name {
    font-size: 25px;
    font-weight: 830;
    letter-spacing: -0.055em;
}

.wordmark__name span {
    color: var(--telegram-blue);
}

.wordmark__tagline {
    margin-top: 6px;
    color: var(--ink-600);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.primary-navigation {
    justify-self: end;
}

.primary-menu {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 0;
    margin: 0;
    list-style: none;
}

.primary-menu a {
    display: block;
    padding: 10px 11px;
    color: var(--ink-700);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current-menu-ancestor > a {
    color: var(--tele86-blue-dark);
    background: var(--surface-blue);
}

.header-service {
    display: flex;
    flex-direction: column;
    justify-self: end;
    padding: 9px 14px;
    color: #fff;
    background: var(--service);
    border: 1px solid var(--service);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.25;
    text-decoration: none;
    white-space: nowrap;
}

.header-service:hover {
    color: #fff;
    background: var(--ink-950);
}

.header-service small {
    margin-top: 2px;
    color: #cdd8e7;
    font-size: 9px;
    font-weight: 550;
    letter-spacing: 0.02em;
}

.nav-toggle {
    display: none;
    border: 0;
    color: var(--ink-900);
    background: transparent;
}

.site-main {
    min-height: 62vh;
}

.hero-section {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 84% 8%, rgba(34, 158, 217, 0.22), transparent 34%),
        linear-gradient(135deg, #12233f 0%, #172c48 52%, #124e70 100%);
}

.hero-section::after {
    position: absolute;
    right: -160px;
    bottom: -190px;
    width: 440px;
    height: 440px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 50%;
    content: "";
}

.hero-section__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
    gap: 72px;
    align-items: center;
    width: min(calc(100% - 40px), var(--wide));
    min-height: 400px;
    padding: 76px 0;
    margin: 0 auto;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--tele86-blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.hero-copy .eyebrow {
    color: #74cff4;
}

.hero-copy h1 {
    max-width: 620px;
    margin: 0;
    color: #fff;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.12;
    letter-spacing: -0.045em;
}

.hero-lead {
    max-width: 600px;
    margin: 24px 0 0;
    color: #d9e4ef;
    font-size: 18px;
    line-height: 1.75;
}

.hero-search {
    padding: 28px;
    color: var(--ink-800);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.hero-search__label {
    margin: 0 0 12px;
    color: var(--ink-900);
    font-size: 16px;
    font-weight: 750;
}

.search-form {
    display: flex;
    gap: 8px;
    width: 100%;
}

.search-form input[type="search"] {
    min-width: 0;
    flex: 1;
    padding: 14px 16px;
    color: var(--ink-900);
    background: #fff;
    border: 1px solid #cfd9e4;
    border-radius: 10px;
    outline: 0;
}

.search-form input[type="search"]:focus {
    border-color: var(--telegram-blue);
    box-shadow: 0 0 0 4px rgba(34, 158, 217, 0.12);
}

.search-form button {
    padding: 12px 19px;
    color: #fff;
    background: var(--tele86-blue);
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 750;
}

.search-form button:hover {
    background: var(--tele86-blue-dark);
}

.hero-search__suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 12px;
    margin-top: 13px;
    color: var(--ink-600);
    font-size: 12px;
}

.hero-search__suggestions a {
    font-weight: 700;
}

.home-section,
.listing-page,
.related-section {
    width: min(calc(100% - 40px), var(--wide));
    padding: 72px 0 0;
    margin: 0 auto;
}

.home-section:last-child {
    padding-bottom: 80px;
}

.section-heading {
    display: flex;
    gap: 32px;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 28px;
}

.section-heading h2,
.decision-intro h2,
.security-card h2,
.service-section h2 {
    margin: 0;
    color: var(--ink-950);
    font-size: clamp(27px, 3vw, 38px);
    line-height: 1.24;
    letter-spacing: -0.035em;
}

.section-heading > p {
    max-width: 420px;
    margin: 0;
    color: var(--ink-600);
    font-size: 14px;
    text-align: right;
}

.section-link,
.text-link {
    color: var(--tele86-blue-dark);
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
}

.section-link:hover,
.text-link:hover {
    text-decoration: underline;
}

.issue-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.issue-card {
    position: relative;
    display: flex;
    min-height: 210px;
    flex-direction: column;
    padding: 26px;
    color: var(--ink-700);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.issue-card:hover {
    color: var(--ink-700);
    border-color: #9acfea;
    box-shadow: 0 16px 36px rgba(17, 29, 49, 0.09);
    transform: translateY(-3px);
}

.issue-card__number {
    display: inline-flex;
    width: 34px;
    height: 28px;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    color: var(--tele86-blue-dark);
    background: var(--surface-blue);
    border-radius: 7px;
    font-size: 11px;
    font-weight: 850;
}

.issue-card strong {
    margin-bottom: 8px;
    color: var(--ink-950);
    font-size: 19px;
    line-height: 1.4;
}

.issue-card > span:not(.issue-card__number, .text-link) {
    font-size: 14px;
    line-height: 1.65;
}

.issue-card .text-link {
    margin-top: auto;
    padding-top: 18px;
}

.decision-section {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    gap: 60px;
    padding: 56px;
    margin-top: 72px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.decision-intro > p:not(.eyebrow) {
    margin: 18px 0 0;
    color: var(--ink-600);
}

.decision-note {
    padding: 16px 18px;
    margin-top: 28px;
    color: #5f470f;
    background: #fff8e7;
    border-left: 4px solid #d39222;
    border-radius: 8px;
    font-size: 13px;
}

.decision-list details {
    border-top: 1px solid var(--line-soft);
}

.decision-list details:first-child {
    border-top: 0;
}

.decision-list summary {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 17px 2px;
    color: var(--ink-900);
    cursor: pointer;
    font-weight: 750;
    list-style: none;
}

.decision-list summary::-webkit-details-marker {
    display: none;
}

.decision-list summary::after {
    margin-left: auto;
    color: var(--tele86-blue);
    content: "+";
    font-size: 21px;
    font-weight: 450;
}

.decision-list details[open] summary::after {
    content: "−";
}

.decision-list summary span {
    display: inline-flex;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--ink-900);
    border-radius: 50%;
    font-size: 11px;
}

.decision-list details p {
    padding: 0 2px 18px 42px;
    margin: 0;
    color: var(--ink-600);
    font-size: 14px;
}

.decision-list details p a {
    display: block;
    margin-top: 6px;
    font-weight: 750;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.guide-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tutorial-hub__intro {
    max-width: 760px;
    color: var(--ink-600);
    font-size: 16px;
    line-height: 1.8;
}

.tutorial-hub__section {
    padding: 56px 0 0;
    border-top: 1px solid var(--line-soft);
    margin-top: 56px;
}

.tutorial-hub__section:first-of-type {
    padding-top: 0;
    border-top: 0;
}

.tutorial-hub__section:last-child {
    padding-bottom: 80px;
}

.content-card {
    padding: 26px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

.content-card__meta {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 13px;
    color: var(--ink-500);
    font-size: 11px;
    font-weight: 650;
}

.content-card__meta span {
    color: var(--tele86-blue-dark);
    font-weight: 800;
}

.content-card h3 {
    margin: 0;
    color: var(--ink-950);
    font-size: 20px;
    line-height: 1.45;
    letter-spacing: -0.018em;
}

.content-card h3 a {
    color: inherit;
    text-decoration: none;
}

.content-card h3 a:hover {
    color: var(--tele86-blue-dark);
}

.content-card > p {
    margin: 12px 0 18px;
    color: var(--ink-600);
    font-size: 14px;
    line-height: 1.72;
}

.content-card--compact {
    display: grid;
    grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr) auto;
    gap: 28px;
    align-items: center;
    padding: 21px 24px;
    border-radius: 12px;
}

.content-card--compact .content-card__meta {
    display: block;
    margin: 0;
}

.content-card--compact .content-card__meta > * {
    display: block;
}

.content-card--compact .content-card__meta time {
    margin-top: 5px;
}

.content-card--compact h3 {
    font-size: 17px;
}

.content-card--compact > p {
    display: none;
}

.recent-list {
    display: grid;
    gap: 10px;
}

.security-card {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 60px;
    padding: 52px;
    color: #dfeee9;
    background: linear-gradient(135deg, #123c36 0%, #155f50 100%);
    border-radius: var(--radius-lg);
}

.security-card .eyebrow {
    color: #8ddbc5;
}

.security-card h2 {
    color: #fff;
}

.security-card p {
    color: #d6ebe5;
}

.security-checklist {
    padding: 0;
    margin: 0;
    list-style: none;
}

.security-checklist li {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-weight: 650;
}

.security-checklist li:last-child {
    border-bottom: 0;
}

.security-checklist span {
    color: #8ddbc5;
    font-size: 11px;
    font-weight: 850;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 17px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 780;
    text-decoration: none;
}

.button--primary {
    color: #fff;
    background: var(--tele86-blue);
}

.button--primary:hover {
    color: #fff;
    background: var(--tele86-blue-dark);
}

.security-card .button--primary {
    margin-top: 12px;
    color: #103a34;
    background: #a6e6d3;
}

.tool-grid,
.update-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.tool-card,
.update-card {
    display: flex;
    min-height: 190px;
    flex-direction: column;
    padding: 23px;
    color: var(--ink-700);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    text-decoration: none;
}

.tool-card:hover,
.update-card:hover {
    color: var(--ink-700);
    border-color: #9acfea;
}

.tool-card > span:first-child,
.update-card time {
    margin-bottom: 24px;
    color: var(--tele86-blue-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.tool-card strong,
.update-card strong {
    color: var(--ink-950);
    font-size: 18px;
    line-height: 1.45;
}

.tool-card p,
.update-card p {
    margin: 8px 0 0;
    color: var(--ink-600);
    font-size: 13px;
    line-height: 1.65;
}

.update-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.update-card .text-link {
    margin-top: auto;
    padding-top: 18px;
}

.source-note {
    padding: 13px 16px;
    margin: -10px 0 20px;
    color: var(--ink-600);
    background: var(--surface-blue);
    border-left: 3px solid var(--telegram-blue);
    border-radius: 6px;
    font-size: 13px;
}

.service-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 50px;
    align-items: center;
    padding: 46px 50px;
    margin-top: 72px;
    color: #dbe5f1;
    background: var(--service);
    border-radius: var(--radius-lg);
}

.service-section .eyebrow {
    color: #82ccec;
}

.service-section h2 {
    color: #fff;
}

.service-section__content > p:not(.eyebrow) {
    max-width: 720px;
    margin: 13px 0 0;
}

.service-disclosure {
    color: #afbecf;
    font-size: 12px;
}

.service-section__actions {
    display: flex;
    min-width: 230px;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.button--service {
    color: var(--ink-950);
    background: #fff;
}

.button--service:hover {
    color: var(--ink-950);
    background: #dfeaf5;
}

.service-section .text-link,
.context-service .text-link {
    color: #9dd8f0;
}

.article-page {
    padding: 48px 0 80px;
}

.article-shell {
    width: min(calc(100% - 40px), var(--content));
    margin: 0 auto;
}

.article-shell--with-toc {
    display: grid;
    grid-template-columns: minmax(0, var(--content)) 240px;
    gap: 64px;
    align-items: start;
    width: min(calc(100% - 40px), 1064px);
}

.knowledge-article {
    min-width: 0;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    margin-bottom: 30px;
    color: var(--ink-500);
    font-size: 12px;
}

.breadcrumbs a {
    color: var(--ink-600);
    text-decoration: none;
}

.article-header {
    padding-bottom: 26px;
    border-bottom: 1px solid var(--line);
}

.article-kicker {
    display: inline-block;
    margin: 0 0 13px;
    color: var(--tele86-blue-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-decoration: none;
}

.article-header h1 {
    margin: 0;
    color: var(--ink-950);
    font-size: clamp(34px, 5vw, 51px);
    line-height: 1.22;
    letter-spacing: -0.042em;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 20px;
    color: var(--ink-500);
    font-size: 12px;
}

.article-meta strong {
    color: var(--safety);
}

.verdict-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    padding: 24px;
    margin: 30px 0;
    background: #eef8f5;
    border: 1px solid #cce8df;
    border-radius: var(--radius-md);
}

.verdict-card__mark {
    display: inline-flex;
    height: 28px;
    align-items: center;
    padding: 0 9px;
    color: #fff;
    background: var(--safety);
    border-radius: 7px;
    font-size: 11px;
    font-weight: 850;
}

.verdict-card h2 {
    margin: 0 0 4px;
    color: #17473c;
    font-size: 17px;
}

.verdict-card p {
    margin: 0;
    color: #41665e;
    font-size: 14px;
}

.entry-content {
    color: var(--ink-800);
    font-size: 17px;
    line-height: 1.9;
}

.entry-content > *:first-child {
    margin-top: 0;
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content table,
.entry-content figure,
.entry-content blockquote {
    margin-top: 1.2em;
    margin-bottom: 1.2em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    scroll-margin-top: 104px;
    color: var(--ink-950);
    line-height: 1.35;
    letter-spacing: -0.025em;
}

.entry-content h2 {
    padding-top: 22px;
    margin: 2.1em 0 0.7em;
    font-size: 29px;
    border-top: 1px solid var(--line-soft);
}

.entry-content h3 {
    margin: 1.7em 0 0.6em;
    font-size: 22px;
}

.entry-content ul,
.entry-content ol {
    padding-left: 1.4em;
}

.entry-content li {
    margin: 0.52em 0;
    padding-left: 0.25em;
}

.entry-content a {
    font-weight: 650;
}

.entry-content code {
    padding: 0.14em 0.36em;
    color: #8b3e18;
    background: #fff2e9;
    border-radius: 5px;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.88em;
}

.entry-content blockquote {
    padding: 18px 22px;
    color: #465c71;
    background: #f1f7fb;
    border-left: 4px solid var(--telegram-blue);
    border-radius: 0 10px 10px 0;
}

.entry-content blockquote > :first-child {
    margin-top: 0;
}

.entry-content blockquote > :last-child {
    margin-bottom: 0;
}

.entry-content figure {
    max-width: 100%;
}

.entry-content figure img {
    display: block;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.entry-content .is-style-tele86-screenshot {
    padding: 10px;
    background: #eef3f7;
    border: 1px solid var(--line);
    border-radius: 16px;
}

.entry-content .is-style-tele86-screenshot img {
    border-radius: 9px;
    box-shadow: none;
}

.entry-content .is-style-tele86-judgement,
.entry-content .is-style-tele86-step {
    padding: 20px 22px;
    margin: 1.4em 0;
    border-radius: 12px;
}

.entry-content .is-style-tele86-judgement {
    color: #315f54;
    background: #eef8f5;
    border: 1px solid #cce8df;
}

.entry-content .is-style-tele86-step {
    background: #f4f8fb;
    border: 1px solid var(--line);
    border-left: 4px solid var(--telegram-blue);
}

.entry-content .is-style-tele86-judgement > :first-child,
.entry-content .is-style-tele86-step > :first-child {
    margin-top: 0;
}

.entry-content .is-style-tele86-judgement > :last-child,
.entry-content .is-style-tele86-step > :last-child {
    margin-bottom: 0;
}

.entry-content figcaption {
    margin-top: 9px;
    color: var(--ink-500);
    font-size: 12px;
    line-height: 1.55;
    text-align: center;
}

.entry-content .wp-block-table {
    overflow-x: auto;
}

.entry-content table {
    width: 100%;
    border-spacing: 0;
    border-collapse: separate;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.6;
}

.entry-content th,
.entry-content td {
    padding: 12px 14px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.entry-content th:last-child,
.entry-content td:last-child {
    border-right: 0;
}

.entry-content tr:last-child td {
    border-bottom: 0;
}

.entry-content th {
    color: var(--ink-900);
    background: #edf3f8;
    font-weight: 800;
}

.article-toc {
    position: sticky;
    top: 104px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.article-toc[hidden] {
    display: none;
}

.article-toc__title {
    margin: 0 0 12px;
    color: var(--ink-900);
    font-size: 13px;
    font-weight: 850;
}

.article-toc ol {
    padding: 0;
    margin: 0;
    list-style: none;
}

.article-toc li + li {
    margin-top: 8px;
}

.article-toc li.is-h3 {
    padding-left: 13px;
}

.article-toc a {
    display: block;
    color: var(--ink-600);
    font-size: 12px;
    line-height: 1.55;
    text-decoration: none;
}

.article-toc a:hover,
.article-toc a.is-active {
    color: var(--tele86-blue-dark);
}

.context-service {
    padding: 28px;
    margin-top: 42px;
    color: #dbe5f1;
    background: var(--service);
    border-radius: var(--radius-md);
}

.context-service .eyebrow {
    color: #83cfee;
}

.context-service h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 25px;
}

.context-service p:not(.eyebrow) {
    color: #c3cfdd;
    font-size: 14px;
}

.context-service__links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-top: 19px;
}

.article-footer-note {
    padding-top: 24px;
    margin-top: 42px;
    color: var(--ink-600);
    border-top: 1px solid var(--line);
    font-size: 13px;
}

.article-footer-note strong {
    color: var(--ink-900);
}

.article-footer-note p {
    margin: 4px 0 0;
}

.related-section {
    padding-top: 62px;
}

.listing-page {
    padding-top: 54px;
    padding-bottom: 80px;
}

.listing-header {
    max-width: 800px;
    margin-bottom: 34px;
}

.listing-header h1,
.empty-state h1 {
    margin: 0;
    color: var(--ink-950);
    font-size: clamp(36px, 5vw, 54px);
    line-height: 1.18;
    letter-spacing: -0.04em;
}

.listing-description {
    margin-top: 14px;
    color: var(--ink-600);
}

.listing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.search-page .search-form,
.error-page .search-form {
    max-width: 650px;
    margin-top: 24px;
}

.navigation.pagination {
    margin-top: 36px;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.page-numbers {
    display: inline-flex;
    min-width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0 11px;
    color: var(--ink-700);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    text-decoration: none;
}

.page-numbers.current,
.page-numbers:hover {
    color: #fff;
    background: var(--tele86-blue);
    border-color: var(--tele86-blue);
}

.error-page {
    display: grid;
    min-height: 68vh;
    place-items: center;
    padding: 70px 20px;
}

.empty-state {
    width: min(100%, 720px);
    padding: 54px;
    margin: 0 auto;
    text-align: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

.empty-state .button {
    margin-top: 20px;
}

.site-footer {
    margin-top: 80px;
    color: #c3cfdd;
    background: #101c2d;
}

.site-footer__inner {
    width: min(calc(100% - 40px), var(--wide));
    padding: 54px 0 30px;
    margin: 0 auto;
}

.wordmark__name--footer {
    color: #fff;
}

.site-footer__brand p {
    margin: 7px 0 0;
    color: #9eacbd;
    font-size: 13px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 22px;
    padding: 28px 0;
    margin-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links a {
    color: #e3ebf4;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}

.footer-links a:hover {
    color: #82d0f1;
}

.site-footer__disclosure {
    max-width: 850px;
    margin: 22px 0 0;
    color: #8e9daf;
    font-size: 12px;
}

.site-footer__copyright {
    margin: 18px 0 0;
    color: #718197;
    font-size: 11px;
}

@media (max-width: 1120px) {
    .site-header__inner {
        grid-template-columns: auto auto;
    }

    .nav-toggle {
        display: inline-flex;
        gap: 9px;
        align-items: center;
        justify-self: end;
        padding: 10px;
        cursor: pointer;
        font-weight: 750;
    }

    .nav-toggle__bars,
    .nav-toggle__bars::before,
    .nav-toggle__bars::after {
        display: block;
        width: 18px;
        height: 2px;
        background: currentColor;
        content: "";
    }

    .nav-toggle__bars {
        position: relative;
    }

    .nav-toggle__bars::before {
        position: absolute;
        top: -6px;
    }

    .nav-toggle__bars::after {
        position: absolute;
        top: 6px;
    }

    .primary-navigation {
        display: none;
        grid-column: 1 / -1;
        width: 100%;
        padding-bottom: 16px;
    }

    .site-header.is-open .primary-navigation {
        display: block;
    }

    .primary-menu {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 4px;
    }

    .header-service {
        display: none;
    }

    .article-shell--with-toc {
        display: block;
        width: min(calc(100% - 40px), var(--content));
    }

    .article-toc {
        position: static;
        padding: 18px 20px;
        margin: 26px 0 0;
    }

    .article-shell--with-toc .knowledge-article {
        display: flex;
        flex-direction: column;
    }

    .article-shell--with-toc .article-toc {
        order: -1;
    }
}

@media (max-width: 860px) {
    body.admin-bar .site-header {
        top: 46px;
    }

    .hero-section__inner,
    .decision-section,
    .security-card,
    .service-section {
        grid-template-columns: 1fr;
    }

    .hero-section__inner {
        gap: 38px;
        padding: 58px 0;
    }

    .issue-grid,
    .guide-grid,
    .guide-grid--three,
    .listing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tool-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .decision-section,
    .security-card {
        gap: 34px;
        padding: 38px;
    }

    .service-section {
        gap: 28px;
    }

    .service-section__actions {
        align-items: flex-start;
    }

    .content-card--compact {
        grid-template-columns: 180px 1fr auto;
        gap: 18px;
    }
}

@media (max-width: 640px) {
    body.admin-bar .site-header {
        top: 0;
    }

    .site-header__inner,
    .home-section,
    .listing-page,
    .related-section,
    .site-footer__inner,
    .hero-section__inner,
    .article-shell,
    .article-shell--with-toc {
        width: min(calc(100% - 28px), var(--wide));
    }

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

    .wordmark__name {
        font-size: 23px;
    }

    .wordmark__tagline {
        display: none;
    }

    .nav-toggle__label {
        font-size: 13px;
    }

    .primary-menu {
        grid-template-columns: 1fr 1fr;
    }

    .hero-copy h1 {
        font-size: 39px;
    }

    .hero-lead {
        font-size: 16px;
    }

    .hero-search {
        padding: 20px;
    }

    .search-form {
        display: grid;
    }

    .home-section,
    .related-section {
        padding-top: 56px;
    }

    .section-heading {
        display: block;
    }

    .section-heading > p {
        margin-top: 10px;
        text-align: left;
    }

    .section-heading .section-link {
        display: inline-block;
        margin-top: 12px;
    }

    .issue-grid,
    .guide-grid,
    .guide-grid--three,
    .listing-grid,
    .tool-grid,
    .update-grid {
        grid-template-columns: 1fr;
    }

    .issue-card {
        min-height: 188px;
    }

    .decision-section,
    .security-card,
    .service-section {
        padding: 28px 22px;
        margin-top: 56px;
        border-radius: 18px;
    }

    .decision-list details p {
        padding-left: 0;
    }

    .content-card--compact {
        display: block;
    }

    .content-card--compact .content-card__meta {
        display: flex;
        margin-bottom: 10px;
    }

    .content-card--compact .text-link {
        display: inline-block;
        margin-top: 12px;
    }

    .article-page {
        padding-top: 30px;
    }

    .article-header h1 {
        font-size: 35px;
    }

    .entry-content {
        font-size: 16px;
        line-height: 1.85;
    }

    .entry-content h2 {
        font-size: 25px;
    }

    .verdict-card {
        display: block;
    }

    .verdict-card__mark {
        margin-bottom: 12px;
    }

    .entry-content th,
    .entry-content td {
        min-width: 130px;
        padding: 10px;
    }

    .empty-state {
        padding: 34px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
