/*
Theme Name: VnType V2
Theme URI: https://vntype.com
Author: VnType Team
Author URI: https://vntype.com
Description: A beautiful font sharing theme inspired by DaFont - share, browse and download fonts with style.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fontshare
Tags: fonts, download, typography, gallery, filter
*/

/* =============================================
   CSS VARIABLES & RESET
   ============================================= */
:root {
    --color-bg: #0a0a0f;
    --color-surface: #111118;
    --color-surface-2: #1a1a24;
    --color-border: #2a2a38;
    --color-accent: #6c63ff;
    --color-accent-2: #ff6584;
    --color-accent-3: #43e97b;
    --color-text: #e8e8f0;
    --color-text-muted: #7a7a9a;
    --color-text-dim: #4a4a6a;
    --font-ui: 'DM Sans', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(108,99,255,0.12);
    --shadow-hover: 0 8px 40px rgba(108,99,255,0.25);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-ui);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select { font-family: inherit; }

/* =============================================
   HEADER
   ============================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10,10,15,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    padding: 0 40px;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 24px;
}

.header-logo img{	
    max-width: 60px;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.site-logo .logo-mark {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 900;
    color: white;
    font-style: italic;
}

.site-logo .logo-text {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}


.site-logo .logo-text span { color: var(--color-accent); }

.site-logo--custom {
    display: flex;
    align-items: center;
}

.site-logo--custom img {
    max-height: 40px;
    width: auto;
    display: block;
}

.header-search {
    flex: 1;
    max-width: 480px;
    position: relative;
}

.header-search input {
    width: 100%;
    padding: 10px 16px 10px 44px;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    color: var(--color-text);
    font-size: 14px;
    transition: var(--transition);
    outline: none;
}

.header-search input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(108,99,255,0.15);
}

.header-search input::placeholder { color: var(--color-text-dim); }

.header-search .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-dim);
    pointer-events: none;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-nav a {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: var(--transition);
}

.header-nav a:hover, .header-nav a.active {
    color: var(--color-text);
    background: var(--color-surface-2);
}

.header-nav li {
    list-style: none;
}

.btn-submit {
    padding: 9px 18px;
    background: linear-gradient(135deg, var(--color-accent), #8b5cf6);
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    color: white !important;
    transition: var(--transition);
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(108,99,255,0.4);
    background: linear-gradient(135deg, #7c75ff, #9b6df6) !important;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
    text-align: center;
    padding: 80px 40px 60px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(108,99,255,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-title {
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.05;
    margin-bottom: 16px;
}

.hero-title .accent { 
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--color-text-muted);
    margin-bottom: 32px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-text);
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 12px;
    color: var(--color-text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

/* =============================================
   FILTER BAR
   ============================================= */
.filter-section {
    padding: 0 0 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.filter-tag {
    padding: 7px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    background: transparent;
    transition: var(--transition);
    cursor: pointer;
}

.filter-tag:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.filter-tag.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
}

.filter-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.sort-select {
    padding: 8px 14px;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: 9px;
    color: var(--color-text);
    font-size: 13px;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
    appearance: none;
    padding-right: 32px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a7a9a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.sort-select:focus {
    border-color: var(--color-accent);
}

.fonts-section {
    max-width: 1200px;
    margin: 0 auto;
}

/* =============================================
   GOOGLE FONTSÃ¢â‚¬â€œSTYLE ARCHIVE
   gf-* namespace
   ============================================= */

/* Ã¢â€â‚¬Ã¢â€â‚¬ TOPBAR Ã¢â€â‚¬Ã¢â€â‚¬ */
.gf-topbar {
    position: sticky;
    top: 68px;
    z-index: 90;
    background: rgba(10,10,15,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
}
.gf-topbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    height: 60px;
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Preview text input */
.gf-preview-input-wrap {
    flex: 1;
    min-width: 0;
    position: relative;
    display: flex;
    align-items: center;
}
.gf-preview-icon {
    position: absolute;
    left: 13px;
    color: var(--color-text-dim);
    pointer-events: none;
    flex-shrink: 0;
}
.gf-preview-input {
    width: 100%;
    padding: 9px 38px 9px 36px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition);
    font-family: var(--font-ui);
}
.gf-preview-input:focus { border-color: rgba(255,255,255,.2); }
.gf-preview-input::placeholder { color: var(--color-text-dim); }
.gf-preview-clear {
    position: absolute;
    right: 10px;
    width: 22px; height: 22px;
    display: flex; align-items: center; justify-content: center;
    color: var(--color-text-dim);
    border-radius: 4px;
    background: none;
    border: none;
    cursor: pointer;
    transition: color var(--transition);
    padding: 0;
}
.gf-preview-clear:hover { color: var(--color-text-muted); }

/* Size slider */
.gf-size-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.gf-size-slider {
    -webkit-appearance: none;
    width: 100px;
    height: 2px;
    background: var(--color-border);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}
.gf-size-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--color-text);
    cursor: pointer;
    transition: transform .12s;
}
.gf-size-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }
.gf-size-val {
    font-size: 12px;
    color: var(--color-text-dim);
    font-family: var(--font-mono);
    min-width: 36px;
    font-variant-numeric: tabular-nums;
}

/* Sort select */
.gf-sort-wrap {
    position: relative;
    flex-shrink: 0;
}
.gf-sort-select {
    -webkit-appearance: none;
    appearance: none;
    padding: 8px 32px 8px 14px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-family: var(--font-ui);
    cursor: pointer;
    outline: none;
    transition: border-color var(--transition);
}
.gf-sort-select:focus { border-color: rgba(255,255,255,.2); }
.gf-sort-chevron {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-dim);
    pointer-events: none;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ CATEGORY CHIPS Ã¢â€â‚¬Ã¢â€â‚¬ */
.gf-cats {
    border-bottom: 1px solid var(--color-border);
}
.gf-cats-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    height: 48px;
    align-items: center;
}
.gf-cats-inner::-webkit-scrollbar { display: none; }
.gf-cat-chip {
    padding: 5px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-dim);
    border: 1px solid transparent;
    white-space: nowrap;
    transition: all var(--transition);
    letter-spacing: .2px;
    flex-shrink: 0;
}
.gf-cat-chip:hover { color: var(--color-text-muted); background: rgba(255,255,255,.04); }
.gf-cat-chip.is-active {
    background: var(--color-surface-2);
    border-color: var(--color-border);
    color: var(--color-text);
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ FONT LIST Ã¢â€â‚¬Ã¢â€â‚¬ */
.gf-list-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 40px 80px;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ FONT CARD (list row) Ã¢â€â‚¬Ã¢â€â‚¬ */
.gf-card {
    border: 1px solid var(--color-border);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 8px;
    background: var(--color-surface);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.gf-card:hover {
    border-color: rgba(255,255,255,.12);
    box-shadow: 0 2px 20px rgba(0,0,0,.25);
}

/* Card header row */
.gf-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px 0;
    gap: 16px;
}
.gf-card-info { min-width: 0; }
.gf-card-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}
.gf-card-name a {
    color: var(--color-text);
    transition: color var(--transition);
}
.gf-card-name a:hover { color: var(--color-text-muted); }
.gf-card-sub {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
    font-size: 12px;
    color: var(--color-text-dim);
    flex-wrap: wrap;
}
.gf-card-dot { opacity: .4; }
.gf-card-author { color: var(--color-text-dim); }
.gf-card-styles { color: var(--color-text-dim); }
.gf-card-cat { color: var(--color-text-dim); }
.gf-card-variable {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: .4px;
}
/* Badge styles cho font-card */
.gf-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .5px;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1.4;
    text-transform: uppercase;
}
.gf-card-badge--var {
    background: rgba(108, 99, 255, .12);
    color: var(--color-accent);
    border: 1px solid rgba(108, 99, 255, .25);
}
.gf-card-badge--multi {
    background: rgba(245, 158, 11, .10);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, .22);
    font-size: 10px;
    text-transform: none;
    letter-spacing: 0;
}

/* Action buttons */
.gf-card-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}
.gf-card-btn {
    width: 34px; height: 34px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-dim);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}
.gf-card-btn:hover {
    border-color: rgba(255,255,255,.15);
    color: var(--color-text-muted);
    background: rgba(255,255,255,.04);
}
.gf-card-btn--dl:hover { color: #43e97b; border-color: rgba(67,233,123,.3); }
.gf-card-btn--multi-dl:hover { color: #f59e0b; border-color: rgba(245,158,11,.3); }
.gf-card-btn--view:hover { color: var(--color-text); }

/* Preview area Ã¢â‚¬â€ wraps text + tester input + chips */
.gf-card-preview-wrap {
    padding: 12px 24px 18px;
    cursor: text;
    position: relative;
}
.gf-card-preview-text {
    font-size: 40px;
    line-height: 1.3;
    font-weight: 400;
    color: var(--color-text);
    word-break: break-word;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color var(--transition), font-size var(--transition);
    margin: 0;
    user-select: none;
}
.gf-card-preview-wrap:hover .gf-card-preview-text { color: var(--color-text); }

/* Tester input Ã¢â‚¬â€ hidden until card is in test mode */
.gf-card-tester-input {
    display: none;
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 40px;
    line-height: 1.3;
    font-weight: 400;
    color: var(--color-text);
    padding: 0;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
}

/* Style chips Ã¢â‚¬â€ hidden until test mode */
.gf-card-style-chips {
    display: none;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--color-border);
}
.gf-card-style-chip {
    padding: 3px 11px;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    background: transparent;
    color: var(--color-text-dim);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    line-height: 1.6;
}
.gf-card-style-chip:hover {
    border-color: rgba(255,255,255,.2);
    color: var(--color-text-muted);
}
.gf-card-style-chip.is-active {
    background: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
}

/* Test mode Ã¢â‚¬â€ card is active tester */
.gf-card.is-testing {
    border-color: rgba(255,255,255,.16);
    box-shadow: 0 2px 24px rgba(0,0,0,.3);
}
.gf-card.is-testing .gf-card-preview-text {
    display: none;
}
.gf-card.is-testing .gf-card-tester-input {
    display: block;
    font-family: inherit; /* will be set by JS */
}
.gf-card.is-testing .gf-card-style-chips {
    display: flex;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ EMPTY STATE Ã¢â€â‚¬Ã¢â€â‚¬ */
.gf-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--color-text-dim);
}
.gf-empty-icon {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -3px;
    opacity: .15;
    margin-bottom: 20px;
    line-height: 1;
}
.gf-empty h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text-muted);
}
.gf-empty p { font-size: 14px; }

