/* Home composition adapted to the latest platform references while retaining
   the approved Haiilo palette, copy and local demo behaviours. */
body[data-scene="1"] #main .home-newsroom-greeting {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  margin: 0 2px 12px;
}

body[data-scene="1"] #main .home-newsroom-greeting h1 {
  margin: 0;
  color: #1b1f26;
  font-size: clamp(27px, 2vw, 32px);
  font-weight: 600;
  letter-spacing: -.55px;
  line-height: 1.18;
}

body[data-scene="1"] #main .home-newsroom-datetime {
  margin: 0;
  color: #515c6c;
  font-size: 14px;
}

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

body[data-scene="1"] #main .home-context-label {
  margin-bottom: 8px;
  color: #515c6c;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .025em;
}

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

body[data-scene="1"] #main .home-context-chip {
  min-height: 35px;
  padding: 7px 11px;
  border: 1px solid #d7dbe0;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
  color: #515c6c;
  font-size: 13px;
}

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-recommended {
  margin: 0 0 26px;
}

body[data-scene="1"] #main .home-recommended-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin: 0 2px 12px;
}

body[data-scene="1"] #main .home-recommended-heading h2 {
  margin: 3px 0 0;
  color: #1b1f26;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.2px;
}

body[data-scene="1"] #main .home-section-eyebrow {
  color: #515c6c;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .045em;
  text-transform: uppercase;
}

body[data-scene="1"] #main .home-recommended-heading .btn.link {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 0;
  color: #008194;
  font-size: 13px;
}

body[data-scene="1"] #main .home-recommended-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) repeat(2, minmax(0, .92fr));
  gap: 14px;
  align-items: stretch;
}

body[data-scene="1"] #main .home-recommended-card {
  display: flex;
  min-width: 0;
  min-height: 280px;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid #d7dbe0;
  border-top: 3px solid #008194;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgb(27 31 38 / 5%);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

body[data-scene="1"] #main .home-recommended-card:hover {
  border-color: #a8c9cd;
  box-shadow: 0 8px 20px rgb(27 31 38 / 10%);
  transform: translateY(-2px);
}

body[data-scene="1"] #main .home-recommended-image {
  height: 112px;
  flex: 0 0 112px;
  overflow: hidden;
  background: #e7eef0;
}

body[data-scene="1"] #main .home-recommended-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}

body[data-scene="1"] #main .home-recommended-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 14px 15px 13px;
}

body[data-scene="1"] #main .home-recommended-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: #515c6c;
  font-size: 11px;
  line-height: 1.35;
}

body[data-scene="1"] #main .home-recommended-meta span:first-child {
  color: #008194;
  font-weight: 600;
}

body[data-scene="1"] #main .home-recommended-card h3 {
  display: -webkit-box;
  margin: 8px 0 6px;
  overflow: hidden;
  color: #1b1f26;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.15px;
  line-height: 1.28;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

body[data-scene="1"] #main .home-recommended-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #515c6c;
  font-size: 12px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body[data-scene="1"] #main .home-recommended-footer {
  display: flex;
  width: 100%;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 9px;
  margin-top: auto;
  padding-top: 12px;
}

body[data-scene="1"] #main .home-recommended-author,
body[data-scene="1"] #main .home-recommended-read-time {
  color: #667180;
  font-size: 11px;
}

body[data-scene="1"] #main .home-recommended-read-time::before {
  content: "·";
  margin-right: 8px;
}

body[data-scene="1"] #main .home-recommended-link {
  min-height: 32px;
  margin-left: auto;
  padding: 6px 9px;
  border: 1px solid #d7dbe0;
  border-radius: 7px;
  background: #fff;
  color: #008194;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

body[data-scene="1"] #main .home-recommended-link:hover,
body[data-scene="1"] #main .home-recommended-link:focus-visible {
  border-color: #008194;
  background: #f2f8f8;
}

body[data-scene="1"] #main .home-recommended-card-featured {
  display: grid;
  grid-template-columns: minmax(150px, .88fr) minmax(0, 1.22fr);
  min-height: 280px;
  border-top-color: #026371;
}

body[data-scene="1"] #main .home-recommended-card-featured .home-recommended-image {
  height: 100%;
  min-height: 280px;
}

