@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');
:root {
  /* Clear Sky palette — matched to Conscious Parenting NI site + Days Out */
  --ink: #1A2233;
  --ink-soft: #4D5A6E;
  --ink-mute: #7A8898;
  --paper: #F6F8FB;
  --paper-warm: #EAF4FB;
  --paper-card: #FFFFFF;
  --paper-surface: #F6F9FC;
  --rule: #E1E6EF;
  --rule-soft: #EDF2F8;
  --rule-strong: #CBD6E4;

  --sun: #FFCE3D;
  --sun-hot: #F4B82A;
  --pink: #C73B7A;
  --sky: #4FA4D2;
  --sky-soft: #6CB4E2;
  --mint: #1F8F5E;

  --sky-deep: #2C6F9E;
  --sun-deep: #D89A0F;
  --leaf: #1F8F5E;
  --leaf-soft: #C9E8D8;
  --rose: #C73B7A;
  --rose-soft: #F6D9E6;
  --sky-soft-bg: #E0F0FA;
  --sun-soft: #FFF3D6;

  --grad-warm: linear-gradient(135deg, #FFD64A 0%, #F4B82A 100%);
  --grad-sun: linear-gradient(135deg, #FFD64A 0%, #F4B82A 100%);
  --grad-sky: linear-gradient(135deg, #6CB4E2 0%, #4FA4D2 100%);
  --grad-fresh: linear-gradient(135deg, #FFD64A 0%, #1F8F5E 100%);
  --grad-pink: linear-gradient(135deg, #F4B82A 0%, #C73B7A 100%);

  --serif: 'Poppins', system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --sans: 'Inter', system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --shadow-sm: 0 1px 2px rgba(20, 35, 60, 0.06), 0 4px 12px rgba(20, 35, 60, 0.08);
  --shadow-md: 0 2px 4px rgba(20, 35, 60, 0.07), 0 10px 28px rgba(20, 35, 60, 0.10);
  --shadow-lg: 0 4px 12px rgba(20, 35, 60, 0.10), 0 24px 60px rgba(20, 35, 60, 0.14);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(900px 500px at -10% -20%, rgba(79, 164, 210, 0.14), transparent 60%),
    radial-gradient(900px 500px at 110% -10%, rgba(244, 184, 42, 0.13), transparent 60%),
    var(--paper);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

body { min-height: 100vh; display: flex; flex-direction: column; }

a {
  color: var(--sky-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(46, 132, 189, 0.3);
  transition: border-color 0.15s ease, color 0.15s ease;
}
a:hover { border-bottom-color: var(--sky-deep); color: var(--pink); }

h1, h2, h3, h4 {
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 0.4em;
}
h1 {
  font-size: clamp(2rem, 5.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
h2 {
  font-size: clamp(1.35rem, 3vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 1.8em 0 0.6em;
}
h3 {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 1.4em 0 0.4em;
}
h4 {
  font-size: 0.75rem;
  margin: 1em 0 0.3em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
  color: var(--sun-hot);
}

p { margin: 0 0 1em; color: var(--ink-soft); }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; color: var(--ink-soft); }
li { margin-bottom: 0.35em; }

em { color: var(--ink-soft); }
strong { color: var(--ink); font-weight: 700; }

blockquote {
  margin: 1.4em 0;
  padding: 1.1em 1.4em;
  background: var(--paper-warm);
  border-radius: var(--radius-md);
  position: relative;
  color: var(--ink);
  font-size: 1.02em;
  font-style: italic;
}
blockquote::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: var(--radius-md);
  background: var(--grad-warm);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.why {
  display: block;
  margin-top: 0.6em;
  padding: 0.9em 1.1em;
  background: var(--paper-surface);
  border-radius: var(--radius-md);
  font-size: 0.94em;
  color: var(--ink-soft);
  position: relative;
}
.why::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.5px;
  border-radius: var(--radius-md);
  background: var(--grad-fresh);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.why::before {
  content: "WHY";
  display: inline-block;
  font-size: 0.66em;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: white;
  background: var(--grad-sun);
  padding: 0.2em 0.65em;
  border-radius: 999px;
  margin-right: 0.6em;
  vertical-align: 2px;
}

/* ---------- Header ---------- */

header.site {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--rule);
  padding: 0.7em 1.2em;
  position: sticky;
  top: 0;
  z-index: 50;
}
header.site .wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.2em;
  flex-wrap: wrap;
}
header.site .brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15em;
  color: var(--ink);
  border: none;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
header.site .brand::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 28px;
  background-image: url('../icon.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 7px;
}
header.site nav {
  display: flex;
  gap: 0.2em;
  flex-wrap: nowrap;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
header.site nav::-webkit-scrollbar { display: none; }
header.site nav a {
  font-family: var(--sans);
  font-size: 0.86em;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.5em 0.9em;
  border-radius: var(--radius-pill);
  border: none;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: all 0.15s ease;
}
header.site nav a:hover {
  background: var(--sky-soft);
  color: var(--sky-deep);
}
header.site nav a.active {
  background: linear-gradient(135deg, var(--sky), var(--sky-deep));
  color: white;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* ---------- Layout ---------- */

main {
  flex: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 2.4em 1.4em 4em;
  width: 100%;
}

.lede {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.3vw, 1.25rem);
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 2.2em;
  font-style: italic;
}

footer.site {
  border-top: 1px solid var(--rule);
  padding: 1.6em 1.2em;
  color: var(--ink-mute);
  font-size: 0.85em;
  text-align: center;
  background: var(--paper-warm);
}

/* ---------- Cards ---------- */

.card {
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 1.4em 1.5em;
  margin: 1em 0;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { box-shadow: var(--shadow-md); }
.card h3 { margin-top: 0; }
.card h3 a { border: none; }

.grid {
  display: grid;
  gap: 1em;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.grid .card {
  margin: 0;
  cursor: pointer;
}
.grid .card:hover {
  transform: translateY(-2px);
  border-color: var(--sky);
  box-shadow: var(--shadow-md);
}
.grid .card h3 a {
  color: var(--ink);
  display: block;
}
.grid .card:hover h3 a { color: var(--sky-deep); }
.grid .card p { margin-bottom: 0; font-size: 0.95em; }

/* ---------- Compare grid ---------- */

.compare-grid {
  display: grid;
  gap: 1em;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.compare-grid .card h3 {
  color: var(--sky-deep);
  font-size: 1.15em;
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.compare-grid .card h3::before {
  content: "";
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, var(--sky), var(--sun));
  border-radius: 50%;
  flex-shrink: 0;
}
.compare-grid .card ul { font-size: 0.94em; }
.compare-grid .tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2em 0.6em;
  border-radius: 999px;
  margin-right: 0.3em;
  margin-bottom: 0.3em;
}
.tag.do { background: var(--leaf-soft); color: #047857; }
.tag.dont { background: var(--sun-soft); color: var(--sun-deep); }

/* ---------- Tables ---------- */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 0.94em;
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
th, td {
  padding: 0.75em 1em;
  text-align: left;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
th {
  background: var(--paper-warm);
  font-weight: 600;
  color: var(--ink);
  font-size: 0.78em;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--sky-soft); }

/* ---------- Form controls ---------- */

input[type="text"], input[type="search"], input[type="date"], textarea, select {
  font-family: var(--sans);
  font-size: 1em;
  padding: 0.7em 0.9em;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--ink);
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px var(--sky-soft);
}
textarea { min-height: 90px; resize: vertical; font-family: var(--sans); }
label {
  display: block;
  font-family: var(--sans);
  font-size: 0.78em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-bottom: 0.4em;
  margin-top: 1em;
  font-weight: 600;
}

/* ---------- Buttons: gradient outline by default ---------- */

button, .btn {
  appearance: none;
  font-family: var(--sans);
  font-size: 0.92em;
  font-weight: 700;
  letter-spacing: -0.005em;
  padding: 0.7em 1.4em;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  color: var(--ink);
  background: white;
  position: relative;
  transition: transform 0.12s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  text-decoration: none;
}
button::before, .btn::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: var(--radius-pill);
  background: var(--grad-warm);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
button:active, .btn:active { transform: scale(0.97); }
button:disabled { opacity: 0.45; cursor: not-allowed; }

button.secondary, .btn.secondary { color: var(--ink-soft); }
button.secondary::before, .btn.secondary::before {
  background: var(--grad-sky);
}

button.primary-fill, .btn.primary-fill {
  background: var(--grad-warm);
  color: white;
}
button.primary-fill::before, .btn.primary-fill::before { display: none; }

/* ---------- Filters ---------- */

.filters {
  display: flex;
  gap: 0.9em;
  flex-wrap: wrap;
  margin: 1.4em 0;
  padding: 1.2em;
  background: white;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.filters > * { flex: 1 1 140px; min-width: 140px; }
.filters label { margin-top: 0; }

/* ---------- Rhythm timeline ---------- */

.rhythm-timeline {
  position: relative;
  margin: 1.2em 0;
  padding-left: 1.6em;
  border-left: 2px solid var(--sky-soft);
}
.rhythm-timeline .block {
  margin-bottom: 1.2em;
  position: relative;
}
.rhythm-timeline .block::before {
  content: "";
  position: absolute;
  left: -1.95em;
  top: 0.4em;
  width: 0.85em;
  height: 0.85em;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky), var(--sun));
  box-shadow: 0 0 0 4px white, 0 0 0 5px var(--sky-soft);
}
.rhythm-timeline .time {
  font-family: var(--sans);
  font-size: 0.78em;
  font-weight: 700;
  color: var(--sky-deep);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- Log entries ---------- */

.log-entry {
  padding: 1em 1.2em;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  margin-bottom: 0.7em;
  background: white;
  font-size: 0.96em;
  box-shadow: var(--shadow-sm);
}
.log-entry .meta {
  font-family: var(--sans);
  font-size: 0.76em;
  color: var(--sky-deep);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  margin-bottom: 0.4em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.log-entry button.del {
  padding: 0.2em 0.7em;
  font-size: 0.72em;
  background: white;
  color: var(--ink-mute);
  border: 1px solid var(--rule);
}
.log-entry button.del:hover {
  color: var(--rose);
  border-color: var(--rose);
  background: white;
  box-shadow: none;
  transform: none;
}

/* ---------- Habit grid ---------- */

.habit-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35em;
  margin: 0.8em 0;
}
.habit-day {
  aspect-ratio: 1;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 0.85em;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  background: white;
  user-select: none;
  transition: all 0.15s ease;
}
.habit-day:hover { border-color: var(--sky); }
.habit-day.done {
  background: linear-gradient(135deg, var(--leaf), #059669);
  color: white;
  border-color: var(--leaf);
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}
.habit-day.future { opacity: 0.35; cursor: default; }
.habit-day.future:hover { border-color: var(--rule); }

/* ---------- Observation items ---------- */

.obs-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7em 0.2em;
  border-bottom: 1px solid var(--rule-soft);
  gap: 1em;
}
.obs-item:last-child { border-bottom: none; }
.obs-item label {
  margin: 0;
  text-transform: none;
  font-size: 0.97em;
  font-weight: 500;
  color: var(--ink);
  font-family: var(--sans);
  letter-spacing: 0;
  flex: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.7em;
}
.obs-item input[type="checkbox"] {
  width: 1.35em;
  height: 1.35em;
  accent-color: var(--leaf);
  cursor: pointer;
  flex-shrink: 0;
}
.obs-item .date {
  font-family: var(--sans);
  font-size: 0.76em;
  color: var(--leaf);
  font-weight: 600;
}

/* ---------- Feast week nav ---------- */

.feast-week-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2em;
  padding: 1em 1.2em;
  background: white;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  font-family: var(--sans);
  font-size: 0.92em;
  box-shadow: var(--shadow-sm);
  gap: 0.6em;
}
.feast-week-nav .week-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15em;
  flex: 1;
}
.feast-week-nav .week-pill {
  font-weight: 800;
  font-size: 1.05em;
  background: linear-gradient(135deg, var(--sky), var(--sky-deep));
  color: white;
  padding: 0.3em 0.9em;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.feast-week-nav .term-pill {
  font-size: 0.75em;
  color: var(--sun-deep);
  background: var(--sun-soft);
  padding: 0.15em 0.6em;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.feast-week-nav button { padding: 0.45em 0.9em; font-size: 0.82em; }

.feast-jump {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 1.2em;
  font-family: var(--sans);
  font-size: 0.85em;
  color: var(--ink-soft);
}
.feast-jump label {
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.92em;
  font-weight: 600;
}
.feast-jump select {
  width: auto;
  flex: 0 0 auto;
  padding: 0.4em 0.7em;
  font-size: 0.92em;
}

.feast-section {
  padding: 1.2em 0;
  border-bottom: 1px solid var(--rule-soft);
}
.feast-section:last-child { border-bottom: none; }
.feast-section h3 {
  display: flex;
  align-items: baseline;
  gap: 0.7em;
  margin-top: 0.4em;
  flex-wrap: wrap;
}
.feast-section .kind {
  font-family: var(--sans);
  font-size: 0.7em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sky-deep);
  background: var(--sky-soft);
  padding: 0.2em 0.7em;
  border-radius: 999px;
  font-weight: 700;
}
.feast-section .poem-body {
  white-space: pre-line;
  font-family: var(--serif);
  font-style: italic;
  padding: 0.6em 1em;
  background: var(--sun-soft);
  border-left: 4px solid var(--sun);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 0.8em 0;
  color: var(--ink);
}
.feast-section .links {
  font-family: var(--sans);
  font-size: 0.85em;
  margin-top: 0.6em;
  display: flex;
  gap: 0.5em;
  flex-wrap: wrap;
}
.feast-section .links a {
  border: none;
  background: var(--sky-soft);
  color: var(--sky-deep);
  padding: 0.3em 0.8em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92em;
}
.feast-section .links a:hover {
  background: var(--sky);
  color: white;
}

/* ---------- Badges ---------- */

.badge {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.7em;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25em 0.7em;
  border-radius: 999px;
  margin-right: 0.4em;
  vertical-align: middle;
}
.badge.free { background: var(--leaf-soft); color: #047857; }
.badge.paid { background: var(--sun-soft); color: var(--sun-deep); }
.badge.avoid { background: var(--rose-soft); color: var(--rose); }
.badge.later { background: #ede9fe; color: #6d28d9; }

/* ---------- Tabs (Keeping page) ---------- */

.tab-bar {
  display: flex;
  gap: 0.4em;
  flex-wrap: wrap;
  margin: 1.4em 0;
  padding: 0.5em;
  background: white;
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 64px;
  z-index: 20;
}
.tab-btn {
  background: transparent;
  border: 2px solid transparent;
  color: var(--ink-soft);
  padding: 0.5em 1em;
  font-size: 0.85em;
  flex: 1 1 auto;
  justify-content: center;
}
.tab-btn:hover {
  background: var(--sky-soft);
  color: var(--sky-deep);
  transform: none;
  box-shadow: none;
}
.tab-btn.active {
  background: linear-gradient(135deg, var(--sky), var(--sky-deep));
  color: white;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.28);
}
.tab-btn.active:hover {
  background: linear-gradient(135deg, var(--sky), var(--sky-deep));
  color: white;
}

/* ---------- Mobile ---------- */

@media (max-width: 720px) {
  html, body { font-size: 16px; }
  main { padding: 1.6em 1em 3em; }
  header.site { padding: 0.55em 0.9em; }
  header.site .wrap { gap: 0.6em; }
  header.site .brand { font-size: 1.05em; }
  header.site .brand::before { width: 24px; height: 24px; }
  header.site nav { width: 100%; margin-left: 0; }
  header.site nav a { font-size: 0.8em; padding: 0.4em 0.7em; }
  .filters > * { flex: 1 1 100%; }
  .feast-week-nav { flex-wrap: wrap; }
  .feast-week-nav .week-label { order: -1; flex: 1 0 100%; margin-bottom: 0.3em; }
  .tab-bar {
    position: static;
    border-radius: var(--radius-lg);
    flex-direction: row;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }
  .tab-bar::-webkit-scrollbar { display: none; }
  .tab-btn { flex: 0 0 auto; }
}

/* Safe area for iOS notch */
@supports (padding: env(safe-area-inset-top)) {
  header.site { padding-top: calc(0.7em + env(safe-area-inset-top)); }
  footer.site { padding-bottom: calc(1.6em + env(safe-area-inset-bottom)); }
}

/* ============================================================
   LAUNCHER (index.html — the home grid)
   ============================================================ */

body.launcher {
  /* uses base body background */
}

.launcher-hero {
  padding: 1.1em 1.2em 0;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}
.launcher-hero .hero-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #EAF4FB 0%, #FCF3E2 52%, #FCE9D4 100%);
  border-radius: var(--radius-lg);
  padding: 1.2em 1.4em;
  box-shadow: 0 1px 2px rgba(40,30,20,0.05), 0 12px 34px rgba(210,150,70,0.14);
  position: relative;
  overflow: hidden;
}
.launcher-hero .hero-wrap::before {
  content: "";
  position: absolute; inset: 0;
  padding: 1.5px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--sky) 0%, #F4B82A 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none; opacity: 0.5;
}
.hero-brand {
  display: flex;
  align-items: center;
  gap: 0.9em;
  margin-bottom: 0;
}
.hero-brand .brand-icon {
  width: 62px;
  height: 62px;
  border-radius: 15px;
  box-shadow: 0 3px 12px rgba(40, 30, 20, 0.18);
  flex-shrink: 0;
}
.hero-brand h1 {
  font-size: clamp(1.7rem, 4.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--ink);
}
.hero-lede {
  margin: 0.15em 0 0;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: var(--ink-mute);
  line-height: 1.4;
  font-weight: 500;
}
.age-pill {
  flex-shrink: 0;
  padding: 0.5em 1em;
  background: white;
  border-radius: 999px;
  font-size: 0.72em;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  cursor: default;
}
.age-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.5px;
  border-radius: 999px;
  background: var(--grad-warm);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.launcher-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1em 1.4em 4em;
  width: 100%;
}

.tile-section {
  margin-bottom: 2em;
}
.tile-section-title {
  font-size: clamp(1.4rem, 3.4vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 1.6em 0 0.2em;
}
.tile-section-sub {
  margin: 0 0 1.1em;
  color: var(--ink-mute);
  font-size: 0.95em;
  font-weight: 500;
}

.tile-grid {
  display: grid;
  gap: 1em;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.tile {
  position: relative;
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.3em 1.3em 1.4em;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0.85em;
  box-shadow: 0 1px 2px rgba(40, 30, 20, 0.05), 0 10px 30px rgba(40, 30, 20, 0.08);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  border-bottom: none;
  min-height: 210px;
}
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--c) 0%, var(--cd) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.85;
}
.tile:hover {
  transform: translateY(-3px);
  box-shadow:
    0 2px 4px rgba(40, 30, 20, 0.06),
    0 20px 44px rgba(40, 30, 20, 0.12);
}
.tile:hover::before { opacity: 1; }
.tile:hover .tile-icon-wrap {
  transform: scale(1.04);
}
.tile:active { transform: scale(0.985); }
.tile-icon-wrap {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--c), var(--cd));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 2px 8px rgba(40, 30, 20, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.18s ease;
  overflow: hidden;
}
.tile-icon-wrap::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 55%;
  background: linear-gradient(180deg, rgba(255,255,255,0.22) 0%, transparent 100%);
  pointer-events: none;
}
.tile-icon {
  position: relative;
  z-index: 2;
  width: 36px;
  height: 36px;
  color: white;
}

/* "For today" — daily feed of do-it-now cards (launcher hook) */
.daily-feed { margin-bottom: 1.5em; }
.daily-feed[hidden] { display: none; }
.daily-lead {
  font-family: var(--serif); font-weight: 800; font-size: 1.06em; color: var(--ink);
  letter-spacing: -0.01em; margin: 0 0 0.7em 0.15em;
}
/* "This week" — the gentle arc through the traditions, one world at a time */
.week-banner {
  display: block; text-decoration: none; border-bottom: none;
  background: var(--wcs, #EAF4FB); border: 1px solid var(--rule);
  border-left: 4px solid var(--wc, var(--sky));
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: 0.95em 1.3em 1.05em; margin-bottom: 1.1em;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.week-banner:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-bottom: none; }
.week-banner[hidden] { display: none; }
.week-kicker { display: block; font-size: 0.72em; font-weight: 800; text-transform: uppercase; letter-spacing: 0.09em; color: var(--wc, var(--sky-deep)); margin-bottom: 0.18em; }
.week-title { display: block; font-family: var(--serif); font-weight: 800; font-size: 1.24em; letter-spacing: -0.02em; color: var(--wcd, var(--ink)); line-height: 1.2; }
.week-invite { display: block; color: var(--ink-soft); font-size: 0.94em; line-height: 1.45; margin-top: 0.3em; }
.week-go { display: inline-block; margin-top: 0.6em; font-size: 0.8em; font-weight: 700; color: var(--wc, var(--sky-deep)); }
.daily-card {
  position: relative; background: var(--paper-card);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: 1.0em 1.2em 1.05em 1.3em; margin-bottom: 0.85em; overflow: hidden;
  border: 1px solid var(--rule); border-left: 4px solid var(--dc, var(--sky));
}
.daily-card[hidden] { display: none; }
.daily-kicker { font-size: 0.76em; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--dc, var(--sky-deep)); margin-bottom: 0.4em; }
.daily-title { font-family: var(--serif); font-weight: 800; font-size: 1.18em; color: var(--ink); letter-spacing: -0.02em; margin-bottom: 0.28em; line-height: 1.22; }
.daily-body { color: var(--ink-soft); font-size: 0.96em; line-height: 1.5; margin-bottom: 0.7em; }
.daily-card.ponder .daily-body { font-size: 0.98em; line-height: 1.58; color: var(--ink); margin-bottom: 0.6em; }
.daily-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 0.9em; }
.daily-src { font-weight: 700; font-size: 0.82em; color: var(--dc, var(--sky-deep)); border-bottom: none; }
.daily-src.no-link { pointer-events: none; color: var(--ink-mute); font-weight: 600; font-style: italic; }
.daily-more {
  flex-shrink: 0; background: none; border: none; padding: 0; cursor: pointer;
  font-family: var(--sans); font-size: 0.78em; font-weight: 700; color: var(--ink-mute);
  display: inline-flex; align-items: center; gap: 0.35em; transition: color 0.15s ease;
}
.daily-more::before { display: none; } /* kill the global gradient-outline pill */
.daily-more span { display: inline-block; font-size: 1.15em; transition: transform 0.5s cubic-bezier(0.34,1.56,0.64,1); }
.daily-more:hover { color: var(--dc, var(--ink)); }
.daily-more:hover span { transform: rotate(180deg); }

/* Schools banner (launcher) */
.schools-banner {
  display: flex; align-items: center; gap: 1em;
  background: var(--grad-sky); color: #fff; text-decoration: none; border-bottom: none;
  border-radius: var(--radius-lg); padding: 1.15em 1.35em; margin-bottom: 1.7em;
  box-shadow: 0 2px 4px rgba(20,35,60,.10), 0 12px 30px rgba(46,132,189,.24);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.schools-banner:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(20,35,60,.12), 0 18px 40px rgba(46,132,189,.30); border-bottom: none; color: #fff; }
.schools-banner .sb-icon { font-size: 2em; flex-shrink: 0; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.2)); }
.schools-banner .sb-body { flex: 1; }
.schools-banner .sb-title { font-family: var(--serif); font-weight: 800; font-size: 1.2em; letter-spacing: -0.02em; }
.schools-banner .sb-sub { font-size: 0.9em; opacity: 0.94; line-height: 1.4; margin-top: 0.15em; }
.schools-banner .sb-go { font-size: 1.5em; font-weight: 800; opacity: 0.9; flex-shrink: 0; }

/* Intro — collapsible so the home stays uncluttered for returning users */
.intro-collapse {
  background: var(--paper-card); border: 1px solid var(--rule);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  margin-bottom: 1.7em; overflow: hidden;
}
.intro-collapse > summary {
  list-style: none; cursor: pointer; padding: 0.9em 1.4em;
  font-weight: 700; color: var(--ink-soft); font-size: 0.95em;
  display: flex; align-items: center; gap: 0.5em;
}
.intro-collapse > summary::-webkit-details-marker { display: none; }
.intro-collapse .ic-q { color: var(--sky-deep); font-weight: 800; }
.intro-collapse .ic-chev { margin-left: auto; transition: transform 0.2s ease; color: var(--ink-mute); }
.intro-collapse[open] .ic-chev { transform: rotate(180deg); }
.intro-collapse-body { padding: 0.1em 1.5em 1.4em; }

/* Intro card (legacy) */
.intro-card {
  background: var(--paper-card); border: 1px solid var(--rule);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: 1.4em 1.5em; margin-bottom: 1.7em;
}
.intro-welcome { font-size: 1.16em; color: var(--ink); margin: 0 0 0.55em; line-height: 1.4; font-weight: 700; letter-spacing: -0.01em; }
.intro-welcome strong { color: var(--sky-deep); }
.intro-lead { font-size: 1.0em; color: var(--ink-soft); margin: 0 0 1.15em; line-height: 1.5; }
.intro-lead strong { color: var(--ink); font-weight: 700; }
.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1em; }
.how-step { display: flex; gap: 0.65em; align-items: flex-start; }
.how-n {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--grad-sky); color: #fff; font-weight: 800;
  display: grid; place-items: center; font-size: 0.95em; box-shadow: var(--shadow-sm);
}
.how-step b { display: block; color: var(--ink); font-size: 0.95em; font-weight: 700; }
.how-step div span { color: var(--ink-mute); font-size: 0.82em; line-height: 1.35; }
@media (max-width: 640px) { .how-steps { grid-template-columns: 1fr; gap: 0.7em; } }

/* Tile with photo header (tradition tiles) */
.tile.has-photo { padding: 0 0 1.35em; gap: 0; overflow: hidden; }
.tile.has-photo .tile-photo { position: relative; height: 132px; }
.tile.has-photo .tile-photo > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile.has-photo .tile-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(20,35,60,0.22) 100%);
}
.tile.has-photo .tile-icon-wrap {
  position: absolute; bottom: -20px; left: 16px; width: 46px; height: 46px;
  border-radius: 13px; border: 2px solid #fff; box-shadow: 0 3px 10px rgba(20,35,60,0.20); z-index: 3;
}
.tile.has-photo .tile-icon { width: 26px; height: 26px; }
.tile.has-photo .tile-body { padding: 0 1.3em; margin-top: 28px; gap: 0.25em; }