/* Ã¢â€â‚¬Ã¢â€â‚¬ PAGINATION Ã¢â€â‚¬Ã¢â€â‚¬ */
.gf-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 48px;
    flex-wrap: wrap;
}
.gf-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 9px;
    border: 1px solid var(--color-border);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: all var(--transition);
    background: transparent;
    text-decoration: none;
}
.gf-pagination .page-numbers:hover { border-color: rgba(255,255,255,.15); color: var(--color-text); }
.gf-pagination .page-numbers.current { border-color: rgba(255,255,255,.2); color: var(--color-text); background: rgba(255,255,255,.06); }
.gf-pagination .page-numbers.prev,
.gf-pagination .page-numbers.next { padding: 0 16px; font-size: 13px; }

/* Ã¢â€â‚¬Ã¢â€â‚¬ RESPONSIVE Ã¢â€â‚¬Ã¢â€â‚¬ */
@media (max-width: 768px) {
    .gf-topbar-inner { padding: 0 20px; gap: 10px; }
    .gf-size-wrap { display: none; }
    .gf-cats-inner { padding: 0 20px; }
    .gf-list-section { padding: 8px 20px 60px; }
    .gf-card-header { padding: 14px 18px 0; }
    .gf-card-preview-wrap { padding: 10px 18px 18px; }
    .gf-card-preview-text { font-size: 32px; white-space: normal; }
    .gf-card-tester-input { font-size: 32px; }
}
@media (max-width: 480px) {
    .gf-card-preview-text { font-size: 26px; }
    .gf-card-tester-input { font-size: 26px; }
    .gf-topbar-inner { height: 52px; }
}

/* Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬
   Keep old .font-card CSS for slider widget
   (related fonts etc. still use old template)
   Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
.fonts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}
.font-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}
.font-card:hover { border-color: rgba(255,255,255,.12); box-shadow: 0 2px 20px rgba(0,0,0,.25); }
.font-card-preview {
    padding: 28px 24px 20px;
    background: var(--color-bg);
    min-height: 120px;
    display: flex; align-items: center; justify-content: center;
}
.font-preview-text {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.25;
    text-align: center;
    word-break: break-word;
    color: var(--color-text);
}
.font-card-body { padding: 14px 18px 16px; }
.font-name { font-size: 14px; font-weight: 700; color: var(--color-text); }
.font-name a:hover { color: var(--color-text-muted); }
.font-author { font-size: 11px; color: var(--color-text-dim); margin-top: 3px; }
.font-meta { display: flex; align-items: center; gap: 8px; margin: 10px 0; flex-wrap: wrap; }
.font-category {
    font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .8px;
    padding: 2px 8px; border-radius: 100px; border: 1px solid var(--color-border); color: var(--color-text-dim);
}
.font-downloads { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--color-text-dim); margin-left: auto; }
.font-card-actions { display: flex; gap: 6px; }
.btn-download {
    flex: 1; padding: 8px 12px;
    background: var(--color-accent); border-radius: 8px;
    font-size: 12px; font-weight: 600; color: white;
    display: flex; align-items: center; justify-content: center; gap: 5px;
    border: none; cursor: pointer; transition: var(--transition);
}
.btn-download:hover { background: #7b73ff; }
.btn-detail {
    padding: 8px 12px;
    background: transparent; border: 1px solid var(--color-border); border-radius: 8px;
    font-size: 12px; color: var(--color-text-muted);
    display: flex; align-items: center; gap: 5px; transition: var(--transition);
}
.btn-detail:hover { border-color: rgba(255,255,255,.15); color: var(--color-text); }

/* =============================================
   HOMEPAGE PREVIEW BAR
   ============================================= */
.hp-preview-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.hp-preview-input-wrap {
    flex: 1;
    min-width: 220px;
    position: relative;
    display: flex;
    align-items: center;
}
.hp-preview-icon {
    position: absolute;
    left: 13px;
    color: var(--color-text-dim);
    pointer-events: none;
}
.hp-preview-input {
    width: 100%;
    padding: 10px 36px 10px 36px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 9px;
    color: var(--color-text);
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition);
    font-family: var(--font-ui);
}
.hp-preview-input:focus { border-color: rgba(255,255,255,.2); }
.hp-preview-input::placeholder { color: var(--color-text-dim); }
.hp-preview-clear {
    position: absolute; right: 11px;
    width: 22px; height: 22px;
    display: flex; align-items: center; justify-content: center;
    color: var(--color-text-dim); background: none; border: none; cursor: pointer;
    transition: color var(--transition); padding: 0; border-radius: 4px;
}
.hp-preview-clear:hover { color: var(--color-text-muted); }
.hp-size-wrap {
    display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.hp-size-range {
    -webkit-appearance: none;
    width: 100px; height: 2px;
    background: var(--color-border); border-radius: 2px; outline: none; cursor: pointer;
}
.hp-size-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--color-text); cursor: pointer; transition: transform .12s;
}
.hp-size-range::-webkit-slider-thumb:hover { transform: scale(1.2); }
.hp-size-val {
    font-size: 12px; color: var(--color-text-dim);
    font-family: var(--font-mono); min-width: 36px; font-variant-numeric: tabular-nums;
}

/* =============================================
   GOOGLE FONTS DETAIL PAGE Ã¢â‚¬â€ gfd-* namespace
   ============================================= */

.gfd-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0 80px;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ HEADER BAR Ã¢â€â‚¬Ã¢â€â‚¬ */
.gfd-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0 28px;
    gap: 20px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 0;
}
.gfd-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-text-dim);
    min-width: 0;
}
.gfd-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--color-text-muted);
    font-weight: 500;
    transition: color var(--transition);
    white-space: nowrap;
}
.gfd-back:hover { color: var(--color-text); }
.gfd-header-sep { opacity: .3; }
.gfd-header-cat { color: var(--color-text-muted); transition: color var(--transition); }
.gfd-header-cat:hover { color: var(--color-text); }
.gfd-header-current { color: var(--color-text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Download button */
.gfd-btn-dl {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--color-text);
    color: var(--color-bg);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    flex-shrink: 0;
}
.gfd-btn-dl:hover { background: #fff; box-shadow: 0 4px 20px rgba(255,255,255,.15); transform: translateY(-1px); }
.gfd-btn-dl--full { width: 100%; justify-content: center; background: var(--color-surface-2); color: var(--color-text-muted); border: 1px solid var(--color-border); margin-top: 16px; }
.gfd-btn-dl--full:hover { border-color: rgba(255,255,255,.2); color: var(--color-text); background: rgba(255,255,255,.06); box-shadow: none; transform: none; }

/* Ã¢â€â‚¬Ã¢â€â‚¬ TITLE AREA Ã¢â€â‚¬Ã¢â€â‚¬ */
.gfd-title-area {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    padding: 32px 0 24px;
    flex-wrap: wrap;
}
.gfd-font-name {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1;
    margin-bottom: 12px;
}
.gfd-font-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--color-text-dim);
}
.gfd-meta-author a { color: var(--color-text-muted); text-decoration: underline; text-decoration-color: var(--color-border); }
.gfd-meta-author a:hover { color: var(--color-text); }
.gfd-meta-dot { opacity: .3; }
.gfd-meta-variable { color: var(--color-accent); font-weight: 600; font-size: 11px; letter-spacing: .5px; }
.gfd-meta-license { font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; padding: 2px 8px; border-radius: 100px; }
.gfd-lic-free,.gfd-lic-open-source,.gfd-lic-free-commercial { background: rgba(67,233,123,.1); color: #43e97b; border: 1px solid rgba(67,233,123,.15); }
.gfd-lic-personal,.gfd-lic-shareware { background: rgba(245,158,11,.1); color: #f59e0b; border: 1px solid rgba(245,158,11,.15); }

.gfd-title-stats {
    display: flex;
    gap: 32px;
    flex-shrink: 0;
}
.gfd-stat { text-align: right; }
.gfd-stat-n { display: block; font-size: 22px; font-weight: 800; letter-spacing: -1px; line-height: 1; font-variant-numeric: tabular-nums; }
.gfd-stat-l { font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--color-text-dim); margin-top: 4px; display: block; }

/* Ã¢â€â‚¬Ã¢â€â‚¬ TABS Ã¢â€â‚¬Ã¢â€â‚¬ */
.gfd-tabs {
    display: flex;
    border-bottom: 1px solid var(--color-border);
    gap: 0;
    margin-bottom: 0;
}
.gfd-tab {
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-dim);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
    transition: color var(--transition);
    letter-spacing: .3px;
}
.gfd-tab:hover { color: var(--color-text-muted); }
.gfd-tab.is-active { color: var(--color-text); border-bottom-color: var(--color-text); }

/* Ã¢â€â‚¬Ã¢â€â‚¬ TYPE TESTER BAR Ã¢â€â‚¬Ã¢â€â‚¬ */
.gfd-tester-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
    flex-wrap: wrap;
}
.gfd-tester-input-wrap { flex: 1; min-width: 200px; }
.gfd-tester-input {
    width: 100%;
    padding: 10px 16px;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
    font-size: 16px;
    outline: none;
    transition: border-color var(--transition);
}
.gfd-tester-input:focus { border-color: rgba(255,255,255,.2); }
.gfd-tester-input::placeholder { color: var(--color-text-dim); font-family: var(--font-ui); font-size: 14px; }

.gfd-tester-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    flex-wrap: wrap;
}
.gfd-ctrl-group {
    display: flex;
    align-items: center;
    gap: 8px;
}
.gfd-ctrl-label {
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-text-dim);
    white-space: nowrap;
}
.gfd-range {
    -webkit-appearance: none;
    height: 2px;
    background: linear-gradient(to right, var(--color-text-muted) 0%, var(--color-text-muted) var(--pct,30%), var(--color-border) var(--pct,30%));
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    width: 90px;
    transition: height .1s;
}
.gfd-range--sm { width: 64px; }
.gfd-range:hover { height: 3px; }
.gfd-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--color-text);
    box-shadow: 0 1px 4px rgba(0,0,0,.4);
    cursor: pointer; transition: transform .12s;
}
.gfd-range::-webkit-slider-thumb:hover { transform: scale(1.2); }
.gfd-size-display {
    font-size: 11px; color: var(--color-text-dim);
    font-family: var(--font-mono); min-width: 30px;
    font-variant-numeric: tabular-nums;
}

.gfd-bg-toggle {
    display: flex; gap: 2px;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: 7px; padding: 3px;
    margin-left: 4px;
}
.gfd-bg-btn {
    width: 26px; height: 26px;
    border-radius: 5px;
    display: flex; align-items: center; justify-content: center;
    color: var(--color-text-dim); cursor: pointer;
    border: none; background: none; transition: all var(--transition);
}
.gfd-bg-btn.is-active { background: var(--color-surface); color: var(--color-text-muted); box-shadow: 0 1px 3px rgba(0,0,0,.3); }

