/* Full-width category editorial hub. Loaded only on category archives. */

.hostingwiki-next.category #page.site {
  width: 100%;
  max-width: none;
  overflow-x: hidden;
}

#primary.hw-category-main {
  float: none;
  width: 100%;
}

.hostingwiki-next.category .hw-site-header .hw-shell,
.hostingwiki-next.category .hw-site-footer .hw-shell {
  width: calc(100% - clamp(48px, 5vw, 80px));
  max-width: none;
}

.hw-category-main {
  clear: both;
  min-width: 0;
  background: var(--hw-paper);
}

.hw-category-shell {
  width: calc(100% - clamp(48px, 5vw, 80px));
  margin-inline: auto;
}

.hw-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  min-height: 48px;
  padding-top: 0.25rem;
  border-bottom: 1px solid var(--hw-rule);
  color: var(--hw-muted);
  font-size: 0.72rem;
}

.hw-breadcrumb a {
  color: var(--hw-blue);
}

.hw-breadcrumb a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.hw-breadcrumb [aria-current="page"] {
  color: var(--hw-ink-soft);
}

.hw-category-masthead {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, auto);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: end;
  padding-block: clamp(1.8rem, 3.4vw, 3.4rem);
  border-bottom: 1px solid var(--hw-rule-dark);
}

.hw-category-masthead-copy {
  min-width: 0;
}

.hw-category-masthead .hw-kicker {
  margin-bottom: 0.65rem;
  color: var(--hw-red);
}

.hw-category-masthead h1 {
  margin: 0;
  font-family: Georgia, "Songti SC", "SimSun", serif;
  font-size: clamp(2.35rem, 4.5vw, 4.8rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.055em;
  overflow-wrap: anywhere;
}

.hw-category-description {
  max-width: 850px;
  margin-top: 0.85rem;
  color: var(--hw-muted);
  font-size: 0.9rem;
  line-height: 1.75;
}

.hw-category-description p {
  margin: 0;
}

.hw-category-description--fallback {
  margin-bottom: 0;
}

.hw-category-shortcuts {
  min-width: 260px;
  max-width: 460px;
  padding-left: 1.5rem;
  border-left: 1px solid var(--hw-rule);
}

.hw-category-shortcuts > span {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--hw-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hw-category-shortcuts ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hw-category-shortcuts a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--hw-rule);
  background: var(--hw-paper-strong);
  color: var(--hw-ink-soft);
  font-size: 0.7rem;
  line-height: 1.2;
}

.hw-category-shortcuts a:hover,
.hw-category-shortcuts a[aria-current="page"] {
  border-color: var(--hw-blue);
  color: var(--hw-blue);
}

.hw-category-layout {
  min-width: 0;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
  padding-block: clamp(2rem, 3.6vw, 3.5rem);
}

.hw-category-map,
.hw-category-feed,
.hw-category-sidebar {
  min-width: 0;
}

.hw-category-rail-inner,
.hw-category-sidebar-inner {
  position: sticky;
  top: 24px;
}

.hw-category-rail-index {
  margin: 0 0 0.45rem;
  color: var(--hw-red);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.6rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hw-category-map-heading {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-block: 1px solid var(--hw-rule-dark);
}

.hw-category-map h2,
.hw-category-section-heading h2,
.hw-category-side-card h2,
.hw-category-enterprise h2 {
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-weight: 600;
  line-height: 1.2;
}

.hw-category-map h2 {
  font-size: 1.25rem;
}

.hw-category-map-toggle {
  display: none;
  min-height: 40px;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--hw-rule);
  background: transparent;
  color: var(--hw-ink);
  font-size: 0.72rem;
}

.hw-category-map-toggle b {
  color: var(--hw-blue);
  font-size: 1rem;
  font-weight: 400;
}

.hw-category-map nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hw-category-map nav li {
  margin: 0;
  border-bottom: 1px solid var(--hw-rule);
}

.hw-category-map nav a {
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.65rem 0;
  color: var(--hw-ink-soft);
  font-size: 0.76rem;
}

.hw-category-map nav a:hover,
.hw-category-map nav a[aria-current="page"] {
  color: var(--hw-blue);
}

.hw-category-map nav a[aria-current="page"] {
  box-shadow: inset 3px 0 0 var(--hw-blue);
  padding-left: 0.75rem;
}

.hw-category-map nav small {
  color: var(--hw-muted);
  font-family: ui-monospace, monospace;
  font-size: 0.6rem;
}

.hw-category-rail-empty {
  margin: 0;
  padding: 1rem 0;
  color: var(--hw-muted);
  font-size: 0.76rem;
}

.hw-category-section-heading {
  display: flex;
  gap: 1rem;
  align-items: end;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 0 1rem;
  border-bottom: 1px solid var(--hw-rule-dark);
}

.hw-category-section-heading h2 {
  font-size: clamp(1.8rem, 2.6vw, 2.7rem);
}

.hw-category-section-heading > p {
  margin: 0 0 0.15rem;
  color: var(--hw-muted);
  font-size: 0.68rem;
}

.hw-category-articles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
}

.hw-category-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--hw-rule);
}