/* Row-card list (Days Out style) — squarish image left, copy right.
   Used for the traditions list; scans like an editorial feed on a phone. */
.tile-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85em;
}
@media (min-width: 760px) { .tile-list { grid-template-columns: 1fr 1fr; } }

.tile-list .tile {
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  padding: 0;
  min-height: 118px;
  overflow: hidden;
}
/* photo row: image on the left */
.tile-list .tile.has-photo { padding: 0; }
.tile-list .tile.has-photo .tile-photo {
  width: 40%;
  min-width: 118px;
  max-width: 210px;
  height: auto;
  align-self: stretch;
  flex-shrink: 0;
}
.tile-list .tile.has-photo .tile-photo > img { height: 100%; }
.tile-list .tile.has-photo .tile-photo::after {
  background: linear-gradient(90deg, transparent 60%, rgba(20,35,60,0.12) 100%);
}
.tile-list .tile.has-photo .tile-icon-wrap {
  top: auto; bottom: 8px; left: 8px; width: 34px; height: 34px; border-radius: 10px; border-width: 2px;
}
.tile-list .tile.has-photo .tile-icon { width: 20px; height: 20px; }
.tile-list .tile.has-photo .tile-body {
  padding: 0.85em 1.05em;
  margin-top: 0;
  justify-content: center;
  gap: 0.28em;
}
/* icon-only row (no photo): a full-height gradient panel on the left with the
   icon, so it lines up with the photo rows and the list stays uniform */
