/* Tokens */
:root {
  --bg: #edf1f3;
  --bg-deep: #d8e0e6;
  --surface: #ffffff;
  --surface-soft: #f6f8f9;
  --surface-strong: #e4ebef;
  --text: #1f2930;
  --muted: #56636d;
  --muted-strong: #33414d;
  --line: #ccd5dc;
  --line-strong: #a7b3be;
  --primary: #203746;
  --primary-soft: #e4ebf0;
  --primary-deep: #142530;
  --accent: #8a6a3d;
  --accent-soft: #f2ece1;
  --shadow-sm: 0 10px 28px rgba(20, 31, 40, 0.055);
  --shadow-md: 0 18px 38px rgba(20, 31, 40, 0.075);
  --radius-sm: 12px;
  --radius: 20px;
  --container: 1160px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.86), transparent 28%),
    linear-gradient(180deg, #f8fafb 0%, #f1f4f6 18%, var(--bg) 100%);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

input,
button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(35, 56, 71, 0.24);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

body.is-locked {
  overflow: hidden;
}

/* Layout */
.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.header-inner,
.footer-inner,
.hero-grid,
.service-tools,
.resources-grid,
.support-panel {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding: 2.75rem 0 4.75rem;
}

.section-muted {
  border-top: 1px solid rgba(174, 185, 194, 0.55);
  border-bottom: 1px solid rgba(174, 185, 194, 0.55);
  background: linear-gradient(180deg, rgba(245, 247, 248, 0.9), rgba(232, 237, 240, 0.76));
}

.page-shell {
  transition: filter 0.18s ease, opacity 0.18s ease;
}

body.is-locked .page-shell {
  filter: blur(10px) saturate(0.8);
  opacity: 0.34;
  pointer-events: none;
  user-select: none;
}

/* Typography */
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
.brand-name,
.footer-title {
  font-family: "Baskerville", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}

h1,
h2,
h3,
h4 {
  line-height: 1.14;
  color: var(--primary-deep);
}

h1 {
  margin-bottom: 0.4rem;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}

h4 {
  margin-bottom: 0.25rem;
  font-size: 1.25rem;
}

.eyebrow {
  margin-bottom: 0.65rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand-kicker,
.brand-subtitle,
.hero-subtitle,
.hero-text,
.section-heading p,
.group-heading p,
.service-card p,
.support-panel p,
.resource-card p,
.site-footer p,
.hero-facts dd {
  color: var(--muted);
}

/* Reusable */
.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: var(--primary-deep);
  color: #fff;
}

.skip-link:focus {
  top: 1rem;
}

.button,
.card-button,
.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.button:hover,
.button:focus-visible,
.card-button:hover,
.card-button:focus-visible,
.copy-button:hover,
.copy-button:focus-visible {
  transform: translateY(-1px);
}

.button {
  min-height: 3rem;
  padding: 0.75rem 1.3rem;
}

.button-primary,
.card-button-primary {
  border: 1px solid transparent;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 18px rgba(35, 56, 71, 0.14);
}

.button-primary:hover,
.button-primary:focus-visible,
.card-button-primary:hover,
.card-button-primary:focus-visible {
  background: var(--primary-deep);
}

.button-secondary {
  border: 1px solid rgba(174, 185, 194, 0.85);
  background: rgba(255, 255, 255, 0.72);
  color: var(--primary-deep);
}

.card-button,
.copy-button {
  min-height: 2.7rem;
  padding: 0.7rem 1rem;
}

.copy-button {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--muted-strong);
  cursor: pointer;
}

.copy-button.is-copied {
  border-color: rgba(35, 56, 71, 0.26);
  background: var(--primary-soft);
  color: var(--primary-deep);
}

.hero-panel,
.service-card,
.guide-card,
.resource-card,
.support-panel {
  border: 1px solid rgba(174, 185, 194, 0.56);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
}

/* Access gate */
.access-gate {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background:
    linear-gradient(180deg, rgba(20, 37, 48, 0.44), rgba(20, 37, 48, 0.56)),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 48%);
}

body:not(.is-locked) .access-gate {
  display: none;
}

