/* Homepage v2: CMS content with the shared emergency settings and published destinations. */
.home-v2 {
  --home-navy: #123b63;
  --home-ink: #0e1e30;
  --home-muted: #4a5a6e;
  --home-stop: #b8431a;
  --home-stop-soft: #fcebe3;
  --home-line: #d3dfed;
  color: var(--home-ink);
  background: #f5f7fa;
}
.home-v2__intro { display: grid; gap: 20px; padding-block: 20px 32px; }
.home-emergency { display: grid; gap: 16px; padding: 18px 16px; border: 1px solid var(--home-line); border-radius: 18px; background: #fff; box-shadow: 0 3px 12px #123b6308; }
.home-emergency__copy { display: grid; align-content: start; gap: 12px; min-width: 0; }
.home-emergency__eyebrow { display: flex; align-items: center; gap: 8px; color: var(--home-stop); font-size: .875rem; font-weight: 800; }
.home-emergency__eyebrow .site-icon { width: 20px; height: 20px; }
.home-emergency h1 { color: var(--home-navy); font-size: 1.6875rem; font-weight: 800; line-height: 1.2; letter-spacing: -.025em; overflow-wrap: anywhere; }
.home-emergency__description { max-width: 52ch; color: var(--home-muted); font-size: 1.09375rem; line-height: 1.5; white-space: pre-line; }
.home-emergency__actions { display: grid; gap: 10px; }
.home-emergency__button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; max-width: 100%; padding: 11px 16px; border: 2px solid transparent; border-radius: 12px; font-size: .9375rem; font-weight: 800; line-height: 1.35; text-align: center; text-decoration: none; transition: background-color .2s, border-color .2s, box-shadow .2s, transform .2s; }
.home-emergency__button .site-icon { width: 21px; height: 21px; }
.home-emergency__button--primary { color: #fff; background: var(--home-stop); border-color: var(--home-stop); }
.home-emergency__button--primary:hover { color: #fff; background: #983512; border-color: #983512; box-shadow: 0 6px 14px #b8431a24; }
.home-emergency__button--secondary { color: var(--home-navy); background: #fff; border-color: var(--home-line); }
.home-emergency__button--secondary:hover { color: var(--home-navy); background: #edf4fb; border-color: #8eb2d7; }
.home-emergency__button:focus-visible { outline: 3px solid var(--home-navy); outline-offset: 4px; }
.home-emergency__button--primary:focus-visible { outline-color: var(--home-stop); }
.home-emergency__button:active { transform: translateY(1px); }
.home-emergency__principles { min-width: 0; display: grid; gap: 10px; padding-top: 14px; border-top: 1px dashed var(--home-line); }
.home-emergency__principles > h2 { display: flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 800; line-height: 1.45; }
.home-emergency__principles > h2 .site-icon { width: 21px; height: 21px; color: var(--home-navy); }
.home-principles { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.home-principles__item { position: relative; display: flex; align-items: start; gap: 10px; min-width: 0; padding: 10px; border-radius: 12px; background: var(--home-stop-soft); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), box-shadow .3s ease, background-color .3s ease; }
.home-principles__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; color: var(--home-stop); background: #fff; border-radius: 11px; }
.home-principles__icon .site-icon { width: 23px; height: 23px; }
.home-principles__item > div { min-width: 0; }
.home-principles__item h3 { color: var(--home-stop); font-size: .9375rem; font-weight: 800; line-height: 1.4; overflow-wrap: anywhere; }
.home-principles__item p { margin-top: 4px; color: var(--home-muted); font-size: .875rem; line-height: 1.5; overflow-wrap: anywhere; }
.home-v2__section { display: grid; gap: 14px; padding-block: 0 32px; }
.home-v2__updated { padding-bottom: 32px; color: var(--home-muted); font-size: .875rem; }
.home-emergency__image { display: none; margin: 0; }
.home-emergency__image img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.home-emergency__image figcaption { margin-top: 6px; color: var(--home-muted); font-size: .75rem; }
.home-library-cards { display: grid; gap: 10px; }
.home-library-card { display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: start; gap: 10px 12px; padding: 14px; border: 1px solid var(--home-line); border-radius: 16px; background: #fff; color: var(--home-ink); text-decoration: none; box-shadow: 0 3px 12px #123b6308; transition: border-color .2s, box-shadow .2s; }
.home-library-card h3 { font-size: 1.0625rem; line-height: 1.35; color: var(--home-navy); }
.home-library-card p { grid-column: 1 / -1; color: var(--home-muted); font-size: .9375rem; line-height: 1.45; }
.home-library-card .self-check-spot { width: 42px; height: 42px; }
.home-library-card .home-library-card__urgent { color: var(--home-stop); background: var(--home-stop-soft); }
.home-library-card:hover { color: var(--home-ink); text-decoration: none; border-color: #0b6bcb; box-shadow: 0 6px 16px #123b6314; }
.home-library-card:focus-visible { outline: 3px solid #0b6bcb; outline-offset: 3px; }
.home-alert-heading-image { display: inline-block; width: 44px; height: 44px; border-radius: 11px; object-fit: cover; }
.home-v2-alerts h2 { display: flex; align-items: center; gap: 10px; }
.self-check-card__cover { display: none; }
.home-v2__section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.home-v2__section-heading h2 { color: var(--home-navy); font-size: 1.3125rem; font-weight: 800; line-height: 1.4; letter-spacing: -.015em; }
.home-v2__more { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 44px; color: #0b6bcb; font-size: .9375rem; font-weight: 700; text-decoration: none; }
.home-v2__more .site-icon { width: 18px; height: 18px; }
.home-v2__more:hover { color: #09549e; text-decoration: underline; text-underline-offset: 4px; }
.home-v2__more:focus-visible { outline: 3px solid #0b6bcb; outline-offset: 3px; border-radius: 4px; }
.home-v2-tools { --sc-navy: var(--home-navy); --sc-blue: #0b6bcb; --sc-ink: var(--home-ink); --sc-muted: var(--home-muted); }
.home-v2-tools .self-check-card { grid-template-rows: auto 1fr; }
.home-v2-tools .self-check-tools .self-check-card { border-top: 1px solid #d6dee8; }
.home-v2-tools .self-check-tools a.self-check-card:hover { border-top-color: var(--sc-blue); }
.home-v2-tools .self-check-card__body b { color: var(--home-ink); font-size: 1rem; }
.home-v2-tools .self-check-card__body > span { font-size: .9375rem; }
.home-alert-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.home-v2-alerts .risk-card { overflow-wrap: anywhere; }
.home-v2-alerts .risk-card__title { font-size: 1rem; }
.home-v2-alerts .risk-card__desc { font-size: .9375rem; }
.home-v2-alerts .risk-card__meta { margin-top: 4px; font-size: .84375rem; }
.home-v2-alerts .risk-level { white-space: normal; }
.home-risk-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.home-risk-card { position: relative; min-width: 0; display: grid; grid-template-rows: auto auto 1fr auto; align-content: start; gap: 8px; padding: 14px; border: 1px solid var(--home-line); border-radius: 16px; color: var(--home-ink); background: #fff; text-decoration: none; overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; }
.home-risk-card__image { display: block; width: 72px; max-width: 100%; aspect-ratio: 1; margin-bottom: 4px; overflow: hidden; border-radius: 11px; background: #e2eefb; }
.home-risk-card__image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.home-risk-card__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: #0b6bcb; background: #e2eefb; }
.home-risk-card h3 { color: var(--home-navy); font-size: 1.0625rem; font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; }
.home-risk-card p { color: var(--home-muted); font-size: .90625rem; line-height: 1.45; overflow-wrap: anywhere; }
.home-risk-card__count { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; color: #0b6bcb; font-size: .90625rem; font-weight: 700; }
.home-risk-card__count .site-icon { width: 18px; height: 18px; transition: opacity .2s, transform .2s; }
.home-risk-card:hover { color: var(--home-ink); text-decoration: none; }
.home-risk-card:focus-visible { outline: 3px solid #0b6bcb; outline-offset: 4px; }
.home-risk-card:focus-visible .home-risk-card__count .site-icon { opacity: 1; transform: none; }
@media (hover: hover) {
  .home-principles__item:hover { z-index: 1; transform: scale(1.035); background: #f9dccd; box-shadow: 0 10px 22px #b8431a24; }
  .home-principles__item:hover .home-principles__icon { animation: home-principle-ring 1.1s ease-out infinite; }
  .home-principles__item:hover .site-icon { animation: home-principle-shake .55s ease-in-out 1 both; transform-box: fill-box; transform-origin: center; }
  .home-risk-card__count .site-icon { opacity: 0; transform: translateX(-5px); }
  .home-risk-card::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 35%, #ffffff70 50%, transparent 65%); transform: translateX(-120%); }
  .home-risk-card:hover { transform: translateY(-4px); border-color: #8eb2d7; box-shadow: 0 10px 24px #123b6320; }
  .home-risk-card:hover .home-risk-card__image img { transform: scale(1.06); }
  .home-risk-card:hover .home-risk-card__count .site-icon { opacity: 1; transform: none; }
  .home-risk-card:hover::after { transform: translateX(120%); transition: transform .75s ease; }
}
@keyframes home-principle-ring {
  from { box-shadow: 0 0 0 0 #b8431a73; }
  to { box-shadow: 0 0 0 12px #b8431a00; }
}
@keyframes home-principle-shake {
  0%, 100% { transform: none; }
  18% { transform: rotate(-14deg); }
  36% { transform: rotate(11deg); }
  54% { transform: rotate(-7deg); }
  72% { transform: rotate(4deg); }
  88% { transform: rotate(-2deg); }
}
@media (max-width: 767px) {
  .home-risk-cards { grid-template-columns: minmax(0, 1fr); }
  .home-risk-card { grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 14px; row-gap: 4px; min-height: 112px; border-radius: 14px; }
  .home-risk-card__image, .home-risk-card__icon { grid-column: 1; grid-row: 1 / -1; align-self: center; margin: 0; }
  .home-risk-card__image { width: 64px; }
  .home-risk-card__icon { width: 56px; height: 56px; justify-self: center; }
  .home-risk-card h3, .home-risk-card p, .home-risk-card__count { grid-column: 2; min-width: 0; }
  .home-risk-card h3 { font-size: 1rem; line-height: 1.4; }
  .home-risk-card p { font-size: .875rem; line-height: 1.5; }
  .home-risk-card__count { margin-top: 2px; font-size: .8125rem; }
  .home-risk-card__count .site-icon { opacity: 1; transform: none; }
}
@media (min-width: 600px) {
  .home-principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .home-library-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-v2-tools .self-check-card--cover { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; padding: 18px; gap: 12px; overflow: hidden; }
  .home-v2-tools .self-check-card--cover > .self-check-spot { display: none; }
  .home-v2-tools .self-check-card__cover { display: block; margin: -18px -18px 4px; }
  .home-v2-tools .self-check-card__cover img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .3s; }
  .home-v2-tools .self-check-card--cover:hover img { transform: scale(1.025); }
  .home-v2-alerts--grid .home-alert-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-v2__intro { padding-block: 24px 40px; }
  .home-v2__section { padding-bottom: 40px; }
  .home-v2-tools .self-check-card { grid-template-rows: auto 1fr auto; }
  .home-risk-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .home-risk-card__image { width: 100%; aspect-ratio: 1; }
  .home-emergency { padding: 28px; }
  .home-emergency h1 { font-size: 2rem; }
  .home-emergency__actions { display: flex; flex-wrap: wrap; }
}
@media (min-width: 1025px) {
  .home-emergency__image { display: block; grid-column: 2; grid-row: 1; }
  .home-v2-alerts--grid .home-alert-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-emergency { grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); column-gap: 32px; }
  .home-emergency h1 { font-size: 2.375rem; }
  .home-v2__section-heading h2 { font-size: 1.5rem; }
  .home-emergency__principles { grid-column: 1 / -1; }
  .home-principles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home-principles__item { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .home-v2-tools .self-check-card__cover img { transition: none; }
  .home-v2-tools .self-check-card--cover:hover img { transform: none; }
  .home-principles__item { transition: none; }
  .home-principles__item:hover { transform: none; }
  .home-principles__item:hover .home-principles__icon, .home-principles__item:hover .site-icon { animation: none; }
  .home-emergency__button { transition: none; }
  .home-risk-card, .home-risk-card__image img, .home-risk-card__count .site-icon { transition: none; }
  .home-risk-card:hover, .home-risk-card:hover .home-risk-card__image img { transform: none; }
  .home-risk-card::after { display: none; }
  .home-risk-card__count .site-icon { opacity: 1; transform: none; }
}
@media print {
  .home-emergency { display: block; border: 0; padding: 0; box-shadow: none; }
  .home-emergency__principles { margin-top: 20px; }
  .home-principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-principles__item { break-inside: avoid; }
}
