/* v22 explore: one soft search bar, tab underline that slides, quiet view link, real chat preview in the dock.
   Motion: transform + opacity only, one easing, 120/180/240/320ms. */
:root{--tint:rgba(22,19,14,.055);--bub:#FAF8F3;--bline:rgba(22,19,14,.12)}
html[data-theme=dark]{--tint:rgba(241,237,230,.075);--bub:#161412;--bline:rgba(241,237,230,.13)}

/* search bar */
.ask{position:relative}
.bar .ask{margin:0 0 10px}
.ask-ic{position:absolute;left:14px;top:50%;width:18px;height:18px;margin-top:-9px;color:var(--mute);pointer-events:none}
.ask input{height:48px;border:0;border-radius:12px;background:var(--tint);padding:0 52px 0 42px;box-shadow:inset 0 0 0 1px transparent;outline:0;
 transition:box-shadow var(--v-d2) var(--v-ease),background-color var(--v-d2) var(--v-ease)}
.ask input:focus{box-shadow:inset 0 0 0 1px var(--fg)}
.askgo{right:6px;top:6px;width:36px;height:36px;border-radius:8px;background:var(--fg);color:var(--bg);opacity:0;transform:scale(.86);pointer-events:none;
 transition:opacity var(--v-d2) var(--v-ease),transform var(--v-d3) var(--v-ease)}
.askgo svg{width:18px;height:18px;stroke-width:1.5}
.ask.txt .askgo{opacity:1;transform:none;pointer-events:auto}
.askgo.is-press,.ask.txt .askgo:active{transform:scale(.93)}
@media (hover:hover) and (pointer:fine){.ask input:hover:not(:focus){background:color-mix(in srgb,var(--fg) 8%,transparent)}.askgo:hover{color:var(--bg);opacity:.88}}
@media (min-width:700px) and (min-height:600px){.bar .ask{margin:0}}

/* tabs: no rules, one sliding underline, scroll + snap on small screens */
.tpw{display:flex;align-items:stretch;border:0!important}
.tp{flex:1 1 auto;min-width:0;width:auto!important;max-width:none!important;margin:0!important;display:flex;justify-content:flex-start;gap:22px;
 padding:0 var(--tpad,var(--g))!important;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;scrollbar-width:none;overscroll-behavior-x:contain;position:relative;-webkit-overflow-scrolling:touch}
.tp::-webkit-scrollbar{display:none}
.tp::after{content:"";flex:none;width:var(--tpad,var(--g))}
.tp button{flex:none;padding:0 2px;scroll-snap-align:start;scroll-margin-inline:var(--g)}
.tp button::after{display:none}
.tpi{position:absolute;left:0;bottom:3px;height:2px;width:1px;background:var(--fg);transform-origin:0 50%;pointer-events:none;transition:transform var(--v-d3) var(--v-ease)}
.tpi.nt{transition:none}
html.rm .tpi{transition:none}
.vw{flex:none;display:flex;align-items:center;padding:0 var(--tpad,var(--g)) 0 14px;font-size:var(--t-meta);color:var(--mute);min-height:44px;transition:opacity var(--v-d1) var(--v-ease),color var(--v-d2) var(--v-ease)}
.vw span.on,.vw span[aria-hidden]{display:none}
@media (hover:hover) and (pointer:fine){.vw:hover{opacity:1;color:var(--fg)}}
@media (min-width:1024px) and (min-height:600px) and (orientation:landscape),(min-width:1366px){.tpw,.tp{--tpad:0px}.tp{gap:32px}}

/* dock preview: the real chat bubbles, scaled for this spot */
html[data-v=b] .dk .eg-w{display:block;margin:0;padding:0;border:0;width:100%}
.pv{display:flex;flex-direction:column;gap:10px;width:100%;max-width:34em}
.pm{display:flex;flex-direction:column;min-width:0}
.pm.u{align-items:flex-end}
.pm .bub{font-size:15px;line-height:22px;overflow-wrap:anywhere;margin:0}
.pm.u .bub{background:var(--fg);color:var(--bg);border-radius:20px;padding:9px 16px;max-width:88%}
.pm.e{align-items:flex-start;max-width:96%}
.pe{display:flex;align-items:center;gap:8px;font-size:12.5px;line-height:16px;color:var(--mute);margin-bottom:6px}
.pe .eic{display:grid;place-items:center;width:18px;height:18px;flex:none;color:var(--fg)}
.pe .eic svg{width:100%;height:100%}
.pm.e .bub{background:var(--bub);border:1px solid var(--bline);border-radius:20px;padding:11px 16px;color:var(--fg)}
.pv.in .pm.e{animation:pvIn var(--v-d4) var(--v-ease) 120ms both}
@keyframes pvIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
html.rm .pv.in .pm.e{animation:pvFade 200ms var(--v-ease) both}
@keyframes pvFade{from{opacity:0}to{opacity:1}}
html[data-v=b] .dk .ctaw{margin-top:16px}
@media (min-width:1024px) and (min-height:600px) and (orientation:landscape),(min-width:1366px){html[data-v=b] .dk .ctaw{margin-top:20px}.pv{max-width:32em}}
@media (max-width:699px),(max-height:599px){
 html[data-v=b] .dk{gap:8px}
 html[data-v=b] .dk .ctaw{margin-top:2px}
 html[data-v=b] .dock{padding-top:10px}
 .pm .bub{font-size:14.5px;line-height:21px}
 .pm.u .bub{padding:7px 14px}
 .pm.e .bub{padding:9px 14px}
 .pv{gap:8px}
 .pe{margin-bottom:4px}
}

/* phones: header (K + theme), then the page title on its own line, then the search bar, then the tabs. Nothing overlaps, nothing is clipped. */
.xt{display:none}
@media (max-width:699px){
 .bar{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:56px auto auto;column-gap:12px}
 .bar .brand{grid-column:1;grid-row:1}
 .bar > a.nl{display:none!important}
 .bar .ctl{grid-column:2;grid-row:1}
 .xt{display:block;grid-column:1;grid-row:2;margin:2px 0 12px;font-size:28px;line-height:34px;font-weight:600;letter-spacing:-.04em;color:var(--fg)}
 .bar .vw{grid-column:2;grid-row:2;align-self:center;padding:0;min-height:44px;margin-top:-4px;justify-self:end}
 .bar .ask{grid-column:1/-1;grid-row:3;margin:0 0 6px}
 .tp{padding-left:var(--g)!important;scroll-padding-inline:var(--g)}
}

/* ===== v22 detail panel: one centred column, adds information instead of repeating the row ===== */
.moreb{display:none}
.hl{margin:0;font-size:12px;line-height:16px;font-weight:560;letter-spacing:.07em;text-transform:uppercase;color:var(--mute)}
.hu,.su{list-style:none;margin:8px 0 0;padding:0}
.hu{display:grid;gap:4px}
.hu li{position:relative;padding-left:16px;font-size:15px;line-height:22px;color:var(--fg)}
.hu li::before{content:"";position:absolute;left:2px;top:10px;width:4px;height:4px;border-radius:50%;background:var(--mute)}
.su a{display:flex;align-items:center;min-height:44px;margin:0 -12px;padding:8px 12px;border-radius:12px;font-size:15px;line-height:22px;color:var(--fg);transition:background-color var(--v-d1) var(--v-ease),transform var(--v-d1) var(--v-ease)}
.su a.is-press{transform:scale(.985);background:var(--tint)}
@media (hover:hover) and (pointer:fine){.su a:hover{background:var(--tint)}}
.srcl{margin:0;font-size:13px;line-height:20px;color:var(--mute)}
.pvn{margin:2px 0 0;font-size:12.5px;line-height:18px;color:var(--mute)}
/* bubbles: one radius family and font size; the question is soft, never the heaviest element */
.pm .bub{font-size:15.5px;line-height:23px}
.pm.u .bub{background:color-mix(in srgb,var(--fg) 9%,transparent);color:var(--fg);border-radius:18px;padding:12px 16px;max-width:80%}
.pm.e .bub{border-radius:18px;padding:13px 17px}
.pm.e{max-width:92%}
.pv{gap:12px;max-width:none}
.chatbtn{height:46px;min-height:46px;font-size:15px}
.rb{color:var(--mute)}
.ix .ch,.ixg .ch{display:none}
@media (hover:hover) and (pointer:fine){.ixg a:hover .ch{display:none}}

/* desktop + iPad landscape: list on the left, a centred column on the right */
@media (min-width:1024px) and (min-height:600px) and (orientation:landscape),(min-width:1366px){
 html[data-v=b] .dock{padding:32px 0 32px 40px;align-items:stretch;overflow-y:auto;scrollbar-width:none;overscroll-behavior:contain}
 html[data-v=b] .dock::-webkit-scrollbar{display:none}
 html[data-v=b] .dk{max-width:660px;margin:auto;align-items:stretch;width:100%}
 html[data-v=b] .foc{display:block;margin:0}
 html[data-v=b] .foc .mk{width:32px;height:32px;margin:0 0 16px}
 html[data-v=b] .foc h1{font-size:44px;line-height:50px;font-weight:560;letter-spacing:-.035em;margin:0;text-wrap:balance}
 html[data-v=b] .foc .by{margin:8px 0 0;font-size:15px;line-height:22px;color:var(--mute)}
 html[data-v=b] .dk .ln{margin:16px 0 0;font-size:17px;line-height:26px}
 html[data-v=b] .dk .hp{display:block;margin-top:20px}
 html[data-v=b] .dk .eg-w{margin-top:32px;padding-top:0;border-top:0}
 html[data-v=b] .dk .ctaw{margin-top:28px}
 html[data-v=b] .dk .chatbtn{min-width:168px}
 html[data-v=b] .dk .stw{display:block;margin-top:32px}
 html[data-v=b] .dk .srcl{display:block;margin-top:24px}
 html[data-v=b] .dk .pv{max-width:none}
}
@media (min-width:1600px){html[data-v=b] .foc h1{font-size:52px;line-height:58px}html[data-v=b] .dk{max-width:680px}}
@media (max-height:760px) and (min-width:1024px) and (orientation:landscape){html[data-v=b] .foc h1{font-size:38px;line-height:44px}html[data-v=b] .dk .eg-w{margin-top:24px}html[data-v=b] .dk .stw{margin-top:24px}}

/* iPad portrait: the focused row is right above, so no repeated title; everything else in one centred column */
@media (min-width:700px) and (min-height:700px) and (orientation:portrait){
 html[data-v=b] .dock{padding:20px 24px calc(20px + env(safe-area-inset-bottom));max-height:52svh;overflow-y:auto;scrollbar-width:none}
 html[data-v=b] .dock::-webkit-scrollbar{display:none}
 html[data-v=b] .dk{max-width:660px;margin:0 auto;display:flex;flex-direction:column;align-items:stretch;gap:0}
 html[data-v=b] .dk .ln{margin:0;font-size:17px;line-height:26px;text-align:left}
 html[data-v=b] .dk .hp{display:block;margin-top:16px}
 html[data-v=b] .dk .eg-w{display:block;margin:28px 0 0;padding:0;border:0}
 html[data-v=b] .dk .ctaw{margin-top:24px;display:flex;justify-content:flex-start}
 html[data-v=b] .dk .chatbtn{width:auto;min-width:168px}
 html[data-v=b] .dk .stw{display:block;margin-top:28px}
 html[data-v=b] .dk .srcl{display:block;margin-top:20px}
}

/* phones: compact dock (description, example, Chat) and a quiet link to the full detail sheet */
@media (max-width:699px),(max-height:599px){
 html[data-v=b] .dk .hp,html[data-v=b] .dk .stw,html[data-v=b] .dk .srcl,html[data-v=b] .dk .pvn{display:none}
 html[data-v=b] .dk .pm .bub{font-size:14.5px;line-height:21px}
 html[data-v=b] .dk .pm.u .bub{padding:8px 14px;border-radius:16px}
 html[data-v=b] .dk .pm.e .bub{padding:10px 14px;border-radius:16px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
 html[data-v=b] .dk .chatbtn{height:46px}
 .moreb{display:flex;align-items:center;justify-content:center;min-height:36px;margin-top:-4px;font-size:14px;color:var(--mute);transition:color var(--v-d1) var(--v-ease),transform var(--v-d1) var(--v-ease)}
 .moreb.is-press{transform:scale(.98);color:var(--fg)}
}
/* detail sheet (phones) */
.psheet{position:fixed;inset:0;z-index:80}
.ps-scrim{position:absolute;inset:0;background:rgba(10,9,8,.42);opacity:0;transition:opacity var(--v-d3) var(--v-ease)}
.ps-card{position:absolute;left:0;right:0;bottom:0;max-height:90svh;overflow-y:auto;overscroll-behavior:contain;background:var(--bg);color:var(--fg);border-radius:20px 20px 0 0;padding:28px var(--g) calc(28px + env(safe-area-inset-bottom));opacity:0;transform:translateY(24px);transition:opacity var(--v-d3) var(--v-ease),transform var(--v-d3) var(--v-ease)}
.psheet.on .ps-scrim{opacity:1}.psheet.on .ps-card{opacity:1;transform:none}
@media (min-width:700px){.ps-card{left:50%;right:auto;width:min(620px,100%);margin-left:max(-310px,-50%);border-radius:20px}.psheet{display:grid;align-items:end;justify-items:center}.ps-card{position:relative;left:auto;margin:0 0 24px}}
.ps-x{position:absolute;top:8px;right:8px;width:44px;height:44px;display:grid;place-items:center;border-radius:12px;color:var(--mute)}
.ps-x svg{width:18px;height:18px}
.ps-in .mk2{display:block;width:32px;height:32px;margin-bottom:16px}.ps-in .mk2 svg{width:100%;height:100%}
.ps-in .pt{margin:0;font-size:32px;line-height:38px;font-weight:560;letter-spacing:-.035em;text-wrap:balance;padding-right:36px}
.ps-in .by{margin:8px 0 0;font-size:15px;line-height:22px;color:var(--mute)}
.ps-in .ln{margin:16px 0 0;font-size:16px;line-height:24px}
.ps-in .hp{margin-top:20px}
.ps-in .pv{margin-top:28px}
.ps-in .ctaw{margin-top:24px}.ps-in .chatbtn{display:flex;width:100%}
.ps-in .stw{margin-top:28px}
.ps-in .srcl{margin-top:20px}
html.ps-open{overflow:hidden}
@media (prefers-reduced-motion:reduce){.ps-card{transform:none}}

/* compact helps line + tighter starters so the whole panel fits a 900px-high desktop */
.hu{display:flex;flex-wrap:wrap;gap:0 18px}
.hu li{padding-left:0;white-space:nowrap}
.hu li::before{display:none}
.hu li+li::before{display:block;content:"\00b7";position:absolute;left:-12px;top:0;width:auto;height:auto;background:none;color:var(--mute)}
@media (hover:hover) and (pointer:fine){.su a{min-height:38px;padding:6px 12px}}
@media (min-width:1024px) and (min-height:600px) and (orientation:landscape),(min-width:1366px){
 html[data-v=b] .dock{padding-top:24px;padding-bottom:24px}
 html[data-v=b] .dk .eg-w{margin-top:28px}
 html[data-v=b] .dk .ctaw{margin-top:24px}
 html[data-v=b] .dk .stw{margin-top:28px}
 html[data-v=b] .dk .srcl{margin-top:16px}
}
@media (min-width:1024px) and (max-height:960px) and (orientation:landscape){html[data-v=b] .foc h1{font-size:40px;line-height:46px}}

.pvn{display:none}
.pe span:last-child{white-space:nowrap}
/* helps: a quiet dotted list */
.hu{display:grid;gap:4px}
.hu li{padding-left:16px;white-space:normal}
.hu li::before,.hu li+li::before{content:"";display:block;position:absolute;left:2px;top:10px;width:4px;height:4px;border-radius:50%;background:var(--mute)}
@media (max-width:699px),(max-height:599px){
 html[data-v=b] .dk .pm.e .bub{display:block;overflow:visible}
 html[data-v=b] .dk #ega>span{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
}
@media (min-width:1024px) and (max-height:800px) and (orientation:landscape){html[data-v=b] .foc h1{font-size:34px;line-height:40px}html[data-v=b] .foc .mk{margin-bottom:12px}}

/* v22 trim: desktop panel is icon, title, description, exchange (no name/label), Chat, Try asking (2).
   No Inspired by, no Helps with, no source line, no label above the reply. Mobile sheet keeps one Inspired by.
   Spacing on the 8/16/24/32 rhythm. */
.pe,.dk .hp,.dk .srcl,.dk .pvn,.ps-in .hp,.ps-in .srcl,.ps-in .pe{display:none!important}
.pv{gap:16px}
@media (min-width:1024px) and (min-height:600px) and (orientation:landscape),(min-width:1366px){
 html[data-v=b] .foc .by{display:none}
 html[data-v=b] .foc .mk{margin:0 0 16px}
 html[data-v=b] .dk .ln{margin:16px 0 0}
 html[data-v=b] .dk .eg-w{margin-top:32px}
 html[data-v=b] .dk .ctaw{margin-top:24px}
 html[data-v=b] .dk .stw{margin-top:32px}
}
@media (min-width:1024px) and (max-height:800px) and (orientation:landscape){
 html[data-v=b] .foc .mk{margin:0 0 16px}
 html[data-v=b] .dk .eg-w{margin-top:24px}
 html[data-v=b] .dk .ctaw{margin-top:24px}
 html[data-v=b] .dk .stw{margin-top:24px}
}
@media (min-width:700px) and (min-height:700px) and (orientation:portrait){
 html[data-v=b] .dk .eg-w{margin-top:32px}
 html[data-v=b] .dk .ctaw{margin-top:24px}
 html[data-v=b] .dk .stw{margin-top:32px}
}
.ps-in .mk2{margin-bottom:16px}
.ps-in .by{margin:8px 0 0}
.ps-in .ln{margin:16px 0 0}
.ps-in .pv{margin-top:32px}
.ps-in .ctaw{margin-top:24px}
.ps-in .stw{margin-top:32px}
@media (max-width:699px),(max-height:599px){
 html[data-v=b] .dk .eg-w{margin-top:16px}
 html[data-v=b] .dk .ctaw{margin-top:16px}
 .pv{gap:12px}
}

/* ===== v22 2212061: credit line, hide mobile dock, Philosophers bust tab. Wheel CSS unchanged. ===== */
.ex-by{margin:0;font-size:var(--t-meta);line-height:20px;color:var(--mute);white-space:nowrap;overflow:hidden;text-overflow:clip}

/* credit line under the Explore title (above the search bar on the phone) */
@media (max-width:699px){
 .bar{grid-template-rows:56px auto auto auto}
 .xt{margin:2px 0 0}
 .ex-by{display:block;grid-column:1/-1;grid-row:3;margin:6px 0 12px}
 .bar .ask{grid-row:4}
}
@media (min-width:700px) and (min-height:600px){
 .bar{grid-template-rows:56px auto}
 .ex-by{display:block;grid-column:1/-1;grid-row:2;margin:0 0 10px}
}
@media (min-width:1024px) and (min-height:600px) and (orientation:landscape),(min-width:1366px){
 body{grid-template-rows:auto auto minmax(0,1fr)}
 .bar{grid-template-rows:64px auto}
 .ex-by{display:block;grid-column:1/-1;grid-row:2;margin:0;padding:0 0 10px}
}

/* below 820: dock off only. Rows keep original height, type, icons, spacing. */
@media (max-width:819px){
 html[data-v=b] .dock{display:none!important}
}

/* Philosophers is an icon-only tab at every width; drop the divider. Text tabs keep original 15px type. */
.tp .ph-div{display:none!important}
.tp button[data-g="Philosophers"]{padding:0;min-width:0;width:20px;display:inline-flex;align-items:center;justify-content:center}
.tp button[data-g="Philosophers"] .ph-ico{display:block;width:18px;height:18px}
.tp button[data-g="Philosophers"] span{display:none}

/* Fit all 7 on one row, including a 364px-wide tab row on a 390 iPhone. 15px type unchanged.
   space-between so the bust tab stays in view when the content width is narrower than the device width. */
@media (max-width:699px){
 .tp{padding:0 12px!important;overflow-x:hidden;justify-content:space-between;gap:0;width:100%;box-sizing:border-box}
 .tp::after{content:none;width:0;display:none;flex:none}
}
@media (min-width:700px) and (max-width:819px){
 .tp{padding-right:0!important;overflow-x:hidden;gap:20px;padding-left:16px!important}
 .tp::after{content:none;width:0;display:none}
}

/* Claude-style desktop sample reply: no box; line icon + Echo title above plain text. Dock only. */
html[data-v=b] .dk .pe{display:flex!important;align-items:center;gap:8px;font-size:12.5px;line-height:16px;color:var(--mute);margin:0 0 6px}
html[data-v=b] .dk .pe .eic{display:grid;place-items:center;width:18px;height:18px;flex:none;color:var(--fg)}
html[data-v=b] .dk .pe .eic svg{width:100%;height:100%;display:block}
html[data-v=b] .dk .pm.e .bub{background:none;border:0;box-shadow:none;padding:0!important;border-radius:0;filter:none}

/* Explore link sits right of the search bar, just before the theme toggle (iPad/desktop). Gap search→Explore = Explore→toggle glyph. */
@media (min-width:700px) and (min-height:600px),(min-width:1024px) and (min-height:600px) and (orientation:landscape),(min-width:1366px){
 .bar{grid-template-columns:auto minmax(0,1fr) auto auto}
 .bar .brand{grid-column:1}.bar .ask{grid-column:2}
 .bar > a.nl{grid-column:3;margin:0 0 0 13px}
 .bar .ctl{grid-column:4}
}

/* tap targets: 44px hit areas, look unchanged (pseudo-elements only; a button never grows into its neighbour's gap) */
.tp button::before{content:"";position:absolute;top:0;bottom:0;left:50%;width:max(100%,44px);transform:translateX(-50%)}
.tp button:first-child::before{left:0;transform:none}
.vw{position:relative}
.vw::after{content:"";position:absolute;inset:0 0 0 -10px}
.askgo::after{content:"";position:absolute;inset:-4px}
