/* /settlements/roundups/ and weekly roundups (GEN-1535). Loaded only on those
   pages, after settlement-hubs.css. Existing theme tokens only. The soft blue
   panel, the clickable tiles (C1: whole tile is the link, visible arrow
   button) and the white FAQ rows (C) are ported from the approved claim-rn
   homepage sections (GEN-1635), not invented here. */

.sta .st-hub__head { padding-bottom: 4px; }

/* Soft blue panel; on phones it runs edge to edge as a tinted band. */
.sta-panel { display: flex; flex-direction: column; gap: 24px; margin: 32px 0; padding: 40px; border-radius: 24px; background: rgb(0 81 255 / 5%); }
.sta-panel__title { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); }

/* Signup panel */
.sta-cta { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px 48px; }
.sta-cta__copy { display: flex; flex-direction: column; gap: 8px; max-width: 640px; }
.sta-cta__title { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); }
.sta-cta__text { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.sta-cta__action { display: flex; flex: none; flex-direction: column; align-items: center; gap: 8px; }
.sta-cta__btn { text-decoration: none; white-space: nowrap; }
.sta-cta__btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.sta-cta__note { margin: 0; font-size: 13px; line-height: 1.4; color: var(--ink-2); }

/* Closing soon + this week */
.sta-soon { margin-top: 40px; }
.sta-more { margin: 14px 0 0; }
.sta-textlink { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; font-size: 16px; font-weight: 600; color: var(--blue); text-decoration: none; }
.sta-textlink svg { width: 18px; height: 18px; }
.sta-textlink:hover { text-decoration: underline; }
.sta-textlink:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.sta-week { margin: 0 0 32px; }
/* Week and archive pages: same gap under the intro as the landing's first section. */
.sta--week .sthub-groups, .sta--archive .sta-weeks { margin-top: 40px; }

/* Clickable tiles (C1) */
.sta-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.sta-tiles--one { grid-template-columns: minmax(0, 560px); }
.sta-tiles--weeks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sta-tile { display: flex; align-items: center; gap: 12px; height: 100%; padding: 12px 12px 12px 12px; border: 1px solid rgb(0 81 255 / 12%); border-radius: 12px; background: #fff; color: var(--ink); text-decoration: none; transition: border-color 160ms ease, box-shadow 160ms ease; }
.sta-tile:hover { border-color: var(--blue); box-shadow: 0 2px 10px rgb(0 81 255 / 10%); text-decoration: none; }
.sta-tile:active { background: rgb(0 81 255 / 6%); }
.sta-tile:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.sta-tile__icon { display: flex; flex: none; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 9px; background: rgb(0 81 255 / 10%); color: var(--blue); }
.sta-tile__text { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.sta-tile__label { font-size: 16px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.sta-tile__sub { font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.sta-tile__arrow { display: flex; flex: none; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 100px; background: var(--blue); color: #fff; transition: transform 160ms ease, background-color 160ms ease; }
.sta-tile__arrow svg { width: 18px; height: 18px; }
.sta-tile:hover .sta-tile__arrow { background: var(--blue-hover); transform: translateX(2px); }

/* FAQ (C): white question rows on the soft panel, two columns on desktop */
.sta-faq__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; align-items: start; }
.sta-faq__col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sta-faq__item { padding: 0 18px; border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgb(0 81 255 / 8%); }
.sta-faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--ink); cursor: pointer; list-style: none; }
.sta-faq__item summary::-webkit-details-marker { display: none; }
.sta-faq__item summary::after { content: ""; flex: none; width: 8px; height: 8px; margin-right: 4px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg) translate(-2px, -2px); transition: transform .15s ease; }
.sta-faq__item[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.sta-faq__item summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 8px; }
.sta-faq__item p { margin: 0; padding: 0 0 16px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }

/* Week pages */
.sta-weeknav { flex-wrap: wrap; align-items: center; }
.sta-weeknav a { text-decoration: none; }
.sta-weeknav a:hover { text-decoration: underline; }
.sta-weeknav a:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.sta-weeknav a[rel="prev"] + a:not([rel]) { margin-left: auto; }
.sta-weeknav a:not([rel]) + a[rel="next"] { margin-left: 24px; }

@media (max-width: 1024px) {
  .sta-tiles--weeks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .sta-faq__cols { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .sta-faq__col { gap: 8px; }
}
@media (max-width: 768px) {
  /* .wrap is 0 20px at this width (style.css), so the band bleeds exactly to the viewport edges. */
  .sta-panel { gap: 20px; margin: 28px -20px; padding: 32px 20px; border-radius: 0; }
  .sta-panel__title, .sta-cta__title { font-size: 21px; }
  .sta-cta { flex-direction: column; align-items: stretch; }
  .sta-cta__action { align-items: stretch; }
  .sta-cta__btn { width: 100%; }
  .sta-faq__item { padding: 0 12px; }
  .sta-faq__item summary { padding: 14px 0; }
  .sta-soon, .sta--week .sthub-groups, .sta--archive .sta-weeks { margin-top: 28px; }
}
@media (max-width: 560px) {
  .sta-tiles, .sta-tiles--weeks, .sta-tiles--one { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .sta-cta__btn { white-space: normal; }
}

/* This week's roundup inline list: the reason a row is in this week's roundup. */
.sta-reason { margin: 4px 0 0; font-size: 13px; line-height: 1.4; color: var(--ink-2); }

/* This week's roundup: one action row under the list (Show more and links). Stacks on phones. */
.sta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin: 18px 0 0; }
.sta-actions .sthub-more { margin: 0; }
.sta-actions .sta-textlink { min-height: 44px; }
@media (max-width: 599px) {
  .sta-actions { flex-direction: column; align-items: stretch; gap: 8px; }
  .sta-actions .sthub-more__btn { width: 100%; }
  .sta-actions .sta-textlink { justify-content: center; }
}
