/*
Theme Name: TechArchiveCore_9773
Theme URI: https://thetaxidermyconservatory.com
Author: Илья Воронцов
Author URI: https://thetaxidermyconservatory.com
Description: Минималистичная тема для информационного медиа-блога о хайтеке с акцентом на практическое применение технологий.
Version: 1.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: techarchivecore-9773
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --tac-bg: #F8F7F4;
    --tac-card-bg: #FFFFFF;
    --tac-card-shadow: 0px 4px 12px rgba(0,0,0,0.03);
    --tac-text: #1E2A2E;
    --tac-text-secondary: #5B6F7A;
    --tac-accent: #D95D39;
    --tac-highlight-bg: #F0F2F0;
    --tac-border: #E2E4DF;
    --tac-radius: 6px;
    --tac-radius-round: 30px;
    --tac-header-height: 80px;
    --tac-header-height-shrink: 50px;
    --tac-font-heading: 'Inter', system-ui, sans-serif;
    --tac-font-body: 'Crimson Pro', Georgia, serif;
    --tac-font-mono: 'JetBrains Mono', 'Courier New', monospace;
    --tac-content-wide: 85%;
    --tac-content-max: 1280px;
}

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

body {
    font-family: var(--tac-font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--tac-text);
    background-color: var(--tac-bg);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--tac-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #b84425;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--tac-font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--tac-text);
    margin: 0 0 0.6em;
}

h1 { font-size: 2.1rem; }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p {
    margin: 0 0 1em;
}

ul, ol {
    margin: 0 0 1em 1.4em;
}

blockquote {
    border-left: 3px solid var(--tac-accent);
    padding: 0.8em 1.2em;
    margin: 0 0 1.2em;
    background: var(--tac-highlight-bg);
    font-style: italic;
    color: var(--tac-text-secondary);
}

pre, code {
    font-family: var(--tac-font-mono);
    font-size: 0.88em;
}

pre {
    background: var(--tac-highlight-bg);
    border: 1px solid var(--tac-border);
    padding: 1em;
    overflow-x: auto;
    margin: 0 0 1.2em;
    border-radius: var(--tac-radius);
}

code {
    background: var(--tac-highlight-bg);
    padding: 0.15em 0.4em;
    border-radius: 3px;
}

pre code {
    background: none;
    padding: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.2em;
}

th, td {
    border: 1px solid var(--tac-border);
    padding: 0.6em 0.8em;
    text-align: left;
}

th {
    background: var(--tac-highlight-bg);
    font-family: var(--tac-font-heading);
    font-weight: 600;
    font-size: 0.92em;
}

figure {
    margin: 0 0 1.2em;
}

figcaption {
    font-family: var(--tac-font-mono);
    font-size: 0.78em;
    color: var(--tac-text-secondary);
    border: 1px dashed var(--tac-border);
    padding: 0.3em 0.6em;
    margin-top: 0.4em;
    display: inline-block;
}

/* ===== LAYOUT ===== */
.tac-wrap {
    width: var(--tac-content-wide);
    max-width: var(--tac-content-max);
    margin: 0 auto;
}

.tac-row {
    display: flex;
    gap: 3%;
}

.tac-main {
    flex: 1;
    min-width: 0;
}

.tac-main--full {
    width: var(--tac-content-wide);
    max-width: var(--tac-content-max);
    margin: 0 auto;
}

.tac-sidebar {
    flex: 0 0 27%;
    min-width: 0;
}

.tac-has-sidebar .tac-main {
    flex: 0 0 67%;
}

/* ===== HEADER ===== */
.tac-header {
    background: var(--tac-card-bg);
    border-bottom: 1px solid var(--tac-border);
    height: var(--tac-header-height);
    transition: height 0.3s ease;
    z-index: 100;
}

.tac-header.is-shrunk {
    height: var(--tac-header-height-shrink);
}

.tac-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.tac-brand {
    display: flex;
    align-items: center;
    gap: 0.8em;
    text-decoration: none;
    color: var(--tac-text);
    flex-shrink: 0;
}

