:root {
  --drk-red: #e30613;
  --drk-red-dark: #be0611;
  --drk-text: #1d1d1f;
  --drk-muted: #5f646b;
  --drk-border: #e8e8ea;
  --drk-bg-soft: #f7f7f8;
  --drk-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
  --container: 1240px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--drk-text);
  background: #fff;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(calc(100% - 32px), var(--container)); margin: 0 auto; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.header-topline {
  height: 4px;
  background: var(--drk-red);
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--drk-border);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 92px;
}
.brand-lockup {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 18px;
}
.brand-logo { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo img { max-height: 58px; width: auto; }
.custom-logo-link { display: inline-flex; align-items: center; }
.brand-logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 122px;
  height: 58px;
  border: 1px solid var(--drk-border);
  border-radius: 8px;
  color: var(--drk-muted);
  font-weight: 700;
  font-size: 0.95rem;
}
.brand-divider {
  width: 1px;
  height: 44px;
  background: #cfcfd3;
  flex-shrink: 0;
}
.brand-text {
  min-width: 0;
  max-width: 120px;
}
.brand-site-title {
  display: block;
  font-size: 0.9rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand-association {
  margin-top: 4px;
  color: var(--drk-muted);
  font-size: 0.70rem;
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 14px;
}
.searchform {
  display: flex;
  align-items: center;
  gap: 8px;
}
.search-field {
  width: 230px;
  padding: 11px 13px;
  border: 1px solid var(--drk-border);
  border-radius: 10px;
  font-size: 0.95rem;
}
.search-field:focus {
  outline: none;
  border-color: var(--drk-red);
  box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.12);
}
.search-submit,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 0.95rem;
  font-weight: 700;
  transition: 0.2s ease;
  cursor: pointer;
}
.search-submit,
.button-primary {
  background: var(--drk-red);
  color: #fff;
}
.search-submit:hover,
.button-primary:hover {
  background: var(--drk-red-dark);
}
.button-secondary {
  background: #fff;
  color: var(--drk-text);
  border-color: var(--drk-border);
}
.button-secondary:hover { border-color: var(--drk-red); color: var(--drk-red); }
.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--drk-border);
  background: #fff;
  border-radius: 12px;
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--drk-text);
  margin: 5px auto;
}

