:root {
  --btclod-bg: #f4f6f8;
  --btclod-white: #ffffff;
  --btclod-accent: #e10600;
  --btclod-accent-dark: #c10500;
  --btclod-navy: #0b1b33;
  --btclod-navy-2: #0a1628;
  --btclod-text: #1c2a3d;
  --btclod-muted: #6b7c90;
  --btclod-line: #e6ebf1;
  --btclod-shadow: 0 10px 28px rgba(11, 27, 51, 0.07);
  --btclod-radius: 18px;
  --btclod-radius-sm: 12px;
  --btclod-container: 1280px;
  --btclod-header: 72px;
  --btclod-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --btclod-serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.btclod {
  margin: 0;
  font-family: var(--btclod-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--btclod-text);
  background: var(--btclod-bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--btclod-accent);
}

button,
input {
  font-family: inherit;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  color: var(--btclod-navy);
  line-height: 1.2;
}

h1 { font-size: 2.25rem; font-family: var(--btclod-serif); font-weight: 700; }
h2 { font-size: 1.5rem; font-family: var(--btclod-serif); font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 700; }
h4 { font-size: 1.05rem; }
h5 { font-size: 0.95rem; }
h6 { font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }

p { margin: 0 0 1em; }

[hidden] {
  display: none !important;
}

.container {
  width: min(100% - 32px, var(--btclod-container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 1000;
  background: var(--btclod-navy);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

.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;
  width: 1px;
  word-wrap: normal !important;
}

/* Header
-------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--btclod-white);
  border-bottom: 1px solid #eef1f4;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--btclod-header);
  overflow: visible;
}

.site-branding {
  flex: 0 0 auto;
}

.site-branding .custom-logo-link,
.footer-logo .custom-logo-link {
  display: flex;
  align-items: center;
}

.site-branding .custom-logo {
  width: auto;
  height: 34px;
}

.site-title,
.footer-title {
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  color: var(--btclod-navy);
}

.primary-nav {
  flex: 1 1 auto;
  min-width: 0;
  overflow: visible;
}

.primary-menu,
.mobile-menu,
.footer-menu,
.social-links,
.trending-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0 8px;
  flex-wrap: nowrap;
}

.primary-menu > li {
  position: relative;
  flex: 0 0 auto;
}

.primary-menu > .menu-item-has-children {
  display: flex;
  align-items: center;
}

.primary-menu > li > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 24px 12px 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--btclod-navy);
  white-space: nowrap;
}

.primary-menu > li > a:hover,
.primary-menu > .current-menu-item > a,
.primary-menu > .current_page_item > a,
.primary-menu > .current-menu-parent > a,
.primary-menu > .current-menu-ancestor > a {
  color: var(--btclod-navy);
}

.primary-menu > .current-menu-item > a::after,
.primary-menu > .current_page_item > a::after,
.primary-menu > .current-menu-parent > a::after,
.primary-menu > .current-menu-ancestor > a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: 22px;
  height: 3px;
  margin-left: -11px;
  border-radius: 99px;
  background: var(--btclod-accent);
}

.primary-menu .submenu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin: 0 4px 0 -6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--btclod-navy);
  cursor: pointer;
  border-radius: 4px;
}

.primary-menu .submenu-toggle:hover,
.primary-menu .submenu-toggle:focus-visible {
  background: var(--btclod-bg);
}

.submenu-caret {
  display: block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.5;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.primary-menu > .menu-item-has-children:hover > .submenu-toggle .submenu-caret,
.primary-menu > .menu-item-has-children:focus-within > .submenu-toggle .submenu-caret,
.primary-menu > .menu-item-has-children.is-open > .submenu-toggle .submenu-caret,
.mobile-menu .menu-item-has-children.is-open > .submenu-toggle .submenu-caret {
  transform: rotate(180deg);
  opacity: 0.85;
}

.primary-menu .sub-menu {
  position: absolute;
  top: calc(100% - 8px);
  left: 0;
  z-index: 50;
  min-width: 220px;
  margin: 0;
  padding: 10px 0;
  list-style: none;
  background: var(--btclod-white);
  border-radius: 10px;
  box-shadow: 0 14px 36px rgba(11, 27, 51, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.primary-menu > .menu-item-has-children:hover > .sub-menu,
.primary-menu > .menu-item-has-children:focus-within > .sub-menu,
.primary-menu > .menu-item-has-children.is-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.primary-menu .sub-menu a {
  display: block;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--btclod-text);
  white-space: nowrap;
  border-left: 3px solid transparent;
}

.primary-menu .sub-menu a:hover,
.primary-menu .sub-menu a:focus-visible,
.primary-menu .sub-menu .current-menu-item > a {
  background: #f4f6f8;
  color: var(--btclod-accent);
  border-left-color: var(--btclod-accent);
}

.search-toggle,
.nav-toggle,
.nav-close,
.search-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--btclod-navy);
  cursor: pointer;
  border-radius: 10px;
  flex: 0 0 auto;
}

.search-toggle {
  margin-left: auto;
}

.search-toggle:hover,
.nav-toggle:hover,
.nav-close:hover,
.search-close:hover {
  background: var(--btclod-bg);
}

.nav-toggle {
  display: none;
}

/* Mobile drawer + overlay
-------------------------------------------------------------- */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 27, 51, 0.45);
  z-index: 80;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: min(86vw, 360px);
  height: 100%;
  background: #fff;
  box-shadow: 8px 0 32px rgba(11, 27, 51, 0.18);
  transform: translateX(-100%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--btclod-line);
}

.mobile-drawer-title {
  font-weight: 700;
  color: var(--btclod-navy);
}

.mobile-nav {
  flex: 1 1 auto;
  overflow: auto;
}

.mobile-menu {
  overflow: auto;
}

.mobile-menu > li {
  border-bottom: 1px solid #f1f4f7;
}

.mobile-menu .menu-item-has-children {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
}

.mobile-menu a {
  display: block;
  padding: 14px 20px;
  font-weight: 600;
  color: var(--btclod-navy);
}

.mobile-menu .menu-item-has-children > a {
  padding-right: 8px;
}

.mobile-menu .submenu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  border: 0;
  background: transparent;
  color: var(--btclod-navy);
  cursor: pointer;
}

