:root {
  --ink: #14221b;
  --muted: #59675f;
  --forest: #115740;
  --leaf: #2f7a55;
  --teal: #0e7490;
  --gold: #c7922d;
  --clay: #b85a3b;
  --paper: #f7f8f3;
  --mist: #eef4ee;
  --white: #ffffff;
  --line: #d9e1d6;
  --shadow: 0 18px 42px rgba(17, 87, 64, 0.13);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--forest);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--teal);
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 1000;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
}

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

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

.topbar {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.88rem;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 0.35rem;
  gap: 1rem;
  min-height: 38px;
}

.topbar a {
  color: var(--white);
}

.topbar-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.85rem;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0.18rem 0.58rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.8rem;
  font-weight: 750;
}

.lang-link.is-active,
.lang-link:hover,
.lang-link:focus {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 248, 243, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1.4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 240px;
  color: var(--ink);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--white);
  font-weight: 800;
}

.brand-name {
  display: block;
  font-weight: 800;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.brand-subtitle {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.2;
  margin-top: 0.18rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-item {
  position: relative;
}

.nav-link,
.nav-direct {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 44px;
  padding: 0 0.75rem;
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 650;
  white-space: nowrap;
}

.nav-link svg {
  width: 14px;
  height: 14px;
}

.nav-link:hover,
.nav-link:focus,
.nav-direct:hover,
.nav-direct:focus,
.nav-direct[aria-current="page"],
.dropdown a[aria-current="page"] {
  background: var(--mist);
  color: var(--forest);
}

.dropdown {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  width: 260px;
  padding: 0.45rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease;
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown a {
  display: block;
  padding: 0.62rem 0.7rem;
  border-radius: 6px;
  color: var(--ink);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.icon-button svg {
  width: 20px;
  height: 20px;
}

.button,
.button-secondary,
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.72rem 1rem;
  border-radius: var(--radius);
  font-weight: 750;
  border: 1px solid transparent;
  cursor: pointer;
}

.button {
  background: var(--forest);
  color: var(--white);
}

.button:hover,
.button:focus {
  color: var(--white);
  background: #0c4431;
}

.button-secondary {
  background: var(--gold);
  color: var(--ink);
}

.button-secondary:hover,
.button-secondary:focus {
  color: var(--ink);
  background: #d7a13b;
}

.button-ghost {
  color: var(--forest);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.74);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.search-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.search-panel.is-open {
  display: block;
}

.search-panel .container {
  padding: 0.9rem 0;
}

.search-form {
  display: flex;
  gap: 0.65rem;
}

.search-form input,
.field input,
.field textarea,
.field select,
.browse-search {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  padding: 0.72rem 0.82rem;
}

.hero {
  position: relative;
  min-height: min(700px, 78vh);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(8, 37, 25, 0.91) 0%, rgba(8, 37, 25, 0.72) 42%, rgba(8, 37, 25, 0.18) 100%),
    url("../images/veterinary-research-hero.png") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 26%;
  background: linear-gradient(180deg, rgba(247, 248, 243, 0), var(--paper));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
  padding: 4rem 0 6rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 2px;
  background: currentColor;
}

.hero h1 {
  max-width: 820px;
  margin: 0.75rem 0 1rem;
  font-size: clamp(2.25rem, 6vw, 5.6rem);
  line-height: 0.96;
  font-weight: 850;
}

.hero p {
  max-width: 670px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2vw, 1.24rem);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.34rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
}

.section {
  padding: 4.5rem 0;
}

.section-tight {
  padding: 3rem 0;
}

.section-white {
  background: var(--white);
}

.section-mist {
  background: var(--mist);
}

.section-clay {
  background: #f6ebe6;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.6rem;
}

.section-header h2,
.page-hero h1,
.content h2 {
  margin: 0;
  line-height: 1.1;
}

.section-header p,
.page-hero p {
  max-width: 720px;
  margin: 0.6rem 0 0;
  color: var(--muted);
}

.kicker {
  color: var(--clay);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

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

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

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

.card,
.article-card,
.profile-card,
.notice {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 6px 18px rgba(20, 34, 27, 0.05);
}

.card,
.article-card,
.profile-card {
  padding: 1.25rem;
}

.card h3,
.article-card h3,
.profile-card h3 {
  margin: 0 0 0.55rem;
  line-height: 1.2;
}

.card p,
.article-card p,
.profile-card p {
  color: var(--muted);
}

.card p:last-child,
.article-card p:last-child,
.profile-card p:last-child {
  margin-bottom: 0;
}

.card-link {
  display: inline-flex;
  margin-top: 0.75rem;
  font-weight: 800;
}

.accent-top {
  border-top: 4px solid var(--forest);
}

.accent-gold {
  border-top-color: var(--gold);
}

.accent-teal {
  border-top-color: var(--teal);
}

.accent-clay {
  border-top-color: var(--clay);
}

.stat-strip {
  position: relative;
  z-index: 2;
  margin-top: -42px;
}

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

.stat {
  min-height: 120px;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.stat strong {
  display: block;
  color: var(--forest);
  font-size: 1.6rem;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.page-hero {
  padding: 3.7rem 0;
  background:
    linear-gradient(90deg, rgba(238, 244, 238, 0.96), rgba(247, 248, 243, 0.86)),
    url("../images/veterinary-research-hero.png") center 38% / cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumbs a {
  font-weight: 700;
}

.content {
  padding: 3.8rem 0;
}

.content-narrow {
  max-width: 880px;
  margin-inline: auto;
}

.content h2 {
  margin-top: 2.2rem;
  margin-bottom: 0.8rem;
}

.content h2:first-child {
  margin-top: 0;
}

.content h3 {
  margin-top: 1.5rem;
}

.content p,
.content li {
  color: var(--muted);
}

.content ul,
.content ol {
  padding-left: 1.25rem;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(280px, 0.32fr);
  gap: 2rem;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 102px;
  display: grid;
  gap: 1rem;
}

.sidebar .card {
  padding: 1rem;
}

.article-list {
  display: grid;
  gap: 0.9rem;
}

.article-card {
  display: grid;
  gap: 0.45rem;
}

.article-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag,
.article-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: var(--mist);
  color: var(--forest);
  font-size: 0.83rem;
  font-weight: 700;
}

.tag.gold {
  background: #f8ecd0;
  color: #74510d;
}

.tag.clay {
  background: #f7e5df;
  color: #7b321d;
}

.tag.teal {
  background: #e0f2f7;
  color: #07536b;
}

.issue-cover {
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: 1.4rem;
  border-radius: var(--radius);
  background:
    linear-gradient(140deg, rgba(17, 87, 64, 0.96), rgba(14, 116, 144, 0.88)),
    url("../images/veterinary-research-hero.png") center / cover no-repeat;
  color: var(--white);
  text-align: center;
}

.issue-cover strong {
  display: block;
  font-size: 2.2rem;
  line-height: 1;
}

.timeline {
  display: grid;
  gap: 0.8rem;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  padding-left: 1.4rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th,
td {
  padding: 0.85rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--mist);
  color: var(--ink);
}

tr:last-child td {
  border-bottom: 0;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.2rem;
}

.filter-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  font-weight: 700;
}

.filter-button.is-active {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--white);
}

.notice {
  padding: 1.1rem;
  border-left: 4px solid var(--gold);
}

.notice p {
  margin: 0;
}

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

.field {
  display: grid;
  gap: 0.35rem;
}

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

.field label {
  font-weight: 750;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-status {
  margin-top: 1rem;
  color: var(--forest);
  font-weight: 750;
}

.portal-grid,
.frontmatter-grid,
.template-mini-grid {
  display: grid;
  gap: 1rem;
}

.portal-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1.3rem 0 2rem;
}

.portal-card,
.frontmatter-card,
.workflow-step,
.template-meta-card,
.template-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 6px 18px rgba(20, 34, 27, 0.05);
}

.portal-card,
.frontmatter-card,
.template-meta-card,
.template-block {
  padding: 1.25rem;
}

.portal-card h3,
.frontmatter-card h3,
.template-meta-card h3,
.template-block h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.portal-card p,
.frontmatter-card p,
.template-meta-card p,
.template-block p {
  color: var(--muted);
}

.portal-card .button,
.portal-card .button-secondary,
.portal-card .button-ghost {
  width: 100%;
  margin-top: 0.9rem;
}

.template-shell {
  margin-top: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.template-banner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.2rem 1.4rem;
  background: linear-gradient(135deg, rgba(17, 87, 64, 0.98), rgba(14, 116, 144, 0.92));
  color: var(--white);
}

.template-banner p {
  margin: 0.3rem 0 0;
  color: rgba(255, 255, 255, 0.82);
}

.template-journal {
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.template-issue-line {
  font-size: 0.94rem;
  font-weight: 700;
}

.template-content {
  padding: 1.5rem;
}

.template-kicker {
  color: var(--clay);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.template-title {
  margin: 0.55rem 0 0.9rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.08;
}

.template-author-list {
  margin: 0;
  font-weight: 700;
}

.template-affiliations,
.template-correspondence,
.template-license {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.template-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.template-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.26rem 0.62rem;
  border-radius: 999px;
  background: var(--mist);
  color: var(--forest);
  font-size: 0.82rem;
  font-weight: 700;
}

.template-chip.gold {
  background: #f8ecd0;
  color: #74510d;
}

.template-chip.clay {
  background: #f7e5df;
  color: #7b321d;
}

.template-meta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
  gap: 1rem;
  margin-top: 1.25rem;
}

.template-abstract {
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--mist);
}

.template-abstract h3 {
  margin: 0 0 0.45rem;
}

.template-abstract p:last-child {
  margin-bottom: 0;
}

.template-meta-card dl {
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.template-meta-card dt {
  font-weight: 800;
}

.template-meta-card dd {
  margin: 0.18rem 0 0;
  color: var(--muted);
}

.template-mini-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.frontmatter-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

.frontmatter-card ul {
  margin: 0;
  padding-left: 1.15rem;
}

.frontmatter-card li + li {
  margin-top: 0.4rem;
}

.workflow-steps {
  display: grid;
  gap: 1rem;
  counter-reset: proof-step;
  margin-top: 1rem;
}

.workflow-step {
  position: relative;
  padding: 1.15rem 1.15rem 1.15rem 4.2rem;
}

.workflow-step::before {
  counter-increment: proof-step;
  content: counter(proof-step);
  position: absolute;
  left: 1.1rem;
  top: 1.05rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--forest);
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 800;
}

.workflow-step h3 {
  margin: 0 0 0.35rem;
}

.workflow-step p {
  margin: 0;
  color: var(--muted);
}

.guide-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.guide-map .card {
  min-height: 100%;
}

.guide-map .eyebrow,
.guide-shot .eyebrow,
.guide-callout .eyebrow {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.guide-map p,
.guide-section > p,
.guide-shot p,
.guide-callout p {
  color: var(--muted);
}

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.guide-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(17, 87, 64, 0.12);
  color: var(--forest);
  font-size: 0.9rem;
  font-weight: 700;
}

.guide-section {
  scroll-margin-top: 112px;
  margin-top: 1.6rem;
}

.guide-section:first-child {
  margin-top: 0;
}

.guide-section h2 {
  margin-bottom: 0.45rem;
}

.guide-shot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.guide-shot {
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 24px rgba(20, 34, 27, 0.04);
}

.guide-shot h3,
.guide-callout h3 {
  margin: 0 0 0.35rem;
}

.guide-shot ul,
.guide-callout ul {
  margin: 0.7rem 0 0;
  padding-left: 1.1rem;
}

.guide-shot li + li,
.guide-callout li + li {
  margin-top: 0.35rem;
}

.guide-callout {
  margin-top: 1rem;
  padding: 1rem 1.05rem;
  border: 1px solid #d7e3dc;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(238, 244, 238, 0.84), rgba(255, 255, 255, 0.98));
}

.guide-outline {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: guide-outline;
  display: grid;
  gap: 0.65rem;
}

.guide-outline li {
  counter-increment: guide-outline;
}

.guide-outline a {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
  color: var(--ink);
  font-weight: 650;
}

.guide-outline a::before {
  content: counter(guide-outline);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 0.86rem;
  font-weight: 800;
}

.guide-links {
  display: grid;
  gap: 0.65rem;
}

.guide-links a {
  font-weight: 700;
}

.guide-mini-list {
  margin: 0.75rem 0 0;
  padding-left: 1rem;
}

.guide-mini-list li + li {
  margin-top: 0.35rem;
}

.issue-showcase {
  padding: 0 0 2.4rem;
}

.issue-showcase-hero {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: 1.4rem;
  padding: 1.4rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #0c5b86 0%, #1388cb 100%);
  color: var(--white);
}

.issue-showcase-cover {
  display: flex;
  align-items: center;
  justify-content: center;
}

.issue-showcase-cover-card {
  width: 100%;
  max-width: 210px;
  min-height: 280px;
  padding: 1.15rem;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(8, 98, 150, 0.95), rgba(6, 58, 93, 0.98));
  box-shadow: 0 20px 36px rgba(2, 20, 32, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  align-content: end;
}

.issue-showcase-cover-card .mark {
  display: inline-block;
  margin-bottom: auto;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.issue-showcase-cover-card strong {
  display: block;
  font-size: 1.7rem;
  line-height: 1.1;
}

.issue-showcase-cover-card p {
  margin: 0.42rem 0 0;
  color: rgba(255, 255, 255, 0.92);
}

.issue-showcase-kicker {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.issue-showcase-meta h1 {
  margin: 0;
  color: var(--white);
}

.issue-showcase-series {
  margin: 0.55rem 0 0;
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.92);
}

.issue-showcase-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.issue-showcase-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 700;
}

.issue-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.issue-tabs a {
  position: relative;
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
}

.issue-tabs a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.45rem;
  height: 3px;
  border-radius: 999px;
  background: transparent;
}

