/* The same frames, spacing and type as the existing Pet Sigils wiki page. */
.raid-server-page { padding-bottom: 65px; }
.raid-server-page .pet-sigils-header h1 { font-size: clamp(1.65rem, 3vw, 2.3rem); }
.raid-server-page .pet-sigils-card, .raid-server-page .pet-sigils-list { scroll-margin-top: 120px; }
.raid-server-page p, .raid-server-page li { line-height: 1.75; }
.raid-server-page a { color: #ecd099; text-underline-offset: 4px; }
.raid-server-page a:hover { color: #fff1c9; }
.raid-server-page button, .raid-server-page input, .raid-server-page select { font: inherit; }
.raid-server-page :is(a, button, summary, input, select):focus-visible { outline: 2px solid #ffe5a0; outline-offset: 4px; }
.raid-skip { position: absolute; top: -100px; left: 16px; z-index: 999; padding: 12px; background: #160b20; color: #ffe5a0; }
.raid-skip:focus { top: 16px; }
.raid-intro { display: grid; grid-template-columns: 175px minmax(0, 1fr); align-items: center; gap: 28px; }
.raid-intro-logo { display: block; width: 100%; height: auto; }
.raid-intro .pet-sigils-copy h2 { font-size: 1.35rem; text-align: left; }
.raid-server-page .pet-sigils-copy p { font-size: .92rem; }
.raid-page-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; padding: 22px 10px; font-size: .82rem; }
.raid-prep-list { margin: 18px 0; padding-left: 22px; color: #e1d5ec; font-size: .9rem; }
.raid-prep-list li + li { margin-top: 8px; }
.raid-server-page .raid-section > p { font-size: .9rem; }
.raid-path { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 22px 0 0; padding: 0; }
.raid-path li { display: grid; justify-items: center; align-content: start; gap: 12px; padding: 17px 10px; border: 1px solid #d8af5d33; border-radius: 14px; background: #09050f99; text-align: center; }
.raid-path-number { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #d8af5d55; border-radius: 50%; color: #f0d190; font-size: .76rem; }
.raid-path-choices { display: grid; gap: 5px; font-size: .8rem; }
.raid-path-or { color: #b6a3c0; font-size: .7rem; }
.raid-path-boss { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 40px; min-width: 0; max-width: 100%; text-align: left; }
.raid-path-icon { display: block; flex: 0 0 32px; width: 32px; height: 32px; object-fit: contain; image-rendering: pixelated; }
.raid-path-boss > span { min-width: 0; overflow-wrap: anywhere; }
.raid-scaling-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 20px 0 18px; }
.raid-scaling-controls label, .raid-search label { color: #f2d598; font-size: .85rem; }
.raid-scaling-controls select, .raid-search input { min-height: 42px; padding: 10px 14px; border: 1px solid #d8af5d55; border-radius: 8px; background: #100819; color: #f3e7ff; }
.raid-server-page #raid-scaling-status { margin: 0 0 0 auto; color: #cfb6e4; font-size: .8rem; }
.raid-hp-scroll { overflow-x: auto; border: 1px solid #d8af5d33; border-radius: 14px; }
.raid-hp-table { width: 100%; border-collapse: collapse; font-size: .85rem; line-height: 1.6; }
.raid-hp-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.raid-hp-table thead th { padding: 13px 16px; background: #d8af5d12; color: #f5d48d; text-align: left; }
.raid-hp-table tbody :is(th, td) { padding: 11px 16px; border-top: 1px solid #d8af5d22; color: #e5d9ed; text-align: left; }
.raid-hp-table tbody th { font-weight: 500; }
.raid-hp-table tbody tr:nth-child(even) { background: #be8ef208; }
.raid-hp-table tbody td:last-child { color: #f3d598; font-variant-numeric: tabular-nums; }
.raid-server-page .raid-formula { margin: 16px 0 0; color: #bbacc7; font-size: .78rem; }
.raid-list-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.raid-list-toolbar p { flex: 1; margin: 0; min-width: 200px; }
.raid-list-toolbar button { padding: 9px 13px; border: 1px solid #d8af5d55; border-radius: 8px; background: #d8af5d0d; color: #f0d399; font-size: .78rem; cursor: pointer; }
.raid-encounters { display: grid; gap: 12px; }
.raid-encounter { border: 1px solid #d8af5d33; border-radius: 16px; background: #08051099; overflow: clip; scroll-margin-top: 120px; }
.raid-encounter > summary { display: flex; align-items: center; gap: 15px; padding: 17px 20px; cursor: pointer; list-style: none; }
.raid-encounter > summary::-webkit-details-marker { display: none; }
.raid-encounter > summary::after { content: '+'; flex-shrink: 0; margin-left: auto; color: #e4c690; font-size: 1.5rem; }
.raid-encounter[open] > summary::after { content: '−'; }
.raid-encounter > summary img { width: 36px; height: 36px; object-fit: contain; image-rendering: pixelated; flex-shrink: 0; }
.raid-encounter > summary h3 { margin: 0; font: 700 1rem 'Cinzel', serif; color: #f0d399; }
.raid-encounter-heading { display: grid; flex: 0 0 190px; gap: 5px; }
.raid-encounter-heading strong { color: #f0d399; font: 700 1rem 'Cinzel', serif; }
.raid-encounter-heading small { color: #ab96bc; font-size: .7rem; }
.raid-encounter-description { flex: 1; color: #baa6ca; font-size: .79rem; line-height: 1.6; }
.raid-encounter > summary p, .raid-encounter-summary { margin: 5px 0 0; font-size: .78rem !important; color: #bda9cb; }
.raid-encounter-body { padding: 6px 23px 23px; border-top: 1px solid #d8af5d22; }
.raid-encounter-body > img, .raid-encounter-portrait { float: right; width: 115px; height: 130px; margin: 12px 0 15px 20px; object-fit: contain; }
.raid-encounter-body::after { content: ''; display: block; clear: both; }
.raid-encounter-body h4 { color: #efd397; font-family: 'Cinzel', serif; font-size: .98rem; margin: 24px 0 11px; }
.raid-encounter-body p, .raid-encounter-body li { font-size: .86rem; color: #d7c8e1; }
.raid-encounter-body li + li { margin-top: 8px; }
.raid-encounter-facts { display: flex; flex-wrap: wrap; gap: 9px 14px; list-style: none; margin: 17px 0; padding: 0; }
.raid-encounter-facts li { display: grid; gap: 4px; padding: 8px 11px; background: #ceaf6610; border-radius: 8px; font-size: .73rem; }
.raid-encounter-facts li span { color: #ae9bbb; }
.raid-encounter-facts li strong { color: #eddbb7; }
.raid-boss-facts { display: flex; flex-wrap: wrap; gap: 9px 14px; margin: 17px 0; }
.raid-boss-facts > div { display: grid; gap: 4px; padding: 8px 11px; background: #ceaf6610; border-radius: 8px; }
.raid-boss-facts dt { color: #ae9bbb; font-size: .7rem; }
.raid-boss-facts dd { margin: 0; color: #eddbb7; font-size: .8rem; font-weight: 700; }
.raid-encounter-tip { padding: 13px 16px; border-left: 2px solid #d7b77b; background: #ceaf6610; border-radius: 4px; }
.raid-server-page .raid-rates-coming { padding: 13px 17px; border: 1px solid #d8af5d33; border-radius: 12px; background: #d8af5d0d; color: #d8c7e1; font-size: .85rem; }
.raid-search { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 22px 0 12px; }
.raid-search input { width: min(100%, 380px); font-size: .85rem; }
.raid-server-page .raid-result-count { margin: 0 0 18px; color: #bba5c9; font-size: .75rem; }
.raid-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 14px; }
.raid-item { min-width: 0; border: 1px solid #d8af5d33; border-radius: 16px; background: #080510aa; overflow: clip; scroll-margin-top: 120px; }
.raid-item[hidden] { display: none; }
.raid-item-details > summary { display: grid; grid-template-columns: 58px minmax(0, 1fr) 17px; align-items: center; column-gap: 14px; row-gap: 6px; min-height: 108px; padding: 15px 17px; cursor: pointer; list-style: none; }
.raid-item-details > summary::-webkit-details-marker { display: none; }
.raid-item-details > summary::after { content: '+'; color: #e4c690; font-size: 1.4rem; grid-column: 3; grid-row: 1 / span 2; }
.raid-item-details[open] > summary::after { content: '−'; }
.raid-item-details > summary img, .raid-item-icon { flex-shrink: 0; width: 58px; height: 62px; object-fit: contain; }
.raid-item-art { grid-column: 1; grid-row: 1 / span 2; }
.raid-item-heading { grid-column: 2; grid-row: 1; min-width: 0; }
.raid-item-name { display: block; color: #efd397; font: 700 .94rem/1.45 'Cinzel', serif; }
.raid-item-heading .raid-item-type { display: block; margin-top: 5px; }
.raid-item-details > summary h3 { margin: 4px 0; color: #efd397; font: 700 .94rem/1.45 'Cinzel', serif; }
.raid-item-type { color: #ac97bc; font-size: .65rem; text-transform: uppercase; letter-spacing: .06em; }
.raid-item-body { padding: 0 19px 19px; border-top: 1px solid #d8af5d22; }
.raid-item-body p, .raid-item-body li { font-size: .82rem; line-height: 1.75; }
.raid-item-body h4 { color: #eace98; font: 700 .9rem 'Cinzel', serif; margin: 20px 0 10px; }
.raid-item-stats { display: flex; flex-wrap: wrap; gap: 12px 18px; margin: 16px 0; }
.raid-item-stats > div { display: grid; gap: 4px; }
.raid-item-stats dt { font-size: .68rem; color: #ac97bc; }
.raid-item-stats dd { margin: 0; font-size: .86rem; color: #ebd7b5; font-weight: 700; }
.raid-item-rate { display: inline-block; grid-column: 2; grid-row: 2; justify-self: start; padding: 3px 7px; border: 1px solid #d8af5d33; border-radius: 5px; color: #d6bf94; font-size: .65rem; white-space: nowrap; }
.raid-item-rate strong { color: #edd39e; font-weight: 500; }
.raid-bottom-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px; margin: 27px 0 0; font-size: .85rem; }
.raid-server-page .raid-art-credit { margin-top: 22px; text-align: center; font-size: .66rem; color: #8d789b; }
@media (max-width: 900px) {
  .raid-path { grid-template-columns: 1fr; }
  .raid-path li { display: flex; justify-content: flex-start; gap: 15px; text-align: left; padding: 12px 15px; }
  .raid-path-choices { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
  .raid-path-number { flex-shrink: 0; }
  .raid-path-boss { justify-content: flex-start; }
}
@media (max-width: 680px) {
  .raid-encounter-heading { flex: 1; }
  .raid-encounter-description { display: none; }
  .raid-intro { grid-template-columns: 1fr; gap: 18px; }
  .raid-intro-logo { width: 140px; justify-self: center; }
  .raid-intro .pet-sigils-copy h2 { text-align: center; }
  .raid-items { grid-template-columns: 1fr; }
  .raid-server-page #raid-scaling-status { width: 100%; margin-left: 0; }
  .raid-hp-table { font-size: .75rem; }
  .raid-hp-table thead th, .raid-hp-table tbody :is(th, td) { padding: 10px; }
}
@media (max-width: 420px) {
  .raid-encounter > summary { padding: 15px 12px; gap: 10px; }
  .raid-encounter > summary h3 { font-size: .88rem; }
  .raid-encounter > summary p { font-size: .72rem !important; }
  .raid-encounter-body { padding-inline: 15px; }
  .raid-encounter-body > img, .raid-encounter-portrait { width: 80px; height: 100px; margin-left: 12px; }
  .raid-item-details > summary { padding: 13px; gap: 11px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Full raid guide additions. The owner's existing purple page CSS remains an exact prefix. */
@media (min-width: 901px) {
  .raid-server-page .raid-path { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.raid-server-page .r4-guide-content { min-width: 0; color: #d7c8e1; }
.raid-server-page .r4-guide-content h2 { margin: 8px 0 18px; color: #f0d399; font: 700 1.25rem/1.45 'Cinzel', serif; text-align: left; }
.raid-server-page .r4-guide-content h3 { margin: 24px 0 12px; color: #efd397; font: 700 1rem/1.5 'Cinzel', serif; }
.raid-server-page .r4-guide-content p, .raid-server-page .r4-guide-content li, .raid-server-page .r4-guide-content dd { font-size: .86rem; line-height: 1.8; }
.raid-server-page .r4-guide-content ol, .raid-server-page .r4-guide-content ul { padding-left: 22px; }
.raid-server-page .r4-guide-content li + li { margin-top: 9px; }
.raid-server-page .r4-guide-content dt { color: #e6c993; font-size: .8rem; font-weight: 700; line-height: 1.7; }
.raid-server-page .r4-guide-content dd { margin: 0; }
.raid-server-page .r4-guide-eyebrow { margin: 0 0 10px; color: #bca4ce; font-size: .68rem !important; letter-spacing: .1em; text-transform: uppercase; }
.raid-server-page .r4-guide-detail { margin: 24px 0 8px; border-top: 1px solid #d8af5d44; padding-top: 16px; }
.raid-server-page .r4-guide-detail > summary { padding: 8px 0; color: #f0d399; cursor: pointer; font-size: .88rem; font-weight: 700; }
.raid-server-page .r4-guide-body { padding-top: 16px; }
.raid-server-page .r4-guide-content details:not(.r4-guide-detail) { border-top: 1px solid #d8af5d33; margin-top: 20px; padding-top: 14px; }
.raid-server-page .r4-guide-content details > summary { color: #eace98; cursor: pointer; line-height: 1.7; }
.raid-server-page .r4-guide-kit, .raid-server-page .r4-guide-loot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 22px 0; }
.raid-server-page .r4-guide-kit > div, .raid-server-page .r4-guide-loot > div { min-width: 0; padding: 16px; border: 1px solid #d8af5d33; border-radius: 12px; background: #10081966; }
.raid-server-page .r4-guide-kit img, .raid-server-page .r4-guide-loot img { float: left; object-fit: contain; image-rendering: pixelated; margin: 0 12px 8px 0; }
.raid-server-page .r4-guide-loot .r4-guide-item { width: 54px; height: 54px; }
.raid-server-page .r4-guide-kit h3, .raid-server-page .r4-guide-loot h3 { margin-top: 0; }
.raid-server-page .r4-guide-roles > div, .raid-server-page .r4-guide-glossary dl > div { display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 16px; border-bottom: 1px solid #d8af5d22; padding: 13px 0; }
.raid-server-page .r4-guide-route { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; list-style: none; padding: 0 !important; }
.raid-server-page .r4-guide-route li { margin: 0 !important; }
.raid-server-page .r4-guide-route a { display: flex; align-items: center; gap: 8px; min-height: 78px; padding: 9px; border: 1px solid #d8af5d33; border-radius: 10px; background: #10081977; font-size: .75rem; text-decoration: none; }
.raid-server-page .r4-guide-route img { width: 48px; height: 56px; object-fit: contain; flex: 0 0 48px; }
.raid-server-page .r4-guide-route small { display: block; color: #bba5c9; }
.raid-server-page .r4-guide-formula { color: #d6bf94; font-size: .8rem !important; }
.raid-server-page .r4-guide-table-wrap { width: 100%; overflow-x: auto; margin: 20px 0; }
.raid-server-page .r4-guide-table-wrap table { width: 100%; min-width: 330px; border-collapse: collapse; font-size: .8rem; }
.raid-server-page .r4-guide-table-wrap caption { text-align: left; color: #bda9cb; padding-bottom: 12px; }
.raid-server-page .r4-guide-table-wrap th, .raid-server-page .r4-guide-table-wrap td { padding: 12px; text-align: left; border-bottom: 1px solid #d8af5d33; }
.raid-server-page .r4-guide-table-wrap thead { color: #f0d399; background: #d8af5d12; }
.raid-server-page .r4-guide-boss-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #d8af5d33; padding-bottom: 15px; margin-bottom: 20px; }
.raid-server-page .r4-guide-boss-heading > div:first-child { min-width: 0; }
.raid-server-page .r4-guide-portrait-wrap { display: flex; align-items: center; flex-shrink: 0; }
.raid-server-page .r4-guide-portrait { width: 115px; height: 130px; object-fit: contain; }
.raid-server-page .r4-guide-portrait-secondary { width: 75px; height: 90px; object-fit: contain; margin-left: -30px; margin-top: 35px; }
.raid-server-page .r4-guide-at-glance > div { display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 16px; border-top: 1px solid #d8af5d22; padding: 13px 0; }
.raid-server-page .r4-guide-at-glance dt { display: flex; gap: 8px; align-items: center; }
.raid-server-page .r4-guide-at-glance img { object-fit: contain; image-rendering: pixelated; }
.raid-server-page .r4-guide-opening, .raid-server-page .r4-guide-team-note { padding: 12px 16px; border-left: 2px solid #d7b77b; background: #ceaf6610; border-radius: 4px; }
.raid-server-page .r4-guide-team-note { margin: 24px 0; border-left-color: #be8ef2; }
.raid-server-page .r4-guide-cues { margin: 24px 0; padding: 16px; border: 1px solid #d8af5d33; border-radius: 12px; background: #10081977; }
.raid-server-page .r4-guide-cues h3 { margin-top: 0; }
.raid-server-page .r4-guide-cues dl { margin: 0; }
.raid-server-page .r4-guide-cues dl > div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; border-top: 1px solid #d8af5d22; padding: 12px 0; }
.raid-server-page .r4-guide-version-note, .raid-server-page .r4-guide-small { color: #bba5c9; font-size: .75rem !important; }
.raid-server-page .r4-guide-diagram { margin: 25px 0; padding: 18px; border: 1px solid #d8af5d44; border-radius: 12px; background: #10081999; }
.raid-server-page .r4-guide-diagram h3 { margin-top: 0; }
.raid-server-page .r4-guide-toggle { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.raid-server-page .r4-guide-toggle button { min-height: 40px; border: 1px solid #d8af5d55; border-radius: 8px; padding: 9px 12px; background: #d8af5d0d; color: #f0d399; cursor: pointer; }
.raid-server-page .r4-guide-toggle button[aria-pressed=true] { background: #be8ef22a; border-color: #cfb6e4; color: #fff1c9; }
.raid-server-page .r4-guide-cover-board { display: flex; align-items: center; justify-content: space-around; gap: 10px; border-block: 1px solid #d8af5d33; padding: 14px 0; margin: 16px 0; }
.raid-server-page .r4-guide-cover-board figure { position: relative; display: flex; flex: 1; flex-direction: column; align-items: center; margin: 0; }
.raid-server-page .r4-guide-cover-board figure:not(:last-child)::after { content: '\2192'; position: absolute; right: -13px; top: 24px; color: #cfb6e4; font-size: 28px; }
.raid-server-page .r4-guide-cover-bork { order: 0; }
.raid-server-page .r4-guide-cover-cart { order: 1; }
.raid-server-page .r4-guide-cover-team { order: 2; }
.raid-server-page .r4-guide-cover-board[data-mode=bad] .r4-guide-cover-cart { order: 2; }
.raid-server-page .r4-guide-cover-board[data-mode=bad] .r4-guide-cover-team { order: 1; }
.raid-server-page .r4-guide-cover-board[data-mode=bad] figure::after { display: none; }
.raid-server-page .r4-guide-cover-board img { object-fit: contain; }
.raid-server-page .r4-guide-cover-board figcaption { color: #d7c8e1; font-size: .75rem; margin-top: 7px; }
.raid-server-page .r4-guide-player-pin { display: grid; place-items: center; width: 84px; height: 84px; border: 2px solid #cfb6e4; border-radius: 50%; background: #3d2453; color: #fff1c9; font-size: .8rem; }
.raid-server-page .r4-guide-cover-board[data-mode=bad] .r4-guide-player-pin { background: #613a32; border-color: #ca8c80; }
.raid-server-page .r4-guide-floor-example { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 22px; align-items: center; }
.raid-server-page .r4-guide-floor-board { position: relative; display: grid; grid-template-columns: repeat(9, 1fr); gap: 2px; aspect-ratio: 1; border: 4px solid #59456c; padding: 3px; background: #090411; }
.raid-server-page .r4-guide-floor-board > span { min-width: 0; background: #465f32; border: 1px solid #708e4c44; }
.raid-server-page .r4-guide-floor-board[data-mode=away] [data-inner], .raid-server-page .r4-guide-floor-board[data-mode=close] > span { background: #5b396b; border-color: #a36fbe55; }
.raid-server-page .r4-guide-floor-board[data-mode=close] [data-inner] { background: #465f32; border-color: #708e4c44; }
.raid-server-page .r4-guide-floor-board > img { position: absolute; inset: 50% auto auto 50%; width: 90px; height: 100px; object-fit: contain; transform: translate(-50%, -50%); }
.raid-server-page .r4-guide-legend-safe::before, .raid-server-page .r4-guide-legend-danger::before { content: ''; display: inline-block; width: 10px; height: 10px; margin-right: 6px; background: #6c9349; border: 1px solid #b1c491; }
.raid-server-page .r4-guide-legend-danger::before { background: #85539c; border-color: #bd96d2; }
@media (max-width: 900px) {
  .raid-server-page .r4-guide-route { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .raid-server-page .r4-guide-floor-example { grid-template-columns: 1fr; }
  .raid-server-page .r4-guide-floor-board { width: min(220px, 100%); justify-self: center; }
}
@media (max-width: 680px) {
  .raid-server-page .r4-guide-kit, .raid-server-page .r4-guide-loot { grid-template-columns: 1fr; }
  .raid-server-page .r4-guide-roles > div, .raid-server-page .r4-guide-glossary dl > div, .raid-server-page .r4-guide-at-glance > div, .raid-server-page .r4-guide-cues dl > div { grid-template-columns: 1fr; gap: 7px; }
  .raid-server-page .r4-guide-boss-heading { gap: 8px; align-items: flex-start; }
  .raid-server-page .r4-guide-portrait { width: 65px; height: 90px; }
  .raid-server-page .r4-guide-portrait-secondary { width: 45px; height: 60px; margin-left: -30px; margin-top: 60px; }
  .raid-server-page .r4-guide-cover-board img { width: 60px; height: 70px; }
  .raid-server-page .r4-guide-player-pin { width: 60px; height: 70px; }
}
