/* Home: scoped layout keeps the existing dashboard and global cards unchanged. */
#portal-home {
  --welcome-action-height: 46px;
  --welcome-card-heading-size: 17px;
}
#portal-home .welcome-layout {
  display: grid;
  gap: 16px;
}
#portal-home .welcome-focus {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 160px;
  align-items: center;
  min-width: 0;
  min-height: 48px;
  border: 1px solid #cedbeb;
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 3px 12px #081e400a;
  color: #081e40;
}
#portal-home .welcome-focus-label,
#portal-home .welcome-focus-actions {
  position: relative;
  isolation: isolate;
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 6px 62px 6px 18px;
  color: #fff;
}
#portal-home .welcome-focus-label::before,
#portal-home .welcome-focus-label::after,
#portal-home .welcome-focus-actions::before,
#portal-home .welcome-focus-actions::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
#portal-home .welcome-focus-label::before,
#portal-home .welcome-focus-actions::before {
  background: var(--portal-in-focus-accent, #0963cf);
}
#portal-home .welcome-focus-label::before {
  clip-path: polygon(0 0, 100% 0, calc(100% - 34px) 100%, 0 100%);
}
#portal-home .welcome-focus-label::after {
  background: linear-gradient(110deg, #071c40, #002451);
  clip-path: polygon(0 0, calc(100% - 20px) 0, calc(100% - 54px) 100%, 0 100%);
}
#portal-home .welcome-focus-actions::before {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 34px 100%);
}
#portal-home .welcome-focus-actions::after {
  background: linear-gradient(250deg, #071c40, #002451);
  clip-path: polygon(20px 0, 100% 0, 100% 100%, 54px 100%);
}
#portal-home .welcome-focus p {
  min-width: 0;
  margin: 0;
  padding: 6px 16px;
  text-align: center;
  font: 600 var(--welcome-card-heading-size)/1.4 var(--site-font);
  overflow-wrap: anywhere;
}
#portal-home .welcome-focus-actions {
  justify-content: center;
  padding: 6px 18px 6px 62px;
}
#portal-home .welcome-focus .compass-icon-action551 {
  display: grid;
  place-items: center;
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 5px;
  background: #fff;
  color: #0963cf;
  box-shadow: none;
  cursor: pointer;
}
#portal-home .welcome-focus .compass-icon-action551 svg {
  display: block;
  width: 16px;
  height: 16px;
}
#portal-home .welcome-focus .compass-icon-action551:hover {
  background: #eaf3ff;
}
#portal-home .welcome-focus .compass-icon-action551:focus-visible {
  outline: 2px solid #0963cf;
  outline-offset: 1px;
}
@media (max-width: 600px) {
  #portal-home .welcome-focus {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #portal-home .welcome-focus-label {
    grid-column: 1;
    padding: 6px 40px 6px 10px;
  }
  #portal-home .welcome-focus-label::before {
    clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
  }
  #portal-home .welcome-focus-label::after {
    clip-path: polygon(0 0, calc(100% - 8px) 0, calc(100% - 24px) 100%, 0 100%);
  }
  #portal-home .welcome-focus-actions::before {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 16px 100%);
  }
  #portal-home .welcome-focus-actions::after {
    clip-path: polygon(8px 0, 100% 0, 100% 100%, 24px 100%);
  }
  #portal-home .welcome-focus p {
    grid-column: 1 / -1;
    grid-row: 2;
    padding: 6px 12px 10px;
  }
  #portal-home .welcome-focus-actions {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
    padding: 6px 10px 6px 40px;
  }
}
#portal-home .bb-card {
  margin: 0;
  padding: 22px;
  min-width: 0;
}
/* Shared page-bar geometry and colours are defined in page-bars.css. */
#portal-home .bb-card.welcome-page-bar {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(270px, 1.55fr) minmax(0, 4.8fr) 126px;
  align-items: center;
  gap: 18px;
  min-height: 110px;
  padding: 18px 24px 18px 28px;
  border: 1px solid #dce7f2;
  border-radius: 9px;
  background: linear-gradient(110deg, #fff, #fbfdff) !important;
  box-shadow: 0 4px 16px #102d5808;
  color: #102d58;
}
#portal-home .welcome-page-bar::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: #08bada;
  pointer-events: none;
}
#portal-home .welcome-page-bar:not(:has(.welcome-weather)) {
  grid-template-columns: minmax(270px, 1.55fr) minmax(0, 4.8fr);
}
#portal-home .welcome-hero-heading {
  min-width: 0;
  padding-right: 20px;
  border-right: 1px solid #d8e2ef;
}
#portal-home .welcome-hero-heading h1 {
  margin: 0;
  color: #102d58;
  font: 700 23px/1.25 var(--site-font);
  letter-spacing: -0.7px;
  overflow-wrap: anywhere;
}
#portal-home .welcome-hero-heading p {
  margin: 5px 0 0;
  color: #647b9b;
  font: 400 12px/1.45 var(--site-font);
}
#portal-home .welcome-shortcuts {
  display: flex;
  align-items: center;
  justify-content: safe center;
  min-width: 0;
  gap: 10px;
  overflow-x: auto;
}
#portal-home .welcome-page-bar .welcome-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: auto;
  min-height: var(--welcome-action-height);
  gap: 8px;
  padding: 9px 8px;
  border: 1px solid var(--line, #d8e2ef);
  border-radius: 5px;
  background: #fff !important;
  color: #000 !important;
  font: 600 12px/1.65 var(--site-font);
  text-align: center;
  white-space: nowrap;
}
#portal-home .welcome-page-bar .welcome-link:is(:hover, :focus-visible) {
  background: #0078d4 !important;
  color: #fff !important;
  border-color: #0078d4;
}
#portal-home .welcome-page-bar .welcome-link strong {
  color: inherit !important;
  font: inherit;
  text-decoration: none;
}
#portal-home .welcome-page-bar .welcome-link > span:first-of-type {
  flex: none;
}
#portal-home .welcome-page-bar .welcome-link:is(:hover, :focus-visible) strong {
  text-decoration: none;
}
#portal-home .welcome-page-bar .welcome-link svg {
  color: #0078d4 !important;
  width: 20px;
  height: 20px;
}
#portal-home .welcome-page-bar .welcome-link:is(:hover, :focus-visible) svg {
  color: #fff !important;
}
#portal-home .welcome-shortcuts .welcome-arrow {
  display: none;
}
#portal-home .welcome-weather-condition {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
#portal-home .welcome-value {
  font-size: 24px;
  font-weight: 600;
}
#portal-home .welcome-section h3 {
  font-size: 17px;
  margin: 0 0 8px;
}
#portal-home .welcome-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  width: 100%;
  background: transparent;
  color: inherit;
  border: 0;
  border-radius: 0;
  padding: 15px 0;
  box-shadow: none;
  white-space: normal;
}
#portal-home .welcome-link + .welcome-link {
  border-top: 1px solid var(--line, #e5e7eb);
}
#portal-home .welcome-link > span:first-of-type {
  flex: 1;
  min-width: 0;
}
#portal-home .welcome-link strong {
  font-weight: 600;
}
#portal-home .welcome-link small {
  display: block;
  margin-top: 5px;
  color: var(--muted, #667085);
  font-size: 13px;
}
#portal-home .welcome-arrow {
  margin-left: auto;
}
#portal-home svg {
  width: 22px;
  height: 22px;
  flex: none;
}
#portal-home button:focus-visible {
  outline: 2px solid #087cf0;
  outline-offset: 3px;
}
#portal-home .welcome-link:hover strong {
  text-decoration: underline;
}
#portal-home .welcome-weather {
  min-width: 0;
  text-align: right;
  color: #183f61;
  border-left: 1px solid #d8e2ef;
  padding-left: 20px;
}
#portal-home [data-welcome-weather] {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-height: 64px;
  font-size: 13px;
}
#portal-home .welcome-weather svg {
  width: 30px;
  height: 32px;
  color: #1878ac;
}
#portal-home .welcome-weather strong {
  display: block;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.3;
}
#portal-home .welcome-weather small {
  display: block;
  font-size: 12px;
}
#portal-home .welcome-weather-source {
  display: flex;
  text-decoration: none;
}
#portal-home .welcome-weather-sun {
  stroke: #e59214;
  filter: drop-shadow(0 0 3px rgba(255, 190, 52, 0.3));
}
#portal-home .welcome-weather-sun circle,
#portal-home .welcome-weather-sun-disc {
  fill: #ffc94d;
  stroke: #e59214;
}
/* Home event list. */
#portal-home .welcome-events h3 {
  font-size: 17px;
  margin: 0 0 8px;
}
#portal-home .welcome-event-row {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 0 0 8px;
  margin: 0;
  width: 100%;
  min-width: 0;
  text-align: left;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  white-space: normal;
}
#portal-home .welcome-event-row > span:last-child {
  flex: 1;
  min-width: 0;
}
#portal-home .welcome-event-row strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
#portal-home .welcome-event-row small {
  display: block;
  font-size: 12px;
  margin-top: 6px;
  color: var(--muted, #64748b);
}
#portal-home .welcome-event-date {
  text-align: center;
  flex: 0 0 34px;
}
#portal-home .welcome-event-date small {
  text-transform: uppercase;
  font-size: 10px;
  margin-top: 0;
}
#portal-home .welcome-event-date strong {
  font-size: 18px;
  line-height: 1;
  margin-top: 1px;
}

