/* DoughHound — Personal Finance & Budgeting Guide */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dh-navy:    #1a2640;
  --dh-green:   #2d7a4f;
  --dh-green2:  #236040;
  --dh-amber:   #e8900a;
  --dh-amber2:  #c47808;
  --dh-sky:     #e8f3ef;
  --dh-bg:      #f9fbfa;
  --dh-white:   #ffffff;
  --dh-text:    #1e2b24;
  --dh-muted:   #556b60;
  --dh-border:  #cad9d2;
  --dh-radius:  5px;
  --dh-wrap:    1080px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--dh-bg);
  color: var(--dh-text);
  font-family: system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  line-height: 1.68;
}

a { color: var(--dh-green); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--dh-green2); }

img { max-width: 100%; display: block; }

/* ── Wrapper ── */
.dh-wrap { max-width: var(--dh-wrap); margin: 0 auto; padding: 0 20px; }

/* ── Site Header ── */
.dh-header {
  background: var(--dh-navy);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--dh-green);
}
.dh-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 20px;
  max-width: var(--dh-wrap);
  margin: 0 auto;
}
.dh-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.dh-logo-mark {
  width: 34px;
  height: 34px;
  background: var(--dh-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--dh-white);
  flex-shrink: 0;
  line-height: 1;
}
.dh-logo-text {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--dh-white);
  letter-spacing: -0.02em;
}
.dh-logo-text em {
  font-style: normal;
  color: var(--dh-amber);
}
.dh-logo:hover .dh-logo-text { text-decoration: none; }

.dh-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.dh-nav a {
  color: #a8bec8;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 6px 12px;
  border-radius: 20px;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}
.dh-nav a:hover,
.dh-nav a.dh-active {
  background: var(--dh-green);
  color: var(--dh-white);
  text-decoration: none;
}

/* ── Hero ── */
.dh-hero {
  background: linear-gradient(100deg, var(--dh-navy) 0%, #263350 55%, #1d3a2a 100%);
  padding: 54px 0 44px;
  overflow: hidden;
  position: relative;
}
.dh-hero::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 35%;
  background: linear-gradient(135deg, transparent 40%, rgba(45,122,79,0.12) 100%);
  pointer-events: none;
}
.dh-hero-body {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.dh-hero-copy { flex: 1 1 340px; }
.dh-hero-tag {
  display: inline-block;
  background: var(--dh-amber);
  color: var(--dh-navy);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 3px;
  margin-bottom: 14px;
}
.dh-hero h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 900;
  color: var(--dh-white);
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.dh-hero h1 em {
  font-style: normal;
  color: var(--dh-amber);
}
.dh-hero-deck {
  font-size: 1.0rem;
  color: #9bb8c4;
  max-width: 480px;
  margin-bottom: 22px;
  line-height: 1.6;
}
.dh-hero-cta {
  display: inline-block;
  background: var(--dh-green);
  color: var(--dh-white);
  font-weight: 700;
  font-size: 0.93rem;
  padding: 10px 22px;
  border-radius: var(--dh-radius);
  text-decoration: none;
  transition: background 0.15s;
}
.dh-hero-cta:hover { background: var(--dh-green2); text-decoration: none; color: var(--dh-white); }

.dh-hero-stats { flex: 0 0 auto; display: flex; flex-direction: column; gap: 12px; }
.dh-stat-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-left: 3px solid var(--dh-amber);
  padding: 14px 18px;
  border-radius: var(--dh-radius);
  min-width: 180px;
}
.dh-stat-number {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--dh-white);
  line-height: 1;
  margin-bottom: 4px;
}
.dh-stat-label {
  font-size: 0.75rem;
  color: #8aabb8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Topic Pills ── */
.dh-topic-bar {
  background: var(--dh-sky);
  border-bottom: 1px solid var(--dh-border);
  padding: 10px 0;
}
.dh-topic-bar-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.dh-topic-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--dh-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 4px;
  white-space: nowrap;
}
.dh-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--dh-white);
  border: 1px solid var(--dh-border);
  color: var(--dh-muted);
  text-decoration: none;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.dh-pill:hover {
  background: var(--dh-green);
  color: var(--dh-white);
  border-color: var(--dh-green);
  text-decoration: none;
}

/* ── Page body ── */
.dh-page { padding: 44px 0 60px; }
.dh-page-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}
@media (max-width: 760px) {
  .dh-page-grid { grid-template-columns: 1fr; }
}

/* ── Section heading ── */
.dh-section-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.dh-section-rule h2 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--dh-navy);
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.dh-section-rule::after {
  content: '';
  display: block;
  flex: 1;
  height: 1px;
  background: var(--dh-border);
}