.tile-list .tile:not(.has-photo) { padding: 0; gap: 0; align-items: stretch; }
.tile-list .tile:not(.has-photo) .tile-icon-wrap {
  width: 40%; min-width: 118px; max-width: 210px; height: auto;
  align-self: stretch; border-radius: 0; box-shadow: none; flex-shrink: 0;
}
.tile-list .tile:not(.has-photo) .tile-icon { width: 42px; height: 42px; }
.tile-list .tile:not(.has-photo) .tile-body {
  padding: 0.85em 1.05em; margin-top: 0; justify-content: center; gap: 0.28em;
}
.tile-list .tile-name { font-size: 1.1em; }
.tile-list .tile-tagline { font-size: 0.85em; }
.tile-list .tile-era { margin-top: 0.35em; }
.tile-list .tile-badge { top: 0.6em; right: 0.6em; }

/* Reusable editorial page cover-hero (Days Out article style) — a banner image
   with the title + tagline on it, then the page's intro below. Set --hc/--hcd
   per page for the gradient (used as a fallback when there's no image). */
.page-hero { margin: 0.2em 0 1.5em; }
.page-cover {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 188px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(135deg, var(--hc, var(--sky)), var(--hcd, var(--sky-deep)));
  box-shadow: 0 2px 6px rgba(20,35,60,0.10), 0 18px 44px rgba(20,35,60,0.16);
}
.page-cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-cover-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,25,45,0.05) 0%, rgba(15,25,45,0.16) 42%, rgba(15,25,45,0.74) 100%);
}
.page-cover.no-img .page-cover-veil { background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.16)); }
.page-cover-text { position: relative; z-index: 2; padding: 1.5em 1.35em 1.3em; width: 100%; color: #fff; }
.page-eyebrow {
  font-family: var(--sans); font-size: 0.7em; letter-spacing: 0.13em; text-transform: uppercase;
  font-weight: 800; color: rgba(255,255,255,0.9); margin-bottom: 0.45em; text-shadow: 0 1px 4px rgba(0,0,0,0.35);
}
.page-cover-text h1 {
  color: #fff; margin: 0 0 0.28em; font-size: clamp(1.8rem, 5.6vw, 2.5rem);
  letter-spacing: -0.03em; line-height: 1.07; text-shadow: 0 2px 12px rgba(0,0,0,0.42);
}
.page-tagline {
  color: rgba(255,255,255,0.96); margin: 0; font-weight: 600; font-size: 1.02em;
  line-height: 1.4; text-shadow: 0 1px 8px rgba(0,0,0,0.42);
}
.page-intro { font-size: 1.06em; color: var(--ink-soft); line-height: 1.6; margin: 0 0 1.5em; }

/* Home cover — the app's front-cover hero (photo + brand + tagline) */
.launcher-hero { padding: 1.1em 1.4em 0; }
.launcher-hero .home-cover { min-height: 244px; }
.home-brand-row { display: flex; align-items: center; gap: 0.6em; margin-bottom: 0.55em; }
.home-brand-icon {
  width: 42px; height: 42px; border-radius: 11px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.35); flex-shrink: 0;
}
.home-brand-row .page-eyebrow { margin-bottom: 0; }
.home-cover .age-pill {
  position: absolute; top: 12px; right: 12px; z-index: 3; margin: 0;
  background: rgba(255,255,255,0.92); color: var(--ink);
  padding: 0.35em 0.85em; border-radius: 999px; font-size: 0.72rem; font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18); backdrop-filter: blur(2px);
}
.home-cover .age-pill::before { display: none; }