#portal-home .welcome-events {
  display: flex;
  flex-direction: column;
}
#portal-home .welcome-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  gap: 6px;
  margin: auto 0 0;
  padding: 9px 12px;
  min-height: var(--welcome-action-height);
  background: #fff !important;
  color: #000 !important;
  border: 1px solid var(--line, #d8e2ef);
  border-radius: 6px;
  font: 600 12px/1.65 var(--site-font);
  max-width: 100%;
  white-space: normal;
  text-align: center;
}
#portal-home .welcome-card-action:is(:hover, :focus-visible) {
  background: #0078d4 !important;
  color: #fff !important;
  border-color: #0078d4;
}

.feature-weather-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  padding: 3px;
  border: 0;
  background: transparent;
  color: #0674dc;
  width: 26px;
  height: 26px;
}
.feature-weather-edit svg {
  width: 16px;
  height: 16px;
}

/* Home destinations share the same compact card row as Upcoming Events. */
#portal-home .welcome-content-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
#portal-home .welcome-destination,
#portal-home .welcome-content-grid > .welcome-events {
  display: flex;
  flex-direction: column;
  min-height: 420px;
}
#portal-home .welcome-destination h3 {
  font-size: var(--welcome-card-heading-size);
  margin: 0 0 8px;
}
#portal-home .welcome-card-subtitle {
  font-size: 12px;
  line-height: 1.5;
  min-height: 36px;
  margin: 0 0 4px;
}
#portal-home .welcome-pillar-links {
  display: grid;
  flex: 1;
  align-content: space-between;
  gap: 10px;
  margin-top: 8px;
}
#portal-home .welcome-pillar-link {
  display: flex;
  align-items: center;
  gap: 6px;
  width: min(85%, 220px);
  justify-self: center;
  padding: 11px 8px;
  min-height: 46px;
  border: 1px solid var(--line, #d8e2ef);
  border-radius: 6px;
  background: var(--portal-theme-card1, #f5f8fc);
  color: inherit;
  font: 600 12px/1.65 var(--site-font);
  text-align: left;
  white-space: normal;
}
#portal-home .welcome-pillar-link > span:first-child {
  display: flex;
  color: var(--portal-button, #0078d4);
}
#portal-home .welcome-pillar-link > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
@media (max-width: 1100px) {
  #portal-home .welcome-content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  #portal-home .welcome-content-grid {
    grid-template-columns: 1fr;
  }
  #portal-home .bb-card {
    padding: 16px;
  }
}

