/* ============================================================
   FontFreak 2026 — style25.css
   Drop this file in the site root (same level as index1.php)
   Link from templates: <link rel="stylesheet" href="/style25.css">
   ============================================================ */

/* Google Font loaded via <link> in <head> with preconnect for performance */

/* ── VARIABLES ────────────────────────────────────────────── */
:root {
  --ff-nav:         #5A5A5A;       /* nav bars, section headers   */
  --ff-orange:      #ff6600;       /* primary accent              */
  --ff-orange-h:    #e55a00;       /* hover state                 */
  --ff-white:       #ffffff;
  --ff-border:      #dddddd;
  --ff-text:        #333333;
  --ff-muted:       #666666;
}

/* ── RESET / BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ff-text);
  margin: 0;
  padding: 0;
  /* original site background — the jpg tiles naturally */
  background-image: url('images/headertop.jpg');
  background-repeat: repeat;
  background-color: #888; /* fallback if image missing */
}

a { color: var(--ff-orange); }
a:hover { color: var(--ff-orange-h); }

img { max-width: 100%; height: auto; }

/* ── SCROLLBAR ────────────────────────────────────────────── */
::-webkit-scrollbar       { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #ccc; }
::-webkit-scrollbar-thumb { background: var(--ff-orange); border-radius: 4px; }

/* ══════════════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════════════ */
.ff-header {
  text-align: center;
  padding: 20px 0 16px;
  /* inherits body's headertop.jpg background */
}
.ff-header a { text-decoration: none; display: inline-block; }
.ff-header img { height: 50px; width: auto; display: block; margin: 0 auto; }

/* ══════════════════════════════════════════════════════════════
   A-Z TOPBAR NAV
   ══════════════════════════════════════════════════════════════ */
.ff-topbar {
  background: var(--ff-nav);
  border-top: 1px solid rgba(255,255,255,.12);
  border-bottom: 3px solid var(--ff-orange);
}
.ff-topbar .az-wrap {
  text-align: center;
  padding: 4px 12px;
  max-width: 1260px;
  margin: 0 auto;
}
/* The toplinks are rendered as <font> tags by PHP — target those links */
.ff-topbar a,
.ff-topbar .az-wrap a {
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 9px;
  display: inline-block;
  line-height: 1;
  transition: color .15s, background .15s;
  border-radius: 3px;
}
.ff-topbar a:hover,
.ff-topbar .az-wrap a:hover {
  color: var(--ff-orange) !important;
  background: rgba(0,0,0,.2);
}
/* Separator pipes generated by PHP */
.ff-topbar font[color="#FFFFFF"] { color: rgba(255,255,255,.35) !important; font-size: 13px; }

/* ══════════════════════════════════════════════════════════════
   MAIN LAYOUT WRAPPER
   ══════════════════════════════════════════════════════════════ */
.ff-layout {
  max-width: 1260px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 0;
}

/* ══════════════════════════════════════════════════════════════
   MAIN CONTENT COLUMN
   ══════════════════════════════════════════════════════════════ */
.ff-main-col {
  flex: 1 1 0;
  min-width: 0;
  background: var(--ff-white);
}

/* ── Search bar ───────────────────────────────────────────── */
.ff-searchbar {
  background: var(--ff-white);
  border-bottom: 1px solid var(--ff-border);
  padding: 14px 20px;
}
.ff-searchbar form {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  max-width: 620px;
  margin: 0 auto;
}
.ff-searchbar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ff-white);
  border: 1px solid var(--ff-border);
  border-right: none;
  padding: 0 12px;
  border-radius: 5px 0 0 5px;
  color: #aaa;
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}
.ff-searchbar input[type="text"] {
  flex: 1;
  border: 1px solid var(--ff-border);
  border-left: none;
  border-right: none;
  padding: 10px 14px;
  font-size: 16px;
  font-family: inherit;
  outline: none;
  min-width: 0;
  height: 44px;
}
.ff-searchbar input[type="text"]:focus {
  border-color: var(--ff-orange);
  box-shadow: 0 0 0 2px rgba(255,102,0,.15);
  position: relative;
  z-index: 1;
}
.ff-searchbar button {
  background: var(--ff-orange);
  color: #fff;
  border: 1px solid var(--ff-orange);
  border-radius: 0 5px 5px 0;
  padding: 0 26px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
  height: 44px;
  flex-shrink: 0;
}
.ff-searchbar button:hover { background: var(--ff-orange-h); border-color: var(--ff-orange-h); }