/* Ã¢â€â‚¬Ã¢â€â‚¬ PANELS Ã¢â€â‚¬Ã¢â€â‚¬ */
.gfd-panel { display: none; }
.gfd-panel.is-active { display: block; }

/* Ã¢â€â‚¬Ã¢â€â‚¬ SPECIMEN Ã¢â€â‚¬Ã¢â€â‚¬ */
.gfd-specimen-area {
    padding: 56px 0 44px;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg);
    transition: background .25s;
    margin: 0 -40px;
    padding-left: 40px;
    padding-right: 40px;
}
.gfd-specimen-area[data-bg="light"] { background: #f5f5f5; }
.gfd-specimen-area[data-bg="light"] .gfd-specimen-text { color: #111; }
.gfd-specimen-text {
    font-size: 40px;
    line-height: 1.3;
    font-weight: 400;
    word-break: break-word;
    color: var(--color-text);
    transition: font-size var(--transition), font-variation-settings .1s;
    min-height: 1.3em;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ VARIABLE AXES INLINE (Preview tab) Ã¢â€â‚¬Ã¢â€â‚¬ */
.gfd-var-inline {
    padding: 20px 0 24px;
    border-bottom: 1px solid var(--color-border);
}
.gfd-var-inline-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-text-dim);
    margin-bottom: 16px;
}
.gfd-var-inline-axes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.gfd-var-axis {
    display: grid;
    grid-template-columns: 100px 1fr 52px;
    align-items: center;
    gap: 16px;
}
.gfd-var-axis-name { font-size: 13px; font-weight: 600; color: var(--color-text-muted); }
.gfd-var-axis-val {
    font-family: var(--font-mono); font-size: 12px;
    color: var(--color-text-muted); text-align: right;
    font-variant-numeric: tabular-nums;
}
.gfd-var-inline-actions {
    display: flex;
    gap: 8px;
    margin-top: 18px;
}

/* Ghost button */
.gfd-ghost-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 13px;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 7px;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-dim);
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
    letter-spacing: .2px;
}
.gfd-ghost-btn:hover { border-color: rgba(255,255,255,.18); color: var(--color-text-muted); }

/* Ã¢â€â‚¬Ã¢â€â‚¬ TYPE TESTER AREA Ã¢â€â‚¬Ã¢â€â‚¬ */
.gfd-type-tester-area {
    border-bottom: 1px solid var(--color-border);
    padding: 32px 0 40px;
    transition: background .25s;
}
.gfd-type-tester-area[data-bg="light"] { background: #f5f5f5; padding-left: 40px; padding-right: 40px; margin: 0 -40px; }
.gfd-type-tester-area[data-bg="light"] .gfd-type-area-text { color: #111; }
.gfd-type-area-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-text-dim);
    margin-bottom: 20px;
}
.gfd-type-area-text {
    font-size: 40px;
    line-height: 1.4;
    font-weight: 400;
    color: var(--color-text);
    outline: none;
    min-height: 100px;
    word-break: break-word;
    transition: font-variation-settings .1s;
    cursor: text;
}
.gfd-type-area-text:empty::before {
    content: attr(data-placeholder);
    color: var(--color-text-dim);
    pointer-events: none;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ WATERFALL Ã¢â€â‚¬Ã¢â€â‚¬ */
.gfd-waterfall {
    padding: 32px 0 40px;
    border-bottom: 1px solid var(--color-border);
}
.gfd-section-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-text-dim);
    margin-bottom: 24px;
}
.gfd-wf-row {
    display: flex;
    align-items: baseline;
    gap: 24px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,.04);
}
.gfd-wf-row:last-child { border-bottom: none; }
.gfd-wf-sz {
    font-size: 10px;
    color: var(--color-text-dim);
    font-family: var(--font-mono);
    min-width: 32px;
    flex-shrink: 0;
    letter-spacing: .5px;
}
.gfd-wf-txt {
    color: var(--color-text);
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: calc(100% - 56px);
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ PARAGRAPH Ã¢â€â‚¬Ã¢â€â‚¬ */
.gfd-para-section { padding: 40px 0; border-bottom: 1px solid var(--color-border); }
.gfd-para-text {
    font-size: 18px;
    line-height: 1.85;
    color: var(--color-text-muted);
    max-width: 720px;
}
.gfd-para-text p { margin-bottom: 1em; }
.gfd-para-text p:last-child { margin-bottom: 0; }

/* Ã¢â€â‚¬Ã¢â€â‚¬ GLYPHS PANEL Ã¢â€â‚¬Ã¢â€â‚¬ */
.gfd-glyphs-wrap {
    padding: 32px 0;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Glyphs style switcher bar Ã¢â€â‚¬Ã¢â€â‚¬ */
.gfd-glyphs-style-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 20px 0 4px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 8px;
}
.gfd-glyph-style-chip {
    padding: 5px 13px;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    background: transparent;
    color: var(--color-text-dim);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}
.gfd-glyph-style-chip:hover {
    border-color: rgba(255,255,255,.2);
    color: var(--color-text-muted);
    background: rgba(255,255,255,.04);
}
.gfd-glyph-style-chip.is-active {
    background: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
}
.gfd-glyph-group { margin-bottom: 36px; }
.gfd-glyph-group:last-child { margin-bottom: 0; }
.gfd-glyph-group-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-text-dim);
    margin-bottom: 14px;
}
.gfd-glyph-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.gfd-glyph {
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition);
    user-select: none;
    color: var(--color-text);
    position: relative;
}
.gfd-glyph:hover {
    background: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
    transform: scale(1.08) translateY(-2px);
    z-index: 2;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ VARIABLE PANEL Ã¢â€â‚¬Ã¢â€â‚¬ */
.gfd-var-panel {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 0;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    overflow: hidden;
    margin: 32px 0;
}
.gfd-var-specimen-wrap {
    padding: 60px 48px;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 40px 40px;
}
.gfd-var-specimen {
    font-size: 72px;
    font-weight: 400;
    line-height: 1.1;
    text-align: center;
    word-break: break-word;
    transition: font-variation-settings .12s;
}
.gfd-var-sliders {
    background: var(--color-surface);
    padding: 24px;
    border-left: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
    max-height: 500px;
}
.gfd-var-row {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.gfd-var-row:last-of-type { border-bottom: none; }
.gfd-var-row-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.gfd-var-row-tag {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-text-dim);
}
.gfd-var-row-name { font-size: 13px; font-weight: 600; color: var(--color-text-muted); }
.gfd-var-row-range { font-size: 10px; color: var(--color-text-dim); font-family: var(--font-mono); margin-left: auto; }
.gfd-var-row-val { font-size: 13px; font-weight: 800; color: var(--color-text); font-family: var(--font-mono); min-width: 44px; text-align: right; font-variant-numeric: tabular-nums; }
.gfd-var-row .gfd-range { width: 100%; }
.gfd-var-panel-actions { display: flex; gap: 8px; padding: 16px 0 8px; border-top: 1px solid var(--color-border); flex-wrap: wrap; }

.gfd-css-block {
    background: rgba(0,0,0,.3);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 8px;
}
.gfd-css-block-label {
    padding: 7px 13px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-text-dim);
    border-bottom: 1px solid var(--color-border);
}
.gfd-css-code {
    padding: 12px 13px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: #7dd3fc;
    line-height: 1.75;
    white-space: pre-wrap;
    word-break: break-all;
    margin: 0;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ STYLES PANEL Ã¢â€â‚¬Ã¢â€â‚¬ */
.gfd-styles-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0 20px;
    border-bottom: 1px solid var(--color-border);
    flex-wrap: wrap;
}
.gfd-styles-list { padding: 8px 0; }

/* Base style row */
.gfd-style-row {
    display: grid;
    grid-template-columns: 180px 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255,255,255,.05);
    transition: background var(--transition);
}
.gfd-style-row:last-child { border-bottom: none; }
.gfd-style-row:hover { background: rgba(255,255,255,.015); border-radius: 8px; padding-left: 8px; padding-right: 8px; margin: 0 -8px; }

/* Rich row (with axes) */
.gfd-style-row--rich {
    grid-template-columns: 200px 1fr auto;
    padding: 20px 0;
}

/* Left col: name + axis chips */
.gfd-style-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}
.gfd-style-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-muted);
    letter-spacing: .2px;
}
.gfd-style-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.gfd-style-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    font-size: 10px;
    line-height: 1.4;
}
.gfd-style-chip-tag {
    font-family: var(--font-mono);
    color: var(--color-text-dim);
    letter-spacing: .4px;
    text-transform: uppercase;
}
.gfd-style-chip-val {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--color-text-muted);
    font-variant-numeric: tabular-nums;
}

/* Center: preview text */
.gfd-style-sample {
    font-size: 40px;
    font-weight: 400;
    line-height: 1.25;
    color: var(--color-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: font-variation-settings .12s, font-size var(--transition);
    min-width: 0;
}

/* Right: download button */
.gfd-style-dl {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-dim);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all var(--transition);
}
.gfd-style-dl:hover {
    border-color: rgba(255,255,255,.18);
    color: var(--color-text-muted);
    background: var(--color-surface-2);
}
.gfd-style-dl svg { flex-shrink: 0; }

