.page-index-shell {
  margin: 0;
  min-width: 0;
  background: #f4f7f8;
  color: #17354a;
  font-family: "Nunito Sans", Arial, sans-serif;
}

.page-index-environment {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.8rem;
  padding: 0.55rem 1rem;
  background: #17354a;
  color: #fff;
  font-size: 0.86rem;
  text-align: center;
}

.page-index-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: #fff;
  border-bottom: 1px solid #dce5e9;
  color: #486270;
  font-weight: 700;
}

.page-index-header img {
  display: block;
  width: 180px;
  max-width: 48vw;
  height: auto;
}

.page-index-main {
  width: min(1440px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.page-index-hero {
  max-width: 920px;
}

.page-index-eyebrow {
  margin: 0 0 0.45rem;
  color: #367188;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-index-hero h1 {
  margin: 0;
  color: #17354a;
  font-size: clamp(2.25rem, 6vw, 4.25rem);
  line-height: 1;
}

.page-index-hero > p:not(.page-index-eyebrow) {
  max-width: 760px;
  color: #486270;
  font-size: 1.08rem;
  line-height: 1.65;
}

.page-index-boundary {
  display: grid;
  gap: 0.25rem;
  margin-top: 1.4rem;
  padding: 1rem 1.1rem;
  border-left: 4px solid #d29a42;
  border-radius: 0.25rem;
  background: #fff8e9;
  color: #4f493e;
}

.page-index-jump {
  margin: 2rem 0 3rem;
  padding: 1rem;
  border: 1px solid #dce5e9;
  border-radius: 0.65rem;
  background: #fff;
}

.page-index-jump > span {
  display: block;
  margin-bottom: 0.65rem;
  font-weight: 700;
}

.page-index-jump ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-index-jump a {
  display: inline-block;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  background: #e8f0f3;
  color: #245a70;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.page-index-section {
  margin-top: 3rem;
  scroll-margin-top: 1rem;
}

.page-index-section:focus-visible {
  outline: 3px solid #d29a42;
  outline-offset: 4px;
}

.page-index-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid #cbd9df;
}

.page-index-section-heading h2 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.page-index-section-heading span {
  color: #607783;
  font-size: 0.85rem;
  white-space: nowrap;
}

.page-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1rem;
}

.page-index-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 1.1rem;
  border: 1px solid #d9e3e7;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 0.35rem 1rem rgba(23, 53, 74, 0.05);
}

.page-index-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: #607783;
  font-size: 0.76rem;
}

.page-index-status {
  display: inline-flex;
  padding: 0.27rem 0.52rem;
  border-radius: 999px;
  background: #e5f1ed;
  color: #275f50;
  font-weight: 700;
}

.page-index-status--guided { background: #e8f0f3; color: #245a70; }
.page-index-status--feature_flag { background: #fff0d8; color: #76521c; }
.page-index-status--not_directly_available,
.page-index-status--planned { background: #edf0f2; color: #566873; }

.page-index-card h3 {
  margin: 0.9rem 0 0.4rem;
  font-size: 1.08rem;
}

.page-index-card > p {
  margin: 0;
  color: #4e6571;
  line-height: 1.5;
}

.page-index-meta {
  display: grid;
  gap: 0.45rem;
  margin: 1rem 0;
  font-size: 0.84rem;
}

.page-index-meta div {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr);
  gap: 0.55rem;
}

.page-index-meta dt { color: #607783; }
.page-index-meta dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.page-index-meta code { white-space: normal; }

.page-index-card .page-index-note {
  margin-bottom: 1rem;
  padding: 0.7rem;
  border-radius: 0.35rem;
  background: #f4f7f8;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.page-index-open,
.page-index-unavailable {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 0.62rem 0.85rem;
  border-radius: 0.4rem;
  font-weight: 700;
  text-align: center;
}

.page-index-review-states {
  margin-top: 0.7rem;
  border-top: 1px solid #d9e3e7;
  padding-top: 0.7rem;
  font-size: 0.82rem;
}

.page-index-review-states summary { color: #245a70; font-weight: 700; cursor: pointer; }
.page-index-review-states ul { display: grid; gap: 0.35rem; margin: 0.55rem 0 0; padding-left: 1.2rem; }
.page-index-review-states a { color: #245a70; }

.page-index-designer-states {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.9rem;
}

.page-index-designer-states h4 {
  margin: 0 0 0.45rem;
  color: #314b58;
  font-size: 0.86rem;
  letter-spacing: 0.01em;
}

.page-index-designer-states ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-index-designer-states li:has(.page-index-designer-state-summary) {
  flex: 1 1 100%;
}

.page-index-designer-state-summary {
  display: block;
  margin-top: 0.35rem;
  color: #526b77;
  font-size: 0.82rem;
  line-height: 1.45;
}

.page-index-designer-states a {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  padding: 0.45rem 0.65rem;
  border: 1px solid #9ab0bb;
  border-radius: 0.35rem;
  background: #f8fbfc;
  color: #245a70;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.page-index-designer-states a:hover,
.page-index-designer-states a:focus-visible {
  border-color: #245a70;
  background: #e8f0f3;
  outline: 3px solid rgba(36, 90, 112, 0.22);
  outline-offset: 2px;
}

.development-review-transition { max-width: 760px; }
.development-review-transition h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
.development-review-transition-status { font-weight: 700; }

.page-index-open {
  background: #245a70;
  color: #fff;
  text-decoration: none;
}

.page-index-unavailable {
  border: 1px solid #d4dde1;
  background: #f1f4f5;
  color: #60717a;
}

.page-index-open:hover,
.page-index-open:focus-visible,
.page-index-jump a:hover,
.page-index-jump a:focus-visible,
.page-index-header a:focus-visible {
  outline: 3px solid #d29a42;
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .page-index-header { align-items: flex-start; flex-direction: column; }
  .page-index-main { width: min(100% - 1.25rem, 1440px); }
  .page-index-section-heading { align-items: flex-start; flex-direction: column; }
  .page-index-card-topline { align-items: flex-start; flex-direction: column; }
}

/* Billing review states (B4.5). Development inspection tables only; these reuse
   the Page Index tokens and introduce no new design-system surface. */
.billing-review-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

.billing-review-caption {
  text-align: left;
  padding-bottom: 0.5rem;
  color: var(--page-index-muted, #4a5568);
}

.billing-review-table th,
.billing-review-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--page-index-border, #d5dbe3);
}

.billing-review-table thead th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.billing-review-table tbody th {
  font-weight: 600;
  width: 32%;
}

/* Keep wide control-proof tables inside the narrow outward-demo viewport.
   The table remains intact and horizontally inspectable without widening the
   document; the existing internal review presentation is unchanged. */
.page-index-shell--outward-demo .billing-review-table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.billing-review-list {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
}

.billing-review-list li {
  margin-bottom: 0.35rem;
}
