.sph-hub {
  --sph-orange: #f48139;
  --sph-orange-dark: #d86a24;
  --sph-ink: #1c1c1c;
  --sph-muted: #707070;
  --sph-line: #e8e8e8;
  --sph-bg: #f7f7f7;
  --sph-white: #fff;
  --sph-green: #2f7d4a;
  --sph-blue: #2c5aa0;
  --sph-red: #c0392b;
  --sph-radius: 12px;
  color: var(--sph-ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.5;
  max-width: 1120px;
  margin: 0 auto;
}

.sph-hub *,
.sph-hub *::before,
.sph-hub *::after {
  box-sizing: border-box;
}

.sph-hub a {
  color: inherit;
}

.sph-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  border-bottom: 1px solid var(--sph-line);
  margin-bottom: 28px;
}

.sph-tab {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--sph-muted);
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 8px 14px;
  white-space: nowrap;
}

.sph-tab.is-active {
  color: var(--sph-ink);
  border-bottom-color: var(--sph-ink);
}

.sph-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4em;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--sph-orange);
  color: #fff;
  font-size: 12px;
  line-height: 1.6;
}

.sph-panel {
  display: none;
}

.sph-panel.is-active {
  display: block;
}

.sph-hub[data-layout="stack"] .sph-tabs {
  display: none;
}

.sph-hub[data-layout="stack"] .sph-panel {
  display: block;
  margin-bottom: 56px;
}

.sph-heading {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}

.sph-panel-intro p {
  color: var(--sph-muted);
  margin: 0 0 24px;
  max-width: 720px;
}

.sph-filters {
  margin-bottom: 8px;
}

.sph-search input[type="search"] {
  width: 100%;
  border: 1px solid var(--sph-line);
  border-radius: 8px;
  font: inherit;
  font-size: 16px;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.sph-search input[type="search"]:focus {
  outline: 2px solid var(--sph-orange);
  border-color: var(--sph-orange);
}

.sph-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  position: relative;
}

.sph-dropdown {
  position: relative;
}

.sph-dropdown-toggle,
.sph-filter-toggle,
.sph-page,
.sph-btn,
.sph-btn-ghost {
  appearance: none;
  font: inherit;
  cursor: pointer;
}

.sph-dropdown-toggle {
  background: #fff;
  border: 1px solid var(--sph-line);
  border-radius: 999px;
  color: var(--sph-ink);
  padding: 8px 14px;
}

.sph-dropdown-toggle::after {
  content: "";
  display: inline-block;
  margin-left: 8px;
  border: 4px solid transparent;
  border-top-color: currentColor;
  transform: translateY(2px);
}

.sph-dropdown.is-open .sph-dropdown-toggle {
  border-color: var(--sph-ink);
}

.sph-dropdown-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  min-width: 240px;
  max-height: 320px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--sph-line);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  padding: 10px;
}

.sph-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 6px;
  font-size: 14px;
}

.sph-check em {
  margin-left: auto;
  color: var(--sph-muted);
  font-style: normal;
  font-size: 12px;
}

.sph-dropdown-dates label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--sph-muted);
  margin-bottom: 10px;
}

.sph-dropdown-dates input[type="date"] {
  font: inherit;
  padding: 8px;
  border: 1px solid var(--sph-line);
  border-radius: 6px;
}

.sph-filter-toggle {
  display: none;
  background: #111;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 600;
  position: sticky;
  bottom: 16px;
  z-index: 30;
  margin-left: auto;
}

.sph-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 8px;
  margin: 12px 0 4px;
}

.sph-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--sph-bg);
  border: 0;
  border-radius: 999px;
  padding: 6px 10px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.sph-chip span {
  font-weight: 700;
  line-height: 1;
}

.sph-count {
  font-size: 18px;
  font-weight: 700;
  margin: 18px 0 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--sph-line);
}

.sph-empty {
  color: var(--sph-muted);
  padding: 24px 0;
}

.sph-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sph-row {
  border-bottom: 1px solid var(--sph-line);
}

.sph-row-link {
  display: block;
  text-decoration: none;
  padding: 18px 4px;
}

.sph-row-link:hover .sph-row-title {
  color: var(--sph-orange);
}

.sph-row-title {
  display: block;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.sph-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: var(--sph-muted);
  font-size: 14px;
}

.sph-status {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sph-muted);
}

.sph-status--in-force {
  color: var(--sph-green);
}

.sph-status--under-consultation {
  color: var(--sph-orange-dark);
}

.sph-status--draft {
  color: var(--sph-blue);
}

.sph-cards {
  display: grid;
  gap: 16px;
}

.sph-card {
  border: 1px solid var(--sph-line);
  border-radius: var(--sph-radius);
  padding: 20px;
  background: #fff;
}

.sph-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.sph-countdown {
  font-size: 13px;
  font-weight: 700;
  color: var(--sph-muted);
}

.sph-countdown.is-urgent {
  color: var(--sph-red);
}

.sph-card-title {
  font-size: 20px;
  line-height: 1.3;
  margin: 0 0 10px;
}

.sph-card-title a {
  text-decoration: none;
}

.sph-card-title a:hover {
  color: var(--sph-orange);
}

.sph-meta {
  color: var(--sph-muted);
  font-size: 14px;
  margin: 0 0 6px;
}

.sph-meta span + span::before {
  content: "·";
  margin-right: 8px;
}

.sph-excerpt,
.sph-howto,
.sph-deadline {
  font-size: 14px;
  margin: 12px 0 0;
}

.sph-deadline {
  font-weight: 700;
  color: var(--sph-orange-dark);
}

.sph-howto {
  background: var(--sph-bg);
  border-radius: 8px;
  padding: 12px 14px;
}

.sph-howto p:last-child {
  margin-bottom: 0;
}

.sph-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.sph-btn {
  display: inline-flex;
  align-items: center;
  background: var(--sph-orange);
  color: #fff !important;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
}

.sph-btn:hover {
  background: var(--sph-orange-dark);
}

.sph-btn-ghost {
  background: #fff;
  color: var(--sph-ink) !important;
  border: 1px solid var(--sph-line);
}

.sph-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 24px;
}

.sph-page {
  min-width: 40px;
  height: 40px;
  border: 1px solid var(--sph-line);
  background: #fff;
  border-radius: 8px;
}

.sph-page.is-active {
  background: var(--sph-ink);
  color: #fff;
  border-color: var(--sph-ink);
}

.sph-hub.is-loading .sph-results {
  opacity: 0.45;
  pointer-events: none;
}

.sph-single {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--sph-line);
}

.sph-dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 0 0 20px;
}

.sph-dl dt {
  color: var(--sph-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.sph-dl dd {
  margin: 0;
  font-weight: 600;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

@media (max-width: 780px) {
  .sph-heading {
    font-size: 24px;
  }

  .sph-filter-bar .sph-dropdown {
    display: none;
  }

  .sph-hub.is-filters-open .sph-filter-bar .sph-dropdown {
    display: block;
    width: 100%;
  }

  .sph-hub.is-filters-open .sph-dropdown-panel {
    position: relative;
    top: 0;
    box-shadow: none;
    max-height: none;
    margin-bottom: 8px;
  }

  .sph-filter-toggle {
    display: inline-flex;
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  }

  .sph-row-title {
    font-size: 16px;
  }
}
