/* Parchment skill book: categories stay beside the scrolling guide. */
#modal>.modal.skill-guide-modal{width:min(980px,96vw);height:min(740px,92dvh);max-width:980px;padding:58px 0 0;background:#b5a47f;color:#30291f;border:3px solid #655b45;box-shadow:0 18px 70px #0009}
#modal>.modal.skill-guide-modal::before{background:linear-gradient(#71674e,#4d493b);border-bottom:2px solid #38382c}
#modal>.skill-guide-modal>#modalContent{overflow:hidden;display:flex}
.skill-guide-shell{display:flex;flex-direction:column;min-height:0;width:100%;font-family:Georgia,'Times New Roman',serif}
.skill-guide-header{display:flex;align-items:center;gap:12px;flex:none;padding:14px 22px;background:#c8b78e;border-bottom:2px solid #75694d}
.skill-guide-header h2{font-size:23px;margin:3px 0;color:#3c3021;line-height:1.2}
.skill-guide-header .eyebrow{color:#615238;font-size:10px;letter-spacing:2px}
.skill-guide-emblem{display:flex;flex:none}.skill-guide-emblem img{width:40px;height:40px;object-fit:contain}.skill-guide-current{margin-left:auto;white-space:nowrap;font-size:14px;color:#4d4029}
.skill-guide-layout{display:grid;grid-template-columns:190px minmax(0,1fr);flex:1;min-height:0}
.skill-guide-nav{display:flex;flex-direction:column;gap:4px;overflow:auto;padding:16px 9px;background:#8e8469;border-right:3px solid #69624d;scrollbar-width:thin}
.skill-guide-nav button{flex:none;width:100%;min-height:44px;text-align:left;padding:9px 12px;color:#f4e9ca;background:linear-gradient(#685f4d,#4e493d);border:1px solid #3b382e;border-radius:2px;box-shadow:inset 0 0 0 1px #a7997450;font:15px Georgia,serif;line-height:1.3}
.skill-guide-nav button[aria-selected="true"]{color:#ffe18d;background:linear-gradient(#494436,#322f27);border-color:#e2c67d;box-shadow:inset 3px 0 #e2c67d}
.skill-guide-nav button:hover{filter:brightness(1.12)}.skill-guide-nav button:focus-visible,.skill-guide-page:focus-visible{outline:2px solid #805018;outline-offset:-3px}
.skill-guide-pages{min-width:0;min-height:0;overflow:auto;padding:22px 26px;background:linear-gradient(110deg,#bdac85,#d1c19a 55%,#c6b58d);overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#7d7053 #baaa83}
.skill-guide-page[hidden]{display:none!important}.skill-guide-page{color:#30291f;line-height:1.65}.skill-guide-page h3{color:#57401f;margin:0 0 16px;border-bottom:1px solid #857654;padding-bottom:8px;font-size:22px}.skill-guide-page p{color:#30291f;margin:0 0 18px}.skill-guide-page .hint,.skill-guide-page small{color:#55482f}.skill-guide-page .unlock-list{max-height:none;overflow:visible}.skill-guide-page .unlock-row{background:#e4d7b02b;border:0;border-bottom:1px solid #8f805b66;border-radius:0;padding:12px 0;grid-template-columns:46px 34px minmax(0,1fr) auto;gap:8px}.skill-guide-page .unlock-row:not(:has(.item-art,img)){grid-template-columns:46px minmax(0,1fr) auto}.skill-guide-page .unlock-row strong{color:#30291f}.skill-guide-page .unlock-row.locked{opacity:.7}.skill-guide-page .unlock-row>span:last-child{font-size:11px;color:#584825}.skill-guide-page .unlock-row :is(img,.item-art){width:32px;height:32px;object-fit:contain}.skill-guide-page .brewing-guide-row{border:0;border-bottom:1px solid #8f805b66;border-radius:0;background:transparent}.skill-guide-page .brewing-guide-row h4{color:#30291f}.skill-guide-page .brewing-guide-materials span{background:#c1ae80;border-color:#95835a;color:#30291f}.skill-guide-page .brewing-guide-status{color:#55482f}.skill-guide-page .skillcape-reward{background:transparent;border:0;margin:0;padding:0}.skill-guide-page .skillcape-reward p{color:#30291f}
@media(max-width:600px){#modal>.modal.skill-guide-modal{width:96vw;height:90dvh;max-height:90dvh}.skill-guide-header{padding:10px;gap:7px}.skill-guide-header h2{font-size:17px}.skill-guide-current{font-size:11px}.skill-guide-emblem img{width:28px;height:28px}.skill-guide-layout{grid-template-columns:105px minmax(0,1fr)}.skill-guide-nav{padding:10px 4px;border-right-width:2px}.skill-guide-nav button{padding:8px 5px;font-size:12px;overflow-wrap:anywhere}.skill-guide-pages{padding:14px 11px;font-size:13px}.skill-guide-page h3{font-size:18px}.skill-guide-page .unlock-row,.skill-guide-page .unlock-row:not(:has(.item-art,img)){grid-template-columns:1fr;gap:4px}.skill-guide-page .unlock-row>img{float:none}.skill-guide-page .brewing-guide-row{grid-template-columns:1fr}.skill-guide-page .brewing-guide-materials{display:flex;flex-direction:column}.skill-guide-page .brewing-guide-status{grid-column:auto}.skill-guide-page .brewing-guide-art img{width:36px;height:36px}}
.skill-guide-page .unlock-row>b{color:#59421f}.skill-guide-page .unlock-row.locked{opacity:.85}.skill-guide-page .brewing-guide-requirement{color:#59421f}
#modal .skill-guide-page .unlock-row>b{color:#59421f}#modal .skill-guide-page .unlock-row.locked{opacity:.85}#modal .skill-guide-page .brewing-guide-requirement{color:#59421f}
/* Explicit ink colors override the shared dark game-window theme. */
#modal .skill-guide-shell{color:#241b12;color-scheme:light;text-shadow:none;--gold:#59401c;--muted:#403323}
#modal .skill-guide-shell :is(h2,h3,h4,p,small,strong,b,label,li,td,th){color:#241b12;text-shadow:none}
#modal .skill-guide-shell :is(.hint,.eyebrow,.skill-guide-current,.brewing-guide-status,.brewing-guide-requirement,.unlock-row>span:last-child){color:#403323}
#modal .skill-guide-shell :is(.unlock-row.locked,.brewing-guide-row.locked){opacity:1}
#modal .skill-guide-nav button{color:#f2d89a}
#modal .skill-guide-nav button[aria-selected="true"]{color:#ffdc73}
#modal .skill-guide-page button{color:#f4e4b9;background:#3d3528;border:1px solid #75603a}
#modal .skill-guide-page button:disabled{color:#42331f;background:#b8a476;opacity:1}

/* Item icons, including SVG atlases, keep their own column beside the activity name. */
#modal .skill-guide-page .unlock-row:has(.item-art,img){grid-template-columns:46px 34px minmax(0,1fr) auto;align-items:center}
#modal .skill-guide-page .unlock-row>.item-art{display:block;width:32px;height:32px;min-width:32px;object-fit:contain}
#modal .skill-guide-page .brewing-guide-art .item-art{width:40px;height:40px;object-fit:contain}
@media(max-width:600px){#modal .skill-guide-page .unlock-row:has(.item-art,img){grid-template-columns:36px 28px minmax(0,1fr);align-items:start;gap:6px}#modal .skill-guide-page .unlock-row>.item-art{width:28px;height:28px;min-width:28px}#modal .skill-guide-page .unlock-row:has(.item-art,img)>span:last-child{grid-column:3}}

#modal .skill-guide-page .unlock-row:has(>.thieving-stall-art){grid-template-columns:46px 78px minmax(0,1fr) auto}#modal .skill-guide-page .unlock-row>.thieving-stall-art{width:72px;height:72px;min-width:72px;object-fit:contain}
@media(max-width:600px){#modal .skill-guide-page .unlock-row:has(>.thieving-stall-art){grid-template-columns:36px 58px minmax(0,1fr)}#modal .skill-guide-page .unlock-row>.thieving-stall-art{width:54px;height:54px;min-width:54px}}
