.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border: 2px solid transparent;
  font-weight: 700;
  line-height: 1;
  transition: transform var(--transition), background-color var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--secondary);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--secondary-dark);
}

.btn-light {
  background: var(--white);
  color: var(--primary);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
}

.btn-accent {
  background: var(--accent);
  color: var(--primary);
}

.topbar {
  height: var(--topbar-height);
  background: var(--primary);
  color: var(--white);
  font-size: 12px;
}

.topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar-meta,
.topbar-social {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.topbar-social svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: box-shadow var(--transition), transform var(--transition);
}

.site-header.is-sticky {
  box-shadow: 0 8px 18px rgba(10, 35, 66, 0.12);
}

.nav-inner {
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border: 2px solid var(--secondary);
  display: grid;
  place-items: center;
}

.brand-mark svg {
  width: 22px;
  height: 22px;
  stroke: var(--secondary);
}

.brand-title {
  display: block;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 26px;
  line-height: 1;
  color: var(--primary);
}

.brand-subtitle {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: var(--nav-height);
  font-weight: 600;
  color: var(--primary);
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: transparent;
  transition: background-color var(--transition);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.is-active::after {
  background: var(--secondary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--primary);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 32px;
  background: rgba(6, 16, 32, 0.97);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-panel {
  width: min(100%, 420px);
  display: grid;
  gap: 22px;
  text-align: center;
}

.mobile-nav-panel a {
  color: var(--white);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 30px;
}

.mobile-nav-close {
  position: absolute;
  top: 24px;
  right: 24px;
  color: var(--white);
  font-size: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 14px;
}

.ticker {
  display: grid;
  grid-template-columns: 160px 1fr;
  min-height: 48px;
  background: var(--secondary);
  color: var(--white);
}

.ticker-label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  background: var(--primary);
  font-weight: 700;
  letter-spacing: 1.2px;
}

.ticker-track {
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker-list {
  display: inline-flex;
  gap: 48px;
  padding-left: 24px;
  white-space: nowrap;
  animation: ticker-scroll 30s linear infinite;
}

.ticker-item::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 48px;
  background: rgba(255, 255, 255, 0.68);
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.card {
  background: var(--white);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover,
.card:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.domain-card {
  position: relative;
  overflow: hidden;
}

.domain-card::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: var(--secondary);
  transition: background-color var(--transition);
}

.domain-card:hover::before,
.domain-card:focus-within::before {
  background: var(--accent);
}

.domain-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.domain-card-body {
  padding: 24px 24px 28px;
}

.domain-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 16px;
  color: var(--secondary);
}

.domain-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--secondary);
  font-weight: 700;
}

.stat-card {
  padding: 28px 24px;
  border-top: 3px solid transparent;
}

.stat-card:hover,
.stat-card:focus-within {
  border-top-color: var(--secondary);
}

.stat-number {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 64px;
  line-height: 1;
  color: var(--secondary);
}

.pub-card {
  padding: 0 24px 28px;
}

.pub-card-bar {
  height: 4px;
  margin: 0 -24px 22px;
}

.pub-tag,
.news-tag,
.category-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  background: rgba(0, 158, 219, 0.1);
  color: var(--secondary-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

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

.news-large img,
.news-card img {
  width: 100%;
  object-fit: cover;
}

.news-large img {
  height: 300px;
}

.news-stack {
  display: grid;
  gap: 24px;
}

.news-small {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  align-items: stretch;
}

.news-small img {
  height: 160px;
}

.news-card img {
  height: 220px;
}

.news-card-body,
.news-large-body,
.news-small-body {
  padding: 22px;
}

.footer {
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.82);
}

.footer-inner {
  padding: 64px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
}

.footer h4,
.footer h3,
.footer a {
  color: var(--white);
}

.footer-links {
  display: grid;
  gap: 12px;
}

.footer-divider {
  margin-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 18px;
  font-size: 14px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a,
.topbar-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-social svg,
.topbar-social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.filter-btn {
  padding: 12px 18px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--primary);
  font-weight: 700;
}

.filter-btn.is-active {
  border-color: var(--secondary);
  background: rgba(0, 158, 219, 0.08);
  color: var(--secondary-dark);
}

.pub-entry {
  padding: 26px;
}

.pub-entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 14px 0;
  color: var(--text-muted);
  font-size: 14px;
}

.value-card {
  padding: 28px;
}

.value-icon {
  width: 34px;
  height: 34px;
  color: var(--secondary);
  margin-bottom: 14px;
}

.value-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.form-card {
  padding: 30px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--primary);
}