.mobile-menu .submenu-toggle:hover,
.mobile-menu .submenu-toggle:focus-visible {
  background: var(--btclod-bg);
}

.mobile-menu .sub-menu {
  display: none;
  grid-column: 1 / -1;
  list-style: none;
  margin: 0;
  padding: 4px 0 10px;
  background: #f7f9fb;
}

.mobile-menu .menu-item-has-children.is-open > .sub-menu {
  display: block;
}

.mobile-menu .sub-menu a {
  padding: 10px 20px 10px 36px;
  font-size: 14px;
  font-weight: 500;
  color: #3d4c60;
}

.mobile-menu .current-menu-item > a,
.mobile-menu .current-menu-ancestor > a {
  color: var(--btclod-accent);
}

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(11, 27, 51, 0.5);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 20px 20px;
}

.search-overlay-panel {
  position: relative;
  width: min(100%, 640px);
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px 24px;
  box-shadow: var(--btclod-shadow);
}

.search-close {
  position: absolute;
  top: 8px;
  right: 8px;
}

body.nav-open,
body.search-open {
  overflow: hidden;
}

/* Search form
-------------------------------------------------------------- */
.search-form {
  display: flex;
  gap: 8px;
}

.search-field {
  flex: 1;
  height: 48px;
  border: 1px solid var(--btclod-line);
  border-radius: 999px;
  padding: 0 18px;
  font-size: 15px;
  outline: none;
  background: #f8fafc;
}

.search-field:focus {
  border-color: var(--btclod-navy);
  background: #fff;
}

.search-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--btclod-accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.search-submit:hover {
  background: var(--btclod-accent-dark);
}

