:root {
  --green-950: #07241f;
  --green-900: #0b2f28;
  --green-800: #114034;
  --green-700: #1a4a3c;
  --green-600: #215848;
  --yellow: #f0c43a;
  --yellow-hover: #e0b42c;
  --ink: #142923;
  --muted: #5d6f68;
  --line: #e6ebe8;
  --paper: #f7f6f2;
  --white: #ffffff;
  --shadow: 0 12px 30px rgba(11, 47, 40, 0.08);
  --radius: 12px;
  --header-h: 88px;
  --header-bg: #ffffff;
  --topbar-h: 40px;
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  min-width: 0;
}

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

svg {
  max-width: 100%;
}

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

button,
input,
select,
textarea {
  font: inherit;
  max-width: 100%;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
  min-width: 0;
}

.topbar {
  background: var(--green-800);
  color: var(--white);
  font-size: 0.82rem;
  height: var(--topbar-h);
}

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

.topbar-contact,
.topbar-social {
  display: flex;
  align-items: center;
  gap: 18px;
}

.topbar a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0.95;
}

.topbar a:hover {
  opacity: 1;
}

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

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

.social-links a {
  width: 22px;
  height: 22px;
  justify-content: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(11, 47, 40, 0.06);
  overflow: visible;
}

body.menu-open {
  overflow: hidden;
}

.site-header .wrap {
  width: min(1360px, calc(100% - 32px));
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: var(--header-h);
  height: auto;
  padding-block: 10px;
  gap: 16px;
  overflow: visible;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand img {
  display: block;
  width: auto;
  height: 56px;
  max-height: 64px;
  max-width: min(280px, 46vw);
  object-fit: contain;
  object-position: left center;
  background: var(--green-900);
  padding: 8px 12px;
  border-radius: 10px;
}

.brand > span {
  display: none;
}

.brand-name {
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
  color: var(--green-800);
  line-height: 1.1;
}

.brand-tag {
  display: block;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  max-width: 210px;
  line-height: 1.25;
  text-transform: none;
}

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.nav > a,
.has-sub > a {
  font-size: 14px;
  font-weight: 700;
  color: var(--green-800);
  padding: 10px 0;
  position: relative;
  white-space: nowrap;
}

.nav > a.active,
.nav > a:hover,
.has-sub > a.active,
.has-sub > a:hover {
  color: var(--yellow);
}

.nav > a.active::after,
.has-sub > a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 2px;
  background: var(--yellow);
}

.has-sub {
  position: relative;
}

.nav-caret {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 5px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  vertical-align: 1px;
  opacity: 0.75;
}

.nav-sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  max-width: 360px;
  padding: 8px 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 16px 32px rgba(11, 47, 40, 0.12);
  z-index: 50;
}

.has-sub:hover > .nav-sub,
.has-sub:focus-within > .nav-sub,
.has-sub.is-open > .nav-sub {
  display: block;
}

.nav-sub a {
  display: block;
  padding: 10px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--green-800);
  white-space: normal;
}

.nav-sub a:hover,
.nav-sub a:focus {
  background: var(--paper);
  color: var(--green-900);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 12px 20px;
  border-radius: 6px;
  transition: 0.2s ease;
}

.btn-yellow {
  background: var(--yellow);
  color: #111;
}

.btn-yellow:hover {
  background: var(--yellow-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-ghost-ink {
  background: transparent;
  color: var(--green-800);
  border: 1.5px solid var(--line);
}

.btn-ghost-ink:hover {
  border-color: var(--green-800);
}

.nav-mobile-cta {
  display: none;
}

.header-cta {
  flex-shrink: 0;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
}

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

.site-header .btn-ghost-ink {
  color: var(--green-800);
  border-color: var(--line);
}

.site-header .btn-ghost-ink:hover {
  border-color: var(--green-800);
}

.hero {
  position: relative;
  min-height: 640px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(8, 32, 28, 0.86) 0%, rgba(8, 32, 28, 0.52) 46%, rgba(8, 32, 28, 0.22) 100%),
    url("../images/home/tractor.jpg") 55% center / cover no-repeat;
  display: flex;
  align-items: center;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  padding: 72px 0 64px;
  width: min(var(--max), calc(100% - 40px));
}

.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 14ch;
}

.hero h1 span {
  color: var(--yellow);
}

.hero-lead {
  margin: 22px 0 28px;
  max-width: 38ch;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-proof svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  fill: currentColor;
}

.hero-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  min-height: 420px;
  text-align: right;
}

.hero-words {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-caption {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  max-width: 18ch;
  opacity: 0.85;
}

.section {
  padding: 72px 0;
  scroll-margin-top: 120px;
}

.search-band,
.cta-band,
.hero,
.page-faq article {
  scroll-margin-top: 120px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
  color: var(--green-900);
}

.link-more {
  color: var(--green-700);
  font-weight: 700;
  white-space: nowrap;
}

.link-more:hover {
  color: var(--green-900);
}

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

.sector-card,
.news-card {
  display: block;
  color: inherit;
}

.sector-card,
.news-card,
.benefit-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sector-card:hover,
.news-card:hover,
.benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(11, 47, 40, 0.12);
}

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

.news-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.home-page .news-card img {
  height: 180px;
  object-fit: cover;
  background: #e8eeea;
}

.sector-body,
.news-body {
  padding: 18px 18px 16px;
}

.icon {
  width: 28px;
  height: 28px;
  color: var(--green-700);
  margin-bottom: 10px;
}

.sector-body h3,
.benefit-card h3,
.news-body h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: var(--green-900);
}

.sector-body p,
.benefit-card p,
.news-body p {
  color: var(--muted);
  font-size: 0.9rem;
}

