/* Shared wiki presentation. Entity data and navigation labels have separate owners. */
.wiki-breadcrumb { margin: 5px 0 18px; font-size: 11px; color: #54595d; }
.wiki-breadcrumb span { padding: 0 5px; }
.wiki-hub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.wiki-hub { border-top: 2px solid #a2a9b1; padding: 10px 12px; background: #f8f9fa; }
.wiki-hub h2 { margin: 0 0 6px; font: normal 22px Georgia, serif; }
.wiki-hub p { margin: 6px 0; font-size: 12px; }
.wiki-hub ul { margin: 10px 0; padding-left: 18px; }
.wiki-directory-count { color: #54595d; font-size: 12px; }
.wiki-directory-list { list-style: none; padding: 0; margin: 12px 0; }
.wiki-directory-list .wiki-directory-entry { border-top: 1px solid #eaecf0; padding: 10px 8px; min-height: 68px; box-sizing: border-box; display: flow-root; }
.wiki-directory-list .wiki-directory-entry:nth-child(even) { background: #f8f9fa; }
.wiki-directory-list .wiki-directory-entry > a { display: block; font-weight: bold; }
.wiki-directory-list .wiki-directory-entry p { margin: 3px 0 0; font-size: 12px; color: #54595d; }
.wiki-directory-list .wiki-directory-entry:has(img) p { margin-left: 57px; }
.wiki-directory-list .wiki-directory-picture { margin-bottom: 0; }
.wiki-article-content .article-section { clear: both; padding-top: 4px; margin-top: 18px; }
.wiki-article-content h2 { font: normal 23px/1.4 Georgia, serif; border-bottom: 1px solid #c8ccd1; padding-bottom: 4px; margin: 18px 0 12px; }
.wiki-article-content .article-section h2 { margin-top: 0; }
.wiki-table-scroll { clear: both; width: 100%; max-width: 100%; overflow-x: visible; margin: 12px 0; }
.wiki-table-scroll:focus-visible { outline: 2px solid #365e9d; outline-offset: 2px; }
.wiki-table-scroll .wiki-data-table { margin: 0; width: 100%; max-width: none; }
.wiki-data-table th, .wiki-data-table td { vertical-align: top; }
.wiki-data-table tbody tr:nth-child(even) { background: #f8f9fa; }
.wiki-table-scroll .wiki-level-table-scroll { margin: 0; }
.wiki-page .wiki-artwork-title { background: #eaecf0; }
.wiki-directory-search { display: flex; gap: 6px; margin: 14px 0; }
.wiki-directory-search input[type="search"] { flex: 1; min-width: 0; padding: 7px 9px; border: 1px solid #a2a9b1; }
.wiki-directory-search button { padding: 5px 14px; }
.wiki-item-category h2 { min-height: 48px; font-size: 20px; }
.wiki-item-category h2 a { display: block; }
.wiki-item-category ul { clear: both; columns: 2; column-gap: 20px; }
.wiki-item-category li { break-inside: avoid; }
.wiki-item-summary { clear: both; margin: 16px 0; }
.wiki-item-summary table { border-collapse: collapse; width: 100%; table-layout: auto; font: inherit; }
.wiki-item-summary td,.wiki-item-summary th { padding: 7px 5px; border: 1px solid #ccc; background: #fff; text-align: left; vertical-align: middle; overflow-wrap: anywhere; }
.wiki-item-summary th { font-size: inherit; }
.wiki-item-summary .wiki-item-summary-icon { box-sizing: border-box; width: 62px; padding: 6px 10px; text-align: center; }
.wiki-item-summary .wiki-inventory-icon { float: none; display: inline-block; margin: 0; vertical-align: middle; }
.wiki-item-summary-icon .wiki-inventory-icon { max-width: 100%; height: auto; }
.wiki-item-summary p { margin: 4px 0 0; }
.wiki-item-summary .wiki-item-preserve-lines { white-space: pre-line; }
.wiki-item-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 12px; margin: 7px 0; }
.wiki-item-facts + .wiki-item-facts { border-top: 1px solid #eee; padding-top: 7px; }
.wiki-item-facts div { min-width: 0; }
.wiki-item-facts dt, .wiki-item-facts dd { display: inline; margin: 0; }
.wiki-item-stats { display: block; }
.wiki-item-stats div { display: inline-block; margin-right: 16px; }
.wiki-item-notes dt { font-weight: bold; margin-top: 7px; }
.wiki-item-notes dd { margin: 3px 0 7px; }
.wiki-item-facts dt { font-weight: bold; margin-right: 4px; }
.wiki-cell-list { margin: 4px 0 0; padding-left: 20px; }
.wiki-item-summary .wiki-table-scroll { margin: 7px 0 0; }
.wiki-item-summary .wiki-data-table { table-layout: auto; }
.wiki-item-summary > table { table-layout: fixed; }
.wiki-item-icon-column { width: 62px; }
.wiki-package-contents-table .wiki-table-icon { text-align: center; vertical-align: middle; padding: 6px 10px; }
.wiki-package-contents-table .wiki-table-icon .wiki-inventory-icon { margin: 0; }
.wiki-item-summary .wiki-data-table th, .wiki-item-summary .wiki-data-table td { vertical-align: top; overflow-wrap: normal; word-break: normal; }

/* Hidden Street article primitives; frame/navigation have their own owner. */
.wiki-page { font: 12px/18px 'Lucida Grande', 'Lucida Sans Unicode', Arial, Helvetica, sans-serif; }
.wiki-page > h1 { font: bold 28px/1 'Lato', Arial, sans-serif; border: 0; margin: 4px 0 10px; padding: 0; }
.wiki-page .wiki-breadcrumb { margin: 0 0 6px; font-size: 10px; color: #888; text-transform: uppercase; }
.wiki-page .wiki-breadcrumb a { color: #888; }
.wiki-article-content a { color: #1ab5f1; text-decoration: none; }
.wiki-article-content a:hover { color: #007aa9; }
.wiki-article-content h2 { font: bold 20px/1.3 Arial, sans-serif; border: 0; padding: 0; margin: 24px 0 12px; }
.wiki-article-content .wiki-data-table th,
.wiki-article-content .wiki-data-table td { border-color: #ccc; padding: 7px 5px; }
.wiki-article-content .wiki-data-table th,
.wiki-article-content .wiki-data-table tbody tr:nth-child(even) { background: #fff; }
.wiki-skill-card { width: 100%; border-collapse: collapse; margin: 10px 0 30px; table-layout: auto; font: inherit; }
.wiki-skill-card td { border: 1px solid #ccc; padding: 7px 5px; vertical-align: middle; background: #fff; text-align: left; overflow-wrap: break-word; }
.wiki-skill-card .wiki-skill-card-icon { width: 40px; padding: 6px 10px; text-align: center; }
.wiki-skill-card .wiki-skill-card-icon .wiki-inventory-icon { float: none; display: inline-block; margin: 0; vertical-align: middle; width: 32px; height: 32px; object-fit: contain; }
.wiki-skill-card .wiki-skill-card-name { font-size: inherit; }
.wiki-skill-card caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* Archived class-navigation table: centered cells, five links per row,
   explicit arrow columns and a single dashed outline. */
.wiki-class-advancements { clear: both; border: 1px dashed #ccc; padding: 0; margin: 10px 0; }
.wiki-advancement-title { display: block; text-align: center; padding: 7px 5px; margin: 0; color: #007aa9; }
.wiki-class-advancements ul { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; }
.wiki-class-advancements li { display: grid; grid-template-columns: minmax(0, 1fr) 10px; align-items: center; text-align: center; padding: 7px 5px; }
.wiki-advancement-arrow { color: #000; text-align: right; }
.wiki-advancement-equipment { margin: 0; padding: 7px 5px; border-top: 1px solid #eee; text-align: center; }

/* Focused guide pages share a compact index; old fragment links reveal only
   their own onward destination instead of restoring the former giant article. */
.wiki-guide-index { margin: 16px 0; }
.wiki-guide-index > ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; list-style: none; padding: 0; margin: 0; }
.wiki-guide-index > ul > li { min-width: 0; border: 1px solid #ccc; padding: 7px 5px; }
.wiki-guide-child { display: flex; align-items: center; gap: 6px; min-height: 32px; }
.wiki-guide-child .wiki-inventory-icon { flex: none; margin: 0; width: 32px; height: 32px; object-fit: contain; }
.wiki-guide-index p { margin: 5px 0 0; }
.wiki-guide-legacy { display: none; }
.wiki-guide-legacy:target { display: block; margin-top: 8px; padding: 7px 5px; border: 1px dashed #ccc; }

.wiki-advancement-title[aria-current="page"] { color: #0074bd; }

.wiki-guide-recording { margin: 12px 0; }
.wiki-guide-recording iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; }
.wiki-guide-recording figcaption p { margin: 5px 0 8px; }
.wiki-recording-era { font-size: 11px; color: #666; margin: 5px 0; }

.wiki-progress-notes-table td { white-space: pre-line; }
.wiki-colored-notes-table td { white-space: pre-line; }
.wiki-archived-tooltip-elements td:nth-last-child(-n+4) { white-space: pre-wrap; max-width: 28rem; }
.wiki-vcore-tooltip-preview td:last-child { white-space: pre-wrap; }

.wiki-data-table.wiki-appearance-table { table-layout: fixed; }
.wiki-appearance-table td { text-align: center; vertical-align: middle; overflow-wrap: anywhere; }
.wiki-appearance-table th:first-child { width: 38%; }
.wiki-appearance-table td:nth-child(2) { text-align: left; white-space: pre-line; }
.wiki-appearance-preview { display: block; margin: 4px auto 8px; max-width: 100%; height: auto; image-rendering: pixelated; }
.wiki-appearance-previews { display:flex; flex-wrap:wrap; align-items:flex-start; gap:8px; margin-top:6px; }
.wiki-appearance-previews figure { flex:1 1 90px; min-width:0; margin:0; text-align:center; overflow-wrap:anywhere; }
.wiki-appearance-previews figcaption { font-size:12px; }
.wiki-appearance-index > ul { grid-template-columns:repeat(3,minmax(0,1fr)); gap:0; border-top:1px solid #ccc; border-left:1px solid #ccc; }
.wiki-appearance-index > ul > li { display:flex; flex-direction:column; justify-content:center; min-height:64px; padding:6px; border:0; border-right:1px solid #ccc; border-bottom:1px solid #ccc; }
.wiki-appearance-index .wiki-appearance-previews { order:0; justify-content:center; gap:4px; margin:0; }
.wiki-appearance-index .wiki-appearance-previews figure { flex:0 1 auto; min-width:32px; }
.wiki-appearance-index .wiki-appearance-preview { margin:0 auto 4px; }
.wiki-appearance-index .wiki-guide-child { order:1; display:block; min-height:0; text-align:center; }
.wiki-appearance-index .wiki-guide-child a { color:#222; font-size:13px; line-height:20px; }
.wiki-appearance-index .wiki-guide-child strong { font-weight:400; }
.wiki-appearance-tabs { display:flex; flex-wrap:wrap; gap:0; margin:12px 0; border-bottom:1px solid #ccc; }
.wiki-appearance-tabs a { flex:1 1 0; min-width:0; padding:8px 6px; border:1px solid #ccc; border-bottom:0; background:#f8f8f8; text-decoration:none; text-align:center; }
.wiki-appearance-tabs a[aria-current="page"] { background:#fff; color:#1ab5f1; font-weight:bold; }
.wiki-hub.wiki-hub h2 a:has(> .wiki-hub-thumb) { display: flex; align-items: center; gap: 10px; }
.wiki-hub-thumb { flex: none; width: 96px; height: 54px; object-fit: cover; border: 1px solid #c8ccd1; }
.wiki-item-stat-list { display: grid; gap: 10px; margin-top: 12px; }
.wiki-item-card { border: 1px solid #c8ccd1; border-top: 3px solid #009fdc; background: #fff; padding: 8px 12px; }
.wiki-layout .wiki-page .wiki-item-card h2 { margin: 0 0 6px; padding: 0 0 6px; border-bottom: 1px solid #eaecf0; font: bold 15px sans-serif; }
.wiki-item-card h2 a { display: flex; align-items: center; gap: 10px; }
.wiki-item-card h2 img { flex: none; width: 40px; height: 40px; object-fit: contain; image-rendering: pixelated; }
/* The card's facts read as a table: every fact is a cell with horizontal and vertical dividers (box-shadow lines
   collapse into single 1px borders however many cells a row holds). */
.wiki-item-card-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0; margin: 0; padding: 1px 0 0 1px; }
.wiki-item-card-facts div { display: flex; gap: 6px; padding: 5px 8px; min-width: 0; overflow-wrap: anywhere;
  box-shadow: 1px 0 0 0 #ccc, 0 1px 0 0 #ccc, 1px 1px 0 0 #ccc, 1px 0 0 0 #ccc inset, 0 1px 0 0 #ccc inset; }
.wiki-item-card-facts dt { font-weight: bold; }
.wiki-item-card-facts dt::after { content: ":"; }
.wiki-item-card-facts dd { margin: 0; }
.wiki-item-card p { margin: 0; padding: 5px 8px; font-size: 13px; border: 1px solid #ccc; border-top: 0; }

/* Auto Battle skill set: 9 buttons in a grid above and left of Attack, as in the game. */
.wiki-skill-wheel-layout { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: flex-end; margin: 8px 0 16px; }
.wiki-skill-page { margin: 0; flex: none; }
.wiki-skill-page figcaption { font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.wiki-skill-wheel { display: grid; grid-template-columns: repeat(3, 76px); grid-template-rows: repeat(3, minmax(76px, auto)); gap: 4px; margin: 0; padding: 0; list-style: none; flex: none; }
.wiki-skill-wheel > li { display: flex; flex-direction: column; justify-content: flex-start; align-items: center; min-width: 0; }
.wiki-wheel-attack { grid-column: 3; grid-row: 3; justify-self: center; align-self: center; width: 44px; height: 44px; box-sizing: border-box; border-radius: 50%; background: #e8f4fb; border: 2px solid #009fdc; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 10px; }
.wiki-wheel-slot a, .wiki-wheel-slot { display: block; width: 48px; text-align: center; }
.wiki-wheel-slot img, .wiki-wheel-blank { display: block; width: 44px; height: 44px; margin: 0 auto; border-radius: 50%; border: 2px solid #c8ccd1; background: #fff; image-rendering: pixelated; }
.wiki-wheel-empty .wiki-wheel-blank { border-style: dashed; background: transparent; color: #a2a9b1; font-size: 24px; line-height: 40px; text-align: center; }
/* A preset's skills sit in one row the width of a cell, its label under them; its member links stay icon-sized. */
.wiki-wheel-preset { display: flex; flex-wrap: nowrap; gap: 1px; justify-content: center; align-items: center; width: 76px; height: 48px; margin: 0 auto; overflow: hidden; }
.wiki-wheel-slot .wiki-wheel-preset a { display: block; width: 18px; flex: none; }
.wiki-wheel-preset img, .wiki-wheel-preset .wiki-wheel-blank { width: 18px; height: 18px; margin: 0; border-width: 1px; }
.wiki-wheel-preset-slot, .wiki-wheel-preset-slot .wiki-wheel-name { width: 76px; }
.wiki-wheel-name { display: block; font-size: 10px; line-height: 1.1; margin-top: 2px; }
.wiki-pet-buffs h3 { margin: 0 0 6px; font-size: 1em; }
.wiki-pet-buffs ol { margin: 0; padding-left: 22px; }
.wiki-pet-buffs li { margin: 2px 0; }
.wiki-pet-buffs img { width: 24px; height: 24px; vertical-align: middle; margin-right: 4px; }
@media (max-width: 420px) { .wiki-skill-wheel { transform: scale(.85); transform-origin: left bottom; } }

/* No sideways scrolling (as on noler-stock): a table always fits the page width. Cells wrap anywhere, icons shrink
   with their column, and narrow screens get smaller text and padding instead of a scroll bar. */
.wiki-table-scroll .wiki-data-table { width: 100%; max-width: 100%; }
.wiki-table-scroll .wiki-data-table th, .wiki-table-scroll .wiki-data-table td { overflow-wrap: anywhere; word-break: normal; min-width: 0; }
.wiki-table-scroll .wiki-data-table img { max-width: 100%; height: auto; }
@media (max-width: 720px) {
  .wiki-table-scroll .wiki-data-table { font-size: 12px; }
  .wiki-article-content .wiki-table-scroll .wiki-data-table th, .wiki-article-content .wiki-table-scroll .wiki-data-table td { padding: 4px 3px; }
}
@media (max-width: 420px) { .wiki-table-scroll .wiki-data-table { font-size: 11px; } }
