/*
Theme Name: FastNews Lite
Theme URI: https://example.com
Author: ChatGPT
Author URI: https://example.com
Description: Ultra-light, stylish news theme focused on maximum speed on mobile and desktop.
Version: 1.1.8
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fastnews-lite
Tags: news, blog, one-column, custom-logo, custom-menu, featured-images, translation-ready
*/

:root{
  --bg:#0b0f17;
  --card:#0f1625;
  --text:#e7eefc;
  --muted:#a7b4cc;
  --line:rgba(255,255,255,.08);
  --brand:#57b7ff;
  --brand2:#8a5cff;
  --radius:16px;
  --shadow:0 10px 30px rgba(0,0,0,.35);
  --max:1100px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font:16px/1.6 system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,"Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:
    radial-gradient(900px 380px at 20% -10%, rgba(87,183,255,.22), transparent 55%),
    radial-gradient(700px 340px at 90% 0%, rgba(138,92,255,.20), transparent 60%),
    linear-gradient(180deg, #070a10 0%, var(--bg) 60%, #070a10 100%);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

a{color:inherit; text-decoration:none}
a:hover{color:var(--brand)}
img{max-width:100%; height:auto; display:block}
svg{display:block}
::selection{background:rgba(87,183,255,.25)}
hr{border:0;border-top:1px solid var(--line);margin:28px 0}

.wrap{max-width:var(--max); margin:0 auto; padding:0 16px}
.site-header{
  position:sticky; top:0; z-index:50;
  backdrop-filter:saturate(140%) blur(10px);
  background:rgba(7,10,16,.66);
  border-bottom:1px solid var(--line);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:14px; padding:12px 0;
}
.brand{
  display:flex; align-items:center; gap:10px;
  min-width:0;
}
.brand-logo img{width:34px;height:34px;border-radius:10px}
.brand-title{font-weight:800; letter-spacing:.2px; line-height:1.2}
.brand-title span{display:block; font-size:12px; color:var(--muted); font-weight:600; margin-top:1px}
.nav-toggle{
  display:inline-flex;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  color:var(--text);
  padding:8px 10px;
  border-radius:12px;
}
.main-nav{display:none}
.main-nav .menu{display:flex; gap:14px; list-style:none; margin:0; padding:0}
.main-nav a{
  padding:8px 10px;
  border-radius:12px;
  color:var(--muted);
  font-weight:700;
  letter-spacing:.15px;
}
.main-nav a:hover,.main-nav .current-menu-item>a,.main-nav .current_page_item>a{
  color:var(--text);
  background:rgba(255,255,255,.04);
  border:1px solid var(--line);
}

.header-actions{display:flex; gap:10px; align-items:center}
.search-mini{
  display:flex; align-items:center; gap:8px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  border-radius:14px;
  padding:0 6px;
  min-height:44px; /* ✅ Lighthouse tap target */
  max-width:360px;
}
.search-mini input{
  appearance:none; border:0; outline:0;
  background:transparent; color:var(--text);
  width:240px; max-width:45vw;
  font-weight:650;
  padding:10px 8px;
  min-height:44px; /* ✅ Lighthouse tap target */
}
.search-mini input::placeholder{color:rgba(167,180,204,.8)}
.search-mini button{
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  color:var(--muted);
  cursor:pointer;
  min-width:44px; min-height:44px; /* ✅ Lighthouse tap target */
  display:flex; align-items:center; justify-content:center;
  border-radius:12px;
  padding:0;
}
.search-mini button:hover{color:var(--text); background:rgba(255,255,255,.06)}

.hero{
  padding:26px 0 12px;
}
.hero.hero--compact{padding:18px 0 8px}
.hero.hero--compact h1{font-size: clamp(20px, 2.4vw, 30px)}
.hero.hero--compact p{margin-top:6px; font-size:14px}
.hero h1{
  margin:0;
  font-size: clamp(28px, 3.6vw, 46px);
  line-height:1.1;
  letter-spacing:-.5px;
}
.hero p{margin:10px 0 0; color:var(--muted); max-width:72ch}

.grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:18px;
  margin:18px 0 26px;
}
@media (max-width: 920px){
  .grid{grid-template-columns:1fr}
}

.card{
  border:1px solid var(--line);
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
}
.card-inner{padding:16px}
.kicker{
  display:inline-flex; gap:8px; align-items:center;
  font-size:12px;
  color:var(--muted);
  font-weight:700;
  letter-spacing:.2px;
}
.kicker .dot{width:8px;height:8px;border-radius:99px;background:linear-gradient(90deg,var(--brand),var(--brand2))}
.title-lg{
  margin:10px 0 6px;
  font-size: clamp(20px, 2.3vw, 34px);
  line-height:1.18;
  letter-spacing:-.35px;
}
.title-md{
  margin:10px 0 6px;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height:1.22;
  letter-spacing:-.25px;
}
.meta{color:var(--muted); font-size:13px; font-weight:650}
.excerpt{color:rgba(231,238,252,.92); margin:10px 0 0}
.thumb{
  aspect-ratio: 16/9;
  background:rgba(255,255,255,.03);
  border-bottom:1px solid var(--line);
}
.thumb img{width:100%; height:100%; object-fit:cover}

.list{
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
}
.item{
  display:grid;
  grid-template-columns: 140px 1fr;
  gap:14px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(255,255,255,.02);
}
.item:hover{background:rgba(255,255,255,.04)}
.item .thumb{aspect-ratio: 4/3; border-radius:12px; overflow:hidden; border:1px solid var(--line)}
.item .thumb img{border-radius:12px}

/* Post cards — layout like the screenshot (thumb on the left, content on the right) */
.item.post-card{
  display:flex;
  align-items:flex-start;
  gap:18px;
  padding:18px;
  border-radius:20px;
  border:1px solid var(--line);
  background:var(--card);
  box-shadow:0 1px 0 rgba(0,0,0,.04), 0 10px 24px rgba(0,0,0,.06);
  transition:transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.item.post-card:hover{
  transform:translateY(-1px);
  box-shadow:0 2px 0 rgba(0,0,0,.04), 0 14px 34px rgba(0,0,0,.08);
}

.post-card-thumb{
  flex:0 0 170px;
  width:170px;
  aspect-ratio:1/1;
  border-radius:18px;
  overflow:hidden;
  border:1px solid var(--line);
  background:var(--card2, rgba(255,255,255,.03));
}
.post-card-thumb img{width:100%; height:100%; object-fit:cover}

.post-card-placeholder{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:850;
  color:var(--muted);
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.02));
}