.news-body p:not(.news-date) {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

.card-arrow {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
  color: var(--green-700);
  font-weight: 800;
}

.search-band {
  background: var(--green-800);
  color: var(--white);
  padding: 64px 0 72px;
  text-align: center;
}

.search-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
}

.search-band p {
  margin: 10px auto 28px;
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.86);
}

.search-bar {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.search-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  border-right: 1px solid var(--line);
  color: var(--ink);
  min-width: 0;
}

.search-field span {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.search-field input,
.search-field select {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  width: 100%;
}

.search-bar .btn {
  border-radius: 0;
  padding-inline: 28px;
  align-self: stretch;
}

.home-page .home-search-bar {
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 12px;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.home-page .home-search-bar .search-field {
  background: var(--white);
  border-radius: 10px;
  border-right: 0;
}

.home-page .home-search-bar .btn {
  border-radius: 10px;
  min-width: 140px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.benefit-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 22px;
  align-items: start;
}

.benefit-card .icon {
  margin: 0;
}

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

.news-fallback {
  width: 100%;
  height: 168px;
  background: #e8eeea;
}

.news-kicker {
  height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 20px 22px;
  background: linear-gradient(160deg, #1a4a3c, #07241f);
  color: var(--white);
}

.news-kicker span {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--yellow);
}

.news-kicker strong {
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-transform: capitalize;
}

.news-date {
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 8px;
}

.news-body h3 {
  line-height: 1.3;
}

.read-more {
  display: inline-block;
  margin-top: 12px;
  color: var(--green-700);
  font-weight: 700;
}

.cta-band {
  position: relative;
  min-height: 380px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(8, 32, 28, 0.82) 0%, rgba(8, 32, 28, 0.35) 70%),
    url("../images/cta.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
}

.cta-band .wrap {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  padding: 72px 0;
}

.cta-band h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  max-width: 16ch;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.cta-band p {
  max-width: 42ch;
  margin: 16px 0 24px;
  color: rgba(255, 255, 255, 0.9);
}

.cta-words {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer {
  background: var(--green-950);
  color: rgba(255, 255, 255, 0.82);
  padding: 0;
  font-size: 0.88rem;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) auto auto;
  gap: 32px 48px;
  align-items: center;
  padding: 36px 0 28px;
}

.footer-brand img {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 10px;
}

.footer-brand p {
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
}

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

.footer-nav a {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
}

.footer-nav a:hover {
  color: var(--yellow);
}

.footer-social {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
}

.footer-social a {
  display: inline-flex;
  width: 22px;
  height: 22px;
  color: var(--white);
}

.footer-social a:hover {
  color: var(--yellow);
}

.footer-social svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.58);
}

.footer-legal .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: var(--green-900);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 50;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.directory-shortcuts {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 22px;
  font-weight: 700;
}

.directory-shortcuts a {
  color: var(--yellow);
}

.directory-shortcuts a:hover {
  color: var(--white);
}

.directory-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--yellow);
}

.directory-page .search-bar {
  grid-template-columns: 1.3fr 1fr 1fr 1fr auto;
}

.directory-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.directory-tabs button {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--green-800);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  cursor: pointer;
  white-space: normal;
  max-width: 100%;
}

.directory-tabs button.is-active {
  background: var(--green-800);
  color: var(--white);
  border-color: var(--green-800);
}

.directory-status {
  color: var(--muted);
  margin-bottom: 18px;
  font-weight: 600;
}

.companies-grid,
.browse-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.company-card-link {
  display: block;
  color: inherit;
}

.company-card,
.browse-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.company-media,
.detail-image-wrap {
  position: relative;
  aspect-ratio: 640 / 360;
  width: 100%;
  background: var(--white);
  box-sizing: border-box;
  padding: 18px 22px;
  overflow: hidden;
}

.company-media img,
.detail-image-wrap img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.company-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-700);
  font-size: 2.4rem;
  font-weight: 800;
}

.detail-image-wrap {
  border-radius: 10px;
  margin: 12px 0 16px;
}

.company-card-body,
.browse-card {
  padding: 16px 18px 18px;
}

.browse-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 110px;
}

.browse-card span,
.company-meta,
.company-brands {
  color: var(--muted);
  font-size: 0.88rem;
}

.company-brands {
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.empty-state {
  color: var(--muted);
}

.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.page-btn {
  min-width: 40px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--green-800);
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}

.page-btn.is-active {
  background: var(--green-800);
  color: var(--white);
  border-color: var(--green-800);
}

.page-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.company-drawer {
  position: fixed;
  inset: 0;
  background: rgba(7, 36, 31, 0.45);
  z-index: 60;
  display: none;
  justify-content: flex-end;
}

.company-drawer:not([hidden]) {
  display: flex;
}

.company-drawer-panel {
  width: min(520px, 100%);
  height: 100%;
  background: var(--white);
  overflow: auto;
  padding: 56px 28px 40px;
  position: relative;
}

.drawer-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  background: var(--paper);
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
}

.directory-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.directory-toolbar .directory-status {
  margin-bottom: 0;
}

.sort-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-field {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.directory-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--line);
  border-top-color: var(--green-700);
  border-radius: 50%;
  display: none;
  animation: spin 0.7s linear infinite;
}

.directory-toolbar.is-loading .directory-spinner {
  display: inline-block;
}

.directory-toolbar.is-loading .sort-field select,
.directory-results.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.sort-field select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--white);
  color: var(--ink);
}

.detail-head {
  padding-bottom: 6px;
}

.company-drawer-panel h2 {
  font-size: clamp(1.45rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--green-950);
  line-height: 1.2;
  margin: 0 0 8px;
}

