/* Our Daily Page: shared styles for the free pages */
:root {
  --ink: #1d2733;
  --cream: #f6f1e7;
  --cream-deep: #ede5d4;
  --paper: #fffdf8;
  --green: #1f6f5c;
  --green-dark: #165444;
  --green-soft: #e3efe9;
  --line: #d8d0bf;
  --muted: #55606b;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(29, 39, 51, .06), 0 8px 24px rgba(29, 39, 51, .09);
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(32px, 6vw, 50px); margin: 0 0 18px; letter-spacing: -.01em; }
h2 { font-size: clamp(25px, 4vw, 32px); margin: 0 0 14px; }
h3 { font-size: 21px; margin: 0 0 6px; }
p { margin: 0 0 16px; }
ul, ol { padding-left: 1.3em; margin: 0 0 18px; }
li { margin-bottom: 8px; }
strong { font-weight: 700; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--ink); text-decoration: none; }
.brand-mark { width: 30px; height: 36px; border-radius: 4px; background: #fff; border: 2px solid var(--green); position: relative; flex: none; box-shadow: 3px 3px 0 var(--green-soft); }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; left: 5px; right: 5px; height: 2px; background: var(--green); }
.brand-mark::before { top: 9px; }
.brand-mark::after { top: 16px; right: 10px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 0; padding: 0; list-style: none; }
.site-nav li { margin: 0; }
.site-nav a { display: block; padding: 8px 12px; border-radius: 999px; font-size: 16px; font-weight: 600; color: var(--ink); text-decoration: none; }
.site-nav a:hover { background: var(--green-soft); color: var(--green-dark); }
.site-nav a[aria-current="page"] { background: var(--green); color: #fff; }

/* Hero */
.hero { padding: 48px 0 28px; }
.hero .wrap { display: grid; gap: 32px; align-items: center; }
.hero .wrap:has(.photo img) { grid-template-columns: 1.15fr 1fr; }
.hero .lead { font-size: 21px; line-height: 1.6; max-width: 680px; color: #2c3946; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green); margin-bottom: 12px; }
.photo { margin: 0; }
.photo:empty { display: none; }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 820px) { .hero .wrap:has(.photo img) { grid-template-columns: 1fr; } .hero { padding-top: 32px; } }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 12px 24px; border-radius: 12px; border: 2px solid var(--green); background: var(--green); color: #fff; font-family: var(--sans); font-size: 18px; font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.2; transition: background .15s, transform .15s; }
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn.secondary { background: #fff; color: var(--green); }
.btn.secondary:hover { background: var(--green-soft); color: var(--green-dark); }
.btn:focus-visible, .site-nav a:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid #e0a23b; outline-offset: 2px; }

/* Sections and content */
.section { padding: 36px 0; }
.section.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.prose { max-width: 760px; }
.prose h2 { margin-top: 8px; }
.prose h3 { margin-top: 26px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin: 8px 0 8px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 18px; box-shadow: var(--shadow); }
.card h3 { font-size: 20px; }
.card p { margin: 0; font-size: 17px; color: #2c3946; }
.card .num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; font-size: 16px; margin-bottom: 10px; }
a.card { text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; display: block; }
a.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(29,39,51,.08), 0 14px 30px rgba(29,39,51,.13); }
a.card .go { display: inline-block; margin-top: 12px; font-weight: 700; color: var(--green); }

.note { background: var(--green-soft); border-left: 4px solid var(--green); border-radius: 0 10px 10px 0; padding: 16px 18px; margin: 18px 0; font-size: 17px; }
.note p:last-child { margin-bottom: 0; }

.related { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
.related li { margin: 0; }
.related a { display: inline-block; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); text-decoration: none; font-weight: 600; font-size: 16px; }
.related a:hover { border-color: var(--green); }

/* Tool panel (generators) */
.tool { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px 20px; margin-bottom: 20px; }
.field label, .field .label { display: block; font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.field select, .field input[type="number"] { width: 100%; min-height: 50px; font-size: 18px; padding: 10px 12px; border: 1.5px solid #a9a394; border-radius: 10px; background: #fff; color: var(--ink); font-family: var(--sans); }
.check { display: flex; align-items: center; gap: 10px; font-size: 17px; margin: 4px 0; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--green); flex: none; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.tool-hint { font-size: 15px; color: var(--muted); margin: -8px 0 20px; }

/* Paper sheet look (shared by previews and printable material) */
.sheet { background: #fff; color: var(--ink); width: 100%; max-width: 8.5in; margin: 0 auto 24px; padding: 40px 44px; border-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 10px 28px rgba(29,39,51,.16); position: relative; font-size: 18px; line-height: 1.45; }
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; border-bottom: 2px solid var(--green); padding-bottom: 8px; margin-bottom: 18px; }
.sheet-head h2, .sheet-head .sheet-title { font-family: var(--serif); font-size: 1.5em; color: var(--green); margin: 0; font-weight: 700; line-height: 1.2; }
.sheet-head span { font-size: .8em; color: var(--muted); }
.sheet-foot { margin-top: 18px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: .78em; color: var(--muted); }
@media (max-width: 600px) { .sheet { padding: 22px 16px; font-size: 16px; } }

.print-only { display: none; }

/* Call to action */
.cta { background: var(--green); color: #fff; border-radius: 20px; padding: 40px 32px; margin: 12px auto 48px; display: grid; grid-template-columns: 1fr auto; gap: 20px 32px; align-items: center; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 220px; background: rgba(255,255,255,.07); border-radius: 10px; transform: rotate(14deg); pointer-events: none; }
.cta h2 { color: #fff; margin: 0 0 8px; font-size: clamp(24px, 3.6vw, 30px); }
.cta p { margin: 0; font-size: 18px; color: #e6f2ed; max-width: 600px; }
.cta .btn { background: #fff; color: var(--green-dark); border-color: #fff; position: relative; z-index: 1; }
.cta .btn:hover { background: var(--cream); }
@media (max-width: 720px) { .cta { grid-template-columns: 1fr; padding: 30px 22px; } .cta .btn { width: 100%; } }

/* Footer */
.site-footer { background: var(--ink); color: #d7dde3; padding: 36px 0 40px; font-size: 16px; }
.site-footer a { color: #fff; }
.site-footer .foot-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 0 0 18px; }
.site-footer .foot-nav li { margin: 0; }
.site-footer .disclaimer { max-width: 720px; margin: 0; color: #b9c2cb; }
.site-footer .brand { color: #fff; margin-bottom: 14px; font-size: 20px; }
.site-footer .brand-mark { background: transparent; border-color: #fff; box-shadow: none; }
.site-footer .brand-mark::before, .site-footer .brand-mark::after { background: #fff; }

@media (max-width: 600px) {
  body { font-size: 17px; }
  .hero .lead { font-size: 19px; }
  .tool { padding: 18px 14px; }
  .btn { width: 100%; }
  .hero-actions .btn, .tool-actions .btn { width: 100%; }
  .site-nav a { padding: 6px 10px; font-size: 15px; }
}

/* Print: only the material */
@page { size: Letter; margin: 0.5in; }
@media print {
  body { background: #fff; font-size: 16pt; line-height: 1.4; }
  html, body { margin: 0; padding: 0; }
  .site-header, .site-footer, .cta, .controls, .tool-actions, .tool-hint, .no-print, .hero, .section:not(.printable), .photo, main > :not(.printable) { display: none !important; }
  .section.printable { padding: 0; background: none; border: 0; }
  .wrap { max-width: none; padding: 0; }
  .tool { border: 0; box-shadow: none; padding: 0; background: none; }
  .sheet { box-shadow: none; border-radius: 0; margin: 0; padding: 0; max-width: none; width: auto; font-size: 16pt; break-after: page; page-break-after: always; }
  .sheet:last-child { break-after: auto; page-break-after: auto; }
  .print-only { display: block; }
  .screen-only { display: none !important; }
  a { color: inherit; text-decoration: none; }
}