/* ── Article mode ──────────────────────────────────────────────────────────
   Narrow single column + flowing, flatter sections so a category page reads
   like one complete Days-Out-style article, not a stack of floating cards. */
.launcher-main.article { max-width: 720px; }
.article .page-hero { margin-bottom: 1.5em; }
.article .page-cover { min-height: 340px; }
.article .page-intro {
  font-size: 1.24em; line-height: 1.6; color: var(--ink); font-weight: 500;
  margin-bottom: 1.5em;
}

/* De-card: content blocks become flowing article sections (Days Out style) —
   plain headings + text on the page, not a stack of bordered boxes. */
.article .card {
  background: transparent; border: none; box-shadow: none;
  border-radius: 0; padding: 0; margin: 0 0 1.6em;
}
.article .card:hover { box-shadow: none; transform: none; }
.article .card h3 {
  font-family: var(--serif); font-size: 1.34em; font-weight: 800;
  letter-spacing: -0.02em; color: var(--ink); margin: 0 0 0.4em; line-height: 1.2;
}
.article .card > p { color: var(--ink-soft); }
/* strip the page-specific left-border card variants so they flow too */
.article .p-card, .article .country-card, .article .topic-card,
.article .app-card, .article .book-card, .article .show-card {
  border-left: none; padding-left: 0;
}
.article h2.tile-section-title { margin: 1.9em 0 0.5em; font-size: 1.5em; }