.issue-tabs a.is-active::after,
.issue-tabs a:hover::after,
.issue-tabs a:focus::after {
  background: rgba(255, 255, 255, 0.94);
}

.issue-sections-layout {
  display: grid;
  grid-template-columns: minmax(210px, 260px) minmax(0, 1fr);
  gap: 1.4rem;
  margin-top: 1.5rem;
}

.issue-nav-card {
  position: sticky;
  top: 102px;
  align-self: start;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 22px rgba(20, 34, 27, 0.05);
}

.issue-nav-card h2 {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.issue-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.issue-nav-list a {
  display: block;
  padding: 0.58rem 0.65rem;
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
  font-weight: 650;
}

.issue-nav-list a:hover,
.issue-nav-list a:focus,
.issue-nav-list a.is-active {
  background: var(--mist);
  color: var(--forest);
}

.issue-sections {
  display: grid;
  gap: 1.2rem;
}

.issue-section {
  scroll-margin-top: 112px;
}

.issue-section > h2 {
  margin: 0 0 0.8rem;
}

.issue-entry {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 1rem;
  padding: 1.1rem;
}

.issue-entry-thumb {
  display: grid;
  align-content: space-between;
  min-height: 92px;
  padding: 0.65rem;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(20, 136, 203, 0.18), rgba(17, 87, 64, 0.12));
  border: 1px solid #d7e3dc;
}