.tac-brand:hover {
    color: var(--tac-text);
}

.brand-logo {
    height: 42px;
    width: auto;
    transition: height 0.3s ease;
}

.is-shrunk .brand-logo {
    height: 32px;
}

.tac-brand-placeholder {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    transition: width 0.3s ease, height 0.3s ease;
}

.is-shrunk .tac-brand-placeholder {
    width: 32px;
    height: 32px;
}

.tac-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.tac-site-title {
    font-family: var(--tac-font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
}

.tac-site-desc {
    font-size: 0.72rem;
    color: var(--tac-text-secondary);
    max-width: 280px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tac-header-right {
    display: flex;
    align-items: center;
    gap: 1.2em;
}

/* NAV */
.tac-nav ul {
    list-style: none;
    display: flex;
    gap: 0.2em;
    margin: 0;
    padding: 0;
}

.tac-nav a {
    font-family: var(--tac-font-heading);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--tac-text);
    padding: 0.4em 0.8em;
    border-radius: var(--tac-radius);
    transition: background 0.2s, color 0.2s;
    display: block;
}

.tac-nav a:hover,
.tac-nav .current-menu-item a {
    color: var(--tac-accent);
    background: rgba(217, 93, 57, 0.06);
}

.tac-search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--tac-text-secondary);
    padding: 0.3em;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.tac-search-toggle:hover {
    color: var(--tac-accent);
}

.tac-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4em;
    color: var(--tac-text);
}

.tac-mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    margin: 5px 0;
    transition: transform 0.3s, opacity 0.3s;
}

/* ===== BREADCRUMBS ===== */
.tac-breadcrumbs {
    font-family: var(--tac-font-heading);
    font-size: 0.8rem;
    color: var(--tac-text-secondary);
    padding: 1em 0;
    margin-bottom: 1em;
}

.tac-breadcrumbs a {
    color: var(--tac-text-secondary);
}

.tac-breadcrumbs a:hover {
    color: var(--tac-accent);
}

.tac-breadcrumbs .tac-bc-sep {
    margin: 0 0.4em;
    opacity: 0.5;
}

/* ===== CARDS ===== */
.tac-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5em;
    margin-bottom: 2em;
}

.tac-cards-grid .card:first-child {
    grid-column: 1 / -1;
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--tac-card-bg);
    border-radius: var(--tac-radius);
    overflow: hidden;
    box-shadow: var(--tac-card-shadow);
    border: 1px solid var(--tac-border);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.07);
}

.tac-cards-grid .card:first-child {
    flex-direction: row;
}

.card-thumb-wrap {
    overflow: hidden;
    position: relative;
}

.tac-cards-grid .card:first-child .card-thumb-wrap {
    flex: 0 0 280px;
    position: relative;
}

.tac-cards-grid .card:first-child .card-thumb-wrap a {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.tac-cards-grid .card:first-child .card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card:not(.tac-cards-grid .card:first-child) .card-thumb-wrap img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.card-body {
    flex: 1;
    padding: 1.2em;
    display: flex;
    flex-direction: column;
}

.card-category {
    font-family: var(--tac-font-heading);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--tac-accent);
    margin-bottom: 0.4em;
}

