/*
Theme Name: Daily Track Health
Theme URI: https://example.com/
Author: Daily Track Health
Version: 1.6.0
Requires PHP: 8.0
Text Domain: daily-track-health
*/
:root{
  --dth-cream:#f8f2df;
  --dth-paper:#fffdf6;
  --dth-green:#163f2d;
  --dth-green2:#24563e;
  --dth-sage:#7d9b6b;
  --dth-gold:#d79a43;
  --dth-coral:#d2674f;
  --dth-ink:#2d332c;
  --dth-muted:#6b736b;
  --dth-line:#ddd2b8;
  --dth-blue:#2a7e9c;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--dth-cream);color:var(--dth-ink);font-family:Arial,Helvetica,sans-serif;overflow-x:hidden}
img{max-width:100%;height:auto}
a{color:inherit}
.wrap{width:min(1360px,calc(100% - 44px));margin:auto}

/* Header */
.dth-header{position:sticky;top:0;z-index:9999;background:rgba(255,253,246,.98);backdrop-filter:blur(10px);border-bottom:1px solid var(--dth-line)}
.admin-bar .dth-header{top:32px}
.dth-topline{height:6px;background:var(--dth-green)}
.dth-header-inner{min-height:80px;display:grid;grid-template-columns:280px 1fr auto;gap:22px;align-items:center}
.dth-brand img{width:230px;display:block}
.dth-nav ul{list-style:none;margin:0;padding:0;display:flex;justify-content:center;gap:28px}
.dth-nav a{text-decoration:none;color:#26352c;font-size:10px;font-weight:800}
.dth-nav a:hover,.dth-nav .current-menu-item>a{color:var(--dth-green)}
.dth-actions{display:flex;align-items:center;gap:10px}
.dth-search-toggle{width:40px;height:40px;border:1px solid #cfbea1;border-radius:50%;background:#fffaf1;font-size:18px}
.dth-subscribe{display:inline-flex;align-items:center;min-height:40px;padding:0 18px;border-radius:999px;background:var(--dth-green);color:#fff;text-decoration:none;font-size:10px;font-weight:900}
.dth-search-panel{display:none;padding:12px 0;background:#f0e4cb}
.dth-search-panel.open{display:block}
.dth-search-panel form{display:grid;grid-template-columns:1fr 110px;gap:8px}
.dth-search-panel input{height:42px;border:1px solid #cdbb98;border-radius:22px;padding:0 15px;background:#fffdf7}
.dth-search-panel button{border:0;border-radius:22px;background:var(--dth-green);color:#fff;font-weight:900}

/* Hero */
.dth-hero{position:relative;overflow:hidden;background:#f6efd9}
.dth-hero:after{content:"";position:absolute;right:-180px;top:-140px;width:560px;height:560px;border-radius:50%;border:1px solid rgba(22,63,45,.15)}
.dth-hero-grid{min-height:660px;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:34px}
.dth-hero-copy{padding:70px 0}
.dth-hero-copy>span{font-size:10px;font-weight:900;letter-spacing:1.45px;color:#326144}
.dth-hero-copy h1{margin:12px 0 16px;font:700 clamp(58px,6.7vw,98px)/.9 Georgia,serif;color:#173f2e;letter-spacing:-3px}
.dth-hero-copy p{max-width:620px;font-size:15px;line-height:1.6;color:#526158}
.dth-hero-actions{display:flex;gap:10px;margin-top:22px;flex-wrap:wrap}
.dth-hero-actions a{display:inline-flex;align-items:center;min-height:46px;padding:0 20px;border-radius:999px;background:var(--dth-green);color:#fff;text-decoration:none;font-size:10px;font-weight:900}
.dth-hero-actions a.secondary{background:transparent;color:#264d38;border:1px solid #6c896f}
.dth-hero-visual{position:relative;min-height:590px;display:flex;align-items:flex-end;justify-content:center}
.dth-green-orbit{position:absolute;right:5%;top:7%;width:390px;height:390px;border-radius:50%;background:linear-gradient(135deg,#24563e,#6e8f63);opacity:.95}
.dth-hero-visual img{position:relative;z-index:2;width:88%;height:520px;object-fit:cover;object-position:center;border-radius:48% 48% 8% 8%}
.dth-handwritten{position:absolute;z-index:3;right:10%;bottom:12%;font:italic 27px/1.02 Georgia,serif;color:#f6eacb;transform:rotate(-7deg);text-align:right}

/* Categories */
.dth-categories{padding:34px 0 42px;background:var(--dth-paper)}
.dth-section-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:18px}
.dth-section-head h2{margin:0;font:700 31px Georgia,serif;color:#27382d}
.dth-section-head>a{font-size:9px;text-decoration:none;color:#476b51;font-weight:800}
.dth-section-head.stacked{align-items:flex-end}
.dth-section-head.stacked>div>span,
.dth-latest .dth-section-head>div>span,
.dth-wellness-band .copy>span{font-size:8px;font-weight:900;letter-spacing:1.2px;color:#4a714f}
.dth-section-head.stacked h2,
.dth-latest .dth-section-head h2{margin-top:5px}
.dth-category-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:16px 14px}
.dth-category-card{text-align:center;text-decoration:none}
.dth-category-card span{display:grid;place-items:center;width:48px;height:48px;margin:0 auto 6px;border-radius:50%;background:#e9efd9;color:#386648;border:1px solid #cbd7b9;font-weight:900}
.dth-category-card:nth-child(3n+2) span{background:#f3dfc8;color:#a66139}
.dth-category-card:nth-child(3n) span{background:#f2d8d3;color:#a45045}
.dth-category-card strong{display:block;font-size:9px;line-height:1.2}

/* Featured */
.dth-featured{padding:20px 0 42px;background:var(--dth-paper)}
.dth-featured-grid{display:grid;grid-template-columns:1.7fr .8fr;gap:18px}
.dth-feature-main{position:relative;min-height:460px;overflow:hidden;border-radius:16px}
.dth-feature-main .image{position:absolute;inset:0}
.dth-feature-main .image img{width:100%;height:100%;object-fit:cover}
.dth-feature-main .shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.03),rgba(14,49,34,.85))}
.dth-feature-main .copy{position:absolute;z-index:2;left:22px;right:22px;bottom:22px;color:#fff}
.dth-feature-main .copy span{display:inline-block;padding:5px 8px;border-radius:12px;background:#f6edd2;color:#31533d;font-size:7px;font-weight:900}
.dth-feature-main h3{max-width:620px;margin:8px 0;font:700 36px/1.02 Georgia,serif}
.dth-feature-main h3 a,.dth-feature-main .read{text-decoration:none}
.dth-feature-main .read{font-size:9px;font-weight:900;color:#f0d69c}
.dth-feature-side{display:grid;grid-template-rows:repeat(3,1fr);gap:9px}
.dth-feature-side article{display:grid;grid-template-columns:110px 1fr;gap:11px;align-items:center;padding:8px;border:1px solid #e0d5bd;border-radius:10px;background:#fffaf1}
.dth-feature-side .image{height:84px;overflow:hidden;border-radius:8px}
.dth-feature-side .image img{width:100%;height:100%;object-fit:cover}
.dth-feature-side span{font-size:7px;font-weight:900;color:#5f7c61}
.dth-feature-side h3{margin:5px 0;font:700 15px/1.15 Georgia,serif}
.dth-feature-side h3 a{text-decoration:none}

/* Guides */
.dth-guides{padding:38px 0 46px;background:#f4ead4}
.dth-guide-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.dth-guide-grid article{overflow:hidden;border:1px solid #dbcdae;border-radius:11px;background:#fffaf1}
.dth-guide-grid .image{display:block;height:220px}
.dth-guide-grid .image img{width:100%;height:100%;object-fit:cover}
.dth-guide-grid .copy{padding:13px}
.dth-guide-grid span{font-size:7px;color:#58735b;font-weight:900}
.dth-guide-grid h3{margin:6px 0;font:700 17px/1.15 Georgia,serif}
.dth-guide-grid h3 a{text-decoration:none}

/* Large extra homepage sections */
.dth-life-stage{padding:44px 0 48px;background:#fffdf6;border-top:1px solid #e1d5bb}
.dth-life-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.dth-life-grid article{position:relative;min-height:330px;overflow:hidden;border-radius:13px;background:#244e39}
.dth-life-grid .image{position:absolute;inset:0}
.dth-life-grid .image img{width:100%;height:100%;object-fit:cover}
.dth-life-grid .shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(8,40,25,.03),rgba(18,63,43,.84))}
.dth-life-grid .copy{position:absolute;z-index:2;left:16px;right:16px;bottom:16px;color:#fff}
.dth-life-grid .copy span{font-size:8px;color:#f1d39d;font-weight:900}
.dth-life-grid .copy h3{margin:6px 0 9px;font:700 20px/1.08 Georgia,serif}
.dth-life-grid .copy a{font-size:9px;color:#fff;text-decoration:none;font-weight:800}

.dth-latest{padding:46px 0;background:#f4ead4}
.dth-latest-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.dth-latest-grid article{overflow:hidden;border:1px solid #d9caaa;border-radius:11px;background:#fffaf1}
.dth-latest-grid .image{display:block;height:210px}
.dth-latest-grid .image img{width:100%;height:100%;object-fit:cover}
.dth-latest-grid .copy{padding:14px}
.dth-latest-grid span{font-size:7px;color:#55765a;font-weight:900}
.dth-latest-grid h3{margin:6px 0;font:700 17px/1.15 Georgia,serif}
.dth-latest-grid h3 a{text-decoration:none}
.dth-latest-grid p{margin:5px 0 0;font-size:10px;line-height:1.45;color:#6c736c}

.dth-wellness-band{padding:50px 0;background:#eef3e2;border-top:1px solid #d4dfc4}
.dth-wellness-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:28px;align-items:center}
.dth-wellness-band .copy h2{margin:7px 0 12px;font:700 38px/1.02 Georgia,serif;color:#214831}
.dth-wellness-band .copy p{max-width:520px;font-size:12px;line-height:1.6;color:#5e695f}
.dth-wellness-band .copy a{display:inline-flex;margin-top:10px;padding:11px 16px;border-radius:22px;background:var(--dth-green);color:#fff;text-decoration:none;font-size:9px;font-weight:900}
.dth-wellness-band .mosaic{display:grid;grid-template-columns:1.25fr .75fr;grid-template-rows:160px 160px;gap:9px}
.dth-wellness-band .mosaic img{width:100%;height:100%;object-fit:cover;border-radius:10px}
.dth-wellness-band .mosaic img:first-child{grid-row:1/3}

/* Community */
.dth-community{padding:38px 0 46px;text-align:center;background:#173f2d;color:#fff}
.dth-community h2{margin:0;font:700 30px Georgia,serif}
.dth-community p{font-size:10px;color:#d0dbd3}
.dth-community form{max-width:620px;margin:16px auto 0;display:grid;grid-template-columns:1fr 140px}
.dth-community input{height:44px;border:0;border-radius:24px 0 0 24px;padding:0 16px}
.dth-community button{border:0;border-radius:0 24px 24px 0;background:#d79a43;color:#183223;font-weight:900}

/* Single */
.dth-single-head,.dth-archive-head{padding:50px 0;background:#173f2d;color:#fff}
.dth-single-head span,.dth-archive-head span{font-size:8px;font-weight:900;letter-spacing:1px;color:#e6c686}
.dth-single-head h1,.dth-archive-head h1{max-width:1000px;margin:8px 0;font:700 50px/1 Georgia,serif}
.dth-single-head>div>div{font-size:9px;color:#c8d4cc}
.dth-single{padding:42px 0;background:#f4ead4}
.dth-single-wrap{width:min(940px,calc(100% - 34px));margin:auto}
.dth-featured-image{margin:0 0 24px;border-radius:13px;overflow:hidden;border:1px solid #d9c7a8}
.dth-featured-image img{display:block;width:100%;height:auto}
.dth-entry{padding:38px 42px;background:#fffaf1;border:1px solid #dccbad;border-radius:13px;font:16px/1.76 Georgia,serif}
.dth-entry h2,.dth-entry h3{color:#214831}
.dth-entry img{display:block;max-width:100%;height:auto;margin:24px auto;border-radius:9px}
.dth-entry table{display:block;max-width:100%;overflow:auto}
.dth-entry iframe,.dth-entry video{max-width:100%}
.dth-context{display:grid;grid-template-columns:115px minmax(0,1fr) 22px;gap:10px;align-items:center;margin:24px 0;padding:12px 13px;background:#f0f3e5;border:1px solid #cfdabc;border-left:4px solid var(--dth-green);border-radius:8px}
.dth-context span{font:800 8px Arial,sans-serif;color:#49704e;letter-spacing:.8px}
.dth-context a{font:700 13px/1.3 Georgia,serif;text-decoration:none;color:#24432f}
.dth-context b{color:#49704e}
.dth-entry a.dth-external{color:var(--dth-blue)!important;text-decoration:underline!important;text-underline-offset:2px}
.dth-entry a.dth-external::after{content:" ↗";font-size:.82em;color:var(--dth-blue)}
.dth-related{margin-top:30px}
.dth-related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.dth-related article{overflow:hidden;border:1px solid #dccbad;border-radius:10px;background:#fffaf1}
.dth-related .image{display:block;height:175px}
.dth-related .image img{width:100%;height:100%;object-fit:cover}
.dth-related h3{padding:12px;margin:0;font:700 15px/1.2 Georgia,serif}
.dth-related h3 a{text-decoration:none}

/* Archive */
.dth-archive{padding:44px 0;background:#f4ead4}
.dth-archive-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.dth-archive-grid article{overflow:hidden;border:1px solid #dccbad;border-radius:10px;background:#fffaf1}
.dth-archive-grid .image{display:block;height:220px}
.dth-archive-grid .image img{width:100%;height:100%;object-fit:cover}
.dth-archive-grid .copy{padding:14px}
.dth-archive-grid h2{font:700 20px/1.15 Georgia,serif}
.dth-archive-grid h2 a,.dth-archive-grid .read{text-decoration:none}
.dth-archive-grid p{font-size:10px;line-height:1.45;color:#6e746d}
.dth-archive-grid .read{font-size:9px;color:#4d714f;font-weight:900}

/* Footer */
.dth-footer{position:relative;overflow:hidden;background:#102f22;color:#f8f2e6;border-top:1px solid rgba(215,154,67,.24)}
.dth-footer-leaves{position:absolute;left:-170px;bottom:-230px;width:520px;height:520px;border-radius:50%;border:1px solid rgba(215,154,67,.14)}
.dth-footer-grid{position:relative;z-index:2;display:grid;grid-template-columns:1.4fr .75fr .75fr 1fr;gap:32px;padding:50px 0 30px}
.dth-footer-brand img{width:230px;filter:brightness(3) saturate(.4)}
.dth-footer-brand p{max-width:370px;font-size:10px;color:#cbd5cd}
.dth-footer-pills{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}
.dth-footer-pills span{padding:6px 9px;border:1px solid rgba(255,255,255,.12);border-radius:999px;font-size:8px;color:#d8dfda}
.dth-footer h3{margin:0 0 11px;font:700 14px Georgia,serif}
.dth-footer section>a{display:block;margin-bottom:7px;font-size:8px;text-decoration:none;color:#e1e7e3}
.dth-footer-card{padding:17px;border:1px solid rgba(215,154,67,.22);border-radius:13px;background:rgba(255,255,255,.03)}
.dth-footer-card>span{display:block;font-size:8px;font-weight:900;letter-spacing:1px;color:#d9ae68;margin-bottom:7px}
.dth-footer-card h3{font-size:21px;line-height:1.15}
.dth-footer-card>a{display:inline-flex!important;align-items:center;min-height:36px;padding:0 13px!important;border-radius:22px;background:#d79a43;color:#173426!important;font-weight:900!important}
.dth-footer-bottom{position:relative;z-index:2;display:flex;justify-content:space-between;align-items:center;min-height:54px;border-top:1px solid rgba(255,255,255,.08);font-size:8px;color:#94a399}

/* Responsive */
@media(max-width:1100px){
  .dth-header-inner{grid-template-columns:230px 1fr auto}
  .dth-nav ul{gap:18px}
  .dth-category-grid{grid-template-columns:repeat(4,1fr)}
  .dth-featured-grid{grid-template-columns:1.35fr .9fr}
  .dth-guide-grid,.dth-life-grid{grid-template-columns:repeat(2,1fr)}
  .dth-footer-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:820px){
  .admin-bar .dth-header{top:46px}
  .dth-header-inner{grid-template-columns:1fr auto}
  .dth-brand img{width:200px}
  .dth-nav{grid-column:1/3;overflow-x:auto;border-top:1px solid #e0d4bd}
  .dth-nav ul{justify-content:flex-start;min-width:max-content;padding:10px 0}
  .dth-subscribe{display:none}
  .dth-hero-grid{grid-template-columns:1fr;min-height:auto}
  .dth-hero-visual{min-height:460px}
  .dth-category-grid{grid-template-columns:repeat(3,1fr)}
  .dth-featured-grid,.dth-wellness-grid{grid-template-columns:1fr}
  .dth-feature-side{grid-template-rows:auto}
  .dth-latest-grid,.dth-archive-grid,.dth-related-grid{grid-template-columns:1fr}
}
@media(max-width:560px){
  .wrap{width:min(100% - 24px,1360px)}
  .dth-hero-copy h1{font-size:52px}
  .dth-category-grid{grid-template-columns:repeat(2,1fr)}
  .dth-guide-grid,.dth-life-grid{grid-template-columns:1fr}
  .dth-entry{padding:25px 18px}
  .dth-context{grid-template-columns:1fr 20px}
  .dth-context span{grid-column:1/3}
  .dth-community form{grid-template-columns:1fr}
  .dth-community input,.dth-community button{border-radius:22px;margin-bottom:8px}
  .dth-footer-grid{grid-template-columns:1fr}
  .dth-footer-bottom{flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;padding:10px 0}
}


/* ===== v1.1 category image grid ===== */
.dth-categories{
  padding:44px 0 52px!important;
  background:linear-gradient(180deg,#fffdf6 0%,#f8f2df 100%)!important;
}
.dth-categories .dth-section-head>div>span{
  display:block;
  margin-bottom:5px;
  font-size:8px;
  font-weight:900;
  letter-spacing:1.3px;
  color:#5c7a60;
}
.dth-category-image-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:14px;
}
.dth-category-image-card{
  position:relative;
  min-height:175px;
  overflow:hidden;
  border-radius:14px;
  border:1px solid #d9caae;
  background:#213d2c;
  text-decoration:none;
  box-shadow:0 8px 18px rgba(49,63,49,.06);
  transition:transform .2s ease,box-shadow .2s ease;
}
.dth-category-image-card:hover{
  transform:translateY(-3px);
  box-shadow:0 12px 24px rgba(49,63,49,.10);
}
.dth-category-image-card img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}
.dth-category-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(8,31,20,.02),rgba(14,49,33,.84));
}
.dth-category-label{
  position:absolute;
  left:13px;
  right:13px;
  bottom:12px;
  z-index:2;
  color:#fff;
}
.dth-category-label strong{
  display:block;
  font:700 15px/1.12 Georgia,serif;
}
.dth-category-label small{
  display:block;
  margin-top:4px;
  color:#f0dcae;
  font-size:8px;
  font-weight:800;
}

/* ===== v1.1 modern footer redesign ===== */
.dth-footer-v11{
  position:relative;
  overflow:hidden;
  background:
    linear-gradient(135deg,#0d2b20 0%,#143a2a 55%,#0b251b 100%)!important;
}
.dth-footer-v11:before{
  content:"";
  position:absolute;
  top:0;left:0;right:0;
  height:4px;
  background:linear-gradient(90deg,#d79a43,#7c9a6a,#d79a43);
}
.dth-footer-glow{
  position:absolute;
  border-radius:50%;
  border:1px solid rgba(215,154,67,.14);
  pointer-events:none;
}
.dth-footer-glow.glow-a{
  width:520px;height:520px;
  left:-240px;bottom:-250px;
}
.dth-footer-glow.glow-b{
  width:360px;height:360px;
  right:-140px;top:40px;
}

.dth-footer-banner{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:1fr auto;
  gap:28px;
  align-items:center;
  margin-top:34px;
  padding:26px 28px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  background:linear-gradient(135deg,rgba(255,255,255,.06),rgba(255,255,255,.025));
  backdrop-filter:blur(8px);
}
.dth-footer-banner-copy>span{
  display:block;
  color:#d8ad68;
  font-size:8px;
  font-weight:900;
  letter-spacing:1.2px;
}
.dth-footer-banner h2{
  margin:6px 0 7px;
  font:700 28px/1.08 Georgia,serif;
  color:#fff5e7;
}
.dth-footer-banner p{
  max-width:700px;
  margin:0;
  color:#c3d0c7;
  font-size:10px;
  line-height:1.5;
}
.dth-footer-banner>a{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:0 18px;
  border-radius:999px;
  background:#d79a43;
  color:#163224!important;
  text-decoration:none;
  font-size:9px;
  font-weight:900;
  white-space:nowrap;
}

.dth-footer-v11 .dth-footer-grid{
  grid-template-columns:1.35fr .72fr .82fr 1.05fr!important;
  gap:38px!important;
  padding-top:42px!important;
}
.dth-footer-v11 .dth-footer-brand img{
  width:235px!important;
}
.dth-footer-v11 .dth-footer-brand p{
  max-width:420px!important;
  line-height:1.6!important;
}
.dth-footer-kicker{
  display:block;
  margin-bottom:6px;
  color:#d8ad68;
  font-size:8px;
  font-weight:900;
  letter-spacing:1.1px;
}
.dth-footer-socials{
  display:flex;
  gap:8px;
  margin-top:16px;
}
.dth-footer-socials a{
  width:32px;
  height:32px;
  display:grid!important;
  place-items:center;
  border-radius:50%;
  margin:0!important;
  border:1px solid rgba(255,255,255,.15);
  background:rgba(255,255,255,.04);
  color:#f3eadb!important;
  font-size:9px!important;
  font-weight:900;
}
.dth-footer-v11 .dth-footer-card{
  background:linear-gradient(145deg,rgba(255,255,255,.055),rgba(255,255,255,.02))!important;
  border-color:rgba(215,154,67,.28)!important;
  padding:20px!important;
}
.dth-footer-v11 .dth-footer-card h3{
  font-size:22px!important;
}
.dth-footer-v11 .dth-footer-card p{
  color:#bfcbc2;
  font-size:9px;
  line-height:1.55;
}
.dth-footer-v11 .dth-footer-bottom{
  min-height:60px!important;
}

/* responsive v1.1 */
@media(max-width:1100px){
  .dth-category-image-grid{grid-template-columns:repeat(3,1fr)}
  .dth-footer-v11 .dth-footer-grid{grid-template-columns:1fr 1fr!important}
}
@media(max-width:760px){
  .dth-category-image-grid{grid-template-columns:repeat(2,1fr)}
  .dth-footer-banner{grid-template-columns:1fr}
  .dth-footer-banner>a{justify-self:start}
}
@media(max-width:520px){
  .dth-category-image-grid{grid-template-columns:1fr}
  .dth-category-image-card{min-height:190px}
  .dth-footer-v11 .dth-footer-grid{grid-template-columns:1fr!important}
}


/* ===== v1.2 overlap + content repair ===== */

/* Category cards: image and text are now separate layers, never on top of each other */
.dth-category-image-grid-v12{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:14px!important;
}
.dth-category-image-card-v12{
  display:grid!important;
  grid-template-rows:120px auto!important;
  min-height:190px!important;
  overflow:hidden!important;
  border:1px solid #d9caae!important;
  border-radius:14px!important;
  background:#fffaf1!important;
  text-decoration:none!important;
  box-shadow:0 7px 18px rgba(49,63,49,.06)!important;
  transition:transform .2s ease,box-shadow .2s ease!important;
}
.dth-category-image-card-v12:hover{
  transform:translateY(-3px)!important;
  box-shadow:0 12px 24px rgba(49,63,49,.10)!important;
}
.dth-category-photo{
  display:block!important;
  width:100%!important;
  height:120px!important;
  overflow:hidden!important;
  background:linear-gradient(135deg,#dfe9d5,#f1e4c8)!important;
}
.dth-category-photo img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center!important;
  margin:0!important;
}
.dth-category-fallback{
  display:grid!important;
  place-items:center!important;
  width:100%!important;
  height:100%!important;
  font:700 42px/1 Georgia,serif!important;
  color:#2f5c41!important;
  background:
    radial-gradient(circle at 70% 25%,rgba(215,154,67,.22),transparent 28%),
    linear-gradient(135deg,#edf3e4,#f5e8ce)!important;
}
.dth-category-copy{
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  min-height:70px!important;
  padding:12px 13px 13px!important;
  background:#fffaf1!important;
  color:#25382d!important;
}
.dth-category-copy strong{
  display:block!important;
  font:700 14px/1.18 Georgia,serif!important;
  overflow-wrap:anywhere!important;
}
.dth-category-copy small{
  display:block!important;
  margin-top:5px!important;
  color:#5e7b61!important;
  font-size:8px!important;
  font-weight:800!important;
}

/* Disable previous overlay-based category rules on v1.2 cards */
.dth-category-image-card-v12 .dth-category-overlay,
.dth-category-image-card-v12 .dth-category-label{
  display:none!important;
}

/* Featured block: prevent title/copy collision */
.dth-feature-main .copy{
  max-width:76%!important;
}
.dth-feature-main h3{
  font-size:clamp(28px,3.3vw,42px)!important;
  line-height:1!important;
  max-height:3.05em!important;
  overflow:hidden!important;
}
.dth-feature-side h3{
  display:-webkit-box!important;
  -webkit-line-clamp:3!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
}

/* Guide, life-stage and latest cards: consistent text areas */
.dth-guide-grid article,
.dth-latest-grid article{
  height:100%!important;
  display:flex!important;
  flex-direction:column!important;
}
.dth-guide-grid .copy,
.dth-latest-grid .copy{
  flex:1!important;
}
.dth-guide-grid h3,
.dth-latest-grid h3{
  overflow-wrap:anywhere!important;
}
.dth-life-grid .copy h3{
  display:-webkit-box!important;
  -webkit-line-clamp:4!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
}

/* Prevent any homepage section from overflowing its grid */
.dth-featured-grid>*,
.dth-guide-grid>*,
.dth-life-grid>*,
.dth-latest-grid>*,
.dth-wellness-grid>*,
.dth-footer-grid>*{
  min-width:0!important;
}

/* Wellness mosaic: clean image containment */
.dth-wellness-band .mosaic{
  overflow:hidden!important;
}
.dth-wellness-band .mosaic img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center!important;
  margin:0!important;
}

/* Footer: make all columns breathe, no overlap */
.dth-footer-v11 .dth-footer-grid{
  align-items:start!important;
}
.dth-footer-v11 .dth-footer-grid section{
  min-width:0!important;
}
.dth-footer-v11 .dth-footer-grid h3,
.dth-footer-v11 .dth-footer-grid p,
.dth-footer-v11 .dth-footer-grid a{
  overflow-wrap:anywhere!important;
}
.dth-footer-banner{
  overflow:hidden!important;
}
.dth-footer-banner-copy{
  min-width:0!important;
}

/* Desktop width tuning */
@media(max-width:1200px){
  .dth-category-image-grid-v12{grid-template-columns:repeat(4,1fr)!important}
}
@media(max-width:980px){
  .dth-category-image-grid-v12{grid-template-columns:repeat(3,1fr)!important}
  .dth-feature-main .copy{max-width:90%!important}
}
@media(max-width:720px){
  .dth-category-image-grid-v12{grid-template-columns:repeat(2,1fr)!important}
  .dth-category-image-card-v12{grid-template-rows:130px auto!important}
  .dth-category-photo{height:130px!important}
}
@media(max-width:480px){
  .dth-category-image-grid-v12{grid-template-columns:1fr!important}
  .dth-category-image-card-v12{grid-template-rows:170px auto!important}
  .dth-category-photo{height:170px!important}
}


/* ===== v1.3 clean footer + guaranteed category images ===== */

/* Footer top promotional banner removed */
.dth-footer-v11 .dth-footer-grid{
  padding-top:48px!important;
}
.dth-footer-banner,
.dth-footer-banner-copy{
  display:none!important;
}

/* Category image cards: guarantee visible, clean images in every card */
.dth-category-image-card-v12{
  background:#fffaf1!important;
}
.dth-category-photo{
  position:relative!important;
  display:block!important;
  width:100%!important;
  height:132px!important;
  min-height:132px!important;
  overflow:hidden!important;
  background:#e8eedf!important;
}
.dth-category-photo img{
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-width:100%!important;
  min-height:100%!important;
  max-width:none!important;
  object-fit:cover!important;
  object-position:center center!important;
  opacity:1!important;
  visibility:visible!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
}
.dth-category-image-card-v12{
  grid-template-rows:132px minmax(68px,auto)!important;
}
.dth-category-copy{
  position:relative!important;
  z-index:3!important;
  background:#fffaf1!important;
}

/* Hide obsolete text-fallback block from prior version */
.dth-category-fallback{
  display:none!important;
}

@media(max-width:720px){
  .dth-category-photo{height:145px!important;min-height:145px!important}
  .dth-category-image-card-v12{grid-template-rows:145px minmax(70px,auto)!important}
}
@media(max-width:480px){
  .dth-category-photo{height:190px!important;min-height:190px!important}
  .dth-category-image-card-v12{grid-template-rows:190px minmax(72px,auto)!important}
}


/* ===== v1.5 remove Join Our Health Community block ===== */
.dth-community{
  display:none!important;
}


/* ===== v1.6 category archive content/image fix ===== */
.dth-archive-head p{
  max-width:760px;
  margin:10px 0 0;
  color:#cad6ce;
  font-size:12px;
  line-height:1.55;
}
.dth-cat-content{
  padding:46px 0 64px;
  background:#f4ead4;
}
.dth-cat-heading{
  margin-bottom:22px;
}
.dth-cat-heading>div>span{
  display:block;
  margin-bottom:6px;
  color:#5d7a60;
  font-size:8px;
  font-weight:900;
  letter-spacing:1.2px;
}
.dth-cat-heading h2{
  margin:0;
  color:#214831;
  font:700 31px/1.08 Georgia,serif;
}
.dth-cat-heading p{
  max-width:650px;
  margin:8px 0 0;
  color:#69736b;
  font-size:11px;
  line-height:1.55;
}
.dth-cat-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
.dth-cat-card{
  min-width:0;
  overflow:hidden;
  border:1px solid #d9caaa;
  border-radius:12px;
  background:#fffaf1;
  box-shadow:0 8px 20px rgba(49,63,49,.06);
}
.dth-cat-image{
  position:relative;
  display:block;
  width:100%;
  aspect-ratio:16/9;
  overflow:hidden;
  background:#e8eedf;
}
.dth-cat-image img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  margin:0!important;
  max-width:none!important;
}
.dth-cat-pill{
  position:absolute;
  left:12px;
  bottom:11px;
  z-index:2;
  padding:6px 9px;
  border-radius:999px;
  background:#173f2d;
  color:#fff;
  font-size:8px;
  font-weight:900;
}
.dth-cat-copy{
  padding:15px 16px 17px;
}
.dth-cat-copy h3{
  margin:0 0 8px;
  color:#26382d;
  font:700 19px/1.16 Georgia,serif;
}
.dth-cat-copy h3 a{
  text-decoration:none;
}
.dth-cat-copy p{
  margin:0 0 12px;
  color:#69736c;
  font-size:10px;
  line-height:1.5;
}
.dth-cat-meta{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  color:#879188;
  font-size:8px;
}
.dth-cat-note{
  margin-top:22px;
  padding:13px 15px;
  border-left:4px solid #d79a43;
  border-radius:6px;
  background:#fffaf1;
  color:#657068;
  font-size:10px;
  line-height:1.5;
}
.dth-cat-empty{
  padding:28px;
  border:1px solid #d9caaa;
  border-radius:12px;
  background:#fffaf1;
}
.dth-cat-empty h3{
  margin:0;
  font:700 20px Georgia,serif;
}

@media(max-width:980px){
  .dth-cat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
  .dth-cat-grid{grid-template-columns:1fr}
}