body[data-scene="1"] #main .home-recommended-card-featured .home-recommended-copy {
  padding: 17px 17px 15px;
}

body[data-scene="1"] #main .home-recommended-card-featured h3 { font-size: 19px; }

body[data-scene="1"] #main .home-day-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(300px, .92fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 20px;
}

body[data-scene="1"] #main .home-priority-column,
body[data-scene="1"] #main .home-side {
  min-width: 0;
}

body[data-scene="1"] #main .home-day-overview .home-side {
  gap: 12px;
}

body[data-scene="1"] #main .home-day-overview .card {
  border: 1px solid #d7dbe0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 4px rgb(27 31 38 / 5%);
}

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

body[data-scene="1"] #main .home-day-overview .home-attention,
body[data-scene="1"] #main .home-day-overview .home-actions {
  gap: 14px;
  padding: 18px 19px;
}

body[data-scene="1"] #main .home-day-overview .home-actions {
  padding: 17px 18px;
}

body[data-scene="1"] #main .home-day-overview .card-header {
  margin-bottom: 1px;
}

body[data-scene="1"] #main .home-day-overview .home-section-title strong,
body[data-scene="1"] #main .home-day-overview .card-header > strong {
  color: #1b1f26;
  font-size: 15px;
}

body[data-scene="1"] #main .home-section-marker {
  display: inline-flex;
  width: 25px;
  height: 25px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #f2f4f7;
}

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

body[data-scene="1"] #main .home-policy-body h2 {
  margin: 2px 0 5px;
  color: #1b1f26;
  font-size: 19px;
}

body[data-scene="1"] #main .home-policy-body p {
  color: #515c6c;
  font-size: 13px;
}

body[data-scene="1"] #main .home-day-overview .home-action-list {
  gap: 0;
}

body[data-scene="1"] #main .home-day-overview .home-action-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 11px 0;
  border-bottom: 1px solid #ebecf0;
}

body[data-scene="1"] #main .home-day-overview .home-action-row:last-child { border-bottom: 0; }

body[data-scene="1"] #main .home-day-overview .home-action-copy { min-width: 0; }

body[data-scene="1"] #main .home-day-overview .home-action-copy strong {
  display: block;
  color: #1b1f26;
  font-size: 13px;
  line-height: 1.35;
}

body[data-scene="1"] #main .home-day-overview .home-action-row > .btn {
  min-height: 32px;
  padding: 6px 9px;
  font-size: 12px;
}

body[data-scene="1"] #main .home-day-overview .home-action-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

body[data-scene="1"] #main .home-day-overview .home-schedule,
body[data-scene="1"] #main .home-day-overview .home-tasks,
body[data-scene="1"] #main .home-day-overview .home-connected,
body[data-scene="1"] #main .home-day-overview .home-widget {
  padding: 15px 16px;
}

body[data-scene="1"] #main .home-day-overview .home-tasks .card-header { margin-bottom: 8px; }
body[data-scene="1"] #main .home-day-overview .home-tasks .card-header .home-line-icon { color: #008194; }

body[data-scene="1"] #main .home-day-overview .home-timeline-item {
  padding: 9px 0 11px;
}

body[data-scene="1"] #main .home-day-overview .home-timeline-item strong {
  color: #1b1f26;
  font-size: 12px;
}

body[data-scene="1"] #main .home-day-overview .home-secondary-grid,
body[data-scene="1"] #main .home-secondary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

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

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

body[data-scene="1"] #main .home-secondary-grid .home-section-title strong {
  color: #1b1f26;
  font-size: 15px;
}

body[data-scene="1"] #main .home-secondary-grid .home-section-marker .home-line-icon { width: 14px; height: 14px; }

body[data-scene="1"] #main .home-secondary-grid .home-widget-main { grid-column: 1 / -1; }

body[data-scene="1"] #main .home-secondary-grid .home-widget-main .home-widget { margin: 0; }
body[data-scene="1"] #main .home-secondary-grid .home-community-inline { grid-column: 1 / -1; }

