.portal-surface {
  display: grid;
  gap: 28px;
  margin-top: 24px;
}

.portal-grid-top,
.portal-tools-grid,
.portal-spotlight-grid,
.portal-intel-grid,
.portal-compare-results,
.portal-side-stack,
.portal-radar-items,
.portal-guide-items {
  display: grid;
  gap: 18px;
}

.portal-grid-top {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.8fr);
}

.portal-tools-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
}

.portal-news-hero,
.portal-radar,
.portal-compare-card,
.portal-alert-card,
.portal-guide-card,
.portal-intel-section {
  padding: 26px;
}

.portal-news-hero {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.92));
}

html.dark .portal-news-hero {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(15,23,42,0.96), rgba(2,6,23,0.98));
}

.portal-lead-title {
  margin-top: 12px;
  color: #0f172a;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 0.97;
  font-weight: 900;
  letter-spacing: -0.05em;
  max-width: 12ch;
}

html.dark .portal-lead-title,
html.dark .portal-section-title,
html.dark .portal-side-title {
  color: #f8fafc;
}

.portal-lead-summary,
.portal-note {
  margin-top: 16px;
  color: #475569;
  line-height: 1.72;
  font-size: 0.96rem;
}

html.dark .portal-lead-summary,
html.dark .portal-note {
  color: #94a3b8;
}

.portal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: #2563eb;
}

.portal-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #10b981);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.portal-side-title {
  margin-top: 10px;
  font-size: 1.4rem;
  line-height: 1.08;
  font-weight: 800;
  color: #0f172a;
}

.portal-source-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 16px;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700;
}

.portal-source-line a {
  color: #2563eb;
  text-decoration: none;
}

html.dark .portal-source-line {
  color: #94a3b8;
}

.portal-hero-actions,
.portal-alert-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.portal-btn-primary,
.portal-btn-secondary {
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 800;
  transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.portal-btn-primary {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.portal-btn-secondary {
  border: 1px solid #cbd5e1;
  color: #334155;
  background: rgba(255,255,255,0.92);
}

html.dark .portal-btn-secondary {
  border-color: #334155;
  color: #e2e8f0;
  background: rgba(15,23,42,0.92);
}

.portal-btn-primary:hover,
.portal-btn-secondary:hover {
  transform: translateY(-1px);
}

.portal-radar-header,
.portal-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.portal-radar-tag,
.portal-context-pill {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 8px 12px;
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
}

html.dark .portal-radar-tag,
html.dark .portal-context-pill {
  background: #0f172a;
  border-color: #334155;
  color: #cbd5e1;
}

.portal-radar-item,
.portal-guide-item {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 14px;
}

.portal-radar-item:last-child,
.portal-guide-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

html.dark .portal-radar-item,
html.dark .portal-guide-item {
  border-color: #1e293b;
}

.portal-radar-item strong,
.portal-guide-item strong,
.portal-intel-card h3,
.portal-spotlight-card strong,
.portal-compare-result strong {
  display: block;
  color: #0f172a;
}

html.dark .portal-radar-item strong,
html.dark .portal-guide-item strong,
html.dark .portal-intel-card h3,
html.dark .portal-spotlight-card strong,
html.dark .portal-compare-result strong {
  color: #f8fafc;
}

.portal-radar-item p,
.portal-guide-item p,
.portal-intel-card p,
.portal-spotlight-card span {
  margin-top: 6px;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.65;
}

html.dark .portal-radar-item p,
html.dark .portal-guide-item p,
html.dark .portal-intel-card p,
html.dark .portal-spotlight-card span {
  color: #94a3b8;
}

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

.portal-spotlight-card,
.portal-intel-card,
.portal-compare-result,
.portal-methodology-card {
  border: 1px solid #dbe4f0;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,247,251,0.92));
  padding: 20px;
}

html.dark .portal-spotlight-card,
html.dark .portal-intel-card,
html.dark .portal-compare-result,
html.dark .portal-methodology-card {
  border-color: #1e293b;
  background: linear-gradient(180deg, rgba(15,23,42,0.96), rgba(2,6,23,0.98));
}

.portal-spotlight-card em,
.portal-compare-result em {
  font-style: normal;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #64748b;
  font-weight: 800;
}

.portal-spotlight-card strong {
  margin-top: 12px;
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.portal-spotlight-trend.up,
.portal-compare-result.is-best .portal-result-note {
  color: #16a34a;
}

.portal-spotlight-trend.down {
  color: #dc2626;
}

.portal-section-title {
  margin-top: 10px;
  color: #0f172a;
  font-size: 1.55rem;
  line-height: 1.08;
  font-weight: 800;
}

.portal-context-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.portal-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

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

.portal-field span {
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

html.dark .portal-field span {
  color: #cbd5e1;
}

.portal-field input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.98);
  color: #0f172a;
  font-size: 1rem;
  font-weight: 700;
  outline: none;
}

html.dark .portal-field input {
  background: #0f172a;
  border-color: #334155;
  color: #f8fafc;
}

.portal-compare-results {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
}

.portal-compare-result {
  min-height: 100%;
}

.portal-compare-result.is-best {
  border-color: rgba(22, 163, 74, 0.45);
  box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.12);
}

.portal-compare-result strong {
  margin-top: 12px;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.portal-result-lines {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: #64748b;
  font-size: 0.98rem;
}

html.dark .portal-result-lines {
  color: #94a3b8;
}

.portal-result-note {
  margin-top: 16px;
  min-height: 2.6em;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.portal-methodology-card {
  margin-top: 18px;
}

.portal-methodology-card strong {
  color: #0f172a;
  font-size: 0.96rem;
}

.portal-methodology-card p {
  margin-top: 8px;
  color: #64748b;
  line-height: 1.65;
  font-size: 0.92rem;
}

html.dark .portal-methodology-card strong {
  color: #f8fafc;
}

html.dark .portal-methodology-card p {
  color: #94a3b8;
}

.portal-intel-section {
  padding: 26px;
}

.portal-intel-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
}

.portal-intel-card {
  position: relative;
}

.portal-intel-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.portal-intel-meta span {
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html.dark .portal-intel-meta span {
  background: rgba(37, 99, 235, 0.16);
  color: #93c5fd;
}

.portal-intel-source {
  display: inline-block;
  margin-top: 14px;
  color: #2563eb;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .portal-grid-top,
  .portal-tools-grid,
  .portal-spotlight-grid,
  .portal-intel-grid,
  .portal-compare-results {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .portal-news-hero,
  .portal-radar,
  .portal-compare-card,
  .portal-alert-card,
  .portal-guide-card,
  .portal-intel-section {
    padding: 20px;
  }

  .portal-form-grid {
    grid-template-columns: 1fr;
  }
}