@media (max-width: 768px) {
    /* Layout: preview full-width trước, name + dl button cùng hàng dưới
       Áp dụng cho cả multi-style VÀ variable */
    .gfd-style-row,
    .gfd-style-row--rich,
    .gfd-style-row--variable {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: 10px 12px;
    }
    /* Hàng 1: preview chiếm toàn bộ width */
    .gfd-style-sample {
        grid-row: 1;
        grid-column: 1 / -1;
        font-size: 32px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    /* Hàng 2 trái: name + chips */
    .gfd-style-info {
        display: flex;
        flex-direction: row;
        align-items: center;
        min-width: 0;
    }
    /* Chips wrap trên mobile */
    .gfd-style-chips {
        flex-wrap: wrap;
        gap: 4px;
        margin-top: 4px;
    }
    /* Hàng 2 phải: dl button hoặc included chip */
    .gfd-style-dl,
    .gfd-style-dl-incl {
        grid-row: 2;
        grid-column: 2;
        align-self: center;
        flex-shrink: 0;
    }
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ ADMIN: Styles Manager subsection label Ã¢â€â‚¬Ã¢â€â‚¬ */

/* Ã¢â€â‚¬Ã¢â€â‚¬ ABOUT PANEL Ã¢â€â‚¬Ã¢â€â‚¬ */
.gfd-about-wrap {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 48px;
    padding: 40px 0;
    align-items: start;
}
.gfd-about-text {
    color: var(--color-text-muted);
    font-size: 15px;
    line-height: 1.9;
}
.gfd-about-text p { margin-bottom: 1em; }
.gfd-meta-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 20px;
}
.gfd-meta-card--tags { margin-top: 12px; }
.gfd-meta-card-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-text-dim);
    margin-bottom: 14px;
}
.gfd-meta-dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 16px;
    font-size: 13px;
}
.gfd-meta-dl dt { color: var(--color-text-dim); font-size: 11px; white-space: nowrap; padding-top: 1px; }
.gfd-meta-dl dd { color: var(--color-text-muted); }
.gfd-meta-dl dd a { color: var(--color-text-muted); text-decoration: underline; text-decoration-color: var(--color-border); }
.gfd-meta-dl dd a:hover { color: var(--color-text); }
.gfd-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.gfd-tag {
    padding: 4px 12px;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    font-size: 12px;
    color: var(--color-text-dim);
    transition: all var(--transition);
}
.gfd-tag:hover { border-color: rgba(255,255,255,.15); color: var(--color-text-muted); }

/* Ã¢â€â‚¬Ã¢â€â‚¬ RELATED FONTS Ã¢â€â‚¬Ã¢â€â‚¬ */
.gfd-related { padding: 48px 0 0; border-top: 1px solid var(--color-border); margin-top: 24px; }
.gfd-related .gfd-section-label { margin-bottom: 20px; }
.gfd-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
}
.gfd-rel-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 18px 20px 20px;
    text-decoration: none;
    transition: all var(--transition);
    display: block;
    overflow: hidden;
}
.gfd-rel-card:hover { border-color: rgba(255,255,255,.14); background: var(--color-surface-2); transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0,0,0,.25); }
.gfd-rel-meta { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.gfd-rel-name { font-size: 13px; font-weight: 700; color: var(--color-text); }
.gfd-rel-author { font-size: 11px; color: var(--color-text-dim); }
.gfd-rel-preview {
    font-size: 28px;
    line-height: 1.3;
    color: var(--color-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ RESPONSIVE Ã¢â€â‚¬Ã¢â€â‚¬ */
@media (max-width: 900px) {
    .gfd-var-panel { grid-template-columns: 1fr; }
    .gfd-var-specimen-wrap { min-height: 200px; padding: 40px 32px; }
    .gfd-var-specimen { font-size: 52px; }
    .gfd-var-sliders { max-height: none; border-left: none; border-top: 1px solid var(--color-border); }
    .gfd-about-wrap { grid-template-columns: 1fr; }
    .gfd-title-area { flex-direction: column; gap: 20px; }
    .gfd-title-stats { flex-direction: row; }
    .gfd-stat { text-align: left; }
    .gfd-tester-bar { flex-direction: column; align-items: flex-start; }
    .gfd-tester-controls { width: 100%; }
    .gfd-specimen-area, .gfd-type-tester-area { margin: 0; padding-left: 0; padding-right: 0; }
    .gfd-specimen-area[data-bg="light"], .gfd-type-tester-area[data-bg="light"] { margin: 0; padding-left: 0; padding-right: 0; }
    .gfd-var-axis { grid-template-columns: 90px 1fr 44px; gap: 10px; }
}
@media (max-width: 600px) {
    .gfd-page { padding: 0 20px 60px; }
    .gfd-font-name { font-size: 28px; letter-spacing: -1px; }
    .gfd-specimen-text, .gfd-type-area-text { font-size: 28px; }
    .gfd-glyph { width: 44px; height: 44px; font-size: 20px; }
    .gfd-rel-card { border-radius: 10px; }
    .gfd-var-panel { border-radius: 10px; }
    .gfd-tabs { overflow-x: auto; scrollbar-width: none; }
    .gfd-tabs::-webkit-scrollbar { display: none; }
    .gfd-tab { white-space: nowrap; }
}

/* Legacy fp-* (used by related/slider widgets only Ã¢â‚¬â€ keep minimal) */

/* Ã¢â€â‚¬Ã¢â€â‚¬ ENTRANCE ANIMATION Ã¢â€â‚¬Ã¢â€â‚¬ */
@keyframes fp-rise {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fp-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.fp-hero, .fp-studio, .fp-bottom-grid, .fp-related {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1);
}
.fp-hero.fp-in, .fp-studio.fp-in, .fp-bottom-grid.fp-in, .fp-related.fp-in {
    opacity: 1;
    transform: translateY(0);
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ PAGE Ã¢â€â‚¬Ã¢â€â‚¬ */
.fp-page {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 40px 100px;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ BREADCRUMB Ã¢â€â‚¬Ã¢â€â‚¬ */
.fp-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 28px 0 36px;
    font-size: 12px;
    color: var(--color-text-dim);
    letter-spacing: .3px;
}
.fp-breadcrumb a {
    color: var(--color-text-dim);
    transition: color var(--transition);
}
.fp-breadcrumb a:hover { color: var(--color-text-muted); }
.fp-bc-sep { color: var(--color-text-dim); opacity: .3; }
.fp-breadcrumb [aria-current="page"] { color: var(--color-text-muted); }

/* Ã¢â€â‚¬Ã¢â€â‚¬ HERO Ã¢â€â‚¬Ã¢â€â‚¬ */
.fp-hero {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    margin-bottom: 48px;
    align-items: flex-start;
}
.fp-hero-left { min-width: 0; }

.fp-hero-category {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--color-text-dim);
    margin-bottom: 14px;
}

.fp-hero-title {
    font-size: clamp(36px, 5.5vw, 64px);
    font-weight: 800;
    letter-spacing: -2.5px;
    line-height: 1;
    margin-bottom: 20px;
    color: var(--color-text);
}

.fp-hero-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--color-text-dim);
    font-size: 13px;
}
.fp-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}
.fp-meta-item a {
    color: var(--color-text-muted);
    transition: color var(--transition);
}
.fp-meta-item a:hover { color: var(--color-text); }
.fp-meta-sep { color: var(--color-text-dim); opacity: .3; font-size: 16px; line-height: 1; }

/* License badges */
.fp-meta-badge {
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
}
.fp-badge-free,
.fp-badge-open-source,
.fp-badge-free-commercial { background: rgba(67,233,123,.1); color: #43e97b; border: 1px solid rgba(67,233,123,.15); }
.fp-badge-personal,
.fp-badge-shareware        { background: rgba(245,158,11,.1); color: #f59e0b; border: 1px solid rgba(245,158,11,.15); }
.fp-badge-donationware     { background: rgba(108,99,255,.1); color: var(--color-accent); border: 1px solid rgba(108,99,255,.15); }

/* Variable badge in hero */
.fp-var-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    background: rgba(108,99,255,.12);
    border: 1px solid rgba(108,99,255,.25);
    color: var(--color-accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 100px;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ HERO ACTIONS Ã¢â€â‚¬Ã¢â€â‚¬ */
.fp-hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    flex-shrink: 0;
}

.fp-stat-row {
    display: flex;
    gap: 32px;
}
.fp-stat { text-align: right; }
.fp-stat-n {
    display: block;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1;
    color: var(--color-text);
    font-variant-numeric: tabular-nums;
}
.fp-stat-l {
    font-size: 10px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--color-text-dim);
    margin-top: 4px;
    display: block;
}

/* Download button Ã¢â‚¬â€ refined */
.fp-btn-download {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 14px 26px;
    background: var(--color-text);
    color: var(--color-bg);
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: .2px;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.fp-btn-download:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255,255,255,.12);
}
.fp-btn-download:active { transform: translateY(0); }
.fp-btn-download--full {
    width: 100%;
    justify-content: center;
    background: var(--color-accent);
    color: #fff;
}
.fp-btn-download--full:hover {
    background: #7b73ff;
    box-shadow: 0 8px 32px rgba(108,99,255,.4);
}

/* Copy button */
.fp-btn-copy {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 18px;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 9px;
    color: var(--color-text-dim);
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}
.fp-btn-copy:hover { border-color: var(--color-text-dim); color: var(--color-text-muted); }
.fp-btn-copy.is-copied { border-color: #43e97b; color: #43e97b; }

/* Ã¢â€â‚¬Ã¢â€â‚¬ STUDIO Ã¢â€â‚¬Ã¢â€â‚¬ */
.fp-studio {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 48px;
    box-shadow: 0 2px 40px rgba(0,0,0,.3);
}

/* Tab bar */
.fp-tab-bar {
    display: flex;
    border-bottom: 1px solid var(--color-border);
    padding: 0 8px;
    background: rgba(255,255,255,.015);
    gap: 2px;
}
.fp-tab {
    padding: 14px 18px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--color-text-dim);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
    transition: color var(--transition);
    letter-spacing: .4px;
    position: relative;
}
.fp-tab:hover { color: var(--color-text-muted); }
.fp-tab.is-active { color: var(--color-text); border-bottom-color: var(--color-text); }
.fp-tab--var { display: inline-flex; align-items: center; gap: 4px; }
.fp-tab--var.is-active { color: var(--color-accent); border-bottom-color: var(--color-accent); }

/* Control bar */
.fp-ctrl-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 24px;
    border-bottom: 1px solid var(--color-border);
    background: rgba(255,255,255,.01);
    flex-wrap: wrap;
}
.fp-ctrl-left { flex: 1; min-width: 200px; }
.fp-ctrl-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.fp-live-input {
    width: 100%;
    padding: 9px 16px;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition);
}
.fp-live-input:focus { border-color: rgba(255,255,255,.2); }
.fp-live-input::placeholder { color: var(--color-text-dim); }

.fp-ctrl-label {
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-text-dim);
    white-space: nowrap;
}

.fp-size-ctrl {
    display: flex;
    align-items: center;
    gap: 10px;
}
.fp-slider {
    -webkit-appearance: none;
    width: 80px;
    height: 2px;
    background: var(--color-border);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}
.fp-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--color-text);
    cursor: pointer;
    transition: transform .15s;
}
.fp-slider::-webkit-slider-thumb:hover { transform: scale(1.25); }
.fp-size-val {
    font-size: 12px;
    color: var(--color-text-dim);
    font-variant-numeric: tabular-nums;
    min-width: 24px;
    font-family: var(--font-mono);
}

