.seo-main { padding-bottom: 24px; }

.seo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .55fr);
  gap: 72px;
  align-items: end;
  padding: 78px 0 68px;
}

.seo-hero h1 {
  max-width: 920px;
  margin: 22px 0 24px;
  font-family: var(--font-display);
  font-size: clamp(52px, 6.6vw, 88px);
  font-weight: 530;
  letter-spacing: -.068em;
  line-height: .94;
}

.seo-hero h1 span { color: var(--accent); }
.seo-hero-copy > p { max-width: 760px; margin: 0; color: var(--text-soft); font-size: 18px; line-height: 1.68; }
.seo-hero .portal-hero-actions { margin-top: 31px; }

.seo-visual-stack { display: grid; gap: 12px; align-self: center; }
.seo-hero-art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 18px 55px rgba(40, 48, 40, .08);
}

.seo-summary {
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.seo-summary > span { color: var(--accent-strong); font-size: 9px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.seo-summary ul { margin: 18px 0 0; padding: 0; list-style: none; }
.seo-summary li { padding: 11px 0; border-top: 1px solid var(--border); color: var(--text-soft); font-size: 12px; }
.seo-summary li::before { content: "+"; margin-right: 9px; color: var(--accent-strong); font-weight: 900; }

.seo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 54px;
  padding: 65px 0 38px;
  border-top: 1px solid var(--border);
}

.seo-article { min-width: 0; }
.seo-section + .seo-section { margin-top: 64px; }
.seo-section h2 { margin: 9px 0 17px; font-family: var(--font-display); font-size: clamp(30px, 3.3vw, 44px); font-weight: 570; letter-spacing: -.05em; line-height: 1.08; }
.seo-section h3 { margin: 28px 0 9px; font-family: var(--font-display); font-size: 21px; font-weight: 620; letter-spacing: -.035em; }
.seo-section p { max-width: 790px; margin: 0; color: var(--text-soft); font-size: 15px; line-height: 1.78; }
.seo-section p + p { margin-top: 16px; }
.seo-section ul, .seo-section ol { max-width: 780px; margin: 18px 0 0; padding-left: 22px; color: var(--text-soft); }
.seo-section li { padding: 4px 0 4px 6px; line-height: 1.65; }
.seo-section strong { color: var(--text); }

.seo-note {
  max-width: 810px;
  margin-top: 23px;
  padding: 20px 22px;
  border: 1px solid color-mix(in srgb, var(--accent) 36%, var(--border));
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent-soft) 62%, var(--surface));
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.7;
}

.seo-note strong { color: var(--accent-strong); }

.seo-steps, .seo-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.seo-step, .seo-metric { padding: 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.seo-step > span, .seo-metric > span { color: var(--accent-strong); font-size: 9px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.seo-step h3 { margin: 18px 0 8px; font-size: 18px; }
.seo-step p { font-size: 12px; line-height: 1.65; }
.seo-metric strong { display: block; margin-top: 12px; font-family: var(--font-display); font-size: 31px; font-weight: 600; letter-spacing: -.05em; }
.seo-metric small { display: block; margin-top: 4px; color: var(--text-soft); font-size: 11px; line-height: 1.5; }

.seo-aside { position: relative; }
.seo-aside-inner { position: sticky; top: 110px; display: grid; gap: 10px; }
.seo-aside h2 { margin: 0 0 5px; color: var(--text-faint); font-size: 9px; font-weight: 820; letter-spacing: .15em; text-transform: uppercase; }
.seo-aside a { display: block; padding: 14px 15px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text-soft); font-size: 12px; font-weight: 690; text-decoration: none; }
.seo-aside a:hover, .seo-aside a:focus-visible { border-color: color-mix(in srgb, var(--accent) 52%, var(--border)); color: var(--accent-strong); }
.seo-aside a[aria-current="page"] { border-color: color-mix(in srgb, var(--accent) 42%, var(--border)); background: var(--accent-soft); color: var(--text); }

.seo-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  margin-top: 74px;
  padding: 32px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
  border-radius: 22px;
  background: linear-gradient(130deg, var(--accent-soft), var(--surface));
}

.seo-cta h2 { margin: 0 0 7px; font-family: var(--font-display); font-size: 27px; font-weight: 590; letter-spacing: -.045em; }
.seo-cta p { margin: 0; color: var(--text-soft); font-size: 12px; }
.seo-cta .primary-action { flex: 0 0 auto; }

@media (max-width: 960px) {
  .seo-hero { grid-template-columns: 1fr; gap: 30px; }
  .seo-visual-stack { grid-template-columns: minmax(220px, 310px) minmax(260px, 1fr); align-items: stretch; max-width: 720px; }
  .seo-summary { max-width: 620px; }
  .seo-layout { grid-template-columns: 1fr; gap: 48px; }
  .seo-aside { grid-row: 1; }
  .seo-aside-inner { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seo-aside h2 { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .seo-hero { padding: 56px 0 48px; }
  .seo-hero h1 { font-size: clamp(45px, 14vw, 68px); }
  .seo-hero-copy > p { font-size: 16px; }
  .seo-visual-stack { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); }
  .seo-layout { padding-top: 48px; }
  .seo-steps, .seo-metrics { grid-template-columns: 1fr; }
  .seo-cta { display: block; padding: 24px; }
  .seo-cta .primary-action { margin-top: 22px; }
}

@media (max-width: 480px) {
  .seo-visual-stack { grid-template-columns: 1fr; }
  .seo-hero-art { width: min(290px, 100%); }
  .seo-aside-inner { grid-template-columns: 1fr; }
  .seo-aside h2 { grid-column: auto; }
}

.entity-breadcrumb { min-width: 0; overflow: hidden; white-space: nowrap; }
.entity-breadcrumb > * { flex: 0 0 auto; }
.entity-breadcrumb > strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

.entity-hero {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
  padding: 64px 0 60px;
}
.entity-hero-no-image { grid-template-columns: minmax(0, 1fr); }
.entity-hero-no-image > div { max-width: 940px; }
.entity-hero-illustration { grid-template-columns: 190px minmax(0, 1fr); }
.entity-hero-illustration .entity-portrait { width: 190px; height: 190px; border-radius: 36px; }

.entity-portrait {
  display: grid;
  place-items: center;
  width: 142px;
  height: 142px;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--border));
  border-radius: 32px;
  background: linear-gradient(145deg, var(--accent-soft), var(--surface));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.entity-main-icon { width: 112px; height: 112px; object-fit: contain; image-rendering: auto; }
