/* BUSSID Atelier — local, responsive design system. */
:root {
 color-scheme: light;
 --primary: #245be5; --primary-hover: #1748c4; --primary-soft: #edf2ff;
 --background: #f6f7fa; --surface: #fff; --surface-soft: #f0f2f6; --glass: rgb(255 255 255 / .87);
 --text: #192236; --muted: #687184; --subtle: #858d9b; --border: #e7eaf0; --strong-border: #cdd3de;
 --danger: #b53241; --success: #16805b; --shadow: 0 4px 24px rgb(26 40 71 / .035); --shadow-hover: 0 12px 32px rgb(26 40 71 / .09);
 --radius-sm: 10px; --radius: 18px; --radius-lg: 26px; --radius-xl: 32px;
 --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
 --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
 --text-xs: .72rem; --text-sm: .82rem; --text-md: .94rem; --text-lg: 1.125rem;
 --duration: 180ms; --nav-height: 74px; --header-height: 82px; --page-width: 1320px;
 /* Responsive boundaries: compact 480px, tablet 768px, desktop 1100px, wide 1500px. */
 --breakpoint-tablet: 768px; --breakpoint-desktop: 1100px;
}
:root[data-theme="dark"] {
 color-scheme: dark;
 --primary: #91afff; --primary-hover: #b7caff; --primary-soft: #243352;
 --background: #10151e; --surface: #1a212d; --surface-soft: #222b39; --glass: rgb(26 33 45 / .9);
 --text: #edf1f8; --muted: #a5afbf; --subtle: #8f9aac; --border: #2c3646; --strong-border: #46526a;
 --danger: #ff9fa7; --success: #76d9b7; --shadow: 0 4px 24px rgb(0 0 0 / .1); --shadow-hover: 0 12px 32px rgb(0 0 0 / .2);
}
@media (prefers-color-scheme: dark) {
 :root:not([data-theme="light"]):not([data-theme="dark"]) { color-scheme: dark; --primary: #91afff; --primary-hover: #b7caff; --primary-soft: #243352; --background: #10151e; --surface: #1a212d; --surface-soft: #222b39; --glass: rgb(26 33 45 / .9); --text: #edf1f8; --muted: #a5afbf; --subtle: #8f9aac; --border: #2c3646; --strong-border: #46526a; }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-height) + 24px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--background); color: var(--text); font: 400 15px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a { color: var(--primary); text-decoration: none; text-underline-offset: 4px; }
a:hover { color: var(--primary-hover); }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
button, select { color: inherit; }
img { max-width: 100%; height: auto; vertical-align: middle; }
svg { display: inline-block; width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
svg.icon { width: 20px; height: 20px; }
figure { margin: 0; }
h1, h2, h3, h4, p { margin: 0 0 1em; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.035em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.5vw, 3.7rem); }
h2 { font-size: clamp(1.35rem, 2vw, 1.75rem); }
h3 { font-size: 1.12rem; }
::selection { background: var(--primary); color: var(--surface); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; }
[hidden] { display: none !important; }
.screen-reader-text, .sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 200; top: 12px; left: 12px; width: auto; height: auto; margin: 0; clip: auto; padding: 12px 20px; background: var(--surface); color: var(--primary); border-radius: 10px; }
.site-shell { width: min(var(--page-width), calc(100% - 64px)); margin-inline: auto; }
.site-main { min-height: 60vh; padding-block: 32px 64px; }
.site-main > :last-child { margin-bottom: 0; }
.site-header { position: sticky; z-index: 40; top: 0; background: var(--glass); border-bottom: 1px solid var(--border); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.admin-bar .site-header { top: 32px; }
.header-inner { min-height: var(--header-height); display: flex; align-items: center; gap: 32px; }
.brand, .site-brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; max-width: 330px; color: var(--text); font-size: 1.28rem; font-weight: 780; line-height: 1.1; letter-spacing: -.06em; }
.brand-link { display: flex; align-items: center; min-width: 0; gap: 11px; color: inherit; }
.brand-link > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-link:hover { color: inherit; }
.brand-mark { flex-shrink: 0; }
.brand:hover, .site-brand:hover { color: var(--text); }
.brand-mark, .brand-icon { display: grid; place-items: center; background: #245be5; color: #fff; border-radius: 13px; width: 43px; height: 43px; }
.brand-mark svg, .brand-icon svg { width: 25px; height: 25px; }
.brand-text { display: flex; flex-direction: column; gap: 4px; }
.brand small, .brand-tagline { display: block; font-size: .58rem; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.custom-logo { width: auto; max-width: 190px; max-height: 48px; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; gap: 6px; padding: 0; margin: 0; list-style: none; }
.primary-nav a { display: block; padding: 10px 13px; border-radius: 10px; font-size: var(--text-sm); font-weight: 600; color: var(--muted); }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav a[aria-current="page"] { color: var(--primary); background: var(--primary-soft); }
.primary-nav li { position: relative; }
.primary-nav ul.sub-menu { display: none; position: absolute; top: 100%; left: 0; width: 210px; background: var(--surface); border: 1px solid var(--border); padding: 8px; box-shadow: var(--shadow-hover); border-radius: 12px; }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { display: block; }
.primary-nav ul.sub-menu ul { left: 100%; top: 0; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.mobile-menu { display: none; }
.mobile-menu > summary { list-style: none; cursor: pointer; }
.mobile-menu > summary::-webkit-details-marker { display: none; }
.mobile-menu-panel { position: absolute; top: calc(100% + 8px); inset-inline-end: 24px; width: min(330px, calc(100vw - 36px)); max-height: calc(100dvh - 180px); overflow-y: auto; padding: 12px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-hover); }
.mobile-menu-panel ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu-panel ul ul { padding-inline-start: 14px; border-inline-start: 1px solid var(--border); margin-inline-start: 12px; }
.mobile-menu-panel a { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; color: var(--text); border-radius: 10px; font-size: .9rem; }
.mobile-menu-panel a:hover, .mobile-menu-panel .current-menu-item > a { background: var(--primary-soft); color: var(--primary); }
.icon-button { display: inline-grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; padding: 0; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 50%; transition: background var(--duration), transform var(--duration); }
.icon-button:hover { background: var(--primary-soft); color: var(--primary); }
.icon-button:active, .button:active { transform: scale(.97); }
.appearance-select { width: auto; max-width: 120px; min-height: 44px; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 8px 28px 8px 13px; font-size: var(--text-sm); }
.button, .wp-block-button__link, input[type="submit"], button[type="submit"] { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 20px; border: 1px solid transparent; border-radius: 13px; font-weight: 650; font-size: .88rem; line-height: 1.4; text-align: center; text-decoration: none; transition: background var(--duration), transform var(--duration), box-shadow var(--duration); }
.button-primary, .wp-block-button__link, input[type="submit"], button[type="submit"] { background: #245be5; color: #fff; }
.button-primary:hover, .wp-block-button__link:hover, input[type="submit"]:hover, button[type="submit"]:hover { color: #fff; background: #1748c4; box-shadow: 0 6px 16px rgb(36 91 229 / .17); }
.button-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.button-secondary:hover { background: var(--surface-soft); color: var(--text); border-color: var(--strong-border); }
.button-small { min-height: 42px; padding: 9px 14px; font-size: .8rem; }
.button-wide { width: 100%; }
.muted { color: var(--muted); }
.eyebrow { color: var(--primary); font-size: .66rem; font-weight: 750; text-transform: uppercase; letter-spacing: .16em; margin-bottom: 9px; }
.section { margin-bottom: 46px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 21px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading p:not(.eyebrow) { color: var(--muted); margin: 5px 0 0; font-size: var(--text-sm); }
.section-link, .text-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; flex-shrink: 0; font-size: .78rem; font-weight: 650; }
.section-link svg { width: 16px; height: 16px; }
.discovery-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.discovery-heading h1 { font-size: clamp(1.85rem, 3.3vw, 2.8rem); margin-bottom: 10px; }
.discovery-heading p:last-child { margin: 0; }
.discovery-heading > .button { flex-shrink: 0; }
.hero-category { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; font-size: .73rem; font-weight: 650; }
.hero { display: grid; grid-template-columns: .9fr 1.1fr; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; min-height: 380px; margin-bottom: 40px; box-shadow: var(--shadow); }
.hero-copy { padding: clamp(28px, 4vw, 58px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.hero-copy .eyebrow { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 20px; }
.hero-copy .eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.hero-copy h1, .hero-copy h2 { font-size: clamp(2rem, 3.55vw, 3.3rem); line-height: 1.06; margin-bottom: 18px; max-width: 15ch; letter-spacing: -.055em; }
.hero-copy h1 a, .hero-copy h2 a { color: inherit; }
.hero-copy > p:not(.eyebrow) { color: var(--muted); font-size: var(--text-md); line-height: 1.7; max-width: 39ch; margin-bottom: 24px; }
.hero-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; font-size: .78rem; color: var(--muted); }
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero-media { position: relative; min-height: 300px; overflow: hidden; background: var(--surface-soft); }
.hero-media > a { display: block; height: 100%; }
.hero-media img { display: block; width: 100%; height: 100%; min-height: 100%; object-fit: cover; }
.hero-media .image-placeholder { min-height: 100%; }
.hero-badge { position: absolute; bottom: 24px; left: 24px; color: #fff; background: rgb(20 30 47 / .72); backdrop-filter: blur(8px); border: 1px solid rgb(255 255 255 / .16); border-radius: 25px; padding: 8px 14px; font-size: .73rem; font-weight: 600; }
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.mod-card { position: relative; min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: box-shadow var(--duration), transform var(--duration), border-color var(--duration); }
.mod-card:hover { box-shadow: var(--shadow-hover); border-color: var(--strong-border); transform: translateY(-3px); }
.mod-card-media { position: relative; display: block; aspect-ratio: 1.53; overflow: hidden; background: var(--surface-soft); }
.mod-card-media > a { display: block; height: 100%; }
.mod-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms; }
.mod-card:hover .mod-card-media img { transform: scale(1.035); }
.favorite-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; border: 1px solid var(--border); border-radius: 12px; color: var(--text); background: var(--surface); }
.mod-card .favorite-button { position: absolute; z-index: 2; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; border-color: rgb(255 255 255 / .4); background: var(--glass); backdrop-filter: blur(8px); }
.favorite-button svg { width: 19px; height: 19px; }
.favorite-button[aria-pressed="true"] { color: var(--primary); background: var(--primary-soft); }
.favorite-button[aria-pressed="true"] svg { fill: currentColor; }
.favorite-button:hover { color: var(--primary); }
.mod-card-body { padding: 17px 17px 16px; }
.mod-card-category { display: block; width: fit-content; color: var(--primary); font-size: .62rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 7px; }
.mod-card-title { font-size: .97rem; line-height: 1.4; letter-spacing: -.018em; margin: 0 0 10px; }
.mod-card-title a { color: var(--text); }
.mod-card-title a:hover { color: var(--primary); }
.mod-card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 12px; font-size: .69rem; color: var(--muted); }
.mod-card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.mod-card-meta svg { width: 13px; height: 13px; }
.mod-card-author { margin: 9px 0 0; color: var(--muted); font-size: .7rem; }
.mod-card-stats { display: flex; flex-wrap: wrap; gap: 5px 12px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); color: var(--muted); font-size: .69rem; }
.mod-card-views, .mod-card-downloads { display: inline-flex; align-items: center; gap: 5px; min-width: 0; max-width: 100%; }
.mod-card-stats svg { width: 14px; height: 14px; }
.mod-card-stats span > span { min-width: 0; overflow-wrap: anywhere; }
.mod-card-footer { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid var(--border); margin-top: 12px; padding-top: 10px; font-size: .67rem; color: var(--muted); }
.image-placeholder { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; width: 100%; height: 100%; min-height: 130px; color: var(--text); background: var(--surface-soft); font-size: .72rem; }
.image-placeholder svg { width: 38px; height: 38px; stroke-width: 1.2; }
.horizontal-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 66px) / 4); gap: 22px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 2px; padding: 3px 2px 16px; margin: -3px -2px -16px; scrollbar-width: thin; scrollbar-color: var(--strong-border) transparent; }
.horizontal-scroll > * { scroll-snap-align: start; }
.term-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 13px; }
.term-card { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 88px; padding: 17px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; color: var(--text); transition: border-color var(--duration), background var(--duration); }
.term-card:hover { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.term-card > svg, .term-icon { display: inline-grid; place-items: center; flex-shrink: 0; width: 38px; height: 38px; border-radius: 11px; background: var(--surface-soft); color: var(--muted); padding: 9px; }
.term-card > svg:last-child { width: 14px; height: 14px; padding: 0; margin-inline-start: auto; background: transparent; }
.term-card > span:not(.term-icon) { min-width: 0; }
.term-card strong, .term-card .term-name { display: block; font-weight: 650; font-size: .81rem; letter-spacing: -.01em; line-height: 1.4; }
.term-card small, .term-count { display: block; margin-top: 3px; color: var(--muted); font-size: .67rem; }
.color-list { display: flex; flex-wrap: wrap; gap: 12px; }
.color-chip { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 17px 8px 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 28px; font-size: .78rem; font-weight: 600; color: var(--text); transition: border-color var(--duration); }
.color-chip:hover { border-color: var(--primary); color: var(--primary); }
.color-swatch { width: 27px; height: 27px; flex-shrink: 0; background: var(--swatch-color, var(--surface-soft)); border: 1px solid rgb(127 127 127 / .25); border-radius: 50%; box-shadow: inset 0 0 0 3px var(--surface); }
.color-swatch-unset { background: repeating-linear-gradient(135deg, var(--surface-soft), var(--surface-soft) 4px, var(--border) 4px, var(--border) 8px); }
.comments-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.comment-card { padding: 24px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); }
.comment-card p { font-size: .82rem; line-height: 1.7; margin-bottom: 16px; }
.comment-card-header, .comment-card-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.comment-avatar { display: grid; place-items: center; width: 35px; height: 35px; background: var(--primary-soft); color: var(--primary); border-radius: 50%; font-size: .8rem; font-weight: 700; }
.comment-card strong { font-size: .8rem; }
.comment-card time { display: block; font-size: .67rem; color: var(--muted); }
.comment-card > a { display: inline-block; font-size: .74rem; font-weight: 600; }
.site-footer { padding-block: 32px; border-top: 1px solid var(--border); background: var(--surface); font-size: .75rem; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.site-footer p { margin: 0; }
.footer-links, .footer-nav ul, .footer-menu { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin: 0; padding: 0; list-style: none; }
.footer-brand { display: inline-block; margin-bottom: 5px; color: var(--text) !important; font-weight: 700; font-size: 1rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--primary); }
.bottom-nav { display: none; }
.breadcrumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 25px; color: var(--muted); font-size: .72rem; }
.breadcrumbs ol { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.breadcrumbs li { display: inline-flex; gap: 8px; align-items: center; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs svg { width: 12px; height: 12px; }
.page-heading { margin-bottom: 30px; max-width: 840px; }
.page-heading h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 12px; }
.page-heading > p, .archive-description { color: var(--muted); max-width: 720px; }
.post-byline { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 18px; color: var(--muted); font-size: .77rem; }
.post-byline > span { display: inline-flex; align-items: center; gap: 5px; }
.post-byline svg { width: 15px; height: 15px; }
.archive-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; margin-bottom: 14px; border-top: 1px solid var(--border); }
.archive-toolbar p { margin: 0; font-size: .81rem; color: var(--muted); }
.sort-form { display: flex; align-items: center; gap: 10px; }
.sort-form label { font-size: .75rem; color: var(--muted); }
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]), select, textarea { min-height: 46px; max-width: 100%; padding: 11px 13px; border: 1px solid var(--strong-border); border-radius: 11px; background: var(--surface); color: var(--text); }
textarea { width: 100%; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--subtle); }
.sort-form select { min-height: 42px; padding-block: 8px; font-size: .78rem; }
.sort-form .button { min-height: 42px; }
.pagination { margin-top: 34px; }
.pagination .nav-links, .pagination ul.page-numbers { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
a.page-numbers, span.page-numbers { display: inline-flex; justify-content: center; align-items: center; min-width: 44px; height: 44px; padding: 0 13px; border: 1px solid var(--border); border-radius: 12px; color: var(--text); background: var(--surface); font-size: .8rem; font-weight: 600; }
.page-numbers.current { background: #245be5; color: #fff; border-color: #245be5; }
.page-numbers:hover:not(.current) { border-color: var(--primary); }
.page-numbers.dots { border: 0; background: transparent; }
.empty-state { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 13px; min-height: 260px; text-align: center; padding: 42px 24px; background: var(--surface); border: 1px dashed var(--strong-border); border-radius: var(--radius-lg); }
.empty-state > svg { width: 40px; height: 40px; color: var(--primary); stroke-width: 1.4; }
.empty-state h2, .empty-state h3, .empty-state p { margin: 0; }
.empty-state p { color: var(--muted); max-width: 48ch; font-size: .88rem; }
.empty-state .button { margin-top: 10px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 335px; gap: 32px; align-items: start; }
.detail-main, .detail-sidebar { min-width: 0; }
.detail-sidebar { position: sticky; top: calc(var(--header-height) + 24px); }
.mod-summary, .download-card { padding: 26px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.mod-summary h2 { font-size: 1.25rem; margin-bottom: 16px; }
.mod-summary .button-primary { width: 100%; margin-top: 20px; }
.mod-summary > p { font-size: .79rem; color: var(--muted); }
.mod-summary-actions, .detail-actions, .post-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.summary-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; margin-top: 14px; font-size: .8rem; font-weight: 600; }
.mod-summary-actions > *, .detail-actions > * { flex: 1; }
.meta-list { margin: 0; font-size: .8rem; }
.meta-list > div { display: flex; justify-content: space-between; gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--border); }
.meta-list > div:last-child { border-bottom: 0; }
.meta-list dt { color: var(--muted); }
.meta-list dd { margin: 0; font-weight: 600; text-align: right; max-width: 65%; }
.meta-list dd a { display: inline; }
.download-total { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; }
.download-total svg { width: 15px; height: 15px; }
.download-total > span { min-width: 0; overflow-wrap: anywhere; }
.detail-image, .post-thumbnail, .detail-cover { overflow: hidden; border-radius: var(--radius-lg); background: var(--surface-soft); margin-bottom: 28px; }
.detail-image img, .post-thumbnail img, .detail-cover img { display: block; width: 100%; height: auto; }
.detail-cover > .image-placeholder { min-height: 250px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gallery-item { display: block; aspect-ratio: 1.5; border-radius: 14px; overflow: hidden; background: var(--surface-soft); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item.is-broken { display: grid; place-items: center; padding: 16px; text-align: center; font-size: .75rem; color: var(--muted); }
.entry-content { font-size: 1rem; line-height: 1.85; overflow-wrap: anywhere; }
.entry-content > * { max-width: 100%; }
.entry-content > * + * { margin-top: 1.4em; }
.entry-content h2 { margin-top: 2em; font-size: 1.6rem; }
.entry-content h3 { margin-top: 1.6em; font-size: 1.2rem; }
.entry-content a:not(.wp-block-button__link) { text-decoration: underline; }
.entry-content img { border-radius: 14px; }
.entry-content ul, .entry-content ol { padding-left: 24px; }
.entry-content blockquote, .wp-block-pullquote { margin-inline: 0; padding: 12px 24px; border-left: 3px solid var(--primary); background: var(--primary-soft); border-radius: 0 14px 14px 0; }
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content table { border-collapse: collapse; width: 100%; font-size: .86rem; }
.entry-content td, .entry-content th { border: 1px solid var(--border); padding: 10px 13px; text-align: left; }
.entry-content th { background: var(--surface-soft); }
.wp-block-table, .entry-content pre { overflow-x: auto; }
.entry-content pre { padding: 20px; border-radius: 14px; background: var(--surface-soft); font-size: .8rem; }
.entry-content iframe, .entry-content video { max-width: 100%; }
.entry-content .wp-block-embed__wrapper { overflow: hidden; }
.entry-content .wp-has-aspect-ratio iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; }
.entry-content .alignleft { float: left; margin: 0 22px 16px 0; }
.entry-content .alignright { float: right; margin: 0 0 16px 22px; }
.entry-content .aligncenter { margin-inline: auto; display: block; }
.entry-content::after { content: ""; display: block; clear: both; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .entry-content figcaption { color: var(--muted); font-size: .75rem; text-align: center; padding-top: 9px; }
.wp-block-separator { border: 0; border-top: 1px solid var(--border); margin-block: 32px; }
.wp-block-gallery { gap: 12px; }
.download-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; align-items: start; gap: 26px; width: min(1100px, 100%); margin-inline: auto; }
.download-summary { display: flex; flex-direction: column; gap: 18px; padding: 22px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); margin-bottom: 26px; }
.download-thumbnail { overflow: hidden; border-radius: 16px; background: var(--surface-soft); }
.download-thumbnail img, .download-thumbnail .image-placeholder { display: block; width: 100%; height: auto; min-height: 0; }
.download-summary .download-thumbnail img, .download-summary .image-placeholder { aspect-ratio: 1.5; object-fit: cover; }
.download-summary .download-thumbnail .image-placeholder { display: flex; min-height: 140px; }
.download-card { max-width: 780px; margin-inline: auto; }
.download-card .download-thumbnail { margin-bottom: 24px; }
.download-card .download-card-body > .button-primary, .download-submit > .button-primary { width: 100%; }
.download-card .download-thumbnail .image-placeholder { min-height: 260px; display: flex; }
.download-summary h1, .download-summary h2 { font-size: clamp(1.25rem, 3vw, 1.8rem); margin-bottom: 10px; }
.download-summary p { color: var(--muted); font-size: .83rem; margin-bottom: 0; }
.download-list { display: grid; gap: 13px; padding: 0; margin: 0; list-style: none; }
.download-option { display: flex; align-items: center; gap: 18px; min-height: 99px; padding: 20px 22px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); color: var(--text); }
a.download-option:hover { border-color: var(--primary); background: var(--primary-soft); color: var(--text); }
.download-option > svg, .download-option-icon { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); flex-shrink: 0; }
.download-option > svg { padding: 12px; }
.download-option-copy, .download-option-info, .download-option-details { flex: 1; min-width: 0; }
.download-option-details > .muted { display: block; font-size: .76rem; }
.download-option-action { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; color: var(--primary); }
.download-option h2, .download-option h3, .download-option strong { display: block; margin-bottom: 5px; font-size: .94rem; }
.download-option p, .download-option small { color: var(--muted); margin-bottom: 0; font-size: .76rem; }
.download-option > .button, .download-option > svg:last-child { margin-left: auto; }
.download-card .meta-list { margin-block: 22px; }
.download-card > .button-primary { width: 100%; }
.download-note { margin-top: 20px; color: var(--muted); font-size: .77rem; text-align: center; }
.download-steps { display: flex; gap: 8px; color: var(--muted); font-size: .73rem; margin-bottom: 24px; }
.download-steps .active { color: var(--primary); font-weight: 700; }
.sticky-download { display: none; }
.comments-area { margin-top: 48px; }
.comments-title { font-size: 1.4rem; }
.comment-list, .comment-list .children { padding: 0; list-style: none; }
.comment-list .children { padding-left: 28px; }
.comment-body { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px; margin-bottom: 14px; }
.comment-author { display: flex; gap: 10px; align-items: center; font-size: .85rem; }
.comment-author .avatar { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { color: var(--muted); font-size: .69rem; margin-block: 9px 14px; }
.comment-metadata a { color: var(--muted); }
.comment-content { font-size: .88rem; }
.comment-content p:last-child { margin-bottom: 0; }
.reply { font-size: .75rem; margin-top: 12px; }
.comment-respond { margin-top: 32px; }
.comment-reply-title { font-size: 1.35rem; }
.comment-reply-title small { margin-left: 12px; font-size: .7rem; font-weight: 400; }
.comment-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.comment-form p { margin: 0; }
.comment-form > :not(.comment-form-author):not(.comment-form-email) { grid-column: 1 / -1; }
.comment-form label { display: block; margin-bottom: 6px; font-size: .77rem; }
.comment-form input:not([type="checkbox"]):not([type="submit"]) { width: 100%; }
.comment-form-cookies-consent { display: flex; align-items: start; gap: 10px; }
.comment-form-cookies-consent label { margin-bottom: 0; }
.comment-notes, .logged-in-as { color: var(--muted); font-size: .78rem; }
.required { color: var(--danger); }
.post-navigation { margin-block: 32px; }
.post-navigation .nav-links { display: flex; justify-content: space-between; gap: 24px; font-size: .85rem; }
.post-navigation .nav-next { text-align: right; }
.search-form { display: flex; align-items: center; gap: 10px; width: 100%; }
.search-form label { flex: 1; min-width: 0; }
.search-field { flex: 1; min-width: 0; width: 100%; }
.search-form input { font-size: 1rem; }
dialog { color: var(--text); background: var(--surface); border: 1px solid var(--border); padding: 28px; border-radius: var(--radius-lg); width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 48px); box-shadow: 0 32px 100px rgb(0 0 0 / .22); overscroll-behavior: contain; }
dialog:not([open]) { display: none; }
dialog::backdrop { background: rgb(11 18 30 / .66); backdrop-filter: blur(4px); }
.dialog-header, .dialog-heading, .gallery-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.dialog-header h2, .dialog-heading h2 { margin: 0; font-size: 1.4rem; }
.dialog-header .icon-button, .dialog-heading .icon-button, .gallery-toolbar .icon-button { margin-left: auto; }
.dialog-open { overflow: hidden; }
#search-dialog > p { color: var(--muted); font-size: .82rem; margin: 16px 0 0; }
#gallery-dialog { width: min(1280px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 16px; background: #111720; color: #f4f6fb; border-color: #354052; }
#gallery-dialog .dialog-header, #gallery-dialog .gallery-toolbar { margin-bottom: 12px; }
#gallery-dialog .icon-button { background: #242e3e; border-color: #3b4659; color: #fff; }
.gallery-viewer, .gallery-stage { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 12px; align-items: center; justify-content: center; min-height: 180px; }
.gallery-prev { grid-column: 1; grid-row: 1; }
.gallery-next { grid-column: 3; grid-row: 1; }
[data-gallery-image] { display: block; grid-column: 2; grid-row: 1; max-height: calc(100dvh - 185px); width: auto; max-width: 100%; margin-inline: auto; object-fit: contain; border-radius: 10px; }
.gallery-controls { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 15px; }
[data-gallery-counter] { min-width: 55px; text-align: center; font-size: .8rem; font-variant-numeric: tabular-nums; }
[data-gallery-status] { text-align: center; color: #c1cad8; margin: 16px 0; font-size: .88rem; }
[data-gallery-status]:empty { display: none; }
.copy-helper { position: fixed; inset: 0 auto auto -9999px; width: 1px; height: 1px; opacity: 0; }
.toast { position: fixed; z-index: 150; left: 50%; bottom: 24px; transform: translate(-50%, 20px); width: max-content; max-width: calc(100% - 32px); padding: 13px 20px; border: 1px solid var(--strong-border); border-radius: 14px; background: var(--text); color: var(--surface); box-shadow: var(--shadow-hover); font-size: .8rem; opacity: 0; pointer-events: none; transition: opacity var(--duration), transform var(--duration); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
[data-favorites-status] { color: var(--muted); font-size: .88rem; }
[data-favorites-status] .button { margin-left: 12px; }
[data-favorites-list][aria-busy="true"] { opacity: .6; }
.no-js .js-only, .no-js [data-favorite-id], .no-js [data-share] { display: none; }
:root:not(.theme-ready) [data-favorite-id], :root:not(.theme-ready) [data-share], :root:not(.theme-ready) .appearance-control { display: none; }
[data-favorites-empty] > .button { margin-top: 18px; }
.error-code { font-size: clamp(4rem, 18vw, 9rem); font-weight: 800; letter-spacing: -.07em; line-height: 1; color: var(--primary); }
@media (min-width: 1500px) { :root { --page-width: 1440px; } .card-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 1199px) { .header-inner { gap: 20px; } .primary-nav a { padding-inline: 9px; } .term-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .card-grid { gap: 16px; } .horizontal-scroll { grid-auto-columns: calc((100% - 32px) / 3); gap: 16px; } .detail-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; } }
@media (max-width: 1023px) { :root { --header-height: 74px; } .primary-nav { display: none; } .mobile-menu { display: block; } .header-actions { margin-left: auto; } .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .hero { min-height: 340px; } .hero-copy { padding: 30px; } .hero-copy h1, .hero-copy h2 { font-size: 2.4rem; } .comments-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .detail-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 22px; } .mod-summary { padding: 20px; } }
@media (max-width: 767px) {
 :root { --header-height: 70px; }
 body { padding-bottom: calc(var(--nav-height) + 18px + env(safe-area-inset-bottom)); }
 .site-shell { width: calc(100% - 36px); }
 .site-main { padding-block: 22px 38px; }
 .header-inner { gap: 14px; }
 .brand { font-size: 1.15rem; gap: 9px; }
 .brand-mark, .brand-icon { width: 38px; height: 38px; border-radius: 11px; }
 .brand small, .brand-tagline { font-size: .53rem; }
 .header-actions { gap: 7px; }
 .header-actions .icon-button { width: 44px; height: 44px; }
 .appearance-select { max-width: 98px; min-height: 44px !important; padding: 8px 7px !important; font-size: .72rem; }
 .header-actions > .favorite-button, .desktop-favorites, .desktop-only { display: none; }
 .discovery-heading { display: block; margin-bottom: 23px; }
 .discovery-heading h1 { max-width: 16ch; }
 .discovery-heading p:last-child { font-size: .85rem; }
 .discovery-heading > .button { margin-top: 18px; min-height: 44px; padding: 10px 15px; font-size: .79rem; }
 .section { margin-bottom: 32px; }
 .section-heading { margin-bottom: 16px; gap: 10px; }
 .section-heading h2 { font-size: 1.35rem; }
 .section-heading p:not(.eyebrow) { font-size: .75rem; }
 .section-link { font-size: .72rem; gap: 4px; }
 .section-link svg { width: 14px; }
 .eyebrow { font-size: .59rem; }
 .hero { grid-template-columns: 1fr; border-radius: 24px; margin-bottom: 29px; min-height: 0; }
 .hero-copy { padding: 25px; }
 .hero-copy h1, .hero-copy h2 { font-size: clamp(1.9rem, 6.8vw, 2.6rem); max-width: 100%; margin-bottom: 12px; }
 .hero-copy .eyebrow { margin-bottom: 14px; }
 .hero-copy > p:not(.eyebrow) { font-size: .81rem; line-height: 1.65; margin-bottom: 17px; max-width: 100%; }
 .hero-copy .button { min-height: 44px; padding: 10px 15px; font-size: .79rem; }
 .hero-meta { margin-bottom: 16px; font-size: .71rem; }
 .hero-media { min-height: 0; height: auto; aspect-ratio: 1.85; }
 .hero-badge { bottom: 14px; left: 16px; padding: 6px 11px; font-size: .65rem; }
 .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
 .mod-card { border-radius: 15px; }
 .mod-card:hover { transform: none; }
 .mod-card-media { aspect-ratio: 1.35; }
 .mod-card .favorite-button { width: 44px; height: 44px; top: 5px; right: 5px; }
 .mod-card-body { padding: 12px; }
 .mod-card-category { font-size: .54rem; margin-bottom: 6px; }
 .mod-card-title { font-size: .83rem; line-height: 1.4; margin-bottom: 8px; }
 .mod-card-meta { font-size: .61rem; gap: 4px 9px; }
 .mod-card-meta svg { width: 12px; height: 12px; }
 .mod-card-footer { font-size: .6rem; }
 .horizontal-scroll { grid-auto-columns: minmax(190px, 43%); gap: 12px; margin-right: -18px; padding-right: 18px; }
 .horizontal-scroll .mod-card-media { aspect-ratio: 1.55; }
 .term-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
 .term-card { flex-direction: column; justify-content: center; text-align: center; min-height: 105px; padding: 13px 8px; gap: 8px; border-radius: 14px; }
 .term-card strong, .term-card .term-name { font-size: .74rem; }
 .term-card small, .term-count { font-size: .6rem; }
 .term-card > svg, .term-icon { width: 32px; height: 32px; padding: 7px; border-radius: 10px; }
 .term-card > svg:last-child { display: none; }
 .color-list { gap: 9px; }
 .color-chip { font-size: .72rem; padding-right: 13px; min-height: 45px; gap: 7px; }
 .color-swatch { width: 25px; height: 25px; }
 .comments-grid { grid-template-columns: 1fr; gap: 12px; }
 .comment-card { padding: 19px; border-radius: 17px; }
 .footer-inner { flex-direction: column; align-items: flex-start; gap: 17px; }
 .site-footer { padding-block: 25px; }
 .bottom-nav { display: flex; position: fixed; z-index: 50; bottom: calc(9px + env(safe-area-inset-bottom)); left: 14px; right: 14px; max-width: 520px; margin-inline: auto; height: var(--nav-height); padding: 7px; border-radius: 25px; border: 1px solid var(--border); background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 8px 35px rgb(25 39 65 / .12); transition: transform var(--duration), opacity var(--duration); }
 .bottom-nav-link { display: flex; align-items: center; justify-content: center; flex-direction: column; position: relative; flex: 1; min-width: 0; min-height: 44px; gap: 5px; padding: 6px 2px; background: transparent; border: 0; border-radius: 18px; color: var(--muted); font-size: .58rem; font-weight: 600; line-height: 1.1; }
 .bottom-nav-link svg { width: 21px; height: 21px; }
 .bottom-nav-link[aria-current="page"], .bottom-nav-link.is-active { background: var(--primary-soft); color: var(--primary); }
 .bottom-nav-link:hover { color: var(--primary); }
 .bottom-nav [data-favorites-count]:not(:empty) { position: absolute; top: 2px; right: calc(50% - 22px); min-width: 16px; height: 16px; padding: 2px 4px; background: #245be5; color: #fff; font-size: .5rem; border-radius: 20px; }
 .keyboard-open .bottom-nav, .keyboard-open .sticky-download { opacity: 0; visibility: hidden; transform: translateY(140%); }
 .page-heading { margin-bottom: 22px; }
 .page-heading h1 { font-size: 2rem; }
 .page-heading > p { font-size: .88rem; }
 .breadcrumbs { margin-bottom: 20px; font-size: .67rem; }
 .archive-toolbar { gap: 10px; align-items: start; flex-wrap: wrap; }
 .sort-form { gap: 7px; flex-wrap: wrap; }
 .sort-form label { font-size: .68rem; }
 .sort-form select { max-width: 155px; }
 .sort-form .button { padding-inline: 13px; font-size: .74rem; }
 .detail-layout { display: flex; flex-direction: column; gap: 28px; }
 .detail-main, .detail-sidebar { width: 100%; }
 .detail-sidebar { position: static; }
 .mod-summary { padding: 24px; border-radius: 22px; }
 .detail-image, .post-thumbnail, .detail-cover { border-radius: 20px; margin-bottom: 22px; }
 .gallery-grid { gap: 9px; }
 .gallery-item { border-radius: 11px; }
 .entry-content { font-size: .93rem; line-height: 1.85; }
 .entry-content h2 { font-size: 1.4rem; }
 .has-sticky-download { padding-bottom: calc(var(--nav-height) + 90px + env(safe-area-inset-bottom)); }
 .sticky-download { display: flex; justify-content: center; position: fixed; z-index: 45; bottom: calc(var(--nav-height) + 18px + env(safe-area-inset-bottom)); left: 18px; right: 18px; max-width: 510px; margin-inline: auto; transition: transform var(--duration), opacity var(--duration); }
 .sticky-download .button { width: 100%; box-shadow: 0 5px 18px rgb(20 50 120 / .2); }
 .download-layout { grid-template-columns: 1fr; width: 100%; gap: 22px; }
 .download-page > .page-heading h1 { font-size: clamp(1.55rem, 6vw, 2rem); }
 .download-card { padding: 20px; border-radius: 22px; }
 .download-card .download-thumbnail { margin-bottom: 18px; }
 .download-card .download-thumbnail img, .download-card .download-thumbnail .image-placeholder { aspect-ratio: 2; height: auto; min-height: 0; max-height: 220px; object-fit: cover; }
 .download-card .meta-list { margin-block: 16px; }
 .download-summary { gap: 15px; }
 .download-summary img, .download-summary .image-placeholder { width: 100%; height: auto; min-height: 0; border-radius: 12px; }
 .download-summary h1, .download-summary h2 { font-size: 1.22rem; margin-bottom: 6px; }
 .download-option { padding: 17px; gap: 13px; min-height: 92px; border-radius: 16px; }
 .download-option > .button { padding: 8px 12px; font-size: .73rem; }
 .download-option h2, .download-option h3, .download-option strong { font-size: .85rem; }
 .download-option p, .download-option small { font-size: .68rem; }
 .comment-form { grid-template-columns: 1fr; }
 .comment-form > * { grid-column: 1 / -1; }
 .comment-list .children { padding-left: 15px; }
 .comment-body { padding: 17px; }
 .toast { bottom: calc(var(--nav-height) + 25px + env(safe-area-inset-bottom)); }
 .has-sticky-download .toast { bottom: calc(var(--nav-height) + 90px + env(safe-area-inset-bottom)); }
 dialog { padding: 22px; }
 #gallery-dialog { width: calc(100% - 16px); padding: 12px; border-radius: 18px; }
 .gallery-stage { gap: 5px; }
 .search-form > svg { display: none; }
 .search-form .button { padding-inline: 14px; }
}
@media (max-width: 479px) { .header-actions .appearance-select { max-width: 82px; } .brand { font-size: 1.03rem; } .brand small { font-size: .47rem; } .header-inner { gap: 9px; } .header-actions { gap: 5px; } .hero-copy { padding: 22px; } .section-heading h2 { font-size: 1.22rem; } .download-option > .button { font-size: 0; width: 44px; padding: 10px; } .download-option > .button svg { font-size: initial; } .download-option > svg { width: 39px; height: 39px; padding: 10px; } }
@media (max-width: 359px) { .site-shell { width: calc(100% - 28px); } .horizontal-scroll { margin-right: -14px; padding-right: 14px; } .brand small { display: none; } .brand-mark, .brand-icon { width: 33px; height: 33px; } .header-actions .appearance-select { max-width: 69px; font-size: .65rem; } .card-grid { gap: 11px 9px; } .mod-card-body { padding: 10px; } .mod-card-title { font-size: .77rem; } .term-grid { gap: 7px; } .bottom-nav { left: 9px; right: 9px; } }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
@media (hover: none) { .mod-card:hover .mod-card-media img { transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
@media print { .site-header, .site-footer, .bottom-nav, .sticky-download, .favorite-button, .detail-actions, .comment-respond, dialog, .toast { display: none !important; } body { background: #fff; color: #000; padding: 0; } .site-shell { width: 100%; } .site-main { padding: 0; } .detail-layout { display: block; } .detail-sidebar { position: static; } .mod-card, .mod-summary { box-shadow: none; break-inside: avoid; } a { color: #000; } }