.access-gate-dialog {
  position: relative;
  width: min(100%, 34rem);
  padding: 1.9rem;
  border: 1px solid rgba(174, 185, 194, 0.78);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(252, 253, 253, 0.99), rgba(245, 248, 249, 0.98));
  box-shadow: 0 28px 70px rgba(11, 20, 27, 0.22);
}

.access-gate-dialog::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(90deg, var(--primary-deep), #365266, var(--accent));
}

.access-gate-header {
  padding-bottom: 1.05rem;
  border-bottom: 1px solid rgba(174, 185, 194, 0.42);
}

.access-gate-brand {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.access-gate-brand img {
  width: 4rem;
  height: auto;
}

.access-gate-kicker {
  margin-bottom: 0.28rem;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.access-gate-dialog h2 {
  margin-bottom: 0;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
}

.access-gate-body {
  padding: 1.1rem 0 1rem;
}

.access-gate-text,
.access-gate-note {
  color: var(--muted);
}

.access-gate-text {
  margin-bottom: 0.9rem;
  font-size: 1rem;
}

.access-gate-note {
  margin-bottom: 0;
  padding-left: 0.9rem;
  border-left: 2px solid rgba(138, 106, 61, 0.38);
  font-size: 0.94rem;
}

.access-gate-form {
  display: grid;
  gap: 0.95rem;
  padding-top: 0.15rem;
}

.access-field input {
  min-height: 3.1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
}

.access-submit {
  width: 100%;
  min-height: 3.05rem;
}

.access-feedback {
  min-height: 1.35rem;
  margin-bottom: 0;
  color: #8b2f2f;
  font-size: 0.94rem;
  font-weight: 600;
}

.access-feedback.is-success {
  color: #355a45;
}

/* Institutional band */
.site-banner {
  background: linear-gradient(90deg, #142530, #1d3341);
  color: rgba(255, 255, 255, 0.84);
}

.site-banner-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.55rem 0;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-banner-inner p {
  margin-bottom: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(174, 185, 194, 0.52);
  background: rgba(248, 250, 251, 0.94);
  backdrop-filter: blur(14px);
}

.header-inner {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 1.1rem 0 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 1.05rem;
  text-decoration: none;
}

.brand img {
  width: 4.6rem;
  height: auto;
  flex-shrink: 0;
}

.brand-text {
  display: grid;
  gap: 0.08rem;
}

.brand-kicker {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-name {
  font-size: 1.68rem;
  font-weight: 700;
}

.brand-subtitle {
  max-width: 35rem;
  font-size: 0.98rem;
}

.header-side {
  display: grid;
  justify-items: end;
  gap: 0.45rem;
}

.header-context {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  position: relative;
  color: var(--muted-strong);
  font-weight: 700;
  text-decoration: none;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.25rem;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

/* Notice */
.access-notice {
  padding-top: 1.15rem;
}

.access-notice-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 0.9rem 1.05rem;
  border: 1px solid rgba(138, 106, 61, 0.24);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(242, 236, 225, 0.78), rgba(255, 255, 255, 0.92));
  box-shadow: 0 10px 24px rgba(31, 40, 48, 0.04);
}

.access-notice-inner p {
  margin-bottom: 0;
}

.notice-label {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: rgba(138, 106, 61, 0.12);
  color: #6b512e;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Hero */
.hero {
  padding: 2.1rem 0 3rem;
}

.hero-shell {
  position: relative;
}

.hero-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(228, 235, 240, 0.94), rgba(248, 250, 251, 0.96)),
    linear-gradient(90deg, rgba(35, 56, 71, 0.05), transparent);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.85fr);
  align-items: stretch;
  gap: 2rem;
  padding: 2.65rem;
}

.hero-copy {
  max-width: 46rem;
}

.hero-subtitle {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--muted-strong);
}

.hero-text {
  max-width: 42rem;
  margin-bottom: 0;
  font-size: 1.06rem;
}

.hero-highlights {
  display: grid;
  gap: 0.55rem;
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
}

.hero-highlights li {
  position: relative;
  padding-left: 1rem;
  color: var(--muted-strong);
}

