/*
Theme Name: Heavy Journal Pro
Theme URI: https://stroy-tehn.ru/
Author: OpenAI
Author URI: https://openai.com
Description: Яркая HTML5 WordPress-тема под длинные экспертные статьи о спецтехнике и строительстве. Главная строится на категориях, затем выводит свежие публикации. Поддерживает микроразметку Article, FAQPage, BreadcrumbList, WebSite и Organization.
Version: 1.1.4
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: heavyjournalpro
*/

:root {
  --bg: #f4f7fb;
  --bg-2: #edf2f8;
  --surface: rgba(255,255,255,.96);
  --surface-2: #ffffff;
  --surface-dark: #0f172a;
  --text: #172131;
  --muted: #617084;
  --line: #dbe3ec;
  --line-2: #c9d4e0;
  --accent: #ff9f1c;
  --accent-2: #ffbf69;
  --accent-dark: #b85f00;
  --blue: #2563eb;
  --blue-soft: #eef4ff;
  --green-soft: #eefcf5;
  --warm: #fff5df;
  --danger-soft: #fff0ec;
  --shadow: 0 18px 50px rgba(15,23,42,.08);
  --shadow-soft: 0 10px 30px rgba(15,23,42,.05);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --container: 1280px;
  --content: 860px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255,159,28,.12), transparent 24%),
    radial-gradient(circle at top right, rgba(37,99,235,.10), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 45%, var(--bg-2) 100%);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.75;
}
body.admin-bar .site-header { top: 32px; }
img { max-width: 100%; display: block; height: auto; }
a { color: #0d5cd5; text-decoration: none; }
a:hover { color: #093f90; }
svg { display: block; }

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
}

.site-shell { min-height: 100vh; }
.hj-wrap { width: min(calc(100% - 28px), var(--container)); margin: 0 auto; }
.site-header {
  position: relative;
  z-index: 20;
  padding-top: 18px;
}
.hj-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px 22px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(219,227,236,.85);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}
.site-branding { min-width: 0; }
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #0f172a;
  font-weight: 900;
  letter-spacing: -.03em;
  font-size: clamp(1.02rem, 2vw, 1.25rem);
}
.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 0 0 7px rgba(255,159,28,.12);
  flex: 0 0 auto;
}
.brand-text small {
  display: block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--muted);
  font-weight: 800;
}
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: #0f172a;
  position: relative;
  content: "";
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.main-navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: .94rem;
  font-weight: 700;
  color: var(--muted);
  transition: .18s ease;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current-menu-parent > a {
  background: rgba(15,23,42,.05);
  color: var(--text);
}
.main-navigation.open { display: block; }