/* Main layouts
-------------------------------------------------------------- */
.site-main {
  padding: 28px 0 56px;
  flex: 1 0 auto;
}

.home-masthead {
  margin: 0 0 28px;
  padding: 4px 0 22px;
}

.home-masthead .kicker {
  margin: 0 0 10px;
}

.home-h1 {
  margin: 0;
  max-width: none;
  width: 100%;
  font-family: var(--btclod-serif);
  font-size: clamp(2.1rem, 4.4vw, 3.35rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--btclod-navy);
}

.home-h1-rule {
  display: block;
  width: 52px;
  height: 3px;
  margin: 16px 0 0;
  background: var(--btclod-accent);
  border-radius: 999px;
}

.home-layout,
.archive-layout,
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.home-primary,
.archive-primary,
.article-primary {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Hero
-------------------------------------------------------------- */
.hero-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 8px 20px;
  background: var(--btclod-white);
  border-radius: var(--btclod-radius);
  box-shadow: var(--btclod-shadow);
  padding: 16px;
  overflow: hidden;
}

.hero-media {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  min-height: 100%;
  background: #dfe6ee;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  aspect-ratio: 5 / 4;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 20px 16px 8px;
}

.btclod-cat {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--btclod-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 2.4vw, 2.45rem);
  font-family: var(--btclod-serif);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.hero-title a {
  color: var(--btclod-navy);
}

.hero-title a:hover {
  color: var(--btclod-accent);
}

.btclod-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0 0 14px;
  color: var(--btclod-muted);
  font-size: 13px;
}

.btclod-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btclod-meta-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #c5ced8;
}

.hero-excerpt {
  margin: 0 0 22px;
  color: #4a5a6d;
  font-size: 15px;
  line-height: 1.65;
  max-width: 42ch;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--btclod-accent);
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn-pill:hover {
  background: var(--btclod-accent-dark);
}

.btclod-thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0b1b33, #e10600);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  min-height: 160px;
}

/* Latest news
-------------------------------------------------------------- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-title,
.trending-title,
#related-heading {
  margin: 0;
  font-family: var(--btclod-font);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--btclod-navy);
}

.section-link {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--btclod-accent);
}

.section-link:hover {
  color: var(--btclod-accent-dark);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.news-grid-archive {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-grid-related {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-card {
  background: var(--btclod-white);
  border-radius: var(--btclod-radius);
  box-shadow: var(--btclod-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(11, 27, 51, 0.1);
}

.card-media {
  display: block;
  overflow: hidden;
  background: #dfe6ee;
  aspect-ratio: 3 / 2;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.card-media.btclod-thumb-fallback {
  min-height: 0;
}

.card-body {
  padding: 14px 16px 16px;
}

.card-title {
  margin: 0 0 10px;
  font-family: var(--btclod-font);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.card-title a {
  color: var(--btclod-navy);
}

.card-body .btclod-meta {
  margin: 0;
  font-size: 11.5px;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.card-body .btclod-meta svg {
  display: none;
}

/* Trending
-------------------------------------------------------------- */
.trending-card {
  background: var(--btclod-white);
  border-radius: var(--btclod-radius);
  box-shadow: var(--btclod-shadow);
  padding: 22px 20px 12px;
}

.trending-title {
  margin-bottom: 8px;
}

.trending-item {
  display: grid;
  grid-template-columns: 28px 56px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #f0f3f7;
}

.trending-item:last-child {
  border-bottom: 0;
}

.trending-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--btclod-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

.trending-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  background: #dfe6ee;
}

.trending-thumb img {
  width: 56px;
  height: 56px;
  object-fit: cover;
}

.trending-item-title {
  margin: 0 0 4px;
  font-family: var(--btclod-font);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.trending-item-title a {
  color: var(--btclod-navy);
}

.trending-body time {
  color: var(--btclod-muted);
  font-size: 12px;
}

.trending-empty {
  color: var(--btclod-muted);
  font-size: 14px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: calc(var(--btclod-header) + 16px);
}

.categories-card {
  padding-bottom: 14px;
}

.category-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}

