/*
Theme Name: Telemac
Theme URI: https://github.com/telemac/telemac
Author: Telemac
Author URI: https://telemac.dev
Description: Ultra-lightweight, SEO-optimized, Google Discover-friendly WordPress theme. PageSpeed 100%, mobile-first, zero framework.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: telemac
Requires at least: 5.0
Requires PHP: 7.4
*/

/* ============================================================
   BASE (mobile-first)
   ============================================================ */
/* Note: Critical CSS (reset, header, hero) is inline in header.php
   This file handles below-the-fold styles */

/* ============================================================
   COMMON COMPONENTS
   ============================================================ */

/* Section spacing — Fix 8: 4pt grid (48px mobile) */
.tc-section { padding: 48px 0; }
.tc-section-alt { background: var(--tc-bg-alt); }
.tc-text-center { text-align: center; }
.tc-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Line accent */
.tc-line { width: 60px; height: 4px; background: var(--tc-accent); border-radius: 3px; margin: 0 auto 16px; }
.tc-line-left { margin-left: 0; }

/* Subtitle — Fix 1: type scale token */
.tc-subtitle { color: var(--tc-text-light); font-size: var(--text-md); margin-bottom: 32px; line-height: 1.6; }

/* Badge — Fix 5: de-pill (4px radius) */
.tc-badge { display: inline-block; background: var(--tc-accent); color: oklch(99% 0 0); padding: 3px 12px; border-radius: 4px; font-size: var(--text-xs); font-weight: 700; }

/* Button — Fix 4: no translateY, Fix 5: de-pill (8px), Fix 9: specific transitions */
.tc-btn { display: inline-block; background: var(--tc-accent); color: oklch(99% 0 0); padding: 12px 32px; border-radius: 8px; font-weight: 700; font-size: var(--text-base); text-decoration: none; transition: background .2s var(--tc-ease), color .2s var(--tc-ease); border: none; cursor: pointer; }
.tc-btn:hover { background: var(--tc-dark); color: var(--tc-accent); }
.tc-btn-alt { background: var(--tc-dark); color: var(--tc-accent); }
.tc-btn-alt:hover { background: oklch(99% 0 0); color: var(--tc-dark); }

/* Grid */
.tc-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }

/* ============================================================
   ABOUT HOME (Persona section)
   ============================================================ */
/* Fix 8: 4pt grid (32px gap) */
.tc-about-split { display: flex; flex-direction: column; align-items: center; gap: 32px; text-align: center; }
.tc-persona-avatar-large { width: 120px; height: 120px; background: var(--tc-accent-light); border: 3px solid var(--tc-accent-border); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tc-persona-avatar-large span { font-size: var(--text-2xl); font-weight: 800; color: var(--tc-accent); }
/* Fix 6: label uses dark instead of accent */
.tc-about-label { color: var(--tc-dark); font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px; }
.tc-about-text h2 { font-size: var(--text-xl); margin-bottom: 16px; }
.tc-about-text p { color: var(--tc-text-light); font-size: var(--text-base); line-height: 1.8; margin-bottom: 12px; }

/* ============================================================
   MAGAZINE GRID (Featured posts — 2-1-2 layout)
   ============================================================ */
.tc-mag-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.tc-mag-card { position: relative; overflow: hidden; border-radius: var(--tc-radius); display: block; text-decoration: none; }
/* Fix 9: specific transition property */
.tc-mag-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--tc-ease); }
.tc-mag-card:hover img { transform: scale(1.03); }
.tc-mag-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 16px; background: linear-gradient(transparent 0%, oklch(0% 0 0 / 0.75) 100%); color: oklch(99% 0 0); }
.tc-mag-overlay .tc-badge { font-size: var(--text-xs); padding: 2px 10px; }
.tc-mag-overlay h3 { font-size: var(--text-sm); color: oklch(99% 0 0); line-height: 1.3; margin-top: 8px; }
.tc-mag-overlay p { font-size: var(--text-xs); opacity: .85; margin-top: 8px; line-height: 1.5; display: none; }
/* Fix 6: mag-author uses light text instead of accent */
.tc-mag-author { font-size: var(--text-xs); color: oklch(85% 0.01 60); font-style: italic; display: block; margin-top: 8px; }
.tc-mag-main { min-height: 280px; }
.tc-mag-small { min-height: 180px; }