.site-main { padding: 22px 0 70px; }
.site-footer { padding: 0 0 40px; }
.site-footer-inner {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .95rem;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .85fr);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 26px;
}
.hero-card,
.hero-side-card,
.category-showcase,
.recent-section,
.hj-main-card,
.hj-side-card,
.hj-card,
.hj-post-card,
.comments-area,
.widget {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(219,227,236,.9);
  box-shadow: var(--shadow);
  background: var(--surface);
}
.hero-card {
  position: relative;
  overflow: hidden;
  padding: 32px;
  background:
    radial-gradient(circle at 88% 14%, rgba(255,191,105,.10), transparent 18%),
    radial-gradient(circle at 10% 8%, rgba(255,159,28,.12), transparent 18%),
    linear-gradient(135deg, #0f172a 0%, #132238 42%, #193457 100%);
  color: #fff;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
}
.hero-kicker {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 800;
  color: rgba(255,255,255,.72);
}
.hero-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent-2);
  box-shadow: 0 0 0 8px rgba(255,191,105,.14);
}
.hero-title {
  margin: 16px 0 14px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -.05em;
}
.hero-text {
  max-width: 730px;
  font-size: 1.02rem;
  line-height: 1.78;
  color: rgba(255,255,255,.82);
  margin: 0;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
}
.hero-btn--primary {
  background: linear-gradient(135deg, var(--accent), #ffb44c);
  color: #281500;
}
.hero-btn--secondary {
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: #fff;
}
.hero-side-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}
.metric-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.metric-box {
  background: linear-gradient(180deg, #fff, #f8fbff);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}
.metric-box strong {
  display: block;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -.03em;
  margin-bottom: 6px;
}
.metric-box span {
  color: var(--muted);
  font-size: .88rem;
  font-weight: 600;
}
.category-showcase,
.recent-section,
.hj-main-card,
.hj-side-card,
.hj-card,
.comments-area,
.widget {
  padding: 26px;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.section-title {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}
.section-note {
  margin: 0;
  color: var(--muted);
  font-size: .96rem;
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.category-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-radius: 22px;
  border: 1px solid var(--line);
  padding: 20px;
  background: linear-gradient(180deg, #fff, #f9fbff);
  box-shadow: var(--shadow-soft);
}
.category-card:hover { transform: translateY(-2px); transition: .18s ease; }
.category-pill {
  display: inline-flex;
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: .8rem;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.category-card h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.14;
}
.category-card p { margin: 0; color: var(--muted); font-size: .96rem; }
.category-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
  font-size: .88rem;
  color: var(--muted);
  font-weight: 700;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.hj-post-card,
.hj-list-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hj-post-card h2,
.hj-list-card h2,
.hj-post-card h3,
.hj-list-card h3 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.15;
  letter-spacing: -.03em;
}
.hj-excerpt { margin: 0; color: var(--muted); font-size: .96rem; }
.hj-top-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
}
.hj-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: rgba(255,159,28,.10);
  border: 1px solid rgba(255,159,28,.22);
  color: #935600;
}
.hj-chip--neutral {
  background: #f6f8fb;
  border-color: var(--line);
  color: var(--muted);
}
.hj-list-meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 700;
}
.hj-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}
.hj-side-card { position: relative; }
.hj-sidebar-title,
.widget-title {
  margin: 0 0 14px;
  font-size: 1.08rem;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.hj-breadcrumbs {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: .92rem;
}
.hj-breadcrumbs a { color: var(--muted); }
.hj-breadcrumbs a:hover { color: var(--text); }
.hj-breadcrumbs .sep { margin: 0 8px; opacity: .45; }
.entry-header-standard {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 30px;
  background:
    radial-gradient(circle at 88% 16%, rgba(255,191,105,.20), transparent 25%),
    linear-gradient(135deg, rgba(255,159,28,.16), rgba(255,255,255,.05) 44%),
    linear-gradient(180deg, #111827, #18283c);
  color: #fff;
  box-shadow: 0 18px 54px rgba(15,23,42,.18);
  margin-bottom: 24px;
}
.entry-title,
.article-header h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.03;
  letter-spacing: -.05em;
}
.entry-meta-line {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: rgba(255,255,255,.78);
  margin-top: 12px;
  font-size: .95rem;
}
.hj-prose,
.entry-content,
.entry-summary,
.taxonomy-description {
  color: var(--text);
}
.hj-prose h2,
.entry-content h2,
.taxonomy-description h2 {
  margin: 40px 0 14px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}
.hj-prose h3,
.entry-content h3,
.taxonomy-description h3 {
  margin: 26px 0 12px;
  font-size: 1.32rem;
  line-height: 1.15;
  letter-spacing: -.03em;
}
.hj-prose p,
.entry-content p,
.taxonomy-description p { margin: 0 0 18px; }
.hj-prose ul,
.hj-prose ol,
.entry-content ul,
.entry-content ol { margin: 0 0 22px; padding-left: 22px; }
.hj-prose li + li,
.entry-content li + li { margin-top: 8px; }
.hj-prose img,
.entry-content img { border-radius: 18px; }
.hj-prose hr,
.entry-content hr { border: 0; height: 1px; background: var(--line); margin: 28px 0; }
.hj-prose blockquote,
.entry-content blockquote {
  margin: 28px 0;
  padding: 24px 24px 24px 28px;
  border-left: 4px solid var(--blue);
  background: var(--blue-soft);
  border-radius: 18px;
}
.hj-prose table,
.entry-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  margin: 24px 0 30px;
  font-size: 15px;
}
.hj-prose th,
.hj-prose td,
.entry-content th,
.entry-content td {
  padding: 14px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.hj-prose th:last-child,
.hj-prose td:last-child,
.entry-content th:last-child,
.entry-content td:last-child { border-right: 0; }
.hj-prose tr:last-child td,
.entry-content tr:last-child td { border-bottom: 0; }
.hj-prose th,
.entry-content th {
  background: #f4f7fb;
  text-align: left;
  font-weight: 800;
  color: #0f172a;
}
.hj-prose tr:nth-child(even) td,
.entry-content tr:nth-child(even) td { background: #fcfdff; }
.ab { max-width: var(--content); margin: 0 auto; }
.article-header {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 30px 30px 24px;
  background:
    radial-gradient(circle at 88% 16%, rgba(255,191,105,.20), transparent 24%),
    linear-gradient(135deg, rgba(255,159,28,.14), rgba(255,255,255,.04) 45%),
    linear-gradient(180deg, #0f172a, #18283c 60%, #1f344d 100%);
  color: #fff;
  box-shadow: 0 18px 54px rgba(15,23,42,.18);
  margin: 0 0 26px;
}
.article-header::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
}
.article-header p {
  margin: 12px 0 0;
  color: rgba(255,255,255,.78);
  font-size: .9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
}
.highlight-box,
.quote-box,
.faq-section,
.sources-block,
.hj-callout,
.hj-note-box {
  position: relative;
  border-radius: 20px;
  padding: 22px;
  margin: 28px 0;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.highlight-box,
.hj-note-box {
  background: linear-gradient(180deg, var(--warm), #fffaf1);
  border-color: rgba(255,159,28,.24);
}
.highlight-box::before,
.hj-note-box::before {
  content: "!";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,159,28,.12);
  color: var(--accent-dark);
  font-weight: 900;
}
.quote-box {
  background: var(--blue-soft);
  border-color: rgba(37,99,235,.16);
  padding-left: 28px;
}
.quote-box::before {
  content: "“";
  position: absolute;
  left: 12px;
  top: 4px;
  font-size: 60px;
  line-height: 1;
  color: rgba(37,99,235,.20);
  font-weight: 900;
}
.faq-section,
.sources-block,
.hj-callout {
  background: linear-gradient(180deg, #fbfdff, #f7fbff);
}
.faq-section [itemtype="https://schema.org/Question"] {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 18px 14px;
  margin-bottom: 12px;
}
.faq-section [itemtype="https://schema.org/Question"]:last-child { margin-bottom: 0; }
.faq-section h2 { margin-top: 0; }
.faq-section h3 { margin: 0 0 8px; font-size: 1.08rem; }
.hj-toc {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.hj-toc a {
  display: block;
  border-radius: 12px;
  padding: 11px 12px;
  background: #f8fbff;
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 700;
  line-height: 1.35;
}
.hj-toc a:hover { background: #fff; border-color: var(--line-2); }
.hj-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.hj-nav-posts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.hj-nav-link {
  display: block;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #f9fbff);
}
.hj-nav-link span {
  display: block;
  color: var(--muted);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 800;
  margin-bottom: 8px;
}
.hj-nav-link strong {
  color: var(--text);
  line-height: 1.25;
  font-size: 1rem;
}
.pagination,
.nav-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.page-numbers {
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-weight: 800;
  padding: 0 14px;
}
.page-numbers.current,
.page-numbers:hover { background: #0f172a; color: #fff; border-color: #0f172a; }
.widget ul { margin: 0; padding-left: 18px; }
.widget li + li { margin-top: 8px; }
.comments-area { margin-top: 24px; }
.search-form {
  display: flex;
  gap: 10px;
}
.search-form label { flex: 1 1 auto; }
.search-field,
input[type="text"],
input[type="email"],
input[type="url"],
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 14px 14px;
  font: inherit;
  color: var(--text);
}
button,
input[type="submit"],
.submit {
  border: 0;
  cursor: pointer;
  border-radius: 14px;
  background: #0f172a;
  color: #fff;
  min-height: 48px;
  padding: 0 18px;
  font: inherit;
  font-weight: 800;
}

@media (max-width: 1100px) {
  .hero-grid,
  .hj-grid,
  .categories-grid,
  .posts-grid {
    grid-template-columns: 1fr;
  }
  .hj-related-grid,
  .hj-nav-posts,
  .metric-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  body { font-size: 17px; }
  .hj-header-inner { padding: 14px 16px; }
  .nav-toggle { display: inline-flex; }
  .main-navigation {
    display: none;
    width: 100%;
  }
  .hj-header-inner { flex-wrap: wrap; }
  .main-navigation ul { flex-direction: column; align-items: stretch; }
  .main-navigation a { width: 100%; justify-content: center; }
  .hero-card,
  .hero-side-card,
  .category-showcase,
  .recent-section,
  .hj-main-card,
  .hj-side-card,
  .widget,
  .comments-area { padding: 18px; }
  .hj-related-grid,
  .hj-nav-posts,
  .metric-row { grid-template-columns: 1fr; }
  .hj-prose table,
  .entry-content table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* ===== 1.2 editorial refresh ===== */
.hero-grid--editorial { align-items: stretch; }
.hero-card--visual {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 0% 0%, rgba(255,159,28,.16), transparent 28%),
    radial-gradient(circle at 100% 20%, rgba(37,99,235,.12), transparent 30%),
    linear-gradient(145deg, #ffffff 0%, #fbfdff 58%, #f4f8fd 100%);
}
.hero-card--visual::after {
  content: "";
  position: absolute;
  right: -24px;
  top: -24px;
  width: 180px;
  height: 180px;
  border-radius: 40px;
  background: linear-gradient(135deg, rgba(255,159,28,.08), rgba(255,255,255,0));
  transform: rotate(18deg);
}
.hero-badge-row,
.reading-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}
.hero-chip,
.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.hero-chip {
  background: rgba(15,23,42,.06);
  color: #334155;
}
.eyebrow {
  background: rgba(255,159,28,.12);
  color: #8a4b00;
}
.hero-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
  margin: 20px 0 24px;
}
.hero-mini-card {
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(219,227,236,.95);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
}
.hero-mini-card strong,
.related-block-title {
  display: block;
  font-weight: 800;
  color: #0f172a;
}
.hero-mini-card span {
  display: block;
  margin-top: 6px;
  font-size: .92rem;
  color: var(--muted);
  line-height: 1.5;
}
.hero-side-card--feature {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature-spotlight h2 {
  margin: 10px 0 8px;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.12;
  letter-spacing: -.03em;
}
.feature-art-wrap,
.entry-header-art,
.sidebar-art,
.post-card-art,
.category-visual {
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(219,227,236,.92);
  box-shadow: var(--shadow-soft);
}
.feature-art-wrap { margin-bottom: 14px; }
.feature-art, .sidebar-art img, .post-card-art img, .category-visual img, .entry-header-art img, .sidebar-art { width: 100%; }
.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: #0f172a;
}
.read-more-link::after {
  content: "→";
  transition: transform .18s ease;
}
.read-more-link:hover::after { transform: translateX(3px); }
.category-showcase--rich,
.recent-section--editorial,
.hj-callout--reading {
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.98));
}
.categories-grid--visual {
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
}
.category-card--visual {
  padding: 0;
  overflow: hidden;
}
.category-card-body { padding: 18px 18px 20px; }
.category-inline-link {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 4px;
}
.category-inline-link span {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  font-weight: 800;
}
.category-inline-link a {
  font-weight: 700;
  color: #0f172a;
}
.posts-grid--editorial { gap: 18px; }
.hj-post-card--visual {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}
.post-card-body { padding: 18px 18px 20px; }
.entry-header-standard--visual {
  display: grid;
  grid-template-columns: minmax(240px, .9fr) minmax(0, 1.3fr);
  gap: 20px;
  align-items: center;
  padding: 22px;
  margin-bottom: 26px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: linear-gradient(140deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: var(--shadow-soft);
}
.entry-overline {
  margin: 0 0 12px;
  font-size: .84rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  font-weight: 800;
}
.entry-overline span { color: #0f172a; }
.hj-grid--reading { align-items: start; }
.hj-main-card--reading,
.hj-side-card--plain {
  background: rgba(255,255,255,.96);
}
.hj-side-card--plain { box-shadow: var(--shadow-soft); }
.hj-list-card--visual {
  display: grid;
  grid-template-columns: 92px minmax(0,1fr);
  gap: 14px;
  align-items: start;
}
.mini-art {
  width: 92px;
  height: 72px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
}
.related-block-title {
  margin-bottom: 12px;
  font-size: .95rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.hj-nav-link strong { line-height: 1.35; }
.site-footer .menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
  padding: 0;
}
.site-footer .menu a { color: var(--muted); font-weight: 700; }
.site-footer .menu a:hover { color: #0f172a; }

@media (max-width: 1100px) {
  .categories-grid--visual { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .entry-header-standard--visual { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hero-mini-grid,
  .categories-grid--visual { grid-template-columns: 1fr; }
  .hj-list-card--visual { grid-template-columns: 1fr; }
  .mini-art { width: 100%; height: auto; }
}


.hero-grid--editorial .hero-card * {
  position: relative;
  z-index: 2;
}
.hero-grid--editorial .hero-title,
.hero-grid--editorial .hero-text,
.hero-grid--editorial .hero-mini-card strong,
.hero-grid--editorial .hero-mini-card span,
.hero-grid--editorial .hero-chip,
.hero-grid--editorial .hero-kicker {
  color: #ffffff !important;
}
.hero-grid--editorial .hero-chip {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
}
.hero-grid--editorial .hero-mini-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
}
.hero-grid--editorial .hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,19,35,.18), rgba(10,19,35,.04));
  z-index: 1;
  pointer-events: none;
}
.entry-overline span {
  color: #0f172a;
  font-weight: 800;
}



.hero-grid--editorial .hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,12,24,.06), rgba(6,12,24,.02));
  pointer-events: none;
}
.hero-grid--editorial .hero-badge-row,
.hero-grid--editorial .hero-actions,
.hero-grid--editorial .hero-mini-grid,
.hero-grid--editorial .hero-title,
.hero-grid--editorial .hero-text {
  position: relative;
  z-index: 2;
}
.hero-grid--editorial .hero-title,
.hero-grid--editorial .hero-mini-card strong,
.hero-grid--editorial .hero-mini-card span,
.hero-grid--editorial .hero-btn--secondary,
.hero-grid--editorial .hero-text {
  color: #f8fbff !important;
  text-shadow: none !important;
}
.hero-grid--editorial .hero-kicker {
  color: rgba(248,251,255,.82) !important;
}
.hero-grid--editorial .hero-chip {
  color: #ffffff !important;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
}
.hero-grid--editorial .hero-mini-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: none;
}
.hj-post-thumb {
  display: block;
  margin: -26px -26px 16px;
  border-radius: 22px 22px 0 0;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #e9eef6;
}
.hj-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feature-art-wrap {
  border-radius: 20px;
  overflow: hidden;
  background: #eef3fb;
}
.feature-art {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.entry-header-art {
  min-width: 280px;
  max-width: 360px;
  border-radius: 22px;
  overflow: hidden;
  background: #eef3fb;
}
.entry-header-art img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.mini-art {
  width: 120px;
  min-width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 16px;
  background: #eef3fb;
}
.category-latest {
  display: flex;
  gap: 12px;
  align-items: center;
}
.category-latest-thumb {
  width: 72px;
  min-width: 72px;
  height: 56px;
  object-fit: cover;
  border-radius: 12px;
  background: #eef3fb;
}
.category-latest-copy span {
  display: block;
}
@media (max-width: 900px) {
  .entry-header-art {
    min-width: 100%;
    max-width: 100%;
  }
  .mini-art {
    width: 96px;
    min-width: 96px;
    height: 74px;
  }
}



/* v1.1.3 hard overrides */
.front-page .hero-card,
.home .hero-card,
body.blog .hero-card,
body.home .hero-card {
  background:
    radial-gradient(circle at 90% 12%, rgba(37,99,235,.08), transparent 18%),
    radial-gradient(circle at 8% 8%, rgba(255,159,28,.10), transparent 18%),
    linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%) !important;
  color: #172131 !important;
}
.front-page .hero-card::after,
.home .hero-card::after,
body.blog .hero-card::after,
body.home .hero-card::after {
  display: none !important;
}
.front-page .hero-grid--editorial .hero-title,
.front-page .hero-grid--editorial .hero-text,
.front-page .hero-grid--editorial .hero-kicker,
.front-page .hero-grid--editorial .hero-chip,
.front-page .hero-grid--editorial .hero-mini-card strong,
.front-page .hero-grid--editorial .hero-mini-card span,
.front-page .hero-grid--editorial .hero-btn--secondary,
.home .hero-grid--editorial .hero-title,
.home .hero-grid--editorial .hero-text,
.home .hero-grid--editorial .hero-kicker,
.home .hero-grid--editorial .hero-chip,
.home .hero-grid--editorial .hero-mini-card strong,
.home .hero-grid--editorial .hero-mini-card span,
.home .hero-grid--editorial .hero-btn--secondary,
body.blog .hero-grid--editorial .hero-title,
body.blog .hero-grid--editorial .hero-text,
body.blog .hero-grid--editorial .hero-kicker,
body.blog .hero-grid--editorial .hero-chip,
body.blog .hero-grid--editorial .hero-mini-card strong,
body.blog .hero-grid--editorial .hero-mini-card span,
body.blog .hero-grid--editorial .hero-btn--secondary,
body.home .hero-grid--editorial .hero-title,
body.home .hero-grid--editorial .hero-text,
body.home .hero-grid--editorial .hero-kicker,
body.home .hero-grid--editorial .hero-chip,
body.home .hero-grid--editorial .hero-mini-card strong,
body.home .hero-grid--editorial .hero-mini-card span,
body.home .hero-grid--editorial .hero-btn--secondary {
  color: #172131 !important;
}
.front-page .hero-grid--editorial .hero-kicker,
.home .hero-grid--editorial .hero-kicker,
body.blog .hero-grid--editorial .hero-kicker,
body.home .hero-grid--editorial .hero-kicker {
  color: #8b5b14 !important;
}
.front-page .hero-grid--editorial .hero-chip,
.home .hero-grid--editorial .hero-chip,
body.blog .hero-grid--editorial .hero-chip,
body.home .hero-grid--editorial .hero-chip {
  background: #eef2f7 !important;
  border: 1px solid #d9e1ea !important;
}
.front-page .hero-grid--editorial .hero-mini-card,
.home .hero-grid--editorial .hero-mini-card,
body.blog .hero-grid--editorial .hero-mini-card,
body.home .hero-grid--editorial .hero-mini-card {
  background: #ffffff !important;
  border: 1px solid #e1e8f0 !important;
  box-shadow: 0 8px 24px rgba(15,23,42,.05) !important;
}
.front-page .hero-btn--secondary,
.home .hero-btn--secondary,
body.blog .hero-btn--secondary,
body.home .hero-btn--secondary {
  background: #eef2f7 !important;
  border: 1px solid #d9e1ea !important;
}
.post-cover {
  margin: 0 0 22px;
  border-radius: 24px;
  overflow: hidden;
  background: #eef3fb;
  border: 1px solid #dbe3ec;
  box-shadow: 0 14px 34px rgba(15,23,42,.06);
}
.post-cover img {
  width: 100%;
  height: auto;
  object-fit: cover;
}



