/* ===== Design tokens ===== */
:root {
  --ink: #171a21;
  --ink-soft: #454a56;
  --muted: #767c8a;
  --line: #e7e8ee;
  --paper: #ffffff;
  --bg: #f6f7fb;
  --accent: #0a0f75;
  --accent-dark: #070b52;
  --accent-soft: #e8e9f7;
  --header-bg: #0a0f75;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(18, 20, 28, 0.07);
  --shadow-hover: 0 16px 40px rgba(18, 20, 28, 0.12);
  --font-head: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="dark"], :root.theme-dark {
  --ink: #f2f3f7;
  --ink-soft: #cfd2dc;
  --muted: #9aa0b2;
  --line: #2a2d3a;
  --paper: #0e0e12;
  --bg: #0a0a0d;
  --accent: #ef2d5e;
  --accent-dark: #c91f4c;
  --accent-soft: #33131e;
  --header-bg: #0a0a0d;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-hover: 0 16px 40px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, .site-header, .site-nav, .topbar, .trending-bar, .quicklinks-bar, .post-card, .article-content, .sidebar-widget, .pagination a, .quicklinks-pill {
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; line-height: 1.25; margin: 0 0 12px; color: var(--ink); }
p { margin: 0 0 14px; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.wrap { max-width: 1220px; margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff;
  padding: 10px 16px; z-index: 1000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ===== Topbar ===== */
.topbar { background: var(--header-bg); color: #c7cad6; font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.topbar-tagline { color: var(--accent); font-weight: 600; letter-spacing: 0.02em; }

/* ===== Header ===== */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; gap: 16px; }
.logo { font-family: var(--font-head); font-weight: 900; font-size: 26px; letter-spacing: -0.01em; }
.logo::first-letter { color: var(--accent); }
.logo--image { display: block; }
.logo--image img { display: block; height: 40px; width: auto; border-radius: 4px; }
.footer-brand .logo--image img { height: 32px; }

.header-search { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 30px; overflow: hidden; background: var(--bg); }
.header-search input { border: 0; background: transparent; padding: 9px 14px; width: 200px; font: inherit; color: var(--ink); outline: none; }
.header-search button { border: 0; background: transparent; padding: 9px 14px; font-size: 15px; }

.nav-toggle { display: none; flex-direction: column; gap: 4px; border: 0; background: none; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); display: block; }

.site-nav { background: var(--header-bg); }
.site-nav ul { display: flex; flex-wrap: nowrap; justify-content: space-between; align-items: stretch; margin: 0; padding: 0; list-style: none; }
.nav-more { position: relative; }
.site-nav li { flex: 0 0 auto; white-space: nowrap; }
.site-nav a { display: block; padding: 13px 16px; color: #e7e8ee; font-weight: 600; font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.03em; }
.site-nav a:hover { color: #040303; background: rgba(255,255,255,0.06); }

.nav-wrap { position: relative; }
.nav-more-toggle { display: flex; align-items: center; gap: 4px; height: 100%; padding: 13px 16px; border: 0; background: transparent; color: #e7e8ee; font: inherit; font-weight: 600; font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.03em; cursor: pointer; }
.nav-more-toggle:hover, .nav-more.open .nav-more-toggle { color: #fff; background: rgba(255,255,255,0.06); }
.nav-more .nav-more-menu {
  display: block;
  position: absolute; top: 100%; right: 0; min-width: 200px;
  background: var(--paper); border-radius: 0 0 10px 10px; box-shadow: var(--shadow-hover);
  overflow: hidden; z-index: 60; padding: 0; margin: 0; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav-more-menu.open,
.nav-more:hover .nav-more-menu,
.nav-more:focus-within .nav-more-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-more-menu li { display: block; width: 100%; }
.nav-more-menu a { color: var(--ink); padding: 11px 18px; font-size: 13px; text-transform: none; letter-spacing: normal; }
.nav-more-menu a:hover { background: var(--accent-soft); color: var(--accent); }

/* ===== Hero ===== */
.hero-section { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 24px; margin: 28px auto; }
.hero-card { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hero-thumb { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--accent-soft); }
.hero-thumb img { width: 100%; height: 100%; aspect-ratio: 16/9; object-fit: cover; }
.hero-thumb .post-card-placeholder { width: 100%; height: 100%; font-size: 56px; }
.hero-body { padding: 24px 26px 28px; }
.hero-body h1 { font-size: clamp(24px, 3vw, 34px); margin: 10px 0; }
.hero-body h1 a:hover { color: var(--accent); }
.hero-body p { color: var(--ink-soft); }

.hero-side { display: flex; flex-direction: column; gap: 14px; }
.hero-side-item { display: grid; grid-template-columns: 90px 1fr; gap: 12px; background: var(--paper); border-radius: 10px; padding: 10px; box-shadow: var(--shadow); align-items: center; }
.hero-side-item img { border-radius: 6px; aspect-ratio: 4/3; object-fit: cover; }
.hero-side-cat { color: var(--accent); font-weight: 700; text-transform: uppercase; font-size: 10.5px; letter-spacing: 0.04em; }
.hero-side-item strong { display: block; font-size: 13.5px; line-height: 1.35; margin-top: 3px; }
.hero-side-item:hover strong { color: var(--accent); }

/* ===== Homepage sections ===== */
.home-section { margin: 40px auto; }
.home-section-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 3px solid var(--ink); padding-bottom: 10px; margin-bottom: 18px; }
.home-section-head h2 { margin: 0; font-size: 21px; }
.view-all { color: var(--accent); font-weight: 700; font-size: 13px; white-space: nowrap; }

/* ===== Post grid / cards ===== */
.post-grid { display: flex; flex-wrap: wrap; gap: 22px; }
.post-grid--3 > .post-card { flex: 0 1 calc((100% - 44px) / 3); min-width: 240px; }
.post-grid--4 > .post-card { flex: 0 1 calc((100% - 66px) / 4); min-width: 200px; }

.post-card { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; display: flex; flex-direction: column; height: 100%; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.post-card-thumb { position: relative; display: block; background: var(--accent-soft); aspect-ratio: 16/10; overflow: hidden; }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card-badge { position: absolute; top: 12px; left: 12px; color: #fff; font-weight: 800; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; padding: 5px 10px; border-radius: 3px; }
.post-card-placeholder { display: grid; place-items: center; width: 100%; height: 100%; font: 900 40px var(--font-head); color: var(--accent); }
.post-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.post-card-category { color: var(--accent); font-weight: 800; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; align-self: flex-start; }
.post-card-title { font-size: 17px; margin: 0 0 8px; }
.post-card-title a:hover { color: var(--accent); }
.post-card-excerpt { color: var(--ink-soft); font-size: 14px; flex: 1; }
.post-card-meta { color: var(--muted); font-size: 12px; display: flex; gap: 6px; align-items: center; margin-top: auto; }
.post-card--compact .post-card-title { font-size: 15px; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.post-card--compact .post-card-excerpt { display: none; }

/* ===== Page banner ===== */
.page-banner { padding: 38px 20px 26px; }
.page-banner .eyebrow { color: var(--accent); font-weight: 800; letter-spacing: 0.1em; font-size: 11px; text-transform: uppercase; }
.page-banner h1 { margin: 8px 0; font-size: clamp(28px, 4vw, 40px); }
.page-banner p { color: var(--muted); max-width: 640px; }

.list-page-head { padding: 34px 0 22px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.list-page-head h1 { margin: 0 0 8px; font-size: clamp(26px, 3.6vw, 36px); }
.list-page-head p { margin: 0; color: var(--muted); max-width: 640px; }

/* ===== Content layout with sidebar ===== */
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 30px; align-items: start; padding-bottom: 60px; }
.content-main { min-width: 0; }

.empty-state { text-align: center; background: var(--paper); border-radius: var(--radius); padding: 60px 24px; box-shadow: var(--shadow); }
.empty-state h2 { margin-bottom: 8px; }
.empty-state p { color: var(--muted); }

/* ===== Sidebar ===== */
.sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 22px; }
.widget { background: var(--paper); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.widget h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 2px solid var(--accent); padding-bottom: 10px; margin-bottom: 14px; font-family: var(--font-body); font-weight: 800; }
.widget-search form { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.widget-search input { flex: 1; min-width: 0; border: 0; padding: 10px 12px; font: inherit; outline: none; }
.widget-search button { border: 0; background: var(--accent); color: #fff; padding: 0 16px; font-weight: 700; font-size: 13px; }

.recent-post { display: grid; grid-template-columns: 72px 1fr; gap: 11px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.recent-post:last-child { border-bottom: 0; padding-bottom: 0; }
.recent-post img { border-radius: 6px; object-fit: cover; aspect-ratio: 4/3; }
.recent-post-noimg { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 800; border-radius: 6px; aspect-ratio: 4/3; }
.recent-post strong { display: block; font-size: 13px; line-height: 1.35; }
.recent-post small { color: var(--muted); font-size: 11px; }
.recent-post:hover strong { color: var(--accent); }

.widget-categories li { border-bottom: 1px solid var(--line); }
.widget-categories li:last-child { border-bottom: 0; }
.widget-categories a { display: block; padding: 9px 2px; font-size: 14px; font-weight: 600; }
.widget-categories a:hover { color: var(--accent); }

/* ===== Pagination ===== */
.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 34px 0 10px; }
.pagination a, .pagination span { padding: 9px 14px; border-radius: 8px; background: var(--paper); box-shadow: var(--shadow); font-weight: 700; font-size: 13.5px; }
.pagination a.active { background: var(--accent); color: #fff; }
.pagination a:hover:not(.active) { background: var(--accent-soft); color: var(--accent); }

/* ===== Article page ===== */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 30px; padding: 32px 20px 60px; align-items: start; }
.article-header { margin-bottom: 20px; }
.article-header h1 { font-size: clamp(26px, 4vw, 42px); margin: 10px 0 12px; }
.article-excerpt { color: var(--ink-soft); font-size: 17px; }
.article-featured { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 24px; }

.article-content { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px 38px; font-size: 17px; line-height: 1.85; color: var(--ink-soft); }
.article-content > *:first-child { margin-top: 0; }
.article-content h2 { font-size: 27px; margin-top: 34px; color: var(--ink); }
.article-content h3 { font-size: 21px; margin-top: 26px; color: var(--ink); }
.article-content p { margin: 0 0 16px; }
.article-content ul, .article-content ol { padding-left: 22px; margin: 0 0 16px; }
.article-content li { margin: 6px 0; }
.article-content a { color: var(--accent); font-weight: 600; text-decoration: underline; }
.article-content img { border-radius: 10px; margin: 22px auto; }
.article-content blockquote { margin: 26px 0; padding: 18px 22px; background: var(--accent-soft); border-left: 4px solid var(--accent); color: var(--ink); font-style: italic; }
.article-content table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.article-content td, .article-content th { border: 1px solid var(--line); padding: 10px; text-align: left; }
.article-content th { background: var(--bg); }

.article-video { position: relative; padding-top: 56.25%; margin: 26px 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.article-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.article-tags a { background: var(--accent-soft); color: var(--accent); padding: 6px 14px; border-radius: 20px; font-size: 12.5px; font-weight: 700; }
.article-tags a:hover { background: var(--accent); color: #fff; }

.article-faq, .article-products, .article-cta, .article-related {
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px 32px; margin-top: 26px;
}
.article-faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.article-faq details:first-of-type { border-top: 0; }
.article-faq summary { font-weight: 700; cursor: pointer; }
.article-faq p { color: var(--ink-soft); margin: 10px 0 0; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.product-card { border: 1px solid var(--line); border-radius: 10px; padding: 14px; text-align: center; }
.product-card img { border-radius: 8px; margin: 0 auto 10px; }
.product-price { display: block; margin-top: 8px; color: var(--accent); font-weight: 800; }

.article-cta { background: linear-gradient(120deg, var(--accent-dark), var(--accent)); color: #fff; text-align: center; }
.article-cta h2 { color: #fff; }
.article-cta a { display: inline-block; background: #fff; color: var(--accent-dark); font-weight: 800; padding: 12px 26px; border-radius: 8px; margin-top: 10px; }

/* ===== Footer ===== */
.site-footer { background: var(--header-bg); color: #c7cad6; margin-top: 50px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding: 44px 20px 24px; }
.footer-brand p { color: #9ea3b3; margin-top: 10px; font-size: 14px; }
.footer-col h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.footer-col li { margin-bottom: 9px; font-size: 14px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 16px 20px; font-size: 12.5px; color: #8b90a1; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero-section { grid-template-columns: 1fr; }
  .content-layout, .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .post-grid--4 > .post-card, .post-grid--3 > .post-card { flex: 0 1 calc((100% - 22px) / 2); min-width: 200px; }
  .article-content { padding: 26px 22px; }
}

@media (max-width: 700px) {
  .topbar-tagline { display: none; }
  .header-search input { width: 130px; }
  .nav-toggle { display: flex; }
  .site-nav { display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; flex-wrap: wrap; overflow: visible; }
  .site-nav li { white-space: normal; }
  .nav-more { display: none; }
  .post-grid--4 > .post-card, .post-grid--3 > .post-card { flex-basis: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-side-item strong { font-size: 13px; }
}

@media (max-width: 480px) {
  .header-search { display: none; }
}

/* ===== Yoyoguide brand overrides ===== */
.topbar { background: #ffffff; color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.topbar-inner { flex-wrap: wrap; gap: 8px 20px; height: auto; min-height: 38px; }
.topbar-tagline { color: var(--accent); }
.topbar-links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; margin-left: auto; }
.topbar-links span { cursor: default; }
.topbar-social { display: flex; gap: 10px; margin-left: 16px; }
.topbar-social a { color: var(--ink-soft); }
.topbar-social a:hover { color: var(--accent); }

.logo--split { font-family: var(--font-head); font-weight: 900; font-size: 30px; letter-spacing: -0.01em; display: inline-flex; }
.logo-a { color: var(--ink); }
.logo-b { color: #2fa84f; }
.logo--boxed { background: #fff; padding: 10px 18px; border-radius: 6px; }

.nav-wrap { display: flex; align-items: stretch; }
#primaryNavList { flex: 1 1 auto; min-width: 0; }
.site-nav a { text-transform: none; letter-spacing: normal; font-weight: 600; }
.nav-search { position: relative; flex: 0 0 auto; }
.nav-search-toggle { height: 100%; padding: 13px 18px; border: 0; background: transparent; color: #fff; font-size: 15px; cursor: pointer; }
.nav-search-toggle:hover { background: rgba(255,255,255,0.08); }
.nav-search-form {
  position: absolute; top: 100%; right: 0; display: flex; gap: 8px; padding: 12px;
  background: var(--paper); border-radius: 0 0 10px 10px; box-shadow: var(--shadow-hover);
  opacity: 0; visibility: hidden; transform: translateY(-6px); z-index: 60;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav-search-form.open { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-search-form input { border: 1px solid var(--line); border-radius: 6px; padding: 9px 12px; width: 220px; font: inherit; }
.nav-search-form button { border: 0; background: var(--accent); color: #fff; border-radius: 6px; padding: 9px 16px; font-weight: 700; cursor: pointer; }

.trending-bar { background: var(--paper); border-bottom: 1px solid var(--line); }
.trending-inner { display: flex; align-items: center; gap: 16px; height: 46px; }
.trending-badge { flex: 0 0 auto; background: var(--accent); color: #fff; font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; padding: 6px 14px; border-radius: 4px; }
.trending-track { position: relative; flex: 1 1 auto; min-width: 0; height: 20px; overflow: hidden; }
.trending-item { position: absolute; inset: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; font-size: 14px; color: var(--ink); opacity: 0; visibility: hidden; transition: opacity .2s ease; }
.trending-item.active { opacity: 1; visibility: visible; }
.trending-item:hover { color: var(--accent); }
.trending-next { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; border: 0; background: transparent; color: var(--ink-soft); cursor: pointer; font-size: 16px; line-height: 1; }
.trending-next:hover { background: var(--accent-soft); color: var(--accent); }

.quicklinks-bar { background: var(--bg); border-bottom: 1px solid var(--line); }
.quicklinks-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px 0; }
.quicklinks-label { font-weight: 700; font-size: 13px; color: var(--ink-soft); margin-right: 4px; }
.quicklinks-pill { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 6px 16px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.quicklinks-pill:hover { border-color: var(--accent); color: var(--accent); }

.theme-toggle { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; border: 0; background: transparent; cursor: pointer; padding: 0 16px 0 4px; color: #fff; }
.theme-toggle-icon { font-size: 13px; line-height: 1; opacity: 0.7; }
.theme-toggle-track { position: relative; width: 38px; height: 20px; border-radius: 20px; background: rgba(255,255,255,0.25); transition: background .2s ease; }
.theme-toggle-knob { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s ease; }
:root[data-theme="dark"] .theme-toggle-track, :root.theme-dark .theme-toggle-track { background: var(--accent); }
:root[data-theme="dark"] .theme-toggle-knob, :root.theme-dark .theme-toggle-knob { transform: translateX(18px); }

.pagination { align-items: center; }
.pagination a, .pagination span.page-ellipsis { border: 1px solid var(--line); box-shadow: none; background: var(--paper); min-width: 20px; text-align: center; }
.pagination a.active { border-color: var(--accent); }
.pagination-summary { font-size: 13px; color: var(--muted); margin-left: auto; }
.pagination-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 34px 0 10px; }
.pagination-row .pagination { margin: 0; justify-content: flex-start; }

.site-footer { background: #0d0d0f; color: #c7cad6; margin-top: 50px; }

.footer-top {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; padding: 56px 20px 40px;
  background-image: radial-gradient(rgba(255,255,255,0.09) 1px, transparent 1.5px);
  background-size: 16px 16px; background-position: 0 0;
}
.footer-quote-mark { font-size: 64px; line-height: 1; color: rgba(255,255,255,0.15); font-family: Georgia, serif; display: block; }
.footer-quote p { max-width: 460px; font-size: 22px; line-height: 1.5; color: #e7e8ee; font-weight: 500; margin-top: 6px; }
.footer-quote-drop { background: var(--accent); color: #fff; font-weight: 800; padding: 2px 8px; border-radius: 3px; }
.footer-newsletter h3 { color: #9aa0b2; font-size: 15px; font-weight: 700; margin: 0 0 10px; }
.footer-newsletter p { color: #e7e8ee; font-size: 20px; font-weight: 600; max-width: 320px; margin: 0 0 20px; }
.newsletter-form { display: flex; gap: 10px; max-width: 360px; }
.newsletter-form input { flex: 1 1 auto; min-width: 0; border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.05); border-radius: 6px; padding: 11px 14px; color: #fff; font: inherit; }
.newsletter-form input::placeholder { color: #6a6f80; }
.newsletter-form button { border: 0; background: var(--accent); color: #fff; border-radius: 6px; padding: 11px 18px; font-weight: 700; cursor: pointer; }
.newsletter-form button:hover { background: var(--accent-dark); }

.footer-brand-row { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px; border-top: 1px solid rgba(255,255,255,0.08); flex-wrap: wrap; gap: 14px; }
.footer-brand-row .logo--split { font-size: 20px; }
.footer-social { display: flex; align-items: center; gap: 14px; }
.footer-social-label { font-size: 13px; color: #9aa0b2; font-weight: 600; }
.footer-social a { color: #c7cad6; }
.footer-social a:hover { color: var(--accent); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 16px 20px; font-size: 12.5px; color: #8b90a1; text-align: center; justify-content: center; }

.back-to-top { position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 10px; border: 1px solid rgba(0,0,0,0.1); background: #17181d; color: #fff; font-size: 18px; box-shadow: var(--shadow-hover); cursor: pointer; z-index: 80; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .25s ease, transform .25s ease, background .2s ease; }
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--accent); }

@media (max-width: 700px) {
  .topbar-links, .topbar-social { display: none; }
  .nav-wrap { flex-direction: column; }
  .nav-search-form { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; }
  .nav-search-form.open { display: flex; }
}

/* ===== Yoyoguide topic theme ===== */
:root {
  --ink: #1c2833;
  --ink-soft: #52616f;
  --muted: #788695;
  --line: #dbe6fb;
  --paper: #ffffff;
  --bg: #f5f8ff;
  --accent: #006bd6;
  --accent-dark: #082878;
  --accent-soft: #eaf5ff;
  --header-bg: #091f63;
  --coral: #ec136f;
  --sun: #ffae20;
  --sky: #12b5e8;
  --leaf: #21af67;
  --purple: #5217b8;
  --radius: 8px;
  --shadow: 0 10px 26px rgba(8, 40, 120, 0.09);
  --shadow-hover: 0 16px 36px rgba(8, 40, 120, 0.16);
}

:root[data-theme="dark"], :root.theme-dark {
  --ink: #f3f8ff;
  --ink-soft: #c8d8f0;
  --muted: #9fb4d4;
  --line: #173170;
  --paper: #071738;
  --bg: #050d20;
  --accent: #38bdf8;
  --accent-dark: #1d4ed8;
  --accent-soft: #092653;
  --header-bg: #030b22;
  --coral: #ff3d8d;
  --sun: #fbbf24;
  --sky: #38bdf8;
  --leaf: #84cc16;
  --purple: #7c3aed;
}

body {
  background:
    linear-gradient(180deg, rgba(18, 181, 232, 0.13), rgba(236, 19, 111, 0.06) 250px, rgba(255, 174, 32, 0.08) 360px, rgba(245, 248, 255, 0) 460px),
    var(--bg);
}

.topbar {
  background: linear-gradient(90deg, #2f0b78, #082878 48%, #006bd6 78%, #0aa883);
  color: rgba(255,255,255,0.82);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.topbar-inner { min-height: 40px; }
.topbar-date { font-weight: 700; }
.topbar-links { letter-spacing: 0; }
.topbar-links span {
  color: rgba(255,255,255,0.78);
  position: relative;
}
.topbar-links span + span::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 12px 2px 0;
  border-radius: 50%;
  background: var(--sun);
}
.topbar-social a { color: rgba(255,255,255,0.76); }
.topbar-social a:hover { color: #fff; }

.site-header {
  background: linear-gradient(180deg, #ffffff, #f5fbff);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(8, 40, 120, 0.07);
}
.header-inner {
  min-height: 122px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.logo--travel {
  display: inline-flex;
  align-items: center;
  letter-spacing: 0;
}
.logo--asset {
  line-height: 0;
}
.logo-img {
  width: auto;
  height: 112px;
  max-width: 72vw;
  max-height: 112px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 8px 18px rgba(8, 40, 120, 0.16));
}
.footer-logo .logo-img {
  width: auto;
  height: 96px;
  max-width: 76vw;
  max-height: 96px;
}
.header-title-block {
  flex: 1 1 auto;
  min-width: 0;
  margin-left: 22px;
  padding: 12px 0 12px 24px;
  border-left: 4px solid var(--sun);
  display: grid;
  gap: 5px;
}
.header-title-block strong {
  color: var(--accent-dark);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.05;
  font-weight: 900;
}
.header-title-block span {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
}
.header-title-block .header-kicker {
  width: max-content;
  max-width: 100%;
  padding: 5px 11px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--purple), var(--coral), #ff7a00);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}
.logo-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-dark), var(--sky));
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  box-shadow: inset 0 -2px 0 rgba(255,255,255,0.18);
}
.logo-copy {
  display: grid;
  gap: 2px;
}
.logo-title {
  color: var(--ink);
  font-size: 28px;
  line-height: 1.05;
  font-weight: 900;
}
.logo-tagline {
  color: var(--coral);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.site-nav {
  background: linear-gradient(90deg, #2f0b78, var(--header-bg) 48%, #006bd6 82%, #0aa883);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.nav-wrap {
  display: flex;
  align-items: stretch;
}
#primaryNavList {
  flex: 1 1 auto;
  min-width: 0;
}
.site-nav ul {
  justify-content: flex-start;
}
.site-nav a,
.nav-more-toggle {
  padding: 13px 10px;
  color: rgba(255,255,255,0.88);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}
.site-nav a:hover,
.nav-more-toggle:hover,
.nav-more.open .nav-more-toggle {
  color: #080707;
  background: linear-gradient(180deg, rgba(18, 181, 232, 0.28), rgba(236, 19, 111, 0.16));
}
.nav-more-menu {
  border: 1px solid var(--line);
  border-top: 0;
}
.nav-more-menu a {
  color: var(--ink);
  font-size: 13px;
  padding: 11px 14px;
}
.nav-search-toggle {
  min-width: 44px;
  color: #fff;
}
.theme-toggle {
  min-height: 44px;
}
.nav-toggle span { background: var(--ink); }

.travel-marquee {
  background: linear-gradient(90deg, #fff4d6, #e9f7ff 36%, #fff0f6 72%, #edfdf7);
  border-bottom: 1px solid #ffd171;
  color: #062b82;
}
.travel-marquee-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  overflow: hidden;
}
.marquee-badge {
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--purple), var(--coral), #ff7a00);
  color: #fff;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}
.marquee-window {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  min-width: max-content;
  white-space: nowrap;
  animation: travelMarquee 34s linear infinite;
}
.marquee-window:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 800;
}
.marquee-item::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.16);
}
@keyframes travelMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.quicklinks-bar {
  background: var(--accent-soft);
  border-bottom: 1px solid var(--line);
}
.quicklinks-inner {
  padding: 11px 20px;
}
.quicklinks-label {
  color: var(--accent-dark);
  font-weight: 900;
  letter-spacing: 0;
}
.quicklinks-pill {
  border-radius: 7px;
  border-color: rgba(0, 107, 220, 0.22);
  color: var(--accent-dark);
  background: rgba(255,255,255,0.82);
  padding: 6px 12px;
}
.quicklinks-pill:hover {
  background: linear-gradient(135deg, var(--purple), var(--accent), var(--sky));
  border-color: var(--accent);
  color: #fff;
}

.hero-card,
.hero-side-item,
.post-card,
.widget,
.article-content,
.article-faq,
.article-products,
.article-cta,
.article-related,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
}
.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  align-items: stretch;
  overflow: hidden;
}
.hero-thumb,
.hero-thumb img {
  height: 100%;
  min-height: 390px;
  aspect-ratio: auto;
}
.hero-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(180deg, #ffffff, #f4f9ff);
  border-left: 5px solid var(--sun);
}
.post-card-badge {
  border-radius: 6px;
}
.post-card-category,
.hero-side-cat,
.view-all,
.article-content a {
  color: var(--accent);
}
.home-section-head {
  border-bottom: 2px solid var(--line);
}
.home-section-head h2::after {
  content: "";
  display: block;
  width: 58px;
  height: 4px;
  margin-top: 10px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--purple), var(--accent), var(--sky), var(--leaf), var(--sun), var(--coral));
}

.site-footer {
  background:
    radial-gradient(circle at 14% 16%, rgba(20, 184, 255, 0.22), transparent 28%),
    radial-gradient(circle at 72% 10%, rgba(236, 19, 111, 0.2), transparent 28%),
    radial-gradient(circle at 88% 52%, rgba(255, 174, 32, 0.18), transparent 30%),
    linear-gradient(135deg, #24065e, #091f63 56%, #021228);
  color: rgba(255,255,255,0.78);
  margin-top: 56px;
}
.footer-travel {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(150px, 0.7fr) minmax(150px, 0.7fr) minmax(260px, 1fr);
  gap: 34px;
  padding: 48px 20px 34px;
}
.footer-brand-panel p,
.site-footer .footer-newsletter p {
  color: rgba(255,255,255,0.72);
  margin-top: 16px;
  max-width: 420px;
}
.footer-logo .logo-title { color: #fff; }
.footer-logo .logo-tagline { color: #fbbf24; }
.footer-col h4,
.site-footer .footer-newsletter h4 {
  color: #fff;
  font-size: 13px;
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0;
}
.footer-col li {
  margin-bottom: 9px;
}
.footer-col a {
  color: rgba(255,255,255,0.76);
  font-size: 14px;
}
.footer-col a:hover {
  color: #fff;
}
.site-footer .newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 390px;
}
.site-footer .newsletter-form input {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-radius: 7px;
  padding: 11px 13px;
}
.site-footer .newsletter-form button {
  border: 0;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--sun), #ff7a00, var(--coral));
  color: #071738;
  font-weight: 900;
  padding: 11px 16px;
}
.footer-social {
  margin-top: 18px;
}
.footer-bottom {
  color: rgba(255,255,255,0.62);
  border-top: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 1050px) {
  .hero-card {
    grid-template-columns: 1fr;
  }
  .hero-thumb,
  .hero-thumb img {
    min-height: 0;
    aspect-ratio: 16/9;
  }
  .hero-body {
    border-left: 0;
    border-top: 5px solid var(--sun);
  }
  .footer-travel {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .header-inner {
    min-height: 86px;
  }
  .logo-img {
    width: auto;
    height: 76px;
    max-height: 78px;
    max-width: 64vw;
  }
  .footer-logo .logo-img {
    width: auto;
    height: 82px;
    max-height: 82px;
    max-width: 76vw;
  }
  .header-title-block {
    display: none;
  }
  .logo-mark {
    width: 46px;
    height: 46px;
    font-size: 13px;
  }
  .logo-title {
    font-size: 20px;
  }
  .logo-tagline {
    font-size: 10.5px;
  }
  .site-nav a,
  .nav-more-toggle {
    padding: 12px 20px;
  }
  .nav-search-toggle,
  .theme-toggle {
    justify-content: center;
    padding: 12px 20px;
  }
  .travel-marquee-inner {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    padding-top: 9px;
    padding-bottom: 9px;
  }
  .marquee-badge {
    align-self: flex-start;
  }
  .marquee-track {
    animation-duration: 26s;
  }
  .quicklinks-inner {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-left: 20px;
    padding-right: 20px;
  }
  .quicklinks-pill {
    white-space: nowrap;
  }
  .footer-travel {
    grid-template-columns: 1fr;
  }
  .site-footer .newsletter-form {
    flex-direction: column;
  }
}
