:root {
  --cork: #855736;
  --cork-dark: #603b24;
  --leather: #241b12;
  --paper: #eee2bd;
  --paper-light: #f7efcf;
  --ink: #342a1e;
  --muted: #746650;
  --line: rgba(94, 73, 44, 0.3);
  --green: #50765a;
  --green-dark: #34553d;
  --gold: #b8772f;
  --red: #a3503c;
  --shadow: 8px 11px 0 rgba(55, 31, 16, 0.17), 0 24px 52px rgba(45, 25, 12, 0.24);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background-color: var(--cork);
  background-image:
    radial-gradient(circle at 13px 19px, rgba(70, 42, 23, 0.16) 0 1px, transparent 1.7px),
    radial-gradient(circle at 43px 47px, rgba(255, 231, 191, 0.16) 0 1.1px, transparent 1.9px),
    repeating-linear-gradient(19deg, rgba(255, 239, 208, 0.028) 0 2px, transparent 2px 7px),
    linear-gradient(135deg, #b98960, #956542 56%, #aa7650);
  background-size: 82px 64px, 91px 73px, auto, auto;
  color: var(--ink);
  font: 16px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input, select { font: inherit; }
a { color: inherit; }
.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 72px;
  gap: 28px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(234, 202, 150, 0.22);
  background: rgba(35, 27, 18, 0.96);
  color: #f1e3c7;
  box-shadow: 0 6px 22px rgba(45, 26, 14, 0.2);
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand > span:last-child { display: grid; }
.brand strong { font: 700 1.05rem/1.1 Georgia, serif; letter-spacing: 0.04em; }
.brand small { color: #b8a78a; font-size: 0.55rem; font-weight: 800; letter-spacing: 0.11em; text-transform: uppercase; }
.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(213, 170, 97, 0.52);
  border-radius: 50%;
  color: #d5aa61;
  background: rgba(211, 165, 85, 0.08);
  font: 700 1rem Georgia, serif;
  place-items: center;
}
.site-nav { display: flex; justify-content: center; gap: 6px; }
.site-nav a, .site-nav span { padding: 8px 10px; color: #c5b494; font-size: 0.75rem; font-weight: 800; text-decoration: none; }
.site-nav a:hover, .site-nav a.active { color: #f1e3c7; }
.site-nav span[aria-disabled="true"] { opacity: 0.45; }
.edition-badge { padding: 6px 9px; border: 1px solid rgba(213, 170, 97, 0.3); border-radius: 2px; color: #cfb98f; font-size: 0.63rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }

.page-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 34px 0 90px; }
.breadcrumbs { display: flex; gap: 8px; margin-bottom: 16px; color: #ead8b6; font-size: 0.75rem; font-weight: 750; }
.breadcrumbs a { text-decoration-color: rgba(234, 216, 182, 0.4); text-underline-offset: 3px; }
.dossier-hero {
  position: relative;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  align-items: center;
  gap: 30px;
  padding: 34px;
  border-radius: 3px 10px 4px 8px;
  background:
    linear-gradient(90deg, transparent 0 45px, rgba(152, 75, 61, 0.08) 46px, transparent 47px),
    repeating-linear-gradient(0deg, transparent 0 36px, rgba(87, 78, 59, 0.065) 37px),
    linear-gradient(145deg, #f1e4bd, #d9c695);
  box-shadow: var(--shadow);
}
.hero-image-wrap { position: relative; display: grid; min-height: 280px; padding: 38px 24px 26px; border: 1px solid rgba(101, 80, 50, 0.3); border-radius: 3px 12px 4px 10px; background: rgba(255, 250, 228, 0.44); place-items: center; }
.hero-image-wrap::before { position: absolute; z-index: 2; top: -10px; left: 50%; width: 86px; height: 22px; background: linear-gradient(100deg, rgba(214, 192, 139, 0.73), rgba(235, 219, 177, 0.83) 48%, rgba(202, 176, 117, 0.7)); box-shadow: 0 2px 3px rgba(58, 40, 22, 0.11); clip-path: polygon(0 13%, 7% 0, 18% 8%, 31% 1%, 45% 10%, 61% 2%, 76% 9%, 90% 0, 100% 16%, 96% 88%, 83% 100%, 68% 91%, 52% 100%, 34% 92%, 17% 100%, 2% 86%); content: ""; transform: translateX(-50%) rotate(-2deg); }
.pal-icon-hero { width: 235px; height: 235px; object-fit: contain; image-rendering: auto; filter: drop-shadow(0 14px 11px rgba(62, 42, 22, 0.2)); }
.hero-image-wrap.has-full-render { min-height: 390px; padding: 18px 8px 5px; background: radial-gradient(circle at 50% 38%, #fffdf0 0 38%, #f8edca 70%, #ead7a7 100%); box-shadow: inset 0 0 34px rgba(126, 89, 42, 0.08); overflow: visible; }
.hero-image-wrap.has-full-render::before { top: -15px; width: 98px; height: 27px; }
.pal-icon-hero.pal-full-render { width: 100%; height: 385px; object-fit: contain; filter: drop-shadow(0 18px 14px rgba(55, 36, 20, 0.28)); }
.pal-icon-stamp-wrap { position: absolute; z-index: 3; right: 13px; bottom: 13px; display: grid; width: 74px; height: 74px; border: 2px solid rgba(92, 68, 39, 0.5); border-radius: 3px 8px 4px 7px; background: rgba(244, 232, 194, 0.94); box-shadow: 3px 4px 0 rgba(57, 38, 20, 0.15); transform: rotate(3deg); place-items: center; }
.pal-icon-stamp-wrap[hidden] { display: none; }
.pal-icon-stamp-wrap::before { position: absolute; top: -8px; left: 50%; width: 38px; height: 15px; background: rgba(218, 194, 141, 0.86); clip-path: polygon(2% 11%, 15% 0, 31% 8%, 47% 1%, 64% 9%, 82% 2%, 100% 14%, 96% 89%, 78% 100%, 57% 92%, 35% 100%, 16% 91%, 0 82%); content: ""; transform: translateX(-50%) rotate(-3deg); }
.pal-icon-stamp-wrap img { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 4px 3px rgba(57, 38, 20, 0.16)); }
.hero-image-wrap.has-full-render .type-stamp { display: none; }
.type-stamp { position: absolute; left: 16px; bottom: 15px; padding: 5px 8px; border: 2px solid rgba(64, 105, 72, 0.54); border-radius: 2px; color: var(--green-dark); font-size: 0.62rem; font-weight: 900; letter-spacing: 0.11em; text-transform: uppercase; transform: rotate(-2deg); }
.eyebrow, .section-heading p, .research-card > div > p { margin: 0 0 7px; color: #845724; font-size: 0.67rem; font-weight: 900; letter-spacing: 0.13em; text-transform: uppercase; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; }
h1 { margin: 0; color: #2f261c; font-size: clamp(2.8rem, 6vw, 5.5rem); line-height: 0.95; letter-spacing: -0.045em; }
.hero-summary { max-width: 570px; margin: 20px 0 23px; color: #685b48; font-family: Georgia, serif; font-size: 1rem; font-style: italic; }
.hero-profile { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 24px; }
.hero-profile > div { display: grid; align-content: center; min-height: 68px; padding: 10px 12px; border: 1px solid rgba(96, 74, 43, 0.27); border-radius: 2px 7px 3px 6px; background: rgba(255, 251, 232, 0.35); }
.hero-profile > div > span { display: block; color: #776850; font-size: 0.61rem; font-weight: 850; letter-spacing: 0.06em; text-transform: uppercase; }
.hero-profile > div > strong { display: flex; align-items: center; min-height: 29px; margin-top: 4px; color: #3c533e; font: 700 1.02rem Georgia, serif; }
.hero-profile .element-chip { padding: 2px 7px 2px 3px; font: 850 0.67rem/1 system-ui, sans-serif; }
.hero-profile .element-chip img { width: 25px; height: 25px; }
.rarity-label { width: fit-content; padding: 4px 8px; border-radius: 3px; }
.rarity-label[data-tier="common"] { color: #5f5a50; background: rgba(105, 99, 86, 0.1); }
.rarity-label[data-tier="rare"] { color: #356084; background: rgba(57, 112, 155, 0.12); }
.rarity-label[data-tier="epic"] { color: #795099; background: rgba(125, 78, 162, 0.13); }
.rarity-label[data-tier="legendary"] { color: #9a6420; background: rgba(190, 128, 38, 0.14); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 15px; border: 1px solid transparent; border-radius: 3px 8px 4px 7px; font-weight: 850; text-decoration: none; cursor: pointer; }
.button-primary { border-color: #385d42; color: #fff7df; background: linear-gradient(#5f8968, #466c50); box-shadow: 2px 3px 0 rgba(46, 76, 53, 0.2); }
.button-secondary { border-color: rgba(71, 102, 76, 0.45); color: #3d6548; background: rgba(87, 127, 91, 0.08); }
.button-dark { border-color: rgba(225, 193, 139, 0.24); color: #f0dfbe; background: #3a2b1d; }
.coverage-note { position: relative; align-self: stretch; padding: 31px 22px 20px; border-radius: 2px 8px 3px 7px; background: linear-gradient(145deg, #d9dfa9, #bbc98c); box-shadow: 4px 6px 0 rgba(69, 53, 29, 0.12); transform: rotate(0.45deg); }
.coverage-note .pin { position: absolute; top: 10px; left: 50%; width: 11px; height: 11px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #c6dcad, #66864f 65%, #3e5a34); transform: translateX(-50%); }
.note-kicker { margin: 0; color: #4d683f; font-size: 0.68rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.coverage-note ul { margin: 14px 0 16px; padding-left: 19px; color: #3d472f; font-size: 0.82rem; }
.coverage-note li + li { margin-top: 6px; }
.note-small { margin: 0; color: #596047; font: italic 0.73rem/1.5 Georgia, serif; }

.pal-search { margin: 20px 0; padding: 17px 20px; border: 1px solid rgba(234, 201, 144, 0.2); border-radius: 3px 9px 4px 8px; background: rgba(53, 37, 24, 0.72); color: #ebd9b8; }
.pal-search-top { margin-top: 0; }
.pal-search label { display: block; margin-bottom: 7px; font-size: 0.7rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.pal-search > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
input, select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid rgba(96, 74, 44, 0.36); border-radius: 3px 8px 4px 7px; outline: 0; color: var(--ink); background: #f7efd3; }
input:focus, select:focus { border-color: #568062; box-shadow: 0 0 0 3px rgba(78, 121, 88, 0.14); }
.field-message { min-height: 1em; margin: 7px 0 0; color: #f2b4a5; font-size: 0.75rem; }
.section-index { position: sticky; z-index: 30; top: 82px; display: flex; gap: 5px; margin-bottom: 20px; padding: 8px; overflow-x: auto; border-radius: 3px 8px 4px 7px; background: rgba(46, 31, 20, 0.88); box-shadow: 0 7px 18px rgba(48, 27, 14, 0.18); scrollbar-width: thin; }
.section-index a { flex: 0 0 auto; padding: 8px 11px; color: #d9c39e; font-size: 0.72rem; font-weight: 850; text-decoration: none; }
.section-index a:hover { color: #fff2d6; background: rgba(232, 198, 137, 0.08); }
.paper-panel { position: relative; margin-top: 20px; padding: 28px; border: 1px solid rgba(102, 79, 48, 0.24); border-radius: 2px 8px 3px 7px; background: radial-gradient(ellipse at 0 18%, rgba(119, 83, 45, 0.08), transparent 20%), radial-gradient(ellipse at 100% 74%, rgba(119, 83, 45, 0.07), transparent 18%), linear-gradient(145deg, #f0e6c5, #d9caa4); box-shadow: inset 0 1px rgba(255, 250, 230, 0.58), inset 2px 0 rgba(98, 70, 38, 0.05), inset -2px 0 rgba(98, 70, 38, 0.07), var(--shadow); }
.paper-panel::before { position: absolute; z-index: 2; top: -11px; left: 50%; width: 98px; height: 25px; background: linear-gradient(100deg, rgba(213, 191, 140, 0.68), rgba(232, 216, 174, 0.78), rgba(203, 178, 122, 0.65)); box-shadow: 0 2px 4px rgba(58, 40, 22, 0.1); clip-path: polygon(0 12%, 9% 0, 22% 8%, 36% 1%, 52% 9%, 67% 0, 83% 8%, 100% 2%, 97% 88%, 82% 100%, 64% 91%, 48% 100%, 29% 92%, 12% 100%, 2% 87%); content: ""; transform: translateX(-50%) rotate(-0.8deg); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px dashed var(--line); }
.section-heading h2, .research-card h2 { margin: 0; color: #34291d; font-size: 1.55rem; }
.section-heading > span { max-width: 430px; color: #756650; font: italic 0.83rem Georgia, serif; text-align: right; }
.general-info-layout { display: grid; grid-template-columns: minmax(230px, 0.8fr) minmax(250px, 1fr); gap: 12px; }
.pal-description { grid-column: 1 / -1; margin: 0; padding: 4px 8px 13px; border-bottom: 1px dashed var(--line); color: #625641; font: italic 1rem/1.55 Georgia, serif; }
.general-card { padding: 17px; border: 1px solid var(--line); border-radius: 3px 9px 4px 8px; background: linear-gradient(145deg, rgba(255, 252, 235, 0.44), rgba(239, 228, 197, 0.26)); box-shadow: inset 0 1px rgba(255, 255, 244, 0.48), inset 1px 0 rgba(95, 71, 42, 0.035); }
.general-card:nth-of-type(4n + 1) { background: linear-gradient(145deg, rgba(244, 230, 191, 0.62), rgba(229, 208, 163, 0.38)); }
.general-card:nth-of-type(4n + 2) { background: linear-gradient(145deg, rgba(218, 230, 197, 0.62), rgba(194, 210, 169, 0.36)); }
.general-card:nth-of-type(4n + 3) { background: linear-gradient(145deg, rgba(207, 225, 226, 0.62), rgba(179, 207, 210, 0.36)); }
.general-card:nth-of-type(4n) { background: linear-gradient(145deg, rgba(234, 213, 221, 0.6), rgba(211, 185, 199, 0.34)); }
.general-card h3 { margin: 0 0 14px; color: #3f3426; font: 700 1.03rem Georgia, serif; }
.profile-list { margin: 0; }
.profile-list > div { display: grid; grid-template-columns: 105px minmax(0, 1fr); align-items: center; gap: 12px; min-height: 47px; padding: 7px 0; border-bottom: 1px dashed rgba(101, 79, 48, 0.24); }
.profile-list > div:last-child { border-bottom: 0; }
.profile-list dt { color: #74664f; font-size: 0.67rem; font-weight: 900; letter-spacing: 0.07em; text-transform: uppercase; }
.profile-list dd { margin: 0; color: #3e5944; font: 700 1rem Georgia, serif; }
.icon-value { display: flex; flex-wrap: wrap; gap: 7px; }
.element-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px 5px 6px; border: 1px solid rgba(82, 74, 48, 0.2); border-radius: 999px; background: rgba(255, 249, 222, 0.58); font: 800 0.76rem system-ui, sans-serif; }
.element-chip img { width: 28px; height: 28px; object-fit: contain; }
.stat-list { display: grid; gap: 13px; }
.stat-row { display: grid; grid-template-columns: 58px minmax(80px, 1fr) 36px; align-items: center; gap: 9px; }
.stat-row > span:first-child { color: #655844; font-size: 0.7rem; font-weight: 850; }
.stat-row strong { color: #3e5944; font: 700 0.9rem Georgia, serif; text-align: right; }
.stat-track { height: 10px; overflow: hidden; border: 1px solid rgba(84, 76, 50, 0.22); border-radius: 999px; background: rgba(107, 91, 62, 0.12); }
.stat-fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #789466, #477357); }
.card-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card-heading > span { color: #7a6a52; font: italic 0.72rem Georgia, serif; }
.drops-summary-card { background: linear-gradient(145deg, rgba(239, 211, 171, 0.7), rgba(220, 185, 141, 0.5)); }
.drop-list { display: grid; gap: 6px; }
.drop-group + .drop-group { margin-top: 10px; padding-top: 10px; border-top: 2px solid rgba(101, 79, 48, 0.24); }
.drop-group-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 3px; }
.drop-group-heading strong { color: #4b6048; font: 700 0.84rem Georgia, serif; }
.drop-group-heading span { color: #74654f; font: italic 0.65rem Georgia, serif; }
.drop-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 48px; align-items: center; gap: 9px; padding: 8px 0; border-bottom: 1px dashed rgba(101, 79, 48, 0.24); font-size: 0.73rem; }
.drop-row:last-child { border-bottom: 0; }
.drop-row span { color: #655844; text-align: right; }
.partner-skill strong { color: #3f5f47; font: 700 1rem Georgia, serif; }
.entity-record-link { display: block; color: #345f46; font-weight: 800; text-decoration-color: rgba(52, 95, 70, 0.35); text-underline-offset: 3px; }
.entity-record-link:hover { text-decoration-color: currentColor; }
.partner-skill p { margin: 7px 0 0; color: #685b47; font-size: 0.76rem; line-height: 1.5; }
.innate-list { display: grid; gap: 6px; margin-top: 12px; }
.innate-list > div { padding: 9px; border-left: 3px solid #88713f; background: rgba(248, 235, 194, 0.55); }
.innate-list span, .innate-list strong, .innate-list small { display: block; }
.innate-list span { color: #816c44; font-size: 0.58rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.innate-list strong { margin-top: 2px; color: #493d2d; font-size: 0.76rem; }
.innate-list small { margin-top: 2px; color: #6f604a; font-size: 0.68rem; }
.work-card { grid-column: 1 / -1; }
.type-matchup-card { grid-column: 1 / -1; }
.location-summary-card { grid-column: 1 / -1; }
.matchup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.matchup-group { padding: 12px; border: 1px solid rgba(95, 76, 49, 0.22); border-radius: 4px 10px 4px 8px; }
.matchup-strong { background: rgba(211, 229, 187, 0.55); }
.matchup-weak { background: rgba(237, 202, 178, 0.45); }
.matchup-group > strong { display: block; margin-bottom: 8px; color: #594b38; font-size: 0.68rem; letter-spacing: 0.07em; text-transform: uppercase; }
.matchup-types { display: flex; flex-wrap: wrap; gap: 7px; }
.matchup-type { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px 5px 5px; border-radius: 999px; color: #493e30; background: rgba(255, 250, 226, 0.72); font-size: 0.7rem; font-weight: 850; }
.matchup-type img { width: 28px; height: 28px; object-fit: contain; }
.matchup-empty { color: #766852; font: italic 0.72rem Georgia, serif; }
.matchup-note { margin: 9px 0 0; color: #776952; font: italic 0.68rem Georgia, serif; }
.work-suitability-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(74px, 88px)); gap: 9px; }
.work-suitability { position: relative; display: grid; min-height: 76px; padding: 8px; border: 1px solid rgba(95, 76, 49, 0.24); border-radius: 4px 11px 4px 9px; background: rgba(247, 238, 206, 0.68); box-shadow: 2px 3px 0 rgba(66, 45, 25, 0.08); place-items: center; transform: rotate(-0.3deg); }
.work-suitability:nth-child(even) { transform: rotate(0.45deg); }
.work-suitability img { width: 52px; height: 52px; object-fit: contain; }
.work-level-badge { position: absolute; right: 4px; bottom: 4px; min-width: 31px; padding: 2px 5px; border: 1px solid rgba(60, 91, 66, 0.3); border-radius: 999px; color: #f8efd3; background: #4d7257; font-size: 0.57rem; font-weight: 900; text-align: center; }
.general-info-message, .general-empty { margin: 0; padding: 18px; border: 1px dashed rgba(101, 79, 48, 0.33); color: #73644f; background: rgba(255, 251, 230, 0.25); text-align: center; }
.general-info-message.error { color: #8c5136; }
.learnset-table-wrap { overflow-x: auto; }
.learnset-table { width: 100%; border-collapse: collapse; color: #4d4334; background: rgba(255, 251, 230, 0.3); }
.learnset-table th, .learnset-table td { padding: 10px; border-bottom: 1px solid rgba(98, 77, 48, 0.22); text-align: left; vertical-align: top; }
.learnset-table th { color: #695a43; font-size: 0.63rem; letter-spacing: 0.08em; text-transform: uppercase; }
.learnset-table td { font-size: 0.76rem; }
.learnset-table td:first-child { color: #45634b; font-weight: 900; }
.learnset-table td:nth-last-child(-n+2) { font-weight: 800; text-align: center; }
.learnset-table td > strong, .learnset-table td > small { display: block; }
.learnset-table td > small { max-width: 560px; margin-top: 4px; color: #786a55; line-height: 1.4; }
.element-chip.compact { padding: 3px 7px 3px 4px; font-size: 0.67rem; }
.element-chip.compact img { width: 22px; height: 22px; }
.exclusive-skill { display: inline-flex; margin: 0 6px 4px 0; padding: 2px 5px; border-radius: 3px; color: #8b4f31; background: rgba(173, 91, 53, 0.12); font-size: 0.55rem; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; }
.skill-rule-note { margin: 0 0 16px; padding: 12px 14px; border-left: 4px solid #6f8a60; color: #554a39; background: rgba(221, 229, 183, 0.48); font-size: 0.78rem; line-height: 1.55; }
.skill-table-stack { display: grid; gap: 20px; }
.skill-table-block { min-width: 0; }
.skill-table-block + .skill-table-block { padding-top: 18px; border-top: 1px dashed var(--line); }
.skill-table-block .card-heading { align-items: end; margin-bottom: 12px; }
.skill-table-block .card-heading h3 { margin: 2px 0 0; color: #403528; font: 700 1.08rem Georgia, serif; }
.skill-table-block .card-heading > strong { color: #56705a; font-size: 0.68rem; }
.catalog-kicker { color: #8a6031; font-size: 0.58rem; font-weight: 900; letter-spacing: 0.09em; text-transform: uppercase; }
.catalog-search { display: grid; gap: 5px; margin-bottom: 10px; color: #675943; font-size: 0.68rem; font-weight: 850; }
.obtainable-skill-table td:first-child { color: inherit; font-weight: normal; }
.obtainable-skill-table td:nth-last-child(-n+2) { font-weight: 800; text-align: center; }
.skill-route { display: inline-flex; margin: 0 6px 4px 0; padding: 2px 5px; border-radius: 3px; color: #895628; background: rgba(176, 115, 51, 0.11); font-size: 0.55rem; font-weight: 900; letter-spacing: 0.05em; text-transform: uppercase; }
.catalog-footnote { margin: 11px 0 0; color: #756750; font: italic 0.7rem Georgia, serif; line-height: 1.45; }
.location-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.location-record { padding: 14px; border: 1px solid rgba(96, 77, 49, 0.27); border-radius: 4px 10px 4px 8px; background: rgba(231, 232, 190, 0.48); }
.location-record > span { display: inline-flex; padding: 3px 6px; border-radius: 3px; color: #77522e; background: rgba(156, 109, 57, 0.12); font-size: 0.58rem; font-weight: 900; letter-spacing: 0.07em; text-transform: uppercase; }
.location-record strong { display: block; margin-top: 9px; color: #3e5944; font: 700 1rem Georgia, serif; }
.location-record p { margin: 5px 0; color: #554a39; font-weight: 800; }
.location-record small { color: #756650; }
.location-empty-state { grid-column: 1 / -1; padding: 18px 20px; background: rgba(241, 224, 183, 0.55); }
.location-empty-state p { max-width: 760px; line-height: 1.5; }
.location-empty-state small { display: block; max-width: 760px; line-height: 1.5; }
.reference-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.research-card { display: grid; grid-template-columns: auto 1fr; gap: 16px; min-height: 205px; margin-top: 20px; padding: 25px 22px; }
.research-card::before { left: 74%; width: 55px; }
.research-icon { display: grid; width: 48px; height: 48px; border: 2px solid rgba(77, 111, 82, 0.45); border-radius: 50%; color: #45634b; font: 700 1.1rem Georgia, serif; place-items: center; }
.research-card h2 { font-size: 1.25rem; }
.research-card p:last-child { margin: 12px 0 0; color: #72644f; font-size: 0.82rem; }
.research-status { display: inline-flex; margin-top: 9px; padding: 4px 7px; border: 1px dashed rgba(158, 93, 47, 0.42); border-radius: 2px; color: #955a2d; font-size: 0.62rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.location-card { background: linear-gradient(145deg, #e3e5bc, #c8d09e); }
.drops-card { background: linear-gradient(145deg, #edd2ac, #dbb88d); }
.list-tools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(210px, 0.35fr); gap: 10px; margin-bottom: 12px; }
.list-tools.single-tool { grid-template-columns: minmax(0, 620px); }
.list-tools label { display: grid; gap: 6px; color: #675943; font-size: 0.7rem; font-weight: 850; }
.ownership-key { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; color: #766852; font-size: 0.72rem; }
.planner-bridge { display: inline-flex; margin: -4px 0 16px; padding: 8px 11px; border: 1px solid rgba(73, 105, 78, 0.28); border-radius: 3px 8px 3px 7px; color: #3f6247; background: rgba(207, 222, 174, 0.42); font-size: 0.72rem; font-weight: 900; text-decoration: none; }
.planner-bridge:hover { color: #294833; background: rgba(197, 216, 158, 0.62); }
.status-owned, .status-excluded, .record-status { display: inline-flex; padding: 3px 6px; border-radius: 2px; font-size: 0.59rem; font-weight: 900; letter-spacing: 0.07em; text-transform: uppercase; }
.status-owned, .record-status.owned { color: #3e6948; background: rgba(75, 123, 85, 0.11); }
.status-excluded, .record-status.excluded { color: #9c493c; background: rgba(163, 76, 60, 0.1); }
.recipe-list { display: grid; gap: 8px; }
.recipe-row { display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr) 32px minmax(0, 0.8fr); align-items: center; gap: 7px; padding: 10px; border: 1px solid rgba(100, 78, 47, 0.28); border-radius: 3px 9px 4px 8px; background: rgba(255, 252, 234, 0.45); }
.pal-record { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; min-width: 0; gap: 9px; color: var(--ink); text-decoration: none; }
.pal-record img { width: 46px; height: 46px; object-fit: contain; border: 1px solid rgba(94, 74, 47, 0.25); border-radius: 8px; background: rgba(232, 218, 182, 0.72); }
.pal-record strong, .pal-record small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pal-record strong { font-size: 0.82rem; }
.pal-record small { color: #7a6c58; font-size: 0.63rem; }
.recipe-symbol { color: #816f54; font-weight: 900; text-align: center; }
.ordered-warning { grid-column: 1 / -1; margin: 0; color: #95552d; font-size: 0.68rem; font-weight: 800; }
.show-more { width: 100%; margin-top: 13px; }
.empty-message { margin: 15px 0 0; padding: 15px; border: 1px dashed var(--line); color: #746650; text-align: center; }
.back-to-top { display: flex; align-items: center; justify-content: end; gap: 5px; width: fit-content; margin: 22px 0 0 auto; padding: 6px 2px; color: #55705a; font-size: 0.68rem; font-weight: 900; letter-spacing: 0.05em; text-decoration: none; text-transform: uppercase; }
.back-to-top:hover { color: #334f3b; text-decoration: underline; text-underline-offset: 3px; }
.hidden { display: none !important; }
.outcome-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.outcome-card { padding: 14px; border: 1px solid rgba(99, 77, 47, 0.28); border-radius: 3px 10px 4px 8px; background: rgba(255, 252, 234, 0.42); }
.outcome-card:nth-child(4n + 1) { background: rgba(244, 229, 190, 0.58); }
.outcome-card:nth-child(4n + 2) { background: rgba(218, 230, 196, 0.56); }
.outcome-card:nth-child(4n + 3) { background: rgba(207, 225, 226, 0.56); }
.outcome-card:nth-child(4n) { background: rgba(232, 213, 224, 0.54); }
.outcome-result { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.outcome-result img { width: 58px; height: 58px; object-fit: contain; border-radius: 9px; background: rgba(230, 216, 179, 0.72); }
.outcome-result span { display: grid; }
.outcome-result strong { font: 700 1rem Georgia, serif; }
.outcome-result small { color: #766852; font-size: 0.67rem; }
.mate-heading { margin: 13px 0 7px; color: #716249; font-size: 0.64rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.mate-list { display: flex; flex-wrap: wrap; gap: 5px; }
.mate-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border: 1px solid rgba(98, 77, 48, 0.25); border-radius: 999px; color: #4c4436; background: rgba(249, 240, 211, 0.6); font-size: 0.68rem; text-decoration: none; }
.mate-chip img { width: 24px; height: 24px; object-fit: contain; }
.mate-chip.more { color: #6a5d48; font-weight: 850; }
.site-footer { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; width: min(1180px, calc(100% - 32px)); margin: 0 auto 32px; padding: 18px 22px; border-radius: 3px 9px 4px 8px; color: #e4d2b1; background: rgba(48, 33, 21, 0.72); }
.site-footer p { margin: 2px 0 0; color: #bda98a; font-size: 0.76rem; }
.site-footer small { color: #b9a587; text-align: right; }

@media (max-width: 980px) {
  .site-header { grid-template-columns: auto 1fr; }
  .site-nav { justify-content: end; }
  .edition-badge { display: none; }
  .dossier-hero { grid-template-columns: 260px 1fr; }
  .coverage-note { grid-column: 1 / -1; min-height: auto; transform: none; }
  .work-suitability-list { grid-template-columns: repeat(auto-fit, minmax(72px, 86px)); }
  .location-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reference-grid { grid-template-columns: 1fr; }
  .research-card { min-height: 0; }
}

@media (max-width: 700px) {
  html, body { overflow-x: clip; }
  .site-header { grid-template-columns: 1fr; min-height: 64px; gap: 0; padding: 9px 14px 0; }
  .site-nav { display: flex; grid-row: 2; justify-content: start; width: calc(100% + 28px); margin: 8px -14px 0; padding: 4px 9px; border-top: 1px solid rgba(234, 202, 150, 0.15); overflow-x: auto; }
  .site-nav a { flex: 0 0 auto; }
  .page-shell { width: min(100% - 20px, 1180px); padding-top: 20px; }
  .dossier-hero { grid-template-columns: 1fr; gap: 18px; padding: 22px 16px; }
  .hero-image-wrap { min-height: 230px; }
  .pal-icon-hero { width: 205px; height: 205px; }
  .hero-image-wrap.has-full-render { min-height: 350px; }
  .pal-icon-hero.pal-full-render { width: min(100%, 330px); height: 345px; }
  .pal-icon-stamp-wrap { right: 10px; bottom: 10px; width: 66px; height: 66px; }
  .pal-icon-stamp-wrap img { width: 56px; height: 56px; }
  .hero-copy { text-align: center; }
  .hero-summary { margin-inline: auto; }
  .section-index { top: 72px; margin-inline: -1px; }
  .paper-panel { padding: 22px 16px; }
  .section-heading { align-items: start; flex-direction: column; gap: 7px; }
  .section-heading > span { text-align: left; }
  .list-tools { grid-template-columns: 1fr; }
  .recipe-row { grid-template-columns: 1fr 22px 1fr; }
  .recipe-row > .recipe-symbol:nth-of-type(2), .recipe-row > .pal-record:last-of-type { display: none; }
  .pal-record { grid-template-columns: 40px minmax(0, 1fr); }
  .pal-record img { width: 40px; height: 40px; }
  .pal-record .record-status { grid-column: 1 / -1; width: fit-content; }
  .outcome-grid { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: auto 1fr; }
  .site-footer small { grid-column: 1 / -1; text-align: left; }
}

@media (max-width: 440px) {
  .brand small { display: none; }
  .edition-badge { display: none; }
  .hero-profile { grid-template-columns: repeat(2, minmax(0, 1fr)); text-align: left; }
  .pal-search > div { grid-template-columns: 1fr; }
  .general-info-layout { grid-template-columns: 1fr; }
  .work-card { grid-column: auto; }
  .type-matchup-card { grid-column: auto; }
  .location-summary-card { grid-column: auto; }
  .matchup-grid { grid-template-columns: 1fr; }
  .work-suitability-list { grid-template-columns: repeat(auto-fit, minmax(70px, 82px)); }
  .location-list { grid-template-columns: 1fr; }
  .research-card { grid-template-columns: 1fr; }
  h1 { font-size: 3.15rem; }
}
