#tf-wood-dim {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(14, 11, 6, 0.6);
	z-index: 1000;
	opacity: 0;
	transition: opacity 0.3s ease;
}
#tf-wood-dim.visible {
	display: block;
	opacity: 1;
}
#tf-wood-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: 380px;
	max-width: 100vw;
	background: #141009;
	z-index: 1001;
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	overflow: hidden;
}
#tf-wood-drawer.open { transform: translateX(0); }
.tfd-header {
	flex-shrink: 0;
	padding: 1.5rem;
	border-bottom: 0.5px solid rgba(250,246,238,0.08);
	position: relative;
}
.tfd-swatch {
	height: 100px;
	margin: -1.5rem -1.5rem 1.25rem;
	position: relative;
	overflow: hidden;
}
.tfd-swatch.ws-maple    { background: linear-gradient(135deg,#e8d8b4,#d4c094,#c9b17c); }
.tfd-swatch.ws-mahogany { background: linear-gradient(135deg,#8b4513,#6b3410,#5c2e0e); }
.tfd-swatch.ws-rosewood { background: linear-gradient(135deg,#4a1c08,#6b2c12,#3d1606); }
.tfd-swatch.ws-alder    { background: linear-gradient(135deg,#c4a882,#b09060,#9a7a4e); }
.tfd-swatch.ws-ash      { background: linear-gradient(135deg,#d4c8a8,#c0b090,#a89870); }
.tfd-swatch.ws-walnut   { background: linear-gradient(135deg,#3d2813,#5a3d20,#4a3218); }
.tfd-swatch.ws-ebony    { background: linear-gradient(135deg,#1a1209,#2a1f15,#0e0b06); }
.tfd-swatch.ws-spruce   { background: linear-gradient(135deg,#e8dfc8,#d4c8a0,#c0b080); }
.tfd-swatch.ws-koa      { background: linear-gradient(135deg,#8b5e2c,#a0723a,#7a4a12); }
.tfd-swatch::after {
	content: '';
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(168deg,transparent,transparent 8px,rgba(0,0,0,0.04) 8px,rgba(0,0,0,0.04) 9px);
}
.tfd-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	background: rgba(250,246,238,0.08);
	border: none;
	color: rgba(250,246,238,0.5);
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 0.75rem;
	transition: background 0.15s, color 0.15s;
	z-index: 2;
}
.tfd-close:hover { background: rgba(250,246,238,0.15); color: #faf6ee; }
.tfd-tags { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.tfd-tag {
	font-family: 'DM Mono', monospace;
	font-size: 0.58rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 0.2rem 0.5rem;
}
.tfd-tag-body { background: rgba(184,115,42,0.15); color: #e8c48a; }
.tfd-tag-neck { background: rgba(250,246,238,0.08); color: rgba(250,246,238,0.5); }
.tfd-tag-top  { background: rgba(45,74,42,0.25); color: #7ab870; }
.tfd-tag-fb   { background: rgba(139,94,44,0.2); color: #c49060; }
.tfd-tag-back { background: rgba(184,115,42,0.1); color: #c49060; }
.tfd-name {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 2rem;
	font-weight: 400;
	font-style: italic;
	color: #faf6ee;
	line-height: 1.05;
	margin-bottom: 3px;
	letter-spacing: -0.01em;
}
.tfd-latin {
	font-family: 'DM Mono', monospace;
	font-size: 0.65rem;
	color: rgba(250,246,238,0.3);
	font-style: italic;
	letter-spacing: 0.05em;
}
.tfd-body {
	flex: 1;
	overflow-y: auto;
	padding: 1.25rem 1.5rem;
	scrollbar-width: thin;
	scrollbar-color: rgba(184,115,42,0.3) transparent;
}
.tfd-body::-webkit-scrollbar { width: 3px; }
.tfd-body::-webkit-scrollbar-track { background: transparent; }
.tfd-body::-webkit-scrollbar-thumb { background: rgba(184,115,42,0.3); }
.tfd-specs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1px;
	background: rgba(250,246,238,0.06);
	margin-bottom: 1.5rem;
}
.tfd-spec { background: #141009; padding: 0.85rem 0.9rem; }
.tfd-spec-label {
	font-family: 'DM Mono', monospace;
	font-size: 0.58rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: rgba(250,246,238,0.3);
	margin-bottom: 0.3rem;
}
.tfd-spec-val {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 1.25rem;
	font-weight: 600;
	color: #faf6ee;
	line-height: 1;
}
.tfd-spec-sm { font-size: 0.92rem; font-weight: 400; font-family: 'Jost', sans-serif; }
.tfd-spec-unit { font-family: 'DM Mono', monospace; font-size: 0.6rem; color: rgba(250,246,238,0.35); margin-left: 3px; }
.tfd-janka-wrap { margin-bottom: 1.5rem; }
.tfd-janka-label {
	font-family: 'DM Mono', monospace;
	font-size: 0.6rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: rgba(250,246,238,0.3);
	display: flex;
	justify-content: space-between;
	margin-bottom: 0.5rem;
}
.tfd-janka-track { height: 4px; background: rgba(250,246,238,0.08); position: relative; }
.tfd-janka-fill { height: 100%; background: #b8732a; width: 0; transition: width 0.6s cubic-bezier(0.4,0,0.2,1); }
.tfd-janka-marker { position: absolute; top: -5px; width: 1px; height: 14px; background: rgba(250,246,238,0.12); }
.tfd-janka-ends {
	display: flex;
	justify-content: space-between;
	margin-top: 4px;
	font-family: 'DM Mono', monospace;
	font-size: 9px;
	color: rgba(250,246,238,0.2);
}
.tfd-section { margin-bottom: 1.5rem; }
.tfd-section-label {
	font-family: 'DM Mono', monospace;
	font-size: 0.6rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: rgba(250,246,238,0.3);
	margin-bottom: 0.6rem;
}
.tfd-desc {
	font-size: 0.85rem;
	color: rgba(250,246,238,0.55);
	line-height: 1.75;
	font-family: 'Jost', sans-serif;
	font-weight: 300;
}
.tfd-work { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.tfd-pill {
	font-family: 'DM Mono', monospace;
	font-size: 0.6rem;
	letter-spacing: 0.08em;
	padding: 0.25rem 0.6rem;
	border: 0.5px solid rgba(250,246,238,0.12);
	color: rgba(250,246,238,0.4);
}
.tfd-pill-good      { border-color: rgba(122,184,112,0.4); color: #7ab870; }
.tfd-pill-moderate  { border-color: rgba(232,196,138,0.35); color: #e8c48a; }
.tfd-pill-difficult { border-color: rgba(192,57,43,0.35); color: rgba(220,90,70,0.8); }
.tfd-footer {
	flex-shrink: 0;
	padding: 1.25rem 1.5rem;
	border-top: 0.5px solid rgba(250,246,238,0.08);
}
.tfd-wd-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.9rem 1rem;
	background: rgba(184,115,42,0.1);
	border: 0.5px solid rgba(184,115,42,0.3);
	text-decoration: none;
	transition: background 0.2s;
	gap: 1rem;
}
.tfd-wd-link:hover { background: rgba(184,115,42,0.2); }
.tfd-wd-title {
	font-family: 'DM Mono', monospace;
	font-size: 0.68rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #e8c48a;
	margin-bottom: 2px;
}
.tfd-wd-sub { font-size: 0.72rem; color: rgba(250,246,238,0.35); font-family: 'Jost', sans-serif; }
.tfd-wd-arrow { font-size: 1.1rem; color: #b8732a; flex-shrink: 0; }
.wood-card.active { border-color: #b8732a !important; border-width: 2px !important; }
@media ( max-width: 640px ) {
	#tf-wood-drawer { width: 100vw; }
}
