/* Homepage theme modules: one article language, nine layouts.
   White, blue and gold carry the page; red is kept for labels and the blood-donation appeal. */

.sx-module, .sx-index { padding-block: clamp(56px, 7vw, 92px); background: #fff; scroll-margin-top: 16px; }
.sx-duo__panel { scroll-margin-top: 16px; }
.sx-module--grid, .sx-module--duo { background: var(--paper); }

/* Section heading. */
.sx-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 28px; margin-bottom: 36px; }
.sx-head .section-kicker, .sx-module .section-kicker { margin-bottom: 10px; }
.sx-module h2, .sx-index h2 { margin: 0; color: var(--ink); font: 700 clamp(2rem, 3.3vw, 3.1rem)/1 var(--serif); letter-spacing: -.03em; text-wrap: balance; }
body.home .sx-more { display: inline-block; padding: 11px 18px; color: var(--blue-dark); background: #fff; border: 2px solid var(--blue-dark); border-radius: 6px; font-weight: 800; white-space: nowrap; transition: color .18s ease, background-color .18s ease; }
body.home .sx-more:hover { color: #fff; background: var(--blue-dark); }
.sx-button { display: inline-block; padding: 12px 20px; color: #fff; background: var(--blue); border-radius: 6px; font: 750 .86rem/1.3 var(--sans); text-decoration: none; }
.sx-button:hover { color: #fff; background: var(--blue-dark); }
.sx-button--red { background: var(--wine); }
.sx-button--red:hover { background: var(--wine-dark); }
.sx-module a:focus-visible, .sx-index a:focus-visible, .sx-rail:focus-visible, .sx-rail__controls button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* Theme index. */
.sx-index { border-bottom: 1px solid var(--line); }
.sx-index__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.sx-index__list li { --tone: var(--blue-dark); --tint: var(--blue-soft); --edge: #d5e2f3; }
.sx-index__list li:nth-child(8n+2), .sx-index__list li:nth-child(8n+4), .sx-index__list li:nth-child(8n+5), .sx-index__list li:nth-child(8n+7) { --tone: #8a6510; --tint: #fff8ea; --edge: #f0e0b8; }
.sx-index__list li[data-icon="drop"] { --tone: var(--wine); --tint: var(--red-soft); --edge: #f3d5cf; }
.sx-index__list a { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 2px 16px; align-content: center; height: 100%; min-height: 104px; padding: 20px; background: var(--tint); border: 1px solid var(--edge); border-bottom: 3px solid var(--tone); border-radius: 10px; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.sx-index__list a:hover { background: #fff; box-shadow: 0 14px 34px rgba(27, 47, 79, .12); transform: translateY(-3px); }
.sx-index__icon { display: grid; grid-row: span 2; align-self: center; width: 52px; height: 52px; place-items: center; color: var(--tone); background: #fff; border: 1px solid var(--edge); border-radius: 50%; transition: color .2s ease, background-color .2s ease; }
.sx-index__icon svg { width: 26px; height: 26px; }
.sx-index__list a:hover .sx-index__icon { color: #fff; background: var(--tone); border-color: var(--tone); }
.sx-index__list strong { display: block; align-self: end; color: var(--ink); font: 700 1.24rem/1.15 var(--serif); }
.sx-index__list small { display: block; align-self: start; margin-top: 4px; color: var(--tone); font: 750 .7rem/1.4 var(--sans); letter-spacing: .06em; text-transform: uppercase; }

/* Article. */
.sx-story { min-width: 0; }
.sx-story__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--blue-soft); border-radius: 6px; }
.sx-story__media img, .sx-story__media .card__placeholder { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; transition: transform .45s ease; }
.sx-module .card__placeholder { background: linear-gradient(140deg, var(--blue-dark), var(--blue)); }
.sx-story:hover .sx-story__media img { transform: scale(1.03); }
.sx-story__date { display: block; color: #66748a; font: 650 .72rem/1.4 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.sx-story h3 { margin: 8px 0 0; font: 700 1.36rem/1.16 var(--serif); letter-spacing: -.012em; }
.sx-story h3 a { color: var(--ink); text-decoration: none; }
.sx-story h3 a:hover { color: var(--blue); }
.sx-story__excerpt { margin: 12px 0 0; color: var(--muted); }
.sx-story--card .sx-story__body { padding-top: 18px; }
.sx-story--lead .sx-story__media { aspect-ratio: 16 / 10; border-radius: 8px; }
.sx-story--lead .sx-story__body { padding-top: 24px; }
.sx-story--lead h3 { font-size: clamp(1.7rem, 2.6vw, 2.45rem); line-height: 1.06; letter-spacing: -.025em; }
.sx-story--lead .sx-story__excerpt { max-width: 62ch; font: 1.06rem/1.62 var(--serif); }
.sx-story--row { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 18px; align-items: start; }
.sx-story--row .sx-story__media { aspect-ratio: 4 / 3; }
.sx-story--row h3 { font-size: 1.24rem; }
.sx-story--feature { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; align-items: center; }
.sx-story--feature h3 { font-size: 1.5rem; }
.sx-story--text { padding-top: 16px; border-top: 1px solid var(--line); }
.sx-story--text h3 { font-size: 1.2rem; }
.sx-story--overlay { position: relative; display: grid; align-items: end; min-height: 380px; overflow: hidden; background: #10213b; border-radius: 8px; }
.sx-story--overlay .sx-story__media { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.sx-story--overlay .sx-story__body { position: relative; padding: 90px 24px 24px; background: linear-gradient(to top, rgba(11, 24, 45, .94) 0%, rgba(11, 24, 45, .72) 55%, rgba(11, 24, 45, 0) 100%); pointer-events: none; }
.sx-story--overlay .sx-story__date { color: #efd9ad; }
.sx-story--overlay h3 a { color: #fff; pointer-events: auto; }
.sx-story--overlay h3 a:hover { color: #efd9ad; }
.sx-story--overlay h3 a::after { position: absolute; inset: 0; content: ""; }
.sx-story--overlay .sx-story__excerpt { color: #d9e4f3; }

/* 0. Latest news: one large photograph and a two-by-two grid. */
.sx-module--latest { padding-top: clamp(32px, 4vw, 52px); }
.sx-latest { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 28px; }
.sx-latest > .sx-story--overlay { min-height: 460px; }
.sx-latest > .sx-story--overlay h3 { font-size: clamp(1.6rem, 2.5vw, 2.3rem); line-height: 1.08; }
.sx-latest > .sx-story--overlay .sx-story__body { padding: 120px 32px 32px; }
.sx-latest__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 24px; align-content: start; }
.sx-latest__grid .sx-story__body { padding-top: 14px; }
.sx-latest__grid h3 { font-size: 1.2rem; }

/* 1. Lead story with a side list. */
.sx-lead { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr); gap: clamp(28px, 4.5vw, 64px); }
.sx-lead__list { display: grid; align-content: start; }
.sx-lead__list .sx-story { padding-block: 22px; border-top: 1px solid var(--line); }
.sx-lead__list .sx-story:first-child { padding-top: 0; border-top: 0; }
.sx-module--reverse .sx-lead { grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); }
.sx-module--reverse .sx-lead > .sx-story--lead { order: 2; }

/* 2. Four cards on the cool tint. */
.sx-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.sx-grid .sx-story { overflow: hidden; background: #fff; border: 1px solid #dbe4f0; border-radius: 8px; box-shadow: 0 12px 32px rgba(33, 74, 134, .06); }
.sx-grid .sx-story__media { border-radius: 0; }
.sx-grid .sx-story__body { padding: 18px 20px 24px; }
.sx-grid h3 { font-size: 1.25rem; }

/* 3. Blue band with image cards. */
.sx-module--band { background: var(--blue-dark); border-top: 5px solid var(--gold); }
.sx-band { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.sx-band .sx-story { min-height: 420px; }

/* 4. Appeal: the one red module. */
.sx-appeal { display: grid; grid-template-columns: minmax(280px, .44fr) minmax(0, 1fr); gap: clamp(28px, 4.5vw, 60px); align-items: center; }
.sx-appeal__intro { padding: 34px 34px 38px; background: var(--red-soft); border-left: 4px solid var(--wine); border-radius: 0 10px 10px 0; }
.sx-appeal__icon { display: block; width: 44px; height: 44px; margin-bottom: 20px; fill: var(--wine); }
.sx-appeal__intro > p { margin: 16px 0 24px; color: #5a4a4c; font: 1.08rem/1.6 var(--serif); }
.sx-appeal__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 30px; }
.sx-appeal__list .sx-story--text { border-top: 2px solid var(--wine); }

/* 5. Two themes side by side in gold-topped panels. */
.sx-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
.sx-duo__panel { min-width: 0; padding: clamp(24px, 3vw, 36px); background: #fff; border: 1px solid #d9e1eb; border-top: 4px solid var(--gold); border-radius: 4px; box-shadow: 0 10px 32px rgba(27, 47, 79, .07); }
.sx-duo__panel .sx-head { margin-bottom: 26px; }
.sx-duo__panel h2 { font-size: clamp(1.65rem, 2.3vw, 2.15rem); }
.sx-duo__panel { display: flex; flex-direction: column; }
.sx-duo__panel .sx-story--card .sx-story__media { aspect-ratio: 16 / 9; }
.sx-duo__panel .sx-story--card h3 { font-size: clamp(1.45rem, 2vw, 1.75rem); line-height: 1.12; }
.sx-duo__list { margin-top: 26px; }
.sx-duo__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

/* 6. Horizontal panels, two by two. */
.sx-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.sx-story--panel { display: grid; grid-template-columns: minmax(0, .42fr) minmax(0, .58fr); overflow: hidden; border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 8px; }
.sx-story--panel .sx-story__media { height: 100%; min-height: 190px; aspect-ratio: auto; border-radius: 0; }
.sx-story--panel .sx-story__body { align-self: center; padding: 22px 24px; }
.sx-story--panel h3 { font-size: 1.28rem; }
.sx-story--panel .sx-story__excerpt { font-size: .94rem; }

/* 7. Dated list on navy. */
.sx-module--timeline { background: #10213b; }
.sx-timeline { display: grid; grid-template-columns: minmax(0, .42fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.sx-timeline__intro > p { margin: 18px 0 26px; color: #ced9e7; font: 1.1rem/1.65 var(--serif); }
.sx-story--date { border-top: 1px solid rgba(255, 255, 255, .16); }
.sx-story--date:last-child { border-bottom: 1px solid rgba(255, 255, 255, .16); }
.sx-story--date .sx-story__body { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 24px; align-items: center; padding-block: 20px; }
.sx-story__day { display: block; }
.sx-story__day b { display: block; color: var(--gold); font: 700 3rem/.9 var(--serif); }
.sx-story__day span { display: block; margin-top: 6px; color: #b9c6d8; font: 700 .7rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.sx-story--date h3 { margin: 0; font-size: 1.45rem; }
.sx-story--date h3 a { color: #fff; }
.sx-story--date h3 a:hover { color: #efd9ad; }

/* Light text on the two dark modules. */
.sx-module--band h2, .sx-module--timeline h2 { color: #fff; }
body.home .sx-module--band .section-kicker, body.home .sx-module--timeline .section-kicker { color: #efd9ad; }
body.home .sx-module--band .sx-more, body.home .sx-module--timeline .sx-more { color: #17243a; background: var(--gold); border-color: var(--gold); }
body.home .sx-module--band .sx-more:hover, body.home .sx-module--timeline .sx-more:hover { color: #17243a; background: #fff; border-color: #fff; }
.sx-module--band a:focus-visible, .sx-module--timeline a:focus-visible, .sx-story--overlay a:focus-visible { outline-color: var(--gold); }

/* 8. Mosaic: one large image card and two small ones. */
.sx-mosaic { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); grid-auto-rows: 260px; gap: 20px; }
.sx-mosaic .sx-story { min-height: 0; }
.sx-mosaic .sx-story:first-child { grid-row: span 2; }
.sx-mosaic .sx-story:first-child h3 { font-size: clamp(1.6rem, 2.5vw, 2.3rem); line-height: 1.08; }
.sx-mosaic .sx-story:first-child .sx-story__body { padding: 120px 32px 32px; }
.sx-mosaic .sx-story:first-child .sx-story__excerpt { max-width: 58ch; }

/* 9. Scrolling rail on warm gold. */
.sx-module--rail { background: linear-gradient(125deg, #fff8ea 0%, #fff 62%); border-block: 1px solid #f0e3c5; }
.sx-rail__tools { display: flex; align-items: center; gap: 22px; }
.sx-rail__controls { display: flex; gap: 8px; }
.sx-rail__controls[hidden] { display: none; }
.sx-rail__controls button { display: grid; width: 40px; height: 40px; padding: 0; place-items: center; color: var(--blue-dark); background: #fff; border: 1px solid var(--gold); border-radius: 50%; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.sx-rail__controls button:hover:enabled { color: #17243a; background: var(--gold); }
.sx-rail__controls button:disabled { color: #b9c1cd; border-color: #e6dcc4; cursor: default; }
.sx-rail { display: flex; gap: 24px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.sx-rail::-webkit-scrollbar { display: none; }
.sx-rail .sx-story { flex: 0 0 calc((100% - 72px) / 4); scroll-snap-align: start; }
.sx-rail .sx-story__body { margin-top: 14px; padding-top: 16px; border-top: 3px solid var(--gold); }
.sx-rail h3 { font-size: 1.26rem; }

/* 10. Spotlight: one large photograph beside a gold-topped list panel of equal height. */
.sx-module--spotlight { background: var(--blue-soft); }
.sx-spotlight { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 28px; }
.sx-spotlight .sx-story--overlay { min-height: 500px; }
.sx-spotlight .sx-story--overlay h3 { font-size: clamp(1.6rem, 2.5vw, 2.3rem); line-height: 1.08; }
.sx-spotlight .sx-story--overlay .sx-story__body { padding: 120px 32px 32px; }
.sx-spotlight .sx-story--overlay .sx-story__excerpt { max-width: 58ch; }
.sx-spotlight__panel { display: flex; flex-direction: column; padding: clamp(24px, 3vw, 36px); background: #fff; border: 1px solid #d9e1eb; border-top: 4px solid var(--gold); border-radius: 4px; box-shadow: 0 10px 32px rgba(27, 47, 79, .07); }
.sx-spotlight__intro { margin: 0 0 24px; color: var(--blue-dark); font: 500 1.16rem/1.55 var(--serif); }
.sx-spotlight__panel .sx-story--text { display: flex; flex: 1; flex-direction: column; justify-content: center; padding-block: 18px; }
.sx-spotlight__panel .sx-story--text:last-child { padding-bottom: 0; }
.sx-spotlight__panel .sx-story--text h3 { font-size: 1.28rem; }

@media (max-width: 1080px) {
  .sx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sx-index__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sx-rail .sx-story { flex-basis: calc((100% - 48px) / 3); }
  .sx-duo, .sx-rows { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .sx-latest, .sx-lead, .sx-module--reverse .sx-lead, .sx-appeal, .sx-timeline, .sx-spotlight { grid-template-columns: minmax(0, 1fr); }
  .sx-module--reverse .sx-lead > .sx-story--lead { order: 0; }
  .sx-band { grid-template-columns: minmax(0, 1fr); }
  .sx-band .sx-story { min-height: 300px; }
  .sx-mosaic { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .sx-mosaic .sx-story { min-height: 280px; }
  .sx-mosaic .sx-story:first-child { grid-row: auto; min-height: 380px; }
  .sx-index__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sx-rail .sx-story { flex-basis: calc((100% - 24px) / 2.2); }
}
@media (max-width: 600px) {
  .sx-head { align-items: flex-start; flex-direction: column; margin-bottom: 28px; }
  .sx-grid, .sx-appeal__list, .sx-duo__list { grid-template-columns: minmax(0, 1fr); }
  .sx-appeal__list, .sx-duo__list { gap: 18px; }
  .sx-story--feature, .sx-story--panel { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sx-story--feature .sx-story__body { padding-top: 18px; }
  .sx-story--panel .sx-story__media { aspect-ratio: 3 / 2; min-height: 0; }
  .sx-story--row { grid-template-columns: 104px minmax(0, 1fr); gap: 14px; }
  .sx-story--date .sx-story__body { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; }
  .sx-story__day b { font-size: 2.3rem; }
  .sx-story--date h3 { font-size: 1.24rem; }
  .sx-index__list { gap: 10px; }
  .sx-index__list a { grid-template-columns: 42px minmax(0, 1fr); gap: 2px 12px; min-height: 0; padding: 14px; }
  .sx-index__icon { width: 42px; height: 42px; }
  .sx-index__icon svg { width: 21px; height: 21px; }
  .sx-index__list strong { font-size: 1.05rem; }
  .sx-rail .sx-story { flex-basis: 82%; }
  .sx-mosaic .sx-story:first-child .sx-story__body { padding: 90px 24px 24px; }
  .sx-spotlight .sx-story--overlay, .sx-latest > .sx-story--overlay { min-height: 360px; }
  .sx-latest > .sx-story--overlay .sx-story__body { padding: 90px 24px 24px; }
  .sx-spotlight .sx-story--overlay .sx-story__body { padding: 90px 24px 24px; }
}
@media (max-width: 420px) {
  .sx-index__list { grid-template-columns: minmax(0, 1fr); }
}

/* Mission band: the label is white on blue. */
body.home .social-mission .section-kicker { color: #fff; }
