/* Approved Catalyst home styling. All page styling stays inside Scene 1. */
body[data-scene="1"] {
  --home-ink: #1b1f26;
  --home-muted: #515c6c;
  --home-line: #d7dbe0;
  --home-blue: #008194;
  --home-teal: #008194;
  --home-amber: #9f6100;
  background: #f2f4f7;
}

body[data-scene="1"] #main {
  padding: 24px clamp(20px, 2.6vw, 36px) 40px;
  color: var(--home-ink);
}

body[data-scene="1"] #main .home-newsroom-greeting {
  align-items: center;
  gap: 8px 20px;
  margin: 0 2px 16px;
}

body[data-scene="1"] #main .home-newsroom-greeting h1 {
  color: var(--home-ink);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.45px;
  line-height: 1.2;
}

body[data-scene="1"] #main .home-newsroom-greeting .home-newsroom-datetime {
  color: var(--home-muted);
  font-size: 14px;
}

body[data-scene="1"] #main .home-newsroom-hero {
  height: 336px;
  min-height: 336px;
  margin-bottom: 18px;
  border: 1px solid rgb(5 40 53 / 15%);
  border-radius: 16px;
  background: #073d48;
  box-shadow: 0 3px 12px rgb(27 31 38 / 9%);
}

body[data-scene="1"] #main .home-newsroom-media { width: 46%; }

body[data-scene="1"] #main .home-newsroom-media img {
  filter: saturate(.88) contrast(1.01);
}

body[data-scene="1"] #main .home-newsroom-overlay {
  background:
    linear-gradient(90deg, #073d48 0%, #073d48 43%, rgb(7 61 72 / 88%) 56%, rgb(7 61 72 / 38%) 76%, rgb(7 61 72 / 4%) 100%),
    linear-gradient(0deg, rgb(4 34 42 / 16%), transparent 52%);
}

body[data-scene="1"] #main .home-newsroom-content {
  width: 70%;
  height: 100%;
  min-height: 0;
  max-width: 780px;
  justify-content: space-between;
  padding: 23px clamp(24px, 3.8vw, 52px);
}

body[data-scene="1"] #main .home-newsroom-provenance {
  color: rgb(255 255 255 / 75%);
  font-size: 12px;
  font-weight: 500;
}

body[data-scene="1"] #main .home-newsroom-story-label {
  color: #b8e9e7;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .015em;
  text-transform: none;
}

body[data-scene="1"] #main .home-newsroom-story-byline {
  margin-bottom: 6px;
  color: rgb(255 255 255 / 78%);
  font-size: 13px;
  font-weight: 400;
}

body[data-scene="1"] #main .home-newsroom-story h2 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.35px;
  line-height: 1.15;
}

body[data-scene="1"] #main .home-newsroom-story > p:not(.home-newsroom-story-byline) {
  max-width: 540px;
  margin-top: 8px;
  color: rgb(255 255 255 / 85%);
  font-size: 14px;
  line-height: 1.45;
}

body[data-scene="1"] #main .home-newsroom-actions {
  gap: 10px;
  margin-top: 12px;
}

body[data-scene="1"] #main .home-newsroom-actions .btn.primary {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid #008194;
  border-radius: 8px;
  background: #008194;
  box-shadow: none;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

body[data-scene="1"] #main .home-newsroom-actions .btn.primary:hover,
body[data-scene="1"] #main .home-newsroom-actions .btn.primary:focus-visible {
  border-color: #017384;
  background: #017384;
  color: #fff;
}

body[data-scene="1"] #main .home-newsroom-actions .btn.link {
  min-height: 38px;
  padding: 7px 11px;
  border: 1px solid rgb(255 255 255 / 62%);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

body[data-scene="1"] #main .home-newsroom-actions .btn.link:hover,
body[data-scene="1"] #main .home-newsroom-actions .btn.link:focus-visible {
  border-color: #fff;
  background: rgb(255 255 255 / 10%);
  color: #fff;
}

