/* HO-1252 B2 (Magdalena Figueroa, C-268): home page and /services only. Tokens and shared classes (.container .btn .sec-head .tiles .tile .badge)
   come from style.css; nothing here redefines them. Values are from nyc_spec.md. */

/* ---- hero band: deep blue, H1 left, the ask tool in a white card on the right ---- */
.vhero { background: var(--blue-10); color: var(--white); padding: 40px 0 48px; border-radius: 0 0 var(--r-xl) var(--r-xl); }
.vhero-in { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }
.vhero h1 { font-family: var(--font-heading); font-size: var(--fs-h1); line-height: var(--lh-h1); font-weight: 600; color: var(--white); margin: 0 0 16px; }
.vhero h1 em { font-style: normal; color: var(--yellow-50); }
.vhero .lede { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--blue-90); margin: 0; max-width: 34em; }
.askcard { background: var(--white); color: var(--text); border-radius: 20px; padding: 16.7px; min-width: 0; }
@media (min-width: 768px) {
  .vhero { padding: 64px 0 72px; }
  .vhero-in { grid-template-columns: 1fr 1fr; gap: 64px; }
  .askcard { padding: 24px; }
}
/* the tool's own markup, restyled for a white card (its stylesheet dresses it for a dark band) */
.askcard .ask.ask-hero { margin: 0; border: 0; background: transparent; }
.askcard .ask-hero .ask-name { font-family: var(--font-heading); font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 500; letter-spacing: .01em; color: var(--text); margin: 0 0 12px; }
.askcard .ask-hero .ask-head { background: transparent; color: var(--text); padding: 0 0 4px; }
.askcard .ask-hero .ask-sub { color: var(--text-muted); }
.askcard .ask-hero .ask-form { flex-wrap: wrap; align-items: stretch; }
.askcard .ask-hero .ask-form textarea { flex: 1 1 100%; font-family: var(--font-body); font-size: var(--fs-body); border: 2px solid var(--border-base); border-radius: var(--r-xs); padding: 12px 14px; min-height: 96px; color: var(--text); }
.askcard .ask-hero .ask-form textarea:focus { outline: 3px solid var(--blue-60); outline-offset: 1px; border-color: var(--primary); }
.askcard .ask-hero .ask-form button { background: var(--primary); color: var(--on-primary); border: 2px solid var(--primary); border-radius: 40px; font-family: var(--font-body); font-size: var(--fs-btn); line-height: 1.2; font-weight: 600; padding: 12px 32px; width: 100%; cursor: pointer; }
.askcard .ask-hero .ask-form button:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--on-primary); }
.askcard .ask-hero .ask-chip { background: var(--white); color: var(--link); border: 2px solid var(--border-base); border-radius: 40px; font-family: var(--font-body); font-weight: 600; padding: 8px 14px; }
.askcard .ask-hero .ask-chip:hover { background: var(--blue-100); color: var(--link-hover); border-color: var(--link); }
.askcard .ask-hero .ask-starters { padding: 14px 0 0; }
.askcard .ask-hero .ask-foot { color: var(--text-muted); padding: 12px 0 0; font-size: var(--fs-small); }
.askcard .ask-hero .ask-log { background: transparent; padding: 0 0 12px; color: var(--text); }

/* ---- bands under the hero ---- */
.hband { padding: 32px 0 8px; }
.hband .container > .sec-head + * { margin-top: 24.7px; }
@media (min-width: 768px) { .hband { padding: 48px 0 8px; } .hband .container > .sec-head + * { margin-top: 32px; } }
.hband h2, .callout h2 { font-family: var(--font-heading); font-weight: 600; }

/* ---- Latest News cards ---- */
.newsgrid { display: grid; grid-template-columns: 1fr; gap: var(--grid-gap); }
.newsgrid:empty { display: none; }
@media (min-width: 768px) { .newsgrid { grid-template-columns: repeat(3, 1fr); } }
.newscard { border: 2px solid var(--border-base); border-radius: var(--r-xs); background: rgba(255,255,255,.75); padding: 16px; }
.newscard .nmeta { font-size: var(--fs-small); font-weight: 500; line-height: 1.4; color: var(--text-muted); margin-bottom: 8px; }
.newscard h3 { font-family: var(--font-heading); font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 600; margin: 0; }
.newscard h3 a { color: var(--link); text-decoration: underline; }
.newscard h3 a:hover { color: var(--link-hover); }
.newscard.alert { border-color: var(--surface-emergency); background: var(--white); }
.newscard.alert .nmeta { color: var(--surface-emergency); font-weight: 700; }