/* The one highlight that carries the point — a clean green left-accent callout,
   the Days Out ".access" convention. Replaces the boxed look in article flow. */
.article .why {
  background: var(--paper-surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  border-left: 4px solid var(--mint);
  padding: 0.85em 1.1em; margin-top: 0.7em;
  color: var(--ink-soft);
}
.article .why::after { display: none; }

/* Pull-quote — the highlighted copywriting that carries the point */
.pullquote {
  margin: 1.6em 0;
  padding: 0.15em 0 0.15em 1.1em;
  border-left: 4px solid var(--hc, var(--sky));
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.34em;
  line-height: 1.34;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.pullquote span { color: var(--hcd, var(--sky-deep)); }

/* In-body article image with optional caption — images throughout, not just the hero */
.article-figure { margin: 1.7em 0; }
.article-figure img { width: 100%; border-radius: var(--radius-md); display: block; box-shadow: var(--shadow-sm); }
.article-figure figcaption { font-size: 0.85em; color: var(--ink-mute); margin-top: 0.55em; text-align: center; }

/* Home daily feed — flatten so it reads as one "For today" group, not blocks */
.daily-feed .daily-card { box-shadow: none; }
.daily-feed .week-banner { box-shadow: none; }

.tile-body { display: flex; flex-direction: column; gap: 0.25em; flex: 1; margin-top: 0.1em; }
.tile-name {
  font-weight: 800;
  font-size: 1.15em;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.tile-tagline {
  font-size: 0.86em;
  color: var(--ink-mute);
  line-height: 1.4;
  font-weight: 500;
}
.tile-era {
  font-size: 0.7em;
  letter-spacing: 0.08em;
  color: var(--cd);
  text-transform: uppercase;
  font-weight: 800;
  margin-top: auto;
}

.tile-badge {
  position: absolute;
  top: 0.85em;
  right: 0.85em;
  z-index: 3;
  background: white;
  color: var(--ink-soft);
  padding: 0.25em 0.7em;
  border-radius: 999px;
  font-size: 0.63em;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.why-banner {
  margin-top: 1.8em;
}
.why-link {
  display: flex;
  align-items: center;
  gap: 0.9em;
  background: white;
  border-radius: var(--radius-lg);
  padding: 1em 1.4em;
  box-shadow: 0 1px 2px rgba(40, 30, 20, 0.05), 0 10px 28px rgba(40, 30, 20, 0.07);
  text-decoration: none;
  color: var(--ink);
  border-bottom: none;
  position: relative;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.why-link::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: var(--radius-lg);
  background: var(--grad-warm);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.85;
}
.why-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(40, 30, 20, 0.08), 0 20px 44px rgba(40, 30, 20, 0.12);
}
.why-link:hover::before { opacity: 1; }
.why-mark {
  display: inline-block;
  font-size: 0.7em;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: white;
  background: var(--grad-warm);
  padding: 0.32em 0.75em;
  border-radius: 999px;
  flex-shrink: 0;
}
.why-text {
  flex: 1;
  font-size: 0.94em;
  color: var(--ink-soft);
  font-weight: 500;
}
.why-arrow {
  font-size: 1.25em;
  color: var(--sun-hot);
  font-weight: 800;
}

.launcher-footer {
  text-align: center;
  padding: 1.4em 1em calc(1.4em + env(safe-area-inset-bottom, 0px));
  color: var(--ink-mute);
  font-size: 0.85em;
  font-family: var(--sans);
}

/* ============================================================
   METHODOLOGY PAGE (methodology.html?id=...)
   ============================================================ */

.home-link {
  position: fixed;
  top: calc(0.8em + env(safe-area-inset-top, 0px));
  left: 0.8em;
  z-index: 9999;
  background: white;
  color: var(--ink);
  padding: 0.45em 0.95em;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.82em;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid var(--rule);
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
}
.home-link:hover {
  border-color: var(--m-color, var(--sky));
  color: var(--m-deep, var(--sky-deep));
  box-shadow: var(--shadow-md);
}

/* Home button, top-right — appears in sub-sections so the top-left slot is "back" */
.home-corner {
  position: fixed;
  top: calc(0.8em + env(safe-area-inset-top, 0px));
  right: 0.8em;
  z-index: 9999;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1.5px solid var(--rule);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  font-size: 1.1em;
  line-height: 1;
  transition: all 0.15s ease;
}
.home-corner[hidden] { display: none; }
.home-corner { color: var(--ink); }
.home-corner svg { width: 19px; height: 19px; }
.home-corner:hover { border-color: var(--m-color, var(--sky)); color: var(--m-deep, var(--sky-deep)); box-shadow: var(--shadow-md); }

body.method-page {
  background:
    radial-gradient(ellipse 1200px 500px at 50% -100px, var(--m-soft, var(--sky-soft)) 0%, transparent 65%),
    var(--paper);
  background-attachment: fixed;
}

.method-main {
  max-width: 880px;
  margin: 0 auto;
  padding: 4em 1.4em 4em;
}

.method-hero {
  text-align: center;
  margin-bottom: 2em;
}
.method-hero-eyebrow {
  font-family: var(--sans);
  font-size: 0.78em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--m-deep, var(--sky-deep));
  margin-bottom: 0.5em;
}
.method-hero h1 {
  font-size: clamp(2.2rem, 6vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 0.3em;
}
.method-tagline {
  font-size: 1.05em;
  color: var(--ink-mute);
  margin: 0 0 1.2em;
  font-weight: 500;
}
.method-blurb {
  font-size: 1.05em;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto;
}

/* Editorial cover hero (Days Out article style) — image with the title and
   tagline sitting on it, then the blurb below. Pulls you into the page. */
.method-hero.editorial { text-align: left; margin-bottom: 2.2em; }
.method-cover {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 210px;
  display: flex;
  align-items: flex-end;
  margin-bottom: 1.35em;
  background: linear-gradient(135deg, var(--m-color, var(--sky)), var(--m-deep, var(--sky-deep)));
  box-shadow: 0 2px 6px rgba(20,35,60,0.10), 0 18px 44px rgba(20,35,60,0.16);
}
.method-cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.method-cover-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,25,45,0.04) 0%, rgba(15,25,45,0.14) 42%, rgba(15,25,45,0.74) 100%);
}
.method-cover.no-img .method-cover-veil { background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.16)); }
.method-cover-text { position: relative; z-index: 2; padding: 1.6em 1.4em 1.35em; width: 100%; }
.method-cover-text .method-hero-eyebrow {
  color: rgba(255,255,255,0.92);
  margin-bottom: 0.45em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.35);
}
.method-cover-text h1 {
  color: #fff;
  margin: 0 0 0.28em;
  font-size: clamp(1.9rem, 6vw, 2.8rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.method-cover-text .method-tagline {
  color: rgba(255,255,255,0.96);
  margin: 0;
  font-weight: 600;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}
.method-hero.editorial .method-blurb {
  margin: 0;
  max-width: 700px;
  font-size: 1.09em;
  color: var(--ink-soft);
}

.method-borrows {
  display: grid;
  gap: 1em;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-bottom: 2.4em;
}
.borrow-card {
  background: white;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--m-color, var(--sky));
  border-radius: var(--radius-md);
  padding: 1.1em 1.3em;
  box-shadow: var(--shadow-sm);
}
.borrow-card h3 {
  margin: 0 0 0.4em;
  color: var(--m-deep, var(--sky-deep));
  font-size: 0.9em;
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.borrow-card p { margin: 0; color: var(--ink); font-size: 0.96em; }

.sub-tile-section h2 {
  text-align: center;
  margin-bottom: 1.2em;
}
.sub-tile-section h2::after { left: 50%; transform: translateX(-50%); }

.sub-tile-grid {
  display: grid;
  gap: 1em;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.sub-tile {
  position: relative;
  background: white;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 1.3em 1.2em;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0.7em;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  border-bottom: 1px solid var(--rule);
  text-align: left;
}
.sub-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--m-color, var(--sky));
}
.sub-tile-stub {
  opacity: 0.55;
  cursor: default;
}
.sub-tile-stub:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
  border-color: var(--rule);
}
.sub-tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--m-soft, var(--sky-soft));
  color: var(--m-deep, var(--sky-deep));
  display: flex;
  align-items: center;
  justify-content: center;
}
.sub-tile-icon svg { width: 28px; height: 28px; }
.sub-tile-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.08em;
  color: var(--ink);
}
.sub-tile-tag {
  font-family: var(--sans);
  font-size: 0.83em;
  color: var(--ink-soft);
  line-height: 1.4;
}