.category-item + .category-item {
  margin-top: 4px;
}

.category-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px 9px 12px;
  border-radius: 12px;
  color: var(--btclod-navy);
  transition: background 0.15s ease, color 0.15s ease;
}

.category-link:hover {
  background: #f4f6f8;
  color: var(--btclod-accent);
}

.category-item.is-current .category-link {
  background: #fff3f3;
  color: var(--btclod-accent);
}

.category-name {
  font-size: 14px;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-count {
  flex-shrink: 0;
  min-width: 28px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--btclod-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(225, 6, 0, 0.28);
}

.category-count.is-empty {
  background: #eef2f6;
  color: var(--btclod-muted);
  box-shadow: none;
}

.widget {
  margin-top: 16px;
  background: #fff;
  border-radius: var(--btclod-radius);
  padding: 18px;
  box-shadow: var(--btclod-shadow);
}

.widget-title {
  font-family: var(--btclod-font);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Article / page
-------------------------------------------------------------- */
.article,
.static-page {
  background: #fff;
  border-radius: var(--btclod-radius);
  box-shadow: var(--btclod-shadow);
  padding: 32px 36px 40px;
}

.article-header {
  margin-bottom: 20px;
}

.article-title,
.static-page .page-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.article-hero,
.page-hero {
  margin: 0 0 28px;
  border-radius: 14px;
  overflow: hidden;
}

.article-hero img,
.page-hero img {
  width: 100%;
  height: auto;
}

.entry-content {
  font-size: 17px;
  line-height: 1.75;
  color: var(--btclod-text);
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content h2,
.entry-content h3 {
  color: var(--btclod-navy);
  margin-top: 1.6em;
  margin-bottom: 0.55em;
}

.entry-content h2 {
  font-size: 1.45rem;
}

.entry-content h3 {
  font-size: 1.12rem;
}

.entry-content p {
  margin: 0 0 1.05em;
  color: var(--btclod-text);
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 1.2em;
  padding-left: 1.25em;
  color: var(--btclod-text);
}

.entry-content li {
  margin: 0 0 0.45em;
}

.entry-content a {
  color: var(--btclod-accent);
  text-decoration: underline;
}

.entry-content code {
  font-size: 0.9em;
  background: var(--btclod-bg);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.entry-content blockquote {
  margin: 0 0 1.4em;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--btclod-accent);
  color: var(--btclod-navy);
}

.entry-content blockquote p {
  font-family: var(--btclod-serif);
  font-size: 1.12em;
  line-height: 1.5;
}

.entry-content blockquote cite {
  display: block;
  margin-top: 0.4em;
  font-size: 0.82em;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--btclod-muted);
}

.entry-content hr {
  border: 0;
  height: 1px;
  margin: 2em 0;
  background: var(--btclod-line);
}

.entry-content figure {
  margin: 0 0 1.4em;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.45;
}

.entry-content thead th {
  background: var(--btclod-navy);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
}

.entry-content th,
.entry-content td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--btclod-line);
  vertical-align: top;
}

.entry-content tbody tr:nth-child(even) td {
  background: #f7f9fb;
}

.entry-content tbody tr:hover td {
  background: #fff3f3;
}

.entry-content .wp-block-table {
  overflow-x: auto;
}

.author-box {
  background: #fff;
  border-radius: var(--btclod-radius);
  box-shadow: var(--btclod-shadow);
  padding: 28px 32px 32px;
  border-top: 3px solid var(--btclod-accent);
}