/* ---- call-out bands (local assistants, 211, advertise): text left, button(s) right ---- */
.callout { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; background: var(--blue-100); border-radius: var(--r-base); padding: 24px; }
.callout h2, .callout h3 { margin: 0 0 8px; font-size: var(--fs-h3); line-height: var(--lh-h3); }
.callout p { margin: 0; font-size: var(--fs-body); line-height: var(--lh-body); max-width: 44em; }
.callout a:not(.btn) { color: var(--link); font-weight: 600; text-decoration: underline; }
.callout.call { background: var(--yellow-100); margin-top: 16px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 768px) {
  .callout { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; padding: 32px; }
  .callout h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); }
}

/* ---- Know the clock facts ---- */
.facts { display: grid; grid-template-columns: 1fr; gap: var(--grid-gap); }
@media (min-width: 600px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.hfact { border: 2px solid var(--border-base); border-radius: var(--r-xs); background: rgba(255,255,255,.75); padding: 16px; }
.hfact .n { font-family: var(--font-heading); font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 600; color: var(--primary); }
.hfact .w { margin-top: 8px; font-size: var(--fs-body); line-height: var(--lh-body); }
.hfact .source { display: inline-block; margin-left: 4px; font-size: var(--fs-small); font-weight: 600; color: var(--text-muted); }

/* ---- Daily Brief signup (same form, ids and names) ---- */
.hband form.signup { margin: 0; background: var(--white); border: 2px solid var(--border-base); border-radius: var(--r-base); padding: 24px; }
.hband form.signup h3 { font-family: var(--font-heading); font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 600; color: var(--text); margin: 0 0 8px; }
.hband form.signup p { margin: 0 0 16px; color: var(--text); }
.hband form.signup .row { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.hband form.signup input:not(.hp) { flex: 1 1 200px; font-family: var(--font-body); font-size: var(--fs-body); border: 2px solid var(--border-base); border-radius: var(--r-xs); padding: 12px 14px; min-width: 0; }
.hband form.signup input[name="zip"] { flex: 0 1 160px; }
.hband form.signup .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.hband form.signup .btn { flex: none; cursor: pointer; }
.hband form.signup .signup-msg { margin-top: 12px; min-height: 1.5em; color: var(--text-muted); }
.hband form.signup.done .row { display: none; }

/* ---- /services ---- */
main.svc { padding-bottom: 48px; }
main.svc h1 { font-family: var(--font-heading); font-size: var(--fs-h1); line-height: var(--lh-h1); font-weight: 600; margin: 32px 0 16px; }
main.svc .lede { font-size: var(--fs-body); line-height: var(--lh-body); max-width: 40em; margin: 0; }
main.svc .lede a { color: var(--link); text-decoration: underline; }
.svc-cat { padding: 32px 0 0; scroll-margin-top: calc(var(--header-h) + 16px); }
@media (min-width: 768px) { .svc-cat { padding-top: 48px; } }
.svc-cat .sec-head + .tiles { margin-top: 24.7px; }
@media (min-width: 768px) { .svc-cat .sec-head + .tiles { margin-top: 32px; } }

/* ---- reset of old style.css rules that would bleed into these pages (main width, h2 caps and rule) ---- */
main#main { max-width: none; padding: 0; margin: 0; }
/* HO-1252 fix 1: main has no padding here, and style.css `main .container` zeroes the container's, so give the gutter back to the container itself (content width = --container, centred). */
main#main .container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.hband h2, .callout h2, .callout h3, .hband form.signup h3 { text-transform: none; letter-spacing: 0; border: 0; padding: 0; color: var(--text); }
.callout h2 { margin: 0 0 8px; }