.post-card-body{min-width:0}
.post-card-title{
  margin:6px 0 4px;
  font-size: clamp(22px, 2vw, 30px);
  line-height:1.2;
  letter-spacing:-.3px;
}
.post-card-author{margin-top:2px}
.post-card-excerpt{margin-top:10px}

@media (max-width:640px){
  .item.post-card{flex-direction:column}
  .post-card-thumb{width:100%; flex-basis:auto; aspect-ratio:16/9}
}
@media (max-width:520px){
  .item{grid-template-columns:1fr}
  .item .thumb{aspect-ratio:16/9}
}

.content{
  max-width: 760px;
  margin: 0 auto;
  padding: 22px 0 40px;
}
.content .post-title{
  margin:12px 0 10px;
  font-size: clamp(26px, 3vw, 44px);
  line-height:1.08;
  letter-spacing:-.5px;
}
.content .post-meta{color:var(--muted); font-weight:650; font-size:13px}
.content .post-hero{
  margin:18px 0 14px;
  border-radius:var(--radius);
  overflow:hidden;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}
.content .post-hero img{width:100%; height:auto}

.entry{
  color:rgba(231,238,252,.95);
}
.entry p, .entry ul, .entry ol{margin: 0 0 16px}
.entry ul, .entry ol{padding-left: 22px}
.entry a{color:var(--brand)}
.entry a:hover{text-decoration:underline}
.entry h2, .entry h3, .entry h4{
  margin: 26px 0 10px;
  line-height:1.2;
  letter-spacing:-.2px;
}
.entry h2{font-size: clamp(20px, 2vw, 28px)}
.entry h3{font-size: clamp(18px, 1.6vw, 22px)}
.entry blockquote{
  margin: 18px 0;
  padding: 12px 14px;
  border-left: 3px solid var(--brand);
  background: rgba(255,255,255,.03);
  border-radius: 14px;
  color: rgba(231,238,252,.92);
}
.entry code{
  background:rgba(255,255,255,.06);
  border:1px solid var(--line);
  padding:2px 6px;
  border-radius:10px;
  font-family: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
  font-size:.95em;
}
.entry pre{
  background:rgba(255,255,255,.06);
  border:1px solid var(--line);
  padding:14px;
  border-radius:16px;
  overflow:auto;
}

.pagination{
  display:flex; gap:10px; align-items:center; justify-content:center;
  margin: 22px 0 44px;
}
.pagination .page-numbers{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:40px; height:40px;
  padding:0 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.02);
  color:var(--muted);
  font-weight:750;
}
.pagination .page-numbers:hover{color:var(--text); background:rgba(255,255,255,.04)}
.pagination .current{color:var(--text); background:rgba(255,255,255,.06)}

