/* /chaye/ — editorial long scroll. Shared navigation, hero edge and palette remain shared. */
.tea-overview{--to-ink:var(--cha-heading-color,#293f30);--to-muted:var(--cha-body-color,#666a68);--to-line:#dcd8cc;--to-paper:#f8f5ee;background:var(--to-paper);color:var(--to-ink);font-family:var(--cha-font-serif);padding-bottom:5rem}
.tea-overview h1,.tea-overview h2,.tea-overview h3{font-weight:700;letter-spacing:.06em;line-height:1.4}
.to-hero{display:flex;align-items:center;background:linear-gradient(90deg,#f8f5eeaa,#f8f5ee45 38%,transparent 65%),url('../images/heroes/liu-da-cha-hero.webp') center/cover}
body.cha-overview-page header.cha-header{position:absolute;top:0;background:transparent;border:0}
.to-hero h1{font-size:clamp(3rem,5.3vw,4.8rem);margin:.9rem 0 1.5rem}
.to-hero p{font-size:1.05rem;line-height:1.9}
.to-section{margin-top:clamp(3.5rem,5vw,5rem)}
.to-heading{text-align:center;margin-bottom:2.25rem}
.to-heading h2{display:flex;align-items:center;justify-content:center;gap:1rem;font-size:clamp(1.7rem,2.7vw,2.4rem);margin:0 0 .65rem}
.to-heading h2::before,.to-heading h2::after{content:'';width:4rem;height:1.65rem;flex-shrink:0;background:url('../images/heading-tea-ribbon-clean.svg') center/contain no-repeat;opacity:.65}
.to-heading h2::after{transform:scaleX(-1)}
.to-heading h2>span{font-size:.8em;font-weight:400;color:#a5ab98}
.to-heading>p{margin:.5rem 0;font-size:.95rem}
.to-eyebrow{font-size:.8rem!important;letter-spacing:.16em}
.to-craft{position:relative;isolation:isolate;margin-top:1.5rem;padding-top:1.5rem}
.to-craft-map{width:100%;max-width:1080px;margin-inline:auto}
.to-craft-paths{--to-craft-size:116px;--to-craft-gap:1rem;--to-craft-green:#91a080;position:relative;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:var(--to-craft-gap);list-style:none;padding:0;margin:0}
.to-craft-paths li{min-width:0}
.to-craft-paths a{display:flex;align-items:center;flex-direction:column;text-align:center;text-decoration:none;padding:.6rem .1rem}
.to-craft-path__name{font-size:1.1rem;letter-spacing:.08em}
.to-craft-path__change{height:3.6em;flex:none;line-height:1.8;font-size:.72rem;color:var(--to-muted);margin-top:.2rem}
/* Join the actual circle edges, never a percentage of the whole caption/image block. */
.to-craft-path__visual{position:relative;display:flex;justify-content:center;width:100%;height:var(--to-craft-size);margin:.55rem 0 .8rem}
.to-craft-path__visual::before,.to-craft-path__visual::after{content:'';position:absolute;top:50%;height:1px;width:calc((100% - var(--to-craft-size))/2 + var(--to-craft-gap)/2 + .1rem);background:var(--to-craft-green);pointer-events:none}
.to-craft-path__visual::before{right:calc(50% + var(--to-craft-size)/2 - .5px)}
.to-craft-path__visual::after{left:calc(50% + var(--to-craft-size)/2 - .5px)}
.to-craft-paths li:first-child .to-craft-path__visual::before,.to-craft-paths li:last-child .to-craft-path__visual::after{content:none}
.to-craft-path__circle{position:relative;display:grid;place-items:center;flex:none;width:var(--to-craft-size);height:var(--to-craft-size);border:1px solid var(--to-craft-green);border-radius:50%;padding:5px;background:var(--to-paper);overflow:hidden}
.to-craft-paths img{display:block;width:100%;height:100%;aspect-ratio:1;object-fit:cover;border-radius:50%;transition:transform .25s}
.to-craft-path__family{font-size:1.25rem}
.to-craft-paths a:is(:hover,:focus-visible) img{transform:scale(1.045)}
.to-family-section{margin-top:2.5rem}
.to-families{display:grid;gap:1.1rem}
.to-family{display:grid;grid-template-columns:26% minmax(0,1fr) 24%;align-items:center;gap:1.75rem;padding-block:0 1.1rem;border-bottom:1px solid var(--to-line);scroll-margin-top:2rem;min-width:0}
.to-family:last-child{border-bottom:0;padding-bottom:0}
.to-family__art{display:block;overflow:hidden;min-width:0;width:100%;aspect-ratio:1;align-self:center;text-decoration:none}
.to-family__art>img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain;transition:transform .4s}
.to-family__art:hover>img{transform:scale(1.035)}
.to-family__body{align-self:center;min-width:0;padding-block:.9rem}
.to-family__heading{display:flex;align-items:baseline;flex-wrap:wrap;gap:.2rem 1.2rem;margin-bottom:.8rem}
.to-family__heading h3{font-size:1.9rem;margin:0}
.to-family__heading p{font-size:.85rem;letter-spacing:.06em;margin:0}
.to-family__link{display:inline-flex;align-items:center;gap:.8rem;margin-top:.85rem;padding-bottom:.15rem;font-size:.8rem;text-decoration:none;border-bottom:1px solid #b5bba9}
.to-family__link:hover{color:#526656;border-bottom-color:currentColor}
.to-family__intro{font-size:.95rem;line-height:1.85;margin:0 0 1rem}
.to-family__facts{display:grid;grid-template-columns:.75fr 1.05fr 1.1fr;gap:1rem;margin:0 0 .75rem}
.to-family__facts>div{min-width:0}
.to-family__facts>div+div{border-left:1px solid var(--to-line);padding-left:1rem}
.to-family__facts dt{font-size:.7rem;color:#888d82;letter-spacing:.06em;margin:0 0 .35rem}
body main#main .to-family__facts dd{font-size:.875rem;color:var(--to-ink);margin:0;line-height:1.7;text-wrap:balance}
.to-family__notes{font-size:.78rem;line-height:1.85;color:var(--to-muted);margin:0;padding-left:1em}
.to-family__examples{min-width:0;align-self:center;padding-block:1rem}
.to-family__examples h4{font-size:.8rem;font-weight:500;letter-spacing:.1em;margin:0 0 1rem}
.to-family__examples ul{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem;list-style:none;margin:0;padding:0}
.to-family__examples a{display:flex;flex-direction:column;align-items:center;gap:.6rem;text-align:center;text-decoration:none;font-size:.75rem;line-height:1.6}
.to-family__examples img{display:block;width:min(100%,80px);height:auto;aspect-ratio:1;object-fit:cover;border-radius:50%;transition:transform .25s}
.to-family__examples a:hover img{transform:translateY(-3px)}
.to-family__examples a:hover span{text-decoration:underline;text-underline-offset:4px}
.to-guides{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.5rem}
.to-guide{display:grid;grid-template-columns:31% minmax(0,1fr);gap:1.15rem;min-width:0}
.to-guide__image{width:100%;height:100%;min-height:250px;object-fit:cover;object-position:55% 65%;display:block}
.to-guide__content{min-width:0;padding-block:.25rem}
.to-guide__content h3{display:flex;align-items:center;gap:.45rem;font-size:1.15rem;margin:0 0 .45rem;letter-spacing:.03em}
.to-guide__content .td-trait-icon{width:25px;height:25px;flex-shrink:0}
.to-guide__content>p{font-size:.75rem;line-height:1.8;margin:0}
.to-options{display:grid;margin-top:.8rem}
.to-options button{display:flex;justify-content:space-between;gap:1rem;align-items:center;border:0;border-bottom:1px solid var(--to-line);background:transparent;color:var(--to-muted);font:inherit;text-align:left;font-size:.85rem;padding:.6rem 0;cursor:pointer;min-height:42px}
.to-options button span{color:#7e8d76}
.to-options button:is(:hover,[aria-pressed=true]){color:var(--to-ink);font-weight:700;border-bottom-color:#819177}
.to-choice-result{display:flex;flex-wrap:wrap;gap:.8rem 1.5rem;align-items:center;margin-top:1.5rem;padding-block:1rem;border-top:1px solid var(--to-line);font-size:.9rem}
.to-choice-result[hidden]{display:none}
.to-choice-result p{margin:0}
.to-choice-result a{text-decoration:none;color:var(--to-ink);padding:.35rem 0;border-bottom:1px solid #b5bba9}
.to-knowledge{max-width:64rem}
.to-knowledge .to-heading h2{font-size:1.85rem}
.to-knowledge__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 2rem;align-items:start}
.to-knowledge details{border-bottom:1px solid var(--to-line)}
.to-knowledge summary{display:flex;align-items:center;gap:.6rem;padding:1rem 0;cursor:pointer;list-style:none;font-size:.9rem}
.to-knowledge summary::-webkit-details-marker{display:none}
.to-knowledge summary::before{content:'›';font-size:1.3rem;line-height:1;transform-origin:center;transition:transform .2s}
.to-knowledge summary>span{margin-left:auto;color:#819177;font-size:.85rem;transition:transform .2s}
.to-knowledge details[open] summary::before{transform:rotate(90deg)}
.to-knowledge details[open] summary>span{transform:rotate(45deg)}
.to-knowledge details p{font-size:.9rem;line-height:1.9;margin:0 0 1.15rem;padding-left:1.3rem}
.tea-overview :is(button,a,summary):focus-visible{outline:2px solid #627957;outline-offset:4px}
@media(max-width:64rem){
 .to-craft-paths{--to-craft-size:clamp(76px,9.375vw,96px);--to-craft-gap:.7rem}.to-craft-path__name{font-size:1rem}.to-craft-path__change{font-size:.65rem}
 .to-family{grid-template-columns:34% minmax(0,1fr);gap:0 1.5rem}.to-family__art{grid-row:span 2}.to-family__examples{padding:.75rem 0 .5rem}.to-family__examples h4{margin-bottom:.6rem}.to-family__examples ul{max-width:320px}.to-family__examples img{width:60px}.to-family__body{padding-block:.5rem}
 .to-guides{gap:1rem}.to-guide{grid-template-columns:1fr;gap:1rem}.to-guide__image{height:165px;min-height:0;object-position:center 67%}.to-guide__content h3{font-size:1.05rem}
}
@media(max-width:48rem){
 .to-hero{background-position:60% center}.to-hero h1{font-size:3.25rem}html:lang(ja) .to-hero h1{font-size:2.8rem;line-height:1.38;word-break:keep-all;overflow-wrap:normal;line-break:strict}.to-heading h2{font-size:1.7rem;gap:.6rem}.to-heading h2::before,.to-heading h2::after{width:2.5rem;height:1.15rem}.to-heading>p{font-size:.85rem}
 .to-craft-paths{--to-craft-size:clamp(72px,20vw,95px);--to-craft-gap:1rem;grid-template-columns:repeat(3,minmax(0,1fr))}.to-craft-path__change{font-size:.72rem}
 .to-craft-paths li:nth-child(3n) .to-craft-path__visual::after,.to-craft-paths li:nth-child(3n+1) .to-craft-path__visual::before{content:none}
 .to-family__facts{gap:.6rem}.to-family__facts>div+div{padding-left:.6rem}.to-family__intro{font-size:.9rem}.to-family__notes{font-size:.75rem}
 .to-guides{grid-template-columns:1fr;gap:2rem}.to-guide{grid-template-columns:29% minmax(0,1fr);gap:1.2rem}.to-guide__image{height:100%;min-height:260px}.to-guide__content h3{font-size:1.2rem}.to-guide__content>p{font-size:.8rem}.to-options button{font-size:.9rem;min-height:44px}
 .to-knowledge__grid{gap:0 1.5rem}
}
@media(max-width:40rem){
 .tea-overview{padding-bottom:3.5rem}.to-heading h2{font-size:1.45rem}.to-heading h2::before,.to-heading h2::after{width:1.75rem}.to-craft .to-heading h2{flex-wrap:wrap;column-gap:.25rem}.to-craft .to-heading h2::before,.to-craft .to-heading h2::after{display:none}.to-craft .to-heading h2>span{margin-inline:.3rem}
 .to-craft-paths{grid-template-columns:repeat(2,minmax(0,1fr));--to-craft-size:clamp(78px,26vw,98px);--to-craft-gap:1.15rem}
 .to-craft-path__name{font-size:.98rem;line-height:1.35;letter-spacing:.035em}
 .to-craft-path__change{height:auto;min-height:3.8em;font-size:.68rem;line-height:1.55;overflow-wrap:anywhere}
 .to-craft-path__visual::before,.to-craft-path__visual::after{content:none!important}
 .to-family{grid-template-columns:1fr;gap:0;padding-bottom:1.75rem}.to-families{gap:1.75rem}.to-family__art{grid-row:auto}.to-family__heading{gap:.25rem .8rem}.to-family__heading h3{font-size:1.8rem}.to-family__heading p{font-size:.8rem}.to-family__body{padding-block:1.25rem 1rem}.to-family__intro{font-size:.95rem}.to-family__examples{padding:0}.to-family__examples ul{max-width:none;gap:1rem}.to-family__examples img{width:76px}.to-family__examples a{font-size:.8rem}.to-family__examples h4{margin-bottom:.75rem}.to-family__notes{font-size:.85rem}.to-family__facts dt{font-size:.75rem}
 .to-knowledge__grid{grid-template-columns:1fr}.to-knowledge .to-heading h2{font-size:1.65rem}
}
@media(prefers-reduced-motion:reduce){.tea-overview *{scroll-behavior:auto}.to-family__art>img,.to-craft-paths img,.to-family__examples img,.to-knowledge summary::before,.to-knowledge summary>span{transition:none}}