/* BG toggle */
.fp-bg-toggle {
    display: flex;
    gap: 1px;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 3px;
}
.fp-bg-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-dim);
    cursor: pointer;
    border: none;
    background: none;
    transition: all var(--transition);
}
.fp-bg-btn.is-active {
    background: var(--color-surface);
    color: var(--color-text-muted);
    box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.fp-bg-btn:not(.is-active):hover { color: var(--color-text-muted); }

/* Align buttons */
.fp-align-btns {
    display: flex;
    gap: 1px;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 3px;
}
.fp-align-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-dim);
    cursor: pointer;
    border: none;
    background: none;
    transition: all var(--transition);
}
.fp-align-btn.is-active {
    background: var(--color-surface);
    color: var(--color-text-muted);
    box-shadow: 0 1px 3px rgba(0,0,0,.3);
}

/* Panels */
.fp-panel { display: none; }
.fp-panel.is-active { display: block; }

/* Studio bg variants */
.fp-studio[data-bg="light"] .fp-specimen-wrap,
.fp-studio[data-bg="light"] .fp-pangrams,
.fp-studio[data-bg="light"] .fp-glyphs-grid,
.fp-studio[data-bg="light"] .fp-waterfall {
    background: #f8f8f8;
    color: #111;
}
.fp-studio[data-bg="light"] .fp-glyph {
    background: #fff;
    border-color: #ddd;
    color: #111;
}
.fp-studio[data-bg="light"] .fp-glyph:hover {
    background: #111;
    border-color: #111;
    color: #fff;
}
.fp-studio[data-bg="light"] .fp-pangram-row,
.fp-studio[data-bg="light"] .fp-wf-row {
    border-color: rgba(0,0,0,.06);
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ PREVIEW PANEL Ã¢â€â‚¬Ã¢â€â‚¬ */
.fp-specimen-wrap {
    padding: 72px 56px 52px;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: var(--color-bg);
    transition: background .3s, color .3s;
    position: relative;
}

/* Subtle noise texture overlay on preview */
.fp-specimen-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: .025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    pointer-events: none;
}

.fp-specimen-text {
    font-size: 72px;
    line-height: 1.1;
    font-weight: 400;
    word-break: break-word;
    outline: none;
    cursor: text;
    transition: font-variation-settings .1s ease, font-weight .1s ease;
    position: relative;
    z-index: 1;
    max-width: 100%;
}

/* Pangrams */
.fp-pangrams {
    padding: 0 56px 48px;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
}
.fp-pangram-row {
    display: flex;
    align-items: baseline;
    gap: 24px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,.04);
    transition: background var(--transition);
}
.fp-pangram-row:first-child { padding-top: 20px; }
.fp-pangram-row:last-child { border-bottom: none; }
.fp-pangram-row:hover { background: rgba(255,255,255,.01); margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-radius: 6px; }
.fp-pangram-size {
    font-size: 10px;
    color: var(--color-text-dim);
    font-family: var(--font-mono);
    min-width: 32px;
    flex-shrink: 0;
    letter-spacing: .5px;
}
.fp-pangram-row p {
    color: var(--color-text);
    line-height: 1.3;
    word-break: break-word;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ GLYPHS PANEL Ã¢â€â‚¬Ã¢â€â‚¬ */
.fp-glyphs-grid {
    padding: 36px 56px 48px;
    background: var(--color-bg);
}
.fp-glyph-group { margin-bottom: 36px; }
.fp-glyph-group:last-child { margin-bottom: 0; }
.fp-glyph-group-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-text-dim);
    margin-bottom: 14px;
}
.fp-glyphs-display {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.fp-glyph {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition);
    user-select: none;
    color: var(--color-text);
    position: relative;
}
.fp-glyph::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: 5px;
    padding: 3px 7px;
    font-size: 10px;
    font-family: var(--font-mono);
    color: var(--color-text-dim);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s;
    z-index: 10;
}
.fp-glyph:hover::after { opacity: 1; }
.fp-glyph:hover {
    background: var(--color-text);
    border-color: var(--color-text);
    color: var(--color-bg);
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
    z-index: 2;
}
.fp-glyph:active { transform: scale(1) translateY(0); }

/* Ã¢â€â‚¬Ã¢â€â‚¬ WATERFALL PANEL Ã¢â€â‚¬Ã¢â€â‚¬ */
.fp-waterfall {
    padding: 36px 56px 48px;
    background: var(--color-bg);
}
.fp-wf-row {
    display: flex;
    align-items: baseline;
    gap: 24px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,.04);
}
.fp-wf-row:last-child { border-bottom: none; }
.fp-wf-size {
    font-size: 10px;
    color: var(--color-text-dim);
    font-family: var(--font-mono);
    min-width: 32px;
    flex-shrink: 0;
    letter-spacing: .5px;
}
.fp-wf-text {
    line-height: 1.2;
    color: var(--color-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: calc(100% - 60px);
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ BOTTOM GRID Ã¢â€â‚¬Ã¢â€â‚¬ */
.fp-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 48px;
    margin-bottom: 72px;
    align-items: start;
}

/* Sections */
.fp-section { margin-bottom: 48px; }
.fp-section:last-child { margin-bottom: 0; }
.fp-section-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-text-dim);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--color-border);
}
.fp-description {
    color: var(--color-text-muted);
    line-height: 1.9;
    font-size: 15px;
}
.fp-description p { margin-bottom: 1.1em; }
.fp-description p:last-child { margin-bottom: 0; }

/* Styles grid */
.fp-styles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
}
.fp-style-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 20px 14px 14px;
    text-align: center;
    transition: all var(--transition);
    cursor: default;
}
.fp-style-card:hover {
    border-color: rgba(255,255,255,.12);
    background: var(--color-surface-2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.fp-style-sample {
    display: block;
    font-size: 34px;
    line-height: 1.2;
    margin-bottom: 10px;
    color: var(--color-text);
}
.fp-style-name {
    font-size: 11px;
    color: var(--color-text-dim);
    display: block;
    letter-spacing: .3px;
}

/* Tags */
.fp-tags-row { display: flex; flex-wrap: wrap; gap: 7px; }
.fp-tag {
    padding: 6px 14px;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 100px;
    font-size: 12px;
    color: var(--color-text-dim);
    transition: all var(--transition);
    letter-spacing: .2px;
}
.fp-tag:hover {
    border-color: rgba(255,255,255,.15);
    color: var(--color-text-muted);
    background: rgba(255,255,255,.03);
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ SIDEBAR Ã¢â€â‚¬Ã¢â€â‚¬ */
.fp-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    top: 90px;
}
.fp-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 20px;
}
.fp-card-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-text-dim);
    margin-bottom: 16px;
}
.fp-details-list {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 20px;
    font-size: 13px;
}
.fp-details-list dt {
    color: var(--color-text-dim);
    font-size: 11px;
    letter-spacing: .3px;
    padding-top: 1px;
    white-space: nowrap;
}
.fp-details-list dd { color: var(--color-text-muted); }
.fp-details-list dd a { color: var(--color-text-muted); text-decoration: underline; text-decoration-color: var(--color-border); }
.fp-details-list dd a:hover { color: var(--color-text); text-decoration-color: var(--color-text-muted); }
.fp-cat-link {
    display: inline-block;
    padding: 2px 8px;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: 5px;
    font-size: 11.5px;
    color: var(--color-text-muted);
    margin: 2px 2px 0 0;
    transition: all var(--transition);
}
.fp-cat-link:hover { border-color: rgba(255,255,255,.15); color: var(--color-text); }
.fp-format-badge {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-text-muted);
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    padding: 2px 8px;
    border-radius: 5px;
    display: inline-block;
    letter-spacing: .8px;
}

/* Download card */
.fp-download-card {
    background: linear-gradient(160deg, rgba(108,99,255,.07) 0%, rgba(255,255,255,.01) 100%);
    border-color: rgba(108,99,255,.18);
}
.fp-download-note {
    font-size: 12px;
    color: var(--color-text-dim);
    margin-bottom: 16px;
    line-height: 1.7;
}
.fp-dl-stats {
    text-align: center;
    font-size: 11px;
    color: var(--color-text-dim);
    margin-top: 12px;
    display: flex;
    gap: 6px;
    justify-content: center;
    letter-spacing: .2px;
}

/* Share */
.fp-share-row { display: flex; gap: 8px; }
.fp-share-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 12px;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 12px;
    color: var(--color-text-dim);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    font-family: inherit;
    font-weight: 500;
    letter-spacing: .2px;
}
.fp-share-btn:hover { border-color: rgba(255,255,255,.15); color: var(--color-text-muted); }
.fp-share-btn.is-copied { border-color: #43e97b; color: #43e97b; }

/* Ã¢â€â‚¬Ã¢â€â‚¬ RELATED Ã¢â€â‚¬Ã¢â€â‚¬ */
.fp-related { margin-bottom: 40px; }
.fp-related-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px;
}
.fp-related-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.fp-related-sub {
    font-size: 12px;
    color: var(--color-text-dim);
    margin-top: 4px;
    letter-spacing: .2px;
}
.fp-slider-nav-btns { display: flex; gap: 6px; }

/* Ã¢â€â‚¬Ã¢â€â‚¬ VARIABLE FONT Ã¢â€â‚¬Ã¢â€â‚¬ */

/* Inline axes in Preview tab */
.fp-inline-axes {
    border-top: 1px solid var(--color-border);
    padding: 20px 56px 24px;
    background: rgba(108,99,255,.025);
}
.fp-inline-axes-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.fp-inline-axes-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-text-dim);
}
.fp-inline-axes-actions { display: flex; gap: 6px; }
.fp-inline-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 7px;
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-dim);
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
    letter-spacing: .3px;
}
.fp-inline-btn:hover { border-color: rgba(255,255,255,.15); color: var(--color-text-muted); }
.fp-inline-btn--copy.is-active { border-color: var(--color-accent); color: var(--color-accent); background: rgba(108,99,255,.1); }

.fp-inline-sliders {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 6px 40px;
}
.fp-iax {
    display: grid;
    grid-template-columns: 96px 1fr 52px;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}
.fp-iax-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fp-iax-tag {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-text-dim);
    display: inline-block;
    width: fit-content;
}
.fp-iax-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fp-iax-slider-wrap { display: flex; align-items: center; gap: 8px; }
.fp-iax-bound {
    font-size: 9px;
    font-family: var(--font-mono);
    color: var(--color-text-dim);
    flex-shrink: 0;
    min-width: 18px;
    opacity: .6;
}
.fp-iax-bound:last-child { text-align: right; }
.fp-iax-track { flex: 1; }

