/* Home only. Reference: MCP_home_Codex_package, 28 October 2026. */
:root{--mcp-home-paper:#F2EEE7;--mcp-home-ink:#171716;--mcp-home-muted:#77766F;--mcp-home-red:#B8221A;--mcp-home-hair:#D2D1CB}
html:has(.mcp-home-screen){background:var(--mcp-home-paper)}
body:has(.mcp-home-screen){margin:0;color:var(--mcp-home-ink);background:var(--mcp-home-paper);font-family:'Geologica',Arial,Helvetica,sans-serif}
.mcp-home-screen,.mcp-home-screen *{box-sizing:border-box}
.mcp-home-screen{--gap:28px;--fourth-axis-offset:clamp(0px,calc((100vw - 1440px)*.434375),50%);position:relative;min-height:100svh;height:calc(100svh - var(--mcp-preview-toolbar-height,0px));height:calc(100dvh - var(--mcp-preview-toolbar-height,0px));background:var(--mcp-home-paper);isolation:isolate}
.mcp-home-screen a{color:inherit;text-decoration:none}
.mcp-home-screen a:focus-visible{outline:1.25px solid var(--mcp-home-red);outline-offset:6px}
.mcp-home-skip{position:absolute;left:64px;top:0;padding:8px;background:var(--mcp-home-paper);z-index:50;clip-path:inset(100%)}
.mcp-home-skip:focus{clip-path:none}
.mcp-home-mark{position:absolute;width:var(--sheet-mark-size);height:var(--sheet-mark-size);z-index:40;pointer-events:none;color:var(--mcp-home-ink)}
.mcp-home-mark svg{display:block;width:var(--sheet-mark-size);height:var(--sheet-mark-size)}
.mcp-home-mark.tl{top:0;left:0}.mcp-home-mark.tr{top:0;right:0;transform:scaleX(-1)}
.mcp-home-mark.bl{bottom:0;left:0;transform:scaleY(-1)}.mcp-home-mark.br{bottom:0;right:0;transform:scale(-1)}
.mcp-home-top,.mcp-home-nav,.mcp-home-actions-desktop{left:var(--edge-x);right:var(--edge-x);grid-template-columns:repeat(4,minmax(0,1fr));column-gap:var(--gap)}
.mcp-home-top{position:absolute;top:var(--sheet-header-inset);display:grid;align-items:start}
.mcp-home-logo{display:block;grid-column:1;line-height:0;width:100.1712%}
.mcp-home-logo img{display:block;width:100%;height:auto}
.mcp-home-status{grid-column:4;margin-inline-start:var(--fourth-axis-offset);display:inline-grid;grid-template-columns:auto 10px auto;align-items:center;justify-self:start;column-gap:8px;font-size:14px;line-height:1;font-weight:500;white-space:nowrap}
.mcp-home-status-dot{width:4px;height:4px;border-radius:0;background:var(--mcp-home-red);justify-self:center;animation:mcp-home-pulse 2.4s ease-in-out infinite}
@keyframes mcp-home-pulse{0%,100%{opacity:1}50%{opacity:.35}}
.mcp-home-copy{position:absolute;left:var(--edge-x);bottom:96px;width:calc((100% - 2*var(--edge-x))*.75 - var(--gap)*.25);container-type:inline-size}
.mcp-home-title{position:relative;display:block;width:max-content;margin:0;font-family:inherit;font-size:calc(100cqw / 11.59299);line-height:.94;letter-spacing:-.05em;font-weight:500;white-space:nowrap}
.mcp-home-title-first,.mcp-home-title-last{display:inline}
/* One baseline anchor; loaded final-word ink metrics set its descent in JS. */
.mcp-home-accent{--ink-descent:0em;position:relative;display:inline-block;width:.215em;height:0;vertical-align:baseline}
.mcp-home-square{position:absolute;right:0;bottom:calc(-1 * var(--ink-descent));display:block;width:.115em;height:.115em;background:var(--mcp-home-red)}
.mcp-home-nav{position:absolute;top:var(--nav-ink-start,var(--edge-top));bottom:var(--nav-ink-end,48px);display:grid;align-content:center;pointer-events:none}
.mcp-home-nav .mcp-home-menu-item{grid-column:4;margin-inline-start:var(--fourth-axis-offset);display:flex;align-items:baseline;gap:6px;justify-self:start;pointer-events:auto;font-size:17px;line-height:1.15;font-weight:500;white-space:nowrap}
.mcp-home-nav{row-gap:10px}
.mcp-home-num{min-width:20px}.mcp-home-slash{color:var(--mcp-home-red);margin-right:2px}
.mcp-home-nav a:hover{color:var(--mcp-home-red)}
.mcp-home-actions{position:absolute;bottom:var(--sheet-footer-inset);display:grid;align-items:end}
.mcp-home-actions-desktop a:nth-child(1){grid-column:1}
.mcp-home-actions-desktop a:nth-child(2){grid-column:2}
.mcp-home-actions-desktop a:nth-child(3){grid-column:3}
@media (min-width:1600px){.mcp-home-logo{width:66.7808%}}
.mcp-home-actions a{display:inline-flex;align-items:center;gap:8px;justify-self:start;color:var(--mcp-home-muted);font-size:14px;line-height:1;font-weight:400;white-space:nowrap}
.mcp-home-actions span[aria-hidden]{font-size:18px;color:var(--mcp-home-muted);transition:color .15s ease}
.mcp-home-actions a:hover,.mcp-home-actions a:focus-visible{color:var(--mcp-home-ink)}
.mcp-home-actions a:hover span,.mcp-home-actions a:focus-visible span{color:var(--mcp-home-red)}
.mcp-home-actions-mobile{display:none}
/* Tablet uses three real tracks; desktop remains four tracks. */
@media (768px <= width <= 1100px){
 .mcp-home-screen{--gap:24px;min-height:100svh;--fourth-axis-offset:0%}
 .mcp-home-top,.mcp-home-nav,.mcp-home-actions-desktop{grid-template-columns:repeat(3,minmax(0,1fr))}
 .mcp-home-status,.mcp-home-nav .mcp-home-menu-item{grid-column:3}
 .mcp-home-logo{width:74%}
 .mcp-home-copy{bottom:94px}
 .mcp-home-status{font-size:12px;column-gap:4px;grid-template-columns:auto 6px auto}
 .mcp-home-nav .mcp-home-menu-item{font-size:16px}.mcp-home-actions a{font-size:11px;gap:5px}.mcp-home-actions span[aria-hidden]{font-size:15px}
}
@media (max-width:767px){
 .mcp-home-screen{display:flex;flex-direction:column;height:auto;min-height:calc(var(--sheet-min-height) - var(--mcp-preview-toolbar-height,0px));padding:var(--sheet-header-inset) max(var(--edge-x),env(safe-area-inset-right)) var(--sheet-footer-inset) max(var(--edge-x),env(safe-area-inset-left))}
 .mcp-home-top{position:static;display:flex;flex-direction:column;align-items:flex-start;gap:12px}
 .mcp-home-logo{flex:none;min-width:0;max-width:var(--sheet-mobile-logo-max);width:100%}
 .mcp-home-status{display:inline-flex;gap:7px;font-size:clamp(10px,2.55vw,12px);line-height:1.1;padding-top:1px}
 .mcp-home-status-dot{flex:0 0 4px}
 .mcp-home-main{display:contents}
 .mcp-home-copy{position:static;margin-top:auto;padding-top:clamp(80px,18vh,170px);width:100%;container-type:normal}
 .mcp-home-title{width:auto;white-space:normal;font-size:clamp(2.4375rem,10.1vw,4rem);line-height:1.04;letter-spacing:-.055em}
 .mcp-home-title-first,.mcp-home-title-last{display:block;white-space:normal;overflow-wrap:anywhere}
 .mcp-home-accent{width:.235em}
 .mcp-home-nav{position:static;display:grid;grid-template-columns:minmax(0,1fr);gap:clamp(12px,2.5vh,20px);padding-top:clamp(42px,8vh,74px);margin-bottom:clamp(30px,calc(8vh - 8px),64px)}
 .mcp-home-nav .mcp-home-menu-item{grid-column:auto;gap:7px;font-size:clamp(17px,4.4vw,21px);line-height:1.28;min-height:27px;padding-block:4px;margin-block:-4px}
 .mcp-home-num{min-width:25px}.mcp-home-slash{margin-right:0}
 .mcp-home-actions-desktop{display:none}
 .mcp-home-actions-mobile{position:static;display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:var(--sheet-ending-gap);flex-wrap:wrap}
 .mcp-home-actions-mobile a{font-size:14px;line-height:1.25;align-items:baseline;min-height:32px}
 .mcp-home-actions-mobile span[aria-hidden]{font-size:19px;line-height:.8}
}
/* Roomier phones: independent lower contact clearance and central-group rhythm.
   Header and contact insets are shared in system-geometry.css. */
@media (375px <= width <= 767px) and (min-height:741px){
 .mcp-home-nav{margin-bottom:calc(clamp(30px,calc(8vh - 8px),64px) + 8px)}
}
@media (max-width:350px){
 .mcp-home-title{font-size:2.375rem}.mcp-home-nav{padding-top:35px;margin-bottom:30px}.mcp-home-nav .mcp-home-menu-item{font-size:17px}.mcp-home-actions-mobile a{font-size:12px}
}
@media (max-width:767px) and (max-height:740px){
 .mcp-home-copy{padding-top:65px}.mcp-home-nav{padding-top:32px;margin-bottom:28px;gap:9px}
}
@media (prefers-reduced-motion:reduce){.mcp-home-status-dot{animation:none}.mcp-home-actions span[aria-hidden]{transition:none}}

/* Keep native draft controls visible outside the Home canvas; never hide them. */
body.wpvibe-preview-active:has(.mcp-home-screen){padding-bottom:var(--mcp-preview-toolbar-height,50px)!important}
body:has(.mcp-home-screen) #wpvibe-preview-banner{box-sizing:border-box;max-width:100%;flex-wrap:wrap}