.detail-sub {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.detail-tagline {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.detail-list {
  display: grid;
  gap: 0;
  margin: 20px 0 8px;
  border-top: 1px solid var(--line);
}

.detail-list > div {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.detail-list dt {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green-900);
  margin-bottom: 5px;
}

.detail-list dd {
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.detail-list a {
  color: var(--green-700);
  font-weight: 500;
}

.detail-heading {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green-900);
  margin: 0 0 10px;
}

.detail-section {
  margin-top: 22px;
}

.brand-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.brand-chips a,
.brand-chips span {
  background: var(--paper);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--green-800);
}

.detail-copy {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.65;
}

.detail-copy p,
.detail-copy li,
.detail-copy strong,
.detail-copy b {
  font-weight: 500;
}

.detail-copy p {
  margin-bottom: 10px;
}

body.drawer-open {
  overflow: hidden;
}

.apply-body .wrap {
  max-width: 820px;
}

.apply-form {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 28px 32px;
  min-width: 0;
}

.apply-form fieldset {
  border: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
  margin-bottom: 28px;
}

.apply-form legend {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 12px;
}

.apply-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.apply-field-wide {
  grid-column: 1 / -1;
}

.apply-field span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.apply-field input,
.apply-field select,
.apply-field textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  width: 100%;
}

.apply-field textarea {
  resize: vertical;
  min-height: 120px;
}

.apply-field input:focus,
.apply-field select:focus,
.apply-field textarea:focus {
  outline: 2px solid var(--green-700);
  outline-offset: 1px;
}

.apply-honeypot {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.apply-note,
.apply-error {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.apply-note a {
  color: var(--green-800);
  font-weight: 700;
}

.apply-error {
  color: #8a2b2b;
  font-weight: 700;
}

.apply-form .btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.apply-success {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 32px;
}

.apply-success h2 {
  font-size: 1.7rem;
  color: var(--green-950);
  margin-bottom: 10px;
}

.apply-success p {
  color: var(--muted);
  margin-bottom: 22px;
}

.combo {
  position: relative;
}

.combo-input {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  width: 100%;
}

.combo-input:focus {
  outline: 2px solid var(--green-700);
  outline-offset: 1px;
}

.combo-list {
  position: absolute;
  z-index: 8;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 240px;
  overflow: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.combo-option {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
}

.combo-option:hover {
  background: #f3f7f5;
}

.combo-empty {
  padding: 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.combo-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  min-height: 0;
}

.combo-tag {
  border: 0;
  background: var(--paper);
  color: var(--green-800);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.combo-tag span {
  margin-left: 6px;
  color: var(--muted);
}

.logo-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 180px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 16px;
  cursor: pointer;
  text-align: center;
}

.logo-drop.is-over,
.logo-drop.has-file {
  border-color: var(--green-700);
}

.logo-drop img {
  width: min(100%, 320px);
  height: auto;
  aspect-ratio: 640 / 360;
  object-fit: contain;
  background: #fff;
}

.logo-drop span {
  color: var(--muted);
  font-size: 0.88rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}

.blog-page .blog-body {
  padding-top: 40px;
}

.blog-page-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--green-900);
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}

.page-with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 40px;
  align-items: start;
}

.site-sidebar-stack,
.blog-side .site-sidebar-stack {
  display: grid;
  gap: 14px;
}

.sidebar-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
}

.sidebar-card img {
  width: 100%;
  height: auto;
  display: block;
}

.sidebar-card:hover {
  border-color: var(--green-700);
}

.ads-band {
  background: var(--paper);
  padding: 48px 0;
}

.ads-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.ads-grid a {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
}

.ads-grid img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
}

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

.blog-grid + .pager {
  margin-top: 28px;
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 48px;
  align-items: start;
}

.blog-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.blog-row-cats {
  grid-column: 1 / -1;
  color: var(--green-700);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.blog-row-media img,
.blog-row-fallback {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: #fff;
  display: block;
}

.blog-row-body h2 {
  font-size: 1.15rem;
  line-height: 1.25;
  margin-bottom: 6px;
  color: var(--green-950);
}

.blog-row-body .blog-row-excerpt {
  color: var(--muted);
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-row-date {
  margin-top: 12px;
  text-align: right;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.blog-widget {
  margin-bottom: 32px;
}

.blog-widget h3 {
  border-left: 4px solid var(--green-700);
  padding-left: 10px;
  margin-bottom: 16px;
  font-size: 1rem;
  color: var(--green-900);
}

.blog-recent {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.blog-recent img,
.blog-recent .blog-row-fallback {
  width: 96px;
  height: auto;
  object-fit: contain;
  background: #fff;
}

.blog-recent strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.86rem;
  line-height: 1.3;
  color: var(--ink);
}

.blog-side-empty {
  color: var(--muted);
  font-size: 0.88rem;
}

.blog-recent em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  color: var(--muted);
  font-size: 0.75rem;
}

.blog-cats a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
}

.blog-cats a.is-active,
.blog-cats a:hover {
  color: var(--green-700);
}

.blog-article {
  max-width: none;
}

.blog-back {
  border: 0;
  background: transparent;
  color: var(--green-700);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  margin-bottom: 18px;
  padding: 0;
}

.blog-hero-img {
  width: 100%;
  height: min(420px, 52vw);
  object-fit: cover;
  object-position: center;
  background: #e8eeea;
  border-radius: 10px;
  margin-bottom: 18px;
}

.blog-article h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--green-950);
  letter-spacing: -0.03em;
  margin: 8px 0 18px;
}

.blog-content {
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.7;
}

.blog-content p,
.blog-content ul,
.blog-content ol,
.blog-content figure {
  margin-bottom: 14px;
}

.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.blog-content h2,
.blog-content h3 {
  color: var(--green-900);
  margin: 22px 0 10px;
}

.page-hero {
  padding: 36px 0 8px;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--green-950);
  letter-spacing: -0.03em;
}

