/* Security Advisory page: builds on optimisation.css and sentinel.css (shared .opt-page sections). */

/* iPhone Messages thread, scaled up from the homepage card */
.opt-page .snt-phone {
  width: min(320px, 100%);
  justify-self: center;
}
.opt-page .snt-phone .hp-phone {
  height: 540px;
  margin: 6px;
}
.opt-page .snt-phone .hp-status {
  font-size: 13px;
  padding: 10px 22px 2px;
}
.opt-page .snt-phone .hp-contact .hp-pic {
  width: 34px;
  height: 34px;
  font-size: 13px;
}
.opt-page .snt-phone .hp-contact span:last-child {
  font-size: 11.5px;
}
.opt-page .snt-phone .hp-thread {
  font-size: 14px;
  line-height: 1.3;
  padding: 8px 14px;
  gap: 3px;
}
.opt-page .snt-phone .hp-msg {
  padding: 7px 12px;
  border-radius: 18px;
}
.opt-page .snt-phone .hp-when,
.opt-page .snt-phone .hp-delivered {
  font-size: 10.5px;
}
.opt-page .snt-phone .hp-compose {
  margin: 6px 12px 10px;
}
.opt-page .snt-phone [hidden] {
  display: none !important;
}
.opt-page .adv-logged {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 4px 14px 2px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--go-bg);
  border: 1px solid var(--go-line);
  color: var(--go);
  font: 700 12px var(--ui-ms);
  opacity: 0;
  transform: scale(0.9);
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease);
}
.opt-page .adv-logged svg {
  width: 14px;
  height: 14px;
  flex: none;
}
.opt-page .adv-logged.hp-show {
  opacity: 1;
  transform: none;
}

/* Engagement calendar: each booked slot pops in */
.opt-page .adv-cal-body {
  padding: 10px 14px 14px;
}
.opt-page .adv-cal-body .svc-table {
  width: 100%;
  margin: 0;
}
.opt-page .adv-cal-body .svc-engagement {
  margin-top: 12px;
}
.opt-page .adv-cal.cal-ready .svc-status {
  opacity: 0;
  transform: scale(0.7);
  transition:
    opacity 0.25s var(--ease),
    transform 0.25s var(--ease);
}
.opt-page .adv-cal.cal-ready .svc-status.on {
  opacity: 1;
  transform: none;
}

/* Board page: trends, what changed, the decision that gets approved */
.opt-page .bd-body {
  padding: 14px 16px 16px;
  display: grid;
  gap: 12px;
  font: 12.5px var(--ui-ms);
}
.opt-page .bd-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.opt-page .bd-kpis > div {
  border: 1px solid #e9e7e4;
  border-radius: 8px;
  padding: 9px 10px;
  background: #fff;
}
.opt-page .bd-kpis small {
  display: block;
  color: #616161;
  font-size: 10.5px;
}
.opt-page .bd-kpis b {
  font: 700 12.5px "Sora";
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.opt-page .bd-kpis b::before {
  font-family: "JetBrains Mono";
  margin-right: 4px;
}
.opt-page .bd-kpis .up {
  color: var(--go);
}
.opt-page .bd-kpis .up::before {
  content: "↑";
}
.opt-page .bd-kpis .flat {
  color: #42617f;
}
.opt-page .bd-kpis .flat::before {
  content: "→";
}
.opt-page .bd-kpis .down {
  color: #86600f;
}
.opt-page .bd-kpis .down::before {
  content: "!";
}
.opt-page .adv-board.go .bd-kpis b {
  opacity: 1;
}
.opt-page .adv-board.go .bd-kpis div:nth-child(2) b {
  transition-delay: 0.3s;
}
.opt-page .adv-board.go .bd-kpis div:nth-child(3) b {
  transition-delay: 0.6s;
}
.opt-page .bd-sec {
  border-left: 3px solid var(--orange);
  padding: 2px 0 2px 10px;
}
.opt-page .bd-sec b {
  font: 700 12.5px "Sora";
}
.opt-page .bd-sec p {
  margin: 3px 0 0;
  color: #424242;
}
.opt-page .bd-dec {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 11.5px;
  background: #fff4ce;
  color: #6b4b00;
}
.opt-page .bd-dec::before {
  content: "Awaiting decision";
}
.opt-page .bd-dec span {
  display: none;
}
.opt-page .adv-board.done .bd-dec {
  background: var(--go-bg);
  color: var(--go);
  border: 1px solid var(--go-line);
  animation: opt-pop 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.opt-page .adv-board.done .bd-dec::before {
  content: "✓ Approved at the meeting";
}

@media (max-width: 960px) {
  .opt-page.advisory-page .pa-band {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  .opt-page .snt-phone .hp-phone {
    height: 500px;
  }
  .opt-page .adv-cal-body {
    padding: 8px 10px 12px;
  }
  .opt-page .bd-kpis > div {
    padding: 8px;
  }
  /* Keep the calendar a week-by-day grid on phones, not the stacked table fallback */
  .opt-page .adv-cal .svc-calendar {
    display: table;
    table-layout: fixed;
  }
  .opt-page .adv-cal .svc-calendar thead {
    display: table-header-group;
  }
  .opt-page .adv-cal .svc-calendar tbody {
    display: table-row-group;
  }
  .opt-page .adv-cal .svc-calendar tr {
    display: table-row;
  }
  .opt-page .adv-cal .svc-calendar th,
  .opt-page .adv-cal .svc-calendar td {
    display: table-cell;
    padding: 0;
  }
  .opt-page .adv-cal .svc-calendar thead th {
    font-size: 9.5px;
    padding: 4px 0;
  }
  .opt-page .adv-cal .svc-calendar th:first-child {
    width: 15%;
  }
  .opt-page .adv-cal .svc-calendar tbody th {
    font-size: 9.5px;
    padding-right: 4px;
  }
  .opt-page .adv-cal .svc-calendar td {
    border-width: 2px;
  }
  .opt-page .adv-cal .svc-calendar td::before {
    content: none;
  }
  .opt-page .adv-cal .svc-calendar .svc-status {
    font-size: 8.5px;
    padding: 6px 1px;
    line-height: 1.15;
  }
}
@media (prefers-reduced-motion: reduce) {
  .opt-page .adv-logged,
  .opt-page .adv-cal .svc-status,
  .opt-page .bd-kpis b,
  .opt-page .bd-dec {
    transition: none !important;
    animation: none !important;
  }
}

/* Tighter rhythm: balance the outcome columns, a shorter phone, less padding between rows */
.opt-page.advisory-page .mk-outcome-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.opt-page.advisory-page .mk-dont {
  padding: 24px 26px;
  font-size: 15px;
  line-height: 1.45;
}
.opt-page.advisory-page .mk-dont h3 {
  margin-bottom: 10px;
}
.opt-page.advisory-page .mk-dont p {
  margin-bottom: 10px;
}
.opt-page.advisory-page .snt-phone .hp-phone {
  height: 480px;
}
.opt-page.advisory-page .zz {
  padding: 34px 0;
}
@media (max-width: 760px) {
  .opt-page.advisory-page .mk-outcome-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 35px;
  }
}
