/* Undertale Wiki — dark purple wiki UI (inspired by undertale.wiki layout, original CSS) */

:root {
  --ut-bg: #000000;
  --ut-bg-panel: #141018;
  --ut-bg-elev: #1c1624;
  --ut-line: #3a2f4a;
  --ut-text: #f5f5f7;
  --ut-muted: #a89bb8;
  --ut-accent: #9b5de5;
  --ut-accent-deep: #6b3fa0;
  --ut-accent-hot: #c77dff;
  --ut-heart: #ff4d6d;
  --ut-link: #e879f9;
  --ut-link-hover: #f0abfc;
  --ut-ok: #5dff8a;
  --ut-max: 980px;
  --ut-shell: 1100px;
  --ut-font: "IBM Plex Sans", "Segoe UI", sans-serif;
  --ut-pixel: "Press Start 2P", monospace;
  --ut-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ut-focus: 0 0 0 3px #000, 0 0 0 5px var(--ut-accent);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--ut-line) var(--ut-bg);
}

body.ut-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--ut-font);
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--ut-text);
  caret-color: var(--ut-accent-hot);
  background-color: var(--ut-bg);
  background-image:
    linear-gradient(90deg, rgba(107, 63, 160, 0.18), transparent 18%, transparent 82%, rgba(107, 63, 160, 0.18)),
    repeating-linear-gradient(
      180deg,
      transparent 0 10px,
      rgba(155, 93, 229, 0.04) 10px 11px
    );
}

::selection {
  background: rgba(155, 93, 229, 0.45);
  color: #fff;
}

a {
  color: var(--ut-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.15s var(--ut-ease);
}

a:hover {
  color: var(--ut-link-hover);
}

a:focus-visible,
.ut-brand:focus-visible,
.ut-menu a:focus-visible,
.ut-chips a:focus-visible,
.ut-btn:focus-visible,
.ut-nav-toggle:focus-visible,
.ut-footer-nav a:focus-visible {
  outline: none;
  box-shadow: var(--ut-focus);
}

.ut-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--ut-accent);
  color: #000;
  font-weight: 700;
  text-decoration: none;
}

.ut-skip:focus {
  left: 0.5rem;
  top: 0.5rem;
  box-shadow: var(--ut-focus);
}

.ut-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 3px solid var(--ut-accent);
  background: rgba(10, 10, 18, 0.94);
  backdrop-filter: blur(8px);
}

.ut-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  max-width: var(--ut-shell);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
}

.ut-brand {
  font-family: var(--ut-pixel);
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--ut-accent);
  text-decoration: none;
  letter-spacing: 0.02em;
  border-radius: 2px;
  margin-right: auto;
}

.ut-search {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  order: 3;
  width: 100%;
  max-width: 22rem;
}

.ut-search input[type="search"] {
  flex: 1;
  min-height: 2.5rem;
  padding: 0.35rem 0.65rem;
  border: 2px solid var(--ut-line);
  background: var(--ut-bg-elev);
  color: var(--ut-text);
  font: inherit;
  border-radius: 2px;
}

.ut-search button {
  min-height: 2.5rem;
  padding: 0.35rem 0.75rem;
  border: 2px solid var(--ut-accent);
  background: transparent;
  color: var(--ut-accent);
  font-weight: 700;
  cursor: pointer;
  border-radius: 2px;
}

.ut-search button:hover {
  background: var(--ut-accent);
  color: #000;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 900px) {
  .ut-header-inner {
    flex-wrap: nowrap;
  }

  .ut-search {
    order: 0;
    width: auto;
    margin-left: 1rem;
    margin-right: 0.5rem;
  }

  .ut-nav {
    margin-left: 0.25rem;
  }
}

.ut-brand:hover {
  color: #fff;
}

.ut-nav-toggle {
  display: none;
  min-height: 2.75rem;
  min-width: 2.75rem;
  font-family: var(--ut-font);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.45rem 0.85rem;
  border: 2px solid var(--ut-accent);
  border-radius: 2px;
  background: transparent;
  color: var(--ut-accent);
  cursor: pointer;
  transition: background 0.15s var(--ut-ease), color 0.15s var(--ut-ease);
}

.ut-nav-toggle:hover {
  background: var(--ut-accent);
  color: #000;
}

.ut-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ut-menu > .menu-item {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
}

.ut-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.15rem 0.2rem;
  color: var(--ut-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 2px;
}

.ut-menu a:hover {
  color: var(--ut-accent);
}

