/*
Theme Name: TRIWARE Blog
Theme URI: https://triware.ru/blog/
Author: TRIWARE
Description: Редакционная тема блога TRIWARE для WordPress
Version: 1.4.3
Text Domain: triware-blog
*/

:root {
  --bg: #080b0f;
  --chrome: rgb(18 22 28 / 96%);
  --surface: #0e141c;
  --paper: #f4f7fa;
  --paper-strong: #fff;
  --ink: #0a0e14;
  --text: #f2f5f8;
  --muted: #5c6876;
  --muted-dark: #9aa5b1;
  --line: #d7dee7;
  --line-dark: rgb(205 220 238 / 16%);
  --blue: #1769ff;
  --blue-hover: #3a7dff;
  --action-blue: #0030a7;
  --action-blue-hover: #184dc2;
  --chrome-light: rgb(255 255 255 / 97%);
  --chrome-text: #17191d;
  --chrome-muted: #68717d;
  --shell: 1264px;
  --gutter: clamp(20px, 5.7vw, 72px);
  --radius: 12px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  --tri-heading-gradient-on-light: linear-gradient(100deg, #0030a7 0%, #111 78%);
  --tri-heading-gradient-on-dark: linear-gradient(100deg, #8fb3ff 0%, #f2f5f8 78%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; }
.shell { width: min(100%, var(--shell)); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: fixed; z-index: 1000; left: 16px; top: -80px; padding: 12px 16px; background: var(--blue); color: #fff; }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 3px solid #69a0ff; outline-offset: 4px; }

.blog-header { position: sticky; z-index: 100; top: 0; display: grid; grid-template-rows: 34px 78px; background: var(--chrome-light); color: var(--chrome-text); border-bottom: 1px solid var(--line); box-shadow: 0 8px 26px rgb(23 39 68 / 9%); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.blog-header__top { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-bottom: 1px solid #edf0f3; color: #707983; }
.blog-header__top > p { margin: 0; overflow: hidden; font: 500 10px/1.3 var(--mono); letter-spacing: .06em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.blog-header__contacts { display: flex; align-items: center; gap: 30px; }
.blog-header__contacts a { min-height: 32px; display: inline-flex; align-items: center; gap: 7px; color: #56606c; font-size: 12px; text-decoration: none; white-space: nowrap; }
.blog-header__contacts a:hover,
.blog-header__contacts a:focus-visible { color: var(--action-blue); }
.blog-header__main { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(24px, 2.8vw, 44px); }
.blog-header__brand { width: 164px; min-height: 44px; display: flex; align-items: center; }
.blog-header__brand img { width: 100%; }
.blog-nav { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 1.55vw, 28px); }
.blog-nav__contacts { display: none; }
.blog-nav a { min-height: 44px; display: flex; align-items: center; color: #222831; font-size: 14px; text-decoration: none; white-space: nowrap; }
.blog-nav a:hover,
.blog-nav a:focus-visible { color: var(--action-blue); }
.blog-header__action { min-height: 48px; padding-inline: 18px; display: inline-flex; align-items: center; gap: 22px; border: 1px solid var(--action-blue); border-radius: 8px; background: var(--action-blue); color: #fff; font-weight: 650; text-decoration: none; white-space: nowrap; }
.blog-header__action:hover,
.blog-header__action:focus-visible { background: var(--action-blue-hover); border-color: var(--action-blue-hover); }
.blog-header__action:active { background: #08277f; border-color: #08277f; }
.blog-menu-toggle { display: none; width: 48px; height: 48px; padding: 0; place-items: center; border: 1px solid #bdc5cf; border-radius: 8px; background: #fff; color: var(--chrome-text); }
.blog-menu-toggle:hover,
.blog-menu-toggle:focus-visible { border-color: var(--action-blue); background: #f4f7fb; }
.blog-menu-toggle span { grid-area: 1 / 1; width: 20px; height: 1px; background: var(--chrome-text); transition: transform 180ms ease; }
.blog-menu-toggle span:first-child { transform: translateY(-4px); }
.blog-menu-toggle span:last-child { transform: translateY(4px); }
.blog-menu-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.blog-menu-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

.blog-hero { background: var(--bg); color: var(--text); border-bottom: 1px solid var(--line-dark); }
.blog-hero__inner { min-height: 390px; padding-block: clamp(64px, 8vw, 110px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); align-items: end; gap: clamp(42px, 8vw, 120px); }
.eyebrow { margin: 0 0 24px; color: #8faeff; font: 600 11px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.blog-hero h1 { max-width: 760px; margin: 0; font-size: clamp(48px, 6vw, 82px); font-weight: 400; line-height: .94; letter-spacing: -.06em; }
.blog-hero__lead { max-width: 500px; margin: 0; color: #aeb8c3; font-size: clamp(17px, 1.5vw, 21px); }

.category-bar { background: #fff; border-bottom: 1px solid var(--line); }
.category-bar__inner { min-height: 74px; display: flex; gap: 10px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.category-bar__inner::-webkit-scrollbar { display: none; }
.category-bar a { flex: 0 0 auto; min-height: 40px; padding: 0 15px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; color: #45515e; font-size: 13px; text-decoration: none; }
.category-bar a:hover, .category-bar a.is-active { border-color: var(--blue); background: #edf3ff; color: #0d54cf; }

.blog-main { padding-block: clamp(56px, 7vw, 96px); }
.section-head { margin-bottom: 34px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.section-head h2 { margin: 0; font-size: clamp(32px, 4vw, 52px); font-weight: 430; line-height: 1; letter-spacing: -.045em; }
.section-head p { margin: 0; color: var(--muted); }

.featured-post { margin-bottom: 56px; display: grid; grid-template-columns: 1.15fr .85fr; min-height: 430px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.featured-post__media { min-height: 0; aspect-ratio: 40 / 21; align-self: center; overflow: hidden; background: #08192d; }
.featured-post__media img { width: 100%; height: 100%; object-fit: contain; transform: scale(.94); }
.featured-post__body { padding: clamp(30px, 4vw, 56px); display: flex; flex-direction: column; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font: 600 10px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.post-meta a { color: #0d5bdc; text-decoration: none; }
.featured-post h2 { margin: 42px 0 18px; font-size: clamp(32px, 3.8vw, 52px); font-weight: 430; line-height: 1; letter-spacing: -.05em; }
.featured-post h2 a { text-decoration: none; }
.featured-post__excerpt { margin: 0; color: var(--muted); }
.read-link { width: fit-content; min-height: 46px; margin-top: auto; padding-top: 22px; display: inline-flex; gap: 28px; align-items: center; border-bottom: 1px solid #b6c1cf; color: #101722; font-weight: 650; text-decoration: none; }
.read-link span { color: var(--blue); }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 420px)); justify-content: center; gap: 20px; }
.post-card { min-width: 0; min-height: 470px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.post-card__media { aspect-ratio: 40 / 21; display: block; overflow: hidden; background: #08192d; }
.post-card__media img { width: 100%; height: 100%; object-fit: contain; transform: scale(.94); transition: transform 260ms ease; }
.post-card:hover .post-card__media img { transform: scale(.97); }
.post-card__body { flex: 1; padding: 24px; display: flex; flex-direction: column; }
.post-card h2 { margin: 26px 0 14px; font-size: clamp(24px, 2.1vw, 32px); font-weight: 450; line-height: 1.08; letter-spacing: -.035em; }
.post-card h2 a { text-decoration: none; }
.post-card p { margin: 0 0 24px; color: var(--muted); font-size: 14px; }
.post-card .read-link { margin-top: auto; font-size: 13px; }
.case-card__placeholder { display: grid; place-items: center; background: linear-gradient(135deg, #dce7f5, #f5f8fc); color: #0d5bdc; font: 700 13px var(--mono); letter-spacing: .14em; }
.case-card .post-meta span:first-child { color: #0d5bdc; }
.cases-hero .blog-hero__lead { max-width: 540px; }

.pagination { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { min-width: 44px; min-height: 44px; padding: 0 13px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-decoration: none; }
.pagination .current { border-color: var(--blue); background: var(--blue); color: #fff; }

.article-hero { padding-block: clamp(64px, 8vw, 110px); background: var(--bg); color: var(--text); }
.article-hero__inner { max-width: 1050px; }
.breadcrumbs { margin-bottom: 34px; color: #8793a0; font-size: 13px; }
.breadcrumbs a { text-decoration: none; }
.article-hero h1 { margin: 22px 0 26px; font-size: clamp(44px, 6vw, 78px); font-weight: 400; line-height: .98; letter-spacing: -.055em; }
.article-cover { margin-top: -1px; background: var(--bg); }
.article-cover img { width: min(calc(100% - 40px), 1264px); max-height: 720px; margin-inline: auto; border-radius: var(--radius); object-fit: contain; }
.article-layout { padding-block: clamp(54px, 7vw, 92px); display: grid; grid-template-columns: minmax(0, 760px) 240px; justify-content: center; gap: clamp(50px, 9vw, 120px); }
.article-content { min-width: 0; font-size: 18px; line-height: 1.75; }
.article-content > :first-child { margin-top: 0; }
.article-content h2 { margin: 2.2em 0 .7em; font-size: clamp(30px, 3vw, 42px); line-height: 1.1; letter-spacing: -.035em; }
.article-content h3 { margin: 2em 0 .6em; font-size: 26px; }
.article-content p, .article-content ul, .article-content ol { margin-block: 1.25em; }
.article-content img { margin-block: 36px; border-radius: 10px; }
.article-content blockquote { margin: 34px 0; padding: 22px 28px; border-left: 3px solid var(--blue); background: #eaf1fb; }
.article-content a { color: #0b55d2; }
.article-sidebar { align-self: start; position: sticky; top: 112px; }
.article-sidebar__card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.article-sidebar__card span { color: var(--muted); font: 600 10px var(--mono); text-transform: uppercase; }
.article-sidebar__card strong { margin-top: 12px; display: block; font-size: 16px; }
.article-sidebar__card a { min-height: 44px; margin-top: 18px; display: flex; align-items: center; color: #0c55d1; font-weight: 600; text-decoration: none; }

.empty-state { padding: 52px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-align: center; }
.empty-state h2 { margin-top: 0; }

.blog-footer { background: #fff; color: var(--chrome-text); border-top: 1px solid var(--line); }
.blog-footer__main { padding-block: 58px; display: grid; grid-template-columns: minmax(210px, 1.15fr) repeat(4, minmax(145px, .8fr)); gap: clamp(30px, 3.5vw, 64px); }
.blog-footer__brand img { width: 168px; }
.blog-footer__brand p { max-width: 320px; color: #78828c; font-size: 13px; }
.blog-footer__contacts { margin-top: 22px; display: grid; gap: 4px; }
.blog-footer__contacts a { min-height: 34px; display: flex; align-items: center; gap: 10px; color: #465568; text-decoration: none; }
.blog-footer__contacts a:hover,
.blog-footer__contacts a:focus-visible { color: var(--action-blue); }
.blog-footer__contacts span { min-width: 38px; color: #7a8590; font: 600 9px var(--mono); }
.blog-footer__contacts strong { font-size: 13px; font-weight: 520; }
.blog-footer nav { display: grid; align-content: start; }
.blog-footer h2 { margin: 4px 0 16px; color: #20334b; font-size: 13px; }
.blog-footer nav a { min-height: 40px; display: flex; align-items: center; color: #65717d; font-size: 13px; text-decoration: none; }
.blog-footer nav a:hover,
.blog-footer nav a:focus-visible { color: var(--action-blue); }
.blog-footer__cta { min-height: 48px !important; margin-top: 14px; padding-inline: 16px; justify-content: space-between; border-radius: 8px; background: var(--action-blue); color: #fff !important; font-weight: 650; }
.blog-footer__cta:hover,
.blog-footer__cta:focus-visible { background: var(--action-blue-hover); }
.blog-footer__bottom { min-height: 78px; display: flex; justify-content: space-between; align-items: center; gap: 24px; border-top: 1px solid var(--line); color: #848d96; font-size: 11px; }
.blog-footer__bottom > span:last-child { display: grid; gap: 2px; }
.blog-footer__bottom strong { color: #465568; font-weight: 520; }
.blog-footer__bottom small { color: #7a8590; }

@media (max-width: 1120px) {
  .blog-nav { display: none; position: fixed; inset: 112px 0 auto; padding: 20px var(--gutter) 28px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 35px rgb(25 43 65 / 12%); }
  .blog-nav.is-open { display: grid; gap: 4px; }
  .blog-nav a { border-bottom: 1px solid var(--line); }
  .blog-nav a:last-child { border-bottom: 0; }
  .blog-nav.is-open .blog-nav__contacts { margin-top: 10px; padding-top: 10px; display: grid; gap: 2px; border-top: 1px solid var(--line); }
  .blog-nav.is-open .blog-nav__contacts > a { border-bottom: 0; color: #526176; }
  .blog-nav.is-open .blog-nav__contacts .blog-nav__consultation { margin-top: 8px; min-height: 48px; padding: 12px 18px; justify-content: center; border: 1px solid var(--action-blue); border-radius: 10px; background: var(--action-blue); color: #fff; font-weight: 650; text-align: center; }
  .blog-menu-toggle { display: grid; justify-self: end; }
  .blog-header__main { grid-template-columns: 1fr auto auto; }
  .blog-footer__main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .blog-footer__brand { grid-column: 1 / -1; }
  .blog-hero__inner { grid-template-columns: 1fr; min-height: 0; }
  .featured-post { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 420px)); }
  .article-layout { grid-template-columns: minmax(0, 760px); }
  .article-sidebar { position: static; }
}

@media (max-width: 680px) {
  .blog-header { grid-template-rows: 34px 70px; }
  .blog-header__top > p { display: none; }
  .blog-header__top { justify-content: flex-end; }
  .blog-header__contacts { width: 100%; justify-content: space-between; gap: 12px; }
  .blog-header__contacts a { gap: 5px; font-size: 11px; }
  .blog-header__main { grid-template-columns: 1fr auto; gap: 12px; }
  .blog-header__main.shell { width: 100%; padding-right: 10px; padding-left: 20px; }
  .blog-header__action { display: none; }
  .blog-header__brand { width: 146px; }
  .blog-nav { inset-block-start: 104px; }
  .blog-hero h1 { font-size: clamp(44px, 14vw, 62px); }
  .section-head { align-items: start; flex-direction: column; }
  .post-grid { grid-template-columns: 1fr; }
  .post-card { width: min(100%, 720px); min-height: 0; justify-self: center; }
  .featured-post__body { min-height: 400px; }
  .article-content { font-size: 16px; }
  .blog-footer__main { grid-template-columns: 1fr; gap: 32px; }
  .blog-footer__brand { grid-column: 1; }
  .blog-footer nav { padding-top: 22px; border-top: 1px solid var(--line); }
  .blog-footer__bottom { padding-block: 22px; align-items: flex-start; flex-direction: column; }
}

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

/* Shared TRIWARE/Kvadrosim heading signature. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .section-head h2,
  .article-content h2 {
    background-image: var(--tri-heading-gradient-on-light);
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }

  .blog-hero h1,
  .article-hero h1 {
    background-image: var(--tri-heading-gradient-on-dark);
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }

  .article-content h2 {
    width: fit-content;
    max-width: 100%;
  }
}

@media (forced-colors: active) {
  .blog-hero h1,
  .article-hero h1,
  .section-head h2,
  .article-content h2 {
    background: none !important;
    color: CanvasText !important;
    -webkit-text-fill-color: CanvasText !important;
    forced-color-adjust: auto;
  }
}

@media print {
  .blog-hero,
  .article-hero {
    background: #fff !important;
    color: #111 !important;
  }

  .blog-hero h1,
  .article-hero h1,
  .section-head h2,
  .article-content h2 {
    background: none !important;
    color: #111 !important;
    -webkit-text-fill-color: #111 !important;
    text-shadow: none !important;
  }
}

/*
 * TRIWARE editorial system 1.3
 * Aligns blog and case templates with the corporate and Kvadrosim pages.
 */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/montserrat-cyrillic-400-600.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/montserrat-latin-400-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191-2215,
    U+FEFF, U+FFFD;
}

:root {
  --paper: #f8f8f6;
  --paper-strong: #fff;
  --ink: #17191d;
  --text: #33373e;
  --muted: #68717d;
  --line: #dce1e6;
  --line-strong: #bdc8d3;
  --blue: #0030a7;
  --blue-hover: #184dc2;
  --action-blue: #0030a7;
  --action-blue-hover: #184dc2;
  --sky: #eaf5fc;
  --sky-soft: #f2f8fc;
  --shell: 1160px;
  --gutter: 20px;
  --radius: 16px;
  --font: "Montserrat", "Segoe UI", Arial, sans-serif;
  --mono: "Montserrat", "Segoe UI", Arial, sans-serif;
  --tri-heading-gradient-on-light: linear-gradient(100deg, #0030a7 0%, #111 78%);
}

html { scroll-padding-top: 122px; }
body { background: var(--paper); color: var(--text); }
.shell { width: min(calc(100% - 40px), var(--shell)); padding-inline: 0; }

.blog-header { grid-template-rows: 32px 70px; }
.blog-header__top > p { letter-spacing: .03em; text-transform: none; }
.blog-header__main { grid-template-columns: 166px 1fr auto; gap: 30px; }
.blog-header__brand { width: 166px; }
.blog-header__contacts svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.blog-nav { gap: clamp(16px, 2vw, 30px); }
.blog-nav a { font-size: 13px; font-weight: 500; }
.blog-header__action { min-height: 46px; padding-inline: 22px; border-radius: 10px; font-size: 13px; font-weight: 600; }

.blog-hero {
  width: min(calc(100% - 40px), 1400px);
  min-height: 0;
  margin: 24px auto 36px;
  overflow: hidden;
  border: 1px solid #d9e7f0;
  border-radius: 30px;
  background: var(--sky);
  color: var(--text);
}

.blog-hero__inner {
  width: min(calc(100% - 80px), var(--shell));
  min-height: 430px;
  padding-block: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, .82fr);
  align-items: center;
  gap: clamp(48px, 7vw, 100px);
}

.eyebrow { margin-bottom: 18px; color: var(--blue); font-size: 11px; letter-spacing: .045em; }
.blog-hero h1,
.article-hero h1 {
  color: #0b1b35;
  font-size: clamp(35px, 3.15vw, 48px);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -.025em;
  text-transform: uppercase;
}
.blog-hero__lead { max-width: 500px; color: #526274; font-size: 16px; line-height: 1.65; }

.category-bar { border: 0; background: transparent; }
.category-bar__inner { min-height: 72px; }
.category-bar a {
  min-height: 42px;
  padding-inline: 18px;
  border-color: #cbd4de;
  border-radius: 8px;
  background: #fff;
  color: #596675;
  font-size: 12px;
  font-weight: 500;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.category-bar a:hover,
.category-bar a:focus-visible,
.category-bar a.is-active { border-color: var(--blue); background: var(--blue); color: #fff; }

.blog-main { padding-block: 72px 100px; }
.section-head { margin-bottom: 42px; align-items: center; }
.section-head h2,
.article-content h2 {
  color: #0b1b35;
  font-size: clamp(30px, 3.15vw, 44px);
  font-weight: 600;
  line-height: 1.27;
  letter-spacing: -.025em;
  text-transform: uppercase;
}
.section-head p { max-width: 500px; color: var(--muted); font-size: 14px; line-height: 1.6; text-align: right; }

.featured-post {
  min-height: 420px;
  margin-bottom: 72px;
  border-color: var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 44px rgb(32 67 106 / 8%);
}
.featured-post__media { background: var(--sky-soft); }
.featured-post__body { padding: clamp(30px, 4vw, 48px); }
.post-meta { color: #657381; font-size: 9px; letter-spacing: .045em; }
.featured-post h2 { margin: 34px 0 18px; color: #142e55; font-size: clamp(27px, 2.6vw, 38px); font-weight: 600; line-height: 1.2; letter-spacing: -.025em; }
.featured-post h2 a:hover,
.featured-post h2 a:focus-visible,
.post-card h2 a:hover,
.post-card h2 a:focus-visible { color: var(--blue); }
.featured-post__excerpt { font-size: 14px; line-height: 1.65; }
.read-link { min-height: 44px; padding-top: 18px; gap: 24px; border-color: #aebbc8; color: #293b50; font-size: 12px; }
.read-link:hover,
.read-link:focus-visible { border-color: var(--blue); color: var(--blue); }

.post-grid { gap: 16px; }
.post-card {
  min-height: 470px;
  border-color: var(--line);
  border-radius: 16px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.post-card:hover { border-color: #b6c9db; box-shadow: 0 16px 42px rgb(31 52 78 / 8%); transform: translateY(-2px); }
.post-card__media { background: var(--sky-soft); }
.post-card__body { padding: 22px; }
.post-card h2 { margin: 24px 0 14px; color: #142e55; font-size: clamp(20px, 1.65vw, 24px); font-weight: 600; line-height: 1.2; letter-spacing: -.025em; }
.post-card p { color: var(--muted); font-size: 13px; line-height: 1.6; }

.article-hero {
  width: min(calc(100% - 40px), 1400px);
  margin: 24px auto 0;
  padding-block: 0;
  border: 1px solid #d9e7f0;
  border-radius: 30px 30px 0 0;
  background: var(--sky);
  color: var(--text);
}
.article-hero__inner { width: min(calc(100% - 80px), 1050px); padding-block: 64px; }
.breadcrumbs { margin-bottom: 28px; color: #66798d; font-size: 12px; }
.breadcrumbs a:hover,
.breadcrumbs a:focus-visible { color: var(--blue); }
.article-hero .post-meta { color: #657381; }
.article-hero h1 { max-width: 900px; margin: 22px 0 0; }
.article-cover { width: min(calc(100% - 40px), 1400px); margin: 0 auto; padding: 0 40px 40px; background: var(--sky); border: 1px solid #d9e7f0; border-top: 0; border-radius: 0 0 30px 30px; }
.article-cover img { width: min(100%, 1160px); max-height: 620px; border-radius: 16px; box-shadow: 0 22px 54px rgb(18 52 93 / 16%); }
.article-layout {
  margin-block: 52px 100px;
  padding: clamp(30px, 4vw, 54px);
  grid-template-columns: minmax(0, 720px) 260px;
  gap: clamp(44px, 7vw, 84px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}
.article-content { font-size: 17px; line-height: 1.75; }
.article-content h2 { margin: 2.1em 0 .75em; font-size: clamp(27px, 2.8vw, 36px); }
.article-content h3 { color: #142e55; font-size: 24px; font-weight: 600; }
.article-content blockquote { border-left-color: var(--blue); border-radius: 0 12px 12px 0; background: var(--sky-soft); }
.article-content table {
  width: 100%;
  margin-block: 34px;
  border: 1px solid #cfdeea;
  border-spacing: 0;
  border-radius: 14px;
  overflow: hidden;
  table-layout: fixed;
  background: #fff;
  color: #27384b;
  font-size: 14px;
  line-height: 1.55;
}
.article-content th,
.article-content td {
  padding: 16px;
  vertical-align: top;
  text-align: left;
  overflow-wrap: anywhere;
}
.article-content th {
  background: var(--sky-soft);
  color: #142e55;
  font-weight: 650;
}
.article-content td { border-top: 1px solid #dbe6ee; }
.article-content th + th,
.article-content td + td { border-left: 1px solid #dbe6ee; }
.article-sidebar { top: 126px; }
.article-sidebar__card { padding: 26px; border-color: #cfdeea; border-radius: 16px; background: var(--sky); }
.article-sidebar__card span { color: var(--blue); font-size: 9px; letter-spacing: .045em; }
.article-sidebar__card strong { color: #142e55; font-size: 16px; font-weight: 600; line-height: 1.45; }
.article-sidebar__card a { min-height: 46px; margin-top: 22px; justify-content: center; border-radius: 8px; background: var(--blue); color: #fff; font-size: 12px; }
.article-sidebar__card a:hover,
.article-sidebar__card a:focus-visible { background: var(--blue-hover); }

.blog-footer { background: #fff; }
.blog-footer__main { padding-block: 64px; }
.blog-footer h2 { font-size: 12px; }
.blog-footer nav a { font-size: 11px; }
.blog-footer__cta { border-radius: 10px; background: var(--blue); }

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .blog-hero h1,
  .article-hero h1,
  .section-head h2,
  .article-content h2 {
    background-image: var(--tri-heading-gradient-on-light);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

@media (max-width: 1120px) {
  .blog-header__main { grid-template-columns: 1fr auto auto; }
  .blog-nav { inset-block-start: 102px; }
  .blog-hero__inner { width: min(calc(100% - 64px), var(--shell)); min-height: 0; grid-template-columns: 1fr; gap: 28px; }
  .blog-hero__lead { max-width: 700px; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar__card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px 24px; }
  .article-sidebar__card span { grid-column: 1; }
  .article-sidebar__card strong { grid-column: 1; }
  .article-sidebar__card a { grid-column: 2; grid-row: 1 / 3; min-width: 180px; margin-top: 0; }
}

@media (max-width: 680px) {
  :root { --gutter: 20px; }
  .blog-header { grid-template-rows: 32px 68px; }
  .blog-header__brand { width: 145px; }
  .blog-nav { inset-block-start: 100px; }
  .blog-hero { width: calc(100% - 40px); margin-top: 20px; border-radius: 22px; }
  .blog-hero__inner { width: calc(100% - 40px); padding-block: 42px; }
  .blog-hero h1,
  .article-hero h1 { font-size: 25px; line-height: 1.34; }
  .blog-hero__lead { font-size: 14px; }
  .category-bar__inner { min-height: 66px; }
  .blog-main { padding-block: 56px 72px; }
  .section-head { margin-bottom: 30px; align-items: start; }
  .section-head h2 { font-size: 25px; line-height: 1.35; }
  .section-head p { text-align: left; }
  .featured-post { margin-bottom: 56px; border-radius: 16px; }
  .featured-post__body { min-height: 350px; padding: 24px 20px; }
  .featured-post h2 { font-size: 25px; }
  .post-card { border-radius: 14px; }
  .article-hero { width: calc(100% - 40px); margin-top: 20px; border-radius: 22px 22px 0 0; }
  .article-hero__inner { width: calc(100% - 40px); padding-block: 40px; }
  .article-cover { width: calc(100% - 40px); padding: 0 20px 20px; border-radius: 0 0 22px 22px; }
  .article-cover img { border-radius: 10px; }
  .article-layout { width: calc(100% - 40px); margin-block: 32px 72px; padding: 26px 20px; border-radius: 16px; }
  .article-content { font-size: 16px; }
  .article-content h2 { font-size: 25px; line-height: 1.3; }
  .article-content table {
    margin-block: 28px;
    border: 0;
    border-radius: 0;
    table-layout: auto;
    background: transparent;
    font-size: 15px;
  }
  .article-content table thead {
    width: 1px;
    height: 1px;
    position: absolute;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .article-content table tbody {
    display: grid;
    gap: 14px;
  }
  .article-content table tr {
    padding: 4px 16px;
    display: block;
    border: 1px solid #cfdeea;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 22px rgb(22 54 89 / 5%);
  }
  .article-content table td {
    width: 100%;
    padding: 13px 0;
    display: block;
    border: 0;
    color: #34465a;
    line-height: 1.55;
  }
  .article-content table td + td { border-top: 1px solid #e1e9f0; }
  .article-content table td::before {
    content: attr(data-label);
    margin-bottom: 4px;
    display: block;
    color: var(--blue);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .055em;
    line-height: 1.4;
    text-transform: uppercase;
  }
  .article-sidebar__card { display: block; }
  .article-sidebar__card a { margin-top: 22px; }
  .blog-footer__main { gap: 28px; }
}

@media (forced-colors: active) {
  .blog-hero,
  .article-hero,
  .article-cover,
  .featured-post,
  .post-card,
  .article-layout,
  .article-sidebar__card { border-color: CanvasText; }
}
