/* Scoped to the selectable Guide post template. */
.tcb-guide{--guide-accent:#7540a8;--guide-ink:#242033;--guide-muted:#645c70;--guide-line:#e5dfec;--guide-paper:#fff;--guide-tint:#f7f4fa;color:var(--guide-ink);background:var(--guide-paper)}
.dark .tcb-guide{--guide-accent:#c8a3ec;--guide-ink:#f1edf5;--guide-muted:#bfb5ca;--guide-line:#40364c;--guide-paper:#111827;--guide-tint:#1c2231}
.tcb-guide__hero{border-bottom:1px solid var(--guide-line);background:radial-gradient(ellipse at 85% 10%,#8d5bc11a,transparent 60%),var(--guide-tint)}
.tcb-guide__hero-inner{max-width:1240px;margin:auto;padding:64px 32px 52px}
.tcb-guide__eyebrow{font-size:.75rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--guide-accent);margin:0 0 24px}
.tcb-guide__hero h1{font-size:clamp(2.5rem,5vw,4.5rem);line-height:1.08;letter-spacing:-.045em;max-width:950px;font-weight:750;margin:0 0 28px;color:var(--guide-ink)}
.tcb-guide__meta{display:flex;flex-wrap:wrap;gap:10px 24px;font-size:.875rem;color:var(--guide-muted)}
.tcb-guide__start{display:inline-flex;gap:24px;align-items:center;margin-top:32px;padding:11px 18px;border:1px solid var(--guide-accent);border-radius:6px;color:var(--guide-accent);font-weight:600;text-decoration:none}
.tcb-guide__layout{display:grid;grid-template-columns:260px minmax(0,790px);gap:64px;max-width:1240px;margin:auto;padding:48px 32px 80px;align-items:start}
.tcb-guide__rail{position:sticky;top:calc(var(--header-height,80px) + var(--wpadminbar-height,0px) + 20px)}
.tcb-guide__contents{border:1px solid var(--guide-line);border-radius:8px;background:var(--guide-paper)}
.tcb-guide__contents summary{padding:18px;font-weight:700;font-size:.875rem;cursor:pointer;color:var(--guide-ink)}
.tcb-guide__contents nav{max-height:65vh;overflow:auto;padding:0 10px 14px}
.tcb-guide__contents ol{list-style:none;margin:0;padding:0}

.tcb-guide__contents a{display:block;padding:10px 8px;font-size:.8rem;font-weight:600;border:1px solid transparent;border-bottom-color:var(--guide-line);overflow-wrap:anywhere;line-height:1.45;color:var(--guide-muted);text-decoration:none;border-radius:4px}
.tcb-guide__contents a:hover{color:var(--guide-accent);background:var(--guide-tint)}
.tcb-guide__reading{min-width:0}
.tcb-guide__content{color:var(--guide-ink);font-size:1.075rem;line-height:1.85;overflow-wrap:break-word}
.tcb-guide__content>:first-child{margin-top:0}
.tcb-guide__content>p:first-child{font-size:1.25rem;line-height:1.7;color:var(--guide-muted)}
.tcb-guide__content :is(h2,h3,h4){color:var(--guide-ink);scroll-margin-top:calc(var(--header-height,80px) + var(--wpadminbar-height,0px) + 24px);line-height:1.25}
.tcb-guide__content h2{letter-spacing:-.025em}

.tcb-guide__content a{color:var(--guide-accent);text-underline-offset:3px}
.tcb-guide__content :is(strong,b){color:var(--guide-ink)}
.tcb-guide__content blockquote{margin:1.75rem 0;padding:18px 24px;border-left:3px solid var(--guide-accent);border-radius:0 6px 6px 0;background:var(--guide-tint);font-style:normal;color:var(--guide-ink)}
.tcb-guide__content blockquote p:first-of-type:before,.tcb-guide__content blockquote p:last-of-type:after{content:none}
.tcb-guide__content :is(.wp-block-table,figure:has(table)){overflow-x:auto;margin:1.5rem 0}
.tcb-guide__content table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse;font-size:.875rem;line-height:1.6;margin:1.5rem 0}
.tcb-guide__content :is(th,td){padding:14px 16px;border:1px solid var(--guide-line);text-align:left;vertical-align:top;min-width:135px;color:var(--guide-ink)}
.tcb-guide__content th{background:var(--guide-tint);font-weight:700}
.tcb-guide__content tbody tr:nth-child(even){background:var(--guide-tint)}
.tcb-guide__content :is(ul,ol){padding-left:1.4rem}

.tcb-guide__content li::marker{color:var(--guide-accent)}
.tcb-guide__content .wp-block-group.has-background{padding:24px;border-radius:8px}
.tcb-guide__content img{border-radius:8px;max-width:100%;height:auto}
.tcb-guide__footer{margin-top:48px;padding-top:24px;border-top:1px solid var(--guide-line);display:flex;justify-content:space-between;gap:20px;font-size:.875rem;color:var(--guide-muted)}
.tcb-guide__footer a{color:var(--guide-accent)}
.tcb-guide a:focus-visible,.tcb-guide summary:focus-visible{outline:2px solid var(--guide-accent);outline-offset:4px}
#guide-content{scroll-margin-top:calc(var(--header-height,80px) + var(--wpadminbar-height,0px) + 24px)}
@media(max-width:960px){.tcb-guide__layout{grid-template-columns:220px minmax(0,1fr);gap:32px}}
@media(max-width:760px){.tcb-guide__hero-inner{padding:40px 20px 32px}.tcb-guide__layout{display:block;padding:24px 20px 48px}.tcb-guide__rail{position:static;margin-bottom:32px}.tcb-guide__contents nav{max-height:280px}.tcb-guide__content{font-size:1rem}.tcb-guide__content h2{font-size:1.6rem}.tcb-guide__footer{flex-direction:column}}

/* Guide introduction, supporting rail, and next steps. */
.tcb-guide__excerpt{max-width:850px;font-size:clamp(1.1rem,2vw,1.4rem);line-height:1.65;color:var(--guide-muted);margin:0 0 28px}
.tcb-guide__meta a{color:var(--guide-accent);text-decoration:underline;text-underline-offset:3px}
.tcb-guide__layout{max-width:1480px;grid-template-columns:210px minmax(0,760px) 240px;gap:32px}
.tcb-guide__hero-inner{max-width:1480px}
.tcb-guide__next{position:sticky;top:calc(var(--header-height,80px) + var(--wpadminbar-height,0px) + 20px);display:grid;gap:20px}
.tcb-guide__cta-card,.tcb-guide__resource-card{padding:22px;border:1px solid var(--guide-line);border-radius:10px;background:var(--guide-tint)}
.tcb-guide__next h2,.tcb-guide__resource-card h3{font-size:1.1rem;line-height:1.35;margin:0 0 12px;font-weight:700;color:var(--guide-ink)}
.tcb-guide__next p{font-size:.9rem;line-height:1.65;color:var(--guide-muted);margin:0 0 20px}
.tcb-guide__button{display:inline-flex;align-items:center;justify-content:center;padding:12px 18px;border-radius:6px;background:#7540a8;color:#fff;text-decoration:none;font-size:.9rem;font-weight:650;line-height:1.5;text-align:center}
.tcb-guide__button:hover{background:#5b2e87;color:#fff}
.tcb-guide__resource-card>a{display:block;padding:12px 0;border-top:1px solid var(--guide-line);color:var(--guide-accent);font-size:.9rem;text-decoration:none;line-height:1.5}
.tcb-guide__resource-card>a:hover{text-decoration:underline}
.tcb-guide__after{max-width:1240px;margin:auto;padding:0 32px 72px}
.tcb-guide__banner{background:linear-gradient(120deg,#593180,#7540a8);color:#fff;border-radius:12px;padding:36px;display:flex;gap:32px;align-items:center;justify-content:space-between}
.tcb-guide__banner h2{font-size:1.8rem;line-height:1.25;font-weight:700;margin:0 0 12px;color:#fff}
.tcb-guide__banner p{max-width:650px;line-height:1.7;margin:0;color:#f2eaf9}
.tcb-guide__banner .tcb-guide__button{background:#fff;color:#593180;flex-shrink:0}
.tcb-guide__author{display:flex;gap:24px;padding:32px 0;margin:24px 0;border-bottom:0}
.tcb-guide__author img{border-radius:50%;width:80px;max-width:none;height:80px}
.tcb-guide__author h2{font-size:1.25rem;font-weight:700;margin:0 0 12px;color:var(--guide-ink)}
.tcb-guide__author p{color:var(--guide-muted);line-height:1.75;max-width:800px;margin:0 0 12px}
.tcb-guide__author a{color:var(--guide-accent)}
.tcb-guide__explore>h2{font-size:1.6rem;font-weight:700;margin:24px 0}
.tcb-guide__explore-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}
@media(max-width:1150px){.tcb-guide__layout{grid-template-columns:200px minmax(0,1fr)}.tcb-guide__next{position:static;grid-column:2;grid-template-columns:1fr 1fr}.tcb-guide__banner{flex-direction:column;align-items:flex-start}}
@media(max-width:760px){.tcb-guide__layout{display:block}.tcb-guide__next{margin-top:32px;grid-template-columns:1fr}.tcb-guide__after{padding:0 20px 40px}.tcb-guide__banner{padding:24px}.tcb-guide__author{gap:16px}.tcb-guide__author img{width:56px;height:56px}.tcb-guide__explore-grid{grid-template-columns:1fr}}
/* Balance the reading column and align the introduction to it. */
.tcb-guide__layout{grid-template-columns:240px minmax(0,1fr) 240px}
.tcb-guide__hero-inner{box-sizing:border-box;padding-left:304px;padding-right:304px}
.tcb-guide__hero h1{font-size:clamp(2.5rem,4vw,3.75rem)}
.tcb-guide__meta a,.tcb-guide__author a{text-decoration:none;transition:color .15s ease}
.tcb-guide__meta a:hover,.tcb-guide__author a:hover{color:#54267e;text-decoration:underline;text-underline-offset:3px}
.dark .tcb-guide__meta a:hover,.dark .tcb-guide__author a:hover{color:#b789de}
.tcb-guide__progress{padding:0 18px 16px}
.tcb-guide__progress[hidden]{display:none}
.tcb-guide__progress>div{display:flex;justify-content:space-between;font-size:.7rem;color:var(--guide-muted);margin-bottom:8px}
.tcb-guide__progress progress{display:block;width:100%;height:5px;border:0;border-radius:8px;overflow:hidden;background:var(--guide-line);accent-color:var(--guide-accent)}
.tcb-guide__progress progress::-webkit-progress-bar{background:var(--guide-line)}
.tcb-guide__progress progress::-webkit-progress-value{background:var(--guide-accent)}
.tcb-guide__progress progress::-moz-progress-bar{background:var(--guide-accent)}
.tcb-guide__contents a[aria-current="location"]{background:var(--guide-tint);color:var(--guide-accent);border-color:var(--guide-accent)}
@media(max-width:1150px){.tcb-guide__layout{grid-template-columns:200px minmax(0,1fr)}.tcb-guide__hero-inner{padding-left:264px;padding-right:32px}}
@media(max-width:760px){.tcb-guide__hero-inner{padding-left:20px;padding-right:20px}}
/* Vertically balanced copy and landscape artwork. */
.tcb-guide__hero-inner--with-image{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;column-gap:48px;row-gap:28px;padding:44px 32px;max-width:1480px}
.tcb-guide__hero-inner--with-image .tcb-guide__intro>h1{max-width:none;margin:0 0 20px;font-size:clamp(2.25rem,3vw,3rem);line-height:1.12}
.tcb-guide__intro{min-width:0}
.tcb-guide__hero-inner--with-image .tcb-guide__excerpt{font-size:clamp(1.05rem,1.5vw,1.2rem);line-height:1.6;margin:0 0 20px;max-width:640px}
.tcb-guide__hero-inner--with-image .tcb-guide__meta{gap:8px 18px;line-height:1.6}
.tcb-guide__hero-inner--with-image .tcb-guide__start{margin-top:22px}
.tcb-guide__featured{margin:0;min-width:0;width:100%;aspect-ratio:16 / 9;overflow:hidden;border-radius:10px;background:var(--guide-tint);border:1px solid var(--guide-line)}
.tcb-guide__featured-image{display:block;width:100%;height:100%;aspect-ratio:16 / 9;object-fit:contain;border:0;border-radius:0}
@media(max-width:900px){.tcb-guide__hero-inner--with-image{grid-template-columns:1fr;padding:32px 20px;gap:24px}.tcb-guide__hero-inner--with-image>h1{grid-column:auto}.tcb-guide__featured{max-width:720px}}

@media(max-width:900px){.tcb-guide__hero-inner--with-image .tcb-guide__featured{grid-row:1}.tcb-guide__hero-inner--with-image .tcb-guide__intro{grid-row:2}}
/* Guide label in the brand accent color. */
.tcb-guide__label{display:inline-block;margin:0 0 18px;padding:5px 10px;border-radius:4px;background:#ffa500;color:#242033;font-size:.75rem;font-weight:750;line-height:1.4;letter-spacing:.12em}
/* Closing content follows the article column; discovery has its own full-width band. */
.tcb-guide__reading .tcb-guide__after{max-width:none;padding:36px 0 0;margin:0}
.tcb-guide__reading .tcb-guide__banner{flex-direction:column;align-items:flex-start;padding:28px;gap:20px}
.tcb-guide__reading .tcb-guide__banner h2{font-size:1.5rem}
.tcb-guide__explore{width:100%;background:#593180;padding:56px 32px}
.tcb-guide__explore-inner{max-width:1416px;margin:0 auto}
.tcb-guide__explore #guide-explore{color:#fff;font-size:2rem;font-weight:700;margin:0 0 28px}
.tcb-guide__explore-grid{grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch;gap:20px}
.tcb-guide__explore .tcb-guide__resource-card{background:var(--guide-paper);padding:24px;min-width:0}
.tcb-guide__explore .tcb-guide__resource-card p{font-size:.9rem;line-height:1.65;color:var(--guide-muted);margin:0 0 16px}
.tcb-guide__explore .tcb-guide__product{display:flex;align-items:center;gap:12px}
.tcb-guide__product img{width:48px;height:48px;object-fit:cover;border-radius:4px;flex-shrink:0}
@media(max-width:1100px){.tcb-guide__explore-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.tcb-guide__explore{padding:36px 20px}.tcb-guide__explore-grid{grid-template-columns:1fr}.tcb-guide__reading .tcb-guide__banner{padding:22px}}

.tcb-guide__author .tcb-guide__author-eyebrow{margin:0 0 8px;font-size:.7rem;font-weight:700;line-height:1.4;letter-spacing:.12em;text-transform:uppercase;color:var(--guide-muted)}
/* Rich discovery previews use existing featured artwork and readable summaries. */
.tcb-guide__explore .tcb-guide__preview,.tcb-guide__explore .tcb-guide__product{display:flex;flex-direction:column;align-items:stretch;gap:10px;padding:18px 0}
.tcb-guide__explore .tcb-guide__preview-image,.tcb-guide__explore .tcb-guide__product>img{width:100%;height:auto;aspect-ratio:16/9;object-fit:contain;background:var(--guide-tint);border-radius:6px}
.tcb-guide__explore :is(.tcb-guide__preview,.tcb-guide__product) strong{display:block;font-weight:650;line-height:1.5}
.tcb-guide__explore :is(.tcb-guide__preview,.tcb-guide__product) small{display:block;font-size:.8rem;line-height:1.65;color:var(--guide-muted);margin-top:6px}
.tcb-guide__product-price{display:block;margin-top:8px;font-size:.85rem;font-weight:650;color:var(--guide-ink)}
.tcb-guide__next .tcb-guide__rail-icon{display:inline-block;width:1.1em;margin-right:6px;color:var(--guide-accent);font-size:.9em;text-align:center}
.tcb-guide__next .tcb-guide__button{gap:8px}
.tcb-guide__next .tcb-guide__button .tcb-guide__rail-icon{color:inherit;margin-right:0}
/* Compact discovery lists with small product thumbnails. */
.tcb-guide__explore .tcb-guide__product{flex-direction:row;align-items:center;gap:12px}
.tcb-guide__explore .tcb-guide__product>img{width:48px;height:48px;aspect-ratio:1;object-fit:cover;flex:0 0 48px}
.tcb-guide__explore .tcb-guide__preview{padding:14px 0}

/* Nested section links keep their border inside each row at every depth. */
.tcb-guide__contents .tcb-guide__toc-sublist{padding-left:12px}
.tcb-guide__toc-item--level-3>a{font-size:.75rem;font-weight:400}
.tcb-guide__contents a:focus-visible{outline-offset:-3px}
/* A block table has one outer margin; its inner table adds no second gap. */
.tcb-guide__content :is(.wp-block-table,figure:has(table))>table{margin:0}
