/* Da' Money — shared stylesheet for the AdSense revamp pages (Dec 2, 2026).
   Design tokens copied from the live homepage (da-money-with-kids-books.html)
   so the new pages match the existing green + gold brand.
   WCAG 2.2 AA: every text/background pair below was computed and exceeds 4.5:1.
   Light mode lowest pair is gold text on page background at 5.79:1.
   No overlay widgets, no images on these pages (no alt-text debt). */

:root {
  --bg: #f3f6ef;
  --surface: #ffffff;
  --surface-2: #eaf0e2;
  --ink: #14342a;        /* 12.38:1 on --bg */
  --ink-2: #3d554a;      /* 7.41:1 on --bg */
  --green: #0c4a30;      /* 9.44:1 on --bg (links) */
  --green-deep: #083626;
  --gold: #7c5a06;       /* 5.79:1 on --bg */
  --gold-solid: #e9bc4f;
  --gold-ink: #231a02;   /* 9.65:1 on --gold-solid */
  --cream: #fdf6dd;      /* 12.39:1 on --green-deep */
  --line: #c3d2bd;
  --focus: #7c5a06;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #06231a;
    --surface: #0b3527;
    --surface-2: #0e4230;
    --ink: #f3eedd;      /* 14.32:1 on --bg */
    --ink-2: #c9d4c6;    /* 10.86:1 on --bg */
    --green: #0e4230;
    --green-deep: #06231a;
    --gold: #ecc964;     /* 10.38:1 on --bg */
    --gold-solid: #e9bc4f;
    --gold-ink: #231a02;
    --line: #2a5a45;
    --focus: #ecc964;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}
h1, h2, h3 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  line-height: 1.2;
  color: var(--green-deep);
}
@media (prefers-color-scheme: dark) { h1, h2, h3 { color: var(--gold); } }
h1 { font-size: 2.1rem; margin: 0 0 .5rem; }
h2 { font-size: 1.5rem; margin: 2rem 0 .5rem; }
h3 { font-size: 1.2rem; margin: 1.5rem 0 .4rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.4rem; }
li { margin-bottom: .4rem; }
a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) { a { color: var(--gold); } }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold-solid); color: var(--gold-ink);
  padding: .75rem 1rem; font-weight: 700; z-index: 10;
}
.skip:focus { left: .5rem; top: .5rem; }

.wrap { max-width: 44rem; margin: 0 auto; padding: 0 1.1rem; }
.wrap-wide { max-width: 62rem; margin: 0 auto; padding: 0 1.1rem; }

.site-nav { background: var(--green-deep); border-bottom: 3px solid var(--gold-solid); }
.site-nav .wrap-wide {
  display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem;
  padding-top: .5rem; padding-bottom: .5rem;
}
.wordmark {
  color: var(--cream); text-decoration: none; font-weight: 700;
  font-family: "Playfair Display", Georgia, serif; font-size: 1.25rem;
  margin-right: auto; padding: .5rem .25rem; min-height: 44px;
  display: flex; align-items: center;
}
.wordmark .apos { color: var(--gold-solid); }
.site-nav nav { display: flex; flex-wrap: wrap; gap: .1rem; }
.site-nav nav a {
  color: var(--cream); text-decoration: none; font-weight: 600; font-size: .98rem;
  padding: .6rem .65rem; min-height: 44px; display: inline-flex; align-items: center;
  border-radius: 4px;
}
.site-nav nav a:hover, .site-nav nav a[aria-current="page"] {
  background: rgba(233, 188, 79, .18); text-decoration: underline;
}

.hero { padding: 2.25rem 0 1.5rem; }
.lede { font-size: 1.15rem; color: var(--ink-2); }
main { padding-bottom: 2.5rem; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 1.1rem 1.2rem; margin: 0 0 1rem;
}
.card h2, .card h3 { margin-top: 0; }
.alt { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 1.1rem 1.2rem; }

.btn {
  display: inline-block; padding: .7rem 1.15rem; min-height: 44px;
  border-radius: 8px; font-weight: 700; text-decoration: none; margin: 0 .5rem .5rem 0;
  border: 2px solid transparent;
}
.btn-green { background: var(--green); color: #ffffff; }          /* 10.31:1 */
.btn-gold { background: var(--gold-solid); color: var(--gold-ink); } /* 9.65:1 */
.btn-ghost { background: transparent; color: var(--green); border-color: var(--green); }
@media (prefers-color-scheme: dark) {
  .btn-ghost { color: var(--gold); border-color: var(--gold); }
}
.btn:hover { text-decoration: underline; }

.meta { color: var(--ink-2); font-size: .95rem; }
.disclaimer {
  border-left: 4px solid var(--gold-solid); background: var(--surface-2);
  padding: .8rem 1rem; border-radius: 0 8px 8px 0; margin: 1.5rem 0;
}
.breadcrumb { font-size: .95rem; color: var(--ink-2); margin: 1.25rem 0 0; }
.breadcrumb a { color: var(--ink-2); }
.guide-list { list-style: none; padding: 0; }
.guide-list li { margin-bottom: 1rem; }
.guide-list a { font-weight: 700; font-size: 1.1rem; }

label { display: block; font-weight: 700; margin: 1rem 0 .3rem; }
input[type="text"], input[type="email"], textarea {
  width: 100%; padding: .7rem; font: inherit; color: var(--ink);
  background: var(--surface); border: 2px solid var(--line); border-radius: 6px;
}
textarea { min-height: 9rem; }

.site-footer {
  border-top: 3px solid var(--gold-solid); background: var(--green-deep);
  color: var(--cream); padding: 1.75rem 0 2rem; margin-top: 1rem;
}
.site-footer a { color: var(--gold-solid); }
.site-footer p { margin: 0 0 .6rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin-bottom: .75rem; }
.site-footer nav a { padding: .4rem 0; min-height: 44px; display: inline-flex; align-items: center; }
@media (prefers-color-scheme: dark) { .site-footer a { color: var(--gold); } }