@media (max-width: 1100px) {
  body[data-scene="1"] #main .home-recommended-grid {
    grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, .9fr));
    gap: 10px;
  }

  body[data-scene="1"] #main .home-recommended-card { min-height: 300px; }
  body[data-scene="1"] #main .home-recommended-card-featured { grid-template-columns: minmax(120px, .72fr) minmax(0, 1fr); }
  body[data-scene="1"] #main .home-day-overview { grid-template-columns: minmax(0, 1.15fr) minmax(290px, .92fr); gap: 12px; }
  body[data-scene="1"] #main .home-secondary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  body[data-scene="1"] #main .home-recommended-grid { grid-template-columns: minmax(0, 1fr); }
  body[data-scene="1"] #main .home-recommended-card,
  body[data-scene="1"] #main .home-recommended-card-featured {
    display: grid;
    grid-template-columns: minmax(112px, .36fr) minmax(0, 1fr);
    min-height: 0;
  }
  body[data-scene="1"] #main .home-recommended-image,
  body[data-scene="1"] #main .home-recommended-card-featured .home-recommended-image {
    height: 100%;
    min-height: 176px;
  }
  body[data-scene="1"] #main .home-recommended-copy,
  body[data-scene="1"] #main .home-recommended-card-featured .home-recommended-copy { padding: 13px 14px; }
  body[data-scene="1"] #main .home-recommended-card h3 { font-size: 16px; }
  body[data-scene="1"] #main .home-recommended-card-featured h3 { font-size: 17px; }
  body[data-scene="1"] #main .home-day-overview { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 620px) {
  body[data-scene="1"] #main .home-newsroom-greeting h1 { font-size: 25px; }
  body[data-scene="1"] #main .home-context { margin-bottom: 20px; }
  body[data-scene="1"] #main .home-context-chips { gap: 7px; }
  body[data-scene="1"] #main .home-context-chip { min-height: 32px; padding: 6px 8px; font-size: 11px; }
  body[data-scene="1"] #main .home-recommended { margin-bottom: 20px; }
  body[data-scene="1"] #main .home-recommended-heading { align-items: flex-start; }
  body[data-scene="1"] #main .home-recommended-heading h2 { font-size: 18px; }
  body[data-scene="1"] #main .home-recommended-grid { gap: 9px; }
  body[data-scene="1"] #main .home-recommended-card,
  body[data-scene="1"] #main .home-recommended-card-featured {
    grid-template-columns: minmax(88px, .32fr) minmax(0, 1fr);
  }
  body[data-scene="1"] #main .home-recommended-image,
  body[data-scene="1"] #main .home-recommended-card-featured .home-recommended-image { min-height: 190px; }
  body[data-scene="1"] #main .home-recommended-copy,
  body[data-scene="1"] #main .home-recommended-card-featured .home-recommended-copy { padding: 11px 10px; }
  body[data-scene="1"] #main .home-recommended-meta { gap: 4px; font-size: 10px; }
  body[data-scene="1"] #main .home-recommended-card h3,
  body[data-scene="1"] #main .home-recommended-card-featured h3 { margin: 6px 0 4px; font-size: 15px; }
  body[data-scene="1"] #main .home-recommended-card p { font-size: 11px; }
  body[data-scene="1"] #main .home-recommended-footer { gap: 5px 7px; padding-top: 8px; }
  body[data-scene="1"] #main .home-recommended-author,
  body[data-scene="1"] #main .home-recommended-read-time { font-size: 10px; }
  body[data-scene="1"] #main .home-recommended-link { min-height: 29px; padding: 5px 7px; font-size: 11px; }
  body[data-scene="1"] #main .home-day-overview .home-attention,
  body[data-scene="1"] #main .home-day-overview .home-actions { padding: 15px 14px; }
  body[data-scene="1"] #main .home-day-overview .home-action-row { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 7px; }
  body[data-scene="1"] #main .home-day-overview .home-action-row > .btn { padding: 6px 7px; }
  body[data-scene="1"] #main .home-secondary-grid { grid-template-columns: minmax(0, 1fr); }
  body[data-scene="1"] #main .home-recommended-heading > .btn { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  body[data-scene="1"] #main .home-recommended-card { transition: none; }
  body[data-scene="1"] #main .home-recommended-card:hover { transform: none; }
}
