/* Small additions for pages converted from the legacy template. */
.legacy-content ul { padding-left: 20px; }
.legacy-content a { color: inherit; text-decoration: underline; }

/* Site search: header form and /en/search/ page (static/site-search.js). */
.header-search .input-box input[type="search"] { padding-right: 100px; }
.site-search-title { font-size: 2rem; margin: 0 0 1rem; }
.site-search-box input { width: 100%; height: 50px; padding: 0 1rem; border: 0; border-radius: 5px; background: #ECEDEE; font: inherit; }
.site-search-box input:focus { outline: 2px solid rgba(46, 100, 116, 0.35); background: #fff; }
.site-search-results { margin-top: 1.25rem; }
.site-search-results .search-hit { display: block; padding: 1rem; margin-bottom: 0.65rem; border: 1px solid #e1e4e6; border-radius: 6px; background: #fff; color: inherit; text-decoration: none; }
.site-search-results .search-hit:hover { border-color: #2e6474; background: #f1f6f8; text-decoration: none; }
.site-search-results .search-hit h3 { margin: 0 0 0.3rem; font-size: 1.05rem; color: #1c2b33; }
.site-search-results .search-hit p { margin: 0; color: #5f6b72; font-size: 0.92rem; }
.site-search-results .search-hit mark { padding: 0 0.15em; background: rgba(46, 100, 116, 0.14); color: #1f4a57; }

/* Markdown news (layouts/news/single.html): match the CMS news text and style tables and lists. */
.md-content p { text-align: justify; }
.md-content h2 { font-size: 24px; margin: 30px 0 15px; }
.md-content ul, .md-content ol { padding-left: 22px; margin-bottom: 1rem; }
.md-content ul { list-style: disc; }
.md-content ol { list-style: decimal; }
.md-content li { margin-bottom: 6px; }
.md-content table { width: 100%; margin: 10px 0 25px; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.md-content th { padding: 10px 12px; background: #2e6474; color: #fff; font-weight: 500; text-align: left; }
.md-content td { padding: 10px 12px; border-bottom: 1px solid #e1e4e6; vertical-align: top; }
.md-content tbody tr:nth-child(even) td { background: #f6f8f9; }
.md-content td:first-child { white-space: nowrap; color: #5f6b72; }
.md-content td a { font-weight: 500; }
@media (max-width: 575px) {
  .md-content table { font-size: 14px; }
  .md-content th, .md-content td { padding: 8px 6px; }
}
.md-content .cta-box { display: flex; gap: 24px; align-items: flex-start; margin: 30px 0 10px; padding: 24px 28px; border-left: 5px solid #f26722; border-radius: 6px; background: #f1f6f8; }
.md-content .cta-box p { margin-bottom: 12px; text-align: left; }
.md-content .cta-box .cta-title { font-size: 21px; font-weight: 500; color: #1c2b33; }
.md-content .cta-box .cta-buttons { margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.md-content .cta-btn { display: inline-block; padding: 10px 22px; border: 2px solid #2e6474; border-radius: 5px; background: #2e6474; color: #fff !important; font-weight: 500; text-decoration: none; }
.md-content .cta-btn:hover { background: #1f4a57; border-color: #1f4a57; text-decoration: none; }
.md-content .cta-logo { flex: 0 0 90px; }
.md-content .cta-logo img { display: block; width: 90px; height: auto; }
.md-content .cta-body { flex: 1 1 auto; min-width: 0; }
.md-content .cta-box .cta-buttons { align-items: center; }
.md-content .cta-more { color: #2e6474; text-decoration: underline; }
@media (max-width: 575px) {
  .md-content .cta-box { flex-direction: column; align-items: center; text-align: center; padding: 22px 18px; }
  .md-content .cta-box p { text-align: center; }
  .md-content .cta-box .cta-buttons { justify-content: center; }
}

/* Firebird Associate landing page (content/pages/firebird-associate.html). */
.assoc { --teal:#2e6474; --teal-d:#1f4a57; --teal-l:#e3eef1; --orange:#f26722; --ink:#1c2b33; --text:#3a434b; --muted:#5f6b72; --line:#e1e4e6; --soft:#f4f7f8; color:var(--text); font-size:16px; line-height:1.55; }
.assoc h1, .assoc h2, .assoc h3 { color:var(--ink); letter-spacing:0; }
.assoc p { margin:0; }
.assoc a { color:var(--teal); }
.assoc-hero { display:flex; gap:28px; align-items:center; padding:34px 32px; border-radius:10px; background:linear-gradient(135deg,#f1f6f8 0%,#e3eef1 100%); border-left:6px solid var(--orange); }
.assoc-hero-logo { flex:0 0 110px; width:110px; height:auto; }
.assoc-kicker { font-size:13px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--orange); }
.assoc-hero h1 { font-size:36px; line-height:1.15; margin:6px 0 12px; font-weight:700; }
.assoc-lead { font-size:17px; max-width:640px; }
.assoc-plans { display:grid; grid-template-columns:1fr 1fr; gap:18px; margin:26px 0 8px; }
.assoc-plan { position:relative; display:flex; flex-direction:column; gap:6px; padding:24px 24px 22px; border:1px solid var(--line); border-radius:10px; background:#fff; }
.assoc-plan-best { border:2px solid var(--teal); box-shadow:0 6px 18px rgba(46,100,116,.12); }
.assoc-plan-name { font-size:13px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); }
.assoc-price { font-size:16px; color:var(--muted); }
.assoc-price b { font-size:38px; line-height:1.1; color:var(--ink); font-weight:700; }
.assoc-plan-note { font-size:14px; color:var(--muted); min-height:22px; }
.assoc-plan .assoc-btn { margin-top:12px; align-self:flex-start; }
.assoc-badge { position:absolute; top:-12px; right:18px; padding:3px 12px; border-radius:20px; background:var(--orange); color:#fff; font-size:13px; font-weight:700; }
.assoc-btn { display:inline-block; padding:11px 24px; border:2px solid var(--teal); border-radius:6px; background:var(--teal); color:#fff !important; font-weight:600; text-decoration:none !important; transition:background .15s,border-color .15s; }
.assoc-btn:hover { background:var(--teal-d); border-color:var(--teal-d); }
.assoc-btn-ghost { background:#fff; color:var(--teal) !important; }
.assoc-btn-ghost:hover { background:var(--teal-l); border-color:var(--teal); }
.assoc-btn-light { background:transparent; border-color:#fff; }
.assoc-btn-light:hover { background:rgba(255,255,255,.15); border-color:#fff; }
.assoc-h2 { font-size:26px; font-weight:700; margin:40px 0 18px; }
.assoc-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.assoc-card { padding:22px 20px; border:1px solid var(--line); border-radius:10px; background:#fff; transition:border-color .15s,box-shadow .15s; }
.assoc-card:hover { border-color:var(--teal); box-shadow:0 4px 14px rgba(46,100,116,.10); }
.assoc-card i { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; border-radius:50%; background:var(--teal-l); color:var(--teal); font-size:19px; margin-bottom:12px; }
.assoc-card h3 { font-size:17px; font-weight:700; line-height:1.3; margin:0 0 8px; }
.assoc-card p { font-size:15px; }
.assoc-note { margin-top:16px !important; padding:12px 16px; border-radius:8px; background:#fff6ee; color:#7a3d12; font-size:14px; }
.assoc-note i { color:var(--orange); margin-right:6px; }
.assoc-why { margin-top:8px; }
.assoc-why p { font-size:16px; text-align:justify; }
.assoc-other { display:grid; gap:12px; }
.assoc-other-item { display:flex; gap:18px; align-items:flex-start; padding:18px 20px; border:1px solid var(--line); border-radius:10px; background:var(--soft); }
.assoc-other-item img { flex:0 0 56px; width:56px; height:auto; }
.assoc-other-icon { flex:0 0 56px; display:inline-flex; align-items:center; justify-content:center; height:56px; border-radius:50%; background:#fde3d4; color:var(--orange); font-size:22px; }
.assoc-other-item h3 { font-size:17px; font-weight:700; margin:0 0 4px; }
.assoc-other-item p { font-size:15px; }
.assoc-links { margin-top:6px !important; font-weight:600; }
.assoc-final { display:flex; gap:20px; align-items:center; justify-content:space-between; flex-wrap:wrap; margin-top:40px; padding:28px 32px; border-radius:10px; background:var(--teal); color:#e3eef1; }
.assoc-final h2 { color:#fff; font-size:26px; font-weight:700; margin:0 0 4px; }
.assoc-final-buttons { display:flex; gap:12px; flex-wrap:wrap; }
.assoc-final .assoc-btn:not(.assoc-btn-light) { background:var(--orange); border-color:var(--orange); }
.assoc-final .assoc-btn:not(.assoc-btn-light):hover { background:#d9561a; border-color:#d9561a; }
@media (max-width: 991px) { .assoc-grid { grid-template-columns:repeat(2,1fr); } }
@media (max-width: 575px) {
  .assoc-hero { flex-direction:column; text-align:center; padding:26px 20px; }
  .assoc-hero h1 { font-size:28px; }
  .assoc-plans, .assoc-grid { grid-template-columns:1fr; }
  .assoc-final { padding:24px 20px; text-align:center; justify-content:center; }
}

/* Support Firebird page (content/pages/en-donate.html); uses the .assoc styles above. */
.assoc-hero-icon { flex:0 0 110px; display:inline-flex; align-items:center; justify-content:center; width:110px; height:110px; border-radius:50%; background:#fff; color:var(--orange); font-size:48px; box-shadow:0 4px 14px rgba(46,100,116,.12); }
.assoc-tiers { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; align-items:stretch; }
.assoc-tier { position:relative; display:flex; flex-direction:column; align-items:center; text-align:center; padding:26px 18px 20px; border:1px solid var(--line); border-radius:10px; background:#fff; }
.assoc-tier-main { border:2px solid var(--teal); box-shadow:0 6px 18px rgba(46,100,116,.12); }
.assoc-tier img { width:64px; height:auto; margin-bottom:10px; }
.assoc-tier h3 { font-size:21px; font-weight:700; margin:0; }
.assoc-tier-for { font-size:14px; color:var(--muted); margin:2px 0 12px !important; min-height:21px; }
.assoc-tier .assoc-price b { font-size:32px; }
.assoc-tier-buttons { display:flex; flex-direction:column; gap:8px; width:100%; margin:16px 0 12px; }
.assoc-tier-buttons .assoc-btn { text-align:center; padding:9px 12px; }
.assoc-more { margin-top:auto; font-size:14px; font-weight:600; }
.assoc-tier .assoc-badge { left:50%; right:auto; transform:translateX(-50%); white-space:nowrap; }
.assoc-small { margin-top:12px !important; font-size:14px; color:var(--muted); }
.assoc-text { margin-bottom:14px !important; }
.assoc-table-wrap { overflow-x:auto; border:1px solid var(--line); border-radius:10px; }
.assoc-table { width:100%; border-collapse:collapse; font-size:15px; }
.assoc-table th { padding:12px 14px; background:var(--teal); color:#fff; font-weight:600; text-align:center; }
.assoc-table th:first-child, .assoc-table td:first-child { text-align:left; }
.assoc-table td { padding:11px 14px; border-top:1px solid var(--line); text-align:center; vertical-align:middle; }
.assoc-table tbody tr:nth-child(even) td { background:var(--soft); }
.assoc-table td .fa-check { color:#23845a; }
.assoc-table td.assoc-no { color:#b4bbc0; }
.assoc-bands { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.assoc-band { display:flex; flex-direction:column; gap:2px; padding:16px; border-radius:10px; border-top:5px solid; background:var(--soft); font-size:14px; color:var(--muted); }
.assoc-band b { font-size:18px; color:var(--ink); margin-bottom:4px; }
.assoc-band-platinum { border-color:#7d8a93; }
.assoc-band-gold { border-color:#d4a017; }
.assoc-band-silver { border-color:#aab3b9; }
.assoc-band-bronze { border-color:#b0713a; }
@media (max-width: 991px) { .assoc-tiers { grid-template-columns:1fr; max-width:420px; } .assoc-bands { grid-template-columns:repeat(2,1fr); } }
@media (max-width: 575px) { .assoc-hero-icon { width:84px; height:84px; flex-basis:84px; font-size:36px; } .assoc-table { font-size:14px; } .assoc-table th, .assoc-table td { padding:9px 8px; } }

/* News lists (/en/news/, /en/news/fx/N/, community news, newsletter): compact cards.
   CMS items have an empty thumb block that only adds white space; hide it when it has no image. */
.about-post-items .trending-news-item.technology-item { margin-bottom: 16px; }
.about-post-items .trending-news-item .trending-news-thumb:not(:has(img)) { display: none; }
.about-post-items .trending-news-item.technology-item .trending-news-content { padding: 18px 22px; }
.about-post-items .trending-news-item .trending-news-content p:last-child { margin-bottom: 0; }