.site-footer{
  border-top:1px solid var(--line);
  padding:26px 0 46px;
  color:var(--muted);
  background:rgba(0,0,0,.12);
}
.footer-grid{
  display:grid;
  grid-template-columns: 1fr auto;
  gap:16px;
  align-items:center;
}
.footer-grid a{color:var(--muted)}
.footer-grid a:hover{color:var(--text)}

.skip-link{
  position:absolute; left:-9999px; top:0;
}
.skip-link:focus{
  left:16px; top:16px; z-index:1000;
  background:#111a2a; color:var(--text);
  padding:10px 12px; border-radius:12px;
  border:1px solid var(--line);
}

@media (max-width: 860px){
  .nav-toggle{display:inline-flex}
  .search-mini input{width:180px}
}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
}


.breadcrumbs{margin:10px 0 0;color:var(--muted);font-size:12.5px;font-weight:650}
.breadcrumbs a{color:var(--muted)}
.breadcrumbs a:hover{color:var(--text)}
.breadcrumbs span{opacity:.9}

/* Top bar (second menu) */
.topbar{
  border-bottom:1px solid var(--line);
  background:rgba(7,10,16,.46);
}
.topbar-inner{
  padding:8px 0;
}
.topbar-menu{
  display:flex;
  gap:10px;
  list-style:none;
  margin:0;
  padding:0;
  overflow:auto;
  scrollbar-width:none;
}
.topbar-menu::-webkit-scrollbar{display:none}
.topbar-menu a{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.02);
  color:var(--muted);
  font-weight:750;
  font-size:12.5px;
  white-space:nowrap;
}
.topbar-menu a:hover,
.topbar-menu .current-menu-item>a,
.topbar-menu .current_page_item>a{
  color:var(--text);
  background:rgba(255,255,255,.05);
}

/* Collapsible menus (primary & topbar) */
.main-nav.is-open,
.topbar-nav.is-open{
  display:block;
}

.main-nav{
  position:absolute;
  left:0; right:0;
  top:98px;
  padding:12px 16px 16px;
}
.main-nav .menu{
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px;
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: rgba(10,14,22,.92);
  backdrop-filter: blur(10px) saturate(140%);
  box-shadow: var(--shadow);
  display:flex;
  flex-direction:column;
  gap:10px;
}
.main-nav a{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.02);
  color:var(--muted);
}
.main-nav a:hover,
.main-nav .current-menu-item>a,
.main-nav .current_page_item>a{
  color:var(--text);
  background:rgba(255,255,255,.06);
}

.topbar-toggle{
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  color:var(--muted);
  padding:10px 12px;
  min-height:44px; /* ✅ Lighthouse tap target */
  border-radius:999px;
  font-weight:800;
  font-size:12.5px;
  cursor:pointer;
}
.topbar-toggle:hover{color:var(--text); background:rgba(255,255,255,.05)}

.topbar-nav{
  display:none;
  width:100%;
  margin-top:10px;
}
.topbar-nav .topbar-menu{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10,14,22,.80);
  padding:10px;
  box-shadow: var(--shadow);
  flex-wrap:wrap;
  overflow:visible;
}
.topbar-nav .topbar-menu a{
  font-size:12.5px;
}

/* Drawer (fullscreen menu like in screenshot) */
.nav-toggle{
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  color:var(--text);
  width:42px; height:42px;
  border-radius:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.nav-toggle:hover{background:rgba(255,255,255,.05)}

.brand-fallback{
  display:inline-flex;width:34px;height:34px;border-radius:10px;
  border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.04);
  align-items:center;justify-content:center;font-weight:900;
}

.drawer{
  position:fixed;
  inset:0;
  z-index:1000;
  display:none;
}
.drawer.is-open{display:block}
.drawer-backdrop{
  position:absolute; inset:0;
  background: rgba(0,0,0,.55);
}
.drawer-panel{
  position:absolute;
  right:0; top:0; bottom:0;
  width:min(420px, 86vw);
  background: rgba(12,16,26,.96);
  border-left:1px solid var(--line);
  backdrop-filter: blur(12px) saturate(140%);
  box-shadow: -20px 0 60px rgba(0,0,0,.45);
  padding:18px 18px 28px;
  overflow:auto;
  transform: translateX(12px);
}
.drawer.is-open .drawer-panel{
  transform: translateX(0);
  transition: transform .18s ease;
}
.drawer-close{
  position:sticky; top:0;
  margin-left:auto;
  width:44px; height:44px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  color:var(--text);
  font-size:26px;
  line-height:1;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}