/* ── Article feed rows ── */
.dh-feed { list-style: none; }
.dh-feed-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--dh-border);
}
.dh-feed-item:last-child { border-bottom: none; }
.dh-feed-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--dh-green);
  color: var(--dh-white);
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 3px;
}
.dh-feed-body { flex: 1; }
.dh-feed-cat {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dh-amber2);
  margin-bottom: 3px;
}
.dh-feed-title {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
}
.dh-feed-title a { color: var(--dh-navy); }
.dh-feed-title a:hover { color: var(--dh-green); text-decoration: none; }
.dh-feed-excerpt {
  font-size: 0.88rem;
  color: var(--dh-muted);
  line-height: 1.5;
}

/* ── latest.php include wrapper ── */
.dh-latest-feed { margin-top: 6px; }

/* ── Sidebar ── */
.dh-sidebar { position: sticky; top: 72px; }
.dh-sidebar-box {
  background: var(--dh-white);
  border: 1px solid var(--dh-border);
  border-top: 3px solid var(--dh-green);
  border-radius: var(--dh-radius);
  padding: 20px;
  margin-bottom: 20px;
}
.dh-sidebar-box h3 {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--dh-navy);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--dh-border);
}
.dh-sidebar-box p {
  font-size: 0.88rem;
  color: var(--dh-muted);
  line-height: 1.55;
}
.dh-sidebar-box ul {
  list-style: none;
}
.dh-sidebar-box ul li {
  font-size: 0.88rem;
  padding: 5px 0;
  border-bottom: 1px dotted var(--dh-border);
}
.dh-sidebar-box ul li:last-child { border-bottom: none; }
.dh-sidebar-box ul li a { color: var(--dh-text); }
.dh-sidebar-box ul li a:hover { color: var(--dh-green); text-decoration: none; }

.dh-tip-box {
  background: #fff9ee;
  border: 1px solid #f5d79e;
  border-left: 4px solid var(--dh-amber);
  border-radius: var(--dh-radius);
  padding: 16px 18px;
  margin-bottom: 20px;
}
.dh-tip-box-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--dh-amber2);
  margin-bottom: 6px;
}
.dh-tip-box p {
  font-size: 0.87rem;
  color: #5a4010;
  line-height: 1.55;
}

/* ── Article page ── */
.dh-article-wrap {
  max-width: 740px;
  margin: 0 auto;
  padding: 48px 20px 72px;
}
.dh-article-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--dh-amber2);
  margin-bottom: 10px;
}
.dh-article-wrap h1 {
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  font-weight: 900;
  color: var(--dh-navy);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 14px;
}
.dh-article-meta {
  font-size: 0.83rem;
  color: var(--dh-muted);
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--dh-border);
}
.dh-article-body h2 {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--dh-navy);
  margin: 32px 0 10px;
  padding-top: 4px;
  border-top: 2px solid var(--dh-sky);
}
.dh-article-body p {
  margin-bottom: 16px;
  font-size: 1.0rem;
  line-height: 1.72;
  color: var(--dh-text);
}
.dh-article-body ul,
.dh-article-body ol {
  margin: 0 0 16px 22px;
  font-size: 0.97rem;
  line-height: 1.7;
}
.dh-article-body li { margin-bottom: 6px; }
.dh-article-body strong { color: var(--dh-navy); }
.dh-article-back {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--dh-muted);
}
.dh-article-back:hover { color: var(--dh-green); text-decoration: none; }

/* ── Footer ── */
.dh-footer {
  background: var(--dh-navy);
  padding: 32px 0 24px;
  margin-top: 40px;
}
.dh-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.dh-footer-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--dh-white);
}
.dh-footer-logo em { font-style: normal; color: var(--dh-amber); }
.dh-footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.dh-footer-links a {
  color: #8aabb8;
  font-size: 0.84rem;
  text-decoration: none;
}
.dh-footer-links a:hover { color: var(--dh-white); text-decoration: none; }
.dh-footer-disc {
  font-size: 0.78rem;
  color: #566a72;
  line-height: 1.6;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.07);
  width: 100%;
}

/* ── About / Contact pages ── */
.dh-static-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 20px 72px;
}
.dh-static-wrap h1 {
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--dh-navy);
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.dh-static-wrap p {
  margin-bottom: 16px;
  font-size: 1.0rem;
  line-height: 1.72;
  color: var(--dh-text);
}
.dh-static-wrap a { color: var(--dh-green); }

/* ── Responsive ── */
@media (max-width: 680px) {
  .dh-hero-stats { flex-direction: row; flex-wrap: wrap; }
  .dh-stat-card { min-width: 140px; }
  .dh-header-inner { padding: 10px 16px; }
  .dh-nav a { padding: 5px 8px; font-size: 0.82rem; }
}