.ut-submenu-toggle {
  display: none;
  min-width: 2.25rem;
  min-height: 2.25rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--ut-line);
  background: var(--ut-bg-elev);
  color: var(--ut-accent);
  font-size: 0.75rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 2px;
}

.ut-menu .sub-menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
  min-width: 12rem;
  background: var(--ut-bg-panel);
  border: 2px solid var(--ut-line);
  box-shadow: 3px 3px 0 #000;
  z-index: 50;
}

.ut-menu .sub-menu a {
  display: block;
  min-height: 2.35rem;
  padding: 0.35rem 0.85rem;
  white-space: nowrap;
}

@media (min-width: 761px) {
  .ut-menu > .menu-item-has-children:hover > .sub-menu,
  .ut-menu > .menu-item-has-children:focus-within > .sub-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
  }
}

.ut-main {
  padding-bottom: 3rem;
}

.ut-hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.75rem 1.25rem 1.75rem;
  border-bottom: 1px solid var(--ut-line);
}

.ut-hero-kicker {
  margin: 0 0 0.65rem;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.82rem;
  color: var(--ut-muted);
  letter-spacing: 0.04em;
}

.ut-hero-title {
  margin: 0 0 0.9rem;
  max-width: 18ch;
  font-family: var(--ut-pixel);
  font-size: clamp(1.15rem, 3.5vw, 1.65rem);
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--ut-accent);
  text-shadow: 3px 3px 0 #000;
  text-wrap: balance;
}

.ut-hero-lead {
  margin: 0 0 1.15rem;
  max-width: 42rem;
  font-size: 1.15rem;
  color: var(--ut-text);
}

.ut-hero-cta {
  margin: 0;
}

.ut-wrap {
  max-width: var(--ut-max);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 0;
}

.ut-disclaimer {
  margin: 0 0 1.5rem;
  padding: 0.75rem 1rem;
  border: 2px solid var(--ut-line);
  border-top: 3px solid var(--ut-heart);
  background: var(--ut-bg-elev);
  color: var(--ut-muted);
  font-size: 0.92rem;
}

.ut-panel {
  margin-bottom: 1.35rem;
  padding: 1.35rem 1.4rem;
  background: var(--ut-bg-panel);
  border: 3px solid var(--ut-line);
  box-shadow: 4px 4px 0 #000;
}

.ut-panel h2,
.ut-panel > h1 {
  margin: 0 0 0.85rem;
  font-family: var(--ut-pixel);
  font-size: 0.72rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--ut-accent-hot);
  text-wrap: balance;
}

.ut-related-title,
.ut-hero-title {
  color: var(--ut-accent-hot);
}

.ut-panel p {
  margin: 0 0 0.85rem;
  max-width: 70ch;
}

.ut-panel p:last-child {
  margin-bottom: 0;
}

.ut-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.35rem;
  margin-bottom: 0.15rem;
}

.ut-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.ut-chips a,
.ut-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.45rem 0.85rem;
  border: 2px solid var(--ut-line);
  background: var(--ut-bg-elev);
  color: var(--ut-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 2px;
  transition:
    border-color 0.15s var(--ut-ease),
    color 0.15s var(--ut-ease),
    background 0.15s var(--ut-ease);
}

.ut-chips a:hover,
.ut-chip:hover {
  border-color: var(--ut-accent);
  color: var(--ut-accent);
  background: rgba(255, 242, 0, 0.06);
}

.ut-list {
  margin: 0;
  padding-left: 1.2rem;
}

.ut-list li {
  margin-bottom: 0.45rem;
}

.ut-list li:last-child {
  margin-bottom: 0;
}

.ut-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1.1rem;
  border: 3px solid var(--ut-accent);
  background: transparent;
  color: var(--ut-accent);
  font-weight: 700;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.15s var(--ut-ease), color 0.15s var(--ut-ease);
}

.ut-btn:hover {
  background: var(--ut-accent);
  color: #000;
}

.ut-btn--buy {
  border-color: var(--ut-ok);
  color: var(--ut-ok);
}

.ut-btn--buy:hover {
  background: var(--ut-ok);
  color: #000;
}

.ut-article {
  margin-bottom: 1.35rem;
  padding: 1.35rem 1.4rem;
  background: var(--ut-bg-panel);
  border: 3px solid var(--ut-line);
  box-shadow: 4px 4px 0 #000;
}

.ut-article-head {
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid var(--ut-line);
}

.ut-article-title {
  margin: 0;
  font-family: var(--ut-pixel);
  font-size: clamp(0.95rem, 2.5vw, 1.2rem);
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--ut-accent);
  text-wrap: balance;
}

.ut-meta {
  margin: 0.55rem 0 0;
  color: var(--ut-muted);
  font-size: 0.9rem;
}