body[data-scene="1"] #main .home-newsroom-carousel-controls { gap: 7px; margin-top: 8px; }

body[data-scene="1"] #main .home-newsroom-carousel-button,
body[data-scene="1"] #main .home-newsroom-indicator,
body[data-scene="1"] #main .home-newsroom-carousel-toggle {
  border-radius: 8px;
  background: rgb(255 255 255 / 6%);
}

body[data-scene="1"] #main .home-newsroom-indicator[aria-current="true"] {
  border-color: #fff;
  background: #fff;
  color: #073d48;
}

body[data-scene="1"] #main .home-newsroom-carousel-button:hover,
body[data-scene="1"] #main .home-newsroom-indicator:hover,
body[data-scene="1"] #main .home-newsroom-carousel-toggle:hover,
body[data-scene="1"] #main .home-newsroom-carousel-button:focus-visible,
body[data-scene="1"] #main .home-newsroom-indicator:focus-visible,
body[data-scene="1"] #main .home-newsroom-carousel-toggle:focus-visible {
  background: rgb(255 255 255 / 17%);
  outline-color: #b8e9e7;
}

body[data-scene="1"] #main .home-context {
  margin-bottom: 18px;
}

body[data-scene="1"] #main .home-context-label {
  margin-bottom: 8px;
  color: var(--home-muted);
  font-size: 13px;
  font-weight: 600;
}

body[data-scene="1"] #main .home-context-chips { gap: 8px; }

body[data-scene="1"] #main .home-context-chip {
  min-height: 36px;
  padding: 7px 12px;
  border-color: var(--home-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
  color: var(--home-muted);
  font-size: 13px;
  font-weight: 400;
}

body[data-scene="1"] #main .home-context-chip .home-line-icon { color: #008194; }
body[data-scene="1"] #main .home-context-chip-green { color: #008458; }

body[data-scene="1"] #main .home-grid {
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1.1fr) minmax(286px, .78fr);
  grid-template-rows: max-content max-content 1fr;
  gap: 16px;
  align-items: start;
}

body[data-scene="1"] #main .home-grid > .card,
body[data-scene="1"] #main .home-side > .card {
  border: 1px solid #d7dbe0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 3px rgb(27 31 38 / 6%);
}

body[data-scene="1"] #main .home-grid > .card { padding: 18px 19px; }
body[data-scene="1"] #main .home-side > .card { padding: 16px 17px; }

body[data-scene="1"] #main .home-attention {
  border-color: #ffdea8 !important;
  border-left: 3px solid #9f6100 !important;
  background: #fff !important;
}

body[data-scene="1"] #main .home-attention .home-section-marker,
body[data-scene="1"] #main .home-actions .home-section-marker,
body[data-scene="1"] #main .home-updates .home-section-marker,
body[data-scene="1"] #main .home-explore .home-section-marker { display: none; }

body[data-scene="1"] #main .home-grid .card-header,
body[data-scene="1"] #main .home-side .card-header {
  min-height: 28px;
  margin-bottom: 14px;
}

body[data-scene="1"] #main .home-section-title {
  gap: 0;
  color: var(--home-ink);
  font-size: 16px;
  font-weight: 600;
}

body[data-scene="1"] #main .home-priority {
  color: #9f6100;
  font-size: 13px;
  font-weight: 600;
}

body[data-scene="1"] #main .home-required {
  border-radius: 4px;
  background: #ffdea8;
  color: #9f6100;
  font-size: 12px;
  font-weight: 600;
}

body[data-scene="1"] #main .home-attention .badge.red {
  background: #ffdea8;
  color: #9f6100;
}

body[data-scene="1"] #main .home-policy-body { gap: 14px; margin-top: 6px; }

body[data-scene="1"] #main .home-feature-icon {
  width: 72px;
  height: 72px;
  border-color: #ffdea8;
  border-radius: 8px;
  background: #fff7e8;
  color: #9f6100;
}

body[data-scene="1"] #main .home-feature-icon .home-line-icon { width: 42px; height: 42px; }