/* ── Section title bar ────────────────────────────────────── */
.ff-section-title {
  background: var(--ff-nav);
  color: var(--ff-orange);
  font-size: 15px;
  font-weight: 700;
  padding: 10px 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.ff-section-title h1 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ff-orange);
  display: inline;
}
/* links inside breadcrumb inherit orange */
.ff-section-title a {
  color: var(--ff-orange);
  text-decoration: none;
}
.ff-section-title a:hover { color: #ffaa66; }

/* ── Content area ─────────────────────────────────────────── */
.ff-content {
  padding: 16px 20px 24px;
  min-height: 400px;
  font-size: 15px;
}
.ff-content p  { font-size: 15px; color: var(--ff-muted); line-height: 1.7; }
.ff-content a  { color: var(--ff-orange); font-size: 15px; }
.ff-content a:hover { color: var(--ff-orange-h); }
.ff-content h2, .ff-content h3 { color: var(--ff-text); }

/* ── Pagination bar ───────────────────────────────────────── */
.ff-pages {
  padding: 14px 20px;
  background: var(--ff-white);
  border-top: 1px solid var(--ff-border);
  line-height: 2.2;
}
.ff-pages a,
.ff-pages span.ff-page-num {
  display: inline-block;
  padding: 6px 14px;
  margin: 2px 2px;
  border: 1px solid var(--ff-border);
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ff-orange);
  text-decoration: none;
  transition: background .12s, color .12s;
}
.ff-pages a:hover { background: var(--ff-orange); color: #fff; border-color: var(--ff-orange); }
.ff-pages .ff-page-current { background: var(--ff-orange); color: #fff; border-color: var(--ff-orange); font-weight: 700; }

/* ══════════════════════════════════════════════════════════════
   FONT ROW  (short.html partial)
   ══════════════════════════════════════════════════════════════ */
.ff-font-row {
  border-bottom: 1px solid #eee;
  padding: 10px 0;
}

.ff-font-row-header {
  background: var(--ff-nav);
  border-radius: 4px 4px 0 0;
  padding: 7px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.ff-font-row-title {
  color: var(--ff-orange);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  flex: 1;
}
.ff-font-row-title:hover { color: #ffaa66; }
.ff-font-row-meta {
  color: #ccc;
  font-size: 13px;
}
.ff-font-row-dl {
  background: var(--ff-orange);
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  padding: 5px 16px;
  border-radius: 4px;
  white-space: nowrap;
  transition: background .15s;
  line-height: 1.4;
}
.ff-font-row-dl:hover { background: var(--ff-orange-h); color: #ffffff !important; }

.ff-font-row-preview {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #eee;
  border-top: none;
  border-radius: 0 0 3px 3px;
  padding: 8px;
  background: var(--ff-white);
}
.ff-font-row-preview img { display: block; }
.ff-font-row-icons {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  min-width: 30px;
}

/* ══════════════════════════════════════════════════════════════
   FONT DETAIL ROW  (shortttf.html partial)
   ══════════════════════════════════════════════════════════════ */
.ff-detail-row { margin-bottom: 8px; }

.ff-detail-header {
  background: var(--ff-nav);
  border-radius: 4px 4px 0 0;
  padding: 8px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ff-detail-header h1 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ff-orange);
  margin: 0;
}
.ff-detail-header-dl {
  color: #ddd;
  font-size: 14px;
  font-weight: 600;
}

.ff-detail-preview {
  border: 1px solid #eee;
  border-top: none;
  border-radius: 0 0 3px 3px;
  padding: 10px;
  background: var(--ff-white);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.ff-detail-icons {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: center;
  min-width: 36px;
}

.ff-detail-meta {
  background: #fafafa;
  border: 1px solid #eee;
  border-top: none;
  padding: 9px 16px;
  font-size: 14px;
  color: var(--ff-muted);
  border-radius: 0 0 4px 4px;
}
.ff-detail-meta strong { color: var(--ff-text); }

/* ══════════════════════════════════════════════════════════════
   SIDEBAR
   ══════════════════════════════════════════════════════════════ */
.ff-sidebar {
  width: 280px;
  flex-shrink: 0;
  background: var(--ff-white);
  border-left: 2px solid var(--ff-nav);
  align-self: stretch;
}

.ff-sidebar-section {
  border-bottom: 1px solid var(--ff-border);
}

.ff-sidebar-section-title {
  background: var(--ff-nav);
  color: var(--ff-orange);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 9px 16px;
}

.ff-sidebar a.ff-sidebar-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--ff-nav);
  color: var(--ff-orange);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  padding: 11px 16px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background .12s;
}
.ff-sidebar a.ff-sidebar-btn:hover { background: #6e6e6e; color: var(--ff-orange); }

.ff-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 8px 16px 10px;
}
.ff-sidebar ul li {
  padding: 0;
  border-bottom: 1px solid #f3f3f3;
}
.ff-sidebar ul li:last-child { border-bottom: none; }
.ff-sidebar ul li a {
  display: block;
  color: var(--ff-text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  padding: 7px 0;
  transition: color .12s;
}
.ff-sidebar ul li a:hover { color: var(--ff-orange); }
.ff-sidebar ul li a i {
  margin-right: 7px;
  font-size: 13px;
  color: #aaa;
}

.ff-sidebar-cta {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ff-sidebar-cta a {
  display: block;
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  padding: 9px 14px;
  font-size: 15px;
  font-weight: 600;
  transition: background .12s, color .12s;
}
.ff-sidebar-cta .ff-cta-secondary {
  background: #f2f2f2;
  border: 1px solid #ddd;
  color: var(--ff-text);
}
.ff-sidebar-cta .ff-cta-secondary:hover { background: #e5e5e5; }
.ff-sidebar-cta .ff-cta-primary {
  background: var(--ff-orange);
  color: #fff;
  border: 1px solid var(--ff-orange);
}
.ff-sidebar-cta .ff-cta-primary:hover { background: var(--ff-orange-h); border-color: var(--ff-orange-h); }

.ff-sidebar-ad {
  text-align: center;
  padding: 14px 16px;
}
.ff-sidebar-ad img { border-radius: 4px; }

/* ══════════════════════════════════════════════════════════════
   DETAILS PAGE  (details.html partial)
   ══════════════════════════════════════════════════════════════ */
.ff-customize-bar {
  background: #f8f8f8;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.ff-customize-bar label {
  font-weight: 600;
  font-size: 14px;
  color: #555;
  margin: 0;
}
.ff-customize-bar input[type="text"],
.ff-customize-bar select {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 14px;
  font-family: inherit;
}
.ff-customize-bar input[type="text"] { width: 200px; }
.ff-customize-bar button {
  background: var(--ff-orange);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 7px 18px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s;
}
.ff-customize-bar button:hover { background: var(--ff-orange-h); }

/* ══════════════════════════════════════════════════════════════
   CONTACT FORM
   ══════════════════════════════════════════════════════════════ */
.ff-contact-info {
  background: #fff8f0;
  border-left: 4px solid var(--ff-orange);
  border-radius: 4px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #555;
  line-height: 1.7;
}
.ff-contact-info a { color: var(--ff-orange); font-size: 14px; text-decoration: none; }

#ff-contact-error:not(:empty) {
  background: #fff0f0;
  border: 1px solid #f5c6c6;
  border-left: 4px solid #e00;
  border-radius: 4px;
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: 14px;
  color: #c00;
  line-height: 1.7;
}

.ff-contact-notes {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #666;
  line-height: 2;
}

.ff-form {
  background: var(--ff-white);
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 24px;
  max-width: 580px;
}
.ff-form-group { margin-bottom: 16px; }
.ff-form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
}
.ff-form-group label span { color: var(--ff-orange); }
.ff-form-group input[type="text"],
.ff-form-group textarea {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 9px 12px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color .15s;
}
.ff-form-group input[type="text"]:focus,
.ff-form-group textarea:focus {
  outline: none;
  border-color: var(--ff-orange);
  box-shadow: 0 0 0 2px rgba(255,102,0,.12);
}
.ff-form-group textarea { resize: vertical; min-height: 130px; }

.ff-captcha-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.ff-captcha-row input[type="text"] {
  width: 150px;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 9px 12px;
  font-size: 15px;
  font-family: inherit;
}
.ff-captcha-row img { border-radius: 4px; border: 1px solid #ddd; }

.ff-btn-submit {
  background: var(--ff-orange);
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 11px 30px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s;
}
.ff-btn-submit:hover { background: var(--ff-orange-h); }

/* ══════════════════════════════════════════════════════════════
   HOMEPAGE PARTIALS
   ══════════════════════════════════════════════════════════════ */
.ff-homepage-intro {
  background: var(--ff-white);
  padding: 20px 22px 16px;
  margin-bottom: 18px;
  border: 1px solid var(--ff-border);
  border-radius: 6px;
}

/* ── Stat counters row ─── */
.ff-intro-stats {
  display: flex;
  border: 1px solid var(--ff-border);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 18px;
}
.ff-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 13px 8px;
  border-right: 1px solid var(--ff-border);
  background: #fafafa;
}
.ff-stat:last-child { border-right: none; }
.ff-stat-number {
  font-size: 20px;
  font-weight: 700;
  color: var(--ff-orange);
  line-height: 1.1;
}
.ff-stat-label {
  font-size: 10px;
  color: #888;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-top: 3px;
  text-align: center;
}

.ff-intro-heading {
  font-size: 17px;
  font-weight: 700;
  color: #222;
  margin: 0 0 10px 0;
}
.ff-homepage-intro p {
  font-size: 14px;
  line-height: 1.75;
  color: #555;
  margin: 0 0 10px 0;
}
.ff-homepage-intro p:last-child { margin-bottom: 0; }
.ff-homepage-intro a { color: var(--ff-orange); text-decoration: none; }
.ff-homepage-intro a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .ff-intro-stats { flex-wrap: wrap; }
  .ff-stat { flex: 1 1 50%; border-bottom: 1px solid var(--ff-border); }
  .ff-stat:nth-child(even) { border-right: none; }
  .ff-stat-number { font-size: 17px; }
}

.ff-card {
  margin-bottom: 18px;
  border: 1px solid #eee;
  border-radius: 6px;
  overflow: hidden;
}
.ff-card-header {
  background: var(--ff-nav);
  padding: 9px 16px;
}
.ff-card-header span {
  color: var(--ff-orange);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.ff-card-body {
  padding: 14px 16px;
  background: var(--ff-white);
  font-size: 14px;
  color: #555;
  line-height: 1.7;
}
.ff-card-body a { color: var(--ff-orange); font-size: 14px; }

/* ══════════════════════════════════════════════════════════════
   STATIC / FAQ / TERMS PAGES
   ══════════════════════════════════════════════════════════════ */
.ff-static-page {
  font-size: 15px;
  color: #555;
  line-height: 1.75;
  max-width: 860px;
}
.ff-static-page table { border-collapse: collapse; width: 100%; }
.ff-static-page td    { padding: 5px 10px; font-size: 15px; color: #555; vertical-align: top; }
.ff-static-page a     { color: var(--ff-orange); font-size: 15px; }
.ff-static-page a:hover { color: var(--ff-orange-h); }
.ff-static-page b,
.ff-static-page strong { color: var(--ff-text); }
.ff-static-page h1,
.ff-static-page h2,
.ff-static-page h3 { color: var(--ff-text); }
.ff-static-page ul,
.ff-static-page ol  { padding-left: 22px; }
.ff-static-page li  { margin-bottom: 6px; font-size: 15px; }
.ff-static-page font { font-family: inherit !important; }

/* ── Tool / resource card (used in software & FAQ pages) ──── */
.ff-tool-card {
  border: 1px solid var(--ff-border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--ff-white);
}
.ff-tool-header {
  background: var(--ff-nav);
  color: var(--ff-orange);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.ff-tool-header a { color: var(--ff-orange); text-decoration: none; }
.ff-tool-body {
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.75;
  color: #555;
}
.ff-tool-body p   { margin: 0 0 10px; }
.ff-tool-body p:last-child { margin-bottom: 0; }
.ff-tool-body ol,
.ff-tool-body ul  { padding-left: 20px; margin: 0 0 10px; }
.ff-tool-body li  { margin-bottom: 6px; }
.ff-tool-body a   { color: var(--ff-orange); }
.ff-tool-body a:hover { text-decoration: underline; }
.ff-tool-body dl  { margin: 0; }
.ff-tool-body dt  { font-weight: 700; color: #333; margin-bottom: 3px; }
.ff-tool-body dd  { margin: 0 0 14px; }
.ff-tool-body table th { text-align: left; padding: 7px 10px; }
.ff-tool-body table td { padding: 7px 10px; font-size: 14px; }
.ff-tool-body code {
  background: #f3f3f3;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 13px;
  font-family: monospace;
}

.ff-notice {
  background: #fff8f0;
  border-left: 4px solid var(--ff-orange);
  border-radius: 0 4px 4px 0;
  padding: 12px 16px;
  margin: 12px 0;
  font-size: 14px;
  color: #555;
  line-height: 1.65;
}
.ff-notice a { color: var(--ff-orange); font-size: 14px; }

/* ══════════════════════════════════════════════════════════════
   DOWNLOAD PAGE
   ══════════════════════════════════════════════════════════════ */
.ff-download-page { text-align: center; padding: 24px 12px; }

.ff-download-notice {
  background: #fff8e1;
  border: 1px solid #ffc107;
  border-radius: 6px;
  padding: 16px 22px;
  margin: 0 auto 24px;
  font-size: 15px;
  color: #6d4c00;
  display: inline-block;
  max-width: 480px;
}

.ff-download-links {
  background: #fafafa;
  border: 1px solid var(--ff-border);
  border-radius: 6px;
  padding: 18px 22px;
  display: inline-block;
  min-width: 340px;
  text-align: left;
  margin-bottom: 22px;
  font-size: 15px;
}

/* ══════════════════════════════════════════════════════════════
   AUTHORS PAGE
   ══════════════════════════════════════════════════════════════ */
.ff-authors-intro {
  background: #fff8f0;
  border-left: 4px solid var(--ff-orange);
  border-radius: 4px;
  padding: 13px 18px;
  margin-bottom: 18px;
  font-size: 14px;
  color: #555;
  line-height: 1.65;
}
.ff-authors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 6px;
}
.ff-authors-grid a {
  color: var(--ff-orange);
  font-size: 15px;
  text-decoration: none;
  padding: 4px 0;
  display: block;
}
.ff-authors-grid a:hover { color: var(--ff-orange-h); text-decoration: underline; }

.ff-author-meta {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 14px 18px;
  margin: 12px 0;
  font-size: 14px;
  color: #555;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px 16px;
  align-items: baseline;
}
.ff-author-meta-label { color: #888; font-weight: 600; white-space: nowrap; }
.ff-author-meta-value a { color: var(--ff-orange); text-decoration: none; word-break: break-all; }

/* ══════════════════════════════════════════════════════════════
   COMMERCIAL FONTS / LISTCOMM
   ══════════════════════════════════════════════════════════════ */
.ff-commercial { border: 1px solid #eee; border-radius: 6px; overflow: hidden; }
.ff-commercial-header { background: var(--ff-nav); padding: 9px 16px; }
.ff-commercial-header strong { color: var(--ff-orange); font-size: 13px; letter-spacing: .05em; text-transform: uppercase; }
.ff-commercial-body { padding: 16px; background: var(--ff-white); }

.ff-commercial-search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.ff-commercial-search input[type="text"] {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 7px 12px;
  font-size: 14px;
  font-family: inherit;
  width: 220px;
}
.ff-commercial-search button {
  background: var(--ff-orange);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 7px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}
.ff-commercial-search button:hover { background: var(--ff-orange-h); }

.ff-commercial-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 10px;
  font-size: 14px;
}

/* ══════════════════════════════════════════════════════════════
   SUCCESS / ERROR STATE PAGES
   ══════════════════════════════════════════════════════════════ */
.ff-state-box {
  text-align: center;
  padding: 48px 20px;
}
.ff-state-inner {
  display: inline-block;
  border-radius: 8px;
  padding: 28px 48px;
  max-width: 500px;
  width: 100%;
}
.ff-state-inner.ff-success { background: #e8f8e8; border: 1px solid #4caf50; }
.ff-state-inner.ff-error   { background: #fff3f3; border: 1px solid #f44336; }
.ff-state-emoji  { font-size: 44px; margin-bottom: 14px; }
.ff-state-title  { font-size: 22px; font-weight: 700; margin: 0 0 12px; }
.ff-state-inner.ff-success .ff-state-title { color: #2e7d32; }
.ff-state-inner.ff-error   .ff-state-title { color: #c62828; }
.ff-state-body   { font-size: 15px; color: #555; margin: 0 0 22px; line-height: 1.6; }
.ff-state-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.ff-state-btn {
  text-decoration: none;
  border-radius: 5px;
  padding: 10px 26px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  display: inline-block;
}
.ff-state-btn-primary,
a.ff-state-btn-primary        { background: var(--ff-orange); color: #fff !important; }
.ff-state-btn-primary:hover,
a.ff-state-btn-primary:hover  { background: var(--ff-orange-h); color: #fff !important; }
.ff-state-btn-secondary { background: #eee; color: var(--ff-text); }
.ff-state-btn-secondary:hover { background: #ddd; }

/* ══════════════════════════════════════════════════════════════
   LINKTOUS PAGE
   ══════════════════════════════════════════════════════════════ */
.ff-linktous { max-width: 640px; font-size: 14px; color: #555; line-height: 1.75; }
.ff-linktous p { font-size: 14px; }
.ff-linktous a { color: var(--ff-orange); font-size: 14px; }
.ff-code-block {
  background: #f4f4f4;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 14px 18px;
  font-size: 13px;
  color: #333;
  word-break: break-all;
  font-family: 'Courier New', monospace;
}
.ff-code-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #888;
  margin-bottom: 8px;
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */
.ff-footer {
  background: var(--ff-nav);
  color: #ddd;
  padding: 22px 0 18px;
  font-size: 14px;
  margin-top: 0;
}
.ff-footer-az {
  text-align: center;
  padding: 0 12px 14px;
  max-width: 1260px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.ff-footer-az a {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 5px 8px;
  display: inline-block;
  text-decoration: none;
  transition: color .12s;
}
.ff-footer-az a:hover { color: var(--ff-orange); }
.ff-footer-az font[color="#FFFFFF"] { color: rgba(255,255,255,.35) !important; }

.ff-footer-copy {
  text-align: center;
  padding: 14px 12px 0;
  font-size: 13px;
  color: #bbb;
}
.ff-footer-copy a { color: #ddd; text-decoration: none; font-size: 13px; }
.ff-footer-copy a:hover { color: var(--ff-orange); }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {
  .ff-layout { flex-direction: column; }
  .ff-sidebar { width: 100%; border-left: none; border-top: 2px solid var(--ff-nav); }
  .ff-topbar a { font-size: 14px; padding: 9px 7px; }
  .ff-searchbar input[type="text"] { font-size: 15px; }
  .ff-commercial-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  body { font-size: 15px; }
  .ff-font-row-header { flex-direction: column; align-items: flex-start; gap: 6px; }
  .ff-commercial-grid { grid-template-columns: 1fr; }
  .ff-state-inner { padding: 22px 20px; }
}