.page-hero p {
  color: var(--muted);
  max-width: 720px;
  margin-top: 10px;
  line-height: 1.6;
}

.page-prose {
  max-width: 800px;
}

.page-prose h2 {
  color: var(--green-900);
  font-size: 1.25rem;
  margin: 28px 0 10px;
}

.page-prose p,
.page-prose li {
  color: var(--ink);
  line-height: 1.7;
  margin-bottom: 12px;
}

.page-prose ul {
  padding-left: 20px;
}

.page-faq {
  display: grid;
  gap: 18px;
}

.page-faq article {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.page-faq h2 {
  font-size: 1.05rem;
  color: var(--green-900);
  margin-bottom: 8px;
}

.page-faq p,
.page-faq li {
  color: var(--ink);
  line-height: 1.65;
}

.page-faq ul {
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.links-block {
  margin-bottom: 36px;
}

.links-block h2 {
  color: var(--green-900);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.links-block p {
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.55;
}

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

.links-grid a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--green-800);
  font-weight: 600;
  font-size: 0.92rem;
}

.links-grid a:hover {
  color: var(--green-950);
}

.links-grid span {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
}

.sitios-lead {
  color: var(--muted);
  max-width: 72ch;
  margin: -6px 0 22px;
  line-height: 1.6;
}

.page-tabs {
  margin-bottom: 18px;
}

.location-card {
  position: relative;
  display: block;
  min-height: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #12352d;
  color: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.location-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.location-card-body {
  position: absolute;
  inset: auto 0 0;
  padding: 36px 16px 16px;
  background: linear-gradient(transparent, rgba(7, 36, 31, 0.88));
}

.location-card-body strong {
  display: block;
  font-size: 1rem;
  line-height: 1.25;
}

.location-card-body span {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.82);
}

.location-card:hover {
  transform: translateY(-3px);
}

.admin-page .site-header .wrap {
  grid-template-columns: 1fr auto;
}

.admin-login-wrap {
  max-width: 460px;
}

.admin-form {
  margin-top: 22px;
  display: grid;
  gap: 16px;
}

.admin-status {
  color: #9b3b2e;
  font-weight: 600;
  min-height: 1.2em;
}

.admin-list {
  display: grid;
  gap: 16px;
}

.admin-list .pager {
  grid-column: 1 / -1;
  margin-top: 8px;
}

.admin-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
}

.admin-card h2 {
  color: var(--green-900);
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.admin-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-card .admin-message {
  color: var(--ink);
  margin-top: 10px;
  line-height: 1.5;
}

.admin-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-who {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green-800);
}

.admin-you {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.admin-user-form {
  margin: 8px 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.admin-user-form .apply-field-wide,
.admin-user-form .admin-status,
.admin-user-form .btn {
  grid-column: 1 / -1;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.admin-toolbar {
  display: grid;
  gap: 16px;
  margin: 8px 0 22px;
}

.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-filters button {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--green-900);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.admin-filters button.is-active {
  background: var(--green-800);
  color: var(--white);
  border-color: var(--green-800);
}

.admin-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 12px;
  align-items: end;
}

#admin-blog .admin-tools {
  grid-template-columns: minmax(0, 1fr) auto;
}

.admin-search,
.admin-sort {
  display: grid;
  gap: 6px;
}

.admin-search span,
.admin-sort span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.admin-search input,
.admin-sort select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  font-weight: 500;
  background: var(--white);
  color: var(--ink);
}

.admin-page .admin-card h2 {
  font-weight: 600;
}

.admin-page .admin-card p {
  font-weight: 500;
}

.admin-status-pill {
  display: inline-block;
  margin: 0 0 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: #ece8e0;
  color: #5c564c;
}

.admin-status-pill.is-pending {
  background: #fff3c4;
  color: #6a4b00;
}

.admin-status-pill.is-publish {
  background: #d7efe4;
  color: #0b3d2e;
}

.admin-status-pill.is-rejected {
  background: #f8d4ce;
  color: #8a2a1d;
}

.admin-status-pill.is-expired,
.admin-status-pill.is-draft,
.admin-status-pill.is-private {
  background: #ece8e0;
  color: #5c564c;
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(7, 36, 31, 0.55);
}

.admin-modal:not([hidden]) {
  display: flex;
}

.admin-modal-panel {
  position: relative;
  width: min(920px, 100%);
  max-height: min(90vh, 920px);
  overflow: auto;
  background: var(--white);
  border-radius: 18px;
  padding: 56px 32px 32px;
  box-shadow: 0 24px 64px rgba(7, 36, 31, 0.28);
  font-weight: 500;
}

.admin-modal-panel h2 {
  font-weight: 700;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  letter-spacing: -0.02em;
  color: var(--green-950);
  line-height: 1.2;
  margin: 0 0 8px;
}

.admin-modal-panel .detail-sub,
.admin-modal-panel .detail-tagline {
  font-weight: 500;
  color: var(--muted);
}

.admin-modal-panel .detail-list dt,
.admin-modal-panel .detail-heading {
  font-weight: 700;
}

.admin-modal-panel .detail-list dd,
.admin-modal-panel .detail-list a,
.admin-modal-panel strong,
.admin-modal-panel b,
.admin-modal-panel .detail-copy,
.admin-modal-panel .detail-copy p,
.admin-modal-panel .detail-copy li,
.admin-modal-panel .detail-copy a {
  font-weight: 500;
}

.admin-modal-panel .detail-copy,
.admin-modal-panel .detail-copy p,
.admin-modal-panel .detail-copy li {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
}

.admin-modal-panel .btn {
  font-weight: 800;
}

.admin-post-form {
  display: grid;
  gap: 22px;
  margin-top: 4px;
}

