.hub-home {
  display: grid;
  gap: 0 56px;
  padding-top: 24px;
  padding-bottom: 32px;
}

@media (min-width: 960px) {
  .hub-home {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    align-items: start;
    padding-top: 48px;
  }

  .hub-home__now {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: 24px;
  }

  .hub-home__main {
    grid-column: 1;
    grid-row: 1;
  }
}

.hub-home h1 {
  font-size: calc(var(--op-size-h1) * 1.12);
  line-height: 1.2;
}

.hub-home__main {
  display: flex;
  flex-direction: column;
}

.hub-home__main > h1,
.hub-home__main > .hub-home__lead {
  order: 0;
}

.hub-home__main > .hub-rows {
  order: 2;
}

.hub-home__main > .op-region {
  order: 3;
}

.hub-home__main > .hub-more {
  order: 4;
}

.hub-home__main:has(.op-region__current:not([hidden])) > .op-region {
  order: 1;
  margin-bottom: 4px;
}

.hub-home .op-region__current,
.hub-region .op-region__current {
  row-gap: 0;
}

.hub-home .op-region__current > span:not(.op-region__acts) {
  flex: 1 1 0;
  min-width: 0;
}

.hub-home .op-region__current a,
.hub-region .op-region__current a {
  display: inline;
  padding: 12px 0;
}

.hub-region .op-region__current > span:not(.op-region__acts) {
  flex: 1 1 260px;
  min-width: 0;
}

.hub-region .op-region__note {
  margin: 16px 0 4px;
}

.hub-rows {
  max-width: var(--op-col);
}

.hub-more {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
}

.hub-more li {
  margin: 0;
}

.hub-more a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-weight: 600;
}

@media (max-width: 599px) {
  .hub-home {
    padding-top: 12px;
  }

  .hub-home .op-now--compact {
    margin-bottom: 10px;
  }

  .hub-home h1 {
    font-size: var(--op-size-h1);
    margin: 0 0 4px;
  }

  .hub-home__lead {
    font-size: var(--op-size-body);
    margin-bottom: 10px;
  }

  .hub-home .op-row {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .hub-home .op-region__current {
    font-size: var(--op-size-small);
    margin-bottom: 4px;
  }

  .hub-home [data-region-forget] {
    display: none;
  }

  .hub-home .op-row__hint {
    display: none;
  }

  .hub-home__main:has(.op-region__current:not([hidden])) > .hub-home__lead {
    display: none;
  }
}

.hub-principles-wrap {
  padding-top: 32px;
  border-top: 1px solid var(--op-sunken);
}

.hub-sit__block,
.hub-region,
.hub-sit__related {
  margin-bottom: 32px;
  max-width: var(--op-col);
}

.hub-sit--urgent .op-now--compact {
  margin-bottom: 28px;
}

.hub-steps {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.hub-step.op-card {
  padding: 14px 16px;
  gap: 14px;
}

.hub-step .op-card__icon {
  width: 40px;
  height: 40px;
}

.hub-step .op-card__title {
  font-size: var(--op-size-body);
  margin-bottom: 2px;
}

.hub-step .op-card__title a {
  min-height: 0;
}

.hub-step__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 10px;
  color: var(--op-muted);
  font-size: var(--op-size-small);
  line-height: 1.45;
}

.hub-step__meta .op-badges {
  display: contents;
}

.hub-step--soon {
  background: transparent;
  border-style: dashed;
}

.hub-step--soon .op-card__title {
  color: var(--op-muted);
}

.hub-federal__lead {
  margin: 12px 0 0;
}

.hub-federal .op-lines {
  margin-bottom: 16px;
}

.hub-eps {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 4px;
}

.hub-eps li {
  margin: 0;
  max-width: none;
}

.hub-eps a {
  display: inline-block;
  padding: 10px 0;
  min-height: 44px;
  font-weight: 600;
}

.hub-eps .op-badges {
  margin: -6px 0 8px;
}

.hub-principles {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  gap: 16px 32px;
}

@media (min-width: 840px) {
  .hub-principles {
    grid-template-columns: repeat(3, 1fr);
  }
}

.hub-principles li {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--op-border);
}

.hub-principles__icon {
  display: inline-flex;
  color: var(--op-primary);
}

.hub-principles__icon .op-icon {
  width: 28px;
  height: 28px;
}

.hub-principles h3 {
  margin: 8px 0 4px;
}

.hub-principles p {
  margin: 0;
  color: var(--op-muted);
  font-size: var(--op-size-small);
}

.hub-now-full {
  max-width: var(--op-col);
}

.hub-demo .op-section {
  padding-top: 8px;
}

.hub-demo .op-section > div + div {
  margin-top: 4px;
}