body[data-scene="1"] #main .home-policy-body h2 {
  color: var(--home-ink);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.2px;
}

body[data-scene="1"] #main .home-policy-body p {
  color: var(--home-muted);
  font-size: 14px;
}

body[data-scene="1"] #main .home-tags { gap: 6px; }

body[data-scene="1"] #main .home-card-actions { gap: 12px; padding-top: 6px; }

body[data-scene="1"] #main .btn {
  min-height: 40px;
  border-color: #d7dbe0;
  border-radius: 8px;
  color: #1b1f26;
  font-size: 14px;
  font-weight: 500;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

body[data-scene="1"] #main .btn.primary {
  border-color: #008194;
  background: #008194;
  box-shadow: none;
  color: #fff;
  font-weight: 600;
}

body[data-scene="1"] #main .btn.primary:hover,
body[data-scene="1"] #main .btn.primary:focus-visible {
  border-color: #017384;
  background: #017384;
}

body[data-scene="1"] #main .btn.primary:active { background: #026371; }

body[data-scene="1"] #main .btn:not(.primary):not(.link):hover,
body[data-scene="1"] #main .btn:not(.primary):not(.link):focus-visible {
  border-color: #008194;
  background: #f2f4f7;
}

body[data-scene="1"] #main .btn.link {
  min-height: 34px;
  padding-right: 2px;
  padding-left: 2px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: #008194;
  font-weight: 600;
  text-decoration: none;
}

body[data-scene="1"] #main .btn.link:hover,
body[data-scene="1"] #main .btn.link:focus-visible {
  color: #017384;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body[data-scene="1"] #main .home-action-row {
  grid-template-columns: 42px minmax(0, 1fr) auto 16px;
  gap: 11px;
  min-height: 72px;
  border-color: #ebecf0;
}

body[data-scene="1"] #main .home-action-icon,
body[data-scene="1"] #main .home-update-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #f2f4f7;
  color: #008194;
}

body[data-scene="1"] #main .home-action-icon .home-line-icon,
body[data-scene="1"] #main .home-update-icon .home-line-icon { width: 22px; height: 22px; }

body[data-scene="1"] #main .home-action-copy,
body[data-scene="1"] #main .home-action-row .btn,
body[data-scene="1"] #main .home-update-row strong,
body[data-scene="1"] #main .home-preview-copy strong {
  color: var(--home-ink);
}

body[data-scene="1"] #main .home-action-copy strong,
body[data-scene="1"] #main .home-update-row strong,
body[data-scene="1"] #main .home-preview-copy strong { font-weight: 600; }

body[data-scene="1"] #main .home-action-row .btn {
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
}

body[data-scene="1"] #main .home-action-row .btn.link {
  min-height: 34px;
  padding: 4px 2px;
  color: #008194;
}

body[data-scene="1"] #main .home-update-row,
body[data-scene="1"] #main .home-action-row { border-color: #ebecf0; }

body[data-scene="1"] #main .home-update-row .small,
body[data-scene="1"] #main .home-action-copy .small,
body[data-scene="1"] #main .home-preview-copy .small,
body[data-scene="1"] #main .home-update-meta,
body[data-scene="1"] #main .home-read-time { color: var(--home-muted); }

body[data-scene="1"] #main .home-recommend { color: #008194; font-weight: 600; }

body[data-scene="1"] #main .home-preview-row { gap: 12px; }
body[data-scene="1"] #main .home-preview-thumb { border-radius: 8px; }
body[data-scene="1"] #main .home-preview-actions .btn { min-height: 34px; }

body[data-scene="1"] #main .home-side { gap: 12px; }
body[data-scene="1"] #main .home-grid > .home-side { grid-row: 1 / span 3; }
body[data-scene="1"] #main .home-calendar-mark,
body[data-scene="1"] #main .home-sync-mark { color: #008194; }

body[data-scene="1"] #main .home-timeline::before { background: #d7dbe0; }
body[data-scene="1"] #main .timeline-blue .home-timeline-dot,
body[data-scene="1"] #main .timeline-teal .home-timeline-dot,
body[data-scene="1"] #main .timeline-amber .home-timeline-dot { background: #008194; }