.hero-highlights li::before {
  content: "";
  position: absolute;
  top: 0.62rem;
  left: 0;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 999px;
  background: var(--accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.hero-panel {
  padding: 1.55rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(243, 247, 249, 0.98));
}

.hero-panel-heading {
  margin-bottom: 1rem;
}

.hero-facts {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.hero-facts div {
  padding-top: 1rem;
  border-top: 1px solid rgba(174, 185, 194, 0.45);
}

.hero-facts div:first-child {
  padding-top: 0;
  border-top: 0;
}

.hero-facts dt {
  margin-bottom: 0.2rem;
  font-weight: 700;
  color: var(--primary-deep);
}

.hero-facts dd {
  margin: 0;
}

/* Services */
.section-heading {
  max-width: 52rem;
  margin-bottom: 1.95rem;
}

.section-heading-compact {
  margin-bottom: 0;
}

.service-tools {
  grid-template-columns: minmax(0, 1.5fr) auto;
  align-items: end;
  margin-bottom: 1.1rem;
}

.search-field {
  display: grid;
  gap: 0.5rem;
}

.search-label {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--muted-strong);
}

.search-field input {
  width: 100%;
  min-height: 3rem;
  padding: 0.82rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.search-field input::placeholder {
  color: #7b8791;
}

.filter-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.filter-chip {
  min-height: 2.7rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--muted-strong);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.filter-chip:hover,
.filter-chip:focus-visible {
  border-color: var(--line-strong);
  background: var(--surface-soft);
}

.filter-chip.is-active {
  border-color: rgba(35, 56, 71, 0.16);
  background: var(--primary-soft);
  color: var(--primary-deep);
  box-shadow: inset 0 0 0 1px rgba(35, 56, 71, 0.02);
}

.filter-status,
.no-results {
  margin: 0 0 1.3rem;
  color: var(--muted);
  font-size: 0.96rem;
}

.service-group + .service-group {
  margin-top: 3.25rem;
}

.group-heading {
  max-width: 50rem;
  margin-bottom: 1.35rem;
}

.group-heading p:last-child {
  margin-bottom: 0;
}

/* Server status */
.status-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.82fr);
  gap: 1.5rem;
  align-items: start;
}

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

.status-card,
.status-services-card {
  border: 1px solid rgba(174, 185, 194, 0.56);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

.status-card {
  padding: 1.35rem;
}

.status-card-compact {
  min-height: 100%;
}

.status-services-card {
  padding: 1.4rem;
}

.status-card-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.95rem;
}

.status-card-head h3 {
  margin-bottom: 0;
  font-size: 1.16rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(174, 185, 194, 0.72);
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted-strong);
  font-size: 0.82rem;
  font-weight: 700;
}

.status-pill.status-good {
  background: #e8f0ea;
  border-color: #b6cbbd;
  color: #2f5b42;
}

.status-pill.status-warn {
  background: #f3ede1;
  border-color: #d7c6a3;
  color: #7a5c2c;
}

.status-pill.status-critical {
  background: #f5e6e4;
  border-color: #d8b5af;
  color: #8a3d35;
}

.status-value {
  margin-bottom: 0.65rem;
  color: var(--primary-deep);
  font-family: "Baskerville", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  line-height: 1.05;
}

.status-meter {
  height: 0.7rem;
  margin-bottom: 0.65rem;
  border-radius: 999px;
  background: #e8edf0;
  overflow: hidden;
}

.status-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #496579, #2e495b);
}