.fp-iax-range {
    -webkit-appearance: none;
    width: 100%;
    height: 2px;
    background: linear-gradient(
        to right,
        var(--color-text-muted) 0%,
        var(--color-text-muted) var(--pct, 50%),
        var(--color-border) var(--pct, 50%)
    );
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    transition: height .1s;
}
.fp-iax-range:hover { height: 3px; }
.fp-iax-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-text);
    box-shadow: 0 1px 6px rgba(0,0,0,.5);
    cursor: pointer;
    transition: transform .12s;
}
.fp-iax-range:hover::-webkit-slider-thumb,
.fp-iax-range:focus::-webkit-slider-thumb { transform: scale(1.2); }
.fp-iax-range:active::-webkit-slider-thumb { transform: scale(1.3); }

.fp-iax-val-wrap { text-align: right; }
.fp-iax-val {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--color-text-muted);
    display: inline-block;
    min-width: 44px;
    text-align: right;
    font-variant-numeric: tabular-nums;
    transition: color .1s;
}
.fp-iax:hover .fp-iax-val { color: var(--color-text); }

.fp-iax-css-wrap {
    margin-top: 14px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: rgba(0,0,0,.3);
}
.fp-iax-css {
    display: block;
    padding: 12px 16px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: #7dd3fc;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-all;
    margin: 0;
}

/* Variable font tab */
.fp-panel-variable { background: var(--color-bg); }
.fp-var-studio {
    display: grid;
    grid-template-columns: 1fr 360px;
    min-height: 500px;
}

/* Preview area */
.fp-var-preview-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 48px;
    background: var(--color-bg);
    border-right: 1px solid var(--color-border);
    min-height: 320px;
    position: relative;
    overflow: hidden;
}
/* Background grid for variable studio */
.fp-var-preview-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}
.fp-var-specimen {
    font-size: 80px;
    font-weight: 400;
    line-height: 1.1;
    text-align: center;
    transition: font-variation-settings .12s ease, font-weight .12s ease;
    word-break: break-word;
    max-width: 100%;
    position: relative;
    z-index: 1;
}
.fp-var-preview-hint {
    position: absolute;
    bottom: 18px;
    font-size: 10px;
    color: var(--color-text-dim);
    letter-spacing: .8px;
    text-transform: uppercase;
}

/* Controls panel */
.fp-var-controls {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--color-surface);
    overflow-y: auto;
    max-height: 600px;
}

/* Each axis */
.fp-axis-ctrl {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.fp-axis-ctrl:last-of-type { border-bottom: none; }

.fp-axis-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.fp-axis-info { display: flex; align-items: center; gap: 10px; }
.fp-axis-tag {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--color-text-dim);
    text-transform: uppercase;
}
.fp-axis-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-muted);
    letter-spacing: .2px;
}
.fp-axis-vals { display: flex; align-items: center; gap: 10px; }
.fp-axis-range {
    font-size: 10px;
    color: var(--color-text-dim);
    font-family: var(--font-mono);
}
.fp-axis-current {
    font-size: 13px;
    font-weight: 800;
    color: var(--color-text);
    font-family: var(--font-mono);
    min-width: 44px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* Axis range slider */
.fp-axis-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 2px;
    background: linear-gradient(
        to right,
        var(--color-text-muted) 0%,
        var(--color-text-muted) var(--pct, 50%),
        var(--color-border) var(--pct, 50%)
    );
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    margin-bottom: 6px;
    transition: height .1s;
}
.fp-axis-slider:hover { height: 3px; }
.fp-axis-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-text);
    box-shadow: 0 1px 6px rgba(0,0,0,.5);
    cursor: pointer;
    transition: transform .12s;
}
.fp-axis-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }
.fp-axis-slider:active::-webkit-slider-thumb { transform: scale(1.3); }
.fp-axis-ticks {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    color: var(--color-text-dim);
    font-family: var(--font-mono);
    opacity: .6;
}

/* Actions row */
.fp-var-actions {
    display: flex;
    gap: 6px;
    padding: 16px 0 8px;
    border-top: 1px solid var(--color-border);
    flex-wrap: wrap;
}
.fp-var-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 7px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--color-text-dim);
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
    letter-spacing: .2px;
}
.fp-var-action-btn:hover { border-color: rgba(255,255,255,.15); color: var(--color-text-muted); }

/* CSS output */
.fp-css-output {
    background: rgba(0,0,0,.3);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 12px;
}
.fp-css-label {
    padding: 8px 14px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-text-dim);
    border-bottom: 1px solid var(--color-border);
}
.fp-css-code {
    padding: 12px 14px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: #7dd3fc;
    line-height: 1.75;
    white-space: pre-wrap;
    word-break: break-all;
    margin: 0;
}

/* Axis chips in sidebar */
.fp-axis-chip {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--color-text-dim);
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    padding: 2px 7px;
    border-radius: 4px;
    margin: 2px 3px 2px 0;
    text-transform: uppercase;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ RESPONSIVE Ã¢â€â‚¬Ã¢â€â‚¬ */
@media (max-width: 1024px) {
    .fp-bottom-grid { grid-template-columns: 1fr 260px; gap: 32px; }
}
@media (max-width: 900px) {
    .fp-bottom-grid { grid-template-columns: 1fr; }
    .fp-sidebar { position: static; }
    .fp-hero { grid-template-columns: 1fr; gap: 32px; }
    .fp-hero-actions { align-items: flex-start; }
    .fp-stat-row { gap: 24px; }
    .fp-stat { text-align: left; }
    .fp-specimen-wrap,
    .fp-pangrams,
    .fp-glyphs-grid,
    .fp-waterfall { padding-left: 28px; padding-right: 28px; }
    .fp-inline-axes { padding-left: 28px; padding-right: 28px; }
    .fp-ctrl-bar { flex-direction: column; align-items: flex-start; }
    .fp-ctrl-right { flex-wrap: wrap; gap: 8px; }
    .fp-var-studio { grid-template-columns: 1fr; }
    .fp-var-preview-wrap { border-right: none; border-bottom: 1px solid var(--color-border); min-height: 240px; padding: 40px 28px; }
    .fp-var-specimen { font-size: 56px; }
    .fp-var-controls { max-height: none; }
}
@media (max-width: 600px) {
    .fp-page { padding: 0 20px 60px; }
    .fp-hero-title { font-size: 36px; letter-spacing: -1.5px; }
    .fp-specimen-wrap { padding: 40px 24px 32px; }
    .fp-specimen-text { font-size: 48px; }
    .fp-pangrams { padding: 0 24px 28px; }
    .fp-glyphs-grid,
    .fp-waterfall { padding: 24px; }
    .fp-inline-axes { padding: 14px 24px 18px; }
    .fp-inline-sliders { grid-template-columns: 1fr; }
    .fp-iax { grid-template-columns: 80px 1fr 44px; gap: 8px; }
    .fp-styles-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
    .fp-studio { border-radius: 14px; }
}


/* =============================================
   ADMIN - FONT UPLOAD META BOX
   ============================================= */
.font-upload-box {
    background: #1e1e2e;
    border: 1px solid #2a2a3e;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.font-upload-box h3 {
    color: #e8e8f0;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.upload-zone {
    border: 2px dashed #3a3a5a;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
    background: #15151f;
}

.upload-zone:hover, .upload-zone.drag-over {
    border-color: #6c63ff;
    background: rgba(108,99,255,0.05);
}

.upload-zone .upload-icon {
    font-size: 36px;
    margin-bottom: 12px;
    color: #4a4a6a;
}

.upload-zone p {
    color: #7a7a9a;
    font-size: 14px;
    margin-bottom: 8px;
}

