/* Alchemist uses the shared hero-detail structure with green/gold accents. */
body[data-area="heroes"][data-hero="alchemist"] {
 background:linear-gradient(180deg,transparent 0 var(--header),#100b0a var(--header) 100%) 0 0/100% 100% fixed no-repeat,
  linear-gradient(180deg,rgba(4,7,9,.3),rgba(3,5,7,.72)),url('/assets/home/dota-battlefield-hero.png') center/cover fixed no-repeat;
}
:is(#alchemist-page,#hero-detail-page) {
 --alch:#b9d64b; --alch-bright:#e8ed78;
 --alch-border:rgba(181,126,81,.5); --alch-line:rgba(196,153,115,.2);
 --alch-glass:linear-gradient(145deg,rgba(22,18,16,.9),rgba(8,11,12,.87));
 background:#100b0a; color:#d2c8bf; padding-bottom:28px;
}
:is(#alchemist-page,#hero-detail-page) .alchemist-section { padding-top:14px; background:transparent; }
:is(#alchemist-page,#hero-detail-page) h1,:is(#alchemist-page,#hero-detail-page) h2,:is(#alchemist-page,#hero-detail-page) h3,:is(#alchemist-page,#hero-detail-page) h4 {
 color:#f1e9e1; font-family:"Noto Serif SC","Songti SC",serif;
}
:is(#alchemist-page,#hero-detail-page) :is(.panel,.mechanics-section,.mechanics-sources) {
 border:1px solid var(--alch-border); border-radius:9px; background:var(--alch-glass);
 box-shadow:inset 0 1px rgba(255,255,255,.025),0 14px 34px rgba(0,0,0,.2);
 backdrop-filter:blur(10px) saturate(.85);
}
:is(#alchemist-page,#hero-detail-page) :is(button,a,input,select,summary):focus-visible { outline:2px solid var(--alch); outline-offset:3px; }
:is(#alchemist-page,#hero-detail-page) :is(select,input,output) { color:#e2d8ce; color-scheme:dark; }
:is(#alchemist-page,#hero-detail-page) select option { background:#191715; color:#e2d8ce; }
body[data-area="heroes"] .hero-sidebar[data-hero="alchemist"] .hero-avatar { border-color:#a6b14a; }
body[data-area="heroes"] .hero-sidebar[data-hero="alchemist"] .hero-nav a[aria-current] {
 border-left-color:#c1d451; background:linear-gradient(90deg,rgba(91,105,33,.86),rgba(52,61,26,.68));
}

/* Consistent hero cards: overview is taller; the other four are identical. */
:is(#alchemist-page,#hero-detail-page) .alchemist-hero {
 height:clamp(300px,39vh,352px); margin:0 18px 0 14px; border-radius:10px;
 border:1px solid var(--alch-border); background-position:right 28%;
}
:is(#alchemist-page,#hero-detail-page) .alchemist-hero-copy { padding:38px 38px 0; max-width:720px; }
:is(#alchemist-page,#hero-detail-page) .alchemist-eyebrow { font-size:12px; font-weight:700; letter-spacing:2.5px; }
:is(#alchemist-page,#hero-detail-page) .alchemist-hero h1 small { font-size:18px; color:#e1d6ca; }
:is(#alchemist-page,#hero-detail-page) .alchemist-tagline { color:#d2c8bf; }
:is(#alchemist-page,#hero-detail-page) .alchemist-roles span { border-radius:5px; border-color:rgba(181,170,106,.4); background:rgba(18,18,18,.52); }
:is(#alchemist-page,#hero-detail-page) .alchemist-snapshot { border-radius:6px; border-color:rgba(181,170,106,.4); background:rgba(20,20,17,.74); }
:is(#alchemist-page,#hero-detail-page) .alchemist-detail-banner {
 position:relative; height:250px; margin:0 18px 20px 14px; overflow:hidden;
 border:1px solid var(--alch-border); border-radius:10px;
 background:url('/assets/story/alchemist-battlefield.png') right 28%/cover no-repeat;
 box-shadow:inset 0 -35px 55px rgba(3,5,7,.66),0 16px 38px rgba(0,0,0,.25);
}
:is(#alchemist-page,#hero-detail-page) :is(.alchemist-hero,.alchemist-detail-banner)::after {
 content:""; position:absolute; inset:0; pointer-events:none;
 background:linear-gradient(90deg,rgba(7,9,10,.96),rgba(9,10,10,.78) 28%,rgba(10,9,8,.2) 62%,transparent 80%),linear-gradient(0deg,rgba(6,7,8,.7),transparent 58%);
}
:is(#alchemist-page,#hero-detail-page) .alchemist-detail-copy { position:relative; z-index:1; padding:42px 38px 0; }
:is(#alchemist-page,#hero-detail-page) .alchemist-detail-copy h1 { margin:0; font-size:58px; line-height:1.15; letter-spacing:5px; text-shadow:0 4px 18px #000; }
:is(#alchemist-page,#hero-detail-page) .alchemist-detail-subtitle { margin:7px 0 18px; font-size:25px; letter-spacing:4px; color:#d8cbc0; text-shadow:0 2px 5px #000; }
:is(#alchemist-page,#hero-detail-page) .alchemist-detail-note { display:flex; align-items:center; gap:14px; font-size:15px; }
:is(#alchemist-page,#hero-detail-page) .alchemist-detail-note>span { flex:none; border:1px solid #87933e; border-radius:6px; background:rgba(58,66,25,.72); padding:6px 11px; color:var(--alch-bright); white-space:nowrap; }
:is(#alchemist-page,#hero-detail-page) .alchemist-detail-note p { margin:0; max-width:630px; color:#d2c8bf; line-height:1.7; text-shadow:0 2px 5px #000; }
:is(#alchemist-page,#hero-detail-page) .history-status { position:absolute; z-index:2; right:18px; bottom:16px; border:1px solid #68874c; border-radius:18px; background:rgba(32,60,36,.86); color:#c4dfa2; padding:8px 12px; font-size:12px; }

/* Overview */
:is(#alchemist-page,#hero-detail-page) .alchemist-overview-grid { padding:0 18px 0 14px; }
:is(#alchemist-page,#hero-detail-page) .alchemist-overview-card { min-height:326px; border-radius:10px; }
:is(#alchemist-page,#hero-detail-page) .alchemist-story-card { background:linear-gradient(90deg,rgba(16,16,13,.95),rgba(14,16,13,.83)),url('/assets/story/alchemist-battlefield.png') 72% center/cover; }
:is(#alchemist-page,#hero-detail-page) .alchemist-story-copy { max-width:100%; padding:18px 4px 8px; }
:is(#alchemist-page,#hero-detail-page) .alchemist-story-copy p { font-size:16px; line-height:1.78; color:#d2c8bf; }
:is(#alchemist-page,#hero-detail-page) .alchemist-card-heading { border-color:var(--alch-line); }
:is(#alchemist-page,#hero-detail-page) .alchemist-card-heading>span:first-child { flex:none; border-color:rgba(160,165,94,.45); background:rgba(43,42,29,.5); }
:is(#alchemist-page,#hero-detail-page) .alchemist-card-heading p,:is(#alchemist-page,#hero-detail-page) .alchemist-card-meta { color:#a99c91; }
:is(#alchemist-page,#hero-detail-page) :is(.alchemist-upgrade-list article,.alchemist-ability-list article) { background:rgba(32,31,25,.5); border-color:var(--alch-line); }
:is(#alchemist-page,#hero-detail-page) :is(.alchemist-upgrade-list article>div,.alchemist-card-heading>div) { min-width:0; }
:is(#alchemist-page,#hero-detail-page) .alchemist-innate-line { border-color:var(--alch-line); }
:is(#alchemist-page,#hero-detail-page) .alchemist-innate-line p { color:#a99c91; line-height:1.65; }
:is(#alchemist-page,#hero-detail-page) .alchemist-overview-row { border-color:var(--alch-line); }
:is(#alchemist-page,#hero-detail-page) .alchemist-overview-row:hover { background:rgba(124,141,53,.1); }
:is(#alchemist-page,#hero-detail-page) :is(.overview-match-list,.overview-match-row,.overview-match-stats) { border-color:var(--alch-line); }
:is(#alchemist-page,#hero-detail-page) .overview-match-head { color:#a99c91; }
:is(#alchemist-page,#hero-detail-page) .overview-match-context time { color:#e2d8ce; }
:is(#alchemist-page,#hero-detail-page) .overview-match-context small { color:#a99c91; }
:is(#alchemist-page,#hero-detail-page) .overview-match-row:is(:hover,:focus-visible) { background:rgba(124,141,53,.1); }
:is(#alchemist-page,#hero-detail-page) .overview-match-row:focus-visible { outline-offset:-2px; }

/* Story reading column and reusable rail modules. */
:is(#alchemist-page,#hero-detail-page) .alchemist-story-columns { grid-template-columns:minmax(0,1fr) minmax(300px,340px); gap:18px; padding:0 18px 0 14px; }
:is(#alchemist-page,#hero-detail-page) .alchemist-story-body { grid-row:auto; padding:24px 28px 16px; }
:is(#alchemist-page,#hero-detail-page) .alchemist-story-body>section { scroll-margin-top:calc(var(--header) + 14px); padding-bottom:25px; margin-bottom:25px; border-bottom-color:var(--alch-line); }
:is(#alchemist-page,#hero-detail-page) .alchemist-story-body h2 { border-left-width:5px; border-left-color:var(--alch); }
:is(#alchemist-page,#hero-detail-page) .alchemist-story-body p { color:#d2c8bf; line-height:1.78; }
:is(#alchemist-page,#hero-detail-page) .alchemist-story-rail { display:grid; grid-row:auto; position:sticky; top:calc(var(--header) + 14px); gap:12px; }
:is(#alchemist-page,#hero-detail-page) .alchemist-story-rail .panel { padding:14px 16px; }
:is(#alchemist-page,#hero-detail-page) .alchemist-story-rail h2 { font-size:21px; margin:0; }
:is(#alchemist-page,#hero-detail-page) .alchemist-rail-heading,:is(#alchemist-page,#hero-detail-page) .alchemist-story-rail>.panel>h2 { padding-bottom:10px; margin-bottom:10px; border-bottom:1px solid var(--alch-line); }
:is(#alchemist-page,#hero-detail-page) .alchemist-rail-heading { display:flex; justify-content:space-between; align-items:center; gap:10px; }
:is(#alchemist-page,#hero-detail-page) .alchemist-contents-toggle { display:none; border:1px solid var(--alch-border); border-radius:4px; padding:4px 8px; font-size:12px; }
:is(#alchemist-page,#hero-detail-page) .alchemist-toc button { display:flex; align-items:center; gap:11px; border-color:var(--alch-line); line-height:1.5; }
:is(#alchemist-page,#hero-detail-page) .alchemist-toc button>span { display:inline-flex; align-items:center; justify-content:center; flex:0 0 23px; width:23px; height:23px; padding:0 0 1px; font:700 12px/1 Arial,sans-serif; border:1px solid #8c9c4c; border-radius:50%; background:#404b23; color:#f1f2da; }
:is(#alchemist-page,#hero-detail-page) .alchemist-toc button[aria-current],:is(#alchemist-page,#hero-detail-page) .alchemist-toc button:hover { border-left-color:var(--alch); background:linear-gradient(90deg,rgba(82,97,32,.65),rgba(41,50,26,.38)); }
:is(#alchemist-page,#hero-detail-page) .alchemist-relations a { display:flex; align-items:center; gap:12px; padding:12px 0; border-bottom:1px solid var(--alch-line); }
:is(#alchemist-page,#hero-detail-page) .alchemist-relations a:last-child { border:0; padding-bottom:0; }
:is(#alchemist-page,#hero-detail-page) .alchemist-relation-mark { display:grid; place-items:center; flex:0 0 48px; height:48px; border:1px solid rgba(160,165,94,.45); border-radius:6px; color:var(--alch-bright); background:linear-gradient(135deg,#323620,#171a12); font-size:23px; }
:is(#alchemist-page,#hero-detail-page) .alchemist-relations strong { display:block; color:#e9e0d6; font-size:15px; margin-bottom:4px; }
:is(#alchemist-page,#hero-detail-page) .alchemist-relations small { display:block; color:#a99c91; line-height:1.7; font-size:12px; }
:is(#alchemist-page,#hero-detail-page) .alchemist-relations a:hover strong,:is(#alchemist-page,#hero-detail-page) .alchemist-source:hover strong { color:var(--alch-bright); }
:is(#alchemist-page,#hero-detail-page) .alchemist-source { border-color:var(--alch-line); }
:is(#alchemist-page,#hero-detail-page) .alchemist-source small { color:#a99c91; line-height:1.65; }
:is(#alchemist-page,#hero-detail-page) .alchemist-adaptation-notes { margin-top:10px; padding-top:10px; border-top:1px solid var(--alch-line); font-size:12px; }
:is(#alchemist-page,#hero-detail-page) .alchemist-adaptation-notes summary { cursor:pointer; color:var(--alch-bright); }
:is(#alchemist-page,#hero-detail-page) .alchemist-adaptation-notes p { line-height:1.75; color:#a99c91; }

/* Three upgrade modules, then innate, abilities and source verification. */
:is(#alchemist-page,#hero-detail-page) .mechanics-shell { margin:0 18px 0 14px; padding:0; background:transparent; }
:is(#alchemist-page,#hero-detail-page) .mechanics-section { margin:0 0 14px; padding:0 16px 16px; }
:is(#alchemist-page,#hero-detail-page) .mechanics-section-heading { min-height:52px; border-color:var(--alch-line); }
:is(#alchemist-page,#hero-detail-page) .mechanics-section-heading>span { display:grid; place-items:center; width:28px; height:28px; font:14px/1 Georgia,serif; color:var(--alch-bright); background:rgba(88,100,36,.3); border:1px solid rgba(147,160,61,.5); border-radius:5px; }
:is(#alchemist-page,#hero-detail-page) .mechanics-section-heading p { color:#a99c91; }
:is(#alchemist-page,#hero-detail-page) .upgrade-grid { grid-template-columns:minmax(0,.8fr) minmax(0,.7fr) minmax(0,1.5fr); gap:14px; align-items:stretch; }
:is(#alchemist-page,#hero-detail-page) .upgrade-card,:is(#alchemist-page,#hero-detail-page) .talent-tree { min-width:0; border:1px solid var(--alch-line); border-radius:7px; background:rgba(27,25,21,.45); padding:14px; }
:is(#alchemist-page,#hero-detail-page) .upgrade-card { display:block; min-height:0; height:auto; }
:is(#alchemist-page,#hero-detail-page) .upgrade-card>.ability-art { width:54px; height:54px; margin-bottom:12px; border-color:rgba(181,170,106,.4); }
:is(#alchemist-page,#hero-detail-page) .upgrade-card h4 { font-size:17px; margin:0 0 10px; }
:is(#alchemist-page,#hero-detail-page) .upgrade-card dl { display:block; font-size:13px; line-height:1.75; }
:is(#alchemist-page,#hero-detail-page) .upgrade-card dt { color:#a99c91; border:0; margin-top:8px; }
:is(#alchemist-page,#hero-detail-page) .upgrade-card dd { margin:3px 0 0; border:0; color:#d2c8bf; overflow-wrap:anywhere; }
:is(#alchemist-page,#hero-detail-page) .talent-tree h4 { font-size:18px; }
:is(#alchemist-page,#hero-detail-page) .talent-row { grid-template-columns:minmax(0,1fr) 42px minmax(0,1fr); gap:5px; }
:is(#alchemist-page,#hero-detail-page) .talent-row>div { min-width:0; padding:6px; height:auto; min-height:58px; gap:7px; background:rgba(52,46,33,.5); }
:is(#alchemist-page,#hero-detail-page) .talent-row>strong { width:36px; height:36px; font-size:21px; }
:is(#alchemist-page,#hero-detail-page) .talent-row span { font-size:11px; overflow-wrap:anywhere; }
:is(#alchemist-page,#hero-detail-page) .talent-row img { width:29px; height:29px; }
:is(#alchemist-page,#hero-detail-page) .innate-card { min-width:0; border:0; border-radius:6px; background:rgba(46,40,35,.38); }
:is(#alchemist-page,#hero-detail-page) .innate-intro p { color:#d2c8bf; line-height:1.75; }
:is(#alchemist-page,#hero-detail-page) .innate-fact { border-color:var(--alch-line); }
:is(#alchemist-page,#hero-detail-page) .ability-tabs { grid-template-columns:repeat(auto-fit,minmax(100px,1fr)); gap:8px; }
:is(#alchemist-page,#hero-detail-page) .ability-tabs button { min-width:0; height:auto; min-height:78px; border-color:var(--alch-line); background:rgba(26,24,21,.6); }
:is(#alchemist-page,#hero-detail-page) .ability-tabs button[aria-selected="true"] { border-color:var(--alch); background:linear-gradient(0deg,rgba(82,97,32,.5),rgba(41,50,26,.08)); }
:is(#alchemist-page,#hero-detail-page) .ability-detail,:is(#alchemist-page,#hero-detail-page) .mechanics-explanation { min-width:0; border-color:var(--alch-line); background:rgba(17,17,16,.35); }
:is(#alchemist-page,#hero-detail-page) .ability-summary>div { min-width:0; }
:is(#alchemist-page,#hero-detail-page) .ability-summary p { color:#d2c8bf; line-height:1.78; }
:is(#alchemist-page,#hero-detail-page) .ability-table-wrap { overflow:visible; border-color:var(--alch-line); }
:is(#alchemist-page,#hero-detail-page) .ability-table { table-layout:fixed; }
:is(#alchemist-page,#hero-detail-page) .ability-table th,:is(#alchemist-page,#hero-detail-page) .ability-table td { white-space:normal; overflow-wrap:anywhere; border-color:var(--alch-line); line-height:1.65; }
:is(#alchemist-page,#hero-detail-page) .mechanic-note { border-color:var(--alch-line); }
:is(#alchemist-page,#hero-detail-page) .mechanic-note h5,:is(#alchemist-page,#hero-detail-page) .mechanic-note p { overflow-wrap:anywhere; line-height:1.75; }
:is(#alchemist-page,#hero-detail-page) .mechanics-sources { padding:12px 16px; color:#a99c91; }

/* Match controls, table and pagination. */
:is(#alchemist-page,#hero-detail-page) .matches-shell { margin:0 18px 0 14px; }
body[data-area="heroes"] :is(#alchemist-page,#hero-detail-page) :is(.match-filter,.match-reset) { border-color:var(--alch-border); }
:is(#alchemist-page,#hero-detail-page) .history-filters label,:is(#alchemist-page,#hero-detail-page) .history-periods {
 min-width:0; height:42px; border:1px solid var(--alch-border); border-radius:7px; background:linear-gradient(145deg,rgba(35,29,25,.82),rgba(13,16,17,.8));
 box-shadow:inset 0 1px rgba(255,255,255,.025),0 7px 20px rgba(0,0,0,.16);
}
:is(#alchemist-page,#hero-detail-page) .match-filter>span { color:#a99c91; }
body[data-area="heroes"] :is(#alchemist-page,#hero-detail-page) .match-reset:hover { border-color:var(--alch); }
:is(#alchemist-page,#hero-detail-page) .match-table-panel { border-radius:9px; }
:is(#alchemist-page,#hero-detail-page) .matches-table th { background:rgba(43,35,30,.7); border-color:var(--alch-line); color:#c9b9aa; }
:is(#alchemist-page,#hero-detail-page) .matches-table td { border-color:rgba(194,151,113,.13); color:#d7cec6; }
:is(#alchemist-page,#hero-detail-page) .matches-table tbody .match-row:nth-child(odd) td { background:rgba(39,32,28,.5); }
:is(#alchemist-page,#hero-detail-page) .matches-table tbody .match-row:nth-child(even) td { background:rgba(22,22,21,.56); }
:is(#alchemist-page,#hero-detail-page) .match-row:hover td { background:rgba(102,118,43,.25)!important; }
:is(#alchemist-page,#hero-detail-page) .matches-footer { border-color:var(--alch-line); }
:is(#alchemist-page,#hero-detail-page) .matches-summary { color:#a99c91; }
:is(#alchemist-page,#hero-detail-page) .matches-pagination button,:is(#alchemist-page,#hero-detail-page) .page-size-filter { border-color:var(--alch-border); background:rgba(35,29,25,.6); }
:is(#alchemist-page,#hero-detail-page) .matches-pagination button[aria-current] { border-color:var(--alch); background:#3b4520; }
:is(#alchemist-page,#hero-detail-page) .page-size-filter select { background:transparent; }

/* History timeline, functional badges retain their established colors. */
:is(#alchemist-page,#hero-detail-page) .history-shell { padding:0 18px 0 14px; }
:is(#alchemist-page,#hero-detail-page) .history-filters { grid-template-columns:auto 150px 170px minmax(240px,1fr) auto; padding:0; margin-bottom:14px; gap:10px; }
:is(#alchemist-page,#hero-detail-page) .history-periods button { height:40px; min-width:95px; padding:0 12px; border-color:var(--alch-line); background:transparent; }
:is(#alchemist-page,#hero-detail-page) .history-periods button[aria-pressed="true"] { background:linear-gradient(135deg,#536025,#343e20); box-shadow:inset 0 0 0 1px #a6bd49; }
:is(#alchemist-page,#hero-detail-page) .history-filters select { background:transparent; }
:is(#alchemist-page,#hero-detail-page) .history-layout { grid-template-columns:minmax(0,1fr) 300px; gap:14px; }
:is(#alchemist-page,#hero-detail-page) .history-timeline { gap:8px; padding:12px 14px 12px 42px; overflow:hidden; border:1px solid var(--alch-border); border-radius:9px; background:var(--alch-glass); backdrop-filter:blur(9px); }
:is(#alchemist-page,#hero-detail-page) .history-timeline::before { left:28px; top:48px; bottom:18px; background:linear-gradient(var(--alch) 0 26%,#736d4a 26%); }
:is(#alchemist-page,#hero-detail-page) .history-table-head { border:0; border-bottom:1px solid var(--alch-line); border-radius:0; background:transparent; color:#aa9684; }
:is(#alchemist-page,#hero-detail-page) .history-entry { overflow:visible; border-color:rgba(181,126,81,.3); border-radius:7px; background:rgba(18,17,16,.7); box-shadow:none; }
:is(#alchemist-page,#hero-detail-page) .history-entry.is-current { border-color:#85983d; }
:is(#alchemist-page,#hero-detail-page) .history-entry>header { border-radius:6px 0 0 6px; border-color:var(--alch-line); background:linear-gradient(135deg,rgba(69,58,38,.72),rgba(20,20,19,.5) 74%); }
:is(#alchemist-page,#hero-detail-page) .history-entry-body { border-radius:0 6px 6px 0; background:rgba(14,15,15,.54); }
:is(#alchemist-page,#hero-detail-page) .history-ability-group { border-color:var(--alch-line); }
:is(#alchemist-page,#hero-detail-page) .history-dot { left:-35px; background:#807953; border-color:#aca67a; box-shadow:none; }
:is(#alchemist-page,#hero-detail-page) .history-entry.is-current .history-dot { background:var(--alch); border-color:#eef99f; box-shadow:0 0 9px #c8dc5488; }
:is(#alchemist-page,#hero-detail-page) .history-rail { top:calc(var(--header) + 14px); gap:12px; }
:is(#alchemist-page,#hero-detail-page) .history-rail h3 { border-color:var(--alch-line); }
:is(#alchemist-page,#hero-detail-page) .history-index nav::before { background:#777255; }
:is(#alchemist-page,#hero-detail-page) .history-index nav button.is-active { color:var(--alch-bright); background:rgba(90,104,37,.35); }
:is(#alchemist-page,#hero-detail-page) .history-index nav button.is-active::before { background:var(--alch); box-shadow:0 0 8px #c8dc5470; }

@media(max-width:1250px) and (min-width:701px) {
 :is(#alchemist-page,#hero-detail-page) .alchemist-story-columns { grid-template-columns:minmax(0,1fr) 300px; }
 :is(#alchemist-page,#hero-detail-page) .upgrade-grid { grid-template-columns:1fr; }
 :is(#alchemist-page,#hero-detail-page) .upgrade-card { display:flex; gap:14px; }
 :is(#alchemist-page,#hero-detail-page) .upgrade-card>div { min-width:0; }
 :is(#alchemist-page,#hero-detail-page) .history-filters { grid-template-columns:1fr 140px 160px; }
 :is(#alchemist-page,#hero-detail-page) .history-layout { grid-template-columns:minmax(0,1fr) 260px; }
 :is(#alchemist-page,#hero-detail-page) .history-ability-group { grid-template-columns:1fr; }
}
@media(max-width:1000px) {
 :is(#alchemist-page,#hero-detail-page) .alchemist-story-columns { grid-template-columns:minmax(0,1fr); }
 :is(#alchemist-page,#hero-detail-page) .alchemist-story-rail { display:contents; position:static; }
 :is(#alchemist-page,#hero-detail-page) .alchemist-contents { grid-row:1; }
 :is(#alchemist-page,#hero-detail-page) .alchemist-story-body { grid-row:2; }
 :is(#alchemist-page,#hero-detail-page) .alchemist-relations { grid-row:3; }
 :is(#alchemist-page,#hero-detail-page) .alchemist-story-sources { grid-row:4; }
 :is(#alchemist-page,#hero-detail-page) .history-layout { grid-template-columns:minmax(0,1fr); }
 :is(#alchemist-page,#hero-detail-page) .history-rail { position:static; grid-template-columns:1fr 1fr; }
}
@media(max-width:700px) {
 body[data-area="heroes"] .hero-sidebar[data-hero="alchemist"] .hero-nav a[aria-current] { border-left:0; border-bottom-color:var(--alch,#b9d64b); }
 :is(#alchemist-page,#hero-detail-page) .alchemist-section { padding-top:0; }
 :is(#alchemist-page,#hero-detail-page) .alchemist-section[data-alchemist-section="overview"] { padding-top:10px; }
 :is(#alchemist-page,#hero-detail-page) .alchemist-hero { height:246px; margin:0 8px; border-radius:8px; background-position:64% center; }
 :is(#alchemist-page,#hero-detail-page) .alchemist-hero-copy { padding:26px 20px 0; }
 :is(#alchemist-page,#hero-detail-page) .alchemist-hero h1 { font-size:42px; }
 :is(#alchemist-page,#hero-detail-page) .alchemist-hero h1 small { font-size:14px; margin-top:6px; }
 :is(#alchemist-page,#hero-detail-page) .alchemist-tagline { font-size:12px; margin:12px 0; max-width:250px; }
 :is(#alchemist-page,#hero-detail-page) .alchemist-roles { gap:5px; max-width:230px; }
 :is(#alchemist-page,#hero-detail-page) .alchemist-roles span { padding:5px 8px; font-size:10px; }
 :is(#alchemist-page,#hero-detail-page) .alchemist-snapshot { right:9px; bottom:9px; padding:6px 8px; }
 :is(#alchemist-page,#hero-detail-page) .alchemist-snapshot strong { font-size:11px; }
 :is(#alchemist-page,#hero-detail-page) .alchemist-snapshot span { font-size:9px; }
 :is(#alchemist-page,#hero-detail-page) .alchemist-snapshot small { display:none; }
 :is(#alchemist-page,#hero-detail-page) .alchemist-detail-banner { height:220px; margin:10px 8px 12px; border-radius:8px; background-position:64% center; }
 :is(#alchemist-page,#hero-detail-page) .alchemist-detail-copy { padding:26px 20px 0; }
 :is(#alchemist-page,#hero-detail-page) .alchemist-detail-copy h1 { font-size:42px; letter-spacing:2px; }
 :is(#alchemist-page,#hero-detail-page) .alchemist-detail-subtitle { font-size:19px; letter-spacing:2px; margin:7px 0 16px; }
 :is(#alchemist-page,#hero-detail-page) .alchemist-detail-note { gap:9px; align-items:flex-start; font-size:12px; }
 :is(#alchemist-page,#hero-detail-page) .alchemist-detail-note>span { padding:5px 7px; }
 :is(#alchemist-page,#hero-detail-page) .alchemist-detail-note p { flex:1; min-width:0; max-width:none; line-height:1.75; }
 :is(#alchemist-page,#hero-detail-page) .history-status { right:10px; bottom:10px; padding:6px 9px; font-size:10px; }
 :is(#alchemist-page,#hero-detail-page) .alchemist-overview-grid { padding:0 8px; gap:10px; }
 :is(#alchemist-page,#hero-detail-page) .alchemist-overview-card { min-height:0; border-radius:8px; }
 :is(#alchemist-page,#hero-detail-page) .alchemist-card-heading { gap:9px; flex-wrap:wrap; }
 :is(#alchemist-page,#hero-detail-page) .alchemist-card-heading h2 { font-size:20px; }
 :is(#alchemist-page,#hero-detail-page) .alchemist-card-meta { font-size:10px; white-space:normal; }
 :is(#alchemist-page,#hero-detail-page) .alchemist-story-copy p { line-height:1.8; }
 :is(#alchemist-page,#hero-detail-page) .alchemist-story-columns { padding:0 8px; gap:10px; }
 :is(#alchemist-page,#hero-detail-page) .alchemist-story-body { padding:18px 16px; border-radius:8px; }
 :is(#alchemist-page,#hero-detail-page) .alchemist-story-body p { line-height:1.85; }
 :is(#alchemist-page,#hero-detail-page) .alchemist-contents-toggle { display:block; }
 :is(#alchemist-page,#hero-detail-page) .alchemist-rail-heading { margin-bottom:0; padding-bottom:0; border:0; }
 :is(#alchemist-page,#hero-detail-page) .alchemist-toc:not(.is-open) { display:none; }
 :is(#alchemist-page,#hero-detail-page) .alchemist-toc.is-open { display:grid; margin-top:12px; }
 :is(#alchemist-page,#hero-detail-page) .alchemist-story-rail .panel+.panel { margin-top:0; }
 :is(#alchemist-page,#hero-detail-page) .mechanics-shell { margin:0 8px; }
 :is(#alchemist-page,#hero-detail-page) .mechanics-section { padding:0 10px 12px; margin-bottom:10px; border-radius:8px; }
 :is(#alchemist-page,#hero-detail-page) .mechanics-section-heading { gap:9px; }
 :is(#alchemist-page,#hero-detail-page) .mechanics-section-heading p { margin:0; }
 :is(#alchemist-page,#hero-detail-page) .upgrade-grid { grid-template-columns:minmax(0,1fr); gap:10px; }
 :is(#alchemist-page,#hero-detail-page) .upgrade-card { display:flex; gap:12px; padding:12px; }
 :is(#alchemist-page,#hero-detail-page) .upgrade-card>.ability-art { width:48px; height:48px; flex:none; }
 :is(#alchemist-page,#hero-detail-page) .upgrade-card>div { min-width:0; }
 :is(#alchemist-page,#hero-detail-page) .upgrade-card h4 { font-size:16px; }
 :is(#alchemist-page,#hero-detail-page) .upgrade-card dl { font-size:12px; }
 :is(#alchemist-page,#hero-detail-page) .talent-tree { padding:10px; }
 :is(#alchemist-page,#hero-detail-page) .talent-row { grid-template-columns:minmax(0,1fr) 32px minmax(0,1fr); }
 :is(#alchemist-page,#hero-detail-page) .talent-row>div { min-height:70px; flex-wrap:wrap; padding:5px; }
 :is(#alchemist-page,#hero-detail-page) .talent-row>strong { width:30px; height:30px; font-size:18px; }
 :is(#alchemist-page,#hero-detail-page) .talent-row span { font-size:11px; }
 :is(#alchemist-page,#hero-detail-page) .talent-row img { width:25px; height:25px; }
 :is(#alchemist-page,#hero-detail-page) .ability-tabs { grid-template-columns:1fr 1fr; }
 :is(#alchemist-page,#hero-detail-page) .ability-summary { flex-wrap:wrap; }
 :is(#alchemist-page,#hero-detail-page) .ability-summary h4 { white-space:normal; }
 :is(#alchemist-page,#hero-detail-page) .mechanics-explanation { padding:10px; }
 :is(#alchemist-page,#hero-detail-page) .mechanics-sources { padding:10px; border-radius:8px; }
 :is(#alchemist-page,#hero-detail-page) .matches-shell { margin:0 8px; }
 :is(#alchemist-page,#hero-detail-page) .match-table-panel { border-radius:8px; }
 :is(#alchemist-page,#hero-detail-page) .match-row { border-color:var(--alch-line); background:rgba(22,22,20,.7); }
 :is(#alchemist-page,#hero-detail-page) .matches-table .match-row td { background:rgba(22,22,20,.7)!important; }
 :is(#alchemist-page,#hero-detail-page) .matches-pagination { width:100%; }
 :is(#alchemist-page,#hero-detail-page) .history-shell { padding:0 8px; }
 :is(#alchemist-page,#hero-detail-page) .history-filters { grid-template-columns:minmax(0,1fr); gap:7px; margin-bottom:10px; }
 :is(#alchemist-page,#hero-detail-page) .history-periods { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
 :is(#alchemist-page,#hero-detail-page) .history-periods button { min-width:0; padding:0 5px; }
 :is(#alchemist-page,#hero-detail-page) .history-layout { grid-template-columns:minmax(0,1fr); gap:10px; }
 :is(#alchemist-page,#hero-detail-page) .history-timeline { padding:10px 10px 10px 28px; border-radius:8px; }
 :is(#alchemist-page,#hero-detail-page) .history-timeline::before { left:16px; }
 :is(#alchemist-page,#hero-detail-page) .history-dot { left:-21px; }
 :is(#alchemist-page,#hero-detail-page) .history-entry>header { border-radius:6px 6px 0 0; }
 :is(#alchemist-page,#hero-detail-page) .history-entry-body { border-radius:0 0 6px 6px; }
 :is(#alchemist-page,#hero-detail-page) .history-rail { grid-template-columns:minmax(0,1fr); }
}
@media(max-width:370px) {
 :is(#alchemist-page,#hero-detail-page) .alchemist-hero-copy { padding-left:15px; }
 :is(#alchemist-page,#hero-detail-page) .alchemist-hero h1 { font-size:39px; }
 :is(#alchemist-page,#hero-detail-page) .alchemist-roles { max-width:177px; gap:4px; }
 :is(#alchemist-page,#hero-detail-page) .alchemist-roles span { padding:4px 6px; }
 :is(#alchemist-page,#hero-detail-page) .alchemist-detail-copy { padding-left:14px; padding-right:14px; }
 :is(#alchemist-page,#hero-detail-page) .alchemist-detail-copy h1 { letter-spacing:0; }
 :is(#alchemist-page,#hero-detail-page) .alchemist-detail-subtitle { font-size:18px; }
 :is(#alchemist-page,#hero-detail-page) .alchemist-innate-line { grid-template-columns:1fr 43px; }
 :is(#alchemist-page,#hero-detail-page) .alchemist-innate-line>div { grid-column:1/-1; }
}