.author-box-kicker {
  margin: 0 0 18px;
  color: var(--btclod-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.author-box-inner {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.author-box-avatar {
  flex: 0 0 auto;
  display: block;
  line-height: 0;
  border-radius: 50%;
}

.author-box-photo,
.author-box-avatar img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--btclod-line);
}

.author-box-body {
  min-width: 0;
  flex: 1;
}

.author-box-name {
  margin: 0 0 10px;
  font-family: var(--btclod-serif);
  font-size: 1.35rem;
  font-weight: 700;
}

.author-box-name a:hover {
  color: var(--btclod-accent);
}

.author-box-bio {
  margin: 0 0 16px;
  color: #243447;
  font-size: 15.5px;
  line-height: 1.7;
}

.author-box-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--btclod-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.author-box-link:hover {
  color: var(--btclod-accent-dark);
}

.author-box-link svg {
  flex-shrink: 0;
}

.page-layout {
  max-width: 860px;
}

.page-header .page-title {
  font-size: 2rem;
}

.archive-layout .page-header {
  margin-bottom: 4px;
}

.kicker {
  margin: 0 0 6px;
  color: var(--btclod-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.archive-description {
  color: var(--btclod-muted);
}

.related-news {
  margin-top: 8px;
}

.navigation.pagination,
.page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  background: #fff;
  color: var(--btclod-navy);
  font-weight: 600;
  box-shadow: var(--btclod-shadow);
}

.page-numbers.current,
a.page-numbers:hover {
  background: var(--btclod-navy);
  color: #fff;
}

.error-404 {
  max-width: 560px;
  margin: 40px auto;
  text-align: center;
  background: #fff;
  border-radius: var(--btclod-radius);
  padding: 40px 28px;
  box-shadow: var(--btclod-shadow);
}

.empty-state {
  background: #fff;
  border-radius: var(--btclod-radius);
  padding: 32px;
  box-shadow: var(--btclod-shadow);
}

/* Footer
-------------------------------------------------------------- */
.site-footer {
  background: var(--btclod-navy-2);
  color: rgba(255, 255, 255, 0.82);
  padding: 22px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 56px;
}

.footer-logo .custom-logo {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-title {
  color: #fff;
}

.footer-menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 0;
}

.footer-menu li:not(:last-child)::after {
  content: "|";
  margin: 0 14px;
  color: rgba(255, 255, 255, 0.28);
}

.footer-menu a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.footer-menu a:hover {
  color: #fff;
}

.social-links {
  display: flex;
  gap: 8px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Responsive
-------------------------------------------------------------- */
@media (max-width: 1360px) and (min-width: 1181px) {
  .primary-menu {
    gap: 0 2px;
  }

  .primary-menu > li > a {
    padding-left: 8px;
    padding-right: 8px;
    font-size: 12.5px;
  }
}

@media (max-width: 1180px) {
  .primary-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-inner {
    justify-content: space-between;
  }

  .site-branding {
    margin-right: auto;
  }
}

@media (max-width: 1023px) {
  .news-grid-archive {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .home-layout,
  .archive-layout,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .hero-card {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 8px 8px 12px;
  }

  .hero-media img {
    min-height: 240px;
    aspect-ratio: 16 / 10;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 16px;
  }

  .footer-brand,
  .social-links {
    justify-self: center;
  }

  .news-grid,
  .news-grid-related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, var(--btclod-container));
  }

  .site-main {
    padding: 16px 0 40px;
  }

  .news-grid,
  .news-grid-archive,
  .news-grid-related {
    grid-template-columns: 1fr;
  }

  .article,
  .static-page {
    padding: 22px 18px 28px;
  }

  .author-box {
    padding: 22px 18px 24px;
  }

  .author-box-inner {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px 16px;
    align-items: center;
  }

  .author-box-body {
    display: contents;
  }

  .author-box-name {
    margin: 0;
  }

  .author-box-bio {
    grid-column: 1 / -1;
    margin: 4px 0 8px;
  }

  .author-box-link {
    grid-column: 1 / -1;
  }

  .author-box-photo,
  .author-box-avatar img {
    width: 72px;
    height: 72px;
  }

  .site-branding .custom-logo {
    height: 30px;
  }

  .search-form {
    flex-direction: column;
  }
}
