/* InstruMentor — Components: hero, sections, callouts, cards, tables, generators */

/* HERO — now lives inside .main, outside .content */
.hero {
  text-align: center; padding: 3.5rem 2rem 3rem calc(300px + 2rem); margin: 0 0 1rem -300px;
  width: calc(100% + 300px);
  color: #fff;
  clip-path: none;
  border-bottom: none;
  position: relative; overflow: hidden;
  box-shadow: 0 8px 30px rgba(11,61,79,0.2);
}
.hero::after {
  content: ''; position: absolute; bottom: -40px; right: -40px;
  width: 220px; height: 220px; border-radius: 40% 60% 50% 50% / 60% 40% 60% 40%;
  background: rgba(212,175,55,0.06); z-index: 0;
}
.hero h1 {
  font-family: var(--font-accent); font-size: 3rem; font-weight: 400;
  margin-bottom: 0.5rem; letter-spacing: 0.02em; line-height: var(--lh-heading); text-transform: none;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.15), 0 0 20px rgba(212,175,55,0.15);
}
.hero .subtitle { font-size: 1.05rem; opacity: 0.85; margin-bottom: 0.75rem; font-weight: 400; color: rgba(212,175,55,0.8); }
.hero .meta { font-size: 0.85rem; opacity: 0.75; }
.hero .audience-tag {
  display: inline-block; margin-top: 1rem; padding: 0.35rem 1rem;
  background: rgba(255,255,255,0.1); border-radius: 25px;
  font-size: 0.82rem; font-family: var(--font-sans); letter-spacing: 0.2px;
  backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,0.15);
}
.hero .hero-dots {
  display: flex; justify-content: center; gap: 10px; margin-top: 1.25rem;
}
.hero .hero-dots span {
  width: 14px; height: 14px; border-radius: 50%; opacity: 0.9;
}
.hero .hero-dots span:nth-child(1) { width: 12px; height: 12px; }
.hero .hero-dots span:nth-child(3) { width: 16px; height: 16px; }
.hero .hero-dots span:nth-child(4) { width: 13px; height: 13px; }

/* HERO WAVE — organic bottom edge transition */
.hero-wave {
  display: block; width: calc(100% + 300px); margin-top: -2px; margin-left: -300px;
  position: relative; z-index: 2;
}
.hero-wave svg { display: block; width: 100%; height: auto; }

/* HERO TEXTURE — stained glass scattered fragments */
.hero-texture {
  position: relative; height: 40px; margin: -8px 0 0 -300px;
  width: calc(100% + 300px); overflow: hidden; z-index: 1;
}
.hero-texture svg { width: 100%; height: 100%; }

/* Sidebar-gap fill removed — hero extension handles it */

