/*
Theme Name: Kadence Child
Template: kadence
Version: 1.0
*/

:root,
html[data-theme="light"] {
  --bg: #f6f4f0;
  --bg-soft: #fbfaf8;
  --bg-elevated: #f1ede7;
  --card: #ffffff;
  --border: #e8dfd3;
  --border-strong: #ddd2c3;
  --text: #1a1a1a;
  --text-soft: #4b4842;
  --muted: #7a756e;
  --muted-2: #a39c92;
  --footer: #151515;

  --news-accent: #2d5a4a;
  --news-accent-soft: #4f7f6d;
  --editorial-accent: #8b6914;
  --interviews-accent: #765665;
  --guides-accent: #5a7078;

  --shadow-soft: 0 1px 2px rgba(0,0,0,0.02);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.03);
}

html[data-theme="dark"] {
  --bg: #121614;
  --bg-soft: #1a1f1c;
  --bg-elevated: #252b28;
  --card: #1e2422;
  --border: #2a302d;
  --border-strong: #353c38;
  --text: #e8e4de;
  --text-soft: #b5b0a8;
  --muted: #9a958e;
  --muted-2: #6b6660;
  --footer: #1a1f1c;

  --news-accent: #3d7a64;
  --news-accent-soft: #5a9e80;
  --editorial-accent: #c49a2e;
  --interviews-accent: #9a7688;
  --guides-accent: #7a949c;

  --shadow-soft: 0 1px 2px rgba(0,0,0,0.18);
  --shadow-card: 0 8px 24px rgba(0,0,0,0.18);
}

/* =========================
   GLOBAL BASE
========================= */

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  transition: background-color 0.2s ease, color 0.2s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Jost", sans-serif;
  color: var(--text);
}

a {
  color: inherit;
}

html,
body,
#inner-wrap,
.site,
.site-content,
.content-bg {
  background: var(--bg) !important;
}

/* =========================
   HEADER
========================= */

.site-header,
.site-header-wrap,
.site-main-header-wrap,
#masthead {
  background: var(--card) !important;
  border-bottom: 1px solid var(--border);
}

#masthead {
  position: sticky;
  top: 0;
  z-index: 9999;
  backdrop-filter: blur(10px);
}

.site-header .site-container,
#masthead .site-container,
.site-header-wrap .site-container,
.site-main-header-wrap .site-container {
  background: transparent !important;
  max-width: 1240px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  box-sizing: border-box !important;
}

.dewsia-header-inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 30px;
}

.dewsia-header-brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.site-title,
.site-title a {
  font-family: "Jost", sans-serif !important;
  font-weight: 300 !important;
  font-size: 1.95rem;
  letter-spacing: 8px;
  text-transform: uppercase;
  color: var(--muted) !important;
  text-decoration: none;
  margin: 0;
  line-height: 1;
  transition: color 0.2s ease;
}

.site-title:hover,
.site-title a:hover,
.site-title:focus,
.site-title a:focus {
  color: var(--news-accent-soft) !important;
}

html[data-theme="dark"] .site-title,
html[data-theme="dark"] .site-title a {
  color: var(--news-accent-soft) !important;
}

.dewsia-header-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
  min-width: 0;
}

.dewsia-header-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 500;
  line-height: 1.2;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.dewsia-header-nav a:hover,
.dewsia-header-nav a:focus {
  color: var(--text);
}

.dewsia-header-search {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.dewsia-search-toggle,
.dewsia-menu-toggle,
.dewsia-theme-toggle,
.dewsia-mobile-menu-close {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.2s ease;
  padding: 0;
  flex: 0 0 auto;
  box-sizing: border-box;
}

.dewsia-search-toggle:hover,
.dewsia-menu-toggle:hover,
.dewsia-theme-toggle:hover,
.dewsia-mobile-menu-close:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--bg-soft);
}

.dewsia-search-toggle svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  display: block;
}

.dewsia-theme-toggle {
  gap: 2px;
  font-size: 12px;
}