.entity-main-illustration { width: 100%; height: 100%; object-fit: cover; }
.entity-main-icon.entity-placeholder { display: grid; place-items: center; color: var(--accent-strong); font-family: var(--font-display); font-size: 30px; font-weight: 700; }
.entity-hero h1 { margin: 15px 0 12px; font-family: var(--font-display); font-size: clamp(46px, 6vw, 76px); font-weight: 550; letter-spacing: -.065em; line-height: .98; }
.entity-hero p { max-width: 790px; margin: 0; color: var(--text-soft); font-size: 15px; line-height: 1.72; }
.entity-hero p a { color: var(--accent-strong); font-weight: 700; }
.entity-facts { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.entity-facts span { padding: 7px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text-soft); font-size: 10px; font-weight: 740; }
.eligibility-uncertain { display: inline; margin-left: 2px; color: #b27a12; cursor: help; font-size: .92em; font-weight: 850; text-decoration: none; }
.eligibility-uncertain:focus-visible { border-radius: 2px; outline: 2px solid #b27a12; outline-offset: 2px; }

.entity-content { padding: 54px 0 35px; border-top: 1px solid var(--border); }
.entity-section + .entity-section { margin-top: 62px; }
.entity-section > h2, .catalog-heading h2 { margin: 0 0 9px; font-family: var(--font-display); font-size: clamp(29px, 3vw, 40px); font-weight: 590; letter-spacing: -.045em; }
.entity-section > p { max-width: 760px; margin: 0 0 22px; color: var(--text-soft); font-size: 13px; line-height: 1.7; }
.entity-list { display: grid; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; background: var(--surface); }
.entity-row { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; gap: 15px; align-items: center; min-height: 75px; padding: 11px 17px; color: inherit; text-decoration: none; }
.entity-row + .entity-row { border-top: 1px solid var(--border); }
.entity-row:hover, .entity-row:focus-visible { background: color-mix(in srgb, var(--accent-soft) 55%, transparent); }
.entity-row-icon { display: grid; place-items: center; width: 48px; height: 48px; object-fit: contain; border-radius: 11px; background: color-mix(in srgb, var(--accent-soft) 62%, var(--surface-soft)); }
.entity-row-icon.entity-placeholder { color: var(--accent-strong); font-family: var(--font-display); font-size: 13px; font-weight: 780; }
.entity-row strong { display: block; font-family: var(--font-display); font-size: 14px; font-weight: 680; letter-spacing: -.02em; }
.entity-row small { display: block; margin-top: 3px; color: var(--text-faint); font-size: 10px; }
.entity-row em { color: var(--accent-strong); font-size: 10px; font-style: normal; font-weight: 760; text-align: right; }
.entity-empty { margin: 0; padding: 24px; color: var(--text-faint); font-size: 12px; }
.entity-actions { display: flex; gap: 10px; margin-top: 60px; }

.catalog-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.catalog-heading h2 { margin-top: 7px; margin-bottom: 0; }
.catalog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.catalog-grid .entity-row { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.catalog-grid .entity-row + .entity-row { border-top: 1px solid var(--border); }

@media (max-width: 700px) {
  .entity-hero { grid-template-columns: 90px minmax(0, 1fr); gap: 20px; padding: 45px 0; }
  .entity-hero-illustration { grid-template-columns: 106px minmax(0, 1fr); }
  .entity-hero-no-image { grid-template-columns: 1fr; }
  .entity-portrait { width: 90px; height: 90px; border-radius: 22px; }
  .entity-hero-illustration .entity-portrait { width: 106px; height: 106px; border-radius: 24px; }
  .entity-main-icon { width: 72px; height: 72px; }
  .entity-hero-illustration .entity-main-illustration { width: 100%; height: 100%; }
  .entity-main-icon.entity-placeholder { font-size: 22px; }
  .entity-hero h1 { font-size: clamp(38px, 11vw, 55px); }
  .entity-hero p { grid-column: 1 / -1; }
  .entity-facts { grid-column: 1 / -1; }
  .catalog-grid { grid-template-columns: 1fr; }
  .catalog-heading { align-items: start; flex-direction: column; }
}

@media (max-width: 480px) {
  .entity-breadcrumb > :nth-child(-n + 4) { display: none; }
  .entity-row { grid-template-columns: 44px minmax(0, 1fr); padding-inline: 12px; }
  .entity-row-icon { width: 42px; height: 42px; }
  .entity-row em { grid-column: 2; text-align: left; }
  .entity-actions { display: grid; }
}