/* PHASE HEADERS — organic pill shapes */
.phase-header {
  margin: 3rem 0 1.5rem; padding: 1.1rem 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-mid));
  color: #fff; border-radius: 30px 60px 60px 30px;
  display: flex; align-items: center; gap: 0.75rem;
  position: relative; overflow: hidden;
  box-shadow: 0 4px 0 rgba(11,61,79,0.15), 0 2px 15px rgba(11,61,79,0.12);
  border-bottom: 3px solid var(--accent);
}
.phase-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: rgba(255,255,255,0.15); color: #fff;
  font-weight: 500; font-size: 1rem; font-family: var(--font-mono);
}
.phase-header h2 { font-family: var(--font-accent); font-size: 2rem; font-weight: 400; letter-spacing: 0.02em; line-height: var(--lh-heading); text-transform: none; text-shadow: 2px 2px 4px rgba(0,0,0,0.1); }
.phase-header .phase-desc { font-size: 0.82rem; opacity: 0.85; margin-top: 0.15rem; font-family: var(--font-sans); line-height: 1.5; }
.phase-header.ph-tools { background: linear-gradient(135deg, #4a2d6b, #6b4c9a); }

/* SECTIONS — organic shapes */
.section { margin-bottom: 1.75rem; scroll-margin-top: 4rem; }
.section-header {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  background: linear-gradient(90deg, rgba(118,215,196,0.15), transparent);
  border-left: 6px solid var(--primary-mid);
  border-radius: 50px 20px 20px 50px;
  cursor: pointer; user-select: none; transition: background 0.15s;
  box-shadow: 0 2px 0 rgba(11,61,79,0.04);
}
.section-header:hover { background: linear-gradient(90deg, rgba(118,215,196,0.25), rgba(118,215,196,0.05)); }
.section-header h3 {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
  color: var(--primary); flex: 1; letter-spacing: 0; line-height: var(--lh-subheading); text-transform: none;
}
.section-header .toggle-icon { font-size: 1.2rem; transition: transform 0.25s; color: var(--text-light); }
.section-header.open .toggle-icon { transform: rotate(90deg); }
.section-header:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.section-body { display: none; padding: 1.25rem 0.5rem; }
.section-body.open { display: block; }

/* PHASE CLUSTER DIVIDERS */
.phase-cluster {
  display: flex; align-items: center; gap: 0.75rem;
  margin: 1.75rem 0 0.75rem; padding: 0.35rem 0;
}
.phase-cluster .pc-line { flex: 1; height: 1px; background: var(--border); }
.phase-cluster .pc-label {
  font-family: var(--font-mono); font-weight: 500;
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 2px;
  color: var(--text-light); white-space: nowrap;
}

/* SUBSECTIONS */
.subsection { margin: 1rem 0; scroll-margin-top: 4rem; }
.subsection-header {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem; background: rgba(118,215,196,0.06);
  border-radius: 20px; cursor: pointer; user-select: none;
}
.subsection-header:hover { background: rgba(118,215,196,0.12); }
.subsection-header h4 { font-family: var(--font-sans); font-size: 0.95rem; font-weight: 700; color: var(--primary); flex: 1; line-height: 1.35; text-transform: none; }
.subsection-header .toggle-icon { font-size: 1rem; transition: transform 0.25s; color: var(--text-light); }
.subsection-header.open .toggle-icon { transform: rotate(90deg); }
.subsection-header:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.subsection-body { display: none; padding: 0.5rem 0 0.5rem 1rem; }
.subsection-body.open { display: block; }

/* CALLOUTS — Casa Batlló glass treatment */
.callout {
  padding: 1.1rem 1.35rem; border-radius: 25px 40px 35px 20px; margin: 1rem 0;
  border-left: 6px solid; font-family: var(--font-sans);
  font-size: 0.9rem; line-height: 1.6; background: var(--callout-bg);
  box-shadow: 0 3px 0 rgba(11,61,79,0.04), 0 1px 10px rgba(11,61,79,0.05);
  backdrop-filter: blur(4px);
}
.callout.key-idea, .callout.key { border-color: var(--accent); background: rgba(212,175,55,0.06); }
.callout.warning { border-color: var(--callout-border-warn); background: rgba(192,57,43,0.05); }
.callout.tip { border-color: var(--primary-mid); background: rgba(118,215,196,0.06); }
.callout-label {
  font-weight: 500; font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 1.5px; margin-bottom: 0.4rem; font-family: var(--font-mono);
}
.callout.key-idea .callout-label, .callout.key .callout-label { color: var(--accent); }
.callout.warning .callout-label { color: var(--callout-border-warn); }
.callout.tip .callout-label { color: var(--primary-mid); }
.callout-quote {
  font-family: var(--font-accent);
  font-size: 1.4rem; font-weight: 400; line-height: 1.3;
  color: var(--primary); letter-spacing: 0.5px;
  margin: 0.5rem 0 0.55rem; padding: 0;
}
.callout-quote::before { content: "\201C"; }
.callout-quote::after { content: "\201D"; }
.callout-attrib {
  font-family: var(--font-mono); font-size: 0.68rem;
  color: var(--text-light); margin-top: 0.2rem; letter-spacing: 0.3px;
}
.callout-attrib::before { content: "\2014 "; }
.callout-context {
  font-size: 0.82rem; line-height: 1.55; color: var(--text-light); margin-top: 0.35rem;
}

/* INTONATION CALLOUTS — semantic red/blue */
.callout.sharp { background: var(--intonation-sharp); border-color: var(--intonation-sharp-border); }
.callout.sharp .callout-label { color: #9c2a2a; }
.callout.flat { background: var(--intonation-flat); border-color: var(--intonation-flat-border); }
.callout.flat .callout-label { color: #1a5276; }

/* PODCAST / CLASSROOM CALLOUTS */
.callout.podcast { background: var(--field-bg); border-color: var(--field-border); }
.callout.podcast .callout-label { color: var(--primary-mid); }

/* DIAGNOSTIC THOUGHT TREE */
.thought-tree { padding: 1rem 0; }
.tree-symptom {
  background: var(--card); border: 2px solid var(--primary); border-radius: var(--radius-md);
  padding: 1rem 1.25rem; margin: 0.75rem 0; cursor: pointer; user-select: none;
  transition: all 0.2s; position: relative;
  box-shadow: 0 2px 8px rgba(11,61,79,0.06);
}
.tree-symptom:hover { box-shadow: 0 4px 12px rgba(11,61,79,0.12); }
.tree-symptom:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tree-symptom.active { border-color: var(--accent); background: var(--accent-light); }
.tree-symptom h4 { font-family: var(--font-sans); color: var(--primary); font-size: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.tree-symptom h4 .symptom-icon { font-size: 1.3rem; }
.tree-symptom .symptom-desc { font-size: 0.85rem; color: var(--text-light); margin-top: 0.25rem; }
.tree-branches { display: none; margin-left: 1.5rem; padding-left: 1rem; border-left: 3px solid var(--accent); }
.tree-branches.open { display: block; }
.tree-branch {
  background: var(--card); border: var(--border-rule); border-radius: var(--radius-md);
  padding: 0.85rem 1rem; margin: 0.6rem 0; position: relative;
  box-shadow: 0 2px 6px rgba(11,61,79,0.04);
}
.tree-branch::before {
  content: ''; position: absolute; left: -1.35rem; top: 50%; width: 1rem; height: 2px;
  background: var(--accent);
}
.branch-cause { font-weight: 700; color: #9c2a2a; font-size: 0.88rem; margin-bottom: 0.25rem; font-family: var(--font-sans); }
.branch-check { font-size: 0.85rem; color: var(--text-light); margin-bottom: 0.35rem; font-family: var(--font-sans); }
.branch-check strong { color: var(--primary); }
.branch-fix {
  background: rgba(118,215,196,0.06); border-radius: var(--radius-sm); padding: 0.5rem 0.75rem;
  font-size: 0.85rem; font-family: var(--font-sans);
}
.branch-fix strong { color: var(--accent); }

/* PROFICIENCY SCALE GENERATOR */
.scale-generator { padding: 1rem 0; }
.generator-controls {
  display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: end;
  padding: 1rem 1.25rem; background: var(--section-bg); border-radius: var(--radius-md); margin-bottom: 1rem;
}
.generator-controls label {
  font-family: var(--font-sans);
  font-size: 0.8rem; font-weight: 600; color: var(--primary); text-transform: uppercase;
  letter-spacing: 0.5px; display: block; margin-bottom: 0.25rem;
}
.generator-controls select, .generator-controls button {
  font-family: var(--font-sans); font-size: 0.9rem;
  padding: 0.5rem 0.75rem; border-radius: 6px; border: 1px solid var(--border);
}
.generator-controls select { background: #fff; min-width: 200px; }
.generator-controls button {
  background: var(--primary); color: #fff; border: none; cursor: pointer;
  font-weight: 600; padding: 0.55rem 1.25rem; transition: background 0.2s;
}
.generator-controls button:hover { background: var(--primary-mid); }
.generator-controls button:focus-visible,
.generator-controls select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.scale-output { display: none; }
.scale-output.visible { display: block; }
.scale-table {
  width: 100%; border-collapse: collapse; margin: 0.75rem 0; font-size: 0.88rem;
  font-family: var(--font-sans);
  border: 2px solid var(--primary); border-radius: var(--radius-md); overflow: hidden;
}
.scale-table th {
  background: var(--primary); color: #fff; padding: 0.6rem 0.85rem;
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px;
}
.scale-table td { padding: 0.65rem 0.85rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.scale-table tr.level-4 td:first-child { background: #edf5ee; color: #2e7d32; font-weight: 700; }
.scale-table tr.level-3 td:first-child { background: #edf2f7; color: var(--primary); font-weight: 700; }
.scale-table tr.level-2 td:first-child { background: #fdf6e3; color: var(--accent); font-weight: 700; }
.scale-table tr.level-1 td:first-child { background: #fdf0f0; color: #9c2a2a; font-weight: 700; }
.scale-table .level-label { font-size: 0.78rem; display: block; color: var(--text-light); margin-top: 0.15rem; }
.standards-tag {
  display: inline-block; font-size: 0.72rem; padding: 0.15rem 0.5rem;
  background: rgba(11,61,79,0.08); border-radius: var(--radius-sm); margin: 0.15rem 0.15rem 0.15rem 0;
  font-family: var(--font-sans); color: var(--primary);
}
.scale-wrapper { position: relative; display: flex; gap: 0; }
.scale-arrow {
  width: 38px; min-width: 38px; position: relative; display: flex;
  flex-direction: column; align-items: center; justify-content: center; padding: 2.5rem 0;
}
.scale-arrow .arrow-line {
  width: 3px; flex: 1; background: linear-gradient(to top, #9c2a2a, var(--accent), var(--primary), #2e7d32);
  border-radius: 2px; position: relative;
}
.scale-arrow .arrow-head {
  width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent;
  border-bottom: 12px solid #2e7d32; margin-bottom: 2px;
}
.scale-arrow .arrow-label {
  writing-mode: vertical-rl; text-orientation: mixed; transform: rotate(180deg);
  font-size: 0.65rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-light); font-family: var(--font-sans);
  margin-top: 0.5rem;
}
.scale-table-wrap { flex: 1; overflow-x: auto; }
.skill-list { list-style: none; margin: 0.35rem 0 0; padding: 0; counter-reset: skill-counter; }
.skill-list li {
  padding: 0.2rem 0 0.2rem 1.75rem; position: relative; font-size: 0.85rem; line-height: 1.45;
}
.skill-list li::before {
  counter-increment: skill-counter; content: counter(skill-counter) ".";
  position: absolute; left: 0; font-weight: 700; color: var(--primary); font-size: 0.8rem;
}
.prereq-tag {
  display: inline-block; font-size: 0.68rem; padding: 0.15rem 0.55rem;
  background: var(--callout-bg); border: 1px solid var(--accent); border-radius: var(--radius-sm);
  color: var(--accent); font-weight: 500; margin-bottom: 0.5rem;
  font-family: var(--font-mono); letter-spacing: 0.3px;
}

/* RECRUITING — BLUF */
.recruit-bluf { background: linear-gradient(135deg, var(--primary), var(--primary-mid)); color: #fff; padding: 1.25rem 1.5rem; border-radius: var(--radius-md); margin-bottom: 1.5rem; font-size: 0.9rem; line-height: 1.6; box-shadow: 0 4px 15px rgba(11,61,79,0.15); }
.recruit-bluf strong { color: rgba(212,175,55,0.85); }
.recruit-bluf ul { list-style: none; margin: 0.5rem 0 0 0; padding: 0; }
.recruit-bluf li { padding: 0.2rem 0 0.2rem 1.4rem; position: relative; }
.recruit-bluf li::before { content: "\2192"; position: absolute; left: 0; color: #76d7c4; font-weight: 700; }

/* FIT CHECK */
.fit-check { border-radius: var(--radius-md); overflow: hidden; margin-bottom: 1.5rem; border: var(--border-rule); box-shadow: 0 2px 8px rgba(11,61,79,0.06); }
.fit-check-header { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1.25rem; font-weight: 500; font-size: 0.88rem; text-transform: uppercase; letter-spacing: 2.5px; font-family: var(--font-mono); }
.fit-check-header.breakers { background: linear-gradient(135deg, #7c2a2a, #9c2a2a); color: #fff; }
.fit-check-header.greenlight { background: linear-gradient(135deg, #1b5e20, #2e7d32); color: #fff; }
.fit-check-header.personality { background: linear-gradient(135deg, var(--primary), var(--primary-mid)); color: #fff; }
.fit-check-header .fc-icon { font-size: 1.3rem; }
.fit-strip { display: flex; flex-wrap: wrap; }
.fit-item { flex: 1 1 auto; min-width: 160px; padding: 0.85rem 1rem; display: flex; align-items: flex-start; gap: 0.65rem; border-right: 1px solid rgba(0,0,0,0.06); border-bottom: 1px solid rgba(0,0,0,0.06); }
.fit-item:last-child { border-right: none; }
.fit-strip.breakers .fit-item { background: #fdf0f0; }
.fit-strip.greenlight .fit-item { background: #e8f5e9; }
.fit-strip.personality .fit-item { background: var(--section-bg); }
.fit-item .fi-icon { font-size: 1.5rem; flex-shrink: 0; line-height: 1; }
.fit-item .fi-text { flex: 1; }
.fit-item .fi-label { font-family: var(--font-mono); font-weight: 500; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.8px; display: block; margin-bottom: 0.15rem; }
.fit-strip.breakers .fi-label { color: #9c2a2a; }
.fit-strip.greenlight .fi-label { color: #1b5e20; }
.fit-strip.personality .fi-label { color: var(--primary); }
.fit-item .fi-desc { font-size: 0.78rem; color: var(--text-light); line-height: 1.4; }
.fit-item .fi-rank { display: inline-block; background: #1b5e20; color: #fff; font-family: var(--font-mono); font-size: 0.58rem; font-weight: 500; padding: 0.1rem 0.4rem; border-radius: 3px; margin-left: 0.4rem; vertical-align: middle; letter-spacing: 0.8px; }

/* SHOP TALK */
.shop-talk { border: 2px solid var(--primary-mid); border-radius: var(--radius-md); overflow: hidden; margin-top: 1.25rem; }
.shop-talk-header { display: flex; align-items: center; gap: 0.6rem; padding: 0.7rem 1.1rem; background: linear-gradient(135deg, var(--primary), var(--primary-mid)); color: #eceff1; font-weight: 500; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 2px; cursor: pointer; user-select: none; font-family: var(--font-mono); }
.shop-talk-header .st-icon { font-size: 1.15rem; }
.shop-talk-header .st-arrow { margin-left: auto; font-size: 0.7rem; transition: transform 0.2s; }
.shop-talk-header.open .st-arrow { transform: rotate(90deg); }
.shop-talk-header:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.shop-talk-body { display: none; padding: 1rem 1.25rem; background: var(--section-bg); }
.shop-talk-header.open + .shop-talk-body { display: block; }
.shop-talk-body .st-item { display: flex; align-items: flex-start; gap: 0.65rem; padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
.shop-talk-body .st-item:last-child { border-bottom: none; }
.shop-talk-body .st-item .st-bullet { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--primary-mid); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; }
.shop-talk-body .st-item .st-content { flex: 1; font-size: 0.85rem; line-height: 1.5; }
.shop-talk-body .st-item .st-content strong { color: var(--primary); }

/* DELIVERABLES GENERATOR */
.deliverables-hub { padding: 1rem 0; }
.deliverable-select-wrap { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.deliverable-select-wrap select { flex: 1; min-width: 220px; padding: 0.6rem 1rem; border: 1px solid var(--border); border-radius: 8px; font-size: 0.9rem; font-family: var(--font-sans); background: var(--card); cursor: pointer; }
.deliverable-select-wrap button { padding: 0.6rem 1.25rem; background: var(--primary); color: #fff; border: none; border-radius: 8px; font-weight: 700; cursor: pointer; font-family: var(--font-sans); font-size: 0.85rem; letter-spacing: 0.5px; transition: background 0.2s; }
.deliverable-select-wrap button:hover { background: var(--primary-mid); }
.deliverable-select-wrap button:focus-visible,
.deliverable-select-wrap select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.deliverable-output { background: var(--card); border: var(--border-rule); border-radius: var(--radius-md); padding: 1.5rem; display: none; }
.deliverable-output.visible { display: block; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.deliverable-output h4 { font-family: var(--font-sans); color: var(--primary); font-size: 1.05rem; margin-bottom: 0.75rem; }
.deliverable-output .deliv-subtitle { font-size: 0.82rem; color: var(--text-light); margin-bottom: 1rem; font-style: italic; }
/* Conversation thought tree (printable version) */
.convo-tree { margin: 0.75rem 0; }
.convo-step { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.75rem 0; border-bottom: 1px solid rgba(0,0,0,0.06); }
.convo-step:last-child { border-bottom: none; }
.convo-step .cs-num { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 0.8rem; font-weight: 500; }
.convo-step .cs-body { flex: 1; }
.convo-step .cs-label { font-family: var(--font-mono); font-weight: 500; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--primary); margin-bottom: 0.15rem; }
.convo-step .cs-say { font-style: italic; color: var(--text); font-size: 0.92rem; margin: 0.25rem 0; line-height: 1.5; }
.convo-step .cs-tip { font-size: 0.8rem; color: var(--text-light); line-height: 1.4; }
.convo-branch { display: flex; align-items: flex-start; gap: 0.85rem; margin: 0 0 0 0; padding: 0.85rem 1rem; border-bottom: 2px solid rgba(0,0,0,0.05); }
.convo-branch:last-of-type { border-bottom: none; }
.convo-branch:nth-of-type(odd) { background: var(--accent-light); }
.convo-branch:nth-of-type(even) { background: var(--bg); }
.cb-id { flex-shrink: 0; width: 28px; height: 28px; border-radius: 6px; background: rgba(11,61,79,0.08); color: var(--primary); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500; margin-top: 0.1rem; }
.cb-content { flex: 1; }
.cb-voice { font-family: var(--font-sans); font-size: 0.95rem; font-weight: 600; color: var(--primary); margin-bottom: 0.35rem; letter-spacing: -0.005em; }
.cb-context { font-size: 0.82rem; color: var(--text-light); margin-bottom: 0.4rem; line-height: 1.45; font-style: italic; }
.cb-actions { font-size: 0.82rem; line-height: 1.55; }
.cb-directive { display: inline-block; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.8px; padding: 0.1rem 0.45rem; border-radius: 3px; background: rgba(11,61,79,0.08); color: var(--primary); margin-right: 0.2rem; vertical-align: baseline; position: relative; top: -1px; }
.cb-cat-header { font-family: var(--font-mono); font-weight: 500; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--primary); margin: 0.75rem 0 0.35rem; padding-bottom: 0.25rem; border-bottom: 1px solid var(--border); }
.deliv-placeholder { padding: 1.5rem; text-align: center; background: var(--section-bg); border-radius: 8px; }
.deliv-placeholder .dp-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.deliv-placeholder .dp-text { font-size: 0.9rem; color: var(--text-light); }

/* KEY CARD (for intonation by key) */
.key-card {
  background: var(--card); border: var(--border-rule);
  border-radius: var(--radius-md); padding: 1.25rem 1.5rem; margin: 1rem 0;
  position: relative; overflow: hidden;
  box-shadow: 0 2px 8px rgba(11,61,79,0.06);
}
.key-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.key-card.key-flat::before { background: linear-gradient(90deg, #3949ab, #8993c9); }
.key-card.key-sharp::before { background: linear-gradient(90deg, #c0392b, #e8a09a); }
.key-card.key-natural::before { background: linear-gradient(90deg, var(--accent), #e0c570); }
.key-card h4 { font-family: var(--font-sans); font-size: 1.05rem; color: var(--primary); margin-bottom: 0.15rem; }
.key-card .key-subtitle { font-size: 0.82rem; color: var(--text-light); margin-bottom: 0.75rem; font-family: var(--font-sans); }
.watch-item { display: flex; gap: 0.75rem; padding: 0.5rem 0; border-bottom: 1px solid rgba(0,0,0,0.05); font-family: var(--font-sans); font-size: 0.9rem; }
.watch-item:last-child { border-bottom: none; }
.watch-note { font-weight: 700; min-width: 6.5rem; color: var(--primary); }
.watch-tendency { display: inline-block; padding: 0.1rem 0.5rem; border-radius: 4px; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.8px; margin-right: 0.35rem; position: relative; top: -1px; }
.watch-tendency.sharp { background: #f5d5d5; color: #9c2a2a; }
.watch-tendency.flat { background: #d5dff0; color: #1a5276; }
.watch-fix { color: var(--text); flex: 1; }

/* DETAIL LISTS */
p { margin-bottom: 0.75rem; }
ul, ol { margin: 0.5rem 0 1rem 1.5rem; }
li { margin-bottom: 0.35rem; }
.detail-list { list-style: none; margin-left: 0; padding: 0; }
.detail-list li { padding: 0.35rem 0 0.35rem 1.5rem; position: relative; }
.detail-list li::before { content: '\25B8'; position: absolute; left: 0; color: var(--accent); font-weight: bold; }

/* EQUIPMENT CARD */
.equipment-card {
  background: var(--card); border: var(--border-rule);
  border-radius: var(--radius-md); padding: 0.85rem 1.15rem; margin: 0.6rem 0;
  box-shadow: 0 2px 6px rgba(11,61,79,0.04);
}
.equipment-card h4, .equipment-card h5 { font-family: var(--font-sans); color: var(--primary); margin-bottom: 0.3rem; font-size: 0.92rem; }
.equipment-card .price { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-light); margin-bottom: 0.4rem; letter-spacing: 0.3px; }

/* DM MONO — Third-tier technical typeface */
.mono, code { font-family: var(--font-mono); }

/* HUB LINKS */
.hub-link {
  display: inline-block; padding: 0.35rem 0.75rem;
  background: var(--accent-light); border: 1px solid var(--accent);
  border-radius: 25px; font-size: 0.82rem; font-weight: 600;
  color: var(--primary); text-decoration: none;
  transition: background 0.2s;
}
.hub-link:hover { background: rgba(212,175,55,0.2); }

/* SOURCE TAG */
.source-tag {
  display: inline-block; font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-light); padding: 0.1rem 0.45rem;
  background: rgba(0,0,0,0.04); border-radius: var(--radius-sm); margin-top: 0.4rem;
  letter-spacing: 0.2px;
}
.source-tag a {
  color: inherit; text-decoration: none;
  border-bottom: 1px dotted rgba(0,0,0,0.2); transition: color 0.15s, border-color 0.15s;
}
.source-tag a:hover { color: var(--primary-mid); border-bottom-color: var(--primary-mid); }

/* SEARCH HIGHLIGHT */
.search-match { background: #ffe066; border-radius: 2px; padding: 0 2px; }

/* TABLE */
table {
  width: 100%; border-collapse: separate; border-spacing: 0; margin: 0.75rem 0; font-size: 0.88rem;
  font-family: var(--font-sans); border-radius: 16px 24px 20px 12px; overflow: hidden;
  border: 1px solid var(--border); box-shadow: 0 2px 8px rgba(11,61,79,0.05);
}
th, td { padding: 0.55rem 0.8rem; text-align: left; border-bottom: 1px solid var(--border); }
th {
  background: var(--section-bg); color: var(--primary);
  font-family: var(--font-mono);
  font-weight: 500; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.8px;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(118,215,196,0.04); }

/* PHASE NAVIGATION (prev/next) */
.phase-nav {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.phase-nav a {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.25rem; border-radius: 25px;
  background: var(--card); border: var(--border-rule);
  text-decoration: none; color: var(--primary);
  font-family: var(--font-sans); font-size: 0.88rem; font-weight: 600;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(11,61,79,0.06);
}
.phase-nav a:hover { border-color: var(--accent); box-shadow: 0 4px 12px rgba(11,61,79,0.12); }
.phase-nav .nav-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-light); font-family: var(--font-mono); }