/* Sub-section page bodies */

.sub-back {
  margin-bottom: 1.2em;
  font-family: var(--sans);
  font-size: 0.88em;
}
.sub-back a {
  color: var(--m-deep, var(--sky-deep));
  border: none;
  font-weight: 600;
}
.sub-hero {
  margin-bottom: 1.6em;
}
.sub-hero-eyebrow {
  font-family: var(--sans);
  font-size: 0.78em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--m-deep, var(--sky-deep));
  margin-bottom: 0.4em;
}
.sub-hero h1 {
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.principle-card {
  position: relative;
  padding-left: 4em;
}
.principle-num {
  position: absolute;
  top: 1.2em;
  left: 1.2em;
  width: 2em;
  height: 2em;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--m-color, var(--sky)), var(--m-deep, var(--sky-deep)));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1em;
  flex-shrink: 0;
}
.principle-card h3 { margin-top: 0; color: var(--m-deep, var(--sky-deep)); }

.day-timeline {
  position: relative;
  margin: 1.4em 0;
  padding-left: 5em;
}
.day-timeline::before {
  content: "";
  position: absolute;
  left: 3.5em;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--m-soft, var(--sky-soft));
}
.day-block {
  position: relative;
  margin-bottom: 1.4em;
}
.day-block::before {
  content: "";
  position: absolute;
  left: -1.65em;
  top: 0.5em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--m-color, var(--sky)), var(--m-deep, var(--sky-deep)));
  box-shadow: 0 0 0 3px white, 0 0 0 4px var(--m-soft, var(--sky-soft));
}
.day-time {
  position: absolute;
  left: -5em;
  top: 0.4em;
  width: 3em;
  text-align: right;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.85em;
  color: var(--m-deep, var(--sky-deep));
}
.day-content {
  background: white;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 0.9em 1.1em;
  box-shadow: var(--shadow-sm);
}
.day-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.05em;
  color: var(--ink);
  margin-bottom: 0.3em;
}
.day-body { color: var(--ink-soft); font-size: 0.95em; line-height: 1.55; }

.activity-grid {
  display: grid;
  gap: 0.9em;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin: 1.2em 0;
}
.activity-card {
  position: relative;
  background: white;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 1em 1.1em 1em 3.4em;
  box-shadow: var(--shadow-sm);
}
.activity-num {
  position: absolute;
  top: 1em;
  left: 0.85em;
  width: 1.9em;
  height: 1.9em;
  border-radius: 50%;
  background: var(--m-soft, var(--sky-soft));
  color: var(--m-deep, var(--sky-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 0.85em;
}
.activity-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1em;
  color: var(--ink);
  margin-bottom: 0.3em;
}
.activity-body { color: var(--ink-soft); font-size: 0.92em; line-height: 1.5; }

.book-list { padding-left: 1.2em; }
.book-list li { margin-bottom: 0.9em; line-height: 1.5; }
.book-note { color: var(--ink-soft); font-size: 0.92em; }

/* Method-page mobile */

@media (max-width: 720px) {
  .method-main { padding-top: 3.6em; }
  .day-timeline { padding-left: 4em; }
  .day-time { left: -4em; }
  .hero-brand { flex-direction: column; text-align: center; }
}

/* Version pill — small, unobtrusive, bottom-right */
.version-pill {
  position: fixed;
  bottom: calc(0.6em + env(safe-area-inset-bottom, 0px));
  right: 0.6em;
  z-index: 9998;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--ink-mute);
  padding: 0.18em 0.55em;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.68em;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid var(--rule);
  opacity: 0.7;
  pointer-events: none;
}

/* ============================================================
   FEAST — simple one-week view
   ============================================================ */

.feast-hero {
  margin-bottom: 1.4em;
}
.feast-hero-eyebrow {
  margin-bottom: 0.5em;
}
.feast-hero-eyebrow #week-pill {
  display: inline-block;
  background: var(--grad-warm);
  color: white;
  padding: 0.3em 0.9em;
  border-radius: 999px;
  font-size: 0.72em;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.feast-nav {
  display: flex;
  gap: 0.6em;
  margin-top: 2em;
  justify-content: space-between;
  flex-wrap: wrap;
}
.feast-nav button { flex: 1 1 auto; justify-content: center; }

.virtue-card {
  background: white;
  padding: 1.2em 1.4em;
  border-radius: var(--radius-lg);
  position: relative;
  margin-bottom: 1.4em;
  box-shadow: var(--shadow-sm);
}
.virtue-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: var(--radius-lg);
  background: var(--grad-sun);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.virtue-eyebrow {
  font-size: 0.72em;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sun-hot);
  margin-bottom: 0.3em;
}
.virtue-name {
  font-size: 1.4em;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 0.4em;
}
.virtue-card p { margin: 0; color: var(--ink-soft); }