.ut-prose {
  max-width: 70ch;
}

.ut-prose h2 {
  margin: 1.85rem 0 0.55rem;
  font-size: 1.25rem;
  color: var(--ut-accent);
}

.ut-prose h3 {
  margin: 1.45rem 0 0.45rem;
  font-size: 1.1rem;
}

.ut-prose p,
.ut-prose ul {
  margin: 0 0 1rem;
}

.ut-prose ul {
  padding-left: 1.25rem;
}

.ut-prose a {
  font-weight: 600;
}

.ut-footer {
  margin-top: 2.25rem;
  border-top: 3px solid var(--ut-line);
  background: #050508;
}

.ut-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.6rem 1.25rem 2.1rem;
}

.ut-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-bottom: 0.95rem;
}

.ut-footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  color: var(--ut-muted);
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
  transition: color 0.15s var(--ut-ease);
}

.ut-footer-nav a:hover {
  color: var(--ut-accent);
}

.ut-footer p {
  margin: 0;
  color: var(--ut-muted);
  font-size: 0.88rem;
  max-width: 48rem;
  line-height: 1.55;
}

/* —— Wiki entity page (module 1+2) —— */

.ut-entity-wrap {
  max-width: 1100px;
}

.ut-breadcrumb {
  margin: 0 0 1.1rem;
}

.ut-breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  color: var(--ut-muted);
}

.ut-breadcrumb-item:not(:last-child)::after {
  content: "›";
  margin-left: 0.35rem;
  color: var(--ut-line);
}

.ut-breadcrumb a {
  color: var(--ut-link);
  text-decoration: none;
  font-weight: 600;
}

.ut-breadcrumb a:hover {
  color: var(--ut-accent);
}

.ut-entity {
  margin-bottom: 1.35rem;
  padding: 1.35rem 1.4rem 1.5rem;
  background: var(--ut-bg-panel);
  border: 3px solid var(--ut-line);
  box-shadow: 4px 4px 0 #000;
}

.ut-entity-head {
  margin-bottom: 1.15rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid var(--ut-line);
}

.ut-entity-title {
  margin: 0;
  font-family: var(--ut-pixel);
  font-size: clamp(0.95rem, 2.5vw, 1.2rem);
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--ut-accent);
  text-wrap: balance;
}

.ut-entity-layout {
  display: block;
}

.ut-entity-layout.has-infobox {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 1.35rem;
  align-items: start;
}

.ut-entity-layout.has-infobox .ut-infobox {
  order: 2;
}

.ut-entity-layout.has-infobox .ut-entity-main {
  order: 1;
}

.ut-infobox {
  border: 3px solid var(--ut-line);
  background: var(--ut-bg-elev);
  box-shadow: 3px 3px 0 #000;
  overflow: hidden;
}

.ut-infobox-media {
  margin: 0;
  border-bottom: 2px solid var(--ut-line);
  background: #000;
  text-align: center;
}

.ut-infobox-img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.ut-infobox-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.ut-infobox-table th,
.ut-infobox-table td {
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--ut-line);
  vertical-align: top;
  text-align: left;
}

.ut-infobox-table tr:last-child th,
.ut-infobox-table tr:last-child td {
  border-bottom: 0;
}

.ut-infobox-table th {
  width: 42%;
  color: var(--ut-accent);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  background: rgba(255, 242, 0, 0.04);
}

.ut-infobox-table td {
  color: var(--ut-text);
  word-break: break-word;
}

.ut-entity-featured {
  margin: 0 0 1.15rem;
  border: 2px solid var(--ut-line);
  background: #000;
}

.ut-entity-featured img {
  display: block;
  width: 100%;
  height: auto;
}

.ut-entity-lead {
  margin: 0 0 1.15rem;
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--ut-accent);
  background: rgba(255, 242, 0, 0.06);
  font-size: 1.08rem;
  line-height: 1.6;
  max-width: 70ch;
}

.ut-entity-lead strong {
  color: var(--ut-accent);
}

.ut-toc {
  margin: 0 0 1.25rem;
  padding: 0.65rem 0.9rem 0.85rem;
  border: 2px solid var(--ut-line);
  background: var(--ut-bg-elev);
  max-width: 36rem;
}

.ut-toc-summary {
  cursor: pointer;
  font-family: var(--ut-pixel);
  font-size: 0.62rem;
  line-height: 1.5;
  color: var(--ut-accent);
  list-style: none;
}

.ut-toc-summary::-webkit-details-marker {
  display: none;
}