.hub-swatches,
.hub-icons {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.hub-swatches {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.hub-swatches li {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0;
  font-size: var(--op-size-small);
  line-height: 1.3;
}

.hub-swatches li > span:last-child {
  display: flex;
  flex-direction: column;
}

.hub-swatch {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 8px;
  border: 1px solid var(--op-border);
}

.hub-swatch--bg { background: var(--op-bg); }
.hub-swatch--surface { background: var(--op-surface); }
.hub-swatch--sunken { background: var(--op-sunken); }
.hub-swatch--text { background: var(--op-text); }
.hub-swatch--muted { background: var(--op-muted); }
.hub-swatch--border { background: var(--op-border); }
.hub-swatch--primary { background: var(--op-primary); }
.hub-swatch--link { background: var(--op-link); }
.hub-swatch--honey { background: var(--op-honey); }
.hub-swatch--highlight { background: var(--op-highlight); }
.hub-swatch--success { background: var(--op-success); }
.hub-swatch--warning { background: var(--op-warning); }
.hub-swatch--danger { background: var(--op-danger); }
.hub-swatch--focus { background: var(--op-focus); }

.hub-icons {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.hub-icons li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--op-sunken);
  border-radius: 8px;
  background: var(--op-surface);
  font-size: var(--op-size-small);
  overflow-wrap: anywhere;
}

.hub-icons .op-icon {
  width: 24px;
  height: 24px;
}

.hub-demo-form {
  max-width: 36em;
}

.hub-sheet-demo {
  max-width: 105mm;
  padding: 16px 18px;
  border: 1.5px solid var(--op-text);
  border-radius: 4px;
  background: var(--op-surface);
}

.hub-sheet-demo h3 {
  margin-top: 0;
}

.hub-sheet-demo .op-sheet-footer {
  display: block;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--op-border);
  font-size: var(--op-size-small);
  color: var(--op-muted);
}

.hub-sheet-demo .op-sheet-footer p {
  margin: 0;
}



.hub-now .op-now__title {
  font-size: var(--op-size-h1);
  line-height: 1.2;
}

.hub-now > .op-now {
  margin-bottom: 20px;
}

.hub-sources {
  max-width: var(--op-col);
  margin: 0 0 32px;
  border-top: 1px solid var(--op-border);
  padding-top: 8px;
}

.hub-sources > summary {
  display: flex;
  align-items: center;
  min-height: 48px;
  cursor: pointer;
  list-style: none;
}

.hub-sources > summary::-webkit-details-marker {
  display: none;
}

.hub-sources > summary h2 {
  margin: 0;
  color: var(--op-link);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

.hub-sources[open] > summary h2 {
  color: var(--op-text);
  text-decoration: none;
}

@media (max-width: 419px) {
  .hub-step.op-card {
    padding: 10px 12px;
  }

  .hub-step__meta,
  .hub-step__meta .op-badge {
    line-height: 1.35;
  }

  .hub-step .op-card__icon,
  .hub-tool .op-card__icon {
    display: none;
  }

  .hub-tool.op-card {
    padding: 16px 14px;
  }
}

.hub-sources > summary {
  gap: 10px;
}

.hub-sources__chev {
  color: var(--op-link);
  transition: transform 0.15s;
}

.hub-sources[open] .hub-sources__chev {
  transform: rotate(180deg);
  color: var(--op-muted);
}

@media print {
  .hub-sources {
    border-top: 0;
  }

  .hub-sources::details-content {
    content-visibility: visible;
    display: contents;
  }

  .hub-sources__chev {
    display: none;
  }

  .hub-sources > summary h2 {
    color: var(--op-text);
    text-decoration: none;
  }
}

.op-prose .op-table {
  display: table;
  max-width: none;
  overflow: visible;
  margin: 0;
}

.hub-src-table .op-code {
  white-space: nowrap;
}

.hub-src-more {
  margin: 4px 0 0;
  font-size: var(--op-size-small);
}

.hub-src-totals {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  max-width: var(--op-col);
}

.hub-src-totals li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.hub-src-totals .op-icon {
  width: 1.1em;
  height: 1.1em;
  flex: none;
}

@media (max-width: 599px) {
  .hub-stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .hub-stack,
  .op-prose .op-table.hub-stack,
  .hub-stack tbody,
  .hub-stack tr,
  .hub-stack th,
  .hub-stack td {
    display: block;
  }

  .hub-stack tr {
    padding: 10px 14px;
    border-bottom: 1px solid var(--op-sunken);
  }

  .hub-stack tbody tr:last-child {
    border-bottom: 0;
  }

  .hub-stack th,
  .hub-stack td {
    padding: 2px 0;
    border: 0;
  }

  .hub-stack td::before {
    content: attr(data-label) ": ";
    color: var(--op-muted);
  }

  .hub-src-table td:has(.hub-src-list)::before {
    display: block;
  }

  .hub-src-table .hub-src-list {
    margin: 2px 0 0;
  }
}

@media print {
  .hub-step .op-badges,
  .hub-step .op-card__icon {
    display: none;
  }

  .hub-step.op-card {
    padding: 6px 10px;
  }

  .hub-steps {
    gap: 6px;
  }
}