.issue-entry-thumb span {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--teal);
}

.issue-entry-thumb small {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--forest);
}

.issue-entry-body {
  min-width: 0;
}

.issue-entry-body h3 {
  margin: 0 0 0.35rem;
}

.issue-entry-body p {
  margin: 0.3rem 0 0;
}

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
  padding: 3.4rem 0 1.4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
}

.footer-brand {
  color: var(--white);
  font-weight: 850;
  font-size: 1.15rem;
}

.site-footer h2,
.site-footer h3 {
  color: var(--white);
  margin-top: 0;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.86);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.3rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.9rem;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1040px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: 114px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100vh - 114px);
    overflow-y: auto;
    padding: 1rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-item,
  .nav-link,
  .nav-direct {
    width: 100%;
  }

  .dropdown {
    position: static;
    width: 100%;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    box-shadow: none;
    margin: 0.25rem 0 0.55rem;
  }

  .header-actions .button {
    display: none;
  }

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

@media (max-width: 820px) {
  .topbar .container {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    padding: 0.45rem 0;
  }

  .topbar-meta {
    flex-direction: column;
    gap: 0.45rem;
  }

  .brand {
    min-width: 0;
  }

  .brand-subtitle {
    display: none;
  }

  .hero {
    min-height: 650px;
    background-position: 58% center;
  }

  .hero-content {
    padding: 4rem 0 6.5rem;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 12vw, 3.9rem);
  }

  .section-header {
    display: block;
  }

  .grid-2,
  .grid-3,
  .stat-grid,
  .portal-grid,
  .guide-map,
  .guide-shot-grid,
  .issue-showcase-hero,
  .issue-sections-layout,
  .issue-entry,
  .frontmatter-grid,
  .template-mini-grid,
  .template-meta-grid,
  .two-column,
  .footer-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .issue-nav-card {
    position: static;
  }

  .stat-strip {
    margin-top: -26px;
  }

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