body[data-scene="1"] #main .home-task-row { border-color: #ebecf0; color: var(--home-ink); }
body[data-scene="1"] #main .home-task-count,
body[data-scene="1"] #main .home-system-more { background: #f2f4f7; color: var(--home-muted); }

body[data-scene="1"] #main .home-community-inline .card-header { margin-bottom: 9px; }
body[data-scene="1"] #main .home-community-inline > p { margin-bottom: 12px; }
body[data-scene="1"] #main .home-community-rows .list-row {
  align-items: flex-start;
  gap: 8px;
  padding: 10px 0;
  border-color: #ebecf0;
}

body[data-scene="1"] #main .home-community-rows .list-row > div:first-child { min-width: 0; }
body[data-scene="1"] #main .home-community-rows .list-row strong { color: var(--home-ink); font-weight: 600; }
body[data-scene="1"] #main .home-community-rows .list-row p { color: var(--home-muted); }
body[data-scene="1"] #main .home-community-rows .list-row .row { gap: 6px; }
body[data-scene="1"] #main .home-community-rows .list-row .btn { min-height: 32px; font-size: 12px; }

@media (max-width: 1250px) {
  body[data-scene="1"] #main .home-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto;
  }

  body[data-scene="1"] #main .home-grid > .home-side { grid-row: auto; }

  body[data-scene="1"] #main .home-grid > .home-side {
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, .8fr);
  }
}

@media (max-width: 950px) and (min-width: 701px) {
  body[data-scene="1"] #main .home-newsroom-hero { height: 382px; min-height: 382px; }
  body[data-scene="1"] #main .home-newsroom-content { width: 74%; padding: 23px 32px; }
}

@media (max-width: 700px) {
  body[data-scene="1"] #main { padding: 22px 14px 34px; }
  body[data-scene="1"] #main .home-newsroom-greeting { display: block; margin-bottom: 14px; }
  body[data-scene="1"] #main .home-newsroom-greeting h1 { font-size: 28px; }
  body[data-scene="1"] #main .home-newsroom-greeting .home-newsroom-datetime { margin-top: 4px; }
  body[data-scene="1"] #main .home-newsroom-hero { height: 430px; min-height: 430px; margin-bottom: 16px; }
  body[data-scene="1"] #main .home-newsroom-media { width: 100%; }
  body[data-scene="1"] #main .home-newsroom-content { width: 100%; padding: 24px; }
  body[data-scene="1"] #main .home-newsroom-story h2 { font-size: 26px; }
  body[data-scene="1"] #main .home-newsroom-carousel-controls { margin-top: 10px; }
  body[data-scene="1"] #main .home-context { margin-bottom: 16px; }
  body[data-scene="1"] #main .home-grid { display: flex; flex-direction: column; gap: 12px; }
  body[data-scene="1"] #main .home-grid > .home-attention,
  body[data-scene="1"] #main .home-grid > .home-actions,
  body[data-scene="1"] #main .home-grid > .home-updates,
  body[data-scene="1"] #main .home-grid > .home-explore,
  body[data-scene="1"] #main .home-grid > .home-side,
  body[data-scene="1"] #main .home-grid > .home-widget-main { width: 100%; }
  body[data-scene="1"] #main .home-grid > .card,
  body[data-scene="1"] #main .home-side > .card { padding: 16px; }
  body[data-scene="1"] #main .home-side { display: flex !important; align-items: stretch !important; gap: 12px; }
  body[data-scene="1"] #main .home-action-row { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 9px; min-height: 68px; }
  body[data-scene="1"] #main .home-action-icon,
  body[data-scene="1"] #main .home-update-icon { width: 38px; height: 38px; }
  body[data-scene="1"] #main .home-action-row .btn { padding: 5px 8px; font-size: 12px; }
  body[data-scene="1"] #main .home-preview-row { grid-template-columns: 78px minmax(0, 1fr); gap: 10px; }
  body[data-scene="1"] #main .home-preview-actions { grid-column: 2; flex-direction: row; flex-wrap: wrap; }
  body[data-scene="1"] #main .home-policy-body { grid-template-columns: 58px minmax(0, 1fr); gap: 11px; }
  body[data-scene="1"] #main .home-feature-icon { width: 58px; height: 58px; }
  body[data-scene="1"] #main .home-feature-icon .home-line-icon { width: 36px; height: 36px; }
}