.main-nav {
  border-top: 1px solid #f0f0f1;
  border-bottom: 1px solid var(--drk-border);
  background: #fff;
}
.nav-inner { position: relative; }
.primary-menu,
.primary-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-menu {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.primary-menu > li {
  position: relative;
}
.primary-menu > li > a {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 0 20px;
  font-weight: 700;
  font-size: 0.96rem;
  border-bottom: 3px solid transparent;
}
.primary-menu > li:hover > a,
.primary-menu > li.current-menu-item > a,
.primary-menu > li.current-menu-ancestor > a {
  color: var(--drk-red);
  border-bottom-color: var(--drk-red);
  background: linear-gradient(to bottom, rgba(227, 6, 19, 0.02), rgba(227, 6, 19, 0.05));
}
.primary-menu li ul {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  min-width: 280px;
  background: #fff;
  border: 1px solid var(--drk-border);
  border-top: 3px solid var(--drk-red);
  border-radius: 0 0 14px 14px;
  box-shadow: var(--drk-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.18s ease;
  z-index: 40;
}
.primary-menu li:hover > ul,
.primary-menu li:focus-within > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.primary-menu li ul li a {
  display: block;
  padding: 13px 16px;
  color: var(--drk-text);
  font-size: 0.95rem;
  border-bottom: 1px solid #f2f2f3;
}
.primary-menu li ul li:last-child > a { border-bottom: 0; }
.primary-menu li ul li a:hover { background: var(--drk-bg-soft); color: var(--drk-red); }

.hero {
  position: relative;
  min-height: 520px;
  background: linear-gradient(90deg, #f3f4f6 0%, #fafafa 100%);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.82) 35%, rgba(255,255,255,0.18) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 520px;
  padding: 44px 0;
}
.hero-card {
  max-width: 640px;
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 22px;
  padding: 34px;
  box-shadow: var(--drk-shadow);
}
.hero-kicker {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(227, 6, 19, 0.08);
  color: var(--drk-red);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
}
.hero p {
  margin: 0;
  font-size: 1.06rem;
  color: #34363a;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.home-panels,
.news-section,
.content-wrap {
  padding: 48px 0 64px;
}
.panel-grid,
.post-grid,
.footer-grid {
  display: grid;
  gap: 22px;
}
.panel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
.feature-card,
.post-card,
.entry-page,
.entry-single {
  background: #fff;
  border: 1px solid var(--drk-border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}
.feature-card { padding: 24px; }
.feature-card h2,
.feature-card h3 { margin: 0 0 8px; font-size: 1.3rem; }
.feature-card p { margin: 0; color: var(--drk-muted); }
.feature-card-empty {
  text-align: center;
  padding: 36px;
}
.section-heading,
.archive-header,
.entry-header {
  margin-bottom: 22px;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.section-heading h2,
.archive-header h1,
.entry-header h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.section-link {
  color: var(--drk-red);
  font-weight: 700;
}
.post-card {
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.08);
}
.post-card-link { display: block; height: 100%; }
.post-card-media {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #efefef, #f8f8f8);
  overflow: hidden;
}
.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-card-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #f0f0f1, #fafafa); }
.post-card-body { padding: 18px 18px 22px; }
.post-card-meta {
  color: var(--drk-red);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.post-card-title {
  margin: 8px 0 10px;
  font-size: 1.25rem;
  line-height: 1.2;
}
.post-card-excerpt { color: var(--drk-muted); }
.entry-page,
.entry-single { padding: 28px; }
.entry-featured {
  margin: 0 0 22px;
  overflow: hidden;
  border-radius: 12px;
}
.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child { margin-bottom: 0; }
.archive-description { color: var(--drk-muted); max-width: 780px; }
.pagination-wrap { margin-top: 26px; }

.site-footer {
  background: #fff;
  border-top: 1px solid var(--drk-border);
}
.site-footer a:hover { color: var(--drk-red); }
.footer-grid {
  padding: 42px 0;
  align-items: start;
}
.footer-heading {
  margin: 0 0 10px;
  font-size: 0.9rem;
}
.footer-widget-title {
  margin: 0 0 10px;
  font-size: 1.15rem;
}
.footer-text,
.footer-widget,
.footer-menu {
  color: var(--drk-muted);
}
.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-menu li + li { margin-top: 8px; }
.footer-bottom {
  border-top: 1px solid var(--drk-border);
  background: #fff;
}
.footer-bottom-inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--drk-muted);
  font-size: 0.92rem;
}

.not-found-wrap { min-height: 44vh; display: flex; align-items: center; }
.listing-wrap { min-height: 40vh; }

@media (max-width: 1100px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .search-field { width: 180px; }
}

@media (max-width: 960px) {
  .header-row {
    min-height: 82px;
    flex-wrap: wrap;
    padding: 14px 0;
  }
  .header-tools { margin-left: auto; }
  .searchform { display: none; }
  .menu-toggle { display: inline-block; }
  .main-nav { border-top: 0; }
  .primary-menu {
    display: none;
    flex-direction: column;
    padding: 6px 0 14px;
  }
  .primary-menu.is-open { display: flex; }
  .primary-menu > li > a {
    min-height: 0;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f1;
  }
  .primary-menu li ul {
    position: static;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: 0;
    border-top: 0;
    border-radius: 0;
    box-shadow: none;
    display: none;
    padding: 0 0 0 14px;
  }
  .primary-menu li.submenu-open > ul,
  .primary-menu li:hover > ul,
  .primary-menu li:focus-within > ul {
    display: block;
  }
  .hero,
  .hero-inner { min-height: 430px; }
}

@media (max-width: 720px) {
  .container { width: min(calc(100% - 22px), var(--container)); }
  .brand-lockup { gap: 12px; }
  .brand-site-title { font-size: 1.1rem; }
  .brand-association { font-size: 0.88rem; }
  .brand-divider { height: 34px; }
  .brand-logo img,
  .brand-logo-fallback { max-height: 48px; width: auto; }
  .hero-card { padding: 22px; border-radius: 18px; }
  .post-grid { grid-template-columns: 1fr; }
  .footer-bottom-inner,
  .section-heading { flex-direction: column; align-items: flex-start; }
}