.admin-article-note {
  margin: 0;
  padding: 12px 14px;
  background: #eef6f1;
  border: 1px solid #d7efe4;
  border-radius: 10px;
  color: var(--green-900);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
}

.admin-article-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.admin-field {
  display: grid;
  gap: 8px;
}

.admin-field > span,
.admin-article-date span {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green-900);
}

.admin-field-hint {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.4;
}

.admin-input,
.admin-article-date input,
.admin-tag-row,
.admin-editor {
  width: 100%;
  border: 2px solid #cfd8d3;
  border-radius: 10px;
  background: #fffdf8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.admin-input,
.admin-article-date input {
  padding: 12px 14px;
  font: inherit;
  font-weight: 500;
  color: var(--ink);
}

.admin-input:focus,
.admin-article-date input:focus,
.admin-tag-row:focus-within,
.admin-editor:focus-within {
  outline: 0;
  border-color: var(--green-700);
  box-shadow: 0 0 0 3px rgba(26, 74, 60, 0.12);
}

.admin-input-title {
  font-size: 1.35rem;
  font-weight: 700;
  min-height: 56px;
}

.admin-article-date {
  display: grid;
  gap: 8px;
  min-width: 210px;
}

.admin-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-height: 52px;
  padding: 10px 12px;
}

.admin-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-tag,
.admin-tag-suggest {
  border: 0;
  border-radius: 999px;
  padding: 7px 12px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.admin-tag {
  background: #d7efe4;
  color: #0b3d2e;
}

.admin-tag span {
  margin-left: 6px;
}

.admin-tag-suggest {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--green-800);
}

.admin-tag-row input {
  flex: 1 1 160px;
  border: 0;
  background: transparent;
  min-width: 160px;
  font: inherit;
  font-size: 1rem;
  padding: 6px 4px;
}

.admin-tag-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-editor {
  overflow: hidden;
  background: #fffdf8;
}

.admin-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px;
  background: #f3efe6;
  border-bottom: 2px solid #cfd8d3;
}

.admin-editor-toolbar button {
  border: 1px solid #cfd8d3;
  background: var(--white);
  border-radius: 8px;
  padding: 8px 12px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.admin-editor-canvas {
  min-height: 340px;
  padding: 22px 24px;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.75;
  outline: none;
}

.admin-editor-canvas p,
.admin-editor-canvas li {
  font-weight: 500;
  margin-bottom: 10px;
}

.admin-editor-canvas h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 16px 0 10px;
}

.admin-field textarea.admin-input {
  min-height: 96px;
  resize: vertical;
}

.admin-modal-panel .detail-list {
  grid-template-columns: 1fr 1fr;
  column-gap: 28px;
}

.admin-modal-panel .detail-wide {
  grid-column: 1 / -1;
}

.admin-expiry p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 12px;
}

.admin-expiry-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}

.admin-expiry-row label {
  display: grid;
  gap: 6px;
  min-width: min(220px, 100%);
}

.admin-expiry-row label span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.admin-expiry-row input {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 500;
}

.admin-modal-actions {
  margin-top: 28px;
  justify-content: flex-start;
}

body.admin-modal-open {
  overflow: hidden;
}

.inst-hero {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(8, 32, 28, 0.88) 0%, rgba(8, 32, 28, 0.62) 58%, rgba(8, 32, 28, 0.28) 100%),
    url("../images/hero-alt.jpg") center/cover no-repeat;
  padding: 72px 0 56px;
}

.inst-hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 14ch;
}

.inst-lead {
  margin: 16px 0 28px;
  max-width: 52ch;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.6;
}

.inst-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 180px));
  gap: 16px;
  margin-bottom: 28px;
}

.inst-facts strong {
  display: block;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.inst-facts span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  font-weight: 600;
}

.inst-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.inst-jumps a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
}

.inst-jumps a:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--yellow);
  color: var(--yellow);
}

.inst-body {
  padding-top: 48px;
}

.inst-page .site-sidebar,
.sitios-page .site-sidebar,
.edu-page .site-sidebar,
.home-page .site-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.inst-main {
  display: grid;
  gap: 56px;
  min-width: 0;
}

.inst-intro-grid,
.inst-offer-grid,
.inst-mvo,
.inst-list-grid {
  display: grid;
  gap: 16px;
}

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

.inst-card,
.inst-offer,
.inst-mvo article,
.inst-list-grid article,
.inst-incentives li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.inst-card {
  padding: 22px 20px 20px;
}

.inst-kicker {
  color: var(--green-700);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.inst-card h2,
.inst-block h2 {
  color: var(--green-950);
  letter-spacing: -0.03em;
}

.inst-card h2 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.inst-card p,
.inst-offer p,
.inst-mvo p,
.inst-steps span,
.inst-block .section-head p,
.inst-incentives p {
  color: var(--muted);
  line-height: 1.6;
}

.inst-block .section-head {
  margin-bottom: 22px;
}

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

.inst-offer {
  overflow: hidden;
}

.inst-offer img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.inst-offer div {
  padding: 18px;
}

.inst-offer h3,
.inst-mvo h3,
.inst-steps strong {
  color: var(--green-900);
  margin-bottom: 6px;
}

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

.inst-mvo article {
  padding: 24px 20px;
}

.inst-mvo span {
  display: block;
  color: var(--yellow);
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.inst-mvo h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.inst-steps {
  list-style: none;
  display: grid;
  gap: 12px;
  counter-reset: inst-step;
}

.inst-steps li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 4px;
  align-items: start;
  padding: 16px 18px;
  background: var(--paper);
  border-radius: var(--radius);
  counter-increment: inst-step;
}

.inst-steps li::before {
  content: counter(inst-step);
  grid-row: 1 / span 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--green-800);
  color: var(--white);
  border-radius: 50%;
  font-weight: 800;
}