.dewsia-theme-toggle-sun,
.dewsia-theme-toggle-moon {
  line-height: 1;
  opacity: 0.45;
  transition: opacity 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

html[data-theme="light"] .dewsia-theme-toggle-moon {
  opacity: 1;
  transform: scale(1.05);
}

html[data-theme="dark"] .dewsia-theme-toggle-sun {
  opacity: 1;
  transform: scale(1.05);
}

.dewsia-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
}

.dewsia-menu-toggle span {
  width: 16px;
  height: 1.5px;
  background: currentColor;
  border-radius: 999px;
  display: block;
}

/* search overlay */
.dewsia-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(21, 21, 21, 0.42);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  z-index: 10000;
}

body.dewsia-search-open .dewsia-search-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.dewsia-search-overlay-inner {
  max-width: 760px;
  margin: 80px auto 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow-card);
}

.dewsia-search-overlay-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.dewsia-search-close {
  border: 0;
  background: transparent;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}

.dewsia-search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.dewsia-search-form input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg-soft);
}

.dewsia-search-form button {
  border: 0;
  border-radius: 14px;
  padding: 0 20px;
  background: var(--news-accent);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

/* mobile menu */
.dewsia-mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(21,21,21,0.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  z-index: 10001;
}

.dewsia-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100vh;
  background: var(--card);
  border-left: 1px solid var(--border);
  box-shadow: -12px 0 30px rgba(0,0,0,0.08);
  transform: translateX(100%);
  transition: transform 0.24s ease;
  z-index: 10002;
  padding: 18px 18px 28px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

body.dewsia-mobile-menu-open .dewsia-mobile-menu-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.dewsia-mobile-menu-open .dewsia-mobile-menu {
  transform: translateX(0);
}

.dewsia-mobile-menu-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.dewsia-mobile-menu-logo {
  font-family: "Jost", sans-serif;
  font-weight: 300;
  font-size: 1.15rem;
  color: var(--news-accent-soft);
  letter-spacing: 6px;
  text-transform: uppercase;
  line-height: 1;
}

.dewsia-mobile-menu-close {
  font-size: 26px;
  line-height: 1;
  text-align: center;
}

.dewsia-mobile-theme-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding: 10px 0 16px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
}

.dewsia-theme-toggle-mobile {
  width: 48px;
  height: 48px;
  font-size: 11px;
}

.dewsia-mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dewsia-mobile-menu-nav a {
  display: block;
  padding: 12px 2px;
  font-size: 1.03rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.dewsia-mobile-menu-links {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 20px;
}

.dewsia-mobile-menu-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

/* =========================
   CUSTOM FOOTER
========================= */

.dewsia-footer {
  margin-top: 64px;
  background: transparent !important;
}

.dewsia-footer-outer {
  width: 100%;
  background: var(--footer);
  border-top: 1px solid var(--border);
}

.dewsia-footer .site-container {
  max-width: 1240px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 62px 24px 54px !important;
  box-sizing: border-box !important;
  background: transparent !important;
}

.dewsia-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 56px;
}

.dewsia-footer-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dewsia-footer-brand {
  font-family: "Jost", sans-serif;
  font-weight: 300;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 8px;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255,255,255,0.78);
  transition: color 0.2s ease;
}

.dewsia-footer-brand:hover,
.dewsia-footer-brand:focus {
  color: var(--news-accent-soft);
}

html[data-theme="dark"] .dewsia-footer-brand {
  color: var(--news-accent-soft);
}

.dewsia-footer-tagline {
  margin: 0;
  color: rgba(255,255,255,0.58);
  font-size: 1rem;
  line-height: 1.5;
}

.dewsia-footer-copy {
  margin: 0;
  color: rgba(255,255,255,0.38);
  font-size: 0.95rem;
  line-height: 1.5;
}

.dewsia-footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
}

.dewsia-footer-socials {
  display: flex;
  align-items: center;
  gap: 18px;
}

.dewsia-footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: rgba(255,255,255,0.48);
  transition: color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
  opacity: 1;
}