.hw-category-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(240px, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(1.4rem, 3vw, 2.8rem);
  padding-top: 1.6rem;
  border-bottom-color: var(--hw-rule-dark);
}

.hw-category-card--featured.hw-category-card--no-media {
  grid-template-columns: 1fr;
}

.hw-category-card-media {
  min-width: 0;
  display: block;
  overflow: hidden;
  border: 1px solid var(--hw-rule);
  background: #d9d5ca;
}

.hw-category-card:not(.hw-category-card--featured) .hw-category-card-media {
  aspect-ratio: 16 / 9;
}

.hw-category-card-media img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 300ms ease;
}

.hw-category-card-media:hover img {
  transform: scale(1.025);
}

.hw-category-card-body {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-top: 1rem;
}

.hw-category-card--featured .hw-category-card-body {
  justify-content: center;
  padding-top: 0;
}

.hw-category-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.85rem;
  margin: 0 0 0.65rem;
  color: var(--hw-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.61rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hw-category-card-meta a {
  color: var(--hw-blue);
}

.hw-category-card h3 {
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(1.12rem, 1.45vw, 1.48rem);
  font-weight: 600;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.hw-category-card--featured h3 {
  font-size: clamp(1.6rem, 2.5vw, 2.6rem);
  line-height: 1.25;
}

.hw-category-card h3 a:hover {
  color: var(--hw-blue);
}

.hw-category-card-excerpt {
  margin: 0.8rem 0 1rem;
  color: var(--hw-muted);
  font-size: 0.78rem;
  line-height: 1.72;
}

.hw-category-card--featured .hw-category-card-excerpt {
  font-size: 0.88rem;
}

.hw-category-card-link {
  width: fit-content;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  color: var(--hw-blue);
  font-size: 0.72rem;
  font-weight: 750;
}

.hw-category-card-link span {
  transition: transform 150ms ease;
}

.hw-category-card-link:hover span {
  transform: translateX(4px);
}

.hw-category-feed .navigation.pagination {
  margin: 1.8rem 0 0;
}

.hw-category-feed .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.hw-category-feed .page-numbers {
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--hw-rule);
  background: var(--hw-paper-strong);
  color: var(--hw-ink-soft);
  font-size: 0.72rem;
}

.hw-category-feed .page-numbers:hover,
.hw-category-feed .page-numbers.current {
  border-color: var(--hw-ink);
  background: var(--hw-ink);
  color: #fff;
}

.hw-category-empty {
  padding: clamp(2rem, 5vw, 4rem);
  border-bottom: 1px solid var(--hw-rule-dark);
  background: var(--hw-paper-strong);
}

.hw-category-empty h3 {
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: 1.5rem;
  font-weight: 600;
}

.hw-category-empty p {
  max-width: 560px;
  margin: 0.8rem 0;
  color: var(--hw-muted);
  font-size: 0.86rem;
}

.hw-category-sidebar-inner {
  display: grid;
  gap: 1rem;
}

.hw-category-side-card,
.hw-category-enterprise {
  border: 1px solid var(--hw-rule);
  background: var(--hw-paper-strong);
}

.hw-category-side-card > header {
  padding: 1.15rem;
  border-bottom: 1px solid var(--hw-rule);
}

.hw-category-side-card h2,
.hw-category-enterprise h2 {
  font-size: 1.18rem;
}

.hw-category-evaluation-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hw-category-evaluation-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 0.65rem;
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid var(--hw-rule);
}

.hw-category-evaluation-list li > span {
  color: var(--hw-red);
  font-family: ui-monospace, monospace;
  font-size: 0.6rem;
}