.drawer-close:hover{background:rgba(255,255,255,.07)}

.drawer-nav{margin-top:10px}
.drawer-menu{
  list-style:none;
  padding:0;
  margin:10px 0 0;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.drawer-menu a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.02);
  color:rgba(231,238,252,.92);
  font-weight:820;
  letter-spacing:.15px;
}
.drawer-menu a:hover{background:rgba(255,255,255,.06)}
.drawer-menu--secondary a{
  font-weight:760;
  color:var(--muted);
}

.drawer-divider{
  height:1px;
  background:var(--line);
  margin:18px 0 12px;
}
.drawer-section-title{
  color:rgba(167,180,204,.92);
  font-weight:850;
  font-size:12px;
  letter-spacing:.22px;
  text-transform:uppercase;
  margin-top:2px;
}

/* Submenu accordion */
.drawer-menu .menu-item-has-children > a{
  padding-right:52px;
}
.drawer-subtoggle{
  position:absolute;
  right:26px;
  margin-top: -44px;
  width:38px; height:38px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.03);
  color:var(--muted);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}
.drawer-subtoggle:hover{color:var(--text); background:rgba(255,255,255,.06)}

.drawer-menu .sub-menu{
  list-style:none;
  margin:0 0 0 12px;
  padding:10px 0 0;
  display:none;
  gap:8px;
  flex-direction:column;
}
.drawer-menu .sub-menu a{
  font-weight:720;
  background:rgba(255,255,255,.02);
}
.drawer-menu .menu-item.is-open > .sub-menu{
  display:flex;
}

/* ===== Menus v1.0.7 (2 rows top + 2 rows bottom + dropdowns) ===== */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Desktop: show topbar + primary rows; Mobile: hide primary row and use drawer */
.main-nav{display:flex; align-items:center; justify-content:flex-start; padding-top:10px; padding-bottom:10px}
.main-nav .menu{display:flex; flex-wrap:wrap; gap:10px; list-style:none; margin:0; padding:0}
.main-nav a{padding:10px 12px; min-height:44px}

@media (max-width: 860px){
  .main-nav{display:none}
  .nav-toggle{display:inline-flex}
  .topbar{display:none} /* keep mobile clean; drawer shows Sections */
}

@media (min-width: 861px){
  .nav-toggle{display:none}
  .topbar{display:block}
}

/* Dropdowns (desktop) */
.main-nav .menu li,
.topbar-menu li,
.footer-menu li{position:relative}

.main-nav .sub-menu,
.topbar-menu .sub-menu{
  display:none;
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  min-width:220px;
  max-width:320px;
  list-style:none;
  margin:0;
  padding:8px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(10,14,22,.92);
  backdrop-filter: blur(10px) saturate(140%);
  box-shadow: var(--shadow);
  z-index:50;
}
.main-nav .sub-menu a,
.topbar-menu .sub-menu a{
  display:flex;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.02);
  min-height:44px;
}
.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu,
.topbar-menu li:hover > .sub-menu,
.topbar-menu li:focus-within > .sub-menu{
  display:block;
}
.main-nav .menu-item-has-children > a:after,
.topbar-menu .menu-item-has-children > a:after{
  content:"▾";
  margin-left:8px;
  font-size:12px;
  opacity:.75;
}

/* Footer: 2 lines; show submenu expanded (no dropdown needed) */
.footer-brand{font-weight:800;color:rgba(231,238,252,.92);letter-spacing:.15px}
.footer-copy{margin-top:6px}
.footer-row{margin-top:14px}
.footer-menu{display:flex; flex-wrap:wrap; gap:10px}
.site-footer .footer-menu .sub-menu{
  display:block;
  position:static;
  border:0;
  background:transparent;
  box-shadow:none;
  padding:6px 0 0;
  margin:0;
}
.site-footer .footer-menu .sub-menu a{
  padding:8px 10px;
  min-height:40px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.02);
  display:inline-flex;
  margin:6px 6px 0 0;
}


/* ===== Menu polish v1.0.8 (like reference: 2 bars top, clean links, dropdown arrows) ===== */

/* Ensure menu lists never show bullets anywhere */
.site-header .menu,
.site-footer .menu,
.drawer .drawer-menu{
  list-style:none !important;
  margin:0 !important;
  padding:0 !important;
}