/* Home resource lists keep three stable slots and retain the footer actions. */
#portal-home .welcome-resource-list,
#portal-home .welcome-event-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: repeat(3, 72px);
  flex: 0 0 auto;
  min-height: 216px;
  margin: 8px 0 18px;
}
#portal-home .welcome-resource-row {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 0 0 8px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--navy);
  font: inherit;
  text-align: left;
  text-decoration: none;
}
/* Centre separators in the space after each two-line item within its 72px slot. */
#portal-home :is(.welcome-resource-row, .welcome-event-row):not(:last-child)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  border-bottom: 1px solid var(--line);
  pointer-events: none;
}
#portal-home .welcome-resource-row > span:first-child {
  flex: 1;
  min-width: 0;
}
#portal-home .welcome-resource-row strong,
#portal-home .welcome-resource-row small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#portal-home .welcome-resource-row strong {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
#portal-home .welcome-resource-row small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}
#portal-home .welcome-resource-arrow {
  flex: 0 0 auto;
  align-self: center;
  color: var(--blue);
}
#portal-home .welcome-resource-row:hover strong {
  text-decoration: underline;
  color: var(--blue);
}
#portal-home .welcome-resource-row:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
#portal-home .welcome-resource-empty {
  grid-row: 1/-1;
  align-self: center;
  text-align: center;
  font-size: 13px;
}
#portal-home .welcome-event-row > span:last-child strong,
#portal-home .welcome-event-row > span:last-child small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}
#portal-home .welcome-event-row > span:last-child small {
  margin-top: 5px;
  font-size: 11px;
}
.searchpanel .search-suggestions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-top: 15px;
  font-size: 13px;
}
.searchpanel .search-suggestions button {
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
#portal-home .welcome-content-grid > article {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
#portal-home .welcome-content-grid > article::before {
  content: '';
  position: absolute;
  z-index: -1;
  pointer-events: none;
  top: var(--portal-card1-flare-top, 0);
  bottom: var(--portal-card1-flare-bottom, auto);
  right: 0;
  width: 100%;
  height: min(100%, var(--portal-card1-flare-height, 240px));
  background: var(
    --portal-home-card-flare,
    radial-gradient(
      ellipse at 100% 0,
      rgba(111, 218, 210, 0.25),
      rgba(120, 180, 235, 0.11) 36%,
      transparent 72%
    )
  );
  background-size: var(--portal-card1-flare-spread, 100% 100%);
  background-position: var(--portal-card1-flare-position, 100% 0%);
  background-repeat: no-repeat;
  transform: var(--portal-card1-flare-transform, none);
  transform-origin: var(--portal-card1-flare-position, 100% 0%);
  -webkit-mask-image: var(--portal-card1-flare-edge-mask, none);
  -webkit-mask-composite: source-in;
  mask-image: var(--portal-card1-flare-edge-mask, none);
  mask-composite: intersect;
}
#portal-home .welcome-pillar-link {
  background: #fff !important;
  color: #000 !important;
  border-color: var(--line, #d8e2ef);
}
#portal-home .welcome-pillar-link > span:first-child {
  color: var(--nav-navigationIcon, #102d58);
}
#portal-home .welcome-pillar-link:is(:hover, :focus-visible) {
  background: #0078d4 !important;
  color: #fff !important;
  border-color: #0078d4;
}
#portal-home .welcome-pillar-link:is(:hover, :focus-visible) > span:first-child {
  color: #fff;
}
#portal-home .welcome-pillar-link:focus-visible {
  outline: 2px solid #102d4b;
  outline-offset: 3px;
}