/* ============================================================
   EDITORIAL FOOTER (Quote + Author)
   ============================================================ */
.tc-editorial { background: var(--tc-bg-alt); }
/* Fix 8: 32px gap */
.tc-editorial-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
/* Fix 6: label uses dark instead of accent */
.tc-editorial-label { color: var(--tc-dark); font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px; }
.tc-editorial-quote blockquote { border: none; background: none; padding: 0; margin: 0 0 20px; font-style: italic; }
.tc-editorial-quote blockquote p { font-size: var(--text-xl); font-weight: 700; color: var(--tc-dark); line-height: 1.4; font-style: italic; }
.tc-editorial-desc { color: var(--tc-text-light); font-size: var(--text-sm); line-height: 1.7; margin: 20px 0; }
.tc-author-card { background: var(--tc-bg); border-radius: var(--tc-radius); padding: 32px; text-align: center; box-shadow: var(--tc-shadow); }
.tc-persona-avatar { width: 72px; height: 72px; background: var(--tc-accent-light); border: 2px solid var(--tc-accent-border); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.tc-persona-avatar span { font-size: var(--text-lg); font-weight: 800; color: var(--tc-accent); }
.tc-author-card h3 { font-size: var(--text-md); color: var(--tc-dark); margin-bottom: 4px; }
/* Fix 6: author role uses text-light instead of accent */
.tc-author-role { color: var(--tc-text-light); font-size: var(--text-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.tc-author-bio { color: var(--tc-text-light); font-size: var(--text-sm); line-height: 1.7; margin-bottom: 16px; }
.tc-author-tags { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   MISSION CARDS (legacy, kept for customizer override)
   ============================================================ */
/* Fix 4: no translateY hover, Fix 8: 4pt grid (24px padding), Fix 9: specific transitions */
.tc-mission-card { background: var(--tc-bg); border-radius: var(--tc-radius); padding: 24px; border: 1px solid var(--tc-border); position: relative; overflow: hidden; transition: box-shadow .2s var(--tc-ease); text-align: left; }
.tc-mission-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--tc-accent); }
.tc-mission-card:hover { box-shadow: 0 8px 24px oklch(0% 0 0 / 0.08); }
.tc-num { width: 40px; height: 40px; background: var(--tc-dark); color: var(--tc-accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: var(--text-sm); margin-bottom: 16px; }
.tc-mission-card h3 { font-size: var(--text-lg); color: var(--tc-dark); margin-bottom: 8px; }
.tc-mission-card p { color: var(--tc-text-light); font-size: var(--text-base); line-height: 1.7; }

/* ============================================================
   CATEGORY CARDS
   ============================================================ */
/* Fix 4: no translateY hover, Fix 9: specific transitions */
.tc-cat-card { background: var(--tc-bg); border-radius: var(--tc-radius); overflow: hidden; box-shadow: var(--tc-shadow); transition: box-shadow .2s var(--tc-ease); text-decoration: none; display: block; }
.tc-cat-card:hover { box-shadow: 0 8px 24px oklch(0% 0 0 / 0.1); }
.tc-cat-card img { width: 100%; height: 180px; object-fit: cover; }
.tc-cat-icon { font-size: 48px; padding: 32px 0; text-align: center; background: var(--tc-bg-alt); }
.tc-cat-body { padding: 20px; text-align: left; }
.tc-cat-body h3 { font-size: var(--text-md); color: var(--tc-dark); margin: 8px 0 8px; }
.tc-cat-body p { color: var(--tc-text-light); font-size: var(--text-sm); line-height: 1.6; margin: 0 0 12px; }
.tc-cat-link { color: var(--tc-dark); font-weight: 700; font-size: var(--text-sm); }

/* ============================================================
   ARTICLE CARDS (homepage, archive, related)
   ============================================================ */
/* Fix 4: no translateY hover, Fix 9: specific transition */
.tc-article-card { background: var(--tc-bg); border-radius: var(--tc-radius); overflow: hidden; box-shadow: var(--tc-shadow); transition: box-shadow .2s var(--tc-ease); }
.tc-article-card:hover { box-shadow: 0 8px 24px oklch(0% 0 0 / 0.1); }
.tc-article-card img { width: 100%; height: 180px; object-fit: cover; }
.tc-article-body { padding: 16px; }
.tc-article-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.tc-article-body h2, .tc-article-body h3 { font-size: var(--text-base); line-height: 1.4; margin: 8px 0 8px; }
.tc-article-body h2 a, .tc-article-body h3 a { color: var(--tc-dark); text-decoration: none; }
.tc-article-body h2 a:hover, .tc-article-body h3 a:hover { color: var(--tc-accent); }
.tc-excerpt { color: var(--tc-text-light); font-size: var(--text-sm); line-height: 1.6; margin: 0 0 12px; }
.tc-date { color: var(--tc-text-light); font-size: var(--text-xs); }
.tc-article-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.tc-read-more { color: var(--tc-accent); font-weight: 600; font-size: var(--text-sm); }

/* ============================================================
   WHY SECTION
   ============================================================ */
/* Fix 8: 4pt grid, Fix 6: why-card h3 uses white not accent, Fix 9: specific transitions */
.tc-why { background: var(--tc-dark); color: oklch(99% 0 0); padding: 48px 0; }
.tc-why h2 { color: oklch(99% 0 0); }
.tc-why .tc-subtitle { color: oklch(99% 0 0 / 0.7); }
.tc-why-card { background: oklch(99% 0 0 / 0.06); border: 1px solid oklch(99% 0 0 / 0.1); border-radius: var(--tc-radius); padding: 24px; text-align: center; transition: background .2s var(--tc-ease), border-color .2s var(--tc-ease); }
.tc-why-card:hover { background: oklch(99% 0 0 / 0.1); border-color: var(--tc-accent-border); }
.tc-why-icon { font-size: 40px; margin-bottom: 16px; }
.tc-why-card h3 { color: oklch(99% 0 0); font-size: var(--text-md); margin-bottom: 8px; }
.tc-why-card p { color: oklch(99% 0 0 / 0.7); font-size: var(--text-sm); line-height: 1.7; }

/* ============================================================
   CTA SECTION
   ============================================================ */
/* Fix 8: 4pt grid */
.tc-cta { background: linear-gradient(135deg, var(--tc-accent), color-mix(in srgb, var(--tc-accent) 80%, #000)); padding: 48px 20px; text-align: center; }
.tc-cta h2 { color: oklch(99% 0 0); font-size: var(--text-2xl); margin-bottom: 12px; }
.tc-cta p { color: oklch(99% 0 0 / 0.85); font-size: var(--text-md); margin-bottom: 24px; }

/* ============================================================
   ARCHIVE HEADER
   ============================================================ */
/* Fix 10: fluid clamp for archive title */
.tc-archive-header { background: linear-gradient(135deg, var(--tc-dark), color-mix(in srgb, var(--tc-dark) 70%, oklch(35% 0.01 60))); padding: 40px 20px; text-align: center; color: oklch(99% 0 0); position: relative; }
.tc-archive-header::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 4px; background: var(--tc-accent); }
.tc-archive-header h1 { color: oklch(99% 0 0); font-size: var(--text-2xl); margin-bottom: 8px; }
.tc-archive-header p { color: oklch(99% 0 0 / 0.8); font-size: var(--text-base); max-width: 600px; margin: 0 auto; }

/* ============================================================
   SINGLE POST
   ============================================================ */
/* Fix 8: 4pt grid, Fix 10: fluid clamp for single title */
.tc-featured-wrap { max-width: 100%; overflow: hidden; }
.tc-featured-img { width: 100%; max-height: 400px; object-fit: cover; }
.tc-single-inner { padding-top: 24px; padding-bottom: 40px; }
.tc-single-cats { margin-bottom: 12px; display: flex; gap: 8px; }
.tc-single-title { font-size: var(--text-3xl); font-weight: 800; line-height: 1.2; margin-bottom: 12px; }
.tc-single-meta { color: var(--tc-text-light); font-size: var(--text-sm); margin-bottom: 24px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.tc-single-meta a { color: var(--tc-accent); }
.tc-reading-time { background: var(--tc-bg-alt); padding: 2px 10px; border-radius: 8px; font-size: var(--text-xs); }

/* Single content — Fix 2: max-width 65ch */
.tc-single-content { font-size: var(--text-md); line-height: 1.85; color: var(--tc-text); max-width: 65ch; }
.tc-single-content p { margin-bottom: 1.4em; }
.tc-single-content h2 { font-size: var(--text-xl); font-weight: 700; color: var(--tc-dark); margin-top: 2em; margin-bottom: .7em; padding-left: 16px; border-left: 4px solid var(--tc-accent); }
.tc-single-content h3 { font-size: var(--text-lg); font-weight: 600; margin-top: 1.6em; margin-bottom: .5em; }
.tc-single-content a { color: var(--tc-accent); text-decoration: underline; text-decoration-color: var(--tc-accent-light); text-underline-offset: 3px; }
.tc-single-content a:hover { color: var(--tc-dark); }
.tc-single-content blockquote { border-left: 4px solid var(--tc-accent); background: var(--tc-bg-alt); padding: 16px 24px; margin: 1.5em 0; border-radius: 0 var(--tc-radius) var(--tc-radius) 0; font-style: italic; color: var(--tc-text-light); }
.tc-single-content img { border-radius: 8px; margin: 1.5em 0; }
.tc-single-content ul, .tc-single-content ol { padding-left: 1.5em; margin-bottom: 1.4em; }
.tc-single-content li { margin-bottom: .5em; }
.tc-single-content strong { color: var(--tc-dark); }

/* Tags — Fix 3: OKLCH borders, Fix 5: de-pill, Fix 9: specific transitions */
.tc-single-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--tc-border); }
.tc-tag { background: var(--tc-bg-alt); color: var(--tc-dark); padding: 4px 12px; border-radius: 6px; font-size: var(--text-xs); border: 1px solid var(--tc-border); transition: background .2s var(--tc-ease), color .2s var(--tc-ease), border-color .2s var(--tc-ease); }
.tc-tag:hover { background: var(--tc-accent); color: oklch(99% 0 0); border-color: var(--tc-accent); }

/* Author Box (E-A-T) */
.tc-author-box { display: flex; gap: 20px; align-items: flex-start; margin-top: 32px; padding: 24px; background: var(--tc-bg-alt); border-radius: var(--tc-radius); border-left: 4px solid var(--tc-accent); }
.tc-author-box-avatar img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.tc-persona-avatar-box { width: 80px; height: 80px; background: var(--tc-accent-light); border: 2px solid var(--tc-accent-border); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tc-persona-avatar-box span { font-size: var(--text-xl); font-weight: 800; color: var(--tc-accent); }
.tc-author-box-label { font-size: var(--text-xs); color: var(--tc-text-light); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; margin-bottom: 4px; }
.tc-author-box-name { font-size: var(--text-lg); font-weight: 700; color: var(--tc-dark); margin-bottom: 2px; }
.tc-author-box-role { font-size: var(--text-xs); color: var(--tc-text-light); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; margin-bottom: 8px; }
.tc-author-box-bio { font-size: var(--text-sm); color: var(--tc-text); line-height: 1.7; margin: 0; }

/* Post navigation — Fix 8: 4pt grid, Fix 9: specific transition */
.tc-post-nav { padding: 32px 0; }
.tc-post-nav-inner { display: grid; grid-template-columns: 1fr; gap: 16px; }
.tc-post-nav-link { display: block; padding: 16px; background: var(--tc-bg-alt); border-radius: var(--tc-radius); text-decoration: none; transition: background .2s var(--tc-ease); }
.tc-post-nav-link:hover { background: var(--tc-accent-light); }
.tc-post-nav-label { font-size: var(--text-xs); color: var(--tc-text-light); display: block; margin-bottom: 4px; }
.tc-post-nav-title { font-size: var(--text-sm); font-weight: 600; color: var(--tc-dark); }

/* Related articles */
.tc-related { padding: 40px 0; background: var(--tc-bg-alt); }
.tc-related-title { font-size: var(--text-xl); margin-bottom: 20px; }

/* ============================================================
   PAGES
   ============================================================ */
.tc-page-inner { max-width: 800px; padding: 32px 20px; }
.tc-page-title { font-size: var(--text-2xl); margin-bottom: 20px; }
.tc-page-content { font-size: var(--text-md); line-height: 1.85; }
.tc-page-content p { margin-bottom: 1.4em; }

/* Page hero (about, contact) — Fix 3: OKLCH */
.tc-page-hero { background: linear-gradient(135deg, var(--tc-dark), color-mix(in srgb, var(--tc-dark) 70%, oklch(35% 0.01 60))); padding: 48px 20px; text-align: center; color: oklch(99% 0 0); position: relative; }
.tc-page-hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 4px; background: var(--tc-accent); }
.tc-page-hero h1 { color: oklch(99% 0 0); font-size: var(--text-2xl); margin-bottom: 12px; }
.tc-page-hero p { font-size: var(--text-md); max-width: 600px; margin: 0 auto; opacity: .9; }

/* About page — Fix 3: OKLCH colors */
.tc-about-content { max-width: 900px; padding: 40px 20px; }
.tc-about-section { margin-bottom: 40px; }
.tc-about-section h2 { font-size: var(--text-xl); margin-bottom: 8px; }
.tc-about-section p { font-size: var(--text-md); line-height: 1.85; color: var(--tc-text-light); }
.tc-about-list { list-style: none; padding: 0; }
.tc-about-list li { padding: 12px 16px 12px 48px; margin-bottom: 8px; background: var(--tc-bg-alt); border-radius: var(--tc-radius); position: relative; font-size: var(--text-base); line-height: 1.7; }
.tc-about-list li::before { content: '→'; position: absolute; left: 20px; top: 12px; color: var(--tc-accent); font-weight: 700; }
.tc-about-values { background: var(--tc-dark); border-radius: var(--tc-radius); padding: 40px; color: oklch(99% 0 0); margin: 40px 0; }
.tc-about-values h2 { color: oklch(99% 0 0); font-size: var(--text-xl); margin-bottom: 8px; }
.tc-about-values p { color: oklch(99% 0 0 / 0.85); font-size: var(--text-md); line-height: 1.85; }

/* Contact page — Fix 4: no translateY, Fix 8: 4pt grid, Fix 9: specific transitions */
.tc-contact-wrapper { display: grid; grid-template-columns: 1fr; gap: 32px; padding: 40px 20px; }
.tc-contact-info { display: flex; flex-direction: column; gap: 16px; }
.tc-contact-card { background: var(--tc-bg); border-radius: var(--tc-radius); padding: 24px; box-shadow: var(--tc-shadow); display: flex; gap: 16px; align-items: flex-start; transition: box-shadow .2s var(--tc-ease); }
.tc-contact-card:hover { box-shadow: 0 8px 24px oklch(0% 0 0 / 0.1); }
.tc-contact-icon { font-size: var(--text-xl); flex-shrink: 0; width: 48px; height: 48px; background: var(--tc-bg-alt); border-radius: var(--tc-radius); display: flex; align-items: center; justify-content: center; }
.tc-contact-card h3 { font-size: var(--text-base); margin-bottom: 4px; }
.tc-contact-card p { font-size: var(--text-sm); color: var(--tc-text-light); line-height: 1.6; }
.tc-contact-card a { color: var(--tc-accent); font-weight: 600; }
.tc-contact-form { background: var(--tc-bg); border-radius: var(--tc-radius); padding: 32px; box-shadow: var(--tc-shadow); }
.tc-contact-form h2 { font-size: var(--text-xl); margin-bottom: 20px; }

/* Forms — Fix 3: OKLCH borders/bg, Fix 8: 4pt grid, Fix 9: specific transition */
.tc-form { display: flex; flex-direction: column; gap: 16px; }
.tc-form-row { display: grid; grid-template-columns: 1fr; gap: 16px; }
.tc-form-group { display: flex; flex-direction: column; gap: 4px; }
.tc-form-group label { font-size: var(--text-sm); font-weight: 600; color: var(--tc-dark); }
.tc-form-group input, .tc-form-group textarea, .tc-form-group select { padding: 12px 16px; border: 2px solid var(--tc-border-light); border-radius: 8px; font-size: var(--text-base); font-family: inherit; transition: border-color .2s var(--tc-ease); outline: none; background: var(--tc-bg-alt); }
.tc-form-group input:focus, .tc-form-group textarea:focus { border-color: var(--tc-accent); background: var(--tc-bg); }
.tc-form-group textarea { resize: vertical; min-height: 120px; }

/* ============================================================
   PAGINATION
   ============================================================ */
.tc-pagination { text-align: center; padding: 30px 0; }
.tc-pagination ul { list-style: none; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; padding: 0; }
.tc-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; background: var(--tc-bg-alt); color: var(--tc-dark); border-radius: 8px; font-size: var(--text-sm); font-weight: 600; transition: background .2s var(--tc-ease), color .2s var(--tc-ease); text-decoration: none; }
.tc-pagination .page-numbers.current, .tc-pagination .page-numbers:hover { background: var(--tc-accent); color: oklch(99% 0 0); }

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.tc-breadcrumbs { padding: 12px 20px; font-size: var(--text-xs); color: var(--tc-text-light); max-width: 1200px; margin: 0 auto; }
.tc-breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 0; }
.tc-breadcrumbs li::after { content: ' ›'; margin: 0 4px; color: var(--tc-border); }
.tc-breadcrumbs li:last-child::after { content: ''; }
.tc-breadcrumbs a { color: var(--tc-accent); text-decoration: none; }

/* ============================================================
   404
   ============================================================ */
.tc-404 { padding: 80px 20px; }
.tc-404-icon { font-size: 64px; margin-bottom: 20px; }
.tc-404 h1 { font-size: var(--text-3xl); margin-bottom: 12px; }
.tc-404 p { color: var(--tc-text-light); font-size: var(--text-md); margin-bottom: 24px; }

/* ============================================================
   FOOTER
   ============================================================ */
/* Fix 6: footer nav links use light text not accent, Fix 8: 4pt grid */
.tc-footer { background: var(--tc-dark); padding: 32px 20px; text-align: center; color: oklch(99% 0 0 / 0.5); }
.tc-footer-nav ul { list-style: none; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; padding: 0; margin: 0 0 12px; }
.tc-footer-nav a { color: oklch(99% 0 0 / 0.7); font-weight: 600; font-size: var(--text-sm); text-decoration: none; transition: color .2s var(--tc-ease); }
.tc-footer-nav a:hover { color: oklch(99% 0 0); }
.tc-copyright { font-size: var(--text-xs); }

/* ============================================================
   ADS
   ============================================================ */
.tc-ad { text-align: center; overflow: hidden; }
.tc-ad:empty { display: none; }

/* ============================================================
   SEARCH FORM
   ============================================================ */
.search-form { display: flex; gap: 8px; }
.search-form .search-field { flex: 1; padding: 10px 16px; border: 2px solid var(--tc-border-light); border-radius: 8px; font-size: var(--text-sm); outline: none; transition: border-color .2s var(--tc-ease); }
.search-form .search-field:focus { border-color: var(--tc-accent); }
.search-form .search-submit { background: var(--tc-accent); color: oklch(99% 0 0); border: none; padding: 10px 16px; border-radius: 8px; cursor: pointer; font-weight: 600; }

/* ============================================================
   TABLET (768px+)
   ============================================================ */
/* Fix 10: fluid clamp() handles sizing — media queries only for layout, not font sizes */
@media (min-width: 768px) {
  .tc-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .tc-section { padding: 56px 0; }
  .tc-archive-header { padding: 48px 40px; }
  .tc-featured-img { max-height: 448px; }
  .tc-contact-wrapper { grid-template-columns: 1fr 1fr; }
  .tc-form-row { grid-template-columns: 1fr 1fr; }
  .tc-post-nav-inner { grid-template-columns: 1fr 1fr; }
  .tc-article-card img { height: 200px; }
  .tc-cat-card img { height: 200px; }

  /* About home */
  .tc-about-split { flex-direction: row; text-align: left; align-items: flex-start; gap: 40px; }

  /* Magazine grid: 2 cols on tablet */
  .tc-mag-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: minmax(200px, auto); }
  .tc-mag-main { grid-column: 1 / -1; min-height: 352px; }
  .tc-mag-overlay p { display: block; }

  /* Editorial */
  .tc-editorial-grid { grid-template-columns: 1fr 1fr; align-items: center; }
}

/* ============================================================
   DESKTOP (1024px+)
   ============================================================ */
@media (min-width: 1024px) {
  .tc-grid { grid-template-columns: repeat(3, 1fr); }
  .tc-section { padding: 64px 0; }
  .tc-page-hero { padding: 64px 40px; }
  .tc-mission-card { padding: 32px; }
  .tc-why-card { padding: 32px; }
  .tc-cat-card img { height: 208px; }

  /* Magazine grid: 3-column — 2 left, 1 center (tall), 2 right */
  .tc-mag-grid {
    grid-template-columns: 1fr 1.4fr 1fr;
    grid-template-rows: 1fr 1fr;
    grid-auto-rows: unset;
  }
  .tc-mag-left-0 { grid-column: 1; grid-row: 1; }
  .tc-mag-left-1 { grid-column: 1; grid-row: 2; }
  .tc-mag-main { grid-column: 2; grid-row: 1 / 3; min-height: 448px; }
  .tc-mag-right-0 { grid-column: 3; grid-row: 1; }
  .tc-mag-right-1 { grid-column: 3; grid-row: 2; }
  .tc-mag-main .tc-mag-overlay h3 { font-size: var(--text-lg); }
  .tc-mag-small .tc-mag-overlay { padding: 12px; }
  .tc-mag-small .tc-mag-overlay h3 { font-size: var(--text-xs); }

  /* About */
  .tc-persona-avatar-large { width: 152px; height: 152px; }
  .tc-persona-avatar-large span { font-size: var(--text-3xl); }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .tc-header, .tc-footer, .tc-nav, .tc-menu-toggle, .tc-ad,
  .tc-related, .tc-post-nav, .tc-badges, .tc-cta, .tc-why { display: none; }
  body { font-size: 12pt; color: #000; }
  a { color: #000; text-decoration: underline; }
}