@media (max-width: 560px) {
  .container,
  .hero-content {
    width: min(100% - 22px, var(--max));
  }

  .header-inner {
    min-height: 68px;
  }

  .site-nav {
    top: 106px;
    max-height: calc(100vh - 106px);
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .brand-name {
    max-width: 190px;
  }

  .hero {
    min-height: 620px;
  }

  .hero-meta span {
    width: 100%;
  }

  .section {
    padding: 3.4rem 0;
  }

  .button,
  .button-secondary,
  .button-ghost {
    width: 100%;
  }

  .workflow-step {
    padding: 1.1rem;
  }

  .workflow-step::before {
    position: static;
    margin-bottom: 0.8rem;
  }
}

@media print {
  .topbar,
  .site-header,
  .site-footer,
  .page-hero,
  .sidebar,
  .button-row {
    display: none !important;
  }

  body,
  .content,
  .container {
    background: #fff;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .template-shell,
  .template-abstract,
  .template-meta-card,
  .template-block,
  .frontmatter-card,
  .workflow-step {
    box-shadow: none;
  }
}

html[dir="rtl"] body,
html[dir="rtl"] .content,
html[dir="rtl"] .page-hero,
html[dir="rtl"] .site-footer,
html[dir="rtl"] .search-form input,
html[dir="rtl"] .field input,
html[dir="rtl"] .field textarea,
html[dir="rtl"] .field select,
html[dir="rtl"] .browse-search {
  text-align: right;
}

html[dir="rtl"] .header-inner,
html[dir="rtl"] .topbar .container,
html[dir="rtl"] .section-header,
html[dir="rtl"] .footer-bottom {
  direction: rtl;
}

html[dir="rtl"] .brand {
  flex-direction: row-reverse;
}

html[dir="rtl"] .hero-meta,
html[dir="rtl"] .button-row,
html[dir="rtl"] .article-meta,
html[dir="rtl"] .tag-row,
html[dir="rtl"] .lang-switcher {
  justify-content: flex-end;
}

html[dir="rtl"] .breadcrumbs,
html[dir="rtl"] .timeline li {
  direction: rtl;
}

html[dir="rtl"] .dropdown {
  left: auto;
  right: 0;
  text-align: right;
}

html[dir="rtl"] .search-form {
  direction: rtl;
}

html[dir="rtl"] .timeline li {
  padding-left: 0;
  padding-right: 1.4rem;
}

html[dir="rtl"] .timeline li::before {
  left: auto;
  right: 0;
}

html[dir="rtl"] .notice {
  border-left: 0;
  border-right: 4px solid var(--gold);
}

html[dir="rtl"] th,
html[dir="rtl"] td {
  text-align: right;
}