.inst-steps li strong,
.inst-steps li span {
  grid-column: 2;
  min-width: 0;
}

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

.inst-list-grid article {
  padding: 16px 18px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
}

.inst-incentives {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
  padding: 28px;
  background: var(--paper);
  border-radius: 16px;
}

.inst-incentives h2 {
  margin: 6px 0 12px;
}

.inst-incentives .btn {
  margin-top: 18px;
}

.inst-incentives ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.inst-incentives li {
  padding: 14px 16px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
}

.sitios-page .inst-hero {
  background:
    linear-gradient(90deg, rgba(8, 32, 28, 0.88) 0%, rgba(8, 32, 28, 0.62) 58%, rgba(8, 32, 28, 0.28) 100%),
    url("../images/tepui.jpg") center/cover no-repeat;
}

.edu-page .inst-hero {
  background:
    linear-gradient(90deg, rgba(8, 32, 28, 0.88) 0%, rgba(8, 32, 28, 0.62) 58%, rgba(8, 32, 28, 0.28) 100%),
    url("../images/sector-industrial.jpg") center/cover no-repeat;
}

.sitios-main {
  min-width: 0;
}

.sitios-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
}

.sitios-lead {
  margin: 0;
  max-width: 64ch;
}

.sitios-count {
  color: var(--green-800);
  font-weight: 800;
  white-space: nowrap;
}

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

.sitios-card {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.4;
  min-width: 0;
}

.sitios-card .sitios-name {
  font-weight: 600;
  min-width: 0;
  overflow-wrap: anywhere;
}

.sitios-card .sitios-go {
  color: var(--green-700);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.sitios-card:hover {
  border-color: var(--green-700);
  color: var(--green-900);
}

.sitios-card.is-plain {
  box-shadow: none;
}

.contact-page .inst-hero {
  background:
    linear-gradient(90deg, rgba(8, 32, 28, 0.88) 0%, rgba(8, 32, 28, 0.62) 58%, rgba(8, 32, 28, 0.28) 100%),
    url("../images/hero-alt.jpg") center/cover no-repeat;
}

.contact-page .inst-hero h1 {
  max-width: none;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.75fr);
  gap: 28px;
  align-items: start;
}

.contact-aside {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 24px 8px;
}

.contact-aside h2 {
  font-size: 1.05rem;
  color: var(--green-900);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.contact-facts {
  display: grid;
  gap: 16px;
  margin: 0 0 16px;
}

.contact-facts div {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.contact-facts div:last-child {
  border-bottom: 0;
}

.contact-facts dt {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.contact-facts dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.contact-facts a {
  color: var(--green-800);
}

.contact-facts a:hover {
  color: var(--green-900);
}

.edu-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.edu-actions .btn {
  margin-top: 0;
}

.home-hero {
  position: relative;
  overflow: hidden;
  background: var(--white);
  min-height: 360px;
  padding: 56px 0 72px;
}

.home-hero-photo {
  position: absolute;
  inset: 0 0 0 36%;
  background: url("../images/home/hero.jpg") 62% center / cover no-repeat;
}

.home-hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.94) 16%, rgba(255, 255, 255, 0.42) 46%, transparent 70%);
}

.home-hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(240px, 0.7fr);
  gap: 40px;
  align-items: start;
}

.home-crumb {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 22px;
}

.home-crumb span {
  margin: 0 8px;
  color: #c5cdc8;
}

.home-hero h1 {
  font-size: clamp(2.35rem, 5vw, 3.55rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: #111;
  max-width: 15ch;
}

.home-lead {
  margin-top: 18px;
  max-width: 40ch;
  color: var(--muted);
  font-size: 1.02rem;
}

.home-hero-side {
  justify-self: end;
  margin-top: 72px;
  padding: 18px 22px 16px;
  text-align: right;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.1);
}

.home-hero-side p {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #111;
  line-height: 1.55;
}

.home-hero-side p + p {
  margin-top: 2px;
}

.home-hero-side p:last-child {
  position: relative;
  display: inline-block;
  margin-left: auto;
  padding-bottom: 12px;
}

.home-hero-side p:last-child::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 48px;
  height: 4px;
  background: var(--yellow);
}

.home-feed {
  padding-top: 28px;
}

.home-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.home-cats button {
  border: 0;
  background: #f0f3f1;
  color: var(--green-900);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
}

.home-cats button.is-active {
  background: var(--green-950);
  color: var(--white);
}

.home-featured {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 28px;
  margin-bottom: 56px;
}

.home-featured-main,
.home-story {
  display: block;
  color: inherit;
  min-width: 0;
}

.home-featured-main img,
.home-story img,
.home-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #e8eeea;
}

.home-featured-main img {
  height: min(380px, 42vw);
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
}

.home-featured-side {
  display: grid;
  gap: 28px;
}

.home-story img {
  height: 168px;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
}

.home-kicker {
  margin: 14px 0 8px;
  color: var(--green-700);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-featured-main h3 {
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #111;
  margin-bottom: 10px;
}

.home-story h3,
.home-mini h3 {
  font-size: 1.12rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #111;
}

.home-excerpt {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 62ch;
}

.home-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.88rem;
}

.home-meta span:last-child {
  color: var(--green-800);
  font-weight: 700;
}

.home-latest-head {
  margin-bottom: 22px;
}

.home-latest-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 22px;
  align-items: start;
}

.home-latest {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.home-mini {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  min-width: 0;
}

.home-mini img {
  height: 168px;
  object-fit: cover;
  object-position: center;
}

.home-mini-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px 16px;
  flex: 1;
}

.home-mini .home-kicker {
  margin: 0;
}

.home-mini time {
  color: var(--muted);
  font-size: 0.8rem;
}

.home-mini h3 {
  font-size: 1rem;
}

