/*
Theme Name: Caliman Editorial
Theme URI: https://caliman.org/
Author: Caliman Studio
Author URI: https://caliman.org/
Description: Авторская адаптивная тема для независимого русскоязычного медиа о цифровой среде, приватности и кибербезопасности.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: caliman-editorial
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, news, editorial, custom-logo, custom-menu, featured-images, translation-ready, two-columns
*/

:root {
  --cal-bg: #f4f5f3;
  --cal-paper: #ffffff;
  --cal-ink: #17212b;
  --cal-muted: #697681;
  --cal-line: #e2e7e7;
  --cal-night: #101d29;
  --cal-night-2: #152837;
  --cal-accent: #16b6b0;
  --cal-accent-dark: #087d7a;
  --cal-warm: #e5b66c;
  --cal-radius: 18px;
  --cal-shadow: 0 18px 50px rgba(22, 38, 49, .08);
  --cal-container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cal-bg);
  color: var(--cal-ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body, button, input, textarea { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--cal-accent-dark); }
img { max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid rgba(22,182,176,.55); outline-offset: 3px; }
::selection { background: rgba(22,182,176,.22); }

.cal-container { width: min(var(--cal-container), calc(100% - 48px)); margin-inline: auto; }
.screen-reader-text { position: absolute !important; 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; left: 16px; top: 12px; z-index: 1000; padding: 10px 16px; border-radius: 10px; background: #fff; color: #111; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

/* Header */
.cal-site-header { position: relative; z-index: 30; color: #fff; background: var(--cal-night); border-bottom: 1px solid rgba(255,255,255,.09); }
.cal-header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 88px; gap: 30px; }
.cal-brand { display: inline-flex; align-items: center; gap: 13px; min-width: 210px; }
.cal-brand-mark { width: 42px; height: 42px; flex: 0 0 42px; }
.cal-brand-copy { display: grid; line-height: 1.1; }
.cal-brand-name { color: #fff; font-size: 22px; font-weight: 800; letter-spacing: .16em; }
.cal-brand-tagline { margin-top: 6px; color: #9eb2bd; font-size: 9px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.cal-primary-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.cal-primary-nav ul { display: flex; align-items: center; gap: 28px; padding: 0; margin: 0; list-style: none; }
.cal-primary-nav a { display: inline-flex; align-items: center; min-height: 88px; color: #c4d1d6; font-size: 13px; font-weight: 650; letter-spacing: .015em; transition: color .2s ease; }
.cal-primary-nav a:hover, .cal-primary-nav .current-menu-item > a, .cal-primary-nav .current_page_item > a { color: #fff; }
.cal-primary-nav .current-menu-item > a::after, .cal-primary-nav .current_page_item > a::after { width: 18px; }
.cal-header-actions { display: flex; align-items: center; gap: 10px; }
.cal-icon-button { display: inline-grid; place-items: center; width: 42px; height: 42px; color: #d5e1e5; background: transparent; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; transition: .2s ease; }
.cal-icon-button:hover { color: #fff; border-color: var(--cal-accent); background: rgba(22,182,176,.1); }
.cal-icon-button svg { width: 18px; height: 18px; }
.cal-menu-toggle { display: none; }
.cal-search-panel { position: absolute; top: 100%; right: max(24px, calc((100% - var(--cal-container))/2)); width: min(440px, calc(100vw - 32px)); padding: 18px; background: #172a38; border: 1px solid rgba(255,255,255,.12); border-radius: 0 0 16px 16px; box-shadow: 0 20px 50px rgba(0,0,0,.22); }
.cal-search-panel[hidden] { display: none; }
.cal-search-form { display: flex; gap: 8px; }
.cal-search-form label { flex: 1; }
.cal-search-form input[type="search"] { width: 100%; min-height: 46px; padding: 0 14px; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 9px; }
.cal-search-form input::placeholder { color: #9eb2bd; }
.cal-search-form button { min-height: 46px; padding: 0 16px; color: #082326; background: var(--cal-accent); border: 0; border-radius: 9px; font-weight: 750; }

/* Hero */
.cal-hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(ellipse at 79% 44%, rgba(22,182,176,.21), transparent 31%), linear-gradient(115deg, #10202d 0%, #142b3a 60%, #10212e 100%); }
.cal-hero::before { position: absolute; inset: 0; content: ""; opacity: .32; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(90deg, #000, transparent 95%); }
.cal-hero-inner { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; min-height: 470px; padding-block: 62px; }
.cal-kicker { display: inline-flex; align-items: center; gap: 10px; color: #7de1db; font-size: 10px; font-weight: 800; letter-spacing: .19em; text-transform: uppercase; }
.cal-kicker::before { width: 27px; height: 1px; content: ""; background: var(--cal-accent); }
.cal-hero h1 { max-width: 680px; margin: 20px 0 18px; color: #fff; font-size: clamp(38px, 5.3vw, 68px); line-height: 1.04; letter-spacing: -.055em; font-weight: 780; }
.cal-hero h1 span { color: #4ed2cb; }
.cal-hero-text { max-width: 600px; margin: 0; color: #b7c8ce; font-size: 17px; line-height: 1.7; }
.cal-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.cal-button { display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-height: 48px; padding: 0 20px; border: 1px solid transparent; border-radius: 8px; font-size: 13px; font-weight: 800; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.cal-button:hover { transform: translateY(-2px); }
.cal-button-primary { color: #082326; background: var(--cal-accent); }
.cal-button-primary:hover { color: #082326; background: #43d1ca; }
.cal-button-ghost { color: #e6f0f2; background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.2); }
.cal-button-ghost:hover { color: #fff; border-color: var(--cal-accent); }
.cal-hero-art { position: relative; display: grid; place-items: center; min-height: 330px; }
.cal-orbit { position: relative; width: min(360px, 80%); aspect-ratio: 1; border: 1px solid rgba(80,211,205,.28); border-radius: 50%; background: radial-gradient(circle at 48% 48%, rgba(20,181,177,.17), rgba(12,28,40,.03) 54%, transparent 70%); box-shadow: inset 0 0 60px rgba(22,182,176,.08), 0 0 90px rgba(22,182,176,.08); }
.cal-orbit::before, .cal-orbit::after { position: absolute; inset: 12%; content: ""; border: 1px solid rgba(80,211,205,.22); border-radius: 50%; transform: rotateX(66deg) rotate(-25deg); }
.cal-orbit::after { inset: 2%; transform: rotateX(66deg) rotate(50deg); }
.cal-orbit-core { position: absolute; inset: 27%; display: grid; place-items: center; border: 1px solid rgba(80,211,205,.44); border-radius: 50%; background: radial-gradient(circle, rgba(22,182,176,.24), rgba(22,182,176,.035) 65%); box-shadow: 0 0 55px rgba(22,182,176,.14); }
.cal-orbit-core svg { width: 75px; height: 75px; color: #50d5cf; filter: drop-shadow(0 0 16px rgba(80,213,207,.5)); }
.cal-node { position: absolute; width: 10px; height: 10px; border: 2px solid #8cf0e7; border-radius: 50%; background: #1bb8b3; box-shadow: 0 0 18px rgba(80,213,207,.9); }
.cal-node.n1 { top: 13%; left: 24%; }.cal-node.n2 { top: 28%; right: 5%; }.cal-node.n3 { bottom: 16%; right: 19%; }.cal-node.n4 { bottom: 29%; left: 4%; }.cal-node.n5 { top: 3%; right: 37%; }
.cal-hero-note { position: absolute; right: 0; bottom: 19px; color: rgba(204,226,228,.55); font-size: 9px; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; }

/* Page sections */
.cal-section { padding-block: 66px; }
.cal-section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.cal-section-kicker { margin: 0 0 8px; color: var(--cal-accent-dark); font-size: 10px; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }
.cal-section-title { margin: 0; color: var(--cal-ink); font-size: clamp(25px, 3vw, 34px); line-height: 1.15; letter-spacing: -.04em; }
.cal-section-link { display: inline-flex; align-items: center; gap: 8px; color: #5e6c75; font-size: 12px; font-weight: 800; }
.cal-section-link:hover { color: var(--cal-accent-dark); }
.cal-content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 34px; align-items: start; }
.cal-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cal-post-card { min-width: 0; overflow: hidden; background: var(--cal-paper); border: 1px solid #e7ebea; border-radius: 13px; box-shadow: 0 7px 24px rgba(22,38,49,.035); transition: transform .22s ease, box-shadow .22s ease; }
.cal-post-card:hover { transform: translateY(-4px); box-shadow: var(--cal-shadow); }
.cal-card-image { position: relative; display: block; overflow: hidden; aspect-ratio: 1.55; background: linear-gradient(135deg, #182f40, #1b5960); }
.cal-card-image::after { position: absolute; inset: 0; content: ""; background: linear-gradient(0deg, rgba(9,22,31,.2), transparent 55%); pointer-events: none; }
.cal-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cal-post-card:hover .cal-card-image img { transform: scale(1.045); }
.cal-image-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(105,229,220,.7); background: radial-gradient(circle at 70% 25%, rgba(22,182,176,.28), transparent 38%), linear-gradient(135deg, #142a3a, #183c49); }
.cal-image-placeholder svg { width: 58px; height: 58px; opacity: .8; }
.cal-card-body { padding: 19px 19px 18px; }
.cal-category { display: inline-block; margin-bottom: 10px; color: var(--cal-accent-dark); font-size: 9px; font-weight: 850; letter-spacing: .13em; line-height: 1.4; text-transform: uppercase; }
.cal-card-title { margin: 0 0 10px; color: #182630; font-size: 18px; line-height: 1.34; letter-spacing: -.025em; font-weight: 780; }
.cal-card-title a:hover { color: var(--cal-accent-dark); }
.cal-card-excerpt { margin: 0; color: #687680; font-size: 13px; line-height: 1.65; }
.cal-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; color: #829098; font-size: 10px; font-weight: 650; }
.cal-meta-item { display: inline-flex; align-items: center; gap: 6px; }
.cal-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: #b4c1c5; }
.cal-meta-item svg { width: 13px; height: 13px; }

/* Sidebar and topic list */
.cal-sidebar { display: grid; gap: 18px; }
.cal-widget { padding: 22px; background: #fff; border: 1px solid #e6ebea; border-radius: 13px; }
.cal-widget-title { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; color: #20313c; font-size: 14px; font-weight: 850; letter-spacing: -.015em; }
.cal-widget-title::before { width: 3px; height: 17px; content: ""; background: var(--cal-accent); border-radius: 4px; }
.cal-topic-list { display: grid; gap: 0; padding: 0; margin: 0; list-style: none; }
.cal-topic-list li + li { border-top: 1px solid #edf0ef; }
.cal-topic-list a { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 0; color: #52616a; font-size: 12px; font-weight: 700; }
.cal-topic-list a:hover { color: var(--cal-accent-dark); }
.cal-topic-count { color: #a0aaae; font-size: 10px; font-weight: 650; }
.cal-editorial-note { position: relative; overflow: hidden; color: #e9f2f2; background: linear-gradient(145deg, #112330, #173b46); border: 0; }
.cal-editorial-note::after { position: absolute; right: -42px; bottom: -58px; width: 180px; height: 180px; content: ""; border: 1px solid rgba(74,211,201,.24); border-radius: 50%; box-shadow: 0 0 0 20px rgba(74,211,201,.035), 0 0 0 42px rgba(74,211,201,.025); }
.cal-editorial-note .cal-widget-title { position: relative; z-index: 1; color: #fff; }
.cal-editorial-note p { position: relative; z-index: 1; margin: 0; color: #b5c9ce; font-size: 12px; line-height: 1.75; }
.cal-note-label { display: inline-flex; margin-top: 18px; padding: 6px 9px; color: #79ded8; background: rgba(22,182,176,.11); border: 1px solid rgba(22,182,176,.2); border-radius: 5px; font-size: 9px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }

/* Featured story */
.cal-feature { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; background: #fff; border: 1px solid #e5eae9; border-radius: 16px; box-shadow: 0 12px 34px rgba(22,38,49,.045); }
.cal-feature-media { position: relative; min-height: 335px; overflow: hidden; background: linear-gradient(135deg, #142a3a, #1a5961); }
.cal-feature-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cal-feature-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(115,225,216,.7); background: radial-gradient(circle at 65% 35%, rgba(22,182,176,.28), transparent 40%), linear-gradient(135deg, #142a3a, #1a5961); }
.cal-feature-placeholder svg { width: 105px; height: 105px; }
.cal-feature-content { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(25px, 4vw, 48px); }
.cal-feature-content h2 { margin: 0 0 14px; color: #172630; font-size: clamp(24px, 3vw, 36px); line-height: 1.16; letter-spacing: -.045em; }
.cal-feature-content p { margin: 0; color: #65747c; font-size: 14px; line-height: 1.8; }
.cal-feature-content .cal-post-meta { margin-block: 18px 24px; }

/* Archive / search / single */
.cal-page-intro { padding-block: 54px 34px; background: linear-gradient(110deg, #eaf1ef, #f4f5f3 72%); border-bottom: 1px solid #e4eae8; }
.cal-breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; color: #87939a; font-size: 10px; font-weight: 700; }
.cal-breadcrumbs a:hover { color: var(--cal-accent-dark); }
.cal-breadcrumbs span { color: #b6c0c3; }
.cal-page-title { max-width: 850px; margin: 0; color: #172630; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.1; letter-spacing: -.05em; }
.cal-page-description { max-width: 760px; margin: 15px 0 0; color: #697880; font-size: 15px; }
.cal-archive-body { padding-block: 48px 72px; }
.cal-archive-body .cal-post-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.cal-pagination { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 38px; }
.cal-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 39px; height: 39px; padding: 0 10px; color: #52616a; background: #fff; border: 1px solid var(--cal-line); border-radius: 8px; font-size: 12px; font-weight: 750; }
.cal-pagination .current, .cal-pagination a:hover { color: #082326; background: #a8e9e4; border-color: #a8e9e4; }
.cal-single-wrap { padding-block: 42px 76px; }
.cal-single-layout { display: grid; grid-template-columns: minmax(0, 790px) 280px; justify-content: space-between; gap: 48px; align-items: start; }
.cal-article-header { margin-bottom: 28px; }
.cal-article-title { margin: 8px 0 18px; color: #172630; font-size: clamp(34px, 4.4vw, 54px); line-height: 1.1; letter-spacing: -.05em; }
.cal-article-lead { margin: 22px 0 0; color: #60717a; font-size: 18px; line-height: 1.7; }
.cal-article-cover { overflow: hidden; margin: 28px 0 32px; background: #173344; border-radius: 15px; }
.cal-article-cover img { display: block; width: 100%; max-height: 510px; object-fit: cover; }
.cal-prose { color: #34434b; font-size: 16px; line-height: 1.86; overflow-wrap: break-word; }
.cal-prose > *:first-child { margin-top: 0; }
.cal-prose h2 { margin: 1.9em 0 .7em; color: #172630; font-size: clamp(24px, 3vw, 32px); line-height: 1.2; letter-spacing: -.035em; }
.cal-prose h3 { margin: 1.65em 0 .6em; color: #1c303a; font-size: 21px; line-height: 1.3; }
.cal-prose h4 { color: #1c303a; font-size: 17px; }
.cal-prose p { margin: 0 0 1.35em; }
.cal-prose a { color: var(--cal-accent-dark); text-decoration: underline; text-decoration-color: rgba(8,125,122,.35); text-underline-offset: 3px; }
.cal-prose a:hover { text-decoration-color: currentColor; }
.cal-prose ul, .cal-prose ol { margin: 0 0 1.5em; padding-left: 1.5em; }
.cal-prose li { margin: .45em 0; padding-left: .25em; }
.cal-prose blockquote { margin: 1.8em 0; padding: 20px 24px; color: #36535a; background: #edf6f4; border-left: 3px solid var(--cal-accent); border-radius: 0 10px 10px 0; }
.cal-prose blockquote p:last-child { margin-bottom: 0; }
.cal-prose table { width: 100%; margin: 1.6em 0; border-collapse: collapse; font-size: 14px; }
.cal-prose th, .cal-prose td { padding: 11px 13px; border: 1px solid #e1e9e7; text-align: left; }
.cal-prose th { background: #edf4f2; color: #213943; }
.cal-prose pre { max-width: 100%; overflow: auto; padding: 18px; color: #d9eeed; background: #132633; border-radius: 10px; }
.cal-prose code { padding: .15em .35em; background: #edf1ef; border-radius: 4px; font-size: .9em; }
.cal-prose pre code { padding: 0; background: transparent; }
.cal-prose figure { margin: 1.8em 0; }
.cal-prose figcaption { margin-top: 8px; color: #89959a; font-size: 12px; text-align: center; }
.cal-post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.cal-post-tags a { padding: 6px 10px; color: #65747c; background: #edf2f0; border-radius: 6px; font-size: 10px; font-weight: 700; }
.cal-post-tags a:hover { color: #075f5d; background: #d9f2ef; }
.cal-author-box { display: flex; gap: 16px; align-items: center; margin-top: 35px; padding: 20px; background: #fff; border: 1px solid var(--cal-line); border-radius: 12px; }
.cal-author-avatar img { width: 54px; height: 54px; border-radius: 50%; }
.cal-author-name { margin: 0; color: #1d3039; font-size: 13px; font-weight: 850; }
.cal-author-description { margin: 4px 0 0; color: #76848b; font-size: 12px; }
.cal-related { margin-top: 55px; padding-top: 35px; border-top: 1px solid var(--cal-line); }
.cal-related .cal-post-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.cal-comments { margin-top: 44px; padding-top: 34px; border-top: 1px solid var(--cal-line); }
.cal-comments h2 { color: #1b2d37; font-size: 23px; }
.cal-comments ol { padding-left: 20px; }
.cal-comments .comment-body { color: #586871; font-size: 14px; }
.cal-comments .comment-reply-link, .cal-comments input[type="submit"] { display: inline-block; padding: 9px 14px; color: #082326; background: var(--cal-accent); border: 0; border-radius: 7px; font-size: 12px; font-weight: 800; }
.comment-respond input:not([type="submit"]), .comment-respond textarea { width: 100%; max-width: 100%; padding: 12px; background: #fff; border: 1px solid var(--cal-line); border-radius: 8px; }

/* Page and misc */
.cal-page-content { max-width: 850px; margin-inline: auto; padding-block: 48px 76px; }
.cal-page-content .cal-prose { padding: clamp(22px, 5vw, 48px); background: #fff; border: 1px solid var(--cal-line); border-radius: 14px; }
.cal-empty-state { padding: 48px 24px; color: #6b7a82; background: #fff; border: 1px solid var(--cal-line); border-radius: 14px; text-align: center; }
.cal-empty-state h2 { color: var(--cal-ink); }
.cal-empty-state .cal-search-form { max-width: 520px; margin: 20px auto 0; }
.cal-empty-state .cal-search-form input[type="search"] { color: var(--cal-ink); background: #f6f8f7; border-color: var(--cal-line); }
.cal-empty-state .cal-search-form input::placeholder { color: #8a989e; }
.cal-empty-state .cal-search-form button { background: var(--cal-accent); }

/* Footer */
.cal-site-footer { color: #b6c6cb; background: #101d29; }
.cal-footer-main { display: grid; grid-template-columns: 1.3fr .7fr .7fr; gap: 50px; padding-block: 54px 42px; }
.cal-footer-brand .cal-brand { margin-bottom: 17px; }
.cal-footer-brand p { max-width: 370px; margin: 0; color: #899da5; font-size: 12px; line-height: 1.8; }
.cal-footer-title { margin: 0 0 17px; color: #fff; font-size: 11px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.cal-footer-links { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }
.cal-footer-links a { color: #9dafb6; font-size: 12px; }
.cal-footer-links a:hover { color: #64d7d0; }
.cal-footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-block: 18px; color: #71858e; border-top: 1px solid rgba(255,255,255,.09); font-size: 10px; }
.cal-footer-bottom p { margin: 0; }

/* WordPress blocks */
.alignwide { max-width: 1100px; margin-inline: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.wp-block-button__link { background: var(--cal-night); border-radius: 7px; }
.wp-block-quote { border-left-color: var(--cal-accent); }
.wp-block-image img { border-radius: 9px; }
.wp-block-separator { border-color: var(--cal-line); }
.wp-block-gallery { gap: 14px; }
.wp-block-embed iframe { max-width: 100%; }

@media (max-width: 1050px) {
  .cal-primary-nav, .cal-primary-nav ul { gap: 17px; }
  .cal-primary-nav a { font-size: 12px; }
  .cal-content-grid { grid-template-columns: minmax(0,1fr) 270px; gap: 24px; }
  .cal-post-grid, .cal-archive-body .cal-post-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 820px) {
  .cal-container { width: min(var(--cal-container), calc(100% - 34px)); }
  .cal-header-inner { min-height: 74px; gap: 15px; }
  .cal-brand { min-width: 0; }
  .cal-brand-name { font-size: 20px; }
  .cal-primary-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; padding: 12px 20px 20px; margin: 0; background: #122432; border-top: 1px solid rgba(255,255,255,.1); box-shadow: 0 20px 30px rgba(0,0,0,.18); }
  .cal-primary-nav.is-open { display: block; }
  .cal-primary-nav ul { display: grid; gap: 0; }
  .cal-primary-nav a { display: flex; min-height: 46px; border-bottom: 1px solid rgba(255,255,255,.07); }
  .cal-menu-toggle { display: inline-grid; }
  .cal-hero-inner { grid-template-columns: 1fr .7fr; min-height: 420px; }
  .cal-hero h1 { font-size: clamp(36px, 6vw, 54px); }
  .cal-orbit { width: min(280px, 90%); }
  .cal-content-grid, .cal-single-layout { grid-template-columns: 1fr; }
  .cal-sidebar { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cal-sidebar .cal-widget:first-child { grid-row: span 2; }
  .cal-single-layout { gap: 36px; }
  .cal-single-sidebar { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cal-footer-main { grid-template-columns: 1fr 1fr; gap: 35px; }
  .cal-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .cal-container { width: calc(100% - 30px); }
  .cal-header-inner { min-height: 68px; }
  .cal-brand-mark { width: 36px; height: 36px; flex-basis: 36px; }
  .cal-brand-name { font-size: 18px; }
  .cal-brand-tagline { font-size: 8px; }
  .cal-header-actions { gap: 6px; }
  .cal-icon-button { width: 38px; height: 38px; }
  .cal-hero-inner { display: block; min-height: 0; padding-block: 55px 40px; }
  .cal-hero h1 { max-width: 520px; margin-top: 17px; font-size: clamp(36px, 10vw, 49px); }
  .cal-hero-text { font-size: 14px; }
  .cal-hero-art { position: absolute; right: -70px; bottom: -95px; width: 220px; min-height: 220px; opacity: .2; pointer-events: none; }
  .cal-hero-note { display: none; }
  .cal-hero-actions { margin-top: 24px; }
  .cal-button { min-height: 45px; padding-inline: 15px; font-size: 12px; }
  .cal-section { padding-block: 44px; }
  .cal-section-head { align-items: start; flex-direction: column; gap: 12px; }
  .cal-post-grid, .cal-archive-body .cal-post-grid { grid-template-columns: 1fr; gap: 15px; }
  .cal-card-image { aspect-ratio: 1.75; }
  .cal-card-body { padding: 17px; }
  .cal-card-title { font-size: 18px; }
  .cal-feature { grid-template-columns: 1fr; }
  .cal-feature-media { min-height: 220px; }
  .cal-feature-content { padding: 25px 21px; }
  .cal-sidebar, .cal-single-sidebar { grid-template-columns: 1fr; }
  .cal-sidebar .cal-widget:first-child { grid-row: auto; }
  .cal-page-intro { padding-block: 38px 27px; }
  .cal-page-title { font-size: 34px; }
  .cal-single-wrap { padding-block: 30px 55px; }
  .cal-article-title { font-size: 35px; }
  .cal-article-lead { font-size: 16px; }
  .cal-prose { font-size: 15px; }
  .cal-prose h2 { font-size: 25px; }
  .cal-prose table { display: block; overflow-x: auto; white-space: nowrap; }
  .cal-footer-main { grid-template-columns: 1fr; gap: 28px; padding-block: 40px 30px; }
  .cal-footer-brand { grid-column: auto; }
  .cal-footer-bottom { flex-direction: column; gap: 8px; }
  .cal-author-box { align-items: flex-start; }
  .cal-related .cal-post-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
