@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Georgian:wght@400;500;600;700&display=swap");
#fonts-ge-reference{
      --espresso: #2B1810;
      --espresso-light: #523A30;
      --coral:#CC5E45;
      --coral-hover:#B44F38;
      --bg-warm: #FAF7F4;
      --card-bg: #FFFFFF;
      --border-warm: #EAE2DC;
      --tag-bg: #F2EBE5;
    }
:where(#fonts-ge-reference),:where(#fonts-ge-reference *){
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }
#fonts-ge-reference{
      font-family: 'Noto Sans Georgian', RefInterface, sans-serif;
      background-color: var(--bg-warm);
      color: var(--espresso);
      line-height: 1.6;
    }
#fonts-ge-reference header{
      background: var(--card-bg);
      border-bottom: 1px solid var(--border-warm);
      position: sticky;
      top: 0;
      z-index: 100;
    }
#fonts-ge-reference .nav-container{
      max-width: 1280px;
      margin: 0 auto;
      padding: 16px 24px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
    }
#fonts-ge-reference .logo-wrap{
      display: flex;
      align-items: center;
      text-decoration: none;
    }
#fonts-ge-reference .logo-svg{
      height: 38px;
      width: auto;
    }
#fonts-ge-reference .nav-links{
      display: flex;
      gap: 28px;
      list-style: none;
      font-weight: 500;
      font-size: 15px;
    }
#fonts-ge-reference .nav-links a{
      text-decoration: none;
      color: var(--espresso-light);
      transition: color 0.2s;
    }
#fonts-ge-reference .nav-links a:hover,#fonts-ge-reference .nav-links a.active{
      color: var(--coral);
    }
#fonts-ge-reference .btn-upload{
      background-color: var(--espresso);
      color: #fff;
      padding: 10px 20px;
      border-radius: 10px;
      text-decoration: none;
      font-weight: 500;
      font-size: 14px;
      transition: background 0.2s;
    }
#fonts-ge-reference .btn-upload:hover{
      background-color: var(--coral);
    }
#fonts-ge-reference .hero{
      max-width: 1280px;
      margin: 0 auto;
      padding: 48px 24px 32px;
      text-align: center;
    }
#fonts-ge-reference .hero h1{
      font-size: 34px;
      font-weight: 700;
      margin-bottom: 10px;
      color: var(--espresso);
    }
#fonts-ge-reference .hero p{
      color: var(--espresso-light);
      font-size: 16px;
      margin-bottom: 28px;
    }
#fonts-ge-reference .search-bar{
      max-width: 680px;
      margin: 0 auto;
      display: flex;
      background: var(--card-bg);
      border: 2px solid var(--border-warm);
      border-radius: 14px;
      overflow: hidden;
      box-shadow: 0 6px 20px rgba(43, 24, 16, 0.04);
      transition: border-color 0.2s;
    }
#fonts-ge-reference .search-bar:focus-within{
      border-color: var(--coral);
    }
#fonts-ge-reference .search-bar input{
      flex: 1;
      border: none;
      padding: 16px 20px;
      font-size: 16px;
      font-family: inherit;
      color: var(--espresso);
      outline: none;
    }
#fonts-ge-reference .search-bar button{
      background: var(--coral);
      color: #fff;
      border: none;
      padding: 0 28px;
      font-weight: 600;
      font-size: 15px;
      cursor: pointer;
      font-family: inherit;
      transition: background 0.2s;
    }
#fonts-ge-reference .search-bar button:hover{
      background: var(--coral-hover);
    }
#fonts-ge-reference .toolbar-wrap{
      max-width: 1280px;
      margin: 0 auto 28px;
      padding: 0 24px;
    }
#fonts-ge-reference .toolbar{
      background: var(--card-bg);
      border: 1px solid var(--border-warm);
      border-radius: 14px;
      padding: 16px 20px;
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
      align-items: center;
      justify-content: space-between;
    }
#fonts-ge-reference .preview-input-group{
      flex: 1;
      min-width: 260px;
      display: flex;
      align-items: center;
      gap: 12px;
      border-right: 1px solid var(--border-warm);
      padding-right: 20px;
    }
#fonts-ge-reference .preview-input-group input{
      width: 100%;
      border: 1px solid var(--border-warm);
      background: var(--bg-warm);
      padding: 10px 14px;
      border-radius: 8px;
      font-family: inherit;
      font-size: 15px;
      color: var(--espresso);
      outline: none;
    }
#fonts-ge-reference .preview-input-group input:focus{
      border-color: var(--coral);
    }
#fonts-ge-reference .size-slider-group{
      display: flex;
      align-items: center;
      gap: 12px;
      font-size: 14px;
      font-weight: 500;
    }
#fonts-ge-reference .size-slider-group input[type="range"]{
      accent-color: var(--coral);
      cursor: pointer;
    }
#fonts-ge-reference .categories{
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }
#fonts-ge-reference .cat-btn{
      background: var(--tag-bg);
      border: none;
      padding: 8px 16px;
      border-radius: 20px;
      font-family: inherit;
      font-size: 13.5px;
      font-weight: 500;
      color: var(--espresso);
      cursor: pointer;
      transition: all 0.2s;
    }