.dewsia-footer-socials a:hover {
  color: rgba(255,255,255,0.92);
  opacity: 1;
  transform: translateY(-1px);
}

.dewsia-footer-socials svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}

.dewsia-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 26px;
}

.dewsia-footer-nav a {
  color: rgba(255,255,255,0.52);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.dewsia-footer-nav a:hover {
  color: rgba(255,255,255,0.9);
}

/* =========================
   SINGLE POSTS / PAGES / ARCHIVES
========================= */

.single .site-main,
.single-post .site-main,
.page:not(.home) .site-main,
.archive .site-main,
.blog .site-main,
.search .site-main {
  background: transparent !important;
}

.single .content-area,
.single-post .content-area,
.page:not(.home) .content-area,
.archive .content-area,
.blog .content-area,
.search .content-area {
  background: transparent !important;
}

.archive .hero-section,
.archive .page-header,
.archive .archive-description,
.archive .content-title-wrap,
.archive .entry-hero-container-inner {
  background: transparent !important;
}

/* =========================
   HOMEPAGE ONLY
========================= */

.home .dewsia-home {
  max-width: 1240px;
  margin: 0 auto;
  padding: 34px 24px 84px;
  box-sizing: border-box;
}

.home .dewsia-section {
  margin-bottom: 42px;
}

.home .dewsia-section--news {
  --section-accent: var(--news-accent);
}
.home .dewsia-section--editorial {
  --section-accent: var(--editorial-accent);
}
.home .dewsia-section--interviews {
  --section-accent: var(--interviews-accent);
}
.home .dewsia-section--guides {
  --section-accent: var(--guides-accent);
}

.home .dewsia-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 18px;
}

.home .dewsia-section-head h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}

.home .dewsia-section-head a {
  color: var(--section-accent);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}

.home .dewsia-section-head--minimal {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.home .dewsia-section-accent {
  display: block;
  width: 34px;
  height: 3px;
  background: var(--section-accent);
  border-radius: 999px;
  margin-top: 12px;
}

.home .dewsia-kicker {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--section-accent);
}

.home .dewsia-hero {
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(22,61,51,0.34) 0%, rgba(36,82,69,0.50) 100%),
    radial-gradient(circle at top right, rgba(0,0,0,0.06), rgba(0,0,0,0.22));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  min-height: 360px;
  box-shadow: var(--shadow-card);
}

html[data-theme="dark"] .home .dewsia-hero {
  border-color: var(--border);
}

.home .dewsia-hero:hover {
  color: #ffffff;
}

.home .dewsia-hero-inner {
  padding: 0 40px 36px;
  max-width: 620px;
}

.home .dewsia-hero-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
  opacity: 0.96;
  font-weight: 700;
  color: #ffffff;
}

.home .dewsia-hero h1 {
  color: #ffffff;
  font-size: 1.95rem;
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 14px;
  max-width: 580px;
}

.home .dewsia-hero p {
  margin: 0 0 12px;
  max-width: 520px;
  font-size: 0.9rem;
  line-height: 1.58;
  opacity: 0.95;
  color: rgba(255,255,255,0.92);
}

.home .dewsia-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.home .dewsia-meta.light {
  color: rgba(255,255,255,0.78);
  font-size: 0.9rem;
}

.home .dewsia-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.home .dewsia-card {
  display: block;
  text-decoration: none;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.home .dewsia-card:hover {
  color: var(--text);
  transform: translateY(-2px);
  transition: 0.2s ease;
}

.home .dewsia-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.home .dewsia-card-body {
  padding: 20px 20px 22px;
}

.home .dewsia-card.compact h3 {
  margin: 0 0 10px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.96rem;
  line-height: 1.42;
  font-weight: 700;
  color: var(--text);
}

.home .dewsia-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 24px;
}

.home .dewsia-news-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.home .dewsia-news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home .dewsia-news-body {
  padding: 18px 20px;
}