.card-title {
    font-family: var(--tac-font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5em;
    line-height: 1.3;
}

.card-title a {
    color: var(--tac-text);
}

.card-title a:hover {
    color: var(--tac-accent);
}

.card-excerpt {
    font-size: 0.92rem;
    color: var(--tac-text-secondary);
    line-height: 1.6;
    flex: 1;
}

.card-excerpt p {
    margin: 0 0 0.5em;
    background: none;
}

.card-meta {
    font-family: var(--tac-font-heading);
    font-size: 0.75rem;
    color: var(--tac-text-secondary);
    margin-top: 0.8em;
    display: flex;
    align-items: center;
    gap: 1em;
}

.card-readmore {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    font-family: var(--tac-font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--tac-accent);
    border: 1px solid var(--tac-accent);
    border-radius: var(--tac-radius);
    padding: 0.45em 1em;
    margin-top: 0.8em;
    transition: background 0.2s, color 0.2s;
    align-self: flex-start;
}

.card-readmore:hover {
    background: var(--tac-accent);
    color: #fff;
}

.card-readmore::after {
    content: '→';
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.2s, transform 0.2s;
}

.card-readmore:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* ===== FRONT PAGE SECTIONS ===== */
.tac-section {
    padding: 3em 0;
}

.tac-section--alt {
    background: var(--tac-card-bg);
    border-top: 1px solid var(--tac-border);
    border-bottom: 1px solid var(--tac-border);
}

.tac-section-title {
    font-size: 1.5rem;
    margin-bottom: 0.3em;
}

.tac-section-subtitle {
    color: var(--tac-text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.8em;
}

.tac-feature-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5em;
}

.tac-feature-item {
    background: var(--tac-card-bg);
    border: 1px solid var(--tac-border);
    border-radius: var(--tac-radius);
    padding: 1.5em;
    transition: transform 0.25s, box-shadow 0.25s;
}

.tac-feature-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--tac-card-shadow);
}

.tac-feature-icon {
    font-size: 1.8rem;
    margin-bottom: 0.5em;
    display: block;
}

.tac-feature-item h3 {
    font-size: 1.05rem;
    margin-bottom: 0.4em;
}

.tac-feature-item p {
    font-size: 0.9rem;
    color: var(--tac-text-secondary);
    margin: 0;
}

.tac-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2em;
    counter-reset: step-counter;
}

.tac-step {
    counter-increment: step-counter;
    position: relative;
    padding: 1.3em;
    background: var(--tac-card-bg);
    border: 1px solid var(--tac-border);
    border-radius: var(--tac-radius);
}

.tac-step::before {
    content: counter(step-counter, decimal-leading-zero);
    font-family: var(--tac-font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--tac-accent);
    opacity: 0.25;
    display: block;
    margin-bottom: 0.3em;
}

.tac-step h4 {
    font-size: 0.95rem;
    margin-bottom: 0.3em;
}

.tac-step p {
    font-size: 0.85rem;
    color: var(--tac-text-secondary);
    margin: 0;
}

.tac-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8em;
}

.tac-checklist li {
    font-size: 0.92rem;
    padding-left: 1.6em;
    position: relative;
}

.tac-checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--tac-accent);
    font-weight: 700;
}

/* ===== PAGINATION ===== */
.tac-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4em;
    padding: 2em 0;
}

