.wcags-portal-shell {
  --portal-bg: #ffffff;
  --portal-bg-alt: #f8fafc;
  --portal-panel: #ffffff;
  --portal-ink: #0e2237;
  --portal-soft: #4f6984;
  --portal-brand: #00a0dc;
  --portal-brand-strong: #007db2;
  --portal-line: #d6e0eb;
  --portal-line-strong: #b8c8d8;
  --portal-focus: #157db8;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--portal-ink);
  background: linear-gradient(180deg, var(--portal-bg) 0%, var(--portal-bg-alt) 100%);
  border: 1px solid var(--portal-line);
  border-top: 4px solid var(--portal-brand);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 16px 32px rgba(18, 42, 67, 0.08);
  max-width: 1120px;
}

.wcags-portal-hero {
  margin-bottom: 8px;
}

.wcags-portal-hero h2 {
  margin: 0;
  font-size: clamp(1.65rem, 2.45vw, 2.2rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.wcags-portal-hero p {
  margin-top: 10px;
  color: var(--portal-soft);
  font-size: 1rem;
}

.wcags-portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.wcags-portal-card {
  background: #ffffff;
  border: 1px solid var(--portal-line);
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 4px 10px rgba(18, 42, 67, 0.04);
}

.wcags-portal-card h3 {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  letter-spacing: -0.02em;
}

.wcags-portal-form label {
  display: block;
  margin: 12px 0 6px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--portal-soft);
}

.wcags-portal-form input {
  width: 100%;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  padding: 10px 11px;
  color: var(--portal-ink);
  background: #ffffff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.wcags-portal-form input:hover {
  border-color: var(--portal-line-strong);
}

.wcags-portal-form input:focus-visible {
  outline: none;
  border-color: var(--portal-focus);
  box-shadow: 0 0 0 3px rgba(21, 125, 184, 0.18);
}

.wcags-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 14px;
  font-size: 0.9rem;
  color: var(--portal-soft);
}

.wcags-inline input {
  width: auto;
  margin: 0;
}

.wcags-portal-btn {
  display: inline-block;
  background: linear-gradient(130deg, var(--portal-brand-strong), var(--portal-brand));
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
}

.wcags-portal-btn:hover {
  filter: brightness(1.03);
  box-shadow: 0 12px 20px rgba(0, 125, 178, 0.24);
}

.wcags-portal-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(21, 125, 184, 0.2), 0 12px 20px rgba(0, 125, 178, 0.24);
}

.wcags-portal-link {
  margin-left: 10px;
  color: #1b4e73;
  font-weight: 600;
  text-decoration: none;
}

.wcags-portal-link:hover {
  text-decoration: underline;
}

.wcags-portal-notice {
  border: 1px solid var(--portal-line);
  padding: 11px 12px;
  border-radius: 8px;
  margin: 12px 0;
  font-size: 0.92rem;
  font-weight: 600;
}

.wcags-portal-error {
  background: #ffe9e9;
  border-color: #edb9b9;
  color: #8f2222;
}

.wcags-portal-success {
  background: #ecfaee;
  border-color: #bfe8c7;
  color: #1a6640;
}

@media (prefers-contrast: more) {
  .wcags-portal-shell,
  .wcags-portal-card,
  .wcags-portal-form input,
  .wcags-portal-notice {
    border-color: #1c3550;
  }

  .wcags-portal-hero p,
  .wcags-portal-form label,
  .wcags-inline {
    color: #17344c;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wcags-portal-btn,
  .wcags-portal-form input,
  .wcags-portal-link {
    transition: none;
  }

  .wcags-portal-btn:hover,
  .wcags-portal-btn:focus-visible {
    box-shadow: none;
  }
}

@media (max-width: 780px) {
  .wcags-portal-shell {
    padding: 16px;
    border-radius: 14px;
  }

  .wcags-portal-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