.home .dewsia-news-card h3 {
  margin: 0 0 10px;
  font-size: 0.98rem;
  line-height: 1.4;
  font-weight: 600;
  font-family: "DM Sans", sans-serif;
  color: var(--text);
}

.home .dewsia-editorial-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.home .dewsia-editorial-feature {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 460px;
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  color: #ffffff;
  border: 1px solid var(--border);
  background-color: #6e5312;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: var(--shadow-card);
}

.home .dewsia-editorial-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(63,47,10,0.40) 0%, rgba(139,105,20,0.34) 100%),
    linear-gradient(to top, rgba(22,18,10,0.48) 0%, rgba(22,18,10,0.10) 45%, rgba(22,18,10,0.06) 100%);
  pointer-events: none;
}

html[data-theme="dark"] .home .dewsia-editorial-feature::before {
  background:
    linear-gradient(135deg, rgba(63,47,10,0.54) 0%, rgba(106,79,18,0.42) 100%),
    linear-gradient(to top, rgba(10,10,10,0.56) 0%, rgba(10,10,10,0.16) 45%, rgba(10,10,10,0.08) 100%);
}

.home .dewsia-editorial-feature:hover {
  color: #ffffff;
}

.home .dewsia-editorial-feature-inner {
  position: relative;
  z-index: 1;
  padding: 30px 34px;
  max-width: 620px;
}

.home .dewsia-editorial-feature .dewsia-kicker {
  color: #f0c25a;
}

.home .dewsia-editorial-feature h3 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 1.8rem;
  line-height: 1.18;
  font-weight: 600;
}

.home .dewsia-editorial-feature .dewsia-meta {
  color: rgba(255,255,255,0.78);
}

.home .dewsia-editorial-side {
  display: grid;
  gap: 18px;
  align-content: start;
}

.home .dewsia-editorial-side-card {
  display: block;
  text-decoration: none;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: var(--shadow-soft);
  min-height: 144px;
}

.home .dewsia-editorial-side-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  line-height: 1.42;
  font-weight: 600;
  font-family: "DM Sans", sans-serif;
}

.home .dewsia-interviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.home .dewsia-interview-card {
  display: block;
  text-decoration: none;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 30px;
  box-shadow: var(--shadow-soft);
}

.home .dewsia-interview-card h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
  line-height: 1.35;
  font-weight: 500;
  color: var(--text);
}

.home .dewsia-interview-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.65;
}

.home .dewsia-guides-list {
  display: grid;
  gap: 18px;
}

.home .dewsia-guide-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  align-items: stretch;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.home .dewsia-guide-row:hover {
  color: var(--text);
  transform: translateY(-2px);
  transition: 0.2s ease;
}

.home .dewsia-guide-row-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home .dewsia-guide-row-body {
  padding: 20px 24px;
}

.home .dewsia-guide-row h3 {
  margin: 0 0 10px;
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.38;
  font-weight: 600;
  color: var(--text);
}

.home .dewsia-guide-row p {
  margin: 0 0 12px;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.58;
}

/* =========================
   DARK MODE BASE FOR CATEGORY / ARTICLE
========================= */

html[data-theme="dark"] .dewsia-category-page,
html[data-theme="dark"] .dewsia-article-shell {
  background: var(--bg) !important;
}

html[data-theme="dark"] .dewsia-category-breadcrumbs,
html[data-theme="dark"] .dewsia-article-breadcrumbs,
html[data-theme="dark"] .dewsia-category-count,
html[data-theme="dark"] .dewsia-card-meta,
html[data-theme="dark"] .dewsia-meta,
html[data-theme="dark"] .dewsia-article-caption,
html[data-theme="dark"] .dewsia-article-tags-label,
html[data-theme="dark"] .dewsia-author-bio,
html[data-theme="dark"] .dewsia-article-share-label,
html[data-theme="dark"] .dewsia-mobile-bottom-bar-left,
html[data-theme="dark"] .dewsia-mobile-meta-details {
  color: var(--muted) !important;
}