/* v1.1.4 related cards + favicon assets */
.hj-related-grid,
.hj-nav-posts {
  align-items: stretch;
}
.hj-list-card--visual,
.hj-nav-link,
.hj-post-card {
  overflow: hidden;
}
.hj-list-card--visual {
  grid-template-columns: 120px minmax(0,1fr);
  gap: 16px;
}
.hj-list-card--visual > div {
  min-width: 0;
}
.hj-list-card--visual h3,
.hj-list-card--visual h2,
.hj-list-card--visual p,
.hj-list-card--visual .hj-top-meta {
  min-width: 0;
}
.hj-list-card--visual h3 a,
.hj-list-card--visual h2 a,
.hj-nav-link strong,
.hj-post-card h2 a {
  display: block;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.hj-list-card--visual .hj-chip,
.hj-post-card .hj-chip {
  max-width: 100%;
  white-space: normal;
}
.mini-art {
  width: 120px;
  min-width: 120px;
  height: 88px;
  display: block;
  flex: 0 0 auto;
}
@media (max-width: 860px) {
  .hj-related-grid,
  .hj-nav-posts {
    grid-template-columns: 1fr;
  }
  .hj-list-card--visual {
    grid-template-columns: 1fr;
  }
  .mini-art {
    width: 100%;
    min-width: 100%;
    height: auto;
    aspect-ratio: 16/9;
  }
}
