/* Static release cards, newest first. Reuse the shared paper palette and typography. */
/* Compare each changed property separately. Color only the after value; keep text labels too.
   COST down = buff, COST up = nerf. Neutral rule changes use patch-after. */
.patch-root{--patch-buff:#216c45;--patch-nerf:#ac3038}
.patch-changes{margin:12px 0 18px}.patch-change{padding:12px 0;border-bottom:1px solid var(--line);min-width:0}
.patch-change dt{font-size:13px;font-weight:700;margin-bottom:5px}.patch-change dd{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin:0;min-width:0}
.patch-change dd>span,.patch-change dd>strong{max-width:100%;overflow-wrap:anywhere}
.patch-root .patch-change .patch-before,.patch-root .patch-change .patch-after,.patch-root .patch-change .patch-arrow{color:inherit}
.patch-root .patch-buff{color:var(--patch-buff)}.patch-root .patch-nerf{color:var(--patch-nerf)}
.patch-root{max-width:900px;padding-bottom:24px;font-size:15px;line-height:1.85;overflow-wrap:anywhere}
.patch-root .topbar{gap:14px}.patch-root .brand{font-size:12px;letter-spacing:.08em}
.patch-back{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;color:var(--theme-ink,#53645a);text-decoration:none;font-size:13px;flex-shrink:0}
.patch-root a:focus-visible{outline:3px solid #558eaf;outline-offset:4px;border-radius:4px}
.patch-hero{padding:40px 0 28px}.patch-root .patch-hero h1{font-size:clamp(30px,6vw,48px);line-height:1.15;letter-spacing:-.04em;margin:8px 0}
.patch-subtitle{margin:0;color:var(--theme-forest,#2d795d);font-size:18px;font-weight:700}.patch-intro{margin:18px 0 0;color:var(--theme-muted,#65746b)}
.patch-feed{display:grid;gap:24px;min-width:0}.patch-release{padding:clamp(20px,4vw,38px);min-width:0}
.patch-release-meta{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;color:var(--theme-muted,#65746b);font-size:13px}
.patch-version{font-size:19px;font-weight:800;color:var(--theme-forest,#2d795d)}.patch-latest{font-size:10px;letter-spacing:.1em;border:1px solid var(--theme-line,#d9e5d7);border-radius:999px;background:var(--theme-tint-forest,#edf3e9);padding:2px 9px;color:var(--theme-forest,#326c4f);font-weight:800}
.patch-release-header h2{font-size:clamp(21px,4vw,29px);line-height:1.4;margin:12px 0}.patch-release-header p{margin:0;color:var(--theme-muted,#65746b)}
.patch-release-summary{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 16px;align-items:center;min-height:44px;padding:8px 0;cursor:pointer;list-style:none;border-radius:4px}
.patch-release-summary::-webkit-details-marker{display:none}.patch-release-summary::after{content:'＋';grid-column:2;grid-row:1 / span 2;font-size:22px;color:var(--theme-forest,#2d795d)}
.patch-release details[open]>.patch-release-summary::after{content:'−'}.patch-release-summary:focus-visible{outline:3px solid #558eaf;outline-offset:4px}
.patch-release-title{grid-column:1;font-size:clamp(21px,4vw,29px);line-height:1.4;font-weight:700}
.patch-release details[open]>.patch-release-summary{margin-bottom:12px}
.patch-section-links{display:flex;flex-wrap:wrap;gap:6px;margin-top:20px}.patch-section-links a{display:inline-flex;align-items:center;gap:14px;min-height:44px;border:1px solid var(--line);border-radius:8px;padding:7px 12px;text-decoration:none;font-size:11px;font-weight:800;color:var(--theme-ink,#46584c);background:var(--theme-raised,#f7f8f1)}
.patch-section{border-top:1px solid var(--line);margin-top:26px;padding-top:24px;scroll-margin-top:16px}.patch-section h3{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0 0 16px;font-size:16px}
.patch-badge{display:inline-flex;align-items:center;max-width:100%;padding:4px 9px;border:1px solid var(--theme-line,#d9e5d7);border-radius:6px;background:var(--theme-tint-forest,#edf3e9);color:var(--theme-forest,#326c4f);font-size:10px;font-weight:800;letter-spacing:.07em;line-height:1.6}
.patch-badge[data-category="BALANCE"]{background:var(--theme-raised,#f5f0e3);border-color:var(--theme-line,#e7dfce);color:var(--theme-gold,#7b6640)}.patch-badge[data-category="IMPROVEMENT"]{background:var(--theme-raised,#edf1ed);color:var(--theme-ink,#52675a)}.patch-badge[data-category="FIX"]{background:var(--theme-tint-water,#edf3f5);border-color:var(--theme-line,#dbe4e7);color:var(--theme-ink,#526d78)}
.patch-list{margin:0;padding-left:1.35em}.patch-list li{padding-left:3px;margin:0 0 13px}.patch-list li:last-child{margin-bottom:0}.patch-root strong{font-weight:700}.patch-list a{display:inline-flex;align-items:center;min-height:44px;color:var(--theme-forest,#2d795d);text-underline-offset:3px}
.patch-caption{font-size:13px;color:var(--theme-muted,#65746b);margin:-4px 0 14px}.patch-balance-list{list-style:none;margin:0;padding:0}.patch-balance-list li{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:8px 16px;padding:11px 0;border-bottom:1px solid var(--theme-line,#eeece4)}.patch-balance-list b{color:var(--theme-forest,#326c4f);font-weight:700}
.patch-cost-table{width:100%;table-layout:fixed;border-collapse:collapse;margin-top:24px;font-size:14px;text-align:center;font-variant-numeric:tabular-nums}.patch-cost-table caption{text-align:left;font-size:15px;font-weight:700;margin-bottom:10px}.patch-cost-table th,.patch-cost-table td{border-bottom:1px solid var(--line);padding:9px 6px}.patch-cost-table thead{background:var(--theme-tint-forest,#f1f5ec);color:var(--theme-ink,#42604d)}.patch-cost-table tbody th{font-weight:600}.patch-cost-table td:last-child{color:var(--theme-forest,#2d795d);font-weight:700}
.patch-return{margin:24px 0 0}.patch-return a{display:flex;align-items:center;justify-content:center;gap:14px;min-height:48px;border:1px solid var(--theme-line,#d9e5d7);border-radius:10px;background:var(--theme-tint-forest,#edf3e9);color:var(--theme-forest,#326c4f);text-decoration:none;padding:10px 16px;font-weight:700;font-size:14px}
#ver-0-7-0 .patch-relic-rank{margin:24px 0 12px;color:var(--theme-forest,#326c4f);font-size:15px}
#ver-0-7-0 .patch-relic-table{margin-bottom:16px}
#ver-0-7-0 .patch-relic-table th:first-child{width:29%}
@media(max-width:600px){.patch-root{width:calc(100% - 28px);font-size:14px}.patch-root .topbar{min-height:64px;height:auto;flex-wrap:wrap;padding:8px 0;gap:4px 12px}.patch-root .brand{min-height:44px;font-size:11px}.patch-back{font-size:12px}.patch-hero{padding:28px 0 22px}.patch-release{padding:20px 16px}.patch-release-meta{gap:8px 12px}.patch-version{font-size:18px}.patch-section h3{gap:8px}.patch-balance-list li{grid-template-columns:minmax(0,1fr);gap:2px;padding:10px 0}.patch-cost-table{font-size:14px}.patch-section-links a{padding:7px 9px;gap:8px}}
@media all{
  html[data-theme="dark"] .patch-page{background:#151d19;color:#e8eee9}
  html[data-theme="dark"] .patch-root{--ink:#e8eee9;--paper:#202925;--line:#405047;--patch-buff:#86dfad;--patch-nerf:#ffa2a8;color:var(--ink)}
  html[data-theme="dark"] .patch-root .topbar{border-color:var(--line)}
  html[data-theme="dark"] .patch-root .patch-back,html[data-theme="dark"] .patch-root .patch-intro,html[data-theme="dark"] .patch-root .patch-release-meta,html[data-theme="dark"] .patch-root .patch-release-header p,html[data-theme="dark"] .patch-root .patch-caption,html[data-theme="dark"] .patch-root .eyebrow{color:#b9c7be}
  html[data-theme="dark"] .patch-root .patch-subtitle,html[data-theme="dark"] .patch-root .patch-version,html[data-theme="dark"] .patch-root .patch-release-summary::after,html[data-theme="dark"] .patch-root .patch-cost-table td:last-child,html[data-theme="dark"] .patch-root .patch-balance-list b,html[data-theme="dark"] .patch-root .patch-relic-rank{color:#86dfad}
  html[data-theme="dark"] .patch-root #ver-0-7-0 .patch-relic-rank,html[data-theme="dark"] .patch-root .patch-list a{color:#86dfad}
  html[data-theme="dark"] .patch-root .patch-latest,html[data-theme="dark"] .patch-root .patch-badge,html[data-theme="dark"] .patch-root .patch-section-links a,html[data-theme="dark"] .patch-root .patch-return a{color:#d2ebdc;background:#2b3c32;border-color:var(--line)}
  html[data-theme="dark"] .patch-root .patch-cost-table thead{color:#d2ebdc;background:#2b3c32}
  html[data-theme="dark"] .patch-root .patch-balance-list li{border-color:var(--line)}
}