html[data-theme="dark"] .dewsia-category-description,
html[data-theme="dark"] .dewsia-category-featured-summary,
html[data-theme="dark"] .dewsia-list-summary,
html[data-theme="dark"] .dewsia-article-content,
html[data-theme="dark"] .dewsia-article-dek {
  color: var(--text-soft) !important;
}

html[data-theme="dark"] .dewsia-card,
html[data-theme="dark"] .dewsia-category-featured-card,
html[data-theme="dark"] .dewsia-list-item,
html[data-theme="dark"] .dewsia-article-callout,
html[data-theme="dark"] .dewsia-interview-card,
html[data-theme="dark"] .dewsia-news-card,
html[data-theme="dark"] .dewsia-guide-row,
html[data-theme="dark"] .dewsia-editorial-side-card,
html[data-theme="dark"] .dewsia-article-tags a,
html[data-theme="dark"] .dewsia-article-share a,
html[data-theme="dark"] .dewsia-mobile-share-row a,
html[data-theme="dark"] .dewsia-mobile-bottom-share a,
html[data-theme="dark"] .dewsia-category-filter,
html[data-theme="dark"] .dewsia-pagination a,
html[data-theme="dark"] .dewsia-pagination span {
  background: var(--card) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}

html[data-theme="dark"] .dewsia-category-divider,
html[data-theme="dark"] .dewsia-list-section,
html[data-theme="dark"] .dewsia-more-section,
html[data-theme="dark"] .dewsia-author-box,
html[data-theme="dark"] .dewsia-article-divider,
html[data-theme="dark"] .dewsia-mobile-meta-row,
html[data-theme="dark"] .dewsia-article-tags,
html[data-theme="dark"] .dewsia-section-head {
  border-color: var(--border) !important;
}

html[data-theme="dark"] .dewsia-section-head h2,
html[data-theme="dark"] .dewsia-category-title,
html[data-theme="dark"] .dewsia-category-featured-title,
html[data-theme="dark"] .dewsia-card-title,
html[data-theme="dark"] .dewsia-list-title,
html[data-theme="dark"] .dewsia-article-title,
html[data-theme="dark"] .dewsia-author-name,
html[data-theme="dark"] .dewsia-card h3,
html[data-theme="dark"] .dewsia-news-card h3,
html[data-theme="dark"] .dewsia-guide-row h3,
html[data-theme="dark"] .dewsia-interview-card h3,
html[data-theme="dark"] .dewsia-editorial-side-card h3,
html[data-theme="dark"] .dewsia-article-content h2,
html[data-theme="dark"] .dewsia-article-content h3 {
  color: var(--text) !important;
}

html[data-theme="dark"] .dewsia-article-content blockquote {
  background: rgba(255,255,255,0.03) !important;
  color: var(--text-soft) !important;
}

html[data-theme="dark"] .dewsia-mobile-bottom-bar {
  background: var(--card) !important;
  border-top-color: var(--border) !important;
}

html[data-theme="dark"] .dewsia-pagination .current,
html[data-theme="dark"] .dewsia-category-filter.is-active,
html[data-theme="dark"] .dewsia-mobile-bottom-share .dewsia-mobile-share-primary {
  background: var(--news-accent) !important;
  border-color: var(--news-accent) !important;
  color: #ffffff !important;
}

/* =========================
   MOBILE HOMEPAGE
========================= */