/* Top bar (row 1) */
.site-header .topbar{
  background: rgba(0,0,0,.55);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.site-header .topbar-inner{padding:0}
.site-header .topbar-menu{
  display:flex;
  align-items:center;
  gap:0;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  white-space:nowrap;
}
.site-header .topbar-menu::-webkit-scrollbar{display:none}
.site-header .topbar-menu > li > a{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:12px 14px;
  border:0 !important;
  background:transparent !important;
  border-radius:0 !important;
  color:rgba(235,242,255,.9);
  font-weight:750;
  font-size:14px;
  line-height:1;
}
.site-header .topbar-menu > li > a:hover,
.site-header .topbar-menu > li.current-menu-item > a,
.site-header .topbar-menu > li.current_page_item > a{
  color:#fff;
  background:rgba(255,255,255,.06) !important;
}
.site-header .topbar-menu > li + li > a{
  border-left:1px solid rgba(255,255,255,.06) !important;
}

/* Primary bar (row 2) */
.site-header .main-nav{
  display:block;
  border-top:1px solid rgba(255,255,255,.06);
  background: rgba(7,10,16,.35);
}
.site-header .main-menu{
  display:flex;
  align-items:center;
  gap:0;
  flex-wrap:wrap;
}
.site-header .main-menu > li > a{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:12px 14px;
  border:0 !important;
  background:transparent !important;
  border-radius:0 !important;
  color:rgba(235,242,255,.92);
  font-weight:780;
  font-size:15px;
  line-height:1;
}
.site-header .main-menu > li > a:hover,
.site-header .main-menu > li.current-menu-item > a,
.site-header .main-menu > li.current_page_item > a{
  color:#fff;
  background:rgba(255,255,255,.06) !important;
}
.site-header .main-menu > li + li > a{
  border-left:1px solid rgba(255,255,255,.06) !important;
}

/* Dropdown arrows */
.site-header .menu-item-has-children > a:after{
  content:"▾";
  font-size:12px;
  opacity:.85;
  margin-left:2px;
}

/* Dropdown panels (desktop) */
.site-header .topbar-menu .sub-menu,
.site-header .main-menu .sub-menu{
  display:none;
  position:absolute;
  top:calc(100% + 6px);
  left:0;
  min-width:220px;
  max-width:340px;
  padding:10px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(10,14,22,.96);
  backdrop-filter: blur(10px) saturate(140%);
  box-shadow: var(--shadow);
  z-index:100;
}
.site-header .topbar-menu li:hover > .sub-menu,
.site-header .topbar-menu li:focus-within > .sub-menu,
.site-header .main-menu li:hover > .sub-menu,
.site-header .main-menu li:focus-within > .sub-menu{display:block}
.site-header .topbar-menu .sub-menu a,
.site-header .main-menu .sub-menu a{
  display:flex;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.02);
  color:rgba(235,242,255,.95);
  min-height:44px;
}
.site-header .topbar-menu .sub-menu a:hover,
.site-header .main-menu .sub-menu a:hover{
  background:rgba(255,255,255,.06);
}

/* Mobile: hide both bars, use drawer */
@media (max-width: 860px){
  .site-header .topbar{display:none !important}
  .site-header .main-nav{display:none !important}
  .nav-toggle{display:inline-flex !important}
}

/* Desktop: show bars, hide burger */
@media (min-width: 861px){
  .nav-toggle{display:none !important}
}

