/* Mom Wanders. Manrope for display, Merriweather for body.
   Twilight indigo text on warm white. The daylight bar under the masthead
   marks the late-day window in sunset orange; lavender carries the night.
   Section openers sit inside an open doorframe with an orange threshold.
   Checklists are keyed to the time of day. No photographs, no clip art. */

:root {
  --indigo: #2C2A4A;
  --paper: #FFF8F0;
  --orange: #F28C28;
  --lavender: #907AD6;
  --slate: #4F5D75;
  --lavender-soft: #EEE9FA;
  --orange-soft: #FDEBD8;
  --day-soft: #FFF1DC;
  --rule: #E6DED3;
  --measure: 42rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--indigo);
  font-family: Merriweather, Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.75;
  font-weight: 400;
}

h1, h2, h3, h4, .brand, .eyebrow, .tag, .t, .btn, .topnav, .footnav, .callbar, .crumb, .daylight-ticks, .daylight-window span, .meta, .form-block label {
  font-family: Manrope, "Helvetica Neue", Arial, sans-serif;
}

h1 { font-size: 2rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 .8rem; }
h2 { font-size: 1.45rem; font-weight: 800; line-height: 1.2; margin: 2.2rem 0 .9rem; }
h3 { font-size: 1.12rem; font-weight: 700; line-height: 1.3; margin: 1.6rem 0 .5rem; }
p { margin: 0 0 1.15rem; }
ul, ol { padding-left: 1.3rem; margin: 0 0 1.2rem; }
li { margin-bottom: .55rem; }
a { color: var(--indigo); text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--indigo); }
strong { font-weight: 700; }
em { font-style: italic; }

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 20px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--indigo); color: #fff; padding: .5rem 1rem; }
.skip:focus { left: 8px; top: 8px; z-index: 50; }