@media (max-width: 760px) {
  #masthead .site-container,
  .site-header .site-container,
  .site-header-wrap .site-container,
  .site-main-header-wrap .site-container,
  .dewsia-footer .site-container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .dewsia-header-inner {
    min-height: 56px;
    grid-template-columns: 1fr auto;
    column-gap: 12px;
  }

  .site-title,
  .site-title a {
    font-size: 1.12rem;
    letter-spacing: 6px;
  }

  .dewsia-header-nav {
    display: none;
  }

  .dewsia-search-toggle,
  .dewsia-menu-toggle,
  .dewsia-theme-toggle,
  .dewsia-mobile-menu-close {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }

  .dewsia-search-toggle svg {
    width: 18px;
    height: 18px;
  }

  .dewsia-theme-toggle {
    font-size: 10px;
  }

  .dewsia-menu-toggle {
    display: inline-flex;
  }

  .dewsia-mobile-menu-close {
    font-size: 24px;
  }

  .home .dewsia-home {
    padding: 12px 0 0;
    max-width: 100%;
  }

  .home .dewsia-section {
    margin-bottom: 0;
    padding: 28px 16px 0;
  }

  .home .dewsia-section:first-child {
    padding-top: 12px;
  }

  .home .dewsia-hero {
    min-height: 220px;
    border-radius: 10px;
    background-position: center;
  }

  .home .dewsia-hero-inner {
    max-width: 100%;
    padding: 0 18px 16px;
  }

  .home .dewsia-hero-kicker {
    font-size: 9px;
    letter-spacing: 1px;
    margin-bottom: 6px;
    color: #ffffff;
  }

  .home .dewsia-hero h1 {
    font-size: 1.125rem;
    line-height: 1.3;
    margin: 0 0 8px;
    max-width: 92%;
  }

  .home .dewsia-hero p {
    display: none;
  }

  .home .dewsia-meta.light {
    font-size: 11px;
    color: rgba(255,255,255,0.45);
  }

  .home .dewsia-card-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 14px 0 0 16px;
    margin: 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .home .dewsia-card-grid::-webkit-scrollbar {
    display: none;
  }

  .home .dewsia-card-grid .dewsia-card {
    width: 150px;
    min-width: 150px;
    flex: 0 0 150px;
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
  }

  .home .dewsia-card-grid .dewsia-card:last-child {
    margin-right: 16px;
  }

  .home .dewsia-card-grid .dewsia-card img {
    aspect-ratio: auto;
    height: 95px;
  }

  .home .dewsia-card-grid .dewsia-card-body {
    padding: 10px 12px 14px;
  }

  .home .dewsia-card-grid .dewsia-kicker {
    font-size: 8px;
    letter-spacing: 0.6px;
    margin-bottom: 4px;
  }

  .home .dewsia-card-grid .dewsia-card.compact h3 {
    font-size: 12px;
    line-height: 1.35;
    font-family: "Jost", sans-serif;
    font-weight: 500;
    margin: 0;
  }

  .home .dewsia-card-grid .dewsia-meta {
    display: none;
  }

  .home .dewsia-section-head {
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    align-items: center;
  }

  .home .dewsia-section-head--minimal {
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
  }

  .home .dewsia-section-head h2 {
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.2px;
    line-height: 1.2;
  }

  .home .dewsia-section-head a {
    font-size: 11px;
    font-weight: 500;
  }

  .home .dewsia-section-accent {
    width: 20px;
    height: 2px;
    margin-top: 4px;
  }

  .home .dewsia-news-grid {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border);
    border-radius: 10px;
    overflow: hidden;
  }

  .home .dewsia-news-card {
    grid-template-columns: 72px 1fr;
    gap: 12px;
    border: 0;
    border-radius: 0;
    padding: 12px 14px;
    background: var(--card);
  }

  .home .dewsia-news-image {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    align-self: center;
  }

  .home .dewsia-news-image img {
    width: 72px;
    height: 72px;
  }

  .home .dewsia-news-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
  }

  .home .dewsia-news-card .dewsia-kicker {
    font-size: 9px;
    letter-spacing: 0.6px;
    margin-bottom: 3px;
  }

  .home .dewsia-news-card h3 {
    font-family: "Jost", sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.35;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .home .dewsia-news-card .dewsia-meta {
    font-size: 11px;
  }

  .home .dewsia-editorial-layout {
    display: block;
  }

  .home .dewsia-editorial-feature {
    min-height: 180px;
    border-radius: 10px;
    margin-bottom: 12px;
  }

  .home .dewsia-editorial-feature-inner {
    padding: 14px 16px;
    max-width: 100%;
  }

  .home .dewsia-editorial-feature .dewsia-kicker {
    font-size: 9px;
    letter-spacing: 1px;
    margin-bottom: 6px;
  }

  .home .dewsia-editorial-feature h3 {
    font-size: 17px;
    line-height: 1.3;
    font-weight: 500;
    margin: 0;
  }

  .home .dewsia-editorial-feature .dewsia-meta {
    display: none;
  }

  .home .dewsia-editorial-side {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .home .dewsia-editorial-side-card {
    padding: 14px 16px;
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
    border-left: 3px solid var(--editorial-accent);
    min-height: auto;
  }

  .home .dewsia-editorial-side-card .dewsia-kicker {
    font-size: 9px;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
    color: var(--editorial-accent);
  }

  .home .dewsia-editorial-side-card h3 {
    font-family: "Jost", sans-serif;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 500;
    margin: 0 0 4px;
  }

  .home .dewsia-editorial-side-card .dewsia-meta {
    font-size: 11px;
  }

  .home .dewsia-interviews-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .home .dewsia-interview-card {
    border-radius: 10px;
    padding: 18px;
    box-shadow: var(--shadow-soft);
    border-left: 3px solid var(--interviews-accent);
  }

  .home .dewsia-interview-card .dewsia-kicker {
    font-size: 9px;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
    color: var(--interviews-accent);
  }

  .home .dewsia-interview-card h3 {
    font-family: "Jost", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.4;
    margin: 0 0 10px;
  }

  .home .dewsia-interview-card p {
    font-size: 12px;
    line-height: 1.5;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    margin: 0;
  }

  .home .dewsia-guides-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .home .dewsia-guide-row {
    grid-template-columns: 80px 1fr;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    overflow: visible;
    align-items: center;
  }

  .home .dewsia-guide-row-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
  }

  .home .dewsia-guide-row-image img {
    width: 80px;
    height: 80px;
  }

  .home .dewsia-guide-row-body {
    padding: 0;
  }

  .home .dewsia-guide-row .dewsia-kicker {
    font-size: 9px;
    letter-spacing: 0.6px;
    margin-bottom: 3px;
    color: var(--guides-accent);
  }

  .home .dewsia-guide-row h3 {
    font-family: "Jost", sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.35;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .home .dewsia-guide-row p {
    display: none;
  }

  .home .dewsia-guide-row .dewsia-meta {
    font-size: 11px;
  }

  .dewsia-footer {
    margin-top: 32px;
  }

  .dewsia-footer .site-container {
    padding: 32px 16px !important;
  }

  .dewsia-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .dewsia-footer-brand {
    font-size: 16px;
    letter-spacing: 6px;
    margin-bottom: 4px;
  }

  .dewsia-footer-tagline {
    font-size: 11px;
    margin-bottom: 0;
  }

  .dewsia-footer-copy {
    font-size: 10px;
  }

  .dewsia-footer-right {
    align-items: flex-start;
    gap: 18px;
  }

  .dewsia-footer-socials {
    gap: 10px;
    margin-bottom: 0;
  }

  .dewsia-footer-socials a {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.58);
  }

  .dewsia-footer-socials a:hover {
    color: rgba(255,255,255,0.92);
  }

  .dewsia-footer-socials svg {
    width: 14px;
    height: 14px;
  }

  .dewsia-footer-nav {
    gap: 12px 20px;
    justify-content: flex-start;
  }

  .dewsia-footer-nav a {
    font-size: 12px;
  }

  .dewsia-search-overlay-inner {
    margin: 60px 14px 0;
    max-width: none;
    border-radius: 14px;
    padding: 14px;
  }

  .dewsia-search-form {
    grid-template-columns: 1fr;
  }
}

/* =========================
   CATEGORY / ARTICLE KEEP SAFE
========================= */

@media (max-width: 760px) {
  .dewsia-category-page {
    padding-left: 14px;
    padding-right: 14px;
  }

  .dewsia-article-shell {
    padding-left: 14px;
    padding-right: 14px;
  }
}