/*
Theme Name: Border Designs
Theme URI: https://borderdesigns.it.com/
Author: Border Designs
Description: Desk studio theme for borderdesigns.it.com: a graphite bar with a project file Index panel and a lime Border maker pill, coloured divider tabs over a ruler tick edge; a dotted grid paper hero where a taped A4 sheet redraws its own border live; page heads on graph paper with a taped portrait sheet; portrait sheet cards with tape strips, sticky note numbers, pen swatches, skill and time ruler chips and numbered drawing steps; a home index laid out like a project file index page; a violet footer under a ruler edge.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: borderdesigns
*/

@font-face { font-family: "Belanosima"; font-style: normal; font-weight: 600; font-display: swap; src: url(assets/fonts/belanosima-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Belanosima"; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/belanosima-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Inclusive Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/inclusive-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inclusive Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(assets/fonts/inclusive-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Inclusive Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/inclusive-sans-latin-700-normal.woff2) format("woff2"); }

:root {
	--ink: #1c1b22;
	--ink2: #2a2833;
	--text: #34323d;
	--mute: #6b6977;
	--violet: #6c4dff;
	--violet-d: #5236e0;
	--lime: #d4f55a;
	--coral: #ff6b57;
	--sky: #5ec8f2;
	--sun: #ffd23f;
	--bg: #f3f4f8;
	--grid: #e3e6ef;
	--line: #e4e4ec;
	--card: #ffffff;
	--r: 22px;
	--r-s: 14px;
	--shadow: 0 1px 2px rgba(28, 27, 34, .06), 0 10px 28px -12px rgba(28, 27, 34, .22);
	--shadow-l: 0 2px 4px rgba(28, 27, 34, .06), 0 24px 50px -20px rgba(28, 27, 34, .35);
	--disp: "Belanosima", "Trebuchet MS", system-ui, sans-serif;
	--body: "Inclusive Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--mk: #6c4dff;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet-d); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--disp); color: var(--ink); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-weight: 700; }
h2 { font-weight: 700; font-size: clamp(1.45rem, 3vw, 1.95rem); }
h3 { font-weight: 700; font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--lime); color: var(--ink); padding: 8px 14px; border-radius: 10px; z-index: 99; }
.skip:focus { left: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; border-radius: 6px; }

/* ------------------------------------------------------------- header */
.bv-hdr { position: sticky; top: 0; z-index: 50; background: var(--ink); color: #fff; }
.bv-bar { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.bv-brand { color: #fff; display: inline-flex; flex: none; }
.bv-logo { height: 38px; width: auto; }
.bv-bar-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.bv-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--lime); color: var(--ink); font-weight: 700; text-decoration: none; padding: 9px 16px; border-radius: 999px; font-size: .95rem; box-shadow: 0 0 0 3px rgba(212, 245, 90, .18); transition: transform .15s; }
.bv-pill:hover { color: var(--ink); transform: translateY(-1px); }
.bv-pill .ico, .bv-foot-tool .ico { width: 16px; height: 20px; border: 2px solid currentColor; border-radius: 3px; position: relative; }
.bv-pill .ico::after, .bv-foot-tool .ico::after { content: ""; position: absolute; inset: 2px; border: 1.5px dashed currentColor; border-radius: 1px; }
.bv-index { position: static; }
.bv-index summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--ink2); color: #fff; font-weight: 600; font-size: .95rem; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.bv-index summary::-webkit-details-marker { display: none; }
.bv-index .ico { display: grid; gap: 3px; }
.bv-index .ico i { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; }
.bv-index .ico i:nth-child(2) { width: 11px; }
.bv-index[open] summary { background: var(--violet); }
.bv-index-panel { position: absolute; left: 0; right: 0; top: 100%; padding: 14px 0 26px; background: rgba(28, 27, 34, .55); backdrop-filter: blur(4px); max-height: calc(100vh - 110px); overflow: auto; }
.bv-index-sheet { background: #fff; color: var(--text); border-radius: var(--r); padding: 22px 26px 22px 64px; box-shadow: var(--shadow-l); position: relative;
	background-image: linear-gradient(90deg, transparent 46px, #ff9c8f 46px, #ff9c8f 48px, transparent 48px), repeating-linear-gradient(transparent 0 31px, #e7ebf5 31px 32px); }
.bv-index-title { font-family: var(--disp); font-weight: 700; font-size: 1.6rem; color: var(--ink); margin: 0 0 12px; }
.bv-index-title span { font-family: var(--body); font-weight: 500; font-size: .95rem; color: var(--mute); margin-left: 8px; }
.bv-index-grid { columns: 4 230px; column-gap: 28px; }
.bv-index-grid .col { break-inside: avoid; margin-bottom: 14px; }
.bv-index-grid h3 { font-size: .95rem; margin: 0 0 4px; padding-left: 10px; border-left: 4px solid var(--mk); }
.bv-index-grid a { display: flex; gap: 8px; font-size: .92rem; line-height: 1.35; padding: 4px 0 4px 10px; color: var(--text); text-decoration: none; }
.bv-index-grid a:hover { color: var(--mk); }
.bv-index-grid em { font-style: normal; color: var(--mute); min-width: 1.6em; font-variant-numeric: tabular-nums; }
.bv-tabs { background: var(--ink); }
.bv-tabs .wrap { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-top: 2px; }
.bv-tabs .wrap::-webkit-scrollbar { display: none; }
.bv-tabs a { flex: none; position: relative; color: #fff; text-decoration: none; font-weight: 600; font-size: .92rem; padding: 7px 14px 8px; border-radius: 10px 10px 0 0; background: color-mix(in srgb, var(--mk) 26%, #2a2833); box-shadow: inset 0 3px 0 var(--mk); }
.bv-tabs a:hover { background: var(--mk); color: #fff; }
.bv-ruler { height: 12px; background-color: var(--sun); background-image: repeating-linear-gradient(90deg, rgba(28, 27, 34, .55) 0 1px, transparent 1px 10px), repeating-linear-gradient(90deg, rgba(28, 27, 34, .8) 0 1.5px, transparent 1.5px 50px); background-size: 100% 5px, 100% 9px; background-repeat: no-repeat; }

/* --------------------------------------------------------------- hero */
.bv-hero { position: relative; overflow: hidden; padding: 46px 0 56px; background: #fbfbfe; }
.bv-hero-grid { position: absolute; inset: 0; background-image: radial-gradient(#cdd2e2 1.2px, transparent 1.3px); background-size: 22px 22px; mask-image: linear-gradient(180deg, #000 60%, transparent); }
.bv-hero-in { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 44px; align-items: center; }
.bv-kicker { font-weight: 600; color: var(--mute); font-size: .95rem; }
.bv-kicker .hl { background: linear-gradient(transparent 55%, var(--lime) 55%); color: var(--ink); font-weight: 700; padding: 0 3px; }
.bv-hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.7rem); margin-bottom: .3em; }
.bv-hero .lead { font-size: 1.15rem; max-width: 34em; }
.bv-hero-go { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 18px; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--violet); color: #fff; font-weight: 700; text-decoration: none; padding: 13px 22px; border-radius: 14px; box-shadow: 0 10px 22px -10px var(--violet); }
.btn:hover { background: var(--violet-d); color: #fff; }
.btn.ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.bv-hero-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bv-hero-chips a { display: inline-block; font-size: .9rem; font-weight: 600; text-decoration: none; color: var(--ink); background: #fff; border-radius: 999px; padding: 6px 13px; box-shadow: 0 0 0 1px var(--line), 0 2px 6px -3px rgba(0, 0, 0, .15); }
.bv-hero-chips a:hover { box-shadow: 0 0 0 2px var(--violet); }
.bv-hero-art { position: relative; justify-self: center; width: min(100%, 380px); transform: rotate(-2deg); }
.bv-hero-art .tape { position: absolute; z-index: 3; width: 92px; height: 26px; background: rgba(212, 245, 90, .75); top: -10px; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.bv-hero-art .t1 { left: 18px; transform: rotate(-8deg); }
.bv-hero-art .t2 { right: 18px; transform: rotate(7deg); background: rgba(255, 107, 87, .55); }
.bv-hero-pen { position: absolute; right: -26px; bottom: 40px; width: 16px; height: 170px; border-radius: 8px 8px 4px 4px; background: linear-gradient(90deg, #5236e0, #8f7bff 45%, #5236e0); transform: rotate(18deg); box-shadow: 4px 8px 14px -4px rgba(0, 0, 0, .3); }
.bv-hero-pen::after { content: ""; position: absolute; left: 3px; bottom: -14px; border: 5px solid transparent; border-top: 14px solid var(--ink); }

/* -------------------------------------------------------- border maker */
.bv-maker { margin: 8px 0 34px; }
.bv-maker-full { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 26px; background: #fff; border-radius: var(--r); padding: 22px; box-shadow: var(--shadow-l); }
.bv-maker-stage { display: flex; flex-direction: column; align-items: center; gap: 8px; background-color: #eceef5; background-image: radial-gradient(#cfd4e3 1px, transparent 1.2px); background-size: 16px 16px; border-radius: var(--r-s); padding: 18px; }
.bv-maker-stage .sheet { width: 100%; display: flex; justify-content: center; }
.bv-maker-canvas { display: block; max-width: 100%; height: auto; box-shadow: 0 2px 3px rgba(0, 0, 0, .08), 0 18px 30px -16px rgba(28, 27, 34, .45); border-radius: 2px; }
.bv-maker-size { margin: 0; font-size: .85rem; color: var(--mute); font-weight: 600; }
.bv-maker-ctl { display: flex; flex-direction: column; gap: 14px; }
.bv-maker fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.bv-maker legend { font-weight: 700; color: var(--ink); font-size: .92rem; margin-bottom: 6px; width: 100%; font-family: var(--disp); }
.bv-maker fieldset label { position: relative; cursor: pointer; }
.bv-maker fieldset input { position: absolute; opacity: 0; pointer-events: none; }
.bv-maker fieldset span { display: inline-block; font-size: .88rem; font-weight: 600; padding: 7px 12px; border-radius: 10px; background: #f1f1f7; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.bv-maker fieldset input:checked + span { background: var(--ink); color: #fff; box-shadow: inset 0 -3px 0 var(--lime); }
.bv-maker fieldset input:focus-visible + span { outline: 3px solid var(--violet); outline-offset: 2px; }
.bv-maker .ppr span { width: 34px; height: 34px; padding: 0; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.bv-maker .ppr input:checked + span { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--violet); background: var(--c); }
.bv-maker .cols, .bv-maker .rng { display: flex; flex-wrap: wrap; gap: 12px 18px; }
.bv-maker .cols label, .bv-maker .rng label { display: flex; flex-direction: column; gap: 4px; font-size: .88rem; font-weight: 600; color: var(--ink); flex: 1 1 140px; }
.bv-maker input[type=color] { width: 100%; height: 40px; border: 0; border-radius: 10px; padding: 3px; background: #f1f1f7; cursor: pointer; }
.bv-maker input[type=range] { accent-color: var(--violet); width: 100%; }
.bv-maker .toggles { display: flex; flex-direction: column; gap: 6px; font-size: .92rem; }
.bv-maker .toggles input { accent-color: var(--violet); width: 17px; height: 17px; vertical-align: -3px; margin-right: 6px; }
.bv-maker .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.bv-maker .b { border: 0; cursor: pointer; font: 700 .95rem var(--body); padding: 11px 16px; border-radius: 12px; background: #f1f1f7; color: var(--ink); text-decoration: none; display: inline-block; box-shadow: inset 0 0 0 1px var(--line); }
.bv-maker .b.save { background: var(--violet); color: #fff; box-shadow: none; }
.bv-maker .b.print { background: var(--ink); color: #fff; box-shadow: none; }
.bv-maker .b:hover { filter: brightness(1.08); }
.bv-maker-note { grid-column: 1 / -1; margin: 0; font-size: .88rem; color: var(--mute); }
.bv-maker-mini { background: #fff; border-radius: 6px; padding: 14px; box-shadow: var(--shadow-l); margin: 0; }
.bv-maker-mini .bv-maker-stage { background: none; padding: 0 0 10px; }
.bv-maker-mini .bv-maker-canvas { box-shadow: none; }
.bv-maker-mini .sty { justify-content: center; }
.bv-maker-mini legend { text-align: center; }
.bv-maker-mini fieldset span { padding: 5px 10px; font-size: .82rem; }
.bv-maker-mini .b.more { width: 100%; text-align: center; background: var(--ink); color: #fff; box-shadow: none; margin-top: 4px; }
.bv-print { display: none; }
@media print {
	body > *:not(.bv-print) { display: none !important; }
	.bv-print { display: block !important; }
	.bv-print img { display: block; }
}

/* ----------------------------------------------------------- home index */
.bv-home-flow { padding-top: 10px; }
.bv-idx { padding: 36px 0 64px; }
.bv-idx-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 6px 22px; margin-bottom: 12px; }
.bv-idx-head h2 { font-size: clamp(2rem, 5vw, 3rem); margin: 0; }
.bv-idx-head p { margin: 0; color: var(--mute); max-width: 36em; }
.bv-idx-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 8px 2px 0; scrollbar-width: thin; }
.bv-idx-tabs button { flex: none; cursor: pointer; border: 0; font: 600 .9rem var(--body); color: var(--ink); padding: 9px 15px 10px; border-radius: 12px 12px 0 0; background: color-mix(in srgb, var(--mk) 18%, #fff); box-shadow: inset 0 4px 0 var(--mk); }
.bv-idx-tabs button[data-tab="all"] { --mk: var(--ink); }
.bv-idx-tabs button.on { background: #fff; transform: translateY(1px); }
.bv-idx-sheet { background: #fff; border-radius: 0 var(--r) var(--r) var(--r); box-shadow: var(--shadow-l); padding: 12px 18px 18px 56px; position: relative;
	background-image: linear-gradient(90deg, transparent 40px, #ff9c8f 40px, #ff9c8f 42px, transparent 42px); }
.bv-idx-sheet .table-scroll { box-shadow: none; margin: 0; background: transparent; }
.bv-idx-table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.bv-idx-table th { text-align: left; font-family: var(--disp); color: var(--ink); font-size: .95rem; padding: 12px 10px; border-bottom: 2px solid var(--ink); }
.bv-idx-table td { padding: 9px 10px; border-bottom: 1px solid #e7ebf5; vertical-align: middle; }
.bv-idx-table td:first-child { color: var(--mute); width: 3.2em; font-variant-numeric: tabular-nums; }
.bv-idx-table td:last-child { text-align: right; font-weight: 700; color: var(--ink); width: 5em; font-variant-numeric: tabular-nums; }
.bv-idx-table th:last-child { text-align: right; }
.bv-idx-table a { color: var(--ink); font-weight: 600; text-decoration: none; }
.bv-idx-table a:hover { color: var(--mk); text-decoration: underline; }
.bv-idx-table tr.hub a { font-weight: 700; }
.bv-idx-table .tag { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; background: var(--lime); color: var(--ink); padding: 1px 7px; border-radius: 6px; margin-left: 6px; vertical-align: 2px; }
.bv-idx-table .dv { display: inline-block; font-size: .82rem; font-weight: 600; color: var(--ink); padding: 2px 9px; border-radius: 6px; background: color-mix(in srgb, var(--mk) 16%, #fff); border-left: 3px solid var(--mk); white-space: nowrap; }
.bv-idx-table tbody[hidden] { display: none; }

/* ------------------------------------------------------------ page head */
.bv-head { padding: 30px 0 34px; background-color: #fbfbfe; background-image: linear-gradient(#e8ebf4 1px, transparent 1px), linear-gradient(90deg, #e8ebf4 1px, transparent 1px); background-size: 24px 24px; border-bottom: 1px solid var(--line); }
.bv-head-in { display: grid; grid-template-columns: 1fr auto; gap: 36px; align-items: center; }
.bv-crumbs { font-size: .88rem; color: var(--mute); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; }
.bv-crumbs a { color: var(--mute); text-decoration: none; font-weight: 600; }
.bv-crumbs a:hover { color: var(--mk); }
.bv-kind { margin: 0 0 10px; font-size: .9rem; color: var(--mute); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bv-kind .tab { background: var(--mk); color: #fff; font-weight: 700; padding: 3px 11px; border-radius: 8px 8px 8px 2px; }
.bv-kind em { font-style: normal; font-weight: 600; color: var(--ink); }
.bv-head h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); max-width: 18em; }
.bv-head-desc { font-size: 1.08rem; max-width: 40em; }
.bv-head-facts { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.bv-head-facts li { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 12px; padding: 7px 13px; box-shadow: 0 0 0 1px var(--line); font-size: .88rem; }
.bv-head-facts b { font-family: var(--disp); font-size: 1.1rem; color: var(--mk); }
.bv-head-sheet { margin: 0; position: relative; width: 240px; transform: rotate(3deg); background: #fff; padding: 8px; border-radius: 4px; box-shadow: var(--shadow-l); }
.bv-head-sheet img { border-radius: 2px; aspect-ratio: 2 / 3; object-fit: cover; width: 100%; }
.bv-head-sheet .tape, .bv-card .tape, .bv-tile .tape { position: absolute; z-index: 2; top: -9px; left: 50%; width: 78px; height: 22px; transform: translateX(-50%) rotate(-3deg); background: color-mix(in srgb, var(--mk) 45%, rgba(255, 255, 255, .5)); opacity: .85; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }

/* --------------------------------------------------------- page content */
.bv-flow { padding: 30px 0 18px; }
.bv-flow > * { max-width: 100%; }
.bv-intro { font-size: 1.1rem; max-width: 46em; }
.bv-intro p:first-child::first-line { font-weight: 600; color: var(--ink); }
.bv-jump { position: sticky; top: 98px; z-index: 20; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 10px 2px; margin: 10px 0 18px; background: linear-gradient(var(--bg) 80%, rgba(243, 244, 248, 0)); }
.bv-jump::-webkit-scrollbar { display: none; }
.bv-jump a { flex: none; display: inline-flex; align-items: center; gap: 7px; font-size: .88rem; font-weight: 600; color: var(--ink); text-decoration: none; background: #fff; border-radius: 10px; padding: 6px 12px 6px 6px; box-shadow: 0 0 0 1px var(--line); max-width: 300px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bv-jump b { display: inline-grid; place-items: center; min-width: 26px; height: 26px; border-radius: 7px; background: var(--sun); color: var(--ink); font-size: .78rem; }
.bv-jump a.on { box-shadow: 0 0 0 2px var(--mk); }
.bv-jump a.on b { background: var(--mk); color: #fff; }
.bv-glance { background: #fff; border-radius: var(--r-s); box-shadow: 0 0 0 1px var(--line); margin: 0 0 26px; }
.bv-glance summary { cursor: pointer; padding: 12px 16px; font-weight: 700; color: var(--ink); }
.bv-glance .table-scroll { margin: 0 12px 12px; }
.bv-sec { margin: 0 0 40px; }
.bv-sec > h2 { display: flex; align-items: center; gap: 12px; }
.bv-sec .sn { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; background: var(--sun); color: var(--ink); font-size: 1rem; border-radius: 4px; transform: rotate(-4deg); box-shadow: 2px 3px 0 rgba(28, 27, 34, .14); }
.bv-sec > p { max-width: 46em; }
.bv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 22px; margin-top: 16px; align-items: start; }
.bv-grid.m3-1 > .bv-card:last-child { grid-column: 2; }
.bv-grid:has(> .bv-card:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; }
.bv-grid:has(> .bv-card:nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 16px; }
.bv-card { margin: 0; background: var(--card); border-radius: 6px; box-shadow: var(--shadow); position: relative; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.bv-card:hover { transform: translateY(-3px) rotate(-.4deg); box-shadow: var(--shadow-l); }
.bv-card .pic { position: relative; display: block; padding: 10px 10px 0; }
.bv-card img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 2px; background: #eceef5; }
.bv-card .no { position: absolute; left: 0; bottom: -14px; background: var(--mk); color: #fff; font: 700 .85rem var(--disp); padding: 6px 10px; border-radius: 3px; transform: rotate(-5deg); box-shadow: 2px 3px 0 rgba(28, 27, 34, .18); }
.bv-card figcaption { padding: 22px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.bv-card .st { margin: 0; font-family: var(--disp); font-weight: 700; font-size: 1.1rem; color: var(--ink); line-height: 1.25; }
.bv-card .tl { margin: 0; font-size: .9rem; color: var(--mute); display: flex; gap: 8px; align-items: center; }
.bv-card .sw { display: inline-flex; flex: none; }
.bv-card .sw i { width: 14px; height: 14px; border-radius: 50%; background: var(--sw); margin-right: -4px; box-shadow: 0 0 0 2px #fff, inset 0 0 0 1px rgba(0, 0, 0, .14); }
.bv-card .sw:empty { display: none; }
.bv-card .ticks { list-style: none; padding: 0; margin: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.bv-card .ticks li { font-size: .84rem; font-weight: 600; color: var(--ink); background: #fff7d1; border-radius: 6px; padding: 3px 9px 4px; background-image: repeating-linear-gradient(90deg, rgba(28, 27, 34, .28) 0 1px, transparent 1px 6px); background-size: 100% 4px; background-repeat: no-repeat; }
.bv-card .ticks span { color: var(--mute); font-weight: 500; margin-right: 4px; }
.bv-card .cap { margin: 0; font-size: .93rem; }
.bv-card .notes { background: #f6f6fb; border-radius: 10px; }
.bv-card .notes summary { cursor: pointer; padding: 8px 12px; font-weight: 700; font-size: .88rem; color: var(--ink); }
.bv-card .notes ol { margin: 0; padding: 0 14px 10px 32px; font-size: .9rem; }
.bv-card .notes li { margin: 3px 0; }
.bv-card .notes li::marker { color: var(--mk); font-weight: 700; }
.bv-card .look { align-self: flex-start; margin-top: auto; border: 0; cursor: pointer; font: 700 .86rem var(--body); color: var(--mk); background: none; padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; }
.bv-ad { margin: 0 0 34px; }
.bv-guide { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 26px 30px 18px 58px; margin: 0 0 24px; position: relative;
	background-image: linear-gradient(90deg, transparent 38px, #ffb3a8 38px, #ffb3a8 40px, transparent 40px); }
.bv-guide h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.bv-guide ol, .bv-guide ul { padding-left: 1.3em; }
.bv-guide li { margin: 5px 0; }
.bv-guide ol li::marker { font-weight: 700; color: var(--mk); }
.table-scroll { overflow-x: auto; margin: 0 0 1.3em; border-radius: var(--r-s); box-shadow: 0 0 0 1px var(--line); background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: .94rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--ink); color: #fff; font-weight: 700; font-family: var(--disp); }
tbody tr:nth-child(even) td { background: #fafafd; }
.bv-faq { margin: 10px 0 30px; }
.bv-faq details { background: #fff; border-radius: var(--r-s); box-shadow: 0 0 0 1px var(--line); margin-bottom: 10px; }
.bv-faq summary { list-style: none; cursor: pointer; padding: 14px 48px 14px 18px; position: relative; }
.bv-faq summary::-webkit-details-marker { display: none; }
.bv-faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--lime); color: var(--ink); font-weight: 700; }
.bv-faq details[open] summary::after { content: "\2212"; background: var(--mk); color: #fff; }
.bv-faq h3 { display: inline; font-size: 1.04rem; margin: 0; }
.bv-faq details > div { padding: 0 18px 8px; }

/* -------------------------------------------------------- related tiles */
.bv-next { margin: 8px 0 40px; }
.bv-sheets { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 22px 18px; margin-top: 14px; }
.bv-tile { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 4px; }
.bv-tile .ph { position: relative; display: block; background: #fff; padding: 7px; border-radius: 4px; box-shadow: var(--shadow); transition: transform .2s; }
.bv-tile:nth-child(odd) .ph { transform: rotate(-1.5deg); }
.bv-tile:nth-child(even) .ph { transform: rotate(1.2deg); }
.bv-tile:hover .ph { transform: rotate(0) translateY(-3px); box-shadow: var(--shadow-l); }
.bv-tile img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 2px; background: #eceef5; }
.bv-tile b { font-family: var(--disp); font-size: 1rem; line-height: 1.25; margin-top: 8px; }
.bv-tile small { color: var(--mute); font-size: .84rem; }
.bv-tile:hover b { color: var(--mk); }

/* ------------------------------------------------------------ plain pages */
.bv-plain { padding: 30px 0 46px; }
.bv-page { background: #fff; border-radius: var(--r); padding: 28px 34px; box-shadow: var(--shadow); max-width: 880px; }
.bv-page h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.bv-post-meta { color: var(--mute); }
.bv-post-img { border-radius: var(--r-s); margin: 10px 0 20px; }
.bv-post-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.bv-post-cards a { display: block; background: #fff; border-radius: var(--r-s); padding: 16px 20px; text-decoration: none; color: var(--text); box-shadow: 0 0 0 1px var(--line); border-left: 5px solid var(--violet); }
.bv-post-cards b { display: block; font-size: 1.1rem; color: var(--ink); font-family: var(--disp); }
.bv-post-cards small { color: var(--mute); display: block; margin: 2px 0 6px; }
.bv-pager { display: flex; gap: 12px; margin-top: 20px; }
.bv-post-body { max-width: 46em; }

/* --------------------------------------------------------------- viewer */
.bv-view { border: 0; padding: 0; width: min(1080px, 96vw); max-height: 94vh; border-radius: var(--r); background: #fff; box-shadow: var(--shadow-l); }
.bv-view::backdrop { background: rgba(28, 27, 34, .78); }
.bv-view .bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; background: var(--ink); color: #fff; font-weight: 600; }
.bv-view .close { border: 0; background: var(--lime); color: var(--ink); font: 700 .9rem var(--body); padding: 7px 14px; border-radius: 10px; cursor: pointer; }
.bv-view .body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; max-height: calc(94vh - 52px); }
.bv-view .stage { background: #eceef5; display: grid; place-items: center; padding: 16px; overflow: auto; }
.bv-view .stage img { max-height: calc(94vh - 90px); width: auto; box-shadow: var(--shadow-l); }
.bv-view .panel { padding: 18px 20px; overflow: auto; }
.bv-view .ttl { font-family: var(--disp); font-weight: 700; font-size: 1.3rem; color: var(--ink); }
.bv-view .spec, .bv-view .notes { padding-left: 1.1em; font-size: .94rem; }
.bv-view .spec { list-style: none; padding: 0; }
.bv-view .spec b { color: var(--mute); font-weight: 600; margin-right: 4px; }
.bv-view .act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.bv-view .act > * { border: 0; cursor: pointer; font: 700 .88rem var(--body); padding: 9px 12px; border-radius: 10px; background: #f1f1f7; color: var(--ink); text-decoration: none; }
.bv-view .act .dl { background: var(--violet); color: #fff; }

/* --------------------------------------------------------------- footer */
.bv-foot { background: #2e2470; color: #e4e0ff; margin-top: 30px; position: relative; }
.bv-foot-edge { height: 16px; background-color: var(--lime); background-image: repeating-linear-gradient(90deg, rgba(28, 27, 34, .6) 0 1px, transparent 1px 10px), repeating-linear-gradient(90deg, rgba(28, 27, 34, .85) 0 2px, transparent 2px 50px); background-size: 100% 6px, 100% 11px; background-repeat: no-repeat; }
.bv-foot-in { display: grid; grid-template-columns: 1.25fr 1fr .8fr; gap: 34px; padding: 40px 0 26px; }
.bv-foot .bv-logo { height: 40px; color: #fff; }
.bv-foot-brand p { margin: 14px 0 16px; font-size: .95rem; max-width: 30em; }
.bv-foot-tool { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); background: var(--lime); font-weight: 700; text-decoration: none; padding: 9px 15px; border-radius: 999px; }
.bv-foot-tool:hover { color: var(--ink); filter: brightness(1.05); }
.bv-foot .h { font-family: var(--disp); font-weight: 700; color: #fff; font-size: 1.05rem; margin-bottom: 10px; }
.bv-foot-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 14px; align-content: start; }
.bv-foot-groups .h { grid-column: 1 / -1; }
.bv-foot-groups a, .bv-foot-info a { color: #e4e0ff; text-decoration: none; font-size: .92rem; padding: 4px 0; display: flex; align-items: center; gap: 6px; }
.bv-foot-groups a::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--mk); flex: none; }
.bv-foot-groups small { color: #a89fe8; }
.bv-foot-info { display: flex; flex-direction: column; }
.bv-foot a:hover { color: var(--lime); }
.bv-foot-base { border-top: 1px solid rgba(255, 255, 255, .14); padding: 16px 0 26px; font-size: .86rem; color: #b9b2f0; }
.bv-foot-base p { margin: 0; }

/* --------------------------------------------------------------- mobile */
@media (max-width: 1000px) {
	.bv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bv-grid.m3-1 > .bv-card:last-child { grid-column: auto; }
	.bv-grid:has(> .bv-card:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bv-grid.m2-1 > .bv-card:last-child { grid-column: 1 / -1; max-width: calc(50% - 11px); justify-self: center; }
	.bv-maker-full { grid-template-columns: 1fr; }
	.bv-foot-in { grid-template-columns: 1fr 1fr; }
	.bv-foot-brand { grid-column: 1 / -1; }
	.bv-view .body { grid-template-columns: 1fr; overflow: auto; }
	.bv-view .stage img { max-height: 60vh; }
}
@media (max-width: 760px) {
	body { font-size: 16px; }
	.bv-bar { min-height: 56px; gap: 8px; }
	.bv-logo { height: 30px; }
	.bv-index .lbl { display: none; }
	.bv-index summary { padding: 9px 11px; }
	.bv-pill { padding: 8px 12px; font-size: .88rem; }
	.bv-index-sheet { padding: 18px 16px 16px 30px; background-image: linear-gradient(90deg, transparent 18px, #ff9c8f 18px, #ff9c8f 20px, transparent 20px), repeating-linear-gradient(transparent 0 31px, #e7ebf5 31px 32px); }
	.bv-hero { padding: 26px 0 40px; }
	.bv-hero-in { grid-template-columns: 1fr; gap: 30px; }
	.bv-hero-art { width: min(100%, 320px); }
	.bv-hero-pen { right: -8px; height: 130px; }
	.bv-head-in { grid-template-columns: 1fr; gap: 18px; }
	.bv-head-sheet { display: none; }
	.bv-head-facts li { font-size: .82rem; padding: 6px 10px; }
	.bv-jump { top: 94px; }
	.bv-grid, .bv-grid:has(> .bv-card:nth-child(2):last-child), .bv-grid:has(> .bv-card:nth-child(4):last-child) { grid-template-columns: 1fr; gap: 26px; }
	.bv-grid.m2-1 > .bv-card:last-child { max-width: none; }
	.bv-guide { padding: 20px 18px 12px 34px; background-image: linear-gradient(90deg, transparent 18px, #ffb3a8 18px, #ffb3a8 20px, transparent 20px); }
	.bv-idx-sheet { padding: 8px 8px 12px 24px; background-image: linear-gradient(90deg, transparent 14px, #ff9c8f 14px, #ff9c8f 16px, transparent 16px); }
	.bv-idx-table td:nth-child(3), .bv-idx-table th:nth-child(3) { display: none; }
	.bv-sheets { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
	.bv-maker-full { padding: 14px; }
	.bv-foot-in { grid-template-columns: 1fr; gap: 24px; }
	.bv-page { padding: 20px 18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