.home-mini-arrow {
  margin-top: auto;
  align-self: flex-end;
  color: var(--green-800);
  font-weight: 800;
}

.home-newsletter {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px 24px;
  align-items: center;
  background: var(--green-800);
  color: var(--white);
  border-radius: 16px;
  padding: 32px 36px;
}

.home-newsletter svg {
  width: 32px;
  height: 32px;
  fill: var(--yellow);
}

.home-newsletter h3 {
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.home-newsletter > p,
.home-newsletter > div p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}

.home-newsletter form {
  display: flex;
  gap: 10px;
  min-width: min(360px, 100%);
}

.home-newsletter input[type="email"] {
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--white);
  color: var(--ink);
}

.home-newsletter .btn {
  width: auto;
  flex-shrink: 0;
  justify-content: center;
}

.home-newsletter-note {
  grid-column: 1 / -1;
  margin-top: 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.62);
}

.home-newsletter.is-done {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
}

.home-subscribe {
  padding-top: 0;
}

.home-rail {
  padding-top: 64px;
}

.home-main {
  display: grid;
  gap: 64px;
  min-width: 0;
}

.home-page .page-with-sidebar .home-newsletter {
  grid-template-columns: auto 1fr;
}

.home-page .page-with-sidebar .home-newsletter form,
.home-page .page-with-sidebar .home-newsletter-note {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
}

@media (min-width: 981px) {
  .home-page .home-rail .benefits-grid,
  .home-page .home-rail .news-grid {
    grid-template-columns: 1fr;
  }
}

.home-newsletter.is-done h3 {
  margin-bottom: 8px;
}

.home-topics {
  padding: 56px 0 72px;
  background: #f6f7f5;
}

.home-topics h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
  color: #111;
  margin-bottom: 26px;
}

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

.home-topic-row a {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 84px;
  padding: 18px 18px 18px 16px;
  border: 1px solid #eceeea;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(11, 47, 40, 0.04);
  font-weight: 700;
  color: #111;
}

.home-topic-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #eef4f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home-topic-row svg {
  width: 22px;
  height: 22px;
  color: var(--green-700);
}

.home-topic-row em {
  font-style: normal;
  color: var(--green-700);
  font-weight: 800;
}

.home-empty {
  grid-column: 1 / -1;
  color: var(--muted);
  padding: 20px 0;
}

.home-featured-main:hover h3,
.home-story:hover h3,
.home-mini:hover h3,
.home-topic-row a:hover {
  color: var(--green-800);
}

.home-topic-row a:hover {
  transform: translateY(-2px);
}

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

  .header-cta {
    padding: 10px 14px;
    font-size: 0.78rem;
  }

  .site-header .wrap {
    grid-template-columns: 1fr auto auto;
  }

  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .nav.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--header-bg);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 24px;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    max-height: calc(100dvh - var(--header-h) - var(--topbar-h));
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav.is-open > a,
  .nav.is-open .has-sub > a {
    font-size: 0.95rem;
    white-space: normal;
    padding: 12px 0;
  }

  .nav.is-open .has-sub:hover > .nav-sub,
  .nav.is-open .has-sub:focus-within > .nav-sub {
    display: none;
  }

  .nav.is-open .has-sub > .nav-sub {
    display: none;
    position: static;
    min-width: 0;
    max-width: none;
    box-shadow: none;
    padding: 0 0 8px 12px;
    background: transparent;
  }

  .nav.is-open .has-sub.is-open > .nav-sub,
  .nav.is-open .has-sub.is-open:hover > .nav-sub,
  .nav.is-open .has-sub.is-open:focus-within > .nav-sub {
    display: block;
  }

  .nav.is-open .nav-sub a {
    padding: 10px 8px;
    font-size: 0.88rem;
  }

  .nav.is-open .nav-mobile-cta {
    display: inline-flex;
    margin-top: 12px;
    align-self: flex-start;
    background: var(--yellow);
    color: #111;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 12px 18px;
    border-radius: 6px;
  }

  .brand img {
    height: 52px;
    max-width: min(220px, 48vw);
    padding: 6px 10px;
  }
}

@media (max-width: 1100px) {
  .sectors-grid,
  .benefits-grid,
  .news-grid,
  .companies-grid,
  .browse-grid,
  .inst-intro-grid,
  .inst-mvo,
  .ads-grid,
  .home-latest,
  .home-topic-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-featured,
  .home-latest-wrap,
  .home-hero .wrap {
    grid-template-columns: 1fr;
  }

  .home-hero-photo {
    inset: auto 0 0 0;
    height: 46%;
  }

  .home-hero-photo::before {
    background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.7) 24%, transparent 70%);
  }

  .home-hero {
    padding-bottom: 140px;
  }

  .home-hero-side {
    padding-top: 8px;
    text-align: left;
  }

  .home-hero-side p:last-child {
    margin-left: 0;
  }

  .home-hero-side p:last-child::after {
    right: auto;
    left: 0;
  }

  .footer-main {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .footer-social {
    justify-content: center;
  }

  .home-newsletter {
    grid-column: 1 / -1;
    grid-template-columns: auto 1fr;
  }

  .home-newsletter form,
  .home-newsletter-note {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
  }

  .search-bar,
  .directory-page .search-bar,
  .home-page .home-search-bar {
    grid-template-columns: 1fr 1fr;
  }

  .search-bar .btn {
    grid-column: 1 / -1;
    width: 100%;
    padding: 14px 20px;
  }

  .hero .wrap {
    grid-template-columns: 1fr;
    padding: 56px 0 48px;
  }

  .hero-side {
    display: none;
  }
}