/* Drawer: make it clean (like your screenshot: white panel) */
.drawer-panel{
  background:#fff !important;
  color:#111 !important;
}
.drawer-label{color:#333 !important}
.drawer-menu a{color:#111 !important}
.drawer-menu a:hover{background:rgba(0,0,0,.06) !important}
.drawer-close{
  border:1px solid rgba(0,0,0,.12) !important;
  background:rgba(0,0,0,.03) !important;
  color:#111 !important;
}
.drawer-subtoggle{
  border:1px solid rgba(0,0,0,.12) !important;
  background:rgba(0,0,0,.03) !important;
  color:#111 !important;
}
.drawer-menu .sub-menu{
  border-left:2px solid rgba(0,0,0,.10) !important;
}

/* Footer menus: keep them simple (no bullets) */
.site-footer .footer-menu{list-style:none !important}


/* ===== Hard menu fix v1.0.9 (removes "pill" container and forces 2 clean bars) ===== */

/* Topbar nav must be visible on desktop (old versions hid it) */
.site-header .topbar-nav{
  display:block !important;
  width:100% !important;
  margin-top:0 !important;
}

/* Remove old "panel" styling that made the menu look like a huge rounded pill */
.site-header .topbar-nav .topbar-menu{
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  padding:0 !important;
  box-shadow:none !important;
  flex-wrap:nowrap !important;
  justify-content:flex-start !important;
}

/* Safety: if any generic nav/menu wrapper gets a pill style, neutralize it */
.site-header nav .menu{
  background:transparent !important;
  border-radius:0 !important;
}

/* Make sure menu rows look like standard bars */
.site-header .topbar{border-bottom:1px solid rgba(255,255,255,.08) !important}
.site-header .main-nav{border-top:1px solid rgba(255,255,255,.06) !important}

/* Ensure the topbar list aligns left even with single item */
.site-header .topbar-menu{
  justify-content:flex-start !important;
}

/* ===== Menu overflow / "doesn't stick out" fix v1.0.10 ===== */
/* Prevent any accidental horizontal scroll caused by menus/submenus */
html, body{overflow-x:hidden}

/* Older styles used an absolute-positioned dropdown for .main-nav.
   On desktop we need it to be a normal bar and never escape the header. */
.site-header .main-nav{
  position:static !important;
  left:auto !important;
  right:auto !important;
  top:auto !important;
  padding:0 !important;
}

/* Force horizontal layout for desktop primary menu (avoid legacy column styles). */
.site-header .main-menu{
  flex-direction:row !important;
  width:100%;
  max-width:100%;
}

/* Keep menu items from pushing the page wider */
.site-header .topbar-menu,
.site-header .main-menu{
  max-width:100%;
}

/* If a label is very long, it should never break the layout */
.site-header .topbar-menu > li > a,
.site-header .main-menu > li > a{
  white-space:nowrap;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Dropdowns must never go outside the viewport */
.site-header .topbar-menu .sub-menu,
.site-header .main-menu .sub-menu{
  max-width:min(360px, calc(100vw - 24px));
  max-height:min(60vh, 520px);
  overflow:auto;
  overscroll-behavior:contain;
  overflow-wrap:anywhere;
}

/* Near the right edge: open dropdown inward */
@media (min-width: 861px){
  .site-header .topbar-menu > li:nth-last-child(-n+2) > .sub-menu,
  .site-header .main-menu  > li:nth-last-child(-n+2) > .sub-menu{
    right:0;
    left:auto;
  }
}

/* ========================================================================== */
/* iOS / Apple-like LIGHT UI (v1.1.0)                                         */
/* ========================================================================== */

:root{
  --bg:#f5f5f7;
  --card:#ffffff;
  --card2:#f2f2f7;
  --text:#1d1d1f;
  --muted:#6e6e73;
  --line:rgba(60,60,67,.18);
  --brand:#0071e3;
  --brand2:#0a84ff;
  --radius:18px;
  --shadow:0 10px 30px rgba(0,0,0,.08);
  /* Slightly narrower content to give AdSense side-rail ads enough room (prevents "No slot size" errors on ~1366px screens) */
  --max:1080px;
  --ring:rgba(10,132,255,.25);
}

body{
  background: var(--bg) !important;
  color: var(--text) !important;
}

@media (min-width: 1024px){
  .wrap{padding:0 12px !important;}
}

a:hover{color:var(--brand2)}
::selection{background:rgba(10,132,255,.22)}
hr{border-top:1px solid var(--line)}

.skip-link:focus{
  background: var(--card);
  color: var(--text);
  border:1px solid var(--line);
  box-shadow: var(--shadow);
}

/* Header */
.site-header{
  background: rgba(245,245,247,.72) !important;
  border-bottom:1px solid var(--line) !important;
  backdrop-filter:saturate(180%) blur(12px);
}
.site-header .topbar{
  background: rgba(245,245,247,.92) !important;
  border-bottom:1px solid var(--line) !important;
}
.site-header .main-nav{
  background: rgba(245,245,247,.72) !important;
  border-top:1px solid var(--line) !important;
}

/* Give content breathing room below the sticky header/menus */
.site-main{padding-top:14px !important}
@media (min-width: 820px){
  .site-main{padding-top:18px !important}
}
.brand-logo img{
  width:36px;
  height:36px;
  border-radius:12px;
  box-shadow:0 1px 0 rgba(0,0,0,.04), 0 10px 24px rgba(0,0,0,.10);
}

.brand-fallback-text{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:12px;
  font-weight:850;
  letter-spacing:-.25px;
  color:var(--text);
  background:rgba(255,255,255,.75);
  border:1px solid var(--line);
}

.nav-toggle{
  border:1px solid var(--line) !important;
  background: rgba(255,255,255,.75) !important;
  color: var(--text) !important;
}
.nav-toggle:hover{background:rgba(0,0,0,.04) !important}

.search-mini{
  border:1px solid var(--line) !important;
  background: rgba(255,255,255,.70) !important;
}
.search-mini input{color:var(--text) !important}
.search-mini input::placeholder{color:rgba(60,60,67,.6) !important}
.search-mini button{
  border:1px solid var(--line) !important;
  background: var(--card2) !important;
  color: var(--muted) !important;
}
.search-mini button:hover{color:var(--text) !important; background:rgba(0,0,0,.04) !important}

/* Header search: hide field until icon is pressed (popover). */
.search-mini{position:relative}
.search-mini__field{
  position:absolute;
  top:calc(100% + 10px);
  right:0;
  width:min(360px, 90vw);
  padding:10px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.96);
  border-radius:16px;
  box-shadow:var(--shadow);
  z-index:50;
}
.search-mini__field input{
  width:100% !important;
  max-width:none !important;
  background:var(--card2) !important;
  border:1px solid var(--line) !important;
  border-radius:14px !important;
}
@media (max-width: 520px){
  .search-mini__field{left:0; right:auto; width:92vw}
}


/* Menus */
.site-header .topbar-menu > li > a,
.site-header .main-menu  > li > a{
  color: var(--text) !important;
}
.site-header .topbar-menu > li > a:hover,
.site-header .main-menu  > li > a:hover,
.site-header .topbar-menu > li.current-menu-item > a,
.site-header .main-menu  > li.current-menu-item > a,
.site-header .topbar-menu > li.current_page_item > a,
.site-header .main-menu  > li.current_page_item > a{
  background: rgba(0,0,0,.05) !important;
  color: var(--text) !important;
}
.site-header .topbar-menu > li + li > a,
.site-header .main-menu  > li + li > a{
  border-left:1px solid var(--line) !important;
}

.site-header .topbar-menu .sub-menu,
.site-header .main-menu  .sub-menu{
  border:1px solid var(--line) !important;
  background: rgba(255,255,255,.96) !important;
  box-shadow: var(--shadow) !important;
}
.site-header .topbar-menu .sub-menu a,
.site-header .main-menu  .sub-menu a{
  border:1px solid var(--line) !important;
  background: rgba(0,0,0,.02) !important;
  color: var(--text) !important;
}
.site-header .topbar-menu .sub-menu a:hover,
.site-header .main-menu  .sub-menu a:hover{background:rgba(0,0,0,.05) !important}

/* Cards / lists */
.card{background:var(--card) !important; box-shadow:var(--shadow) !important}
.thumb{background:var(--card2) !important}
.item{background:var(--card) !important}
.item:hover{background:rgba(0,0,0,.02) !important}
.item.post-card{
  border:1px solid var(--line) !important;
  background:var(--card) !important;
}
.item.post-card:hover{background:var(--card) !important}
.post-card-thumb{background:var(--card2) !important}
.meta{color:var(--muted) !important}
.excerpt{color:rgba(29,29,31,.88) !important}

/* Single/Page: make article look like iOS card */
.content{padding:18px 0 44px !important}
.content article{
  background: var(--card) !important;
  border:1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  padding: 18px 16px;
  box-shadow: var(--shadow);
}
@media (min-width: 820px){
  .content article{padding: 22px 22px}
}

.content .post-meta{color:var(--muted) !important}
.content .post-hero{box-shadow:var(--shadow) !important}

.breadcrumbs{color:var(--muted) !important}
.breadcrumbs a{color:var(--muted) !important}
.breadcrumbs a:hover{color:var(--text) !important}

/* Typography (Apple-ish) */
.entry{color:var(--text) !important; font-size:17px; line-height:1.75}
.entry p, .entry ul, .entry ol{margin: 0 0 16px}
.entry a{color:var(--brand) !important}
.entry a:hover{text-decoration:underline}
.entry blockquote{
  background: var(--card2) !important;
  border:1px solid var(--line);
  border-left: 3px solid var(--brand);
  color: var(--text) !important;
}
.entry code,
.entry pre{
  background: var(--card2) !important;
  border:1px solid var(--line) !important;
  color: var(--text) !important;
}

/* Pagination */
.pagination .page-numbers{
  background: rgba(255,255,255,.7) !important;
  color: var(--text) !important;
  border:1px solid var(--line) !important;
}
.pagination .page-numbers:hover{background:rgba(0,0,0,.04) !important}
.pagination .current{background:rgba(0,0,0,.06) !important}

/* Footer */
.site-footer{
  background: var(--card2) !important;
  border-top:1px solid var(--line) !important;
  color: #3a3a3c !important;
}
.footer-brand{color: var(--text) !important}
.footer-copy{color: #3a3a3c !important}
.footer-grid a{color:#3a3a3c !important}
.footer-grid a:hover{color:var(--text) !important}

/* Drawer */
.drawer-panel{
  background: var(--card) !important;
  color: var(--text) !important;
  border-left:1px solid var(--line) !important;
}
.drawer-backdrop{background:rgba(0,0,0,.45) !important}
.drawer-label{color:var(--muted) !important}
.drawer-menu a{
  border:1px solid var(--line) !important;
  background: rgba(0,0,0,.02) !important;
  color: var(--text) !important;
}
.drawer-menu a:hover{background:rgba(0,0,0,.06) !important}
.drawer-close,
.drawer-subtoggle{
  border:1px solid var(--line) !important;
  background: rgba(0,0,0,.02) !important;
  color: var(--text) !important;
}

/* Buttons (used by comment form) */
.button,
input[type="submit"],
button.button{
  appearance:none;
  border:0;
  background: var(--brand);
  color:#fff;
  font-weight:800;
  border-radius:14px;
  padding:12px 14px;
  min-height:44px;
  cursor:pointer;
  letter-spacing:.1px;
}
.button:hover,
input[type="submit"]:hover,
button.button:hover{background:var(--brand2)}
.button:focus,
input[type="submit"]:focus,
button.button:focus{outline:none; box-shadow:0 0 0 4px var(--ring)}

/* Comments */
.comments-area{
  margin-top:24px;
  padding-top:18px;
  border-top:1px solid var(--line);
}
.comments-title{
  margin:0 0 14px;
  font-size:18px;
  font-weight:850;
  letter-spacing:-.2px;
}
.comment-list{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:12px;
}
.comment-list > li{margin:0}
.comment-body{
  border:1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
}
.comment-author{display:flex; align-items:center; gap:10px; font-weight:850}
.comment-author .avatar{border-radius:12px}
.comment-author .says{display:none}
.comment-metadata{margin-top:2px; font-size:12.5px; color:var(--muted)}
.comment-metadata a{color:var(--muted)}
.comment-metadata a:hover{color:var(--text)}
.comment-content{margin-top:10px; color:var(--text)}
.comment-content p:last-child{margin-bottom:0}
.reply{margin-top:10px}
.reply a{
  display:inline-flex;
  align-items:center;
  min-height:36px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background: var(--card2);
  color: var(--text);
  font-weight:800;
  font-size:12.5px;
}
.reply a:hover{background:rgba(0,0,0,.05)}
.comment-list .children{
  list-style:none;
  margin:10px 0 0;
  padding-left:14px;
  border-left:2px solid var(--line);
  display:grid;
  gap:12px;
}

#respond{margin-top:18px}
#reply-title{margin:0 0 12px; font-size:16px; font-weight:850}
#commentform{display:grid; gap:12px}
#commentform label{font-size:12.5px; color:var(--muted); font-weight:800}
#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"],
#commentform textarea{
  width:100%;
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px 12px;
  background: var(--card);
  color: var(--text);
  font: inherit;
}
#commentform textarea{min-height:140px; resize:vertical}
#commentform input[type="text"]:focus,
#commentform input[type="email"]:focus,
#commentform input[type="url"]:focus,
#commentform textarea:focus{
  outline:none;
  border-color: rgba(10,132,255,.55);
  box-shadow: 0 0 0 4px var(--ring);
}

/* ========================================================================== */
/* Menu reliability (v1.1.6)
   - Fix hover gap so dropdown doesn't "disappear" while moving cursor.
   - Allow click-to-open on desktop (JS toggles .is-open).
   - Prevent topbar horizontal scroll container from clipping dropdowns
     (JS toggles .site-header.has-open-dropdown).
*/
@media (min-width: 861px){
  /* Open dropdowns when JS sets .is-open */
  .site-header .topbar-menu li.is-open > .sub-menu,
  .site-header .main-menu  li.is-open > .sub-menu{display:block}

  /* Bridge the small gap between parent link and dropdown panel */
  .site-header .topbar-menu > li.menu-item-has-children::after,
  .site-header .main-menu  > li.menu-item-has-children::after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    top:100%;
    height:12px;
    z-index:99;
  }

  /* When a dropdown is hovered/open, remove overflow clipping on the topbar menu */
  .site-header.has-open-dropdown .topbar-menu{
    overflow:visible !important;
    overflow-x:visible !important;
    overflow-y:visible !important;
  }
}