/* ============================================================
   READ ALOUD BUTTON
   ============================================================ */

.read-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: white;
  color: var(--ink);
  border: none;
  font-family: var(--sans);
  font-size: 0.85em;
  font-weight: 700;
  padding: 0.55em 1.1em;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  transition: transform 0.12s ease;
}
.read-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: 999px;
  background: var(--grad-fresh);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.read-btn:active { transform: scale(0.96); }
.read-btn.reading {
  background: var(--grad-fresh);
  color: white;
}
.read-btn.reading::before { display: none; }

/* ============================================================
   RANDOM ACTIVITY PAGE
   ============================================================ */

body.random-page {
  background:
    radial-gradient(900px 500px at -10% -20%, rgba(124, 58, 237, 0.20), transparent 60%),
    radial-gradient(900px 500px at 110% -10%, rgba(255, 159, 61, 0.18), transparent 60%),
    var(--paper);
}
.random-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 4em 1.4em 4em;
}
.random-hero {
  text-align: center;
  margin-bottom: 2em;
}
.random-eyebrow {
  font-size: 0.78em;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sun-hot);
  margin-bottom: 0.5em;
}
.random-hero h1 {
  font-size: clamp(2rem, 5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 0.6em;
}
.random-hero .lede {
  font-size: 1em;
  color: var(--ink-mute);
  font-style: normal;
}

.random-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.8em;
  position: relative;
  box-shadow: 0 4px 12px rgba(40, 30, 20, 0.06), 0 24px 56px rgba(40, 30, 20, 0.10);
  margin-bottom: 1.6em;
  animation: cardIn 0.32s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.random-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 3px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--c), var(--cd));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(8px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.random-card-eyebrow {
  font-size: 0.72em;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cd);
  margin-bottom: 0.7em;
}
.random-card-name {
  font-size: clamp(1.4rem, 3.8vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 0.6em;
}
.random-card-body {
  font-size: 1.05em;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0 0 1.4em;
}
.random-card-link {
  display: inline-block;
  color: var(--cd);
  font-weight: 700;
  border-bottom: none;
  font-size: 0.95em;
}
.random-card-link:hover { color: var(--c); }

.random-actions {
  text-align: center;
}
.random-actions button {
  font-size: 1em;
  padding: 0.85em 1.6em;
}

/* ─────────────────────────────────────────────────────────────
   Category-page template — shared building blocks.
   A page sets --hc / --hcd / --hcs (theme colour, deep, soft) on
   its <main> and gets: a collapsible "why" (.explain), grouped
   section headers (.res-head), and a clean resource list (.shelf).
   ───────────────────────────────────────────────────────────── */
.explain { background: var(--paper-card); border: 1px solid var(--rule); border-left: 4px solid var(--hc); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); margin: 0 0 1.7em; overflow: hidden; }
.explain > summary { list-style: none; cursor: pointer; padding: 0.95em 1.2em; display: flex; align-items: center; gap: 0.55em; font-family: var(--sans); font-weight: 800; color: var(--ink); font-size: 0.98em; }
.explain > summary::-webkit-details-marker { display: none; }
.explain .ex-ic { font-size: 1.1em; }
.explain .ex-chev { margin-left: auto; color: var(--hcd); transition: transform 0.2s ease; font-size: 0.85em; }
.explain[open] .ex-chev { transform: rotate(180deg); }
.explain-body { padding: 0.1em 1.3em 1.25em; }
.explain-body p { margin: 0 0 0.8em; color: var(--ink-soft); line-height: 1.62; }
.explain-body p:last-child { margin: 0; }
.explain-body strong { color: var(--ink); }

.res-head { display: flex; align-items: baseline; gap: 0.55em; margin: 1.8em 0 0.3em; }
.res-head h2 { font-family: var(--serif); font-weight: 800; font-size: 1.18rem; color: var(--ink); margin: 0; letter-spacing: -0.01em; }
.res-head .res-count { font-family: var(--sans); font-size: 0.72rem; font-weight: 800; color: var(--hcd); background: var(--hcs); padding: 0.28em 0.62em; border-radius: var(--radius-pill); }
.res-note { font-size: 0.9em; color: var(--ink-mute); font-style: italic; margin: 0.2em 0 1em 0.1em; }

.shelf { display: flex; flex-direction: column; gap: 0.6em; }
.shelf-item { position: relative; display: flex; align-items: stretch; background: var(--paper-card); border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.15s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.15s ease; }
.shelf-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md, 0 8px 20px rgba(20,35,60,.12)); }
.shelf-item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--hc), var(--hcd)); z-index: 1; }
.shelf-ic { flex: none; width: 58px; display: grid; place-items: center; background: var(--hcs); font-size: 1.55rem; }
.shelf-body { flex: 1; min-width: 0; padding: 0.78em 0.95em 0.82em; }
.shelf-body h3 { font-family: var(--serif); font-weight: 800; font-size: 1.04rem; color: var(--ink); margin: 0; line-height: 1.22; }
.shelf-by { font-family: var(--sans); font-size: 0.8em; color: var(--ink-mute); margin: 0.12em 0 0.4em; }
.shelf-desc { font-size: 0.91em; color: var(--ink-soft); line-height: 1.42; margin: 0; }
.shelf-tag { display: inline-block; font-family: var(--sans); font-size: 0.55rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hcd); background: var(--hcs); padding: 0.26em 0.55em; border-radius: var(--radius-pill); margin-left: 0.4em; vertical-align: middle; }
.shelf-tag.alt { color: #1B7A4A; background: #DCF3E7; }

/* ── This week · The Path ─────────────────────────────────────────────────
   One continuous 52-week rhythm every family shares, whichever tradition
   they lean toward. Sits between "For today" and the traditions: today,
   this week, the whole picture. */
.week-card { position: relative; display: block; margin: 0 0 1.15em; padding: 1.05em 1.15em 1em; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--paper-card) 0%, var(--sky-soft-bg) 100%); box-shadow: var(--shadow-md); text-decoration: none; color: var(--ink); transition: transform 0.24s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.24s ease; }
.week-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; background: linear-gradient(135deg, var(--sky) 0%, var(--sun) 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.week-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.week-card:active { transform: scale(0.985); }

.wk-top { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5em; margin-bottom: 0.55em; }
.wk-pill { font-family: var(--sans); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, var(--sky), var(--sky-deep)); padding: 0.34em 0.72em; border-radius: var(--radius-pill); }
.wk-virtue { font-family: var(--sans); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sun-deep); background: var(--sun-soft); padding: 0.34em 0.72em; border-radius: var(--radius-pill); }

.wk-title { display: block; font-family: var(--serif); font-weight: 800; font-size: clamp(1.22rem, 4.6vw, 1.5rem); line-height: 1.16; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 0.28em; }
.wk-sub { display: block; font-size: 0.93em; line-height: 1.45; color: var(--ink-soft); margin-bottom: 0.9em; }