@media (max-width: 390px) {
  body[data-scene="1"] #main { padding-right: 12px; padding-left: 12px; }
  body[data-scene="1"] #main .home-newsroom-greeting h1 { font-size: 26px; }
  body[data-scene="1"] #main .home-newsroom-hero { height: 452px; min-height: 452px; }
  body[data-scene="1"] #main .home-newsroom-content { padding: 22px 20px; }
  body[data-scene="1"] #main .home-newsroom-story h2 { font-size: 25px; }
  body[data-scene="1"] #main .home-newsroom-actions { align-items: flex-start; flex-direction: column; gap: 8px; width: 100%; }
  body[data-scene="1"] #main .home-newsroom-actions .btn.primary,
  body[data-scene="1"] #main .home-newsroom-actions .btn.link { width: 100%; justify-content: center; }
  body[data-scene="1"] #main .home-newsroom-actions .btn.link { min-height: 36px; }
  body[data-scene="1"] #main .home-action-row { grid-template-columns: 36px minmax(0, 1fr); }
  body[data-scene="1"] #main .home-action-row .btn { grid-column: 2; justify-self: start; margin: -3px 0 8px; }
}

@media (prefers-reduced-motion: reduce) {
  body[data-scene="1"] #main .home-newsroom-story,
  body[data-scene="1"] #main .home-newsroom-media img,
  body[data-scene="1"] #main .btn {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}

/* Keep inverse carousel controls legible after the general button rules. */
body[data-scene="1"] #main .home-newsroom-carousel-controls .btn {
  color: #fff;
  border-color: rgb(255 255 255 / 55%);
  background: rgb(255 255 255 / 8%);
}
body[data-scene="1"] #main .home-newsroom-carousel-controls .btn[aria-current="true"] {
  color: #073d48;
  border-color: #fff;
  background: #fff;
}
body[data-scene="1"] #main .home-newsroom-carousel-controls .btn:hover {
  color: #fff;
  background: rgb(255 255 255 / 18%);
}
body[data-scene="1"] #main .home-newsroom-carousel-controls .btn[aria-current="true"]:hover {
  color: #073d48;
  background: #fff;
}
body[data-scene="1"] #main .home-section-marker { display: none; }

/* Compact mobile overview so the required work appears sooner. */
@media (max-width: 700px) {
  body[data-scene="1"] #main .home-context-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  body[data-scene="1"] #main .home-context-chip {
    width: auto;
    padding: 8px;
    font-size: 12px;
    line-height: 1.4;
  }
  body[data-scene="1"] #main .home-newsroom-carousel-controls { gap: 6px; }
  body[data-scene="1"] #main .home-newsroom-carousel-controls .btn {
    min-width: 40px;
    width: auto;
    height: 40px;
  }
  body[data-scene="1"] #main .home-newsroom-indicators { gap: 4px; }
  body[data-scene="1"] #main .home-newsroom-carousel-controls .home-newsroom-carousel-toggle { min-width: 48px; }
}
@media (max-width: 390px) {
  body[data-scene="1"] #main .home-newsroom-hero { height: 380px; min-height: 380px; }
  body[data-scene="1"] #main .home-newsroom-content { padding: 20px; }
}
@media (max-width: 350px) {
  body[data-scene="1"] #main .home-newsroom-hero { height: 440px; min-height: 440px; }
  body[data-scene="1"] #main .home-newsroom-content { padding: 16px; }
  body[data-scene="1"] #main .home-newsroom-carousel-controls { gap: 4px; }
}
