/* Independent Seniors website: home page montage. Version: v13 (2026-11-14) */
/* Home page montage (Ed, 2026-10-22): happy seniors and real screens, in place of the single photo.
   Its own file, so a browser still holding last week's site.css shows it properly. */
@media (min-width: 900px) {
  .hero__grid:has(.hero-montage) { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
}
.hero__figure.hero-montage { margin: 0; display: flex; flex-direction: column; gap: 0.6rem; height: auto; align-self: start; }
.montage { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.5rem, 1.2vw, 0.85rem); }
.montage__tile { position: relative; margin: 0; padding: 0; border-radius: 14px; overflow: hidden; background: var(--white, #fff);
  border: 1px solid var(--border, #ded3c4); box-shadow: var(--shadow-md, 0 6px 18px rgba(20, 49, 91, 0.1)); }
.montage__tile > a { display: block; color: inherit; text-decoration: none; }
.hero__figure.hero-montage .montage__tile img { display: block; width: 100%; height: auto; min-height: 0; aspect-ratio: 4 / 3;
  object-fit: cover; border: 0; border-radius: 0; box-shadow: none; }
.montage__label { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.25rem 0.5rem 0.3rem; background: rgba(20, 49, 91, 0.92);
  color: #fff; font-weight: 700; font-size: 17px; line-height: 1.25; }
.montage__tile > a:hover .montage__label { background: var(--orange-ink, #9a4c12); }
.montage__tile > a:focus-visible { outline: 4px solid var(--orange, #e07a2c); outline-offset: -4px; }
.montage__caption { margin: 0; font-size: 16px; line-height: 1.4; color: var(--ink-muted, #47576b); }
@media (max-width: 700px) {
  .montage { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .montage__tile--photo-couple, .montage__tile--photo-hiking, .montage__tile--immunizations, .montage__tile--checklist { display: none; }   /* fourteen tiles: seven rows of two (v2: the game in, Health insurance out) */
  .montage__label { font-size: 16px; }
}
@media print { .hero-montage { display: none; } }

/* Free Resources page matrix (Ed, 2026-11-05): the same tiles, 2 columns on phones, 3 on tablets, 4 on wide screens. */
.fr-montage { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1.25rem; }
@media (min-width: 701px) { .fr-montage { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .fr-montage { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fr-montage .montage__tile img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border: 0; border-radius: 0; box-shadow: none; }
.fr-montage__caption { margin-top: 0.75rem; }
@media print { .fr-montage, .fr-montage__caption { display: none; } }

/* Stay Safe Series hero (Ed, 2026-11-05): the eight covers as a matrix on the right, 4 x 2, like the home page montage. */
.series-matrix { margin: 0; align-self: center; }
.series-matrix__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(0.5rem, 1.4vw, 1rem); }
.series-matrix__grid > li { margin: 0; }
.series-matrix__grid a { display: block; color: var(--ink, #14315b); text-decoration: none; border-radius: 8px; }
.series-matrix__grid img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px;
  box-shadow: var(--shadow-md, 0 6px 18px rgba(20, 49, 91, 0.1)); transition: transform 160ms ease; }
.series-matrix__grid .is-upcoming img { opacity: 0.88; }
.series-matrix__grid a:hover img { transform: translateY(-3px); }
.series-matrix__grid a:focus-visible { outline: 4px solid var(--orange, #e07a2c); outline-offset: 3px; }
.series-matrix__cap { display: block; margin-top: 0.4rem; font-size: 16px; line-height: 1.3; text-align: center; color: var(--ink-muted, #47576b); }
.series-matrix__cap strong { display: block; color: var(--ink, #14315b); }
.series-matrix__grid a:hover .series-matrix__cap strong { text-decoration: underline; }
.glance-band { padding-block: clamp(2rem, 4vw, 3rem); }
.glance-band h2 { color: #fff; font-size: var(--text-xl, 1.5rem); margin: 0 0 1rem; }
.glance-band__list { display: grid; grid-template-columns: 1fr; gap: 1rem 2rem; margin: 0; }
@media (min-width: 600px) { .glance-band__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .glance-band__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.glance-band__list dt { font-size: 16px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #f6b26b; }
.glance-band__list dd { margin: 0.25rem 0 0; color: #fff; }
@media print { .series-matrix { display: none; } }

/* Answers hub (Ed, 2026-11-05): a linked picture on the right of each main topic. */
.answers-hub { max-width: 1080px; }
.answers-hub > :not(.topic-row) { max-width: var(--measure); }
.topic-row { display: grid; gap: 1.25rem; }
.answers-hub > .topic-row { margin-top: var(--space-10, 3rem); }
.answers-hub > .topic-row:first-child { margin-top: 0; }
.topic-row__text > h2 { margin-top: 0; }
.topic-row__text > * + * { margin-top: var(--space-4, 1rem); }
.topic-row__text { max-width: var(--measure); }
@media (min-width: 900px) { .topic-row { grid-template-columns: minmax(0, 1fr) 300px; column-gap: 3rem; align-items: start; } }
.topic-pic { display: block; max-width: 420px; background: var(--white, #fff); border: 1px solid var(--border, #ded3c4); border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow-md, 0 6px 18px rgba(20, 49, 91, 0.1)); color: var(--navy, #14315b); text-decoration: none; }
.topic-pic img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.topic-pic--top img { object-position: top; }
.topic-pic__label { display: block; padding: 0.5rem 0.75rem 0.6rem; font-weight: 700; font-size: 16px; line-height: 1.3; }
.topic-pic:hover .topic-pic__label { text-decoration: underline; color: var(--orange-ink, #9a4c12); }
.topic-pic:focus-visible { outline: 4px solid var(--orange, #e07a2c); outline-offset: 3px; }
@media (min-width: 900px) { .topic-row__text + .topic-pic { margin-top: 0.4rem; } }
@media print { .topic-pic { display: none; } }

/* Jump matrix (Ed, 2026-11-05): a picture tile for each section at the top of a page with several sections.
   2 across on phones, 4 on tablets and wider. The label sits under the picture. */
.jump-matrix__title { font-size: var(--text-lg, 1.25rem); margin: 0 0 0.75rem; }
.jump-matrix { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(0.6rem, 1.4vw, 1rem); }
@media (min-width: 701px) { .jump-matrix { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.jump-matrix > li { margin: 0; }
.jump-matrix a { display: flex; flex-direction: column; height: 100%; background: var(--white, #fff); border: 1px solid var(--border, #ded3c4); border-radius: 14px;
  overflow: hidden; box-shadow: var(--shadow-md, 0 6px 18px rgba(20, 49, 91, 0.1)); color: var(--navy, #14315b); text-decoration: none; }
.jump-matrix img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.jump-matrix .jump-matrix--top img { object-position: top; }
.jump-matrix span { display: block; padding: 0.45rem 0.65rem 0.55rem; font-weight: 700; font-size: 16px; line-height: 1.3; }
.jump-matrix a:hover span { text-decoration: underline; color: var(--orange-ink, #9a4c12); }
.jump-matrix a:focus-visible { outline: 4px solid var(--orange, #e07a2c); outline-offset: 3px; }
[id] { scroll-margin-top: 1rem; }
@media print { .jump-matrix, .jump-matrix__title { display: none; } }

/* Jump matrix, icon tiles (2026-11-05): a section with no picture of its own gets a simple drawn icon. */
.jump-matrix .jump-matrix__icon { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: #eef3f9; color: var(--navy, #14315b); }
.jump-matrix a:hover .jump-matrix__icon { color: var(--orange-ink, #9a4c12); }
.jump-matrix .jump-matrix__label { display: block; padding: 0.45rem 0.65rem 0.55rem; font-weight: 700; font-size: 16px; line-height: 1.3; }

/* 9 tiles (FAQ Answers, 2026-11-06): 3 across on wider screens, so the rows come out even. */
@media (min-width: 701px) { .jump-matrix--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 900px; } }

/* 2026-11-06: keep the topic rows full width on wide screens (site.css v4 caps .wrap.prose children at the reading width). */
.wrap.prose > .topic-row { max-width: none; }

/* FAQ Answers (2026-11-06): book covers beside the book topics, shown whole (2:3), not cropped. */
.topic-pic--cover { max-width: 220px; }
.topic-pic--cover img { aspect-ratio: 2 / 3; object-fit: contain; background: var(--white, #fff); }

/* FAQ Answers blog section (2026-11-06): two screens stacked on the right, shown whole. */
.topic-pics { display: grid; gap: 1rem; max-width: 420px; }
@media (max-width: 899px) { .topic-pics { grid-template-columns: 1fr 1fr; max-width: none; } }
.topic-pic--natural img { aspect-ratio: auto; object-fit: contain; }

/* FAQ Answers (2026-11-06): the free-resources matrix uses the full width there too. */
.wrap.prose > .fr-montage { max-width: none; padding-left: 0; }
.wrap.prose > .fr-montage > li { margin-top: 0; }

/* Free Resources, second matrix (Ed, 2026-11-14): a picture for every quick answer, and one for all the answers. */
.fr-montage__title { margin: clamp(2rem, 4vw, 2.75rem) 0 0.4rem; }
.fr-montage__intro { margin: 0; font-size: 18px; color: var(--ink-muted, #47576b); }
.montage__more { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: #eef3f9; color: var(--navy, #14315b); }
.montage__tile > a:hover .montage__more { color: var(--orange-ink, #9a4c12); }