/* ---- masthead band ------------------------------------------------------ */
.band { background: var(--indigo); color: #fff; }
.band-in { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.2rem; padding: 16px 20px 12px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: .01em; }
.brand-mark { display: inline-block; width: 18px; height: 22px; border: 3px solid #fff; border-bottom: 0; border-radius: 2px 2px 0 0; position: relative; }
.brand-mark::after { content: ""; position: absolute; left: -5px; right: -5px; bottom: -4px; height: 4px; background: var(--orange); }
.topnav { display: flex; flex-wrap: wrap; gap: .2rem .9rem; font-size: .9rem; font-weight: 700; margin-left: auto; }
.topnav a { color: #fff; text-decoration: none; opacity: .92; }
.topnav a:hover { text-decoration: underline; text-decoration-color: var(--orange); }
.topnav .nav-call { color: var(--orange); }

/* ---- the daylight bar --------------------------------------------------- */
.daylight { position: relative; padding: 18px 0 0; }
.daylight-track { height: 14px; background: linear-gradient(90deg, #2C2A4A 0%, #6E5FB0 14%, #C9B8F0 24%, #FFE9C4 33%, #FFF8F0 50%, #FFE1A8 62%, #F28C28 74%, #B085E0 86%, #2C2A4A 100%); }
.daylight-window { position: absolute; top: 0; left: 66.67%; width: 16.66%; height: 32px; border-left: 3px solid var(--orange); border-right: 3px solid var(--orange); border-top: 3px solid var(--orange); }
.daylight-window span { position: absolute; top: -1px; right: 6px; font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--orange); white-space: nowrap; }
.daylight-ticks { display: flex; justify-content: space-between; font-size: .66rem; letter-spacing: .05em; text-transform: uppercase; color: #fff; opacity: .85; padding: 4px 20px 8px; max-width: none; }
.daylight-ticks span:first-child { text-align: left; }
.daylight-ticks span:last-child { text-align: right; }

/* ---- page openers ------------------------------------------------------- */
.crumb { font-size: .82rem; font-weight: 700; color: var(--slate); margin: 1.4rem 0 .5rem; }
.crumb a { text-decoration: none; }
.eyebrow { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); margin: 0 0 .5rem; }
.hero { padding: 2rem 0 .6rem; }
.hero .lede, .dek { font-size: 1.16rem; line-height: 1.7; font-weight: 300; color: var(--slate); margin-bottom: 1.1rem; }
.art-head { padding: 1rem 0 .4rem; border-bottom: 1px solid var(--rule); margin-bottom: 1.6rem; }
.meta { font-size: .8rem; color: var(--slate); font-weight: 500; }

/* The doorframe: an open frame on the left and top, and an orange threshold at the foot. */
.door { position: relative; padding: .5rem 0 .5rem 1rem; border-left: 5px solid var(--indigo); border-top: 5px solid var(--indigo); margin-top: 2.6rem; }
.door::after { content: ""; position: absolute; left: -5px; bottom: -8px; width: 3.4rem; height: 6px; background: var(--orange); }
h3.door { border-width: 4px; padding-left: .8rem; }

.block { padding: .2rem 0 .6rem; }

/* ---- time-keyed checklists ---------------------------------------------- */
.clock { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; }
.clock li { display: grid; grid-template-columns: 4.6rem 1fr; gap: .8rem; align-items: start; padding: .7rem 0; border-top: 1px solid var(--rule); }
.clock li:last-child { border-bottom: 1px solid var(--rule); }
.clock .note { display: block; font-size: .92rem; color: var(--slate); margin-top: .15rem; }
.clock div > a { font-weight: 700; font-family: Manrope, "Helvetica Neue", Arial, sans-serif; }
.t { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: .28rem .5rem; border-radius: 4px; text-align: center; min-width: 4.4rem; margin-top: .2rem; }
.t-day { background: var(--day-soft); color: var(--indigo); }
.t-dusk { background: var(--orange); color: #fff; }
.t-night { background: var(--lavender); color: #fff; }
.t-any { background: var(--rule); color: var(--indigo); }

/* ---- panels ------------------------------------------------------------- */
.calm { background: var(--lavender-soft); border-left: 5px solid var(--lavender); padding: 1.1rem 1.2rem .3rem; margin: 1.6rem 0; border-radius: 0 6px 6px 0; }
.calm h2, .calm h3 { margin-top: 0; }
.askdoc { border: 2px solid var(--slate); padding: 1.1rem 1.2rem .3rem; margin: 1.8rem 0; border-radius: 6px; }
.askdoc h2, .askdoc h3 { margin-top: 0; color: var(--slate); }
.script { background: #fff; border: 1px solid var(--rule); border-left: 5px solid var(--orange); padding: .9rem 1.1rem .2rem; margin: 1rem 0 1.3rem; border-radius: 0 6px 6px 0; }
.script p { margin-bottom: .7rem; }
.script .say { font-family: Manrope, "Helvetica Neue", Arial, sans-serif; font-weight: 700; }
.script .why { font-size: .95rem; color: var(--slate); }

.featured { background: #fff; border: 3px solid var(--indigo); padding: 1.2rem 1.3rem .4rem; margin: 2.4rem 0; border-radius: 8px; position: relative; }
.featured::before { content: ""; position: absolute; left: -3px; right: -3px; top: -3px; height: 8px; background: var(--orange); border-radius: 8px 8px 0 0; }
.featured .featured-name { margin: .4rem 0 .6rem; font-size: 1.5rem; }
.featured .featured-name a { text-decoration-color: var(--orange); }
.tag { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--indigo); padding: .22rem .55rem; border-radius: 3px; margin: 0 0 .5rem; }
.disclosure { font-size: .9rem; line-height: 1.6; color: var(--slate); border-top: 1px dashed var(--rule); padding-top: .8rem; }
.mention { background: var(--orange-soft); border: 2px solid var(--orange); padding: 1rem 1.1rem .3rem; margin: 2rem 0; border-radius: 8px; }
.mention .tag { background: var(--orange); }
.mention .disclosure { border-top-color: rgba(44,42,74,.2); }

/* ---- the route (article index, related) --------------------------------- */
.route { list-style: none; padding: 0; margin: 1rem 0 1.4rem; }
.route li { padding: .8rem 0; border-top: 1px solid var(--rule); }
.route li:last-child { border-bottom: 1px solid var(--rule); }
.route li a { font-family: Manrope, "Helvetica Neue", Arial, sans-serif; font-weight: 700; font-size: 1.02rem; }
.route li span { display: block; font-size: .92rem; color: var(--slate); margin-top: .2rem; }

.sib { display: grid; gap: 1rem; margin: 1rem 0 1.6rem; }
.sib a.card { display: block; border: 2px solid var(--lavender); border-radius: 8px; padding: .9rem 1.1rem; text-decoration: none; background: #fff; }
.sib a.card b { display: block; font-family: Manrope, "Helvetica Neue", Arial, sans-serif; font-weight: 800; margin-bottom: .25rem; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.sib a.card span { color: var(--slate); font-size: .95rem; }

/* ---- lifelines ---------------------------------------------------------- */
.lines { list-style: none; padding: 0; margin: 1rem 0 1.6rem; }
.lines li { padding: .9rem 0; border-top: 1px solid var(--rule); }
.lines li:last-child { border-bottom: 1px solid var(--rule); }
.lines .num { display: block; font-family: Manrope, "Helvetica Neue", Arial, sans-serif; font-weight: 800; font-size: 1.15rem; margin-bottom: .2rem; }
.lines .num a { text-decoration: none; }

/* ---- sources ------------------------------------------------------------ */
.srcs { list-style: none; padding: 0; margin: 0 0 1.6rem; }
.srcs li { padding: .75rem 0; border-top: 1px solid var(--rule); font-size: .96rem; }
.srcs li:last-child { border-bottom: 1px solid var(--rule); }
.srcs .who { font-family: Manrope, "Helvetica Neue", Arial, sans-serif; font-weight: 700; }
.srcs .url { display: block; word-break: break-all; font-size: .85rem; color: var(--slate); }
.srcs .ver { display: block; font-size: .82rem; color: var(--slate); }

/* ---- form --------------------------------------------------------------- */
.form-block { background: #fff; border: 1px solid var(--rule); border-radius: 8px; padding: 1.1rem 1.2rem .6rem; margin: 1rem 0 1.4rem; }
.form-block label { display: block; font-weight: 700; font-size: .9rem; margin: .7rem 0 .25rem; }
.form-block input, .form-block select { width: 100%; font: inherit; font-size: 1rem; padding: .6rem .7rem; border: 2px solid var(--slate); border-radius: 5px; background: #fff; color: var(--indigo); }
.form-block input:focus, .form-block select:focus { outline: 3px solid var(--orange); outline-offset: 1px; }
.form-row { display: grid; gap: 0 1rem; }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.btn { font-weight: 800; font-size: 1rem; background: var(--indigo); color: #fff; border: 0; border-radius: 5px; padding: .8rem 1.3rem; cursor: pointer; margin-top: 1rem; }
.btn:hover { background: #3d3a66; }
.call-inline { font-size: .95rem; margin-left: .4rem; }
.form-status { font-size: .95rem; font-weight: 700; min-height: 1.4rem; }
.form-note { font-size: .9rem; color: var(--slate); margin: .4rem 0 0; }

/* ---- footer ------------------------------------------------------------- */
.foot { background: var(--indigo); color: #E9E4F5; margin-top: 3rem; padding: 2rem 0 5.5rem; font-size: .92rem; line-height: 1.65; }
.foot a { color: #fff; }
.footnav { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; font-weight: 700; margin-bottom: 1.1rem; }
.footnav a { text-decoration: none; }
.footnav a:hover { text-decoration: underline; }
.ad-disclosure { border-left: 4px solid var(--orange); padding-left: .8rem; }

/* sticky call bar, phones only */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; background: var(--orange); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .6rem 16px; font-size: .82rem; font-weight: 700; z-index: 40; box-shadow: 0 -2px 10px rgba(44,42,74,.25); }
.callbar span { display: none; }
.callbar a { color: #fff; text-decoration: none; background: var(--indigo); padding: .55rem .9rem; border-radius: 5px; white-space: nowrap; margin: 0 auto; }

@media (min-width: 640px) {
  body { font-size: 19px; }
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.62rem; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .sib { grid-template-columns: 1fr 1fr; }
  .callbar span { display: inline; }
  .callbar a { margin: 0; }
  .daylight-window span { font-size: .68rem; }
}

@media (min-width: 900px) {
  .callbar { display: none; }
  .foot { padding-bottom: 2.4rem; }
}
