:root {
  --orange: #9b1234;
  --accent: #1479b8;
}

.today-card .card-top { align-items: flex-start; }
.profile-detail [data-pending-approval-count] { color: #9b1234; font-weight: 700; font-variant-numeric: tabular-nums; }
.home-selected-date { white-space: nowrap; }
.day-message[hidden] { display: none; }
.home-card-actions { display: flex; align-items: center; gap: 12px; position: relative; z-index: 3; }
.home-team-filter { display: flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 10px; color: #85745f; }
.home-team-picker,.home-resource-picker { position: relative; }
.home-team-picker > button,.home-resource-picker > button { border: 1px solid var(--line); border-radius: 7px; background: #fffaf4; color: #745234; padding: 7px 9px; min-height: 34px; font-size: 10px; }
.home-team-options,.home-resource-options { position: absolute; right: 0; top: calc(100% + 4px); z-index: 9; display: grid; gap: 2px; min-width: 130px; max-height: 250px; overflow: auto; padding: 5px; background: white; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 22px #35241326; }
.home-team-options[hidden],.home-resource-options[hidden] { display: none; }
.home-team-options button,.home-resource-options button { width: 100%; min-height: 33px; text-align: left; border: 0; border-radius: 5px; background: white; color: #745234; padding: 7px 9px; font-size: 11px; }
.home-team-options button:hover,.home-team-options button[aria-selected="true"],.home-resource-options button:hover,.home-resource-options button[aria-selected="true"] { background: #f3e6d7; color: #8d2637; font-weight: 700; }
.agenda-event.resource-event { border-color: #4b88bd; background: #f1f7fc; }
.agenda-event.resource-event .event-kind { color: #3973a4; }
.home-selected-date { display: block; margin-top: 5px; color: #8b7a63; font-size: 10px; }
.today-card .week-day { border: 0; background: transparent; font: inherit; cursor: pointer; }
.today-card .week-day:hover:not(.selected) { background: #f8f1e9; }
.today-card .week-day:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.today-card .week-day.selected { background: var(--accent); }
@media (max-width: 640px) {
  .today-card .card-top { gap: 8px; }
  .home-card-actions { gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
  .home-team-filter > span { display: none; }
  .home-team-picker > button,.home-resource-picker > button { padding: 6px 7px; }
  .today-card .card-top .text-link { font-size: 9px; }
}

/* Keep the same branded two-row header on the home page and every inner page. */
.home-motto {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  color: #302e2b;
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.06em;
  white-space: normal;
}
.home-motto .eyebrow { margin: 0 0 8px; font-size: 10px; }
.home-motto-subtitle { margin: 8px 0 0; color: #77726b; font-size: 13px; font-weight: 400; letter-spacing: 0; }
.header-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 75px auto;
  align-items: center;
  column-gap: clamp(20px, 4vw, 56px);
  row-gap: 10px;
  padding-top: 14px;
  padding-bottom: 12px;
  transform: translateY(-12px);
  margin-bottom: -12px;
}
.header-main .home-motto {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  transform: translateY(calc(clamp(42px, 3.6vw, 48px) + 10px));
}
.header-main > .brand {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  max-width: min(45vw, 480px);
  transform: translateY(7px);
}
.header-main > .brand .brand-logo {
  width: min(35vw, 420px);
  max-height: 102px;
  object-position: right center;
}
.header-main nav {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: end;
  align-self: center;
  width: 100%;
  margin-left: 0;
  justify-content: flex-end;
  padding-right: 0;
  transform: translateY(10px);
}

@media (max-width: 760px) {
  .header-main {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 12px;
    padding-top: 16px;
    padding-bottom: 12px;
  }
  .header-main .home-motto {
    align-items: flex-start;
    font-size: clamp(16px, 4vw, 22px);
    white-space: normal;
    transform: none;
  }
  .header-main > .brand {
    grid-column: 2;
    grid-row: 1;
    max-width: min(36vw, 245px);
    align-self: center;
    transform: none;
  }
  .header-main > .brand .brand-logo {
    width: min(30vw, 245px);
    max-height: 58px;
  }
  .header-main nav {
    grid-column: 1 / -1;
    grid-row: 2;
    align-self: center;
    justify-self: stretch;
    justify-content: flex-start;
    padding-right: 0;
    transform: none;
  }
  .header-main .nav-dropdown > summary { padding: 12px 8px; font-size: 13px; }
}

.brand {
  gap: 13px;
}

.brand-symbol {
  display: block;
  flex: 0 0 auto;
  width: auto;
  height: auto;
  padding: 0;
  line-height: 0;
}

.header-main .brand-symbol .brand-logo {
  display: block;
  width: min(27vw, 350px);
  max-height: 78px;
  object-fit: contain;
  object-position: left center;
}

.brand-copy strong {
  max-width: 180px;
  color: #57575a;
  line-height: 1.45;
}

.brand-copy small {
  max-width: 185px;
  color: #7d3447;
  line-height: 1.5;
}

.slogan-blue {
  color: #0047ab;
  font-weight: 900;
}

.slogan-red {
  color: #b00020;
  font-weight: 900;
}

.utility > span:first-child {
  color: #4b5962;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.utility b {
  color: #1479b8;
  background: #eaf4fa;
}

nav {
  scrollbar-width: none;
}

nav::-webkit-scrollbar {
  display: none;
}

.all-menu {
  background: #e66f24;
}

.all-menu:hover {
  background: #d75b19;
}

#account-bar { margin-left: auto; }
.utility { min-height: 0; justify-content: flex-end; padding: 6px 44px; }
.utility .brand { min-width: 0; }
.utility .brand-symbol .brand-logo { display: block; width: min(27vw, 350px); max-height: 68px; object-fit: contain; object-position: left center; }
.home-motto { display: none; }
body[data-page="home"] .header-main .home-motto {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  color: #302e2b;
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.06em;
  white-space: nowrap;
}
body[data-page="home"] .home-motto .eyebrow { margin: 0 0 8px; }
body[data-page="home"] .home-motto-subtitle { margin: 8px 0 0; color: #77726b; font-size: 12px; font-weight: 400; letter-spacing: 0; }
body[data-page="home"] .header-main { align-items: flex-end; gap: 42px; padding-bottom: 30px; }
body[data-page="home"] .header-main nav { align-self: flex-end; margin-left: auto; gap: 10px; }
body[data-page="home"] .header-main .nav-dropdown > summary { padding: 14px 13px; font-size: 14px; }
body[data-page="home"] .header-main .all-menu { align-self: flex-end; }
body[data-page="home"] .intro { display: none; }
body[data-page="home"] #content { padding-top: 28px; }

/* Keep the home slogan and logo on one row, with navigation below. */
body[data-page="home"] .header-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 75px auto;
  align-items: center;
  column-gap: clamp(20px, 4vw, 56px);
  row-gap: 10px;
  padding-top: 14px;
  padding-bottom: 12px;
  transform: translateY(-12px);
  margin-bottom: -12px;
}
body[data-page="home"] .header-main .home-motto {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  min-width: 0;
  white-space: normal;
  transform: translateY(calc(clamp(42px, 3.6vw, 48px) + 10px));
}
body[data-page="home"] .home-motto .eyebrow { font-size: 10px; }
body[data-page="home"] .home-motto-subtitle { font-size: 13px; }
body[data-page="home"] .header-main > .brand {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  max-width: min(45vw, 480px);
  transform: translateY(7px);
}
body[data-page="home"] .header-main > .brand .brand-logo {
  width: min(35vw, 420px);
  max-height: 102px;
  object-position: right center;
}
body[data-page="home"] .header-main nav {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: end;
  align-self: center;
  width: 100%;
  margin-left: 0;
  justify-content: flex-end;
  padding-right: 0;
  transform: translateY(10px);
}

@media (max-width: 1120px) {
  .header-main .brand-symbol .brand-logo {
    width: min(25vw, 300px);
    max-height: 66px;
  }
}

@media (max-width: 760px) {
  .header-main .brand-symbol .brand-logo {
    width: min(54vw, 245px);
    max-height: 54px;
  }

  .brand-copy {
    display: none;
  }

  body[data-page="home"] .header-main {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 12px;
    padding-top: 16px;
    padding-bottom: 12px;
  }
  body[data-page="home"] .header-main .home-motto {
    align-items: flex-start;
    font-size: clamp(16px, 4vw, 22px);
    white-space: normal;
    transform: none;
  }
  body[data-page="home"] .header-main > .brand {
    grid-column: 2;
    grid-row: 1;
    max-width: min(36vw, 245px);
    align-self: center;
    transform: none;
  }
  body[data-page="home"] .header-main > .brand .brand-logo {
    width: min(30vw, 245px);
    max-height: 58px;
  }
  body[data-page="home"] .header-main nav {
    grid-column: 1 / -1;
    grid-row: 2;
    align-self: center;
    justify-self: stretch;
    justify-content: flex-start;
    padding-right: 0;
    transform: none;
  }
  body[data-page="home"] .header-main .nav-dropdown > summary { padding: 12px 8px; font-size: 13px; }
  body[data-page="home"] .header-main .all-menu { align-self: auto; }
  body[data-page="home"] #content { padding-top: 18px; }

  .all-menu { order: 2; }
  nav { order: 3; }

  .intro h1 {
    font-size: clamp(23px, 6vw, 31px);
    line-height: 1.5;
    letter-spacing: -0.06em;
  }
}

@media (max-width: 640px) {
  .workspace-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-column,
  .team-column {
    display: flex;
  }

  .day-message p {
    max-width: 240px;
  }
}

/* The slogan belongs to the shared header on every page. */
.home-motto { display: flex; }

/* Home board card replaces the former colleague card and uses the full rail. */
.team-column .news-card { grid-column: 1 / -1; flex: 1; min-height: 100%; }
.home-post-controls { display: flex; align-items: center; gap: 12px; }
.home-board-dropdown { position: relative; }
.home-board-dropdown { position: relative; }
.home-board-dropdown > button { display: flex; align-items: center; gap: 12px; min-width: 125px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: #fffdf9; color: #665342; font-size: 11px; cursor: pointer; }
.home-board-dropdown > button span { margin-left: auto; color: #a85439; }
.home-board-options { position: absolute; z-index: 5; top: calc(100% + 6px); right: 0; display: grid; min-width: 160px; max-height: 240px; overflow-y: auto; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 12px 28px #46301d20; }
.home-board-options button { border: 0; border-radius: 7px; padding: 10px; background: transparent; text-align: left; color: #665342; font-size: 11px; }
.home-board-options button:hover, .home-board-options button[aria-selected="true"] { background: #f7efe5; color: var(--orange); }
.home-board-options[hidden] { display: none !important; }
.home-post-list { display: flex; flex-direction: column; }
.home-post-list > p { padding: 18px 0; }
.home-post-list .news-item { grid-template-columns: auto minmax(0, 1fr); gap: 10px 12px; padding: 17px 4px; color: inherit; text-decoration: none; }
.home-post-list .news-item:hover strong { color: var(--orange); }
.home-post-list .news-item strong { font-size: 13px; }
.home-post-list .news-item small { font-size: 10px; }
@media (max-width: 760px) {
  .home-post-controls { gap: 5px; }
  .home-board-dropdown > button { min-width: 105px; padding: 8px; font-size: 10px; }
  .home-board-options { min-width: 140px; }
}

/* Use the shared header and each page’s own content heading. */
body main > .intro{display:none!important}body:not([data-page="home"]) main > #content{padding-top:24px}@media(max-width:640px){body:not([data-page="home"]) main > #content{padding-top:18px}}
