/* Mailrack-only tweaks on top of Skyrack's stylesheet. */
.mr-eyebrow { margin-bottom: 8px; }
.site-header a[aria-label="Mailrack home"] { width: 210px; }
.ft-logo img { width: 200px; height: auto; }

/* Mailrack's own hero: light, with the mail settings card instead of Skyrack's photo. */
.mr-hero {
  background: linear-gradient(110deg, #fff 0%, #eaf3ff 55%, #cce5ff 100%);
  border-bottom: 1px solid var(--color-blue-border);
  padding: 72px 0 80px;
}
.mr-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 72px;
  align-items: center;
}
.mr-hero__copy { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.mr-hero__title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--color-navy);
  margin: 0;
}
.mr-hero__lead { font-size: 18px; line-height: 1.6; color: var(--color-text); max-width: 560px; margin: 0; }
.mr-hero__list { color: var(--color-navy); font-weight: 500; margin: 4px 0 8px; }
.mr-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.mr-setup {
  background: var(--color-surface);
  border: 1px solid var(--color-card-border);
  border-top: 5px solid var(--color-blue);
  border-radius: var(--radius-card);
  box-shadow: 0 13px 57px -5px #32325d1a, 0 8px 26px -8px #00000026;
  padding: 32px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.mr-setup__head h2 { font-family: var(--font-heading); font-weight: 600; font-size: 22px; line-height: 1.25; color: var(--color-navy); margin: 0 0 6px; }
.mr-setup__head p { color: var(--color-text); font-size: 15px; margin: 0; }
.mr-setup__rows { margin: 0; display: flex; flex-direction: column; }
.mr-setup__rows > div { display: grid; grid-template-columns: 118px 1fr; gap: 12px; padding: 14px 0; border-top: 1px dotted var(--color-blue-header); }
.mr-setup__rows > div:last-child { border-bottom: 1px dotted var(--color-blue-header); }
.mr-setup__rows dt { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--color-steel-text); padding-top: 3px; }
.mr-setup__rows dd { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.mr-setup__rows code { font-family: var(--font-mono); font-size: 16px; font-weight: 600; color: var(--color-navy); }
.mr-setup__rows strong { font-weight: 600; color: var(--color-navy); font-size: 16px; }
.mr-setup__rows dd span { font-size: 14px; color: var(--color-text); }
.mr-setup .btn { gap: 8px; }
.mr-setup .btn svg { width: 16px; height: 16px; }
@media (max-width: 1023px) {
  .mr-hero { padding: 48px 0 56px; }
  .mr-hero__grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 479px) {
  .mr-setup { padding: 26px 22px 22px; }
  .mr-setup__rows > div { grid-template-columns: 1fr; gap: 4px; }
}
.mr-hero .btn-outline-blue { border: 1.5px solid var(--color-blue); background: var(--color-surface); }
.mr-hero .btn-outline-blue:hover { background: var(--color-blue); color: #fff; }

/* Hero background: server racks under a navy wash, so the copy reads in white. */
.mr-hero {
  background:
    linear-gradient(100deg, #041828 0%, rgba(4, 24, 40, .94) 34%, rgba(1, 43, 79, .78) 62%, rgba(2, 102, 204, .5) 100%),
    url(/images/hero-racks.jpg?v=6) center 40% / cover no-repeat #041828;
  border-bottom: 0;
}
.mr-hero__title { color: #fff; }
.mr-hero__lead { color: rgba(255, 255, 255, .82); }
.mr-hero__list { color: #fff; }
.mr-btn-white { background: #fff; color: var(--color-navy); border-color: #fff; }
.mr-btn-white:hover { background: var(--color-sky-light); border-color: var(--color-sky-light); color: var(--color-navy); }
.mr-setup { border-top-color: var(--color-sky); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }

/* Price calculator in the featured pricing card. */
.mr-calc { display: flex; flex-direction: column; gap: 14px; }
.mr-calc__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mr-calc__row label { font-weight: 600; color: var(--color-navy); font-size: 15px; }
.mr-step { display: inline-flex; align-items: stretch; border: 1px solid var(--color-input-border); border-radius: var(--radius-btn); overflow: hidden; background: var(--color-surface); }
.mr-step button { width: 38px; border: 0; background: var(--color-blue-tint); color: var(--color-blue); font-size: 20px; line-height: 1; cursor: pointer; }
.mr-step button:hover { background: var(--color-blue); color: #fff; }
.mr-step input { width: 64px; height: 40px; border: 0; border-left: 1px solid var(--color-input-border); border-right: 1px solid var(--color-input-border); text-align: center; font: inherit; font-weight: 600; color: var(--color-navy); background: transparent; -moz-appearance: textfield; appearance: textfield; }
.mr-step input::-webkit-outer-spin-button, .mr-step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mr-calc__sum { margin: 4px 0 0; padding-top: 14px; border-top: 1px dotted var(--color-blue-header); display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.mr-calc__sum > div { display: flex; justify-content: space-between; gap: 12px; }
.mr-calc__sum dt { color: var(--color-text); }
.mr-calc__sum dd { margin: 0; font-weight: 600; color: var(--color-navy); font-variant-numeric: tabular-nums; }
.mr-calc__pool { margin-top: 4px; padding-top: 10px; border-top: 1px dotted var(--color-blue-header); }
.mr-calc__pool dd { color: var(--color-blue); }
.plan-card .mr-calc { margin-bottom: auto; }

/* Two ways to buy on each pricing card: sign up here, or order through Skyrack. */
.mr-buy { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.mr-buy__alt { text-align: center; font-size: 15px; color: var(--color-steel-text); text-decoration: underline; text-underline-offset: 3px; }
.mr-buy__alt:hover { color: var(--color-blue); }

/* Login page: one door to the inbox, one to the account area. */
.mr-login { background: linear-gradient(110deg, #fff 0%, #eaf3ff 55%, #cce5ff 100%); border-bottom: 1px solid var(--color-blue-border); padding: 64px 0 80px; }
.mr-login__head { display: flex; flex-direction: column; gap: 14px; max-width: 640px; margin-bottom: 40px; }
.mr-login__title { font-family: var(--font-heading); font-weight: 500; font-size: clamp(30px, 4vw, 44px); line-height: 1.12; letter-spacing: -.02em; color: var(--color-navy); margin: 0; }
.mr-login__lead { font-size: 18px; line-height: 1.6; color: var(--color-text); margin: 0; }
.mr-doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; max-width: 920px; }
.mr-door { background: var(--color-surface); border: 1px solid var(--color-card-border); border-top: 5px solid var(--color-blue); border-radius: var(--radius-card); box-shadow: 0 13px 57px -5px #32325d1a, 0 8px 26px -8px #00000026; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.mr-door__icon { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 10px; background: var(--color-blue-tint); color: var(--color-blue); }
.mr-door__icon svg { width: 26px; height: 26px; }
.mr-door h2 { font-family: var(--font-heading); font-weight: 500; font-size: 24px; line-height: 1.25; color: var(--color-navy); margin: 0; }
.mr-door p { margin: 0; color: var(--color-text); font-size: 16px; line-height: 1.6; }
.mr-door__with { padding: 12px 14px; border-radius: var(--radius-btn); background: var(--color-bg); border: 1px dotted var(--color-blue-header); font-size: 15px !important; margin-bottom: auto !important; }
.mr-door__with strong { color: var(--color-navy); }
.mr-door .btn { gap: 8px; margin-top: 8px; }
.mr-door .btn svg { width: 16px; height: 16px; }
.mr-login__more { margin-top: 36px; max-width: 920px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; color: var(--color-text); }
.mr-login__more p { margin: 0; }
.mr-login__more strong { color: var(--color-navy); }
.mr-login__more a { color: var(--color-blue); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 767px) {
  .mr-login { padding: 44px 0 56px; }
  .mr-doors { grid-template-columns: 1fr; }
  .mr-door { padding: 26px 22px; }
}
.mr-door .btn-outline-blue { border: 1.5px solid var(--color-blue); background: var(--color-surface); color: var(--color-blue); }
.mr-door .btn-outline-blue:hover { background: var(--color-blue); color: #fff; }

/* ---- Content pages (site-build/pages.js) ---------------------------------------- */
.mr-page-hero { background: linear-gradient(100deg, #041828 0%, #012b4f 60%, #0a4f94 100%); padding: 40px 0 56px; }
.mr-page-hero > div { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.mr-crumb { display: flex; gap: 8px; font-size: 14px; color: rgba(255, 255, 255, .8); margin-bottom: 8px; }
.mr-crumb a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.mr-page-hero__title { font-family: var(--font-heading); font-weight: 500; font-size: clamp(30px, 4vw, 46px); line-height: 1.12; letter-spacing: -.02em; color: #fff; margin: 0; max-width: 860px; }
.mr-page-hero__lead { font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, .86); max-width: 760px; margin: 0 0 6px; }
.mr-article { max-width: 860px; display: flex; flex-direction: column; gap: 44px; color: #4a4a4a; font-size: 17px; line-height: 1.7; }
.mr-article--wide { max-width: none; }
.mr-article--wide .mr-block > p, .mr-article--wide .mr-block > ul { max-width: 860px; }
.mr-block { display: flex; flex-direction: column; gap: 14px; }
.mr-block h2 { font-family: var(--font-heading); font-weight: 600; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.25; color: var(--color-navy); margin: 0; }
.mr-block p { margin: 0; }
.mr-block ul, .mr-block ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.mr-block ul { list-style: disc; }
.mr-block ol { list-style: decimal; }
.mr-block li::marker { color: var(--color-blue); font-weight: 600; }
.mr-block strong { color: var(--color-navy); font-weight: 600; }
.mr-article a, .mail-faq .accordion__body a { color: var(--color-blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.mr-note { font-size: 15px; padding: 12px 16px; border-left: 4px solid var(--color-blue); background: #f2f7fd; border-radius: 0 var(--radius-btn) var(--radius-btn) 0; }
.mr-table-wrap { overflow-x: auto; border: 1px solid var(--color-card-border); border-radius: var(--radius-card); background: var(--color-surface); }
.mr-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.mr-table th, .mr-table td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--color-line); }
.mr-table thead th { background: #f2f7fd; color: var(--color-navy); font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.mr-table tbody th { color: var(--color-navy); font-weight: 600; }
.mr-table tbody tr:last-child th, .mr-table tbody tr:last-child td { border-bottom: 0; }
.mr-table--compare { min-width: 1500px; }
.mr-table--compare tbody th { position: sticky; left: 0; background: var(--color-surface); min-width: 130px; box-shadow: 1px 0 0 var(--color-line); }
.mr-table--compare thead th:first-child { position: sticky; left: 0; }
.mr-table--compare tr.is-us td, .mr-table--compare tr.is-us th { background: #eef6ff; }
.mr-sources { font-size: 15px; }
.mr-sources span { word-break: break-all; color: var(--color-navy); }
.mr-shot { margin: 0; border: 1px solid var(--color-card-border); border-radius: 12px; overflow: hidden; box-shadow: 0 13px 40px -12px #32325d33; background: #eef1f8; }
.mr-shot img { display: block; width: 100%; height: auto; }
.mr-split { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 32px; align-items: start; }
.mr-split > div { display: flex; flex-direction: column; gap: 14px; }
.mr-phone { width: 220px; height: auto; border: 6px solid #0b1f33; border-radius: 26px; box-shadow: 0 18px 40px -14px #00000066; }
@media (max-width: 639px) { .mr-split { grid-template-columns: 1fr; } .mr-phone { margin: 0 auto; } .mr-article { font-size: 16px; } }
.mr-guide { text-decoration: none; display: flex; flex-direction: column; gap: 10px; transition: border-color .15s, box-shadow .15s; }
.mr-guide:hover { border-color: var(--color-blue); box-shadow: 0 10px 30px -14px #0266cc66; }
.mr-guide .text-body { color: var(--color-text); font-size: 15px; }
.mr-guide .btn-arrow { margin-top: auto; }
.mr-related { background: var(--color-surface-alt); border-top: 1px solid var(--color-blue-border); }

.mr-showcase { background: linear-gradient(180deg, #f4f8fe 0%, #fff 100%); border-top: 1px solid var(--color-blue-border); }

/* Footer: five link columns now that Guides is one of them. */
@media (min-width: 1024px) { .ft-nav { grid-template-columns: 1fr 1.25fr 1fr 1fr 1fr; gap: 32px; } }

/* ---- Home: working model of the webmail (site-build/demo.js) ---------------------- */
.mr-demo { container-type: inline-size; max-width: 1040px; display: flex; flex-direction: column; gap: 16px; }
.mr-demo__app { --navy: #012b4f; --blue: #0266cc; --ink: #0f2439; --muted: #6b7a8c; --line: #e3e8f0; --h: 4.9em;
  position: relative; display: flex; aspect-ratio: 16 / 10; overflow: hidden; font-size: 10px; font-size: 1.02cqw; line-height: 1.35; color: var(--ink);
  background: #eef1f8; border: 1px solid #cfd8e6; border-radius: 12px; box-shadow: 0 30px 60px -28px #012b4f80; user-select: none; }
.mr-demo__app svg { width: 1.5em; height: 1.5em; flex: none; }
.mr-demo__app b { font-weight: 600; } .mr-demo__app i, .mr-demo__app em { font-style: normal; }
.d-rail { width: 4.6em; flex: none; background: var(--navy); display: flex; flex-direction: column; align-items: center; gap: 1.1em; padding: 1.1em 0; color: #b9cde0; }
.d-logo { width: 2.3em; height: 2em; border: .22em solid #71b5ff; border-radius: .3em; color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 1.05em; margin-bottom: .6em; }
.d-rail__btn { width: 3.2em; height: 3.2em; border-radius: .8em; display: grid; place-items: center; transition: background .3s, color .3s; }
.d-rail__btn--new { background: #1f7ae0; color: #fff; }
.d-view { position: absolute; inset: 0 0 0 4.6em; display: flex; gap: 1em; padding: 1em; transition: opacity .5s, transform .5s; }
.d-view--cal { opacity: 0; transform: translateX(2%); pointer-events: none; flex-direction: column; gap: 0; background: #fff; margin: 1em; padding: 0; border: 1px solid var(--line); border-radius: 1em; overflow: hidden; }
.d-folders { width: 15em; flex: none; display: flex; flex-direction: column; gap: .35em; padding-top: .4em; }
.d-brand { font-weight: 800; letter-spacing: .02em; font-size: 1.5em; color: var(--navy); margin: 0 0 .7em .5em; } .d-brand b { color: var(--blue); font-weight: 800; }
.d-f { display: flex; align-items: center; gap: .8em; padding: .65em .9em; border-radius: .7em; font-size: 1.15em; }
.d-f--in { padding-left: 2.2em; } .d-f.is-on { background: #dce8f8; color: var(--blue); font-weight: 600; }
.d-f i { margin-left: auto; font-weight: 700; font-size: .9em; }
.d-store { margin-top: auto; border-top: 1px solid var(--line); padding: 1em .8em .3em; display: flex; flex-direction: column; gap: .5em; font-size: .95em; color: var(--muted); }
.d-store b { color: var(--ink); } .d-store u { height: .35em; border-radius: 1em; background: #dfe6f0; display: block; } .d-store s { display: block; width: 31%; height: 100%; border-radius: 1em; background: var(--blue); }
.d-list { width: 29em; flex: none; display: flex; flex-direction: column; gap: .9em; min-width: 0; }
.d-search { display: flex; align-items: center; gap: .7em; padding: .75em 1em; border: 1px solid var(--line); border-radius: .9em; background: #f8fafd; color: var(--muted); font-size: 1.1em; }
.d-list__card, .d-pane { background: #fff; border: 1px solid var(--line); border-radius: 1em; overflow: hidden; }
.d-list__card { flex: 1; min-height: 0; }
.d-list__head { padding: 1em 1.2em .2em; display: flex; flex-direction: column; } .d-list__head b { font-size: 1.5em; } .d-list__head span { color: var(--muted); }
.d-tabs { display: flex; gap: 1.4em; padding: .8em 1.2em 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.d-tabs b { color: var(--blue); border-bottom: .18em solid var(--blue); padding-bottom: .6em; }
.d-row { display: flex; gap: .9em; align-items: center; padding: .85em 1.2em; border-bottom: 1px solid var(--line); height: 4.9em; overflow: hidden; transition: height .6s cubic-bezier(.2, .8, .2, 1), padding .6s, opacity .5s, background .3s; }
.d-av { width: 2.9em; height: 2.9em; border-radius: 50%; display: grid; place-items: center; font-size: .92em; font-weight: 700; flex: none; color: #2b3f55; }
.d-row__main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: .15em; }
.d-row__top { display: flex; gap: .6em; font-size: 1.12em; } .d-row__top b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .d-row__top i { margin-left: auto; color: var(--muted); font-size: .88em; flex: none; }
.d-row__sub { display: flex; align-items: center; gap: .4em; font-size: 1.05em; white-space: nowrap; min-width: 0; } .d-row__sub > span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; } .d-row__sub b { font-weight: 500; flex: none; max-width: 75%; overflow: hidden; text-overflow: ellipsis; }
.d-row__sub em { display: none; width: .65em; height: .65em; border-radius: 50%; background: var(--blue); flex: none; }
.d-row.is-unread .d-row__sub em { display: block; } .d-row.is-unread b { font-weight: 700; } .d-row.is-unread .d-row__sub b, .d-row.is-unread .d-row__top i { color: var(--blue); font-weight: 700; }
.d-pane { flex: 1; min-width: 0; position: relative; }
.d-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1em; color: #6b7a8c; font-size: 1.15em; opacity: 0; transition: opacity .4s; } .d-empty svg { width: 5em; height: 5em; stroke-width: 1.2; color: #d5dce8; }
.d-msg { padding: 1.6em 2em; display: flex; flex-direction: column; gap: 1.1em; transition: opacity .45s, transform .45s; }
.d-msg__title { font-size: 1.9em; font-weight: 600; display: flex; align-items: center; gap: .5em; } .d-msg__back { display: none; }
.d-msg__bar { display: flex; align-items: center; gap: 1.5em; color: var(--muted); font-size: 1.1em; padding-bottom: 1em; border-bottom: 1px solid var(--line); }
.d-msg__bar span { display: flex; align-items: center; gap: .5em; border-radius: .6em; padding: .3em .6em; margin: -.3em -.6em; transition: background .25s, color .25s; } .d-msg__bar i { width: 1px; height: 1.6em; background: var(--line); } .d-msg__bar .d-msg__bin { margin-left: auto; }
.d-msg__from { display: flex; gap: 1em; align-items: flex-start; font-size: 1.05em; } .d-msg__from b { font-size: 1.15em; } .d-msg__from i { color: var(--muted); } .d-msg__when { margin-left: auto; flex: none; }
.d-msg__body { font-size: 1.2em; line-height: 1.55; padding-left: 3.4em; display: flex; flex-direction: column; gap: .9em; } .d-msg__body p { margin: 0; }
.d-compose { position: absolute; right: 1em; bottom: 0; width: 46%; height: 62%; background: #fff; border: 1px solid #cfd8e6; border-radius: 1em 1em 0 0; box-shadow: 0 -1em 4em -1em #012b4f59; display: flex; flex-direction: column; transform: translateY(105%); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.d-compose__head { padding: .9em 1.3em; background: #f2f5fa; border-radius: 1em 1em 0 0; font-weight: 600; font-size: 1.15em; display: flex; } .d-compose__head span { margin-left: auto; color: var(--muted); }
.d-compose__to { display: flex; gap: 1em; align-items: center; padding: .8em 1.3em; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 1.05em; } .d-compose__to span { background: #e6effb; color: #17457a; border-radius: .5em; padding: .25em .7em; }
.d-compose__body { flex: 1; padding: 1.1em 1.3em; font-size: 1.2em; line-height: 1.5; }
.mr-demo.is-live[data-scene="3"] .d-compose__body::after { content: ""; display: inline-block; width: 1px; height: 1.1em; background: var(--ink); vertical-align: text-bottom; animation: d-blink 1s steps(2) infinite; }
@keyframes d-blink { 50% { opacity: 0; } }
.d-compose__foot { display: flex; align-items: center; gap: 1.2em; padding: .9em 1.3em; border-top: 1px solid var(--line); color: var(--muted); }
.d-send { display: flex; align-items: center; gap: .6em; background: var(--blue); color: #fff; font-weight: 600; font-size: 1.15em; padding: .6em 1.2em; border-radius: .6em; }
.d-toast { position: absolute; left: 50%; bottom: 2em; transform: translate(-50%, 250%); background: #0f2439; color: #fff; padding: .9em 1.5em; border-radius: .8em; font-size: 1.15em; display: flex; gap: 1.5em; transition: transform .45s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 1em 3em -1em #000a; } .d-toast b { color: #8cc2ff; }
.d-cal__bar { display: flex; align-items: center; gap: 1.4em; padding: 1.1em 1.5em; border-bottom: 1px solid var(--line); font-size: 1.15em; } .d-cal__bar b { font-size: 1.3em; }
.d-cal__today { border: 1px solid var(--line); border-radius: .6em; padding: .4em 1em; font-weight: 600; }
.d-cal__seg { margin-left: auto; background: #eef1f8; border-radius: .7em; padding: .25em; display: flex; } .d-cal__seg i { padding: .35em 1em; border-radius: .5em; color: var(--muted); } .d-cal__seg .is-on { background: #fff; color: var(--blue); font-weight: 600; }
.d-cal__new { background: var(--blue); color: #fff; font-weight: 600; border-radius: .6em; padding: .5em 1.1em; }
.d-cal__grid { flex: 1; display: flex; min-height: 0; }
.d-cal__hours { width: 5em; flex: none; padding-top: 2.4em; color: var(--muted); text-align: right; } .d-cal__hours i { display: block; height: var(--h); padding-right: .8em; transform: translateY(-.7em); }
.d-cal__day { flex: 1; min-width: 0; position: relative; border-left: 1px solid var(--line); background: linear-gradient(to bottom, var(--line) 1px, transparent 1px) 0 2.4em / 100% var(--h); }
.d-cal__day > b { display: block; text-align: center; height: 2.4em; line-height: 2.4em; color: var(--muted); font-weight: 500; font-size: 1.05em; border-bottom: 1px solid var(--line); background: #fff; }
.d-ev { position: absolute; left: .3em; right: .4em; background: var(--blue); color: #fff; border-radius: .5em; padding: .35em .6em; overflow: hidden; font-size: .95em; line-height: 1.3; transition: opacity .5s, transform .5s cubic-bezier(.2, 1.4, .4, 1); } .d-ev b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-ev--new { background: #137520; box-shadow: 0 0 0 .25em #13752033; }
.d-cursor { position: absolute; left: 62%; top: 72%; width: 1.9em; height: 1.9em; z-index: 5; opacity: 0; pointer-events: none; transition: left .9s cubic-bezier(.3, .7, .2, 1), top .9s cubic-bezier(.3, .7, .2, 1), opacity .3s;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M5 3l14 8-6 2-3 6z%27 fill=%27%23fff%27 stroke=%27%23012b4f%27 stroke-width=%271.6%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E"); }
.mr-demo.is-live .d-cursor { opacity: 1; }
/* what each step shows */
.mr-demo[data-scene="0"] .d-row--new { height: 0; padding-block: 0; opacity: 0; border-bottom-width: 0; }
.mr-demo[data-scene="1"] .d-row--new { background: #fff8e1; }
.mr-demo[data-scene="0"] .d-empty, .mr-demo[data-scene="1"] .d-empty { opacity: 1; }
.mr-demo[data-scene="0"] .d-msg, .mr-demo[data-scene="1"] .d-msg { opacity: 0; transform: translateY(1em); }
.mr-demo:not([data-scene="0"]):not([data-scene="1"]) .d-row--new { background: #dce8f8; }
.mr-demo:not([data-scene="0"]):not([data-scene="1"]) .d-row--new em { display: none; }
.mr-demo:not([data-scene="0"]):not([data-scene="1"]) .d-row--new b, .mr-demo:not([data-scene="0"]):not([data-scene="1"]) .d-row--new i { font-weight: 500; color: inherit; }
.mr-demo[data-scene="3"] .d-compose { transform: none; }
.mr-demo[data-scene="3"] .d-reply { background: #e6effb; color: var(--blue); }
.mr-demo[data-scene="4"] .d-toast { transform: translate(-50%, 0); }
.mr-demo[data-scene="5"] .d-view--mail, .mr-demo[data-scene="6"] .d-view--mail { opacity: 0; transform: translateX(-2%); }
.mr-demo[data-scene="5"] .d-view--cal, .mr-demo[data-scene="6"] .d-view--cal { opacity: 1; transform: none; }
.mr-demo:not([data-scene="5"]):not([data-scene="6"]) .d-rail__mail, .mr-demo[data-scene="5"] .d-rail__cal, .mr-demo[data-scene="6"] .d-rail__cal { background: #ffffff24; color: #fff; }
.mr-demo:not([data-scene="6"]) .d-ev--new { opacity: 0; transform: scale(.6); }
.mr-demo[data-scene="1"] .d-cursor, .mr-demo[data-scene="2"] .d-cursor { left: 33%; top: 30%; }
.mr-demo[data-scene="3"] .d-cursor { left: 58%; top: 93%; }
.mr-demo[data-scene="4"] .d-cursor { left: 60%; top: 84%; }
.mr-demo[data-scene="5"] .d-cursor { left: 2.4%; top: 36.5%; }
.mr-demo[data-scene="6"] .d-cursor { left: 16%; top: 30%; }
/* step labels and pause */
.mr-demo__steps { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mr-demo__steps ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mr-demo__steps li { font-size: 13px; font-weight: 600; color: #3d6a8f; border: 1px solid var(--color-blue-border); border-radius: 99px; padding: 5px 12px; background: #fff; transition: background .3s, color .3s, border-color .3s; }
.mr-demo[data-scene="1"] [data-demo-label="1"], .mr-demo[data-scene="2"] [data-demo-label="2"], .mr-demo[data-scene="3"] [data-demo-label="3"], .mr-demo[data-scene="4"] [data-demo-label="4"], .mr-demo[data-scene="5"] [data-demo-label="5"], .mr-demo[data-scene="6"] [data-demo-label="6"] { background: var(--color-blue); border-color: var(--color-blue); color: #fff; }
.mr-demo__pause { font: inherit; font-size: 13px; font-weight: 600; color: var(--color-navy); background: #fff; border: 1px solid var(--color-input-border); border-radius: 99px; padding: 5px 14px; cursor: pointer; min-width: 68px; }
.mr-demo__pause:hover { border-color: var(--color-blue); color: var(--color-blue); }
.mr-demo__pause[hidden] { display: none; }
/* phone width: list first, an opened message takes the whole screen, as in the real thing */
@container (max-width: 620px) {
  .mr-demo__app { aspect-ratio: 4 / 5; font-size: 2.9cqw; }
  .d-rail, .d-folders, .d-search, .d-cursor, .d-cal__seg, .d-cal__today { display: none; }
  .d-view, .d-view--cal { inset: 0; padding: 0; margin: 0; border-radius: 0; border: 0; }
  .d-list { width: 100%; } .d-list__card, .d-pane { border: 0; border-radius: 0; }
  .d-pane { position: absolute; inset: 0; transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
  .mr-demo[data-scene="0"] .d-pane, .mr-demo[data-scene="1"] .d-pane { transform: translateX(100%); }
  .d-empty { display: none; } .d-msg__back { display: block; } .d-msg__body { padding-left: 0; } .d-msg__bar > svg, .d-msg__when { display: none; }
  .d-compose { right: 0; width: 100%; height: 72%; }
  .d-cal__day:nth-child(n+5) { display: none; }
}
@media (max-width: 640px) { .mr-demo__steps ol { display: none; } }
@media (prefers-reduced-motion: reduce) { .mr-demo__app *, .mr-demo__steps li { transition: none !important; animation: none !important; } }

/* ---- Diagrams on the guide pages (helpers in site-build/pages.js) ----------------- */
.dg { margin: 6px 0; padding: 22px; border: 1px solid var(--color-blue-border); border-radius: var(--radius-card); background: #f6f9fe; display: flex; flex-direction: column; gap: 14px; }
.dg figcaption { font-size: 14.5px; line-height: 1.5; color: #4a5d70; }
.dg-flow, .dg-branch { display: flex; align-items: stretch; gap: 10px; }
.dg-node { flex: 1 1 0; min-width: 0; background: #fff; border: 1px solid #cfdcec; border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; justify-content: center; font-size: 14px; line-height: 1.45; color: #4a5d70; }
.dg-node b { color: var(--color-navy); font-size: 15.5px; font-weight: 600; overflow-wrap: anywhere; }
.dg-node--blue { background: var(--color-blue); border-color: var(--color-blue); color: #e6f0fb; } .dg-node--blue b { color: #fff; }
.dg-node--green { border-color: #1b9237; border-left-width: 5px; } .dg-node--amber { border-color: #c98a00; border-left-width: 5px; } .dg-node--red { border-color: #b91c1c; border-left-width: 5px; }
.dg-arrow { flex: none; align-self: center; width: 22px; height: 2px; background: #7fa3c9; position: relative; }
.dg-arrow::after { content: ""; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left-color: #7fa3c9; border-right-width: 0; }
.dg-branch > .dg-node { flex: 0 0 28%; }
.dg-branch__to { flex: 1.6 1 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.dg-routes { display: flex; flex-direction: column; gap: 10px; }
.dg-route { display: flex; align-items: center; gap: 10px; }
.dg-route .dg-node { flex: 0 0 210px; }
.dg-route__to { display: flex; flex-wrap: wrap; gap: 8px; }
.dg-chip { background: #fff; border: 1px solid #cfdcec; border-radius: 99px; padding: 7px 14px; font-size: 14.5px; font-weight: 600; color: var(--color-navy); }
.dg-pool { display: flex; gap: 3px; border-radius: 10px; overflow: hidden; min-height: 74px; }
.dg-pool__part { flex: 1 1 0; min-width: 44px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px; color: #fff; font-size: 13px; padding: 8px 4px; text-align: center; }
.dg-pool__part b { font-size: 16px; font-weight: 700; }
.dg-pool__part--0 { background: #012b4f; } .dg-pool__part--1 { background: #0a4f94; } .dg-pool__part--2 { background: #0266cc; } .dg-pool__part--3 { background: #1967b3; } .dg-pool__part--4 { background: #33597e; }
@media (max-width: 719px) {
  .dg { padding: 16px; }
  .dg-flow, .dg-branch, .dg-route { flex-direction: column; align-items: stretch; }
  .dg-branch > .dg-node, .dg-route .dg-node { flex: none; }
  .dg-arrow { width: 2px; height: 18px; align-self: center; }
  .dg-arrow::after { right: -4px; top: auto; bottom: -1px; border: 5px solid transparent; border-top-color: #7fa3c9; border-bottom-width: 0; }
  .dg-route { padding-bottom: 12px; border-bottom: 1px dotted #b3d2f3; } .dg-route:last-child { border-bottom: 0; padding-bottom: 0; }
  .dg-route__to { justify-content: center; }
}

/* ---- Legal pages while in draft: details still to be supplied ---------------------- */
.mr-todo { background: #ffe58a; color: #3d2f00; padding: 1px 5px; border-radius: 4px; font-weight: 600; }
.mr-draft, .mr-todo-block { border: 2px dashed #c98a00; background: #fff8e1; color: #3d2f00; padding: 12px 16px; border-radius: 8px; font-size: 15px; }
.mr-todo-block p { margin: 0; }

/* Old /login/ address: one centred box that forwards to the account login. */
.mr-loginbox { max-width: 420px; margin: 0 auto; background: var(--color-surface); border: 1px solid var(--color-card-border); border-top: 5px solid var(--color-blue); border-radius: var(--radius-card); box-shadow: 0 13px 57px -5px #32325d1a, 0 8px 26px -8px #00000026; padding: 32px; display: flex; flex-direction: column; gap: 14px; text-align: center; }
.mr-loginbox .mr-login__title { font-size: 30px; }
.mr-loginbox .btn { gap: 8px; } .mr-loginbox .btn svg { width: 16px; height: 16px; }
.mr-loginbox .btn-outline-blue { border: 1.5px solid var(--color-blue); background: var(--color-surface); color: var(--color-blue); }
.mr-loginbox .btn-outline-blue:hover { background: var(--color-blue); color: #fff; }
.mr-loginbox__new { margin: 6px 0 0; font-size: 15px; color: var(--color-text); }
.mr-loginbox__new a { color: var(--color-blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