#fonts-ge-reference .cat-btn.active,#fonts-ge-reference .cat-btn:hover{
      background: var(--coral);
      color: #fff;
    }
#fonts-ge-reference .fonts-container{
      max-width: 1280px;
      margin: 0 auto 60px;
      padding: 0 24px;
      display: flex;
      flex-direction: column;
      gap: 18px;
    }
#fonts-ge-reference .font-card{
      background: var(--card-bg);
      border: 1px solid var(--border-warm);
      border-radius: var(--card-radius, 16px);
      padding: 24px 28px;
      transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
    }
#fonts-ge-reference .font-card:hover{
      border-color: #D5C7BD;
      box-shadow: 0 8px 24px rgba(43, 24, 16, 0.05);
    }
#fonts-ge-reference .font-card-header{
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 16px;
      flex-wrap: wrap;
      gap: 12px;
    }
#fonts-ge-reference .font-meta{
      display: flex;
      align-items: center;
      gap: 12px;
    }
#fonts-ge-reference .font-name{
      font-size: 18px;
      font-weight: 700;
      color: var(--espresso);
    }
#fonts-ge-reference .font-badge{
      background: var(--tag-bg);
      color: var(--espresso-light);
      font-size: 12px;
      padding: 3px 10px;
      border-radius: 6px;
      font-weight: 500;
    }
#fonts-ge-reference .font-author{
      font-size: 13px;
      color: var(--espresso-light);
    }
#fonts-ge-reference .font-actions{
      display: flex;
      align-items: center;
      gap: 14px;
    }
#fonts-ge-reference .download-count{
      font-size: 13px;
      color: var(--espresso-light);
    }
#fonts-ge-reference .btn-download{
      background: var(--coral);
      color: #fff;
      border: none;
      padding: 9px 18px;
      border-radius: 9px;
      font-family: inherit;
      font-weight: 600;
      font-size: 13.5px;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 6px;
      transition: background 0.2s;
    }
#fonts-ge-reference .btn-download:hover{
      background: var(--espresso);
    }
#fonts-ge-reference .font-sample{
      font-size: 36px;
      color: var(--espresso);
      padding: 8px 0;
      word-break: break-word;
      outline: none;
    }
#fonts-ge-reference footer{
      border-top: 1px solid var(--border-warm);
      background: var(--card-bg);
      padding: 32px 24px;
      text-align: center;
      font-size: 14px;
      color: var(--espresso-light);
    }