.ut-toc-summary::before {
  content: "▸ ";
  color: var(--ut-muted);
}

.ut-toc[open] > .ut-toc-summary::before {
  content: "▾ ";
}

.ut-toc-list {
  margin: 0.65rem 0 0;
  padding-left: 1.1rem;
}

.ut-toc-item {
  margin: 0.3rem 0;
}

.ut-toc-level-3 {
  margin-left: 0.85rem;
  list-style-type: circle;
}

.ut-toc a {
  color: var(--ut-link);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.ut-toc a:hover {
  color: var(--ut-accent);
}

.ut-entity-body {
  max-width: 70ch;
}

.ut-related {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--ut-line);
}

.ut-related-title {
  margin: 0 0 0.9rem;
  font-family: var(--ut-pixel);
  font-size: 0.68rem;
  line-height: 1.5;
  color: var(--ut-accent);
}

.ut-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ut-related-card {
  border: 2px solid var(--ut-line);
  background: var(--ut-bg-elev);
  transition: border-color 0.15s var(--ut-ease);
}

.ut-related-card:hover {
  border-color: var(--ut-accent);
}

.ut-related-link {
  display: flex;
  gap: 0.75rem;
  padding: 0.7rem;
  color: inherit;
  text-decoration: none;
  min-height: 100%;
}

.ut-related-thumb {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border: 1px solid var(--ut-line);
  background: #000;
}

.ut-related-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ut-related-thumb--empty {
  background:
    repeating-linear-gradient(
      -45deg,
      #111,
      #111 4px,
      #1a1a28 4px,
      #1a1a28 8px
    );
}

.ut-related-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.ut-related-card-title {
  font-weight: 700;
  color: var(--ut-text);
  font-size: 0.95rem;
}

.ut-related-card:hover .ut-related-card-title {
  color: var(--ut-accent);
}

.ut-related-card-blurb {
  color: var(--ut-muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.ut-entity-tax {
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ut-line);
}

.ut-entity-tax-row {
  margin: 0 0 0.45rem;
  font-size: 0.9rem;
  color: var(--ut-muted);
}

.ut-entity-tax-row:last-child {
  margin-bottom: 0;
}

.ut-entity-tax-label {
  display: inline-block;
  margin-right: 0.45rem;
  color: var(--ut-accent);
  font-weight: 700;
  font-size: 0.82rem;
}

.ut-entity-tax a {
  font-weight: 600;
}

/* —— undertale.wiki-inspired home + rail —— */

.ut-home {
  max-width: var(--ut-shell);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2rem;
}

.ut-home-hero {
  margin-bottom: 1.25rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--ut-line);
}

.ut-home-hero .ut-hero-title {
  max-width: none;
}

.ut-home-stats {
  margin: 0 0 1rem;
  max-width: 52rem;
  color: var(--ut-muted);
  font-size: 0.98rem;
}

.ut-home-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.ut-announce-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ut-announce-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  margin: 0 0 0.65rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--ut-line);
}

.ut-announce-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.ut-announce-date {
  color: var(--ut-muted);
  font-size: 0.88rem;
  min-width: 8.5rem;
}

.ut-shell {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 1.25rem;
  max-width: var(--ut-shell);
  margin: 0 auto;
  padding: 1.35rem 1.25rem 0;
  align-items: start;
}

.ut-shell-main .ut-wrap {
  padding-top: 0;
  max-width: none;
}

.ut-rail {
  position: sticky;
  top: 4.5rem;
  padding: 0.85rem 0.9rem;
  background: var(--ut-bg-panel);
  border: 3px solid var(--ut-line);
  box-shadow: 3px 3px 0 #000;
}

.ut-rail-title {
  margin: 0.65rem 0 0.4rem;
  font-family: var(--ut-pixel);
  font-size: 0.55rem;
  line-height: 1.45;
  color: var(--ut-accent);
}

.ut-rail-title:first-child {
  margin-top: 0;
}

.ut-rail-list {
  list-style: none;
  margin: 0 0 0.35rem;
  padding: 0;
}