.status-meter span.status-warn {
  background: linear-gradient(90deg, #a27e43, #7f6333);
}

.status-meter span.status-critical {
  background: linear-gradient(90deg, #a14a40, #7f342d);
}

.status-help,
.status-updated,
.status-fallback {
  margin-bottom: 0;
  color: var(--muted);
}

.status-help {
  font-size: 0.95rem;
}

.service-health-list {
  display: grid;
  gap: 0.7rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.service-health-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(174, 185, 194, 0.34);
}

.service-health-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.service-health-list strong {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  padding: 0.1rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(174, 185, 194, 0.72);
  font-size: 0.8rem;
  font-weight: 700;
}

.service-health-list strong.status-good {
  background: #e8f0ea;
  border-color: #b6cbbd;
  color: #2f5b42;
}

.service-health-list strong.status-warn {
  background: #f3ede1;
  border-color: #d7c6a3;
  color: #7a5c2c;
}

.service-health-list strong.status-critical {
  background: #f5e6e4;
  border-color: #d8b5af;
  color: #8a3d35;
}

.status-fallback {
  margin-top: 0.85rem;
  color: #8a3d35;
  font-weight: 600;
}

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

.service-card {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
  min-height: 100%;
  padding: 1.45rem;
  border-color: rgba(174, 185, 194, 0.62);
  background:
    linear-gradient(180deg, rgba(248, 250, 251, 0.96), rgba(255, 255, 255, 0.98) 22%);
  transition:
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.service-card:hover,
.service-card:focus-within {
  border-color: rgba(35, 56, 71, 0.18);
  box-shadow: 0 14px 32px rgba(20, 31, 40, 0.07);
}

.card-topline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(174, 185, 194, 0.34);
}

.service-badge,
.service-meta {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
}

.service-badge {
  background: #e8eef2;
  color: var(--primary-deep);
  font-weight: 700;
}

.service-meta {
  border: 1px solid rgba(174, 185, 194, 0.8);
  color: var(--muted);
}

.service-brand {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.service-tagline {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.card-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  align-items: center;
  justify-content: center;
  width: 4.2rem;
  height: 4.2rem;
  flex: 0 0 4.2rem;
  border: 1px solid rgba(174, 185, 194, 0.72);
  border-radius: 16px;
  background: linear-gradient(180deg, #fdfefe, #edf2f4);
  color: var(--primary-deep);
  overflow: hidden;
}

.service-glyph {
  width: 2.55rem;
  height: 2.55rem;
}

.service-glyph * {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-glyph .service-dot {
  fill: currentColor;
  stroke: none;
}

.card-icon-jupyter {
  background: linear-gradient(180deg, #fffaf5, #f1eee7);
  color: #9a6429;
}

.card-icon-webodm {
  background: linear-gradient(180deg, #f8fbfc, #ecf2f2);
  color: #345d66;
}

.card-icon-geoserver {
  background: linear-gradient(180deg, #f8fbf8, #eef4ef);
  color: #3d6a4e;
}

.card-icon-dronedb {
  background: linear-gradient(180deg, #fbfaf7, #f0ece4);
  color: #6e5a36;
}

.card-icon-webmin {
  background: linear-gradient(180deg, #fafbfc, #edf1f4);
  color: #35506b;
}

.card-icon-postgresql {
  background: linear-gradient(180deg, #f9fbfc, #edf2f6);
  color: #415d7a;
}

.card-icon-ssh {
  background: linear-gradient(180deg, #fafbfc, #edf1f4);
  color: #2e4d62;
}

.card-icon-docs {
  background: linear-gradient(180deg, #fafbfc, #edf1f4);
  color: #5a6470;
}

.service-card > p {
  margin-bottom: 0;
  flex-grow: 1;
  font-size: 0.98rem;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: auto;
  padding-top: 0.15rem;
}

/* Guides */
.guide-quicklinks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 0 0 1.45rem;
}

.guide-quicklink {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(174, 185, 194, 0.78);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--muted-strong);
  font-weight: 700;
  text-decoration: none;
}

.guide-quicklink:hover,
.guide-quicklink:focus-visible {
  border-color: var(--line-strong);
  background: var(--surface-soft);
}

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

.guide-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 100%;
  padding: 1.45rem;
  border-color: rgba(174, 185, 194, 0.62);
  background:
    linear-gradient(180deg, rgba(248, 250, 251, 0.96), rgba(255, 255, 255, 0.98) 22%);
}

.guide-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.guide-card-head h3 {
  margin-bottom: 0;
}

.guide-kicker {
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.guide-summary {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.guide-points li {
  position: relative;
  padding-left: 1rem;
  color: var(--muted-strong);
}

.guide-points li::before {
  content: "";
  position: absolute;
  top: 0.62rem;
  left: 0;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 999px;
  background: var(--accent);
}

.guide-card > p {
  margin-bottom: 0;
  color: var(--muted);
}

.guide-card-support {
  grid-column: 1 / -1;
}

.support-contact-block {
  padding: 1rem 1.05rem;
  border: 1px solid rgba(174, 185, 194, 0.46);
  border-radius: 16px;
  background: var(--surface-soft);
}

.support-contact-block p {
  margin-bottom: 0.35rem;
}

.support-contact-block p:last-child {
  margin-bottom: 0;
}

.support-contact-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.card-icon-guide-access {
  background: linear-gradient(180deg, #fafbfc, #edf1f4);
  color: #2f4f63;
}

.card-icon-guide-webodm {
  background: linear-gradient(180deg, #f8fbfc, #ecf2f2);
  color: #345d66;
}

.card-icon-guide-storage {
  background: linear-gradient(180deg, #f9fbfc, #edf2f6);
  color: #51677f;
}

.card-icon-guide-status {
  background: linear-gradient(180deg, #fafbf9, #edf1ee);
  color: #536451;
}

.card-icon-guide-support {
  background: linear-gradient(180deg, #fbfaf7, #f0ece4);
  color: #6c5837;
}

/* Resources */
.resources-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 1.8rem;
}

.resource-panels {
  display: grid;
  gap: 1rem;
}

.resource-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.3rem 1.35rem;
  background: rgba(255, 255, 255, 0.92);
}

.resource-card h3 {
  margin-bottom: 0.35rem;
  font-size: 1.2rem;
}

.resource-card p {
  margin-bottom: 0;
}

.resource-card .card-button {
  margin-top: auto;
}

/* Documentation pages */
.doc-page .section {
  padding-top: 3rem;
}

.doc-card {
  margin-bottom: 1.25rem;
  padding: 1.45rem;
  border: 1px solid rgba(174, 185, 194, 0.56);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

.doc-card h2 {
  margin-bottom: 0.75rem;
}

.doc-list {
  margin: 0;
  padding-left: 1.2rem;
}

.doc-code {
  overflow-x: auto;
  margin: 0.75rem 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f7f8fa;
}

/* Support and footer */
.support-panel {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.75rem;
  padding: 1.7rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 248, 249, 0.98));
}

.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.site-footer {
  padding: 0 0 2.4rem;
  background: linear-gradient(180deg, #dde5ea 0%, #ebf0f2 100%);
}

.footer-inner {
  gap: 1.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(174, 185, 194, 0.75);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(180px, 0.7fr));
  gap: 1.25rem 1.5rem;
}

.footer-title {
  margin-bottom: 0.3rem;
  font-size: 1.12rem;
}

.footer-heading {
  margin-bottom: 0.3rem;
  color: var(--muted-strong);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-copy {
  margin-bottom: 0;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 980px) {
  .header-inner,
  .hero-grid,
  .resources-grid,
  .status-shell,
  .support-panel,
  .service-tools {
    grid-template-columns: 1fr;
  }

  .header-side {
    justify-items: start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .status-grid {
    grid-template-columns: 1fr;
  }

  .guides-grid {
    grid-template-columns: 1fr;
  }

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

  .guide-card-support {
    grid-column: auto;
  }

  .site-nav ul {
    gap: 0.8rem 1rem;
  }
}

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

  .access-gate {
    padding: 0.9rem;
  }

  .access-gate-dialog {
    padding: 1.35rem;
    border-radius: 20px;
  }

  .access-gate-dialog::before {
    border-radius: 20px 20px 0 0;
  }

  .access-gate-brand {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .access-gate-brand img {
    width: 3.25rem;
  }

  .brand {
    align-items: flex-start;
  }

  .brand img {
    width: 4.2rem;
  }

  .brand-name {
    font-size: 1.45rem;
  }

  .hero-grid {
    padding: 1.55rem;
  }

  .hero {
    padding-top: 1.4rem;
  }

  .site-banner-inner {
    font-size: 0.72rem;
  }

  .site-nav ul,
  .guide-quicklinks,
  .hero-actions,
  .card-actions,
  .support-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  .card-button,
  .copy-button {
    width: 100%;
  }

  .card-topline {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