#fonts-ge-reference .logo-svg{width:172px;height:auto;display:block}
#fonts-ge-reference button,#fonts-ge-reference a{-webkit-tap-highlight-color:transparent}
#fonts-ge-reference a.btn-download{color:#fff;text-decoration:none;white-space:nowrap}
#fonts-ge-reference button:focus-visible,#fonts-ge-reference a:focus-visible,#fonts-ge-reference input:focus-visible,#fonts-ge-reference textarea:focus-visible{outline:2px solid var(--coral);outline-offset:4px}
#fonts-ge-reference [hidden]{display:none!important}
#fonts-ge-reference .results-info{max-width:1280px;margin:0 auto 14px;padding:0 24px;display:flex;justify-content:space-between;gap:15px;font-size:12px;color:var(--espresso-light)}
#fonts-ge-reference .fonts-container .font-card-header{gap:15px}
#fonts-ge-reference .font-meta{flex-wrap:wrap;row-gap:6px}
#fonts-ge-reference .font-author{font-size:12px}
#fonts-ge-reference .font-name{font-family:Arial,'Noto Sans Georgian',RefInterface,sans-serif}
#fonts-ge-reference .font-sample{line-height:1.6}
#fonts-ge-reference .empty-state{padding:40px 20px;text-align:center;background:var(--card-bg);border:1px solid var(--border-warm);border-radius:14px;color:var(--espresso-light)}
#fonts-ge-reference .empty-state button{border:0;background:var(--coral);color:#fff;border-radius:8px;padding:10px 18px;font:inherit;cursor:pointer;margin-top:16px}
#fonts-ge-reference .converter-dialog{max-width:700px;width:calc(100% - 32px);border:1px solid var(--border-warm);border-radius:16px;padding:28px;background:var(--bg-warm);color:var(--espresso);font-family:inherit}
#fonts-ge-reference .converter-dialog::backdrop{background:#2b181075;backdrop-filter:blur(4px)}
#fonts-ge-reference .converter-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:12px}
#fonts-ge-reference .converter-heading h2{font-size:23px}
#fonts-ge-reference .converter-heading button{background:none;border:0;font:28px Arial;cursor:pointer;color:var(--espresso)}
#fonts-ge-reference .converter-dialog>p{color:var(--espresso-light);font-size:13px}
#fonts-ge-reference .converter-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:23px}
#fonts-ge-reference .converter-fields label{display:grid;gap:10px;font-size:13px}
#fonts-ge-reference .converter-fields textarea{width:100%;min-height:180px;resize:vertical;background:white;border:1px solid var(--border-warm);border-radius:8px;padding:15px;color:var(--espresso);font:16px/1.8 'Noto Sans Georgian',RefInterface,sans-serif}
@media(max-width:1000px){#fonts-ge-reference .nav-container{gap:17px}
#fonts-ge-reference .nav-links{gap:18px;font-size:13px}
#fonts-ge-reference .btn-upload{font-size:12px;padding:10px 13px}
#fonts-ge-reference .logo-svg{width:152px}
#fonts-ge-reference .toolbar{gap:17px}
#fonts-ge-reference .preview-input-group{flex-basis:45%;min-width:0}
#fonts-ge-reference .categories{flex-basis:100%}
#fonts-ge-reference .font-meta{max-width:100%}
#fonts-ge-reference .font-card-header{align-items:flex-start}
#fonts-ge-reference .font-name{font-size:17px}
#fonts-ge-reference .font-author{flex-basis:100%;padding-top:2px}}
@media(max-width:650px){#fonts-ge-reference header{position:static}
#fonts-ge-reference .nav-container{padding:15px 18px;flex-wrap:wrap;gap:13px}
#fonts-ge-reference .logo-svg{width:149px}
#fonts-ge-reference .nav-links{order:3;width:100%;justify-content:space-between;gap:6px;font-size:11px}
#fonts-ge-reference .btn-upload{margin-left:auto;font-size:11px;padding:9px 11px}
#fonts-ge-reference .hero{padding:30px 18px 24px}
#fonts-ge-reference .hero h1{font-size:25px;line-height:1.6;margin-bottom:9px}
#fonts-ge-reference .hero p{font-size:13px;line-height:1.9;margin-bottom:21px}
#fonts-ge-reference .search-bar{border-radius:11px}
#fonts-ge-reference .search-bar input{width:100%;min-width:0;font-size:13px;padding:13px}
#fonts-ge-reference .search-bar button{padding:0 17px;font-size:13px}
#fonts-ge-reference .toolbar-wrap{padding:0 18px;margin-bottom:18px}
#fonts-ge-reference .toolbar{padding:15px;gap:15px;border-radius:12px}
#fonts-ge-reference .preview-input-group{flex-basis:100%;padding:0;border:0;min-width:0}
#fonts-ge-reference .preview-input-group input{font-size:16px;padding:10px 12px}
#fonts-ge-reference .size-slider-group{flex-basis:100%;font-size:12px;justify-content:space-between;gap:15px}
#fonts-ge-reference .size-slider-group input{flex:1;max-width:200px;min-width:0}
#fonts-ge-reference .categories{gap:6px}
#fonts-ge-reference .cat-btn{font-size:11px;padding:8px 12px}
#fonts-ge-reference .fonts-container{padding:0 18px;margin-bottom:30px;gap:13px}
#fonts-ge-reference .font-card{padding:20px 18px}
#fonts-ge-reference .font-card-header{gap:14px;margin-bottom:15px}
#fonts-ge-reference .font-meta{gap:7px;flex-basis:100%;row-gap:7px}
#fonts-ge-reference .font-name{font-size:17px;overflow-wrap:anywhere}
#fonts-ge-reference .font-badge{font-size:10px}
#fonts-ge-reference .font-author{font-size:11px;flex-basis:100%}
#fonts-ge-reference .font-actions{width:100%;justify-content:space-between;gap:10px}
#fonts-ge-reference .download-count{font-size:11px}
#fonts-ge-reference .btn-download{font-size:12px;padding:9px 13px}
#fonts-ge-reference .font-sample{line-height:1.55;padding:5px 0;overflow-wrap:anywhere}
#fonts-ge-reference .results-info{padding:0 18px;font-size:11px;gap:12px;align-items:flex-start}
#fonts-ge-reference .results-info span:last-child{max-width:150px;text-align:right}
#fonts-ge-reference footer{padding:24px 18px;font-size:12px;line-height:1.9}
#fonts-ge-reference .converter-dialog{padding:22px}
#fonts-ge-reference .converter-heading h2{font-size:21px}
#fonts-ge-reference .converter-fields{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){#fonts-ge-reference,#fonts-ge-reference *{transition:none!important}}
#fonts-ge-reference{--card-radius:16px;color-scheme:light;text-align:left;overflow:clip}#fonts-ge-reference button,#fonts-ge-reference a{cursor:var(--cursor-interaction,pointer)}
@font-face{font-family:RefInterface;src:url("interface.ttf") format("truetype");font-display:swap}

#fonts-ge-reference .nav-links button{border:0;background:none;padding:0;color:var(--espresso-light);font:inherit;cursor:pointer}
#fonts-ge-reference .nav-links button:hover{color:var(--coral)}
#fonts-ge-reference .font-name{text-decoration:none}
#fonts-ge-reference .font-name:hover{color:var(--coral)}
#fonts-ge-reference .categories{flex-basis:100%}
#fonts-ge-reference a.cat-btn{display:inline-block;text-decoration:none}
#fonts-ge-reference .sort-group{display:flex;align-items:center;gap:10px;font-size:12px}
#fonts-ge-reference .sort-group select{font:inherit;background:var(--bg-warm);border:1px solid var(--border-warm);padding:8px 11px;border-radius:8px;color:var(--espresso)}
#fonts-ge-reference .sort-submit{border:1px solid var(--border-warm);padding:8px 12px;background:var(--tag-bg);border-radius:8px;font:inherit;cursor:pointer}
#fonts-ge-reference.has-js .sort-submit{display:none}
#fonts-ge-reference .pagination{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;padding:10px 0}
#fonts-ge-reference .pagination a{display:inline-flex;align-items:center;justify-content:center;min-width:36px;min-height:36px;padding:7px 12px;background:white;color:var(--espresso);text-decoration:none;border:1px solid var(--border-warm);border-radius:8px;font-size:13px}
#fonts-ge-reference .pagination a[aria-current=page]{color:white;background:var(--coral);border-color:var(--coral)}
#fonts-ge-reference .pagination a:hover{border-color:var(--coral)}
#fonts-ge-reference .page-summary{font-size:12px;color:var(--espresso-light);margin:0 10px}
#fonts-ge-reference .empty-state h2{font-size:23px;margin-bottom:12px}
#fonts-ge-reference .empty-state .btn-upload{display:inline-flex;margin-top:20px;text-decoration:none}
#fonts-ge-reference .footer-note{margin-top:10px;color:var(--espresso-light);font-size:12px}
#fonts-ge-reference .footer-note a{color:var(--coral);text-decoration:none}
#fonts-ge-reference .font-author{overflow-wrap:anywhere}
@media(max-width:1000px){#fonts-ge-reference .nav-container>nav{order:3;width:100%}#fonts-ge-reference .nav-container{flex-wrap:wrap}#fonts-ge-reference .nav-container .btn-upload{margin-left:auto}#fonts-ge-reference .nav-links{justify-content:center}}
@media(max-width:650px){#fonts-ge-reference .nav-links{justify-content:space-between}#fonts-ge-reference .sort-group{flex-basis:100%;justify-content:space-between}#fonts-ge-reference .sort-group select{min-width:150px}#fonts-ge-reference .page-summary{display:none}}

/* Light / dark theme. theme.js sets html[data-theme] before first paint. */
html,body{margin:0;background:#FAF7F4}
#fonts-ge-reference{--surface-input:#FFFFFF;--btn-strong:#2B1810;--card-hover-border:#D5C7BD;--shadow:rgba(43,24,16,.05)}
html[data-theme=dark],html[data-theme=dark] body{background:#17110E}
html[data-theme=dark] #fonts-ge-reference{
  color-scheme:dark;
  --espresso:#F3EAE4;
  --espresso-light:#BCAAA0;
  --coral:#E47A62;
  --coral-hover:#EC9480;
  --bg-warm:#17110E;
  --card-bg:#211915;
  --border-warm:#3A2D27;
  --tag-bg:#2E231E;
  --surface-input:#1B1411;
  --btn-strong:#3D2E27;
  --card-hover-border:#5A463D;
  --shadow:rgba(0,0,0,.35);
}
#fonts-ge-reference .btn-upload{background-color:var(--btn-strong)}
#fonts-ge-reference .btn-upload:hover{background-color:var(--coral)}
#fonts-ge-reference .btn-download:hover{background:var(--btn-strong)}
#fonts-ge-reference .font-card:hover{border-color:var(--card-hover-border);box-shadow:0 8px 24px var(--shadow)}
#fonts-ge-reference .search-bar input{background:var(--surface-input)}
#fonts-ge-reference .search-bar input::placeholder,#fonts-ge-reference .preview-input-group input::placeholder,#fonts-ge-reference .converter-fields textarea::placeholder{color:var(--espresso-light);opacity:.75}
#fonts-ge-reference .converter-fields textarea,#fonts-ge-reference .pagination a{background:var(--surface-input)}
#fonts-ge-reference .pagination a[aria-current=page]{background:var(--coral);color:#fff}
#fonts-ge-reference .sort-submit{color:var(--espresso)}
html[data-theme=dark] #fonts-ge-reference .converter-dialog::backdrop{background:#000000a6}
#fonts-ge-reference .logo-dark{display:none}
html[data-theme=dark] #fonts-ge-reference .logo-light{display:none}
html[data-theme=dark] #fonts-ge-reference .logo-dark{display:block}
#fonts-ge-reference .header-actions{display:flex;align-items:center;gap:12px}
#fonts-ge-reference .theme-toggle{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border:1px solid var(--border-warm);border-radius:10px;background:var(--card-bg);color:var(--espresso-light);cursor:pointer;transition:color .2s,border-color .2s}
#fonts-ge-reference .theme-toggle:hover{color:var(--coral);border-color:var(--coral)}
#fonts-ge-reference .theme-toggle .icon-sun{display:none}
html[data-theme=dark] #fonts-ge-reference .theme-toggle .icon-sun{display:block}
html[data-theme=dark] #fonts-ge-reference .theme-toggle .icon-moon{display:none}
@media(max-width:1000px){#fonts-ge-reference .header-actions{margin-left:auto}#fonts-ge-reference .header-actions .btn-upload{margin-left:0}}
@media(max-width:650px){#fonts-ge-reference .theme-toggle{width:34px;height:34px}#fonts-ge-reference .header-actions{gap:8px}#fonts-ge-reference .logo-svg{width:128px}}

/* Card chips and font page */
#fonts-ge-reference .chips{display:inline-flex;flex-wrap:wrap;gap:5px}
#fonts-ge-reference .chip{font-size:11px;line-height:1;padding:5px 8px;border-radius:6px;border:1px solid var(--border-warm);color:var(--espresso-light);white-space:nowrap}
#fonts-ge-reference .chip-lari{color:var(--coral);border-color:var(--coral);font-weight:700}
#fonts-ge-reference .chip-muted{background:var(--tag-bg);border-color:transparent}
#fonts-ge-reference a.font-sample{display:block;color:var(--espresso);text-decoration:none}
#fonts-ge-reference a.font-sample:hover{color:var(--coral)}
#fonts-ge-reference .font-page{max-width:1280px;margin:0 auto 60px;padding:28px 24px 0;display:flex;flex-direction:column;gap:20px}
#fonts-ge-reference .back-link{color:var(--espresso-light);text-decoration:none;font-size:14px;align-self:flex-start}
#fonts-ge-reference .back-link:hover{color:var(--coral)}
#fonts-ge-reference .fp-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;flex-wrap:wrap}
#fonts-ge-reference .fp-title h1{font-size:34px;line-height:1.3;margin-bottom:10px;font-family:Arial,'Noto Sans Georgian',RefInterface,sans-serif;overflow-wrap:anywhere}
#fonts-ge-reference .fp-actions{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
#fonts-ge-reference .btn-download-lg{font-size:15px;padding:12px 24px;border-radius:11px}
#fonts-ge-reference .fp-toolbar{justify-content:flex-start}
#fonts-ge-reference .fp-toolbar .preview-input-group{border-right:0;padding-right:0}
#fonts-ge-reference .fp-card{background:var(--card-bg);border:1px solid var(--border-warm);border-radius:16px;padding:24px 28px}
#fonts-ge-reference .fp-card h2,#fonts-ge-reference .fp-similar h2{font-size:15px;font-weight:600;color:var(--espresso-light);margin-bottom:16px;display:flex;align-items:center;gap:8px}
#fonts-ge-reference .count{font-size:12px;font-weight:500;background:var(--tag-bg);border-radius:6px;padding:2px 8px}
#fonts-ge-reference .fp-sample{font-size:56px;line-height:1.35;padding:0}
#fonts-ge-reference .waterfall-row{display:grid;grid-template-columns:52px 1fr;align-items:baseline;gap:16px;padding:10px 0;border-top:1px solid var(--border-warm)}
#fonts-ge-reference .waterfall-row:first-of-type{border-top:0}
#fonts-ge-reference .waterfall-size{font-size:12px;color:var(--espresso-light)}
#fonts-ge-reference .waterfall-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.4}
#fonts-ge-reference .alphabet{display:grid;grid-template-columns:130px 1fr;gap:16px;padding:12px 0;border-top:1px solid var(--border-warm);align-items:baseline}
#fonts-ge-reference .alphabet:first-of-type{border-top:0}
#fonts-ge-reference .alphabet-label{font-size:12px;color:var(--espresso-light)}
#fonts-ge-reference .alphabet-text{font-size:30px;line-height:1.5;letter-spacing:.04em;overflow-wrap:anywhere}
#fonts-ge-reference .fp-columns{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:20px;align-items:start}
#fonts-ge-reference .fp-columns>.fp-card:only-child{grid-column:1/-1}
#fonts-ge-reference .details{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:0 24px}
#fonts-ge-reference .details>div{display:flex;justify-content:space-between;gap:16px;padding:9px 0;border-bottom:1px solid var(--border-warm);font-size:14px}
#fonts-ge-reference .details dt{color:var(--espresso-light)}
#fonts-ge-reference .details dd{text-align:right;font-weight:500;overflow-wrap:anywhere}
#fonts-ge-reference .details a,#fonts-ge-reference .fp-comments a{color:var(--coral);text-decoration:none}
#fonts-ge-reference .fp-comments{margin-top:16px;font-size:13px;color:var(--espresso-light);overflow-wrap:anywhere}
#fonts-ge-reference .mini-list{list-style:none;display:flex;flex-direction:column}
#fonts-ge-reference .mini-list a{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:10px 0;border-bottom:1px solid var(--border-warm);text-decoration:none;color:var(--espresso)}
#fonts-ge-reference .mini-list li:last-child a{border-bottom:0}
#fonts-ge-reference .mini-list a:hover .mini-name{color:var(--coral)}
#fonts-ge-reference .mini-name{font-size:13px;font-weight:600;font-family:Arial,'Noto Sans Georgian',RefInterface,sans-serif}
#fonts-ge-reference .mini-sample{font-size:22px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#fonts-ge-reference .glyphs summary{cursor:pointer;list-style:none}
#fonts-ge-reference .glyphs summary::-webkit-details-marker{display:none}
#fonts-ge-reference .glyphs summary h2{margin-bottom:0}
#fonts-ge-reference .glyphs summary h2::after{content:'＋';margin-left:auto;color:var(--coral)}
#fonts-ge-reference .glyphs[open] summary h2{margin-bottom:16px}
#fonts-ge-reference .glyphs[open] summary h2::after{content:'－'}
#fonts-ge-reference .glyph-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(48px,1fr));gap:4px}
#fonts-ge-reference .glyph-grid span{display:flex;align-items:center;justify-content:center;aspect-ratio:1;font-size:24px;background:var(--bg-warm);border-radius:6px}
#fonts-ge-reference .similar-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:14px}
#fonts-ge-reference .similar-card{display:flex;flex-direction:column;gap:6px;background:var(--card-bg);border:1px solid var(--border-warm);border-radius:14px;padding:18px;text-decoration:none;color:var(--espresso);transition:border-color .15s}
#fonts-ge-reference .similar-card:hover{border-color:var(--coral)}
#fonts-ge-reference .similar-sample{font-size:34px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:800px){#fonts-ge-reference .fp-columns{grid-template-columns:1fr}#fonts-ge-reference .fp-actions{align-items:flex-start}}
@media(max-width:650px){#fonts-ge-reference .font-page{padding:20px 18px 0;gap:14px}#fonts-ge-reference .fp-title h1{font-size:25px}#fonts-ge-reference .fp-card{padding:18px}#fonts-ge-reference .fp-sample{font-size:36px}#fonts-ge-reference .alphabet{grid-template-columns:1fr;gap:4px}#fonts-ge-reference .alphabet-text{font-size:24px}#fonts-ge-reference .waterfall-row{grid-template-columns:40px 1fr;gap:10px}#fonts-ge-reference .details{grid-template-columns:1fr}#fonts-ge-reference .chip{font-size:10px}}/* Tagline beside the header logo, after a thin divider (2026-10-17, variant 2). */
#fonts-ge-reference .logo-wrap{align-items:center;flex:none}#fonts-ge-reference .logo-wrap .logo-svg{flex:none}
#fonts-ge-reference .logo-tagline{display:flex;align-items:center;align-self:stretch;margin-left:14px;padding-left:14px;border-left:1px solid var(--border-warm);white-space:nowrap;font-family:'Noto Sans Georgian',RefInterface,sans-serif;font-size:.74rem;font-weight:500;line-height:1.25;color:var(--espresso-light)}
@media(max-width:650px),(min-width:1001px) and (max-width:1249px){#fonts-ge-reference .logo-tagline{display:none}}

/* Font page: script presets and missing-glyph note */
#fonts-ge-reference .presets{display:flex;flex-wrap:wrap;gap:6px;flex-basis:100%}
#fonts-ge-reference .preset{font:inherit;font-size:12.5px;padding:6px 12px;border-radius:16px;border:1px solid var(--border-warm);background:var(--tag-bg);color:var(--espresso);cursor:pointer}
#fonts-ge-reference .preset:hover{border-color:var(--coral);color:var(--coral)}
#fonts-ge-reference .preset-missing{background:transparent;color:var(--espresso-light);border-style:dashed}
#fonts-ge-reference .missing-note{margin-top:14px;font-size:13px;color:var(--coral);overflow-wrap:anywhere}
/* Language switch next to the theme button (2026-10-18). */
#fonts-ge-reference .lang-switch{display:inline-flex;height:40px;border:1px solid var(--border-warm);border-radius:10px;background:var(--card-bg);overflow:hidden;flex:none}
#fonts-ge-reference .lang-switch a{display:inline-flex;align-items:center;padding:0 10px;font-size:.78rem;font-weight:600;letter-spacing:.04em;color:var(--espresso-light);text-decoration:none;transition:color .2s,background-color .2s}
#fonts-ge-reference .lang-switch a+a{border-left:1px solid var(--border-warm)}
#fonts-ge-reference .lang-switch a:hover{color:var(--coral)}
#fonts-ge-reference .lang-switch a[aria-current]{color:var(--coral);background:var(--tag-bg)}
@media(max-width:650px){#fonts-ge-reference .lang-switch{height:34px}#fonts-ge-reference .lang-switch a{padding:0 8px}}
/* Georgian labels are longer: below 1350px the menu takes its own row, as under 1000px, which leaves room for the tagline. */
@media(min-width:1001px) and (max-width:1349px){html[lang=ka] #fonts-ge-reference .nav-container{flex-wrap:wrap;gap:17px}html[lang=ka] #fonts-ge-reference .nav-container>nav{order:3;width:100%}html[lang=ka] #fonts-ge-reference .nav-links{justify-content:center}html[lang=ka] #fonts-ge-reference .header-actions{margin-left:auto}html[lang=ka] #fonts-ge-reference .logo-tagline{display:flex}}
/* ka-wide-row: on one row the Georgian menu needs tighter spacing and labels that never break. */
@media(min-width:1350px){html[lang=ka] #fonts-ge-reference .nav-links{gap:18px}html[lang=ka] #fonts-ge-reference .nav-container{gap:16px}}
html[lang=ka] #fonts-ge-reference .nav-links a,html[lang=ka] #fonts-ge-reference .nav-links button,#fonts-ge-reference .header-actions .btn-upload{white-space:nowrap}

/* Theme menu: light/dark and warm/cool palette (2026-10-18). */
#fonts-ge-reference .theme-menu{position:relative;flex:none}
#fonts-ge-reference .theme-toggle[aria-expanded=true]{color:var(--coral);border-color:var(--coral)}
#fonts-ge-reference .theme-panel{position:absolute;top:calc(100% + 8px);right:0;z-index:200;display:flex;flex-direction:column;gap:8px;padding:10px;background:var(--card-bg);border:1px solid var(--border-warm);border-radius:12px;box-shadow:0 10px 28px var(--shadow)}
#fonts-ge-reference .theme-panel[hidden]{display:none}
#fonts-ge-reference .theme-seg{display:flex;border:1px solid var(--border-warm);border-radius:9px;overflow:hidden}
#fonts-ge-reference .theme-seg button{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:84px;padding:7px 12px;border:0;background:none;font-family:inherit;font-size:.8rem;font-weight:500;color:var(--espresso-light);white-space:nowrap;cursor:pointer}
#fonts-ge-reference .theme-seg button+button{border-left:1px solid var(--border-warm)}
#fonts-ge-reference .theme-seg button:hover{color:var(--coral)}
#fonts-ge-reference .theme-seg button[aria-pressed=true]{color:var(--coral);background:var(--tag-bg)}
#fonts-ge-reference .swatch{width:12px;height:12px;border-radius:50%;flex:none;border:1px solid rgba(0,0,0,.15)}
#fonts-ge-reference .swatch-warm{background:linear-gradient(135deg,#FAF7F4 50%,#2B1810 50%)}
#fonts-ge-reference .swatch-cool{background:linear-gradient(135deg,#F4F6F9 50%,#172231 50%)}

/* Cool palette "A" (slate). Warm stays the default without an attribute. */
html[data-palette=cool],html[data-palette=cool] body{background:#F4F6F9}
html[data-palette=cool] #fonts-ge-reference{
  --espresso:#172231;
  --espresso-light:#46546A;
  --coral:#CC5E45;
  --coral-hover:#B44F38;
  --bg-warm:#F4F6F9;
  --card-bg:#FFFFFF;
  --border-warm:#DDE3EA;
  --tag-bg:#E9EDF2;
  --surface-input:#FFFFFF;
  --btn-strong:#172231;
  --card-hover-border:#C3CCD8;
  --shadow:rgba(23,34,49,.06);
}
html[data-palette=cool][data-theme=dark],html[data-palette=cool][data-theme=dark] body{background:#0F141B}
html[data-palette=cool][data-theme=dark] #fonts-ge-reference{
  color-scheme:dark;
  --espresso:#E6ECF3;
  --espresso-light:#9AA8BA;
  --coral:#E47A62;
  --coral-hover:#EC9480;
  --bg-warm:#0F141B;
  --card-bg:#161D27;
  --border-warm:#283242;
  --tag-bg:#1E2733;
  --surface-input:#121820;
  --btn-strong:#2A3546;
  --card-hover-border:#3E4B5F;
  --shadow:rgba(0,0,0,.35);
}
/* Shadows and the dialog backdrop that were hard-coded in warm brown now follow the palette. */
#fonts-ge-reference .search-bar{box-shadow:0 6px 20px var(--shadow)}
html[data-palette=cool] #fonts-ge-reference .converter-dialog::backdrop{background:#17223175}
html[data-palette=cool][data-theme=dark] #fonts-ge-reference .converter-dialog::backdrop{background:#000000a6}
#fonts-ge-reference .theme-seg svg{flex:none}
#fonts-ge-reference .swatch{border-color:var(--card-hover-border)}

/* Old-encoding (non-Unicode) font chip */
#fonts-ge-reference .chip-legacy{border-style:dashed;color:var(--espresso);cursor:help}
#fonts-ge-reference .preview-img{display:block;max-width:100%;height:auto}
html[data-theme=dark] #fonts-ge-reference .preview-img{filter:invert(1) brightness(.93)}
/* Dark theme: dark text on brick-filled buttons for contrast (2026-10-18). */
html[data-theme=dark] #fonts-ge-reference .search-bar button,html[data-theme=dark] #fonts-ge-reference .cat-btn.active,html[data-theme=dark] #fonts-ge-reference .cat-btn:hover,html[data-theme=dark] #fonts-ge-reference .btn-download,html[data-theme=dark] #fonts-ge-reference .empty-state button,html[data-theme=dark] #fonts-ge-reference .pagination a[aria-current=page],html[data-theme=dark] #fonts-ge-reference .btn-upload:hover{color:#1a1210}
html[data-theme=dark] #fonts-ge-reference .btn-download:hover{color:#fff}

/* Not-recommended old-encoding fonts */
#fonts-ge-reference .legacy-notice{max-width:1232px;margin:0 auto 16px;padding:12px 16px;border:1px solid var(--coral);border-radius:12px;color:var(--espresso);font-size:13.5px;background:var(--card-bg)}
#fonts-ge-reference .font-page .legacy-notice{max-width:none;margin:0 0 20px}
#fonts-ge-reference .legacy-notice a,#fonts-ge-reference .legacy-link{color:var(--coral);text-decoration:none;white-space:nowrap}
#fonts-ge-reference .legacy-link:hover,#fonts-ge-reference .legacy-notice a:hover{text-decoration:underline}
@media(max-width:650px){#fonts-ge-reference .legacy-notice{margin:0 auto 14px;width:calc(100% - 36px)}}

/* Warning icon on not-recommended notices and the non-Unicode chip (mask keeps it in the accent colour) */
#fonts-ge-reference .legacy-notice{position:relative;padding-left:44px;width:min(1232px,calc(100% - 48px))}
#fonts-ge-reference .font-page .legacy-notice{width:auto}
#fonts-ge-reference .legacy-notice::before,#fonts-ge-reference .chip-legacy::before{content:'';flex:none;background:var(--coral);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 14V2'/%3E%3Cpath d='M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 14V2'/%3E%3Cpath d='M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z'/%3E%3C/svg%3E") center/contain no-repeat}
#fonts-ge-reference .legacy-notice::before{position:absolute;left:14px;top:12px;width:20px;height:20px}
#fonts-ge-reference .chip-legacy{display:inline-flex;align-items:center;gap:4px}
#fonts-ge-reference .chip-legacy::before{width:12px;height:12px}

/* "ავტორებისთვის": last menu item, after a separator, in the accent colour with a pen icon */
#fonts-ge-reference .nav-links .nav-sep{align-self:center;width:1px;height:18px;background:var(--border-warm);margin:0 4px;padding:0;list-style:none}
#fonts-ge-reference .nav-links a.nav-author{display:inline-flex;align-items:center;gap:6px;color:var(--coral);font-weight:600}
#fonts-ge-reference .nav-links a.nav-author svg{width:15px;height:15px;flex:none}
#fonts-ge-reference .nav-links a.nav-author:hover{color:var(--coral-hover)}

/* header controls: soft fill, gently rounded corners */
#fonts-ge-reference .lang-switch{height:38px;padding:3px;gap:2px;border-radius:10px;border:0;background:var(--tag-bg);box-shadow:inset 0 0 0 1px var(--border-warm)}
#fonts-ge-reference .lang-switch a{padding:0 11px;border-radius:7px}
#fonts-ge-reference .lang-switch a+a{border-left:0}
#fonts-ge-reference .lang-switch a[aria-current]{background:var(--card-bg);color:var(--coral);box-shadow:0 1px 3px rgba(0,0,0,.12)}
#fonts-ge-reference .theme-toggle{width:38px;height:38px;border-radius:10px;border:0;background:var(--tag-bg);box-shadow:inset 0 0 0 1px var(--border-warm)}
#fonts-ge-reference .theme-toggle:hover,#fonts-ge-reference .theme-toggle[aria-expanded=true]{color:var(--coral);box-shadow:inset 0 0 0 1px var(--coral)}
@media(max-width:650px){#fonts-ge-reference .lang-switch{height:34px}#fonts-ge-reference .lang-switch a{padding:0 8px}#fonts-ge-reference .theme-toggle{width:34px;height:34px}}

/* font page: "whole family" ZIP link under the download button */
#fonts-ge-reference .btn-family{display:inline-flex;align-items:center;justify-content:center;padding:8px 14px;border-radius:10px;border:1px solid var(--border-warm);background:var(--card-bg);color:var(--espresso);font-size:.85rem;font-weight:600;text-decoration:none;transition:border-color .15s,color .15s}
#fonts-ge-reference .btn-family:hover{border-color:var(--coral);color:var(--coral)}
#fonts-ge-reference .fp-actions{align-items:stretch}
#fonts-ge-reference .fp-actions .btn-download,#fonts-ge-reference .fp-actions .btn-family{justify-content:center}
#fonts-ge-reference .fp-actions .download-count{text-align:center}
/* font page head: title on the left, download block on the right (it no longer wraps below a long author line) */
#fonts-ge-reference .fp-head{flex-wrap:nowrap;align-items:flex-start}
#fonts-ge-reference .fp-title{flex:1 1 auto;min-width:0}
#fonts-ge-reference .fp-actions{flex:0 0 auto;min-width:200px}
@media(max-width:800px){#fonts-ge-reference .fp-head{flex-wrap:wrap}#fonts-ge-reference .fp-actions{flex:1 1 100%;min-width:0;max-width:320px}}
