:root {
  color-scheme: light;
  --canvas: #f7f9f8;
  --paper: #fff;
  --ink: #243731;
  --muted: #62736d;
  --line: #dce5e0;
  --accent: #087967;
  --accent-soft: #e2f0e9;
  --coral: #c96756;
  --display: Georgia, "Times New Roman", serif;
  --body: "Segoe UI", Arial, sans-serif;
}
* {
  box-sizing: border-box;
  letter-spacing: 0;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 15px/1.6 var(--body);
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
summary,
select {
  cursor: pointer;
}
button {
  background: none;
  border: 0;
}
input,
select {
  min-width: 0;
}
img {
  max-width: 100%;
  object-fit: contain;
}
svg {
  width: 20px;
  height: 20px;
  flex: none;
  stroke: currentColor;
  vertical-align: middle;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.16;
}
h1 {
  font-size: 42px;
}
h2 {
  font-size: 28px;
}
h3 {
  font-size: 15px;
  line-height: 1.45;
}
p + p {
  margin-top: 12px;
}
a:hover {
  color: var(--accent);
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 30;
  padding: 10px 20px;
  background: var(--ink);
  color: white;
}
.skip:focus {
  top: 8px;
}
.js-only {
  display: none;
}
.js .js-only {
  display: flex;
}
.wrap {
  width: min(1224px, calc(100% - 80px));
  margin-inline: auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fffffff5;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.header-inner {
  width: min(1360px, calc(100% - 64px));
  min-height: 78px;
  margin: auto;
  display: flex;
  gap: 42px;
  align-items: center;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: none;
}
.brand > svg {
  width: 36px;
  height: 36px;
  color: var(--accent);
  stroke-width: 1.5;
}
.brand > span {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}
.brand strong {
  font: 700 23px var(--display);
}
.brand span span {
  font-size: 9px;
  font-weight: 700;
  margin-top: 3px;
}
.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  font-weight: 600;
  flex: none;
}
.primary-nav > a {
  display: flex;
  align-items: center;
  min-height: 78px;
  position: relative;
}
.primary-nav > a[aria-current]:after {
  content: "";
  height: 3px;
  background: var(--accent);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}
.more-nav {
  position: relative;
}
.more-nav summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
}
.more-nav summary::-webkit-details-marker {
  display: none;
}
.more-nav svg {
  width: 14px;
}
.more-nav > div {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  padding: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px #18382b12;
  border-radius: 6px;
}
.more-nav a {
  display: block;
  padding: 8px 12px;
}
.more-nav a:hover {
  background: var(--accent-soft);
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: auto;
  min-width: 0;
}
.icon-button {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: 6px;
  position: relative;
}
.icon-button:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.icon-button[aria-pressed="true"] {
  color: var(--accent);
  background: var(--accent-soft);
}
.icon-button[aria-pressed="true"] svg {
  fill: #08796718;
}
.save-count {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 10px;
  background: var(--accent);
  color: white;
  padding: 0 4px;
  border-radius: 4px;
}
.search {
  position: relative;
  max-width: 100%;
  width: 250px;
}
.search-input {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f4f7f5;
  min-height: 42px;
  padding-left: 12px;
}
.search-input > svg {
  width: 17px;
  color: var(--muted);
}
.search input {
  border: 0;
  outline: 0 !important;
  width: 100%;
  background: transparent;
  min-height: 42px;
  font-size: 12px;
}
.search-input:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px #08796712;
}
.search-large {
  width: 600px;
  margin: 25px auto 0;
  text-align: left;
}
.search-large .search-input {
  background: white;
  border-color: #cadbd2;
  min-height: 56px;
  padding-left: 18px;
  box-shadow: 0 4px 15px #254c3210;
}
.search-large input {
  min-height: 54px;
  font-size: 15px;
}
.search-large .icon-button {
  margin: 5px;
  background: var(--accent);
  color: white;
  width: 42px;
  height: 42px;
}
.search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 25;
  max-height: 420px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  box-shadow: 0 8px 32px #20332a20;
}
.search-result {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.search-result:hover,
.search-result:focus {
  background: var(--accent-soft);
}
.search-result img {
  width: 42px;
  height: 42px;
}
.search-result span {
  min-width: 0;
}
.search-result strong,
.search-result small {
  display: block;
}
.search-result small {
  font-size: 11px;
  color: var(--muted);
}
.search-message {
  padding: 16px;
  font-size: 13px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}
.home-intro {
  text-align: center;
  padding-top: 40px;
  padding-bottom: 38px;
}
.home-intro h1 {
  font-size: 46px;
}
.home-intro > p {
  color: var(--muted);
  margin-top: 12px;
  font-size: 15px;
}
.bestiary-band {
  background: #edf4ef;
  border-block: 1px solid #deebe2;
  padding: 28px 0 32px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.section-heading > a {
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.section-heading > a svg {
  width: 16px;
}
.section-heading h2 span {
  font: 12px var(--body);
  margin-left: 8px;
  color: var(--muted);
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
}
.entity-tile {
  min-width: 0;
  position: relative;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
}
.entity-tile:hover {
  border-color: #98b9a8;
  box-shadow: 0 5px 18px #244e3410;
}
.tile-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit !important;
}
.tile-art {
  display: grid;
  place-items: center;
  background: #f2f6f3;
  aspect-ratio: 1.35;
  min-width: 0;
  overflow: hidden;
  padding: 20px;
}
.tile-art img {
  width: 100%;
  height: 100%;
  min-height: 0;
  transition: transform 0.23s ease;
}
.tile-link:hover .tile-art img {
  transform: translateY(-4px);
}
.tile-copy {
  padding: 16px 18px 18px;
}
.tile-copy h3 {
  overflow-wrap: anywhere;
  padding-right: 22px;
}
.tile-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.dot {
  color: #94a29a;
}
.tile-description {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.save-button {
  position: absolute;
  right: 8px;
  top: 8px;
  background: #ffffffbd;
  width: 32px;
  height: 32px;
}
.save-button svg {
  width: 16px;
  height: 16px;
}
.image-fallback {
  color: #a5b8ad;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}
.image-fallback svg {
  width: 28px;
  height: 28px;
}
.featured {
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
.featured:hover {
  box-shadow: none;
}
.featured .tile-art {
  background: transparent;
  padding: 5px 15px;
  aspect-ratio: 1.12;
}
.featured .tile-copy {
  padding: 12px 3px 0;
  text-align: center;
}
.featured .tile-copy h3 {
  padding: 0;
  font-size: 14px;
}
.featured .save-button {
  background: transparent;
  opacity: 0;
}
.featured:hover .save-button,
.featured:focus-within .save-button,
.featured .save-button[aria-pressed="true"] {
  opacity: 1;
}
.job-section,
.maps-section {
  padding-top: 36px;
  padding-bottom: 36px;
}
.job-section {
  border-bottom: 1px solid var(--line);
}
.job-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}
.job-row a {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}
.job-row img {
  width: 38px;
  height: 38px;
}
.job-row strong {
  font-size: 12px;
}
.job-row svg {
  width: 14px;
  margin-left: auto;
  color: #789688;
}
.map-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.map-grid .tile-art {
  aspect-ratio: 2.25;
  padding: 12px;
  background: #e6eee8;
}
.map-grid .tile-art img {
  object-fit: cover;
  object-position: center 43%;
  border-radius: 3px;
}
.map-grid .tile-copy {
  padding: 16px 20px;
}
.gear-band {
  padding: 36px 0 44px;
  background: #eef1f7;
  border-top: 1px solid #e0e5ee;
}
.gear-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}
.gear-links a {
  display: flex;
  align-items: center;
  gap: 16px;
}
.gear-links > a > svg:first-child {
  width: 24px;
  height: 24px;
  color: #536889;
}
.gear-links span {
  display: flex;
  flex-direction: column;
}
.gear-links strong {
  font-size: 14px;
}
.gear-links small {
  font-size: 12px;
  color: var(--muted);
}
.gear-links > a > svg:last-child {
  margin-left: auto;
  width: 16px;
}
footer {
  width: min(1224px, calc(100% - 80px));
  margin: auto;
  padding: 32px 0;
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 11px;
  color: var(--muted);
}
footer > span {
  margin-right: auto;
}
.footer-brand {
  font-family: var(--display);
  font-weight: bold;
  font-size: 15px;
  color: var(--ink);
}
.page-heading {
  padding-top: 40px;
  padding-bottom: 30px;
}
.page-heading > p {
  color: var(--muted);
  margin-top: 12px;
}
.subnav {
  display: flex;
  gap: 24px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 24px;
}
.subnav a {
  color: var(--accent);
}
.catalog-toolbar {
  gap: 12px;
  align-items: center;
  padding: 16px 0;
  border-block: 1px solid var(--line);
}
.filter-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 180px;
  flex: 1;
}
.filter-search svg {
  color: var(--muted);
  width: 18px;
}
.filter-search input {
  background: white;
  border: 1px solid var(--line);
  border-radius: 5px;
  min-height: 40px;
  width: 100%;
  padding: 0 12px;
  font-size: 13px;
}
.filter-fields {
  display: flex;
  align-items: center;
  gap: 14px;
}
.filter-fields label {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.filter-fields select,
.rank-control select {
  background: var(--paper);
  border: 1px solid var(--line);
  min-height: 40px;
  border-radius: 5px;
  padding: 0 25px 0 10px;
  max-width: 190px;
  font-size: 12px;
  color: var(--ink);
}
.view-switch {
  display: flex;
  border-left: 1px solid var(--line);
  padding-left: 12px;
}
.view-switch .icon-button {
  width: 34px;
}
.filter-toggle {
  display: none;
}
.results-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  margin: 20px 0;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.catalog {
  padding-bottom: 60px;
}
.maps-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.maps-grid .tile-art {
  aspect-ratio: 1.8;
  padding: 8px;
}
.maps-grid .tile-art img {
  object-fit: cover;
}
.equipment-grid .tile-art,
.skills-grid .tile-art,
.items-grid .tile-art,
.buffs-grid .tile-art {
  aspect-ratio: 2;
  padding: 25px;
}
.cards-grid .tile-art {
  aspect-ratio: 1.2;
  padding: 20px;
}
.jobs-grid .tile-art {
  aspect-ratio: 2;
  padding: 28px;
}
.list-view {
  grid-template-columns: 1fr;
}
.list-view .entity-tile {
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
}
.list-view .tile-link {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  min-height: 88px;
}
.list-view .tile-art {
  aspect-ratio: 1;
  height: 72px;
  padding: 8px;
}
.list-view .tile-copy {
  padding: 8px 50px 8px 20px;
}
.list-view .save-button {
  top: 24px;
}
.empty {
  padding: 38px 22px;
  color: var(--muted);
  text-align: center;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  padding: 28px 0;
  flex-wrap: wrap;
}
.breadcrumb svg {
  width: 12px;
  height: 12px;
}
.entity-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 60px;
  align-items: center;
  padding: 4px 0 28px;
  border-bottom: 1px solid var(--line);
  min-height: 220px;
}
.entity-heading h1 {
  font-size: 38px;
  overflow-wrap: anywhere;
}
.entity-copy {
  min-width: 0;
}
.title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.title-row .save-button {
  position: static;
  flex: none;
  width: 40px;
  height: 40px;
  background: var(--accent-soft);
}
.entity-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 17px;
}
.entity-meta > span {
  font-size: 11px;
  background: var(--accent-soft);
  color: #376b57;
  padding: 4px 9px;
  border-radius: 3px;
}
.entity-intro {
  margin-top: 17px;
  color: var(--muted);
  font-size: 14px;
  max-width: 70ch;
}
.entity-intro:empty {
  display: none;
}
.detail-art {
  display: grid;
  place-items: center;
  height: 220px;
}
.detail-art img {
  width: 100%;
  height: 100%;
  max-height: 220px;
}
.detail-art.cards {
  height: 250px;
}
.detail-art.cards img {
  max-height: 250px;
}
.detail-art.skills,
.detail-art.equipment {
  height: 120px;
}
.detail-art.skills img,
.detail-art.equipment img {
  max-height: 120px;
}
.entity-page > .section-heading {
  margin-top: 32px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.related-grid .tile-link {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  min-height: 80px;
}
.related-grid .tile-art {
  width: 64px;
  height: 72px;
  aspect-ratio: auto;
  padding: 8px;
  background: transparent;
}
.related-grid .tile-copy {
  padding: 12px 14px;
}
.related-grid .tile-copy h3 {
  font-size: 13px;
  padding-right: 16px;
}
.related-grid .tile-description {
  display: none;
}
.related-grid .save-button {
  width: 24px;
  height: 24px;
  top: 6px;
  right: 4px;
}
.related-grid .save-button svg {
  width: 13px;
}
.detail-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.detail-section > h2 {
  margin-bottom: 16px;
}
.detail-section > .section-heading {
  margin-top: 24px;
  margin-bottom: 14px;
}
.detail-section > .section-heading h2 {
  font: 600 14px var(--body);
}
.muted {
  color: var(--muted);
  font-size: 13px;
}
.plain-list {
  padding-left: 22px;
  margin: 12px 0;
}
.plain-list li {
  padding: 6px 0;
}
.disclosure {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.disclosure > summary {
  font-size: 14px;
  font-weight: 600;
  min-height: 40px;
  align-content: center;
}
.disclosure > summary span {
  font-size: 11px;
  color: var(--muted);
  margin-left: 12px;
}
.source-details {
  margin-top: 24px;
  margin-bottom: 40px;
  color: var(--muted);
}
.source-details p {
  font-size: 12px;
}
.table-scroll {
  overflow: auto;
  max-height: 450px;
  margin-top: 12px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
th,
td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  background: var(--accent-soft);
  position: sticky;
  top: 0;
  font-weight: 600;
  white-space: nowrap;
}
.facts {
  display: flex;
  gap: 20px 36px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.facts > div {
  min-width: 90px;
  max-width: 100%;
}
.facts dt {
  font-size: 11px;
  color: var(--muted);
}
.facts dd {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.facts .facts dd {
  font-weight: 400;
}
.rank-control {
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}
.rank-label {
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 12px;
}
.js .rank-label {
  display: none;
}
.stats {
  margin: 12px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  max-width: 760px;
}
.stats > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 20px;
  background: white;
  align-items: center;
}
.stats dt {
  font-size: 13px;
}
.stats dd {
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
  margin: 0;
  color: var(--accent);
}
.skill-description {
  max-width: 80ch;
}
.map-page .entity-heading,
.maps-page .entity-heading {
  grid-template-columns: 1fr;
  min-height: 0;
  padding-bottom: 24px;
}
.map-tool {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.map-toolbar {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  background: white;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.map-toolbar h2 {
  font: 600 14px var(--body);
  margin-right: auto;
}
.map-toolbar > div {
  align-items: center;
}
.map-toolbar output {
  font-size: 11px;
  width: 44px;
  text-align: center;
}
.map-viewport {
  height: 560px;
  overflow: auto;
  background: #e5eee7;
  text-align: center;
  touch-action: pan-x pan-y;
}
.map-viewport img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-width: none;
  margin: auto;
}
.map-tool + p {
  margin-top: 10px;
}
.utility-page {
  min-height: 65vh;
  padding-bottom: 48px;
}
.utility-page .search-large {
  margin: 0 0 28px;
}
.utility-page [data-utility-status] {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
}
.prose {
  max-width: 780px;
  padding-bottom: 55px;
}
.prose h2 {
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: 24px;
}
.prose p {
  color: var(--muted);
}
.about-links {
  display: flex;
  gap: 12px 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.about-links a {
  color: var(--accent);
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  background: var(--ink);
  color: white;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 13px;
  max-width: calc(100% - 32px);
  box-shadow: 0 5px 20px #0002;
}
.entity-tile.highlight {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.button {
  border: 1px solid var(--line);
  border-radius: 5px;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  font-size: 12px;
  background: white;
}
@media (prefers-reduced-motion: no-preference) {
  .home-intro {
    animation: arrive 0.3s ease-out;
  }
  .featured-grid .entity-tile {
    animation: arrive 0.4s ease-out both;
  }
  .featured-grid .entity-tile:nth-child(2) {
    animation-delay: 0.04s;
  }
  .featured-grid .entity-tile:nth-child(3) {
    animation-delay: 0.08s;
  }
  .featured-grid .entity-tile:nth-child(4) {
    animation-delay: 0.12s;
  }
  .featured-grid .entity-tile:nth-child(5) {
    animation-delay: 0.16s;
  }
  @keyframes arrive {
    from {
      opacity: 0;
      transform: translateY(6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
@media (min-width: 1450px) {
  .featured .tile-art {
    max-height: 200px;
  }
  .home-intro {
    padding-top: 48px;
  }
}
@media (max-width: 1150px) {
  .header-inner {
    gap: 25px;
  }
  .primary-nav {
    gap: 18px;
  }
  .header-tools .search {
    width: 205px;
  }
  .filter-fields {
    gap: 8px;
  }
  .filter-fields label {
    display: block;
  }
  .filter-fields select {
    display: block;
    max-width: 130px;
  }
  .catalog-grid {
    gap: 16px;
  }
  .job-row {
    gap: 12px;
  }
  .job-row svg {
    display: none;
  }
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .header-inner {
    width: calc(100% - 32px);
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 12px;
    min-height: 0;
  }
  .brand > svg {
    width: 30px;
    height: 30px;
  }
  .brand strong {
    font-size: 21px;
  }
  .header-tools {
    flex: 1;
    justify-content: flex-end;
  }
  .header-tools .search {
    width: min(330px, 100%);
  }
  .primary-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }
  .primary-nav > a {
    min-height: 44px;
    font-size: 12px;
  }
  .more-nav summary {
    min-height: 44px;
    font-size: 12px;
  }
  .more-nav > div {
    left: auto;
    right: 0;
  }
  .header-tools .search-input > svg {
    display: none;
  }
  .featured-grid {
    gap: 12px;
  }
  .featured .tile-art {
    padding: 3px;
    aspect-ratio: 1;
  }
  .featured .tile-copy h3 {
    font-size: 12px;
  }
  .featured .tile-meta {
    font-size: 10px;
  }
  .job-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
  .job-row a {
    gap: 12px;
  }
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .filter-fields {
    flex-wrap: wrap;
    gap: 10px;
  }
  .catalog-toolbar {
    flex-wrap: wrap;
  }
  .filter-search {
    max-width: none;
  }
  .filter-fields select {
    max-width: 170px;
  }
  .filter-fields label {
    display: flex;
  }
  .view-switch {
    margin-left: auto;
  }
  .entity-heading {
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 20px;
  }
  .detail-art {
    height: 180px;
  }
  .entity-heading h1 {
    font-size: 32px;
  }
  .entity-intro {
    font-size: 13px;
  }
  .gear-links {
    gap: 20px;
  }
  .gear-links > a > svg:last-child {
    display: none;
  }
  footer {
    width: calc(100% - 40px);
    flex-wrap: wrap;
    gap: 12px;
  }
  footer > span {
    order: 3;
    width: 100%;
  }
  .list-view {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  body {
    font-size: 14px;
  }
  .wrap {
    width: calc(100% - 32px);
  }
  .header-inner {
    gap: 8px;
  }
  .header-tools .search {
    width: 180px;
  }
  .header-tools {
    gap: 2px;
  }
  .header-tools .search input {
    font-size: 11px;
    min-height: 36px;
  }
  .header-tools .search-input {
    min-height: 36px;
    padding-left: 10px;
  }
  .header-tools .search .icon-button {
    width: 30px;
    height: 34px;
  }
  .header-tools > .icon-button {
    width: 32px;
  }
  .brand {
    gap: 6px;
  }
  .brand > svg {
    width: 26px;
    height: 26px;
  }
  .brand strong {
    font-size: 19px;
  }
  .brand span span {
    font-size: 7px;
  }
  .primary-nav {
    gap: 4px;
  }
  .primary-nav > a,
  .more-nav summary {
    font-size: 11px;
    white-space: nowrap;
  }
  .primary-nav > a {
    min-height: 42px;
  }
  .more-nav svg {
    display: none;
  }
  h1 {
    font-size: 32px;
  }
  h2 {
    font-size: 23px;
  }
  .home-intro {
    padding-top: 28px;
    padding-bottom: 28px;
  }
  .home-intro h1 {
    font-size: 35px;
  }
  .home-intro > p {
    font-size: 12px;
  }
  .home-intro .eyebrow {
    font-size: 9px;
    margin-bottom: 9px;
  }
  .search-large {
    margin-top: 20px;
  }
  .search-large .search-input {
    min-height: 50px;
  }
  .search-large input {
    min-height: 48px;
    font-size: 13px;
  }
  .search-large .icon-button {
    height: 36px;
    width: 36px;
  }
  .bestiary-band {
    padding: 22px 0;
  }
  .section-heading {
    margin-bottom: 16px;
    gap: 12px;
  }
  .section-heading > a {
    font-size: 11px;
  }
  .section-heading h2 {
    font-size: 23px;
  }
  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 18px;
  }
  .featured .tile-art {
    aspect-ratio: 1.7;
    padding: 0 18px;
  }
  .featured .tile-copy {
    padding-top: 8px;
  }
  .featured:nth-child(5) {
    display: none;
  }
  .featured .tile-copy h3 {
    font-size: 13px;
  }
  .featured .save-button {
    opacity: 1;
    top: 0;
    right: 0;
  }
  .job-section,
  .maps-section {
    padding-block: 25px;
  }
  .job-row {
    gap: 20px 8px;
  }
  .job-row img {
    width: 28px;
    height: 28px;
  }
  .job-row a {
    gap: 7px;
  }
  .job-row strong {
    font-size: 11px;
  }
  .map-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .map-grid .tile-link {
    display: grid;
    grid-template-columns: 105px 1fr;
    align-items: center;
  }
  .map-grid .tile-art {
    aspect-ratio: 1.3;
    padding: 0;
  }
  .map-grid .tile-copy {
    padding: 12px;
  }
  .gear-band {
    padding: 25px 0;
  }
  .gear-band .section-heading {
    align-items: flex-start;
  }
  .gear-band h2 {
    max-width: 220px;
  }
  .gear-links {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .gear-links > a > svg:last-child {
    display: block;
  }
  .page-heading {
    padding: 28px 0 24px;
  }
  .page-heading > p {
    font-size: 13px;
  }
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .tile-art {
    padding: 12px;
    aspect-ratio: 1.3;
  }
  .tile-copy {
    padding: 12px;
  }
  .tile-copy h3 {
    font-size: 13px;
  }
  .tile-meta {
    font-size: 10px;
  }
  .tile-description {
    font-size: 11px;
  }
  .tile-copy h3 {
    padding-right: 8px;
  }
  .catalog-toolbar {
    gap: 10px;
    padding: 12px 0;
  }
  .filter-search {
    min-width: 0;
  }
  .filter-search > svg {
    display: none;
  }
  .filter-search input {
    font-size: 12px;
  }
  .filter-toggle {
    display: flex;
  }
  .filter-fields {
    display: none;
    order: 4;
    width: 100%;
    padding: 12px 0;
  }
  .filter-fields.open {
    display: flex;
  }
  .filter-fields label {
    flex: 1;
    display: block;
    min-width: 100px;
  }
  .filter-fields select {
    width: 100%;
    max-width: none;
    margin-top: 5px;
  }
  .view-switch {
    padding-left: 6px;
  }
  .view-switch .icon-button {
    width: 30px;
    height: 36px;
  }
  .view-switch svg {
    width: 17px;
  }
  .results-meta {
    margin: 15px 0;
  }
  .list-view {
    grid-template-columns: 1fr;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
  .breadcrumb {
    font-size: 10px;
    padding: 20px 0;
    gap: 5px;
  }
  .entity-heading {
    position: relative;
    display: block;
    padding: 0 0 22px;
    min-height: 0;
  }
  .entity-heading h1 {
    font-size: 30px;
  }
  .entity-copy {
    padding-right: 80px;
    min-height: 105px;
  }
  .title-row {
    gap: 5px;
  }
  .title-row .save-button {
    width: 30px;
    height: 30px;
  }
  .detail-art {
    position: absolute;
    right: 0;
    top: 0;
    width: 72px;
    height: 94px;
  }
  .detail-art img {
    height: 100%;
    width: 100%;
  }
  .detail-art.cards {
    height: 110px;
  }
  .detail-art.skills,
  .detail-art.equipment {
    height: 70px;
  }
  .entity-meta {
    gap: 5px;
    margin-top: 12px;
  }
  .entity-meta > span {
    font-size: 10px;
    padding: 3px 6px;
  }
  .entity-intro {
    margin-top: 12px;
    font-size: 12px;
  }
  .entity-intro p {
    overflow-wrap: anywhere;
  }
  .entity-heading:has(.entity-intro p) .entity-copy {
    padding-right: 0;
  }
  .entity-heading:has(.entity-intro p) .title-row,
  .entity-heading:has(.entity-intro p) .eyebrow {
    padding-right: 80px;
  }
  .entity-heading:has(.entity-intro p) .entity-meta {
    padding-right: 70px;
  }
  .maps-page .entity-copy {
    padding-right: 0;
    min-height: 0;
  }
  .maps-page .entity-heading:has(.entity-intro p) .entity-meta {
    padding-right: 0;
  }
  .detail-section {
    padding-block: 24px;
  }
  .detail-section h2,
  .entity-page > .section-heading h2 {
    font-size: 23px;
  }
  .progression > .section-heading {
    align-items: center;
  }
  .rank-control {
    gap: 5px;
  }
  .rank-control select {
    max-width: 150px;
    min-height: 36px;
  }
  .stats > div {
    padding: 13px 15px;
  }
  .stats dt {
    font-size: 12px;
  }
  .stats dd {
    font-size: 17px;
  }
  .map-viewport {
    height: 390px;
  }
  .map-toolbar {
    padding: 6px 10px;
    gap: 2px;
  }
  .map-toolbar .icon-button {
    width: 33px;
    height: 36px;
  }
  .map-toolbar output {
    width: 37px;
  }
  .map-toolbar h2 {
    font-size: 12px;
  }
  .facts {
    gap: 15px 24px;
  }
  .facts dd {
    font-size: 13px;
  }
  .maps-grid .tile-art {
    aspect-ratio: 1.3;
  }
  .equipment-grid .tile-art,
  .skills-grid .tile-art,
  .items-grid .tile-art {
    padding: 18px;
  }
  .source-details {
    margin-bottom: 24px;
  }
  footer {
    width: calc(100% - 32px);
    padding-block: 24px;
    font-size: 10px;
  }
  .footer-brand {
    margin-right: auto;
  }
  .search-results {
    min-width: 270px;
    left: auto;
    width: 100%;
    right: 0;
  }
  .search-large .search-results {
    min-width: 0;
  }
  .search-result {
    padding: 9px 11px;
    font-size: 12px;
  }
  .search-result img {
    width: 35px;
    height: 35px;
  }
}
.source-details pre {
  max-height: 420px;
  overflow: auto;
  background: #edf2ef;
  padding: 20px;
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.icon-button:disabled {
  opacity: 0.35;
  cursor: default;
}
.detail-art.jobs {
  height: 96px;
}
.detail-art.jobs img {
  max-height: 96px;
}
.jobs-page .entity-heading {
  min-height: 160px;
}
@media (max-width: 600px) {
  .entity-page > .section-heading h2 {
    font-size: 21px;
  }
  .jobs-page .entity-heading {
    min-height: 0;
  }
  .detail-art.jobs {
    height: 72px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
