/* Desktop split for the calculators (Clint, 11 Oct 2026): the Will Centre app's layout from 1000px wide, only when the
   page is opened directly. Inside a frame (the website embed at willzee.com/who-inherits) and below 1000px nothing in
   the media block applies and the page is as it was. Every value is the app's: will/css/desktop.css (the 480px white
   column with a right border, the panel beside it, the photo and "Why we ask this" treatments), components.css (the
   top bar and footer links) and tokens.css (colours, type). */
:root{--brand-100:#f4e1e6;--brand-500:#970747;--surface-200:#ffffff;--border:#eaeaea;--text:#2e2e2e;--text-2:#6b6b6b;
  --head:"Manrope","Segoe UI",system-ui,sans-serif;--body:"Inter","Segoe UI",system-ui,sans-serif}
.ctx,.sitefoot{display:none}
@media (min-width:1000px){
  html:not(.framed),html:not(.framed) body{height:100%}
  html:not(.framed) body{background:#fff}
  html:not(.framed) .stage{display:grid;grid-template-columns:480px minmax(0,1fr);justify-items:stretch;align-items:stretch;min-height:100vh}
  html:not(.framed) .phone{width:480px;height:100vh;height:100dvh;position:sticky;top:0;background:#fff;border-right:1px solid var(--border);display:flex;flex-direction:column;overflow:hidden}
  html:not(.framed) .phone .topbar{position:static;padding:18px 32px;border-bottom:1px solid var(--border)}
  html:not(.framed) .phone .topbar-in{max-width:none;padding:0;gap:10px}
  html:not(.framed) .phone .topbar .wordmark svg{height:32px}
  html:not(.framed) .phone .wrap{flex:1;min-height:0;overflow-y:auto;max-width:none;width:100%;margin:0;padding:28px 32px 32px;scroll-behavior:smooth}
  html:not(.framed) .sitefoot{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:6px 0;padding:12px 32px 14px;background:var(--surface-200);border-top:1px solid var(--border);font-size:12px;white-space:nowrap;font-family:var(--body)}
  html:not(.framed) .sitefoot a{color:var(--text-2);text-decoration:none;padding:2px 6px}
  html:not(.framed) .sitefoot a:first-child{padding-left:0}
  html:not(.framed) .sitefoot a:hover{color:var(--brand-500);text-decoration:underline}
  html:not(.framed) .sitefoot a+a{border-left:1px solid var(--border)}
  html:not(.framed) .sitefoot a:focus-visible{outline:2px solid var(--brand-500);outline-offset:2px;border-radius:6px}
  html:not(.framed) .ctx{display:block;position:sticky;top:0;height:100vh;height:100dvh;overflow:auto;min-width:0}
  /* Photo panel */
  .ctx-photo{position:relative;height:100%;overflow:hidden;background:#3b1a2a;color:#fff}
  .ctx-photo picture,.ctx-photo img{position:absolute;inset:0;width:100%;height:100%;display:block}
  .ctx-photo img{object-fit:cover;object-position:85% 30%;opacity:0;transition:opacity .4s ease}
  .ctx-photo img.in{opacity:1}
  .ctx-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(38,8,26,0) 35%,rgba(38,8,26,.55) 62%,rgba(38,8,26,.9) 100%)}
  .ctx-quote{position:absolute;left:48px;right:48px;bottom:48px;text-shadow:0 1px 18px rgba(40,10,25,.35)}
  .ctx-quote p{margin:0;font-family:var(--head);font-size:34px;line-height:1.15;font-weight:700;max-width:16ch;text-wrap:balance}
  .ctx-quote ul{list-style:none;margin:20px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
  .ctx-quote li{font-size:14px;font-weight:500;font-family:var(--body);background:rgba(255,255,255,.18);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);border:1px solid rgba(255,255,255,.35);padding:6px 12px;border-radius:999px}
  /* Why we ask this */
  .ctx-help{min-height:100%;background:#faf6f7;color:var(--text)}
  .ctx-help-in{padding:48px;display:flex;flex-direction:column;gap:20px;max-width:560px}
  .ctx-help .caps{font-size:12px;letter-spacing:.08em;text-transform:uppercase;font-weight:600;color:var(--brand-500);font-family:var(--body)}
  .ctx-help h2{margin:0;font-family:var(--head);font-weight:600;font-size:26px;line-height:1.2;letter-spacing:-.01em;text-wrap:balance}
  .ctx-help p{margin:0;max-width:60ch;font-family:var(--body);font-size:16px;font-weight:400;line-height:1.55}
  .ctx-more{font-size:14px;color:var(--text-2)}
  .ctx-more a{color:var(--brand-500)}
}
@media (min-width:1301px){.ctx-photo img{object-position:75% 30%}}
@media (min-width:1000px) and (prefers-color-scheme:dark){
  .ctx-help{background:#1c171e;color:#f2ecef}
  .ctx-help .caps{color:#e07aa8}
  .ctx-help p,.ctx-more{color:#d9ced4}
  .ctx-more a{color:#e07aa8}
}
@media (prefers-reduced-motion:reduce){.ctx-photo img{transition:none}}
