/*
Theme Name: FileDeGimnaziu
Theme URI: https://filedegimnaziu.ro/
Author: FileDeGimnaziu
Description: Temă educațională WordPress modernă, aerisită și responsive pentru FileDeGimnaziu. Include homepage dinamic, pagină Articole cu căutare și categorii, pagină de articol optimizată pentru lectură, newsletter și materiale populare.
Version: 2.0.0
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: filedegimnaziu
Tags: blog, education, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, right-sidebar
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --fdg-blue:#1769e0;
  --fdg-blue-dark:#0d56c5;
  --fdg-blue-ink:#123b7a;
  --fdg-navy:#0f1f3b;
  --fdg-text:#172033;
  --fdg-muted:#637083;
  --fdg-line:#e6ebf2;
  --fdg-soft:#f7f9fc;
  --fdg-soft-blue:#eef5ff;
  --fdg-green:#0a9a62;
  --fdg-purple:#7a46c8;
  --fdg-orange:#d98300;
  --fdg-radius:14px;
  --fdg-shadow:0 10px 35px rgba(15,31,59,.08);
  --fdg-shadow-soft:0 4px 18px rgba(15,31,59,.05);
  --fdg-max:1160px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#fff;color:var(--fdg-text);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;font-size:16px;line-height:1.65;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
a{color:var(--fdg-blue);text-decoration:none}
a:hover{color:var(--fdg-blue-dark)}
img{max-width:100%;height:auto;display:block}
button,input,textarea,select{font:inherit}
button{touch-action:manipulation}
svg{flex:0 0 auto}
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.fdg-container{width:min(calc(100% - 48px),var(--fdg-max));margin-inline:auto}
.fdg-site-main{min-height:55vh}
.fdg-eyebrow{display:inline-flex;align-items:center;gap:7px;font-size:10px;line-height:1;font-weight:800;letter-spacing:.12em;color:var(--fdg-blue);text-transform:uppercase}

/* Header */
.fdg-header{background:rgba(255,255,255,.96);border-bottom:1px solid var(--fdg-line);position:sticky;top:0;z-index:80;backdrop-filter:blur(12px)}
.admin-bar .fdg-header{top:32px}
.fdg-header-inner{height:82px;display:flex;align-items:center;justify-content:space-between;gap:32px;position:relative}
.fdg-brand{display:flex;align-items:center;gap:11px;min-width:max-content;color:var(--fdg-navy)}
.fdg-brand:hover{color:var(--fdg-navy)}
.fdg-logo-icon{width:38px;height:38px;display:grid;place-items:center;color:var(--fdg-blue)}
.fdg-brand-text{display:flex;flex-direction:column;line-height:1.05}
.fdg-brand-title{font-size:24px;font-weight:800;letter-spacing:-.6px}
.fdg-brand-tag{margin-top:5px;font-size:10px;color:var(--fdg-muted);font-weight:500}
.custom-logo{max-height:52px;width:auto}
.fdg-nav-wrap{display:flex;align-items:center;gap:24px}
.fdg-nav ul{display:flex;gap:28px;align-items:center;list-style:none;padding:0;margin:0}
.fdg-nav a{color:#10192c;font-weight:650;font-size:14px;padding:31px 0 25px;display:block;border-bottom:2px solid transparent;transition:.2s ease}
.fdg-nav .current-menu-item>a,.fdg-nav a:hover{color:var(--fdg-blue);border-bottom-color:var(--fdg-blue)}
.fdg-search-toggle,.fdg-menu-toggle{border:0;background:transparent;color:var(--fdg-navy);padding:8px;cursor:pointer;display:grid;place-items:center;border-radius:8px}
.fdg-search-toggle:hover,.fdg-menu-toggle:hover{background:var(--fdg-soft-blue);color:var(--fdg-blue)}
.fdg-menu-toggle{display:none}
.fdg-search-form{display:none;position:absolute;right:0;top:68px;background:#fff;border:1px solid var(--fdg-line);box-shadow:var(--fdg-shadow);padding:10px;border-radius:10px;z-index:90}
.fdg-search-form.is-open{display:flex}
.fdg-search-form input{width:280px;border:1px solid #d9e0ea;border-radius:7px 0 0 7px;padding:10px 12px;outline:none}
.fdg-search-form input:focus{border-color:var(--fdg-blue);box-shadow:0 0 0 3px rgba(23,105,224,.10)}
.fdg-search-form button{border:0;background:var(--fdg-blue);color:#fff;border-radius:0 7px 7px 0;padding:0 15px;cursor:pointer;font-weight:700}

/* Buttons */
.fdg-actions{display:flex;gap:14px;flex-wrap:wrap}
.fdg-btn{display:inline-flex;align-items:center;gap:9px;justify-content:center;padding:12px 20px;border-radius:8px;font-weight:750;font-size:14px;border:1px solid var(--fdg-blue);transition:.2s ease;min-height:44px}
.fdg-btn-primary{background:var(--fdg-blue);color:#fff;box-shadow:0 5px 14px rgba(23,105,224,.18)}
.fdg-btn-primary:hover{background:var(--fdg-blue-dark);color:#fff;transform:translateY(-1px)}
.fdg-btn-outline{background:#fff;color:var(--fdg-blue)}
.fdg-btn-outline:hover{background:var(--fdg-soft-blue)}

/* Homepage hero */
.fdg-hero{padding:54px 0 32px;background:linear-gradient(90deg,#fff 0%,#fff 54%,#f7faff 100%)}
.fdg-hero-grid{display:grid;grid-template-columns:1.04fr .96fr;align-items:center;gap:46px}
.fdg-hero h1{margin:0 0 15px;font-size:44px;line-height:1.12;letter-spacing:-1.8px;color:#122039;max-width:650px}
.fdg-hero p{font-size:17px;max-width:610px;margin:0 0 27px;color:#2c394e}
.fdg-hero-art{min-height:310px;display:flex;align-items:center;justify-content:center}
.fdg-hero-art img{width:100%;max-height:340px;object-fit:cover;object-position:center;border-radius:30px;box-shadow:0 18px 46px rgba(31,78,145,.12)}
.fdg-features{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:38px;max-width:675px}
.fdg-feature{display:grid;grid-template-columns:44px 1fr;gap:12px;align-items:start;min-width:0}
.fdg-feature-icon{width:42px;height:42px;border-radius:12px;background:#edf4ff;color:var(--fdg-blue);display:grid;place-items:center;border:1px solid #dce9ff}
.fdg-feature strong{display:block;font-size:13px;margin:1px 0 2px;color:#17243b}
.fdg-feature>span:last-child>span{display:block;font-size:12px;color:#566276;line-height:1.45}

/* Homepage */
.fdg-home-body{border-top:1px solid #f0f2f6;padding:30px 0 46px}
.fdg-home-grid{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:26px;align-items:start}
.fdg-section{margin-bottom:36px}
.fdg-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}
.fdg-section-title,.fdg-section-head h2{font-size:21px;line-height:1.2;margin:0;color:#14213a;letter-spacing:-.35px}
.fdg-see-all{font-size:12px;font-weight:750;white-space:nowrap}
.fdg-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.fdg-card{border:1px solid var(--fdg-line);border-radius:10px;overflow:hidden;background:#fff;box-shadow:0 1px 3px rgba(15,31,59,.02);display:flex;flex-direction:column;min-width:0;transition:.25s ease}
.fdg-card:hover{transform:translateY(-3px);box-shadow:var(--fdg-shadow-soft)}
.fdg-card-thumb{aspect-ratio:1.72/1;overflow:hidden;background:#edf2f7}
.fdg-card-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.fdg-card:hover .fdg-card-thumb img{transform:scale(1.03)}
.fdg-card-body{padding:14px 14px 12px;display:flex;flex-direction:column;flex:1}
.fdg-pill{display:inline-flex;align-items:center;align-self:flex-start;border-radius:20px;padding:4px 10px;font-size:10px;line-height:1.3;font-weight:800;background:#e7f0ff;color:var(--fdg-blue);margin-bottom:12px;position:relative}
.fdg-card .fdg-pill{margin-top:-25px;box-shadow:0 2px 7px rgba(0,0,0,.07)}
.fdg-pill.green{background:#e8f8f0;color:#087a4f}
.fdg-pill.purple{background:#f1e9ff;color:#7133b8}
.fdg-pill.orange{background:#fff3dc;color:#9f6200}
.fdg-card h3{font-size:16px;line-height:1.35;letter-spacing:-.2px;margin:0 0 9px;color:#101b31}
.fdg-card h3 a{color:inherit}
.fdg-card p{font-size:12px;line-height:1.55;color:#4b586b;margin:0 0 12px;flex:1}
.fdg-meta{display:flex;gap:15px;align-items:center;flex-wrap:wrap;font-size:11px;color:#6c7788}
.fdg-meta span{display:inline-flex;align-items:center;gap:4px}
.fdg-meta svg{width:13px;height:13px}

/* Latest list */
.fdg-latest{border:1px solid var(--fdg-line);border-radius:10px;overflow:hidden;background:#fff}
.fdg-latest-item{display:grid;grid-template-columns:98px minmax(0,1fr) auto;gap:14px;align-items:center;padding:9px 12px;border-bottom:1px solid var(--fdg-line)}
.fdg-latest-item:last-child{border-bottom:0}
.fdg-latest-thumb{width:98px;height:60px;border-radius:8px;overflow:hidden;background:#eef2f7}
.fdg-latest-thumb img{width:100%;height:100%;object-fit:cover}
.fdg-latest-content h3{font-size:14px;margin:0 0 6px;line-height:1.35;color:#142039}
.fdg-latest-content h3 a{color:inherit}
.fdg-latest-tag{font-size:10px;font-weight:700;border-radius:14px;background:#e8f0ff;color:var(--fdg-blue);padding:3px 10px;white-space:nowrap}

/* Generic sidebar widgets */
.fdg-sidebar{display:grid;gap:14px}
.fdg-widget{border:1px solid var(--fdg-line);border-radius:12px;background:#fff;padding:17px;box-shadow:0 1px 3px rgba(15,31,59,.02)}
.fdg-widget h2{font-size:18px;line-height:1.2;margin:0 0 14px;color:#16213a}
.fdg-cat-list{list-style:none;padding:0;margin:0;display:grid;gap:8px}
.fdg-cat-list li{display:grid;grid-template-columns:20px 1fr auto;align-items:center;gap:7px;font-size:13px}
.fdg-cat-icon{display:grid;place-items:center;color:var(--fdg-blue)}
.fdg-count{font-size:10px;color:#69758a;background:#f2f4f8;border-radius:12px;padding:2px 7px}
.fdg-cat-list a{color:#1a2438}
.fdg-newsletter{background:linear-gradient(145deg,#fff,#f8fbff)}
.fdg-newsletter p{font-size:12px;margin:-4px 0 12px;color:#3d4858}
.fdg-newsletter input{width:100%;border:1px solid #dce2eb;border-radius:7px;padding:10px;font-size:12px;margin-bottom:8px;outline:none}
.fdg-newsletter input:focus{border-color:var(--fdg-blue);box-shadow:0 0 0 3px rgba(23,105,224,.08)}
.fdg-newsletter button{width:100%;border:0;border-radius:7px;background:var(--fdg-blue);color:#fff;padding:10px 14px;font-size:12px;font-weight:700;cursor:pointer}
.fdg-note{font-size:10px!important;color:#778195!important;margin:7px 0 0!important}
.fdg-popular{list-style:none;margin:0;padding:0;counter-reset:item}
.fdg-popular li{counter-increment:item;display:grid;grid-template-columns:24px 1fr;gap:8px;padding:10px 0;border-bottom:1px solid var(--fdg-line)}
.fdg-popular li:last-child{border-bottom:0}
.fdg-popular li:before{content:counter(item);width:22px;height:22px;display:grid;place-items:center;background:var(--fdg-blue);color:#fff;border-radius:5px;font-size:11px;font-weight:800}
.fdg-popular a{font-size:12px;line-height:1.35;font-weight:700;color:#172033}
.fdg-popular time{display:block;font-size:10px;color:#7a8494;margin-top:4px}

/* About - text only, intentionally no images */
.fdg-about{border:1px solid #e6edf8;background:linear-gradient(135deg,#f8fbff 0%,#f3f7ff 100%);border-radius:14px;padding:28px 30px;position:relative;overflow:hidden}
.fdg-about:after{content:"";position:absolute;width:180px;height:180px;border-radius:50%;background:rgba(23,105,224,.05);right:-70px;top:-95px}
.fdg-about-copy{position:relative;z-index:1;max-width:720px}
.fdg-about h2{font-size:23px;margin:8px 0 7px;letter-spacing:-.4px}
.fdg-about p{font-size:14px;line-height:1.7;margin:0 0 15px;color:#46546a}
.fdg-about .fdg-btn{padding:9px 14px;font-size:12px}

/* Footer */
.fdg-footer{background:#f7f9fc;border-top:1px solid var(--fdg-line);margin-top:0}
.fdg-footer-main{padding:42px 0 34px;display:grid;grid-template-columns:1.7fr repeat(4,1fr);gap:32px}
.fdg-footer-main>div:first-child p{font-size:12px;color:#657184;max-width:240px;margin:12px 0 15px}
.fdg-footer-col h3{font-size:13px;margin:3px 0 12px;color:#16213a}
.fdg-footer-col ul{list-style:none;padding:0;margin:0;display:grid;gap:7px}
.fdg-footer-col li,.fdg-footer-col a,.fdg-footer-col p{font-size:11px;color:#667286;margin:0}
.fdg-social{display:flex;gap:8px}
.fdg-social a{width:30px;height:30px;border:1px solid #dde3ec;border-radius:7px;display:grid;place-items:center;background:#fff;color:var(--fdg-blue);font-size:12px;font-weight:800}
.fdg-footer-bottom{border-top:1px solid var(--fdg-line);padding:15px 0;background:#fff}
.fdg-footer-bottom .fdg-container{display:flex;justify-content:space-between;gap:20px;font-size:10px;color:#7a8494}
.fdg-legal{display:flex;gap:24px}
.fdg-legal a{font-size:10px;color:#687386}

/* =========================================================
   PAGINA ARTICOLE
   ========================================================= */
.fdg-articles-page{background:linear-gradient(#f8fbff 0,#fff 300px)}
.fdg-articles-wrap{padding:44px 0 70px}
.fdg-articles-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(380px,.78fr);gap:44px;align-items:end;padding:20px 0 30px}
.fdg-articles-hero-copy h1{font-size:40px;line-height:1.13;letter-spacing:-1.2px;margin:9px 0 10px;color:#11213f}
.fdg-articles-hero-copy p{max-width:650px;margin:0;color:#536177;font-size:15px}
.fdg-article-search{height:58px;border:1px solid #d9e4f2;border-radius:14px;background:#fff;display:grid;grid-template-columns:42px 1fr auto;align-items:center;padding:5px 6px 5px 9px;box-shadow:0 12px 30px rgba(18,60,119,.08)}
.fdg-article-search-icon{display:grid;place-items:center;color:#7b8798}
.fdg-article-search input{height:100%;min-width:0;border:0;outline:0;background:transparent;color:#172033;font-size:14px;padding:0 5px}
.fdg-article-search input::placeholder{color:#9aa4b2}
.fdg-article-search button{height:44px;border:0;border-radius:9px;background:var(--fdg-blue);color:#fff;font-weight:750;font-size:13px;padding:0 16px;display:inline-flex;align-items:center;gap:7px;cursor:pointer}
.fdg-category-filter{display:flex;align-items:center;gap:8px;overflow-x:auto;padding:14px 0 20px;border-top:1px solid #e8eef7;scrollbar-width:none}
.fdg-category-filter::-webkit-scrollbar{display:none}
.fdg-filter-label{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:800;color:#48566d;white-space:nowrap;margin-right:4px}
.fdg-filter-chip{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;border:1px solid #dfe6ef;background:#fff;color:#425169;border-radius:999px;padding:7px 11px;font-size:11px;font-weight:700;transition:.18s ease}
.fdg-filter-chip span{background:#f1f4f8;color:#718096;border-radius:999px;padding:1px 6px;font-size:9px}
.fdg-filter-chip:hover,.fdg-filter-chip.is-active{border-color:#bfd6fb;background:#edf5ff;color:var(--fdg-blue)}
.fdg-filter-chip.is-active span{background:#dceaff;color:var(--fdg-blue)}
.fdg-articles-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:30px;align-items:start;padding-top:6px}
.fdg-results-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:16px}
.fdg-results-head h2{font-size:22px;line-height:1.2;margin:0 0 4px;color:#13203a;letter-spacing:-.4px}
.fdg-results-head p{font-size:11px;margin:0;color:#7a8596}
.fdg-article-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.fdg-article-card{border:1px solid var(--fdg-line);border-radius:14px;background:#fff;overflow:hidden;box-shadow:0 2px 10px rgba(15,31,59,.03);transition:.25s ease;display:flex;flex-direction:column;min-width:0}
.fdg-article-card:hover{transform:translateY(-4px);box-shadow:var(--fdg-shadow)}
.fdg-article-card-media{display:block;aspect-ratio:1.72/1;background:#edf2f8;overflow:hidden}
.fdg-article-card-media img{width:100%;height:100%;object-fit:cover;transition:transform .4s ease}
.fdg-article-card:hover .fdg-article-card-media img{transform:scale(1.035)}
.fdg-article-card-body{padding:16px 17px 14px;display:flex;flex-direction:column;flex:1}
.fdg-article-card .fdg-pill{margin:-29px 0 12px;box-shadow:0 3px 8px rgba(0,0,0,.07)}
.fdg-article-card h3{font-size:18px;line-height:1.36;letter-spacing:-.3px;margin:0 0 9px}
.fdg-article-card h3 a{color:#101c34}
.fdg-article-card p{font-size:12.5px;color:#5d687a;line-height:1.6;margin:0 0 15px;flex:1}
.fdg-card-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:12px;border-top:1px solid #edf0f4}
.fdg-card-link{width:31px;height:31px;border-radius:50%;display:grid;place-items:center;background:#f0f6ff;color:var(--fdg-blue);transition:.2s ease}
.fdg-article-card:hover .fdg-card-link{background:var(--fdg-blue);color:#fff}
.fdg-articles-aside{display:grid;gap:16px;position:sticky;top:104px}
.fdg-articles-aside .fdg-widget{padding:19px}
.fdg-quick-cats>p{font-size:11px;color:#7b8595;margin:-7px 0 13px}
.fdg-quick-cats ul,.fdg-single-cats ul{list-style:none;padding:0;margin:0;display:grid;gap:4px}
.fdg-quick-cats li a,.fdg-single-cats li a{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 4px;border-bottom:1px solid #eff2f6;color:#243149;font-size:12px}
.fdg-quick-cats li:last-child a,.fdg-single-cats li:last-child a{border-bottom:0}
.fdg-quick-cats li a>span,.fdg-single-cats li a>span{display:inline-flex;align-items:center;gap:8px}
.fdg-quick-cats li svg,.fdg-single-cats li svg{color:var(--fdg-blue)}
.fdg-quick-cats b,.fdg-single-cats b{font-size:10px;color:#788496;background:#f3f5f8;padding:2px 7px;border-radius:999px}
.fdg-study-callout{background:linear-gradient(145deg,#1769e0,#1058c6)!important;border:0!important;color:#fff;box-shadow:0 12px 28px rgba(23,105,224,.20)!important}
.fdg-study-icon{width:43px;height:43px;background:rgba(255,255,255,.13);display:grid;place-items:center;border-radius:12px;margin-bottom:14px}
.fdg-study-callout h2{color:#fff;margin-bottom:7px}
.fdg-study-callout p{font-size:12px;line-height:1.6;color:#dfeaff;margin:0 0 13px}
.fdg-study-callout a{display:inline-flex;align-items:center;gap:6px;color:#fff;font-size:11px;font-weight:800}
.fdg-empty-state{text-align:center;border:1px dashed #d8e1ed;border-radius:14px;padding:48px 24px;background:#fbfcfe}
.fdg-empty-state>span{width:58px;height:58px;border-radius:16px;background:#eef5ff;color:var(--fdg-blue);display:grid;place-items:center;margin:0 auto 13px}
.fdg-empty-state h3{margin:0 0 4px}.fdg-empty-state p{margin:0 auto 18px;color:#697487;font-size:13px}
.fdg-pagination{margin-top:28px}
.fdg-pagination ul{list-style:none;padding:0;margin:0;display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap}
.fdg-pagination .page-numbers{min-width:37px;height:37px;padding:0 10px;border:1px solid var(--fdg-line);border-radius:8px;display:grid;place-items:center;background:#fff;color:#536177;font-size:12px;font-weight:700}
.fdg-pagination .current{background:var(--fdg-blue);color:#fff;border-color:var(--fdg-blue)}
.fdg-pagination a:hover{border-color:#bdd3f7;background:#f0f6ff;color:var(--fdg-blue)}

/* =========================================================
   SINGLE ARTICLE
   ========================================================= */
.fdg-single-page{background:linear-gradient(#f8fbff 0,#fff 310px)}
.fdg-reading-progress{position:fixed;top:82px;left:0;right:0;height:3px;z-index:79;background:transparent}
.admin-bar .fdg-reading-progress{top:114px}
.fdg-reading-progress span{display:block;height:100%;width:0;background:var(--fdg-blue);transition:width .08s linear}
.fdg-single-wrap{padding:30px 0 70px}
.fdg-breadcrumbs{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:11px;color:#8792a2;margin-bottom:27px}
.fdg-breadcrumbs a{display:inline-flex;align-items:center;gap:5px;color:#6b7789}
.fdg-breadcrumbs a:hover{color:var(--fdg-blue)}
.fdg-breadcrumbs>span{display:grid;place-items:center;color:#aeb7c3}
.fdg-single-hero{max-width:900px;margin:0 auto;text-align:center}
.fdg-single-heading .fdg-pill{margin-bottom:14px}
.fdg-single-heading h1{font-size:46px;line-height:1.12;letter-spacing:-1.6px;margin:0 auto 14px;color:#101f3b;max-width:900px}
.fdg-single-lead{max-width:740px;margin:0 auto 17px;color:#58667b;font-size:16px;line-height:1.65}
.fdg-single-meta{display:flex;align-items:center;justify-content:center;gap:20px;flex-wrap:wrap;color:#748093;font-size:11px}
.fdg-single-meta span{display:inline-flex;align-items:center;gap:6px}
.fdg-single-featured{max-width:1040px;margin:32px auto 0;border-radius:18px;overflow:hidden;background:#eef2f7;box-shadow:0 16px 40px rgba(21,55,103,.10)}
.fdg-single-featured img{width:100%;max-height:560px;object-fit:cover}
.fdg-single-layout{display:grid;grid-template-columns:minmax(0,780px) 280px;gap:42px;align-items:start;justify-content:center;margin-top:38px}
.fdg-single-article{min-width:0}
.fdg-entry{font-size:17px;line-height:1.82;color:#26334a}
.fdg-entry>p:first-child{font-size:18px;color:#39475d}
.fdg-entry p{margin:0 0 1.35em}
.fdg-entry h2,.fdg-entry h3{scroll-margin-top:110px;color:#14223d;letter-spacing:-.5px}
.fdg-entry h2{font-size:30px;line-height:1.25;margin:1.8em 0 .65em}
.fdg-entry h3{font-size:23px;line-height:1.3;margin:1.6em 0 .55em}
.fdg-entry h4{font-size:19px;margin:1.5em 0 .5em}
.fdg-entry ul,.fdg-entry ol{padding-left:1.35em;margin-bottom:1.4em}
.fdg-entry li{margin:.45em 0}
.fdg-entry a{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.fdg-entry blockquote{border-left:4px solid var(--fdg-blue);margin:28px 0;padding:18px 20px;background:var(--fdg-soft-blue);border-radius:0 10px 10px 0;color:#29415f}
.fdg-entry blockquote p:last-child{margin-bottom:0}
.fdg-entry img{border-radius:12px;margin-top:8px;margin-bottom:8px}
.fdg-entry figure{margin-left:0;margin-right:0}
.fdg-entry figcaption{font-size:11px;color:#7c8797;text-align:center;margin-top:7px}
.fdg-entry table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid var(--fdg-line);border-radius:10px;overflow:hidden;font-size:14px}
.fdg-entry th,.fdg-entry td{border-right:1px solid var(--fdg-line);border-bottom:1px solid var(--fdg-line);padding:11px 12px;text-align:left}
.fdg-entry th{background:#f7f9fc}.fdg-entry tr:last-child td{border-bottom:0}.fdg-entry th:last-child,.fdg-entry td:last-child{border-right:0}
.fdg-single-aside{display:grid;gap:15px;position:sticky;top:108px}
.fdg-toc-card{padding:18px}
.fdg-widget-title-row{display:flex;align-items:center;gap:8px;margin-bottom:12px;color:var(--fdg-blue)}
.fdg-widget-title-row h2{margin:0;color:#18243b;font-size:16px}
.fdg-toc ol{list-style:none;margin:0;padding:0;display:grid;gap:1px;counter-reset:toc}
.fdg-toc li{counter-increment:toc}
.fdg-toc a{display:block;padding:7px 4px 7px 15px;border-left:2px solid #e3e8f0;color:#5a6678;font-size:11px;line-height:1.45;transition:.18s ease}
.fdg-toc a:hover{border-left-color:var(--fdg-blue);color:var(--fdg-blue);background:#f7faff}
.fdg-toc li.is-sub a{padding-left:25px;font-size:10.5px}
.fdg-toc-empty{font-size:11px;color:#8a94a3;margin:0}.has-no-headings{display:none}
.fdg-single-cats h2{font-size:16px}
.fdg-back-articles{display:flex;gap:11px;background:#f7faff}
.fdg-back-articles>span{width:36px;height:36px;border-radius:10px;background:#e7f0ff;color:var(--fdg-blue);display:grid;place-items:center;flex:0 0 auto}
.fdg-back-articles strong{font-size:13px;display:block;color:#1b2940}.fdg-back-articles p{font-size:10.5px;color:#758094;margin:2px 0 6px;line-height:1.5}.fdg-back-articles a{font-size:10.5px;font-weight:800}
.fdg-post-tags{display:flex;align-items:center;gap:7px;flex-wrap:wrap;border-top:1px solid var(--fdg-line);padding-top:20px;margin-top:30px}
.fdg-post-tags>span{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:800;color:#46536a}
.fdg-post-tags a{font-size:10px;background:#f3f5f8;color:#5f6a7d;border-radius:999px;padding:4px 9px}
.fdg-post-share{margin-top:22px;padding:18px 19px;border:1px solid #dbe8fb;background:#f6faff;border-radius:13px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.fdg-post-share>div{display:flex;align-items:center;gap:11px}.fdg-share-icon{width:38px;height:38px;border-radius:10px;background:#e5f0ff;color:var(--fdg-blue);display:grid;place-items:center}.fdg-post-share strong{font-size:13px;display:block;color:#17243a}.fdg-post-share small{display:block;font-size:10.5px;color:#718096;margin-top:2px}
.fdg-copy-link{border:1px solid #bed5f8;background:#fff;color:var(--fdg-blue);border-radius:8px;padding:8px 12px;font-size:10.5px;font-weight:800;cursor:pointer;white-space:nowrap}
.fdg-post-navigation{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:28px;padding-top:26px;border-top:1px solid var(--fdg-line)}
.fdg-post-navigation>div{min-width:0}.fdg-post-nav-next{text-align:right}.fdg-post-navigation span{display:block;color:#8590a0;font-size:10px;margin-bottom:5px}.fdg-post-navigation a{display:block;color:#1d2b44;font-size:12px;font-weight:750;line-height:1.45}.fdg-post-navigation a:hover{color:var(--fdg-blue)}
.fdg-related{margin-top:40px;border-top:1px solid var(--fdg-line);padding-top:30px}.fdg-related .fdg-section-head{align-items:end}.fdg-related .fdg-section-head h2{font-size:22px;margin-top:6px}.fdg-related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.fdg-related-card{border:1px solid var(--fdg-line);border-radius:11px;overflow:hidden;background:#fff}.fdg-related-media{display:block;aspect-ratio:1.6/1;overflow:hidden;background:#edf2f7}.fdg-related-media img{width:100%;height:100%;object-fit:cover}.fdg-related-card>div{padding:11px}.fdg-related-cat{font-size:9px;color:var(--fdg-blue);font-weight:800}.fdg-related-card h3{font-size:12px;line-height:1.4;margin:4px 0 7px}.fdg-related-card h3 a{color:#17233a}.fdg-related-time{display:inline-flex;align-items:center;gap:4px;color:#808b9b;font-size:9.5px}

/* Generic content pages / archive fallback */
.fdg-content-wrap{padding:42px 0 60px}.fdg-content-grid{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:34px;align-items:start}.fdg-article{min-width:0}.fdg-article-header{margin-bottom:24px}.fdg-article-header h1{font-size:40px;line-height:1.18;letter-spacing:-1px;margin:0 0 13px}.fdg-featured{border-radius:12px;overflow:hidden;margin:0 0 26px;max-height:520px}.fdg-featured img{width:100%;height:auto}.fdg-archive-title{font-size:34px;margin:0 0 24px}.fdg-post-list{display:grid;gap:15px}.fdg-post-row{border:1px solid var(--fdg-line);border-radius:11px;padding:14px;display:grid;grid-template-columns:180px 1fr;gap:17px;background:#fff}.fdg-post-row img{width:180px;height:110px;object-fit:cover;border-radius:8px}.fdg-post-row h2{font-size:20px;margin:0 0 7px}.fdg-post-row p{font-size:13px;color:#536074;margin:6px 0 0}

/* Comments */
.comments-area{margin-top:38px;border-top:1px solid var(--fdg-line);padding-top:24px}.comments-title{font-size:20px}.comment-list{list-style:none;padding:0}.comment-body{border:1px solid var(--fdg-line);padding:14px;border-radius:10px;margin-bottom:12px}.comment-form input,.comment-form textarea{width:100%;border:1px solid #dce2eb;border-radius:7px;padding:10px}.comment-form .submit{width:auto;background:var(--fdg-blue);color:#fff;border:0;padding:10px 18px;font-weight:700;cursor:pointer;border-radius:7px}

/* =========================================================
   TABLET
   ========================================================= */
@media(max-width:1040px){
  .fdg-home-grid{grid-template-columns:minmax(0,1fr) 235px}
  .fdg-articles-layout{grid-template-columns:minmax(0,1fr) 250px;gap:22px}
  .fdg-single-layout{grid-template-columns:minmax(0,1fr) 245px;gap:28px}
  .fdg-footer-main{grid-template-columns:1.6fr repeat(2,1fr)}
  .fdg-footer-col:nth-child(n+4){margin-top:4px}
}

@media(max-width:960px){
  .fdg-nav{display:none;position:absolute;left:0;right:0;top:72px;background:#fff;border-bottom:1px solid var(--fdg-line);padding:10px 24px 18px;box-shadow:0 12px 28px rgba(15,31,59,.08)}
  .fdg-nav.is-open{display:block}
  .fdg-nav ul{display:block}
  .fdg-nav a{padding:10px 0;border-bottom:0}
  .fdg-menu-toggle{display:grid}
  .fdg-header-inner{height:72px}
  .fdg-search-form{top:60px}
  .fdg-hero-grid{grid-template-columns:1fr 1fr;gap:28px}
  .fdg-hero h1{font-size:37px}
  .fdg-home-grid{grid-template-columns:1fr}
  .fdg-sidebar{grid-template-columns:repeat(3,1fr)}
  .fdg-articles-hero{grid-template-columns:1fr;gap:22px;align-items:start}
  .fdg-article-search{max-width:700px}
  .fdg-articles-layout{grid-template-columns:1fr}
  .fdg-articles-aside{position:static;grid-template-columns:1fr 1fr}
  .fdg-single-layout{grid-template-columns:1fr}
  .fdg-single-aside{position:static;grid-template-columns:1.2fr 1fr 1fr;align-items:start}
  .fdg-single-heading h1{font-size:41px}
  .fdg-reading-progress{top:72px}
  .admin-bar .fdg-reading-progress{top:104px}
  .fdg-content-grid{grid-template-columns:1fr}
}

/* =========================================================
   MOBILE
   ========================================================= */
@media(max-width:720px){
  body{font-size:15px}
  .fdg-container{width:min(calc(100% - 30px),var(--fdg-max))}
  .admin-bar .fdg-header{top:46px}
  .fdg-brand-title{font-size:19px}
  .fdg-brand-tag{display:none}
  .fdg-logo-icon{width:31px;height:31px}
  .fdg-nav-wrap{gap:4px}
  .fdg-header-inner{gap:8px}
  .fdg-search-form{left:0;right:0;top:61px}
  .fdg-search-form input{width:100%}

  /* Cerință: pe mobil imaginea din hero vine DUPĂ text, butoane și beneficii. */
  .fdg-hero{padding:34px 0 22px}
  .fdg-hero-grid{grid-template-columns:1fr;gap:28px}
  .fdg-hero-grid>div:first-child{order:1}
  .fdg-hero-art{order:2;min-height:0}
  .fdg-hero-art img{max-height:280px;border-radius:20px}
  .fdg-hero h1{font-size:35px;letter-spacing:-1.2px}
  .fdg-hero p{font-size:15px}
  .fdg-features{grid-template-columns:1fr;margin-top:28px;gap:13px}
  .fdg-feature{grid-template-columns:43px 1fr}

  .fdg-cards{grid-template-columns:1fr}
  .fdg-card-thumb{aspect-ratio:1.85/1}
  .fdg-latest-item{grid-template-columns:78px 1fr}
  .fdg-latest-thumb{width:78px;height:57px}
  .fdg-latest-tag{display:none}
  .fdg-sidebar{grid-template-columns:1fr}
  .fdg-about{padding:22px 20px}
  .fdg-about h2{font-size:21px}
  .fdg-footer-main{grid-template-columns:1fr 1fr}
  .fdg-footer-main>div:first-child{grid-column:1/-1}
  .fdg-footer-bottom .fdg-container{flex-direction:column}

  /* Articole */
  .fdg-articles-wrap{padding:28px 0 52px}
  .fdg-articles-hero{padding:10px 0 22px}
  .fdg-articles-hero-copy h1{font-size:33px;letter-spacing:-.9px}
  .fdg-articles-hero-copy p{font-size:14px}
  .fdg-article-search{height:auto;min-height:56px;grid-template-columns:36px 1fr;padding:6px 7px}
  .fdg-article-search button{grid-column:1/-1;width:100%;justify-content:center;margin-top:5px}
  .fdg-category-filter{margin-inline:-15px;padding-left:15px;padding-right:15px}
  .fdg-filter-label{position:sticky;left:0;background:#fff;padding-right:5px;z-index:1}
  .fdg-article-grid{grid-template-columns:1fr}
  .fdg-article-card h3{font-size:17px}
  .fdg-articles-aside{grid-template-columns:1fr}
  .fdg-results-head h2{font-size:20px}

  /* Single articol */
  .fdg-reading-progress{top:72px}
  .admin-bar .fdg-reading-progress{top:118px}
  .fdg-single-wrap{padding:22px 0 52px}
  .fdg-breadcrumbs{margin-bottom:20px;white-space:nowrap;overflow-x:auto;flex-wrap:nowrap;padding-bottom:4px}
  .fdg-single-hero{text-align:left}
  .fdg-single-heading h1{font-size:34px;letter-spacing:-1.1px;margin-bottom:12px}
  .fdg-single-lead{font-size:14px;margin-left:0}
  .fdg-single-meta{justify-content:flex-start;gap:11px 16px}
  .fdg-single-featured{margin-top:24px;border-radius:13px}
  .fdg-single-featured img{max-height:380px}
  .fdg-single-layout{margin-top:29px}
  .fdg-entry{font-size:16px;line-height:1.78}
  .fdg-entry>p:first-child{font-size:17px}
  .fdg-entry h2{font-size:25px}
  .fdg-entry h3{font-size:20px}
  .fdg-entry table{display:block;overflow-x:auto;white-space:nowrap}
  .fdg-single-aside{grid-template-columns:1fr}
  .fdg-toc-card{order:-1}
  .fdg-post-share{align-items:flex-start;flex-direction:column}
  .fdg-copy-link{width:100%}
  .fdg-post-navigation{grid-template-columns:1fr;gap:20px}
  .fdg-post-nav-next{text-align:left}
  .fdg-related-grid{grid-template-columns:1fr}
  .fdg-related-card{display:grid;grid-template-columns:105px 1fr;align-items:center}
  .fdg-related-media{height:100%;aspect-ratio:auto}
  .fdg-related-media img{height:100%}

  .fdg-article-header h1{font-size:31px}
  .fdg-post-row{grid-template-columns:1fr}
  .fdg-post-row img{width:100%;height:180px}
}

@media(max-width:480px){
  .fdg-actions .fdg-btn{width:100%}
  .fdg-section-head{align-items:flex-end}
  .fdg-hero h1{font-size:31px}
  .fdg-hero-art img{max-height:230px}
  .fdg-footer-main{grid-template-columns:1fr}
  .fdg-footer-main>div:first-child{grid-column:auto}
  .fdg-articles-hero-copy h1{font-size:29px}
  .fdg-category-filter{padding-top:12px}
  .fdg-single-heading h1{font-size:30px}
  .fdg-single-featured{margin-inline:-4px}
  .fdg-related .fdg-section-head{align-items:flex-end}
  .fdg-related .fdg-see-all{font-size:10px}
}

/* =========================================================
   LIVE POLISH v2.0
   Accessibility, production states and refined interactions
   ========================================================= */
:root{
  --fdg-focus:0 0 0 3px rgba(23,105,224,.24);
  --fdg-content:780px;
}

::selection{background:#dbeaff;color:#0e2e5f}
a,button,input,textarea,select{outline-offset:3px}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--fdg-blue);box-shadow:var(--fdg-focus)}
.screen-reader-text:focus,.fdg-skip-link:focus{clip:auto!important;width:auto;height:auto;margin:0;overflow:visible;white-space:normal;position:fixed!important;left:16px;top:16px;z-index:99999;padding:11px 15px;border-radius:8px;background:#fff;color:var(--fdg-navy);box-shadow:var(--fdg-shadow);font-weight:800}
.admin-bar .fdg-skip-link:focus{top:48px}
.fdg-site-main:focus{outline:0;box-shadow:none}

.fdg-brand-slot{display:flex;align-items:center;min-width:0}
.custom-logo-link{display:inline-flex;align-items:center}
.fdg-search-toggle .fdg-toggle-close,.fdg-menu-toggle .fdg-toggle-close{display:none}
.fdg-search-toggle[aria-expanded="true"] .fdg-toggle-open,.fdg-menu-toggle[aria-expanded="true"] .fdg-toggle-open{display:none}
.fdg-search-toggle[aria-expanded="true"] .fdg-toggle-close,.fdg-menu-toggle[aria-expanded="true"] .fdg-toggle-close{display:grid}
.fdg-nav .current_page_item>a,.fdg-nav .current-menu-ancestor>a{color:var(--fdg-blue);border-bottom-color:var(--fdg-blue)}
.fdg-nav a:focus-visible{outline-offset:-4px}

.fdg-hero-copy>.fdg-eyebrow{margin-bottom:12px}
.fdg-home-grid-full{grid-template-columns:minmax(0,1fr)}
.fdg-home-grid-full .fdg-home-main{max-width:920px;margin-inline:auto;width:100%}
.fdg-section-head>div .fdg-eyebrow{margin-bottom:7px}
.fdg-editor-empty{margin-bottom:36px}
.fdg-widget-action{margin:10px 0 0}

/* Newsletter widgets supplied by plugins should inherit the theme UI. */
.fdg-newsletter form{margin:0}
.fdg-newsletter input[type="email"],.fdg-newsletter input[type="text"]{width:100%;min-height:42px;border:1px solid #dce2eb;border-radius:8px;padding:9px 10px;background:#fff;color:var(--fdg-text)}
.fdg-newsletter button,.fdg-newsletter input[type="submit"]{min-height:42px;border:0;border-radius:8px;background:var(--fdg-blue);color:#fff;padding:9px 13px;font-size:12px;font-weight:800;cursor:pointer}
.fdg-newsletter button:hover,.fdg-newsletter input[type="submit"]:hover{background:var(--fdg-blue-dark)}

/* Footer live states */
.fdg-footer-main.fdg-footer-no-resources{grid-template-columns:1.7fr repeat(3,1fr)}
.fdg-footer-col h2{font-size:13px;margin:3px 0 12px;color:#16213a}
.fdg-footer-col .menu{list-style:none;padding:0;margin:0;display:grid;gap:7px}
.fdg-social a{transition:transform .18s ease,border-color .18s ease,background .18s ease}
.fdg-social a:hover{transform:translateY(-2px);border-color:#bdd4f8;background:#edf5ff}
.fdg-contact-mail{display:inline-flex;align-items:center;gap:7px;color:var(--fdg-blue)!important;font-weight:800;word-break:break-word}
.fdg-footer-contact p{max-width:230px}

/* Sort control */
.fdg-sort-form{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.fdg-sort-form label{font-size:10px;color:#7a8596;font-weight:700}
.fdg-sort-form select{height:36px;border:1px solid #dbe3ed;background:#fff;color:#35435a;border-radius:8px;padding:0 30px 0 10px;font-size:11px;font-weight:700}
.fdg-sort-form button{height:36px;border:1px solid #c8d9f4;background:#f4f8ff;color:var(--fdg-blue);border-radius:8px;padding:0 11px;font-size:10.5px;font-weight:800;cursor:pointer}
.fdg-sort-form button:hover{background:#eaf3ff}

/* Reading experience */
.fdg-entry{overflow-wrap:anywhere}
.fdg-entry pre{overflow:auto;background:#111827;color:#e5e7eb;border-radius:12px;padding:17px 18px;font-size:13px;line-height:1.6}
.fdg-entry code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.9em}
.fdg-entry :not(pre)>code{background:#f1f5f9;color:#24324a;border-radius:5px;padding:.12em .35em}
.fdg-entry iframe,.fdg-entry video{max-width:100%}
.fdg-entry hr{border:0;border-top:1px solid var(--fdg-line);margin:34px 0}
.fdg-entry .wp-block-image,.fdg-entry .wp-block-gallery,.fdg-entry .wp-block-embed{margin-block:28px}
.fdg-entry .alignwide{max-width:980px;width:min(980px,calc(100vw - 48px));margin-left:50%;transform:translateX(-50%)}
.fdg-entry .alignfull{width:100vw;max-width:100vw;margin-left:50%;transform:translateX(-50%)}
.fdg-page-links{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin-top:25px}
.fdg-page-links .post-page-numbers{min-width:35px;height:35px;display:grid;place-items:center;border:1px solid var(--fdg-line);border-radius:7px;background:#fff;text-decoration:none}
.fdg-page-links .current{background:var(--fdg-blue);color:#fff;border-color:var(--fdg-blue)}
.fdg-toc a.is-active{border-left-color:var(--fdg-blue);color:var(--fdg-blue);background:#f3f8ff;font-weight:800}

.fdg-share-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.fdg-native-share,.fdg-copy-link{border:1px solid #bed5f8;background:#fff;color:var(--fdg-blue);border-radius:8px;padding:8px 12px;font-size:10.5px;font-weight:800;cursor:pointer;white-space:nowrap;min-height:36px}
.fdg-native-share{display:inline-flex;align-items:center;gap:5px}
.fdg-native-share:hover,.fdg-copy-link:hover{background:#eaf3ff}
.fdg-copy-link.is-success{border-color:#9ad8bd;background:#ecfbf5;color:#087a4f}

.fdg-author-box{margin-top:26px;border:1px solid var(--fdg-line);border-radius:14px;background:#fff;padding:20px;display:grid;grid-template-columns:48px 1fr;gap:14px;align-items:start;box-shadow:0 4px 18px rgba(15,31,59,.035)}
.fdg-author-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:13px;background:#edf5ff;color:var(--fdg-blue)}
.fdg-author-box h2{font-size:17px;line-height:1.2;margin:6px 0 6px;color:#15233c}
.fdg-author-box p{margin:0;color:#5f6c80;font-size:12.5px;line-height:1.65}

/* Generic pages */
.fdg-page-narrow{max-width:850px;margin-inline:auto}
.fdg-page-hero{margin-bottom:28px}
.fdg-page-hero h1{font-size:40px;line-height:1.15;letter-spacing:-1px;margin:0 0 10px;color:#13213b}
.fdg-page-hero p{color:#637083;margin:0}
.fdg-not-found{text-align:center;max-width:720px;margin-inline:auto;padding-block:28px}
.fdg-not-found-code{font-size:clamp(64px,13vw,110px);font-weight:900;line-height:.9;letter-spacing:-5px;color:#d9e8ff;margin:10px 0 20px}
.fdg-not-found h1{font-size:32px;margin:0 0 8px;color:#12203a}
.fdg-not-found p{color:#69768a;margin:0 auto 22px;max-width:520px}
.fdg-not-found-actions{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;margin-bottom:28px}
.fdg-not-found-search{max-width:520px;margin-inline:auto}
.fdg-not-found-search .search-form{display:flex}
.fdg-not-found-search .search-field{min-width:0;flex:1;border:1px solid #dce4ee;border-radius:9px 0 0 9px;padding:11px 12px}
.fdg-not-found-search .search-submit{border:0;background:var(--fdg-blue);color:#fff;border-radius:0 9px 9px 0;padding:0 16px;font-weight:800;cursor:pointer}

/* Back to top */
.fdg-back-to-top{position:fixed;right:22px;bottom:22px;z-index:70;width:42px;height:42px;border:1px solid #cfe0fa;border-radius:12px;background:rgba(255,255,255,.96);color:var(--fdg-blue);display:grid;place-items:center;box-shadow:0 8px 24px rgba(15,31,59,.12);cursor:pointer;opacity:0;visibility:hidden;transform:translateY(10px);transition:.2s ease}
.fdg-back-to-top.is-visible{opacity:1;visibility:visible;transform:translateY(0)}
.fdg-back-to-top:hover{background:var(--fdg-blue);color:#fff;border-color:var(--fdg-blue)}

/* Comments polish */
.comments-area h2{font-size:21px;color:#15233d}
.comment-list .children{list-style:none;padding-left:26px}
.comment-meta{font-size:11px;color:#7a8596}
.comment-author .fn{font-weight:800;color:#17243b}
.comment-content{font-size:14px;color:#47556b}
.comment-reply-link{font-size:11px;font-weight:800}
.comment-form label{display:block;font-size:11px;font-weight:800;color:#526077;margin-bottom:5px}
.comment-form input,.comment-form textarea{background:#fff}
.comment-form textarea{min-height:140px;resize:vertical}

@media(max-width:1040px){
  .fdg-footer-main.fdg-footer-no-resources{grid-template-columns:1.6fr repeat(2,1fr)}
}

@media(max-width:960px){
  body.fdg-menu-open{overflow:hidden}
  .fdg-nav{max-height:calc(100vh - 72px);overflow:auto}
  .fdg-results-head{align-items:flex-start;gap:14px}
  .fdg-footer-main.fdg-footer-no-resources{grid-template-columns:1.5fr 1fr 1fr}
}

@media(max-width:720px){
  .fdg-results-head{align-items:stretch;flex-direction:column}
  .fdg-sort-form{justify-content:flex-start}
  .fdg-sort-form select{flex:1;min-width:150px}
  .fdg-share-actions{width:100%;justify-content:stretch}
  .fdg-share-actions>*{flex:1}
  .fdg-author-box{grid-template-columns:42px 1fr;padding:17px}
  .fdg-author-icon{width:40px;height:40px}
  .fdg-entry .alignwide,.fdg-entry .alignfull{width:calc(100vw - 30px)}
  .fdg-footer-main.fdg-footer-no-resources{grid-template-columns:1fr 1fr}
  .fdg-footer-main.fdg-footer-no-resources>div:first-child{grid-column:1/-1}
  .fdg-back-to-top{right:15px;bottom:15px;width:40px;height:40px}
  .fdg-not-found{padding-block:12px}
}

@media(max-width:480px){
  .fdg-footer-main.fdg-footer-no-resources{grid-template-columns:1fr}
  .fdg-footer-main.fdg-footer-no-resources>div:first-child{grid-column:auto}
  .fdg-author-box{grid-template-columns:1fr}
  .fdg-author-icon{margin-bottom:2px}
  .fdg-sort-form label{width:100%}
}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}
}
