.portal {
  min-height: 100vh;
  background: #f2f6f5;
}
.portal-home {
  padding-top: clamp(50px, 13vw, 150px);
}
.portal-home h1 {
  margin: 0 0 30px;
  font-size: clamp(2.3rem, 6vw, 4.1rem);
  letter-spacing: -.035em;
}
.portal-grid, .scenario-grid, .result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.portal-card {
  --entry-ink: #075b4c;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 236px;
  padding: clamp(20px, 4vw, 39px);
  border: 1px solid #c1d9d0;
  border-top: 4px solid var(--entry-ink);
  border-radius: 14px;
  background: #f7fcf9;
  color: #162b37;
  text-decoration: none;
  white-space: normal;
}
.portal-card:hover {
  box-shadow: 0 6px 22px #142d3318;
  text-decoration: none;
}
.portal-card h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3.25vw, 2.1rem);
}
.portal-card p { margin: 10px 0 24px; }
.portal-card span {
  margin-top: auto;
  border: 1px solid currentColor;
  border-radius: 7px;
  padding: .38rem .72rem;
  color: var(--entry-ink);
  font-weight: 700;
}
.reits-entry {
  --entry-ink: #2e507c;
  background: #f7f9fe;
  border-color: #cad6e6;
  border-top-color: var(--entry-ink);
}
.research-header, .research-header nav {
  white-space: normal;
  flex-wrap: wrap;
}
.market-lookup { margin: 20px 0; }
.case-teaser {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 24px 0;
  padding: clamp(16px, 4vw, 26px);
  border: 1px solid #b8dad0;
  border-radius: 12px;
  background: #eef8f4;
}
.case-teaser h2, .case-teaser p { margin: 0; }
.case-teaser p { margin-top: 6px; }
.research-action {
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 7px;
  padding: .47rem .85rem;
  background: #075b4c;
  color: white;
  font-weight: 700;
  text-decoration: none;
}
.research-action:focus-visible, .portal-card:focus-visible, .scenario-grid input:focus-visible {
  outline: 3px solid #076f61;
  outline-offset: 3px;
}
.scope { color: #415b66; }
.comparison-title { margin: 0 0 8px; }
.comparison-summary {
  padding: 14px 19px;
  border-left: 4px solid #0d7661;
  background: #eef8f4;
}
.comparison-summary p { margin: 0; }
.comparison-summary p + p { margin-top: 8px; }
.comparison-table { overflow: auto; }
.comparison-table table { min-width: 520px; }
.comparison-table th:first-child { width: 24%; }
.scenario-grid fieldset {
  min-inline-size: 0;
  margin: 0;
  padding: 14px 17px;
  border: 1px solid #c9ddda;
  border-radius: 9px;
}
.scenario-grid legend { padding: 0 6px; font-weight: 700; }
.scenario-grid label { font-weight: 600; margin-bottom: 10px; }
.scenario-grid input { display: block; width: 100%; }
.scenario-grid input[type="checkbox"] { display: inline; width: auto; }
.scenario-form button { margin: 13px 0 0; }
.scenario-result { margin-top: 17px; }
.scenario-result h3 { margin: 0 0 5px; }
.scenario-result p { margin: 4px 0; }
.result-grid > div {
  padding: 13px 16px;
  border-radius: 9px;
  background: #f1f6f5;
}
.calculation-status { color: #415b66; }
.calculation-status.error { color: #963c26; }
@media (max-width: 650px) {
  .portal-home { padding-top: 52px; }
  .portal-grid, .scenario-grid, .result-grid { grid-template-columns: 1fr; }
  .portal-card { min-height: 172px; }
  .case-teaser { flex-direction: column; align-items: flex-start; gap: 12px; }
}

.market-section-nav { margin-bottom: 17px; }
.market-brief {
  padding: clamp(17px, 4vw, 28px);
  margin: 14px 0 22px;
  border: 1px solid #c8ddd6;
  border-left: 4px solid #0d7661;
  border-radius: 10px;
  background: #f4faf7;
}
.market-brief h3 { margin: 0; font-size: clamp(1.35rem, 3vw, 1.7rem); }
.market-brief p { margin: 4px 0 14px; }
.market-brief dl, .market-brief dd { margin: 0; }
.market-brief dl > div {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 6px;
  padding: 7px 0;
}
.market-brief dt { font-weight: 700; }
.market-brief .actions { align-items: center; margin-bottom: 0; }
.market-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}
.market-summary div { padding: 12px 16px; background: #f0f7f4; border-radius: 8px; }
.market-summary dt { color: #415b66; font-size: .94rem; }
.market-summary dd { margin: 2px 0 0; font-weight: 700; }
.market-detail section + section { margin-top: 28px; }
.market-detail h2 { margin: 0 0 10px; }
.market-detail h3 { margin: 15px 0 3px; font-size: 1.08rem; }
.market-detail article p { margin: 3px 0 12px; }
@media (max-width: 650px) {
  .market-brief dl > div { grid-template-columns: 1fr; gap: 0; padding: 6px 0; }
  .market-summary { grid-template-columns: 1fr; }
  .market-summary div { padding: 7px 12px; }
}

.power-section { margin: 22px 0 30px; }
.power-section > h2 {
  margin: 0 0 12px;
  font-size: clamp(1.25rem, 2.7vw, 1.55rem);
}
.power-section .market-lookup { margin: 0 0 16px; }
.market-workflows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.market-links { flex-wrap: wrap; gap: 14px; }
#cases .case-teaser { margin: 0; }
#cases h3 { margin: 0; font-size: 1.15rem; }
.power-updates { border-top: 1px solid #d6e2e3; padding-top: 14px; }
.power-updates h2 { margin: 0 0 5px; font-size: 1rem; }
.power-updates ul {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .9375rem;
}
.policy-dates { display: block; margin: 3px 0 8px; color: #415b66; font-size: .94rem; }
.policy-recent li { margin: 7px 0; }
.policy-recent .policy-dates { display: inline; margin: 0 .4rem 0 0; }
@media (max-width: 650px) {
  .market-workflows { grid-template-columns: 1fr; }
}