.wk-items { display: flex; flex-direction: column; gap: 0.44em; margin-bottom: 0.95em; }
.wk-item { display: flex; align-items: baseline; gap: 0.6em; min-width: 0; }
.wk-kind { flex: none; font-family: var(--sans); font-size: 0.58rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--sky-deep); width: 5.6em; }
.wk-what { flex: 1; min-width: 0; font-size: 0.92em; font-weight: 600; color: var(--ink); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.wk-go { display: inline-flex; align-items: center; gap: 0.4em; font-family: var(--sans); font-weight: 800; font-size: 0.86em; color: var(--sky-deep); }
.week-card:hover .wk-go { gap: 0.62em; }

/* Drifted state — the parent has nudged off the real-time week */
.wk-back { display: block; margin: 0.5em 0 0; font-family: var(--sans); font-size: 0.78em; font-weight: 700; color: var(--ink-mute); }

/* ── A hard moment ────────────────────────────────────────────────────────
   The one place in the app for the bad hours. Order is the design: steady
   the parent, the next minute, where traditions differ, the repair, the
   honest limits. Calm and plain — no alarm colours, nothing shouting. */
.mo-hero { background: none; padding: 0; margin: 0 0 1em; }
.mo-eyebrow { font-family: var(--sans); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hcd); margin-bottom: 0.5em; }
.mo-hero h1 { font-family: var(--serif); font-weight: 800; font-size: clamp(1.75rem, 7vw, 2.4rem); line-height: 1.08; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 0.25em; }
.mo-emoji { margin-right: 0.3em; }
.mo-covers { font-family: var(--sans); font-size: 0.86em; color: var(--ink-mute); margin: 0; }

/* The line the parent reads first */
.mo-steady { position: relative; margin: 0 0 1.3em; padding: 1.05em 1.15em; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--paper-card) 0%, var(--sun-soft) 100%); box-shadow: var(--shadow-sm); }
.mo-steady::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; background: linear-gradient(135deg, var(--sun) 0%, var(--sky) 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.mo-steady p { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(1.02rem, 3.9vw, 1.15rem); line-height: 1.5; color: var(--ink); }

.mo-block { margin: 0 0 1.8em; }
.mo-h { font-family: var(--serif); font-weight: 800; font-size: clamp(1.15rem, 4.4vw, 1.4rem); color: var(--ink); margin: 0 0 0.35em; letter-spacing: -0.01em; }
.mo-lead { font-size: 0.94em; line-height: 1.5; color: var(--ink-soft); margin: 0 0 1em; }

/* The next minute — numbered, scannable under pressure */
.mo-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75em; }
.mo-step { display: flex; gap: 0.8em; align-items: flex-start; background: var(--paper-card); border: 1px solid var(--rule); border-radius: 14px; padding: 0.85em 0.95em; box-shadow: var(--shadow-sm); }
.mo-n { flex: none; width: 1.85em; height: 1.85em; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--sky), var(--sky-deep)); color: #fff; font-family: var(--sans); font-weight: 800; font-size: 0.82em; }
.mo-step-body { display: flex; flex-direction: column; gap: 0.28em; min-width: 0; }
.mo-step-body b { font-size: 1em; color: var(--ink); line-height: 1.32; }
.mo-step-body span { font-size: 0.92em; color: var(--ink-soft); line-height: 1.45; }

/* Where the traditions part company */
.mo-way { background: var(--paper-card); border: 1px solid var(--rule); border-radius: 14px; margin-bottom: 0.6em; overflow: hidden; box-shadow: var(--shadow-sm); }
.mo-way > summary { list-style: none; cursor: pointer; padding: 0.85em 0.95em; display: flex; align-items: baseline; gap: 0.5em; }
.mo-way > summary::-webkit-details-marker { display: none; }
.mo-way > summary::after { content: "+"; margin-left: auto; font-family: var(--sans); font-weight: 800; font-size: 1.15em; color: var(--ink-mute); transition: transform 0.24s cubic-bezier(0.34,1.56,0.64,1); }
.mo-way[open] > summary::after { content: "–"; transform: rotate(180deg); }
.mo-way-name { font-family: var(--serif); font-weight: 800; font-size: 1.04em; color: var(--ink); }
.mo-way-hint { font-family: var(--sans); font-size: 0.82em; color: var(--ink-mute); }
.mo-way-body { padding: 0 0.95em 0.95em; }
.mo-way-body p { font-size: 0.95em; line-height: 1.5; color: var(--ink); margin: 0 0 0.7em; }
.mo-way-body .why { font-size: 0.92em; color: var(--ink-soft); border-left: 3px solid var(--rule-strong); padding-left: 0.8em; font-style: normal; }
.mo-way-link { display: inline-block; font-family: var(--sans); font-weight: 800; font-size: 0.82em; color: var(--sky-deep); text-decoration: none; }

/* Work backwards — the lead-up. Given its own colour so it reads as a
   different KIND of thinking from the in-the-moment steps. */
.mo-leadup { padding: 1.1em 1.15em; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--paper-card) 0%, var(--leaf-soft) 100%); border: 1px solid #BFE0CF; }
.mo-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.7em; }
.mo-check { display: flex; flex-direction: column; gap: 0.18em; padding-left: 0.9em; border-left: 3px solid var(--leaf); }
.mo-check b { font-family: var(--sans); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #14663F; }
.mo-check span { font-size: 0.93em; line-height: 1.45; color: var(--ink); }
.mo-note { margin: 1em 0 0; font-size: 0.88em; font-style: italic; line-height: 1.45; color: var(--ink-soft); }

.mo-list { margin: 0; padding-left: 1.15em; display: flex; flex-direction: column; gap: 0.55em; }
.mo-list li { font-size: 0.95em; line-height: 1.5; color: var(--ink); }

/* The honest limits — quieter on purpose */
.mo-honest { padding: 1.05em 1.15em; border-radius: var(--radius-lg); background: var(--paper-surface); border: 1px solid var(--rule); }
.mo-honest .mo-h { font-size: clamp(1.02rem, 3.9vw, 1.15rem); }
.mo-honest .mo-list li { color: var(--ink-soft); font-size: 0.92em; }

/* The hub list of hard moments, on emotions.html */
.mo-hub { margin: 0 0 1.8em; }
.mo-hub-h { font-family: var(--serif); font-weight: 800; font-size: clamp(1.2rem, 4.6vw, 1.45rem); color: var(--ink); margin: 0 0 0.3em; }
.mo-hub-sub { font-size: 0.94em; line-height: 1.5; color: var(--ink-soft); margin: 0 0 1em; }
.mo-hub-list { display: flex; flex-direction: column; gap: 0.55em; }
.mo-hub-item { position: relative; display: flex; align-items: center; gap: 0.85em; padding: 0.85em 0.95em; border-radius: 14px; background: var(--paper-card); box-shadow: var(--shadow-sm); text-decoration: none; color: var(--ink); transition: transform 0.24s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.24s ease; }
.mo-hub-item::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; background: linear-gradient(135deg, #8B6FD1 0%, var(--sky) 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.mo-hub-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.mo-hub-item:active { transform: scale(0.985); }
.mo-hub-emoji { flex: none; font-size: 1.5rem; }
.mo-hub-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.15em; }
.mo-hub-body b { font-family: var(--serif); font-weight: 800; font-size: 1.02em; line-height: 1.25; }
.mo-hub-body span { font-size: 0.86em; color: var(--ink-mute); line-height: 1.35; }
.mo-hub-go { flex: none; font-weight: 800; color: var(--ink-mute); }

.mo-also { display: flex; flex-wrap: wrap; gap: 0.5em; margin: 1.6em 0 0; }
.mo-also a { font-family: var(--sans); font-weight: 700; font-size: 0.84em; color: var(--sky-deep); background: var(--sky-soft-bg); padding: 0.5em 0.9em; border-radius: var(--radius-pill); text-decoration: none; }

/* Browsing a week that isn't yours — offered, never forced */
.feast-drift { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.7em; margin: 0 0 1.1em; padding: 0.75em 0.95em; border-radius: var(--radius-md); background: var(--sun-soft); border: 1px solid #F2DFA8; font-family: var(--sans); font-size: 0.88em; font-weight: 600; color: var(--ink-soft); }
.feast-drift-acts { display: flex; gap: 0.5em; flex-wrap: wrap; }
.feast-drift button { font-size: 0.86em; padding: 0.5em 0.9em; }