.ut-rail-list a {
  display: block;
  padding: 0.28rem 0;
  color: var(--ut-link);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.ut-rail-list a:hover {
  color: var(--ut-accent);
}

@media (max-width: 900px) {
  .ut-home-links {
    grid-template-columns: 1fr;
  }

  .ut-shell {
    grid-template-columns: 1fr;
  }

  .ut-rail {
    position: static;
  }
}

/* —— Homepage lists, hubs, buy (module 4) —— */

.ut-post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ut-post-list-item {
  margin: 0 0 1rem;
  padding: 0 0 0.9rem;
  border-bottom: 1px solid var(--ut-line);
}

.ut-post-list-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.ut-post-list-title {
  display: inline-block;
  font-weight: 700;
  color: var(--ut-text);
  text-decoration: none;
  margin-right: 0.5rem;
}

.ut-post-list-title:hover {
  color: var(--ut-accent);
}

.ut-post-list-date {
  color: var(--ut-muted);
  font-size: 0.88rem;
}

.ut-post-list-excerpt {
  margin: 0.35rem 0 0;
  color: var(--ut-muted);
  font-size: 0.95rem;
  max-width: 70ch;
}

.ut-panel-more {
  margin: 0.85rem 0 0;
}

.ut-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.ut-hub-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border: 2px solid var(--ut-line);
  background: var(--ut-bg-elev);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s var(--ut-ease);
  min-height: 7rem;
}

.ut-hub-card:hover {
  border-color: var(--ut-accent);
}

.ut-hub-card-title {
  font-family: var(--ut-pixel);
  font-size: 0.62rem;
  line-height: 1.45;
  color: var(--ut-accent);
}

.ut-hub-card-count {
  font-size: 0.88rem;
  color: var(--ut-muted);
}

.ut-hub-card-blurb {
  font-size: 0.92rem;
  color: var(--ut-text);
}

.ut-buy-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin: 0.85rem 0;
}

.ut-buy-official {
  margin: 0;
  font-size: 0.92rem;
}

.ut-article-featured {
  margin: 0 0 1.25rem;
  border: 2px solid var(--ut-line);
  background: #000;
}

.ut-article-featured img {
  display: block;
  width: 100%;
  height: auto;
}

.ut-article-cats {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
}

.ut-archive-head {
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid var(--ut-line);
}

.ut-archive-desc {
  margin-top: 0.5rem;
  color: var(--ut-muted);
}

.ut-archive-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.ut-archive-item {
  margin: 0 0 1rem;
}

.ut-archive-card {
  padding: 1.1rem 1.2rem;
  background: var(--ut-bg-panel);
  border: 3px solid var(--ut-line);
  box-shadow: 4px 4px 0 #000;
}

.ut-archive-item-title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.ut-archive-item-title a {
  color: var(--ut-accent);
  text-decoration: none;
  font-weight: 700;
}

.ut-archive-item-title a:hover {
  color: var(--ut-link-hover);
}

.ut-archive-excerpt {
  margin: 0.45rem 0 0;
  color: var(--ut-muted);
}

.ut-pagination {
  margin: 1.25rem 0 0;
}

.ut-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ut-pagination a,
.ut-pagination span {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.25rem 0.75rem;
  border: 2px solid var(--ut-line);
  background: var(--ut-bg-elev);
  color: var(--ut-text);
  text-decoration: none;
  font-weight: 600;
}

.ut-pagination a:hover {
  border-color: var(--ut-accent);
  color: var(--ut-accent);
}

.ut-pagination .current {
  border-color: var(--ut-accent);
  color: var(--ut-accent);
}

@media (max-width: 760px) {
  .ut-entity-layout.has-infobox {
    grid-template-columns: 1fr;
  }

  .ut-entity-layout.has-infobox .ut-infobox {
    order: 0;
  }

  .ut-submenu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .ut-menu > .menu-item-has-children {
    flex-wrap: wrap;
    width: 100%;
  }

  .ut-menu > .menu-item-has-children > a {
    flex: 1;
  }

  .ut-menu > .menu-item-has-children > .sub-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    border-left: 2px solid var(--ut-accent);
    margin: 0.25rem 0 0.35rem;
  }

  .ut-menu > .menu-item-has-children.is-open > .sub-menu {
    display: block;
  }

  .ut-hub-grid {
    grid-template-columns: 1fr;
  }

  .ut-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .ut-nav {
    display: none;
    width: 100%;
  }

  .ut-header-inner.is-open .ut-nav {
    display: block;
  }

  .ut-header-inner {
    flex-wrap: wrap;
  }

  .ut-menu {
    flex-direction: column;
    padding: 0.5rem 0 0.25rem;
    gap: 0.35rem;
  }

  .ut-menu a {
    min-height: 2.75rem;
  }

  .ut-grid-2 {
    grid-template-columns: 1fr;
  }

  .ut-hero {
    padding-top: 1.85rem;
    padding-bottom: 1.35rem;
  }

  .ut-hero-title {
    max-width: none;
  }

  .ut-wrap {
    padding-top: 1.35rem;
  }

  .ut-panel,
  .ut-article,
  .ut-entity {
    padding: 1.15rem 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
