.raid-board.guides-board {
    padding-bottom: 36px;
}
.guides-board .raid-masthead::before { content: none; }
.guide-scene {
    position: absolute; inset: 0 0 0 auto; z-index: -1; overflow: hidden; pointer-events: none;
    width: min(100%, 650px); background: url("/art/guides/research-station.webp") center 56% / cover no-repeat;
    mask-image: linear-gradient(90deg, transparent, black 35%, black 86%, transparent);
}
.guide-scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg), transparent 40%); }
.guide-device {
    position: absolute; width: 32%; right: 11%; bottom: 7%; aspect-ratio: 481 / 265;
    transform: rotate(4deg) scaleY(.83); transform-origin: bottom;
    filter: drop-shadow(1px 4px 2px #100f14c9) brightness(.9) saturate(.9);
}
/* Trace the physical device in Keiji Kinebuchi's Pokédex art (XY Evolutions, 82/108). */
.guide-device::before {
    content: ""; position: absolute; inset: 0; background: url("/art/guides/kanto-pokedex.webp") center / contain no-repeat;
    clip-path: polygon(10.2% 20.5%,11.6% 18.3%,38% 3.3%,43% 1.6%,44.5% 2.4%,45.8% 9.8%,51.7% 7.1%,58% 7.5%,63% 8.4%,67.5% 6.4%,73.2% 2.6%,74.2% 2.9%,90.5% 49%,91.1% 51.4%,90.2% 54.8%,88.8% 57%,64% 75.5%,61.5% 78%,31.3% 100%,24% 100%,13.2% 40.8%,12% 39.5%,10.5% 29.5%);
}
.guide-topics { flex-wrap: wrap; gap: 0 24px; }
.guide-tools {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin: 16px 0 22px;
}
.guide-tools .board-search { flex: 1 1 auto; width: 100%; max-width: 425px; margin: 0; }
.guide-suggest { flex: none; padding-block: 10px; font-size: .875rem; font-weight: 600; color: var(--muted); }
.guide-suggest span { color: var(--gold); margin-inline-start: 3px; }
.guide-suggest:hover, .guide-article-head a:hover { color: var(--gold); text-decoration: underline; text-underline-offset: .2em; }
.guide-group { --accent: #9bd7bc; margin: 0 0 26px; }
.guide-group[data-topic="raids-and-team-go-rocket"] { --accent: #c6aedf; }
.guide-group[data-topic="items-and-research"] { --accent: #e6bc78; }
.guide-group[data-topic="location-and-device-faq"] { --accent: #a4c3e8; }
.guide-group h2 { margin: 0 0 12px; font: 680 1.72rem/1.12 Cond,sans-serif; }
.guide-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.guide-card {
    --art-glow-x: 8%;
    display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center;
    height: 100%; min-height: 112px; gap: 16px; padding: 16px 18px 16px 15px;
    color: var(--paper); border: 1px solid var(--edge); border-radius: 12px;
    box-shadow: 0 3px 8px #0002; transition: border-color .15s;
}
.guide-card img {
    display: block; width: 74px; height: 74px; object-fit: contain;
}
.guide-card h3 { margin: 0; font: 690 1.57rem/1.08 Cond,sans-serif; overflow-wrap: anywhere; text-wrap: pretty; }
.guide-card p { margin: 6px 0 0; color: #c7cbd1; font: 450 .9rem/1.4 Sans,sans-serif; }
.guide-card::after {
    content: ""; width: 8px; height: 8px; border: solid var(--muted); border-width: 1.5px 1.5px 0 0;
    transform: rotate(45deg); transition: transform .15s;
}
.guide-card:is(:hover,:focus-visible) { border-color: var(--accent); }
.guide-card:is(:hover,:focus-visible)::after { border-color: var(--accent); transform: translateX(2px) rotate(45deg); }
.guide-card:active { border-color: var(--gold); }
.guide-article-head { margin-bottom: 24px; padding-bottom: 22px; }
.guide-article-head nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .88rem; }
.guide-article-head nav a { color: var(--gold); }
.guides-board .guide-article-head h1 { max-width: 70%; margin: 8px 0 10px; font-size: clamp(2.2rem,4vw,3.25rem); line-height: 1.06; text-wrap: balance; }
.guide-article-head p { max-width: min(68%,70ch); color: #cbd0d6; }
.guide-article-head .guide-scene { width: min(44%,520px); mask-image: linear-gradient(90deg,transparent,black 55%,black 88%,transparent); }
.guides-board .guide-contents ul { list-style: none; padding: 0; }
.guides-board .guide-contents li + li { border-top: 1px solid var(--edge); }
.guides-board .guide-contents a { display: block; padding: 7px 0; line-height: 1.35; }
.guide-prose section:has(.guide-portraits) { display: flow-root; }
.guide-product-section {
    display: flow-root; padding: clamp(14px, 2vw, 22px); border: 1px solid var(--edge);
    border-radius: 12px; background: var(--panel);
}
.guide-product-photo {
    float: right; display: block; width: 44%; height: auto; margin: 2px 0 12px 20px; border-radius: 8px;
}
.guide-product-section p:last-child { margin-bottom: 0; }
.guide-product-action { clear: both; display: flex; align-items: center; gap: 10px; padding-top: 5px; }
.guide-product-action a {
    display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px;
    border-radius: 7px; background: var(--gold); color: #251c0d; font-weight: 650;
}
.guide-product-action a:is(:hover,:focus-visible) { background: #ffe3a6; color: #251c0d; }
.guide-product-action small { color: var(--muted); }
.guide-portraits { float: right; display: flex; gap: 12px; margin: 2px 0 12px 20px; }
.guide-portraits figure { margin: 0; text-align: center; }
.guide-portraits img { display: block; width: 76px; height: 76px; margin: auto; object-fit: contain; }
.guide-portraits figcaption { margin-top: 4px; color: var(--muted); font-size: .82rem; }
.guide-game-screen { width: min(100%, 16rem); margin: 16px 0 20px; }
.guide-game-screen img { display: block; width: 100%; height: auto; border-radius: 6px; }
.guide-game-screen figcaption { margin-top: 8px; color: var(--muted); font-size: .875rem; }
.guide-prose p > img:only-child { display: block; max-width: 100%; height: auto; margin-block: 12px 16px; }
.guide-prose ul:has(> li > img:first-child) {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
    margin: 20px 0; padding: 20px 0; border-block: 1px solid var(--edge); list-style: none;
}
.guide-prose li:has(> img:first-child) { font-size: .94rem; line-height: 1.45; }
.guide-prose li > img:first-child { display: block; width: 68px; height: 68px; object-fit: contain; }
.guide-prose li > img:first-child + strong { display: block; margin: 10px 0 4px; }
.regional-directory [hidden] { display: none; }
.regional-search { max-width: 370px; margin: 14px 0 20px; }
.regional-search .search { width: 100%; }
.regional-directory .regional-empty { padding: 12px 14px; background: var(--panel); border-radius: 8px; }
.regional-group { margin-bottom: 24px; }
.regional-group h3 { margin: 0 0 9px; font: 700 1.35rem/1.25 Cond,sans-serif; }
.regional-grid, .regional-patterns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 9px; list-style: none; padding: 0; margin: 0; }
.regional-entry { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 7px 9px; align-content: start; align-items: center; padding: 10px; border: 1px solid var(--edge); border-radius: 8px; background: var(--panel); font-size: .88rem; line-height: 1.4; }
.regional-portrait img { display: block; object-fit: contain; }
.regional-name { display: inline-block; color: var(--paper); font-weight: 700; margin-bottom: 2px; }
.regional-name:hover, .regional-coordinates a:hover, .regional-live:hover { color: var(--gold); text-decoration: underline; text-underline-offset: .2em; }
.regional-note { color: var(--muted); font-size: .8rem; margin-top: 4px; }
.regional-area, .regional-live { grid-column: 1 / -1; padding: 7px 8px; border-radius: 5px; background: #1c2229; }
.regional-area > strong { display: block; font-size: .75rem; color: var(--gold); }
.regional-coordinates { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 3px; }
.regional-coordinates code { font-size: .76rem; user-select: all; }
.regional-coordinates .copy { min-height: 32px; padding-inline: 6px; }
.regional-coordinates a { font-size: .79rem; color: var(--gold); }
.regional-area [data-copy-result]:empty { display: none; }
.regional-live { color: #a9d9b5; font-weight: 650; }
.regional-live span { font-size: .7em; margin-right: 3px; }
.regional-patterns { gap: 6px 12px; }
.regional-patterns li { border-bottom: 1px solid var(--edge); padding: 5px 0 7px; font-size: .88rem; }
.regional-patterns strong, .regional-patterns span { display: block; }
@media (max-width: 600px) {
    .guide-product-photo { float: none; width: 100%; margin: 12px 0 16px; }
    .guide-portraits { margin-left: 12px; }
    .guide-portraits img { width: 60px; height: 60px; }
    .guide-portraits:has(figure + figure) { float: none; gap: 16px; margin: 12px 0 16px; }
    .guide-prose ul:has(> li > img:first-child) { grid-template-columns: 1fr; gap: 18px; padding-block: 16px; }
    .guide-prose li:has(> img:first-child) { display: grid; grid-template-columns: 54px 1fr; column-gap: 12px; }
    .guide-prose li > img:first-child { grid-row: 1 / span 2; align-self: center; width: 54px; height: 54px; }
    .guide-prose li > img:first-child + strong { margin: 0; }
}
@media (min-width: 721px) and (min-height: 600px) {
    .guides-board .guide-contents { position: sticky; top: 14px; }
}
@media (max-width: 720px) {
    .guide-grid { grid-template-columns: 1fr; gap: 9px; }
    .guide-group { margin-bottom: 22px; }
    .guide-group h2 { font-size: 1.5rem; margin-bottom: 9px; }
    .guide-card { grid-template-columns: 62px minmax(0,1fr) auto; min-height: 95px; padding: 12px; gap: 11px; }
    .guide-card img { width: 62px; height: 62px; }
    .guide-card h3 { font-size: 1.35rem; }
    .guide-card p { font-size: .85rem; margin-top: 5px; }
    .guide-topics { gap: 0 16px; }
    .guide-topics a { min-height: 42px; font-size: .92rem; }
    .guide-scene { width: min(100%,440px); mask-image: linear-gradient(90deg,transparent 4%,#0008 49%,black 74%,black 89%,transparent); }
    .guide-tools { margin: 12px 0 17px; }
    .guide-article-head .guide-scene { bottom: auto; width: 40%; height: 82px; opacity: .4; }
    .guides-board .guide-article-head h1, .guide-article-head p { max-width: none; }
}
@media (max-width: 600px) {
    body:has(.guides-board) .mast nav { flex-wrap: nowrap; justify-content: space-between; gap: 4px; }
    .guide-scene { height: 87px; }
    .guide-device { width: 37%; right: 4%; }
    .guide-tools { flex-wrap: wrap; }
    .guide-tools .board-search { max-width: none; }
}