.tac-pagination a,
.tac-pagination span {
    font-family: var(--tac-font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    border-radius: var(--tac-radius-round);
    border: 1px solid var(--tac-border);
    color: var(--tac-text);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    padding: 0 0.5em;
}

.tac-pagination a:hover {
    border-color: var(--tac-accent);
    color: var(--tac-accent);
}

.tac-pagination .current {
    background: var(--tac-text);
    color: #fff;
    border-color: var(--tac-text);
}

/* ===== SINGLE & PAGE ===== */
.tac-entry-header {
    margin-bottom: 1.5em;
}

.tac-entry-header h1 {
    margin-bottom: 0.3em;
}

.tac-entry-meta {
    font-family: var(--tac-font-heading);
    font-size: 0.82rem;
    color: var(--tac-text-secondary);
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
}

.tac-entry-content {
    margin-bottom: 2em;
}

.tac-entry-content h2 { margin-top: 1.6em; }
.tac-entry-content h3 { margin-top: 1.3em; }

.tac-entry-tags {
    margin: 1.5em 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
}

.tac-entry-tags a {
    font-family: var(--tac-font-heading);
    font-size: 0.78rem;
    color: var(--tac-text-secondary);
    padding: 0.3em 0.7em;
    border: 1px solid var(--tac-border);
    border-radius: var(--tac-radius-round);
    transition: border-color 0.2s, color 0.2s;
}

.tac-entry-tags a:hover {
    border-color: var(--tac-accent);
    color: var(--tac-accent);
}

/* ===== COMMENTS ===== */
.tac-comments {
    margin-top: 2em;
    padding-top: 2em;
    border-top: 1px solid var(--tac-border);
}

.tac-comments h2 {
    font-size: 1.3rem;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 1em 0;
}

.comment-list .comment {
    padding: 1em 0;
    border-bottom: 1px solid var(--tac-border);
}

.comment-list .children {
    list-style: none;
    padding-left: 2em;
}

.comment-author {
    font-family: var(--tac-font-heading);
    font-weight: 600;
    font-size: 0.92rem;
}

.comment-meta {
    font-size: 0.78rem;
    color: var(--tac-text-secondary);
    margin-bottom: 0.5em;
}

.comment-body p {
    font-size: 0.95rem;
}

.comment-respond {
    margin-top: 1.5em;
}

.comment-respond label {
    font-family: var(--tac-font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.3em;
}

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
    width: 100%;
    font-family: var(--tac-font-body);
    font-size: 0.95rem;
    padding: 0.6em 0.8em;
    border: 1px solid var(--tac-border);
    border-radius: var(--tac-radius);
    background: var(--tac-bg);
    margin-bottom: 1em;
    transition: border-color 0.2s;
}

.comment-respond input:focus,
.comment-respond textarea:focus {
    outline: none;
    border-color: var(--tac-accent);
}

.comment-respond .submit {
    font-family: var(--tac-font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    background: transparent;
    color: var(--tac-accent);
    border: 1px solid var(--tac-accent);
    border-radius: var(--tac-radius);
    padding: 0.6em 1.5em;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.comment-respond .submit:hover {
    background: var(--tac-accent);
    color: #fff;
}

/* ===== SIDEBAR ===== */
.tac-sidebar .widget {
    margin-bottom: 1.8em;
    padding: 1.2em;
    background: var(--tac-card-bg);
    border: 1px solid var(--tac-border);
    border-radius: var(--tac-radius);
}

.tac-sidebar .widget-title {
    font-family: var(--tac-font-heading);
    font-size: 0.92rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.8em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid var(--tac-accent);
}

.tac-sidebar .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tac-sidebar .widget ul li {
    padding: 0.4em 0;
    border-bottom: 1px solid var(--tac-border);
    font-size: 0.9rem;
}

.tac-sidebar .widget ul li:last-child {
    border-bottom: none;
}

.tac-sidebar .widget ul li a {
    color: var(--tac-text);
}

.tac-sidebar .widget ul li a:hover {
    color: var(--tac-accent);
}

/* ===== FOOTER ===== */
.tac-footer {
    background: var(--tac-text);
    color: #c5cdd2;
    padding: 2.5em 0 0;
    margin-top: 3em;
}

.tac-footer a {
    color: #dce3e7;
    transition: color 0.2s;
}

.tac-footer a:hover {
    color: var(--tac-accent);
}

.tac-footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2em;
    padding-bottom: 2em;
}

.tac-footer .widget-title {
    font-family: var(--tac-font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.8em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.tac-footer .widget {
    font-size: 0.88rem;
    line-height: 1.65;
}

.tac-footer .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tac-footer .widget ul li {
    padding: 0.3em 0;
}

.tac-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.2em 0;
    text-align: center;
    font-family: var(--tac-font-heading);
    font-size: 0.78rem;
    color: #8a969e;
}

/* ===== SEARCH FORM ===== */
.tac-searchform {
    display: flex;
    gap: 0;
}

.tac-searchform input[type="search"] {
    flex: 1;
    font-family: var(--tac-font-body);
    font-size: 0.95rem;
    padding: 0.55em 0.8em;
    border: 1px solid var(--tac-border);
    border-radius: var(--tac-radius) 0 0 var(--tac-radius);
    background: var(--tac-bg);
    outline: none;
}

.tac-searchform input[type="search"]:focus {
    border-color: var(--tac-accent);
}

.tac-searchform button {
    font-family: var(--tac-font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.55em 1em;
    border: 1px solid var(--tac-accent);
    border-left: none;
    border-radius: 0 var(--tac-radius) var(--tac-radius) 0;
    background: var(--tac-accent);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
}

.tac-searchform button:hover {
    background: #b84425;
}

/* ===== COOKIE BANNER ===== */
.tac-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--tac-text);
    color: #c5cdd2;
    padding: 1em 1.5em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5em;
    font-size: 0.88rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}

.tac-cookie-banner.is-hidden {
    display: none;
}

.tac-cookie-accept {
    font-family: var(--tac-font-heading);
    font-weight: 600;
    font-size: 0.82rem;
    background: var(--tac-accent);
    color: #fff;
    border: none;
    border-radius: var(--tac-radius);
    padding: 0.5em 1.3em;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.tac-cookie-accept:hover {
    background: #b84425;
}

/* ===== 404 ===== */
.tac-404 {
    text-align: center;
    padding: 4em 0;
}

.tac-404 h1 {
    font-size: 5rem;
    color: var(--tac-accent);
    opacity: 0.3;
    margin-bottom: 0;
}

.tac-404 h2 {
    margin-bottom: 0.6em;
}

.tac-404 p {
    color: var(--tac-text-secondary);
    margin-bottom: 1.5em;
}

.tac-btn-home {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    font-family: var(--tac-font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--tac-accent);
    border: 1px solid var(--tac-accent);
    border-radius: var(--tac-radius);
    padding: 0.55em 1.3em;
    transition: background 0.2s, color 0.2s;
}

.tac-btn-home:hover {
    background: var(--tac-accent);
    color: #fff;
}

/* ===== READING MODE ===== */
body.tac-reading-mode .tac-sidebar,
body.tac-reading-mode .tac-header-right .tac-nav {
    display: none;
}

body.tac-reading-mode .tac-entry-content {
    font-size: 20px;
    max-width: 720px;
    margin: 0 auto 2em;
}

body.tac-reading-mode .tac-has-sidebar .tac-main {
    flex: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
    .tac-wrap {
        width: 92%;
    }

    .tac-feature-cols {
        grid-template-columns: repeat(2, 1fr);
    }

    .tac-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .tac-row {
        flex-direction: column;
    }

    .tac-has-sidebar .tac-main {
        flex: 1;
    }

    .tac-sidebar {
        flex: none;
        width: 100%;
    }

    .tac-footer-cols {
        grid-template-columns: 1fr;
    }

    .tac-cards-grid .card:first-child {
        flex-direction: column;
    }

    .tac-cards-grid .card:first-child .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
    }

    .tac-cards-grid .card:first-child .card-thumb-wrap a {
        position: static;
    }

    .tac-cards-grid .card:first-child .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 16px;
    }

    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.3rem; }

    .tac-nav {
        display: none;
    }

    .tac-mobile-toggle {
        display: block;
    }

    .tac-nav.is-open {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--tac-card-bg);
        border-bottom: 1px solid var(--tac-border);
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
        padding: 0.5em 0;
        z-index: 200;
    }

    .tac-nav.is-open ul {
        flex-direction: column;
    }

    .tac-nav.is-open a {
        padding: 0.7em 1.2em;
    }

    .tac-cards-grid {
        grid-template-columns: 1fr;
    }

    .tac-feature-cols {
        grid-template-columns: 1fr;
    }

    .tac-steps {
        grid-template-columns: 1fr;
    }

    .tac-checklist {
        grid-template-columns: 1fr;
    }

    .tac-site-desc {
        display: none;
    }

    .tac-cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 0.8em;
    }
}

/* ===== PRINT ===== */
@media print {
    .tac-header, .tac-footer, .tac-sidebar, .tac-cookie-banner, .tac-pagination {
        display: none;
    }
}