.upload-zone .file-types {
    font-size: 12px;
    color: #4a4a6a;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    border-top: 1px solid var(--color-border);
    padding: 40px;
    text-align: center;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copy {
    font-size: 13px;
    color: var(--color-text-dim);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    font-size: 13px;
    color: var(--color-text-dim);
    transition: var(--transition);
}

.footer-links a:hover { color: var(--color-text-muted); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .font-info-grid { grid-template-columns: 1fr; }
    .font-download-box { position: static; }
}

@media (max-width: 768px) {
    .site-header { padding: 0 20px; }
    .header-search { display: none; }
    .hero-section { padding: 50px 20px 40px; }
    .filter-section, .fonts-section { padding-left: 20px; padding-right: 20px; }
    .fonts-grid { grid-template-columns: 1fr; }
    .hero-stats { gap: 28px; }
    .font-detail-page { padding: 40px 20px; }
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.font-card {
    animation: fadeInUp 0.4s ease both;
}

.font-card:nth-child(1) { animation-delay: 0.05s; }
.font-card:nth-child(2) { animation-delay: 0.10s; }
.font-card:nth-child(3) { animation-delay: 0.15s; }
.font-card:nth-child(4) { animation-delay: 0.20s; }
.font-card:nth-child(5) { animation-delay: 0.25s; }
.font-card:nth-child(6) { animation-delay: 0.30s; }

/* =============================================
   NOTICE / TOAST
   ============================================= */
.toast {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success { border-color: rgba(67,233,123,0.4); }
.toast.success::before { content: 'Ã¢Å“â€œ'; color: var(--color-accent-3); font-weight: 700; }
.toast.error { border-color: rgba(255,101,132,0.4); }
.toast.error::before { content: 'Ã¢Å“â€”'; color: var(--color-accent-2); font-weight: 700; }

/* Ã¢â€â‚¬Ã¢â€â‚¬ Variable badge Ã¢â‚¬â€ detail page Ã¢â€â‚¬Ã¢â€â‚¬ */
.gfd-meta-variable {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #a78bfa;
    background: rgba(167,139,250,.1);
    border: 1px solid rgba(167,139,250,.2);
    padding: 2px 9px 2px 7px;
    border-radius: 100px;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Variable badge Ã¢â‚¬â€ font card Ã¢â€â‚¬Ã¢â€â‚¬ */
.gf-card-variable {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .5px;
    color: #a78bfa;
    background: rgba(167,139,250,.12);
    border: 1px solid rgba(167,139,250,.18);
    padding: 1px 7px;
    border-radius: 100px;
    text-transform: uppercase;
    line-height: 1.6;
}
.gf-card-variable::before {
    content: '';
    display: inline-block;
    width: 6px; height: 6px;
    background: #a78bfa;
    border-radius: 50%;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Styles panel: shared single download bar Ã¢â€â‚¬Ã¢â€â‚¬ */
.gfd-styles-shared-dl {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    background: rgba(167,139,250,.06);
    border: 1px solid rgba(167,139,250,.15);
    border-radius: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.gfd-styles-shared-dl--multi {
    background: rgba(245,158,11,.06);
    border-color: rgba(245,158,11,.18);
}
.gfd-styles-shared-dl--multi .gfd-styles-shared-note {
    color: #d97706;
}
.gfd-styles-shared-note {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: #a78bfa;
    font-weight: 500;
}
.gfd-styles-shared-dl .gfd-btn-dl {
    background: #a78bfa;
    color: #fff;
    font-size: 12px;
    padding: 8px 18px;
}
.gfd-styles-shared-dl .gfd-btn-dl:hover {
    background: #c4b5fd;
    box-shadow: 0 4px 16px rgba(167,139,250,.3);
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ "Included" chip (no separate file) Ã¢â€â‚¬Ã¢â€â‚¬ */
.gfd-style-dl-incl {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--color-text-dim);
    padding: 6px 10px;
    border: 1px dashed var(--color-border);
    border-radius: 7px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ================================================================
   UNIFIED CONTROL BAR Ã¢â‚¬â€ gfd-ctrl-bar
   ================================================================ */
.gfd-ctrl-bar {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0 4px 0 0;
    margin: 0 0 2px;
    min-height: 52px;
    width: 100%;
    position: sticky;
    top: 60px;
    z-index: 40;
    overflow: visible;
}

/* Text input Ã¢â‚¬â€ takes available space */
.gfd-ctrl-text-wrap {
    flex: 1;
    min-width: 0;
}
.gfd-ctrl-text-wrap .gfd-tester-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    padding: 14px 18px;
    font-size: 18px;
    color: var(--color-text, #e8e8f0);
    border-radius: 12px 0 0 12px;
}
.gfd-ctrl-text-wrap .gfd-tester-input::placeholder { color: var(--color-text-dim, #4a4a6a); }

/* Right side controls */
.gfd-ctrl-right {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

.gfd-ctrl-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    height: 52px;
}
.gfd-ctrl-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--color-text-dim, #5a5a7a);
    white-space: nowrap;
}
.gfd-ctrl-val {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-dim, #7a7a9a);
    min-width: 34px;
    text-align: right;
}

/* Style select */
.gfd-select {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 6px;
    color: var(--color-text, #e8e8f0);
    font-size: 12px;
    padding: 5px 8px;
    cursor: pointer;
    outline: none;
    max-width: 130px;
}
.gfd-select:focus { border-color: rgba(108,99,255,.5); }

/* BG toggle inside ctrl bar */
.gfd-ctrl-bar .gfd-bg-toggle {
    display: flex;
    gap: 2px;
    padding: 0 12px;
    height: 52px;
    align-items: center;
    border-left: 1px solid var(--color-border, rgba(255,255,255,.08));
}
.gfd-bg-btn {
    width: 28px; height: 28px;
    border-radius: 6px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--color-text-dim, #5a5a7a);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all .15s;
}
.gfd-bg-btn.is-active,
.gfd-bg-btn:hover {
    background: rgba(108,99,255,.15);
    border-color: rgba(108,99,255,.3);
    color: var(--color-text, #e8e8f0);
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Variable axes dropdown Ã¢â€â‚¬Ã¢â€â‚¬ */
.gfd-ctrl-var-wrap {
    position: relative;
}
.gfd-ctrl-var-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: var(--color-text-dim, #7a7a9a);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 4px;
    border-radius: 6px;
    transition: color .15s;
    white-space: nowrap;
}
.gfd-ctrl-var-toggle:hover,
.gfd-ctrl-var-toggle.is-open { color: #a78bfa; }
.gfd-chevron {
    transition: transform .2s;
}
.gfd-ctrl-var-toggle.is-open .gfd-chevron { transform: rotate(180deg); }

.gfd-var-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 340px;
    background: var(--color-surface-2, #16161e);
    border: 1px solid var(--color-border, rgba(255,255,255,.1));
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 16px 48px rgba(0,0,0,.5);
    z-index: 100;
}
.gfd-var-dropdown.is-open { display: block; }

.gfd-var-row {
    margin-bottom: 12px;
}
.gfd-var-row:last-of-type { margin-bottom: 0; }
.gfd-var-row-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 6px;
}
.gfd-var-row-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .5px;
    color: #a78bfa;
    background: rgba(167,139,250,.12);
    padding: 1px 6px;
    border-radius: 4px;
}
.gfd-var-row-name {
    font-size: 12px;
    color: var(--color-text, #e8e8f0);
    font-weight: 500;
    flex: 1;
}
.gfd-var-row-range {
    font-size: 10px;
    color: var(--color-text-dim, #5a5a7a);
}
.gfd-var-row-val {
    font-size: 12px;
    font-weight: 700;
    color: #a78bfa;
    min-width: 36px;
    text-align: right;
}

.gfd-var-dropdown-actions {
    display: flex;
    gap: 6px;
    margin: 14px 0 12px;
    padding-top: 12px;
    border-top: 1px solid var(--color-border, rgba(255,255,255,.06));
}
.gfd-css-code {
    background: rgba(0,0,0,.3);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 10px;
    color: #7a9abf;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Remove old tester-bar styles that conflict */
.gfd-tester-bar { display: none !important; }


/* =============================================
   SINGLE FONT PAGE — layout & structural rules
   (colour inherited from dark theme variables)
   ============================================= */

/* Ctrl bar: sticky, scrollable, no wrap */
.gfd-page .gfd-ctrl-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    justify-content: flex-end;
}
.gfd-page .gfd-ctrl-bar::-webkit-scrollbar { display: none; }

.gfd-page .gfd-ctrl-text-wrap { display: none; }

.gfd-page .gfd-ctrl-right {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    flex-shrink: 0;
}
.gfd-page .gfd-ctrl-item { padding: 0 12px; gap: 6px; flex-shrink: 0; }

/* Title stats hidden */
.gfd-page .gfd-title-stats { display: none; }

/* Title area */
.gfd-page .gfd-title-area {
    padding: 40px 0 20px;
    border-bottom: none;
    flex-wrap: nowrap;
    align-items: flex-start;
}
.gfd-page .gfd-font-name {
    font-size: clamp(56px, 8vw, 96px);
    font-weight: 900;
    letter-spacing: -3px;
    line-height: .95;
    margin-bottom: 18px;
}

/* Info bar grid */
.gfd-page .gfd-info-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px 64px;
    padding: 32px 0 36px;
    border-bottom: 1px solid var(--color-border);
}
.gfd-page .gfd-info-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 32px;
    align-content: start;
}
.gfd-page .gfd-info-meta-item dt {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--color-text-dim);
    margin-bottom: 4px;
}
.gfd-page .gfd-info-meta-item dd {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-muted);
}
.gfd-page .gfd-info-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-text-dim);
    margin-bottom: 10px;
}
.gfd-page .gfd-info-desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin-bottom: 14px;
}
.gfd-page .gfd-info-getfont {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1px;
    transition: all .2s;
}
.gfd-page .gfd-info-getfont:hover { border-bottom-color: var(--color-text); gap: 7px; }

/* Style selector (right side of ctrl bar) */
.gfd-page .gfd-ctrl-style-selector {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    padding-left: 20px;
    border-left: 1px solid var(--color-border);
    margin-left: 8px;
    flex-shrink: 0;
}
.gfd-page .gfd-ctrl-style-label {
    font-size: 11px;
    color: var(--color-text-dim);
    letter-spacing: .3px;
    white-space: nowrap;
    font-weight: 400;
    line-height: 1;
}
.gfd-page .gfd-style-select-right {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--color-text) !important;
    background: transparent !important;
    border: none !important;
    padding: 2px 20px 2px 0 !important;
    cursor: pointer;
    appearance: auto;
    -webkit-appearance: auto;
    min-width: 120px;
    max-width: 220px;
    text-align: right;
    direction: rtl;
}
.gfd-page .gfd-style-select-right option { direction: ltr; text-align: left; }
.gfd-page .gfd-style-select-right:focus { outline: none; }

/* Waterfall editable rows */
.gfd-page .gfd-wf-txt,
.gfd-page .gfd-wf-editable {
    max-width: none !important;
    white-space: nowrap;
    overflow: hidden;
    flex: 1;
    min-width: 0;
    display: block;
}
.gfd-page .gfd-wf-row {
    display: flex;
    align-items: baseline;
    gap: 16px;
    overflow: hidden;
    border-bottom: 1px solid var(--color-border);
    padding: 14px 0;
}
.gfd-page .gfd-wf-row:last-child { border-bottom: none; }
.gfd-page .gfd-wf-sz {
    flex-shrink: 0;
    min-width: 36px;
    font-size: 11px;
    color: var(--color-text-dim);
    font-family: var(--font-mono, monospace);
    letter-spacing: .5px;
    text-align: right;
}
.gfd-page .gfd-wf-editable {
    outline: none;
    border-radius: 3px;
    cursor: text;
    transition: background .12s;
    padding: 0 4px;
    margin: 0 -4px;
}
.gfd-page .gfd-wf-editable:hover { background: rgba(255,255,255,.04); }
.gfd-page .gfd-wf-editable:focus { background: rgba(255,255,255,.06); white-space: pre; }

/* Size/weight controls */
.gfd-page #gfdSizeDisplay { min-width: 36px; }

/* Responsive */
@media (max-width: 900px) {
    .gfd-page .gfd-ctrl-item { padding: 0 8px; }
    .gfd-page .gfd-range { width: 64px; }
    .gfd-page .gfd-range--sm { width: 48px; }
    .gfd-page .gfd-ctrl-label { display: none; }
    .gfd-page .gfd-ctrl-val { min-width: 28px; font-size: 11px; }
    .gfd-page .gfd-info-bar { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 600px) {
    .gfd-page { padding: 0 16px 60px; }
    .gfd-page .gfd-font-name { letter-spacing: -2px; }
    .gfd-page .gfd-ctrl-item { padding: 0 6px; }
    .gfd-page .gfd-range { width: 52px; }
    .gfd-page .gfd-range--sm { width: 40px; }
    .gfd-page .gfd-ctrl-val { min-width: 24px; font-size: 10px; }
    .gfd-page .gfd-info-bar { padding: 24px 0 28px; }
    .gfd-page .gfd-info-meta-grid { grid-template-columns: 1fr 1fr; }
    .gfd-page .gfd-tabs { overflow-x: auto; scrollbar-width: none; }
    .gfd-page .gfd-tabs::-webkit-scrollbar { display: none; }
    .gfd-page .gfd-tab { white-space: nowrap; }
    .gfd-page .gfd-ctrl-style-selector { padding-left: 10px; margin-left: 4px; }
    .gfd-page .gfd-style-select-right { font-size: 13px !important; max-width: 120px; }
    .gfd-page .gfd-ctrl-style-label { display: none; }
}

/* ================================================================
   MOBILE IMPROVEMENTS — VnType V2 Enhanced
   ================================================================

   1. HEADER MOBILE — hamburger menu, search overlay
   2. CTRL BAR MOBILE — chỉ Size + Weight/Style trên mobile
   3. SINGLE FONT — ctrl bar treo dưới bottom bar trên mobile
   4. FONT ĐƠNG — thêm Line height control
   5. LAYOUT — waterfall, info-bar, related fonts
   ================================================================ */


/* ──────────────────────────────────────────────────────────
   1. HEADER MOBILE
   ────────────────────────────────────────────────────────── */

/* Mobile search toggle button */
.header-search-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    border: 1px solid var(--color-border);
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}
.header-search-toggle:hover {
    background: var(--color-surface-2);
    color: var(--color-text);
}

/* Mobile hamburger */
.header-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    border: 1px solid var(--color-border);
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}
.header-menu-toggle:hover {
    background: var(--color-surface-2);
    color: var(--color-text);
}
.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 16px;
}
.hamburger-icon span {
    display: block;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: var(--transition);
}
.header-menu-toggle.is-open .hamburger-icon span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.header-menu-toggle.is-open .hamburger-icon span:nth-child(2) {
    opacity: 0;
}
.header-menu-toggle.is-open .hamburger-icon span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Mobile nav drawer */
.mobile-nav-drawer {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(10,10,15,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 20px 20px;
    z-index: 99;
    flex-direction: column;
    gap: 4px;
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
}
.mobile-nav-drawer.is-open {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}
.mobile-nav-drawer a {
    display: block;
    padding: 12px 16px;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: var(--transition);
}
.mobile-nav-drawer a:hover,
.mobile-nav-drawer a.active {
    color: var(--color-text);
    background: var(--color-surface-2);
}

/* Mobile search overlay */
.mobile-search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10,10,15,0.97);
    backdrop-filter: blur(20px);
    z-index: 200;
    padding: 20px;
    flex-direction: column;
    gap: 16px;
}
.mobile-search-overlay.is-open {
    display: flex;
}
.mobile-search-header {
    display: flex;
    align-items: center;
    gap: 12px;
}
.mobile-search-close {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    border: 1px solid var(--color-border);
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}
.mobile-search-input-wrap {
    flex: 1;
    position: relative;
}
.mobile-search-input-wrap input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    background: var(--color-surface-2);
    border: 1px solid var(--color-accent);
    border-radius: 12px;
    color: var(--color-text);
    font-size: 16px;
    outline: none;
    box-shadow: 0 0 0 3px rgba(108,99,255,0.15);
}
.mobile-search-input-wrap .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-dim);
}