@media (max-width: 980px) {
  .home-hero-photo {
    display: none;
  }

  .home-hero {
    min-height: 0;
    padding-bottom: 16px;
  }

  .search-bar,
  .directory-page .search-bar,
  .home-page .home-search-bar,
  .apply-form fieldset,
  .blog-layout,
  .page-with-sidebar,
  .blog-row,
  .links-grid,
  .inst-facts,
  .inst-offer-grid,
  .inst-list-grid,
  .inst-incentives,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .search-field {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .home-page .home-search-bar .search-field {
    border-bottom: 0;
  }

  .home-newsletter,
  .home-newsletter form {
    grid-template-columns: 1fr;
  }

  .home-newsletter form {
    flex-direction: column;
  }

  .home-newsletter .btn {
    width: 100%;
  }

  .cta-band .wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-words {
    display: none;
  }

  .topbar-contact span.hide-sm,
  .topbar-social span {
    display: none;
  }

  .directory-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .hero {
    min-height: 0;
  }

  .hero h1,
  .cta-band h2,
  .inst-hero h1 {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: min(var(--max), calc(100% - 28px));
  }

  .site-header .wrap {
    width: calc(100% - 20px);
    gap: 8px;
    padding-block: 8px;
    grid-template-columns: 1fr auto;
  }

  .header-cta {
    display: none;
  }

  .brand img {
    height: 44px;
    max-width: min(168px, 58vw);
    padding: 5px 8px;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
  }

  .topbar {
    font-size: 0.75rem;
    height: auto;
    min-height: var(--topbar-h);
    padding: 8px 0;
  }

  .topbar-social {
    display: none;
  }

  .topbar .wrap {
    justify-content: center;
  }

  .sectors-grid,
  .benefits-grid,
  .news-grid,
  .companies-grid,
  .browse-grid,
  .inst-intro-grid,
  .inst-mvo,
  .ads-grid,
  .blog-grid,
  .sitios-grid,
  .home-latest,
  .home-topic-row {
    grid-template-columns: 1fr;
  }

  .home-featured-main img,
  .home-story img {
    height: 210px;
  }

  .section,
  .search-band,
  .cta-band .wrap,
  .ads-band {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .section-head {
    flex-direction: column;
    align-items: start;
  }

  .link-more {
    white-space: normal;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .cta-band .btn,
  .edu-actions .btn {
    width: 100%;
  }

  .footer-legal .wrap {
    flex-direction: column;
    text-align: center;
  }

  .inst-hero {
    padding: 40px 0 32px;
  }

  .inst-incentives {
    padding: 22px;
  }

  .sitios-head {
    flex-direction: column;
    align-items: start;
  }

  .sitios-count {
    white-space: normal;
  }

  .apply-form {
    padding: 20px 16px 24px;
  }

  .company-drawer-panel {
    padding: 48px 18px 32px;
  }

  .admin-card,
  .admin-card-actions,
  .admin-user-form {
    grid-template-columns: 1fr;
  }

  .directory-tabs,
  .page-tabs {
    flex-direction: column;
  }

  .directory-tabs button,
  .page-tabs button {
    width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
  }

  .inst-jumps a {
    max-width: 100%;
  }

  .sitios-page .inst-jumps {
    display: none;
  }

  .inst-offer-grid {
    grid-template-columns: 1fr;
  }
}

.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 35;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--yellow);
  color: #111;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(11, 47, 40, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.back-to-top:hover {
  background: var(--yellow-hover);
}

.admin-page [hidden] {
  display: none !important;
}

.admin-page .wrap {
  min-width: 0;
}

.admin-login .btn {
  width: 100%;
}

.admin-page .section-head h1 {
  font-size: clamp(1.35rem, 4.5vw, 2.1rem);
  overflow-wrap: anywhere;
}

.admin-page .admin-card,
.admin-page .admin-card > div {
  min-width: 0;
}

.admin-page .admin-card h2,
.admin-page .admin-message {
  overflow-wrap: anywhere;
}

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

.admin-page .page-tabs button {
  width: 100%;
  text-align: center;
  white-space: nowrap;
  padding: 10px 8px;
}

@media (max-width: 900px) {
  .admin-page .site-header .wrap {
    grid-template-columns: minmax(0, 1fr) auto;
    width: min(1360px, calc(100% - 20px));
    gap: 10px;
  }

  .admin-page .brand img {
    height: 44px;
    max-width: min(180px, 46vw);
  }

  .admin-page .admin-who {
    max-width: 30vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .admin-page .admin-header-actions .btn {
    padding: 8px 12px;
    font-size: 0.72rem;
  }

  .admin-page .section {
    padding-top: 28px;
    padding-bottom: 40px;
  }

  .admin-page .admin-card,
  .admin-page .admin-card-actions,
  .admin-page .admin-user-form {
    grid-template-columns: 1fr;
  }

  .admin-page .admin-card-actions {
    justify-content: stretch;
  }

  .admin-page .admin-card-actions .btn {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
  }

  .admin-page .page-tabs {
    flex-direction: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-page .page-tabs button {
    font-size: 0.78rem;
    white-space: normal;
    line-height: 1.25;
  }

  .admin-page .apply-form {
    padding: 18px 14px 22px;
  }

  .admin-page .admin-modal {
    padding: 10px;
    align-items: stretch;
  }

  .admin-page .admin-modal-panel {
    width: 100%;
    max-height: 100%;
    border-radius: 14px;
    padding: 52px 18px 28px;
  }

  .admin-page .admin-filters button {
    flex: 1 1 calc(50% - 8px);
    text-align: center;
  }

  .admin-page .admin-tools {
    grid-template-columns: 1fr;
  }

  .admin-page .admin-modal-panel .detail-list {
    grid-template-columns: 1fr;
  }

  .admin-page .admin-expiry-row {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-page .admin-expiry-row .btn {
    width: 100%;
  }

  .admin-page .admin-post-grid,
  .admin-page .admin-article-top {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }
}
