/* Shared fixes for every page: link LAST, after footer.css. Phone layout, contrast, colour-only hovers, focus. */
.frame{overflow:clip}
.frame>.bar,.bar{position:sticky;top:0;z-index:20}

/* colour-only hovers: no lifts, slides or scroll-in movement (centre-out underlines stay, the owner chose them) */
@media (hover:hover) and (pointer:fine){
 .back:hover .ar,.free-link:hover .ar,.rn-all:hover .ar,.ar{transform:none!important}
 .pair a:hover .cv{transform:none!important;box-shadow:none!important}
 .rn a:hover,.toc a:hover,.tools li:hover,.wizlist li:hover,.blist a:hover{padding-left:0!important}
}
.rv,.rv.in{transform:none!important}

/* faint text and fields */
:root{--ink-dim:#6e6092}
.acts a em{color:var(--ink-soft,#5a4a7e)}
input::placeholder{color:var(--ink-dim)}
.srch{border-bottom-color:#946112!important}
.srch:focus-within{outline:0;border-bottom-color:#7a3fc9!important;box-shadow:0 2px 0 #7a3fc9}
button:focus-visible,.btn:focus-visible,select:focus-visible{outline:3px solid var(--lilac,#7a3fc9);outline-offset:3px}

/* footer: readable on the coloured band, tidy on phones */
.fbase{color:rgba(255,248,238,.92)}
.fsign p{color:rgba(255,248,238,.92)}
.fcols .blurb{color:rgba(255,248,238,.9)}
.fform input::placeholder{color:rgba(255,248,238,.8)}
.foot.light .fform input::placeholder{color:#6e6092}
.fform .fbtn{white-space:nowrap}
.fform input{min-width:0}
.fbase span{display:flex;flex-wrap:wrap;gap:4px 14px}
.fbase a{margin-left:0}

/* top bar on phones: logo + Log in + Free packs, menu words on their own scrolling row */
@media (max-width:760px){
 .fwrap{padding:0 20px}
 .fsign h3{font-size:34px}
}
@media (max-width:420px){
 .fform{flex-wrap:wrap}.fform input{flex-basis:100%}
}

/* footer link columns: two across on phones instead of one long list */
@media (max-width:760px){.fcols{grid-template-columns:1fr 1fr!important;gap:26px 20px}.fcols>div:first-child{grid-column:1/-1}}

/* round 2 */
@media (max-width:760px){
 .fbase .cr{flex-basis:100%}
 .fcols>div:last-child{grid-column:1/-1}.fcols>div:last-child ul{display:grid;grid-template-columns:1fr 1fr;column-gap:20px}.fcols>div:last-child li{margin:2px 0}
 .bar .right a,.fcols li a,.fbase a{display:inline-block;padding:6px 0}
 .fcols li{margin:2px 0}
}
.cross a{white-space:nowrap}
input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none;height:14px;width:14px;cursor:pointer;background:currentColor;opacity:.55;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 2l10 10M12 2L2 12' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 2l10 10M12 2L2 12' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat}
/* anchors land below the sticky bar */
h2[id],h3[id],[id]:target{scroll-margin-top:96px}
@media (max-width:760px){h2[id],h3[id],[id]:target{scroll-margin-top:84px}}

/* round 3: bigger tap areas on phones without moving anything */
@media (max-width:760px){
 .back,.rn-all,.care a,.sh a,.eall,.cross a,.tbar button,.jump a{position:relative}
 .back::before,.rn-all::before,.care a::before,.sh a::before,.eall::before,.cross a::before,.tbar button::before,.jump a::before{content:"";position:absolute;inset:-10px -4px}
 .srch{padding:10px 0!important}
}
button,.btn{font-family:inherit}

/* phone menu: logo, Log in, Free packs and a menu button; the six sections open in a panel under the bar */
.menu-btn{display:none}
@media (max-width:760px){
 .bar,.frame>.bar{height:64px!important;padding:0 16px!important;gap:14px!important;position:sticky}
 .bar .wm{font-size:28px}
 .bar .right{gap:14px}
 .bar .right a,.bar .btn{white-space:nowrap}
 .bar .btn{padding:9px 14px;font-size:15px}
 .menu-btn{display:flex;flex-direction:column;justify-content:center;gap:5px;width:44px;height:44px;margin-right:-10px;padding:0 10px;background:none;border:0;cursor:pointer;color:var(--ink,#2a1c47);order:9}
 .menu-btn i{display:block;height:2px;border-radius:1px;background:currentColor}
 .bar[data-open] .menu-btn i:nth-child(2){opacity:0}
 .bar[data-open] .menu-btn i:first-child{transform:translateY(7px) rotate(45deg)}
 .bar[data-open] .menu-btn i:last-child{transform:translateY(-7px) rotate(-45deg)}
 .bar nav{display:none!important;position:absolute;left:0;right:0;top:100%;flex-direction:column;gap:0!important;background:#fff;border-bottom:1.5px solid var(--lilac-100,#e2d4f3);box-shadow:0 18px 30px -18px rgba(42,28,71,.35);padding:4px 16px 10px}
 .bar[data-open] nav{display:flex!important}
 .bar nav a{font-size:17px;padding:14px 0!important;border-top:1px solid var(--lilac-100,#e2d4f3)}
 .bar nav a:first-child{border-top:0}
 .bar nav a::after{display:none}
 .bar nav a.on{color:#7a3fc9}
}

/* footer email field: visible focus */
.fform input:focus-visible{outline:2px solid #f6cf7c;outline-offset:4px}
.foot.light .fform input:focus-visible{outline-color:#5b2a6b}
/* the menu button never shrinks; tighter gaps on the narrowest phones */
@media (max-width:760px){.menu-btn{flex:none}.bar .wm,.bar .right a,.bar .btn{flex:none}}
@media (max-width:374px){.bar,.frame>.bar{gap:10px!important;padding:0 12px!important}.bar .right{gap:10px}.bar .wm{font-size:26px}.bar .btn{padding:8px 12px;font-size:14.5px}}
/* narrow phones: Log in moves into the menu so the bar never overflows */
.bar nav a.nav-login{display:none}
@media (max-width:420px){.bar .right a:not(.btn){display:none}.bar nav a.nav-login{display:block;font-family:'Mulish',sans-serif;letter-spacing:0;text-transform:none;font-weight:800}}

/* menu bar: each section link wears its own colour (underline --c, text --t); hovers change colour only */
.bar nav a:nth-child(1){--c:#e0457b;--t:#b8285c}.bar nav a:nth-child(2){--c:#7a2d8f;--t:#7a2d8f}.bar nav a:nth-child(3){--c:#0d8f80;--t:#0a6f63}
.bar nav a:nth-child(4){--c:#4a59cf;--t:#4a59cf}.bar nav a:nth-child(5){--c:#a8285a;--t:#8a2148}.bar nav a:nth-child(6){--c:#b07a12;--t:#8a5a00}
.wm i{color:#7a2d8f!important}
.frame>.bar{border-bottom-color:transparent!important}
.frame>.bar .right a:not(.btn)::after{display:none!important}
@media (hover:hover) and (pointer:fine){.frame>.bar .right a:not(.btn):hover{color:#7a2d8f}.frame>.bar nav a:hover,.frame>.bar nav a.on{color:var(--t)}}
@media (min-width:761px){
 .frame>.bar nav a::after,.frame>.bar nav a:nth-child(n)::after{background:var(--c)!important;transform:none!important;transition:none!important;right:auto;width:14px;height:3px}
 .frame>.bar nav a.on::after,.frame>.bar nav a.on:nth-child(n)::after{width:auto;right:.16em}
 .frame>.bar nav a.on{color:var(--t)}
}
@media (max-width:760px){
 .menu-btn i:nth-child(1){background:#b8285c}.menu-btn i:nth-child(2){background:#0a6f63}.menu-btn i:nth-child(3){background:#7a2d8f}
 .bar nav{background:#f4ecff!important;border-bottom-color:#dccbf5!important}
 .bar nav a{border-top-color:#e3d5f7!important}
 .frame>.bar nav a:not(.nav-login){color:var(--t)!important;border-left:4px solid var(--c);padding-left:12px!important}
 .frame>.bar nav a.on{background:#fff}
 .bar nav a.nav-login{font-family:'Mulish',sans-serif!important;font-weight:800;letter-spacing:0;text-transform:none;color:#2a1c47}
}
.frame>.bar .right a:not(.btn){color:var(--ink,#2a1c47)}
@media (max-width:760px){.bar nav a.nav-login{padding-left:16px!important}}
/* desktop menu: no short tabs at rest (they made the row hard to read); only the current page keeps its full underline */
@media (min-width:761px){.frame>.bar nav a:not(.on)::after,.frame>.bar nav a:not(.on):nth-child(n)::after{display:none!important}}
/* colour ribbon under the bar: the six section colours as flat blocks, kept away from the words */
.frame>.bar::after{content:"";position:absolute;left:0;right:0;bottom:-5px;height:5px;pointer-events:none;
 background:linear-gradient(90deg,#e0457b 0 16.66%,#7a2d8f 16.66% 33.33%,#0d8f80 33.33% 50%,#4a59cf 50% 66.66%,#a8285a 66.66% 83.33%,#e0ad1f 83.33% 100%)}
/* menu bar A (owner pick 2026-10-29): bigger plain-case words, each in its section colour, nothing between them */
.frame>.bar{height:84px!important}
.frame>.bar .wm{font-size:38px!important}
.frame>.bar nav a{font-size:20px!important;letter-spacing:.02em!important;text-transform:none!important}
.frame>.bar nav a:nth-child(n){color:var(--t)!important}
@media (hover:hover) and (pointer:fine){.frame>.bar nav a:hover{color:#2a1c47!important}}
@media (max-width:1180px){.frame>.bar nav{gap:20px!important}.frame>.bar nav a{font-size:18px!important}}
@media (max-width:960px){.frame>.bar nav{gap:14px!important}.frame>.bar nav a{font-size:16.5px!important}.frame>.bar .wm{font-size:32px!important}}
@media (max-width:760px){.frame>.bar{height:64px!important}.frame>.bar .wm{font-size:30px!important}.frame>.bar nav a{font-size:18px!important}}
@media (max-width:374px){.frame>.bar .wm{font-size:26px!important}}
.frame>.bar{background:#fffaf2!important}
/* 761–900: the bar keeps Log in and Free packs on one line each */
.frame>.bar .right a,.frame>.bar .btn,.frame>.bar nav a{white-space:nowrap}
@media (min-width:761px) and (max-width:900px){.frame>.bar{gap:14px!important;padding-left:24px!important;padding-right:24px!important}.frame>.bar nav{gap:11px!important}.frame>.bar nav a{font-size:15.5px!important}.frame>.bar .wm{font-size:29px!important}.frame>.bar .right{gap:12px}.frame>.bar .btn{padding:10px 14px}}

/* page top, journal format: one framed picture the width of the page, with the headline on a see-through cream panel.
   Each page sets where the panel sits (inline left/right/top/bottom) and its shadow colour (--ptsh). */
.fhead.pt .wide2{min-height:0}
.pt .lay{position:relative;aspect-ratio:2.2/1;margin-top:4px}
.pt .pic{position:absolute;inset:0;border-radius:14px;overflow:hidden;box-shadow:6px 6px 0 var(--ptsh,#ffd9e6)}
.pt .pic img{display:block;width:100%;height:100%;object-fit:cover;object-position:var(--ptpos,50% 50%)}
.pt .say{position:absolute;box-sizing:border-box;max-width:calc(100% - 40px);padding:16px 26px;border-radius:12px;text-align:center;background:rgba(255,250,242,.86);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.fhead.pt h1{font-size:46px;line-height:1.06;max-width:none}
@media (max-width:1040px) and (min-width:761px){.fhead.pt h1{font-size:36px}.pt .say{padding:12px 18px}}
@media (max-width:760px){
 .pt .lay{aspect-ratio:auto;display:flex;flex-direction:column-reverse}
 .pt .say{position:static;max-width:none;padding:0;text-align:left;background:none;-webkit-backdrop-filter:none;backdrop-filter:none}
 .fhead.pt h1{font-size:44px}
 .pt .pic{position:static;margin-top:22px;aspect-ratio:2.2/1;box-shadow:4px 4px 0 var(--ptsh,#ffd9e6)}
}
