/* === reference-html.css === */
.ref-hero { background: var(--secondary); padding: 35px 40px; }
.ref-hero h1 { color: white; font-size: 32px; margin-bottom: 8px; }
.ref-hero p { color: rgba(255,255,255,0.65); font-size: 15px; margin: 0; }
.ref-search-bar { display: flex; gap: 10px; margin-top: 20px; }
.ref-search-bar input { flex: 1; max-width: 450px; padding: 10px 16px; border: none; border-radius: 4px; font-size: 15px; outline: none; }
.ref-layout { display: flex; max-width: 1180px; margin: 30px auto; padding: 0 20px; gap: 30px; }
.ref-alpha { width: 52px; flex-shrink: 0; }
.ref-alpha a { display: block; text-align: center; padding: 6px 4px; color: var(--primary); font-weight: 700; font-size: 14px; border-radius: 4px; text-decoration: none; transition: all 0.15s; }
.ref-alpha a:hover { background: var(--primary); color: white; }
.ref-main { flex: 1; }
.ref-letter-section { margin-bottom: 40px; }
.ref-letter-section h2 { font-size: 22px; color: var(--primary); padding: 8px 16px; background: #e8f5e9; border-radius: 4px; margin-bottom: 12px; }
.ref-table { width: 100%; border-collapse: collapse; }
.ref-table th { background: var(--secondary); color: white; padding: 10px 16px; text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; }
.ref-row td { padding: 10px 16px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: top; }
.ref-row:nth-child(even) td { background: #f9f9f9; }
.ref-row:hover td { background: #e8f5e9; }
.ref-row td:first-child { font-family: 'Consolas', monospace; color: #c7254e; font-size: 13px; white-space: nowrap; }
.ref-row td:nth-child(2) { color: var(--text-med); }
.cat-badge { font-size: 10px; padding: 2px 6px; border-radius: 10px; font-weight: 700; white-space: nowrap; }
.cat-flow { background: #e3f2fd; color: #1565c0; }
.cat-head { background: #fce4ec; color: #880e4f; }
.cat-form { background: #fff3e0; color: #c14400; }
.cat-table { background: #e8f5e9; color: #1b5e20; }
.cat-media { background: #f3e5f5; color: #4a148c; }
.cat-text { background: #fff8e1; color: #ae5a10; }
.cat-meta { background: #efebe9; color: #4e342e; }
  
.ref-empty { padding: 20px; color: #888; }