@media (max-width: 768px) {
    .site-header { padding: 0 16px; }
    .header-inner { height: 60px; gap: 10px; }
    .header-search { display: none; }
    .header-nav { display: none; }
    .header-search-toggle { display: flex; }
    .header-menu-toggle { display: flex; }
}


/* ──────────────────────────────────────────────────────────
   2. CTRL BAR MOBILE — ẩn Line + Space, chỉ giữ Size + Weight
   ────────────────────────────────────────────────────────── */

/* Tags để ẩn trên mobile: line-height và spacing ctrl items */
.gfd-ctrl-item--line,
.gfd-ctrl-item--space {
    /* Mặc định hiển thị desktop */
}

@media (max-width: 600px) {
    /* Ẩn Line và Space trên mobile */
    .gfd-ctrl-item--line,
    .gfd-ctrl-item--space {
        display: none !important;
    }

    /* Ctrl bar compact hơn */
    .gfd-page .gfd-ctrl-bar {
        min-height: 44px;
        padding: 0 2px 0 0;
        background: var(--color-surface);
        border-bottom: 1px solid var(--color-border);
    }

    /* Ctrl items: tăng hit area */
    .gfd-page .gfd-ctrl-item {
        height: 44px;
        padding: 0 10px;
        gap: 5px;
    }

    /* Range ngắn hơn trên mobile */
    .gfd-page .gfd-range { width: 60px; }
    .gfd-page .gfd-range--sm { width: 44px; }

    /* Value display rõ hơn */
    .gfd-page .gfd-ctrl-val {
        font-size: 11px;
        min-width: 26px;
        color: var(--color-text-muted);
    }

    /* Ctrl sep border mỏng hơn */
    .gfd-ctrl-sep {
        border-right: 1px solid var(--color-border);
    }
}


/* ──────────────────────────────────────────────────────────
   3. SINGLE FONT MOBILE — bottom sticky bar
   ────────────────────────────────────────────────────────── */

/* Nút download sticky bottom trên mobile */
.gfd-mobile-dl-bar {
    display: none;
}

@media (max-width: 600px) {
    .gfd-mobile-dl-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(10,10,15,0.95);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid var(--color-border);
        padding: 10px 16px;
        gap: 10px;
        align-items: center;
        z-index: 50;
    }
    .gfd-mobile-dl-bar .gfd-btn-dl {
        flex: 1;
        justify-content: center;
        padding: 11px 16px;
        font-size: 14px;
        font-weight: 700;
        border-radius: 10px;
    }

    /* Body padding để không bị che */
    .gfd-page { padding-bottom: 80px !important; }
}


/* ──────────────────────────────────────────────────────────
   4. FONT ĐƠN — Line height control hiển thị
      (css class .gfd-ctrl-item--line-single-only chỉ thấy khi single font)
   ────────────────────────────────────────────────────────── */

/* Trên mobile: font đơn (single, không multi) thì thêm Line ctrl */
/* Controlled via .gfd-page--single class added by PHP */
@media (max-width: 600px) {
    .gfd-page--single .gfd-ctrl-item--line {
        display: flex !important;  /* Hiện lại riêng cho font đơn */
    }
}


/* ──────────────────────────────────────────────────────────
   5. LAYOUT IMPROVEMENTS MOBILE
   ────────────────────────────────────────────────────────── */

/* Title area mobile */
@media (max-width: 600px) {
    .gfd-page .gfd-title-area {
        padding: 24px 0 16px;
    }
    .gfd-page .gfd-font-name {
        font-size: clamp(36px, 11vw, 64px);
        letter-spacing: -2px;
        line-height: 0.95;
        margin-bottom: 12px;
    }

    /* Breadcrumb header */
    .gfd-page .gfd-header {
        padding: 12px 0;
    }
    .gfd-header-current {
        max-width: 120px;
    }

    /* Info bar single column + compact */
    .gfd-page .gfd-info-bar {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 0 24px;
    }
    .gfd-page .gfd-info-meta-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px 20px;
    }
    .gfd-page .gfd-info-desc {
        font-size: 13px;
        line-height: 1.6;
    }

    /* Tabs — scroll ngang, không bọc */
    .gfd-page .gfd-tabs {
        gap: 2px;
        padding-bottom: 1px;
    }
    .gfd-page .gfd-tab {
        font-size: 13px;
        padding: 8px 14px;
    }

    /* Waterfall text nhỏ hơn 1 chút */
    .gfd-page .gfd-wf-row {
        padding: 10px 0;
        gap: 10px;
    }
    .gfd-page .gfd-wf-sz {
        font-size: 10px;
        min-width: 28px;
    }

    /* Paragraph section */
    .gfd-para-section { padding: 24px 0; }
    .gfd-para-text { font-size: 16px; line-height: 1.7; }

    /* Glyphs: grid nhỏ hơn */
    .gfd-glyph { width: 38px; height: 38px; font-size: 18px; }
    .gfd-glyph-group { margin-bottom: 24px; }
    .gfd-glyph-group-label {
        font-size: 10px;
        margin-bottom: 8px;
    }

    /* Style rows: kế thừa layout 768px (preview trên, name+dl dưới) */
    .gfd-style-row,
    .gfd-style-row--rich,
    .gfd-style-row--variable {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: 8px 12px;
        padding: 14px 0;
    }
    .gfd-style-sample {
        grid-row: 1;
        grid-column: 1 / -1;
        font-size: 26px !important;
    }
    .gfd-style-info {
        display: flex;
        flex-direction: row;
        align-items: center;
    }
    .gfd-style-dl,
    .gfd-style-dl-incl {
        grid-row: 2;
        grid-column: 2;
    }

    /* About panel */
    .gfd-about-wrap { gap: 24px; padding: 24px 0; }

    /* Related fonts: 1 cột trên rất nhỏ, 2 cột trên 360+ */
    .gfd-related-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .gfd-rel-preview { font-size: 24px; }
    .gfd-rel-card { padding: 14px 16px 16px; }

    /* Styles shared dl banner */
    .gfd-styles-shared-dl {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .gfd-styles-shared-dl .gfd-btn-dl {
        width: 100%;
        justify-content: center;
    }
}

/* 360px+ — related fonts 2 cột */
@media (min-width: 360px) and (max-width: 600px) {
    .gfd-related-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Tablet 601–900 */
@media (min-width: 601px) and (max-width: 900px) {
    .gfd-page { padding: 0 24px 60px; }
    .gfd-page .gfd-font-name {
        font-size: clamp(48px, 9vw, 80px);
    }
    .gfd-page .gfd-info-bar {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .gfd-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    /* Ctrl bar tablet: ẩn Space, giữ Line */
    .gfd-ctrl-item--space { display: none; }
}


/* ──────────────────────────────────────────────────────────
   6. RANGE SLIDER — đẹp hơn trên mobile (touch-friendly)
   ────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
    .gfd-range {
        height: 4px;
        cursor: pointer;
        -webkit-appearance: none;
        touch-action: pan-y;
    }
    .gfd-range::-webkit-slider-thumb {
        width: 20px;
        height: 20px;
        -webkit-appearance: none;
    }
    .gfd-range::-moz-range-thumb {
        width: 20px;
        height: 20px;
    }
}


/* ──────────────────────────────────────────────────────────
   7. VARIABLE FONT DROPDOWN — full-screen bottom sheet on mobile
   ────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
    .gfd-var-dropdown {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        width: 100% !important;
        border-radius: 20px 20px 0 0 !important;
        padding: 20px 20px 32px !important;
        max-height: 70vh;
        overflow-y: auto;
        box-shadow: 0 -8px 40px rgba(0,0,0,0.5) !important;
        /* pull handle */
        background-image: linear-gradient(
            to bottom,
            transparent 0%,
            transparent 100%
        );
    }
    .gfd-var-dropdown::before {
        content: '';
        display: block;
        width: 36px;
        height: 4px;
        background: var(--color-border);
        border-radius: 2px;
        margin: 0 auto 16px;
    }

    /* Backdrop overlay */
    .gfd-var-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 99;
    }
    .gfd-var-backdrop.is-open { display: block; }
}