.hw-category-evaluation-list h3 {
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.hw-category-evaluation-list h3 a:hover {
  color: var(--hw-blue);
}

.hw-category-evaluation-list time {
  display: block;
  margin-top: 0.35rem;
  color: var(--hw-muted);
  font-family: ui-monospace, monospace;
  font-size: 0.58rem;
}

.hw-category-side-empty {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 1.15rem;
  border-bottom: 1px solid var(--hw-rule);
}

.hw-category-side-empty strong {
  color: var(--hw-ink-soft);
  font-family: Georgia, "Songti SC", serif;
  font-size: 0.9rem;
}

.hw-category-side-empty span {
  color: var(--hw-muted);
  font-size: 0.68rem;
}

.hw-category-side-more {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.15rem;
  color: var(--hw-blue);
  font-size: 0.7rem;
  font-weight: 750;
}

.hw-category-tool-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hw-category-tool-list li {
  margin: 0;
  border-bottom: 1px solid var(--hw-rule);
}

.hw-category-tool-list li:last-child {
  border-bottom: 0;
}

.hw-category-tool-list a {
  min-height: 88px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 0.2rem 0.65rem;
  align-content: center;
  padding: 0.9rem 1.15rem;
}

.hw-category-tool-list a:hover {
  background: rgba(36, 91, 204, 0.055);
}

.hw-category-tool-list a > span {
  grid-row: 1 / 3;
  color: var(--hw-red);
  font-family: ui-monospace, monospace;
  font-size: 0.65rem;
}

.hw-category-tool-list strong {
  color: var(--hw-ink-soft);
  font-family: Georgia, "Songti SC", serif;
  font-size: 0.88rem;
}

.hw-category-tool-list small {
  color: var(--hw-muted);
  font-size: 0.63rem;
  line-height: 1.45;
}

.hw-category-enterprise {
  padding: 1.3rem;
  border-color: #1b2940;
  background: #1b2940;
  color: #fff;
}

.hw-category-enterprise .hw-category-rail-index {
  color: #e27b64;
}

.hw-category-enterprise p:not(.hw-category-rail-index) {
  margin: 0.75rem 0 1rem;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.72rem;
}

.hw-category-enterprise a {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  color: #b8ccff;
  font-size: 0.72rem;
  font-weight: 750;
}

.hw-category-disclosure {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1.2rem;
  align-items: center;
  margin-bottom: clamp(2.5rem, 5vw, 5rem);
  padding: 1rem 1.2rem;
  border-block: 1px solid var(--hw-rule-dark);
  color: var(--hw-muted);
  font-size: 0.7rem;
}

.hw-category-disclosure strong {
  color: var(--hw-ink);
  font-family: Georgia, "Songti SC", serif;
  font-size: 0.82rem;
}

.hw-category-disclosure p {
  margin: 0;
}

.hw-category-disclosure a {
  color: var(--hw-blue);
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 1279px) {
  .hw-category-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .hw-category-map {
    grid-column: 1 / -1;
  }

  .hw-category-rail-inner,
  .hw-category-sidebar-inner {
    position: static;
  }

  .hw-category-map-heading {
    padding-top: 0;
    border-top: 0;
  }

  .hw-category-map nav ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-left: 1px solid var(--hw-rule);
  }

  .hw-category-map nav li {
    border-right: 1px solid var(--hw-rule);
  }

  .hw-category-map nav a,
  .hw-category-map nav a[aria-current="page"] {
    min-height: 58px;
    padding: 0.65rem;
    box-shadow: none;
  }
}

@media (max-width: 959px) {
  .hostingwiki-next.category .hw-site-header .hw-shell,
  .hostingwiki-next.category .hw-site-footer .hw-shell,
  .hw-category-shell {
    width: calc(100% - 40px);
  }

  .hw-category-masthead {
    grid-template-columns: 1fr;
    gap: 1.3rem;
  }

  .hw-category-shortcuts {
    max-width: none;
    padding: 1rem 0 0;
    border-top: 1px solid var(--hw-rule);
    border-left: 0;
  }

  .hw-category-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hw-category-map,
  .hw-category-feed,
  .hw-category-sidebar {
    grid-column: 1;
  }

  .hw-category-articles {
    grid-template-columns: minmax(0, 1fr);
  }

  .hw-category-card--featured {
    grid-column: auto;
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  }

  .hw-category-sidebar-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hw-category-enterprise {
    grid-column: 1 / -1;
  }
}

@media (max-width: 679px) {
  .hostingwiki-next.category .hw-site-header .hw-shell,
  .hostingwiki-next.category .hw-site-footer .hw-shell,
  .hw-category-shell {
    width: calc(100% - 28px);
  }

  .hw-breadcrumb {
    min-height: 44px;
    padding-block: 0.4rem;
  }

  .hw-category-masthead {
    padding-block: 1.7rem;
  }

  .hw-category-masthead h1 {
    font-size: clamp(2.1rem, 11vw, 3.5rem);
  }

  .hw-category-description {
    font-size: 0.8rem;
  }

  .hw-category-shortcuts ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hw-category-shortcuts a {
    width: 100%;
  }

  .hw-category-layout {
    gap: 1.7rem;
    padding-block: 1.7rem;
  }

  .hw-category-map-toggle {
    display: inline-flex;
  }

  .hw-js .hw-category-map #hw-category-map-nav {
    display: none;
  }

  .hw-js.hw-category-map-is-open .hw-category-map #hw-category-map-nav {
    display: block;
  }

  .hw-category-map nav ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hw-category-section-heading {
    min-height: 64px;
  }

  .hw-category-section-heading > p {
    display: none;
  }

  .hw-category-card--featured {
    display: flex;
  }

  .hw-category-card:not(.hw-category-card--featured) {
    display: grid;
    grid-template-columns: minmax(100px, 0.38fr) minmax(0, 0.62fr);
    gap: 1rem;
  }

  .hw-category-card:not(.hw-category-card--featured).hw-category-card--no-media {
    grid-template-columns: 1fr;
  }

  .hw-category-card:not(.hw-category-card--featured) .hw-category-card-body {
    padding-top: 0;
  }

  .hw-category-card:not(.hw-category-card--featured) .hw-category-card-excerpt {
    display: none;
  }

  .hw-category-card h3 {
    font-size: 1rem;
  }

  .hw-category-card--featured h3 {
    font-size: 1.65rem;
  }

  .hw-category-sidebar-inner {
    grid-template-columns: 1fr;
  }

  .hw-category-enterprise {
    grid-column: auto;
  }

  .hw-category-disclosure {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .hw-category-disclosure a {
    width: fit-content;
  }
}
