/* Tallow site theme: what theme.json cannot express. Colours come from the theme palette variables. */
:root {
	--tl-base: var(--wp--preset--color--base);
	--tl-panel: var(--wp--preset--color--panel);
	--tl-surface: var(--wp--preset--color--surface);
	--tl-line: var(--wp--preset--color--line);
	--tl-text: var(--wp--preset--color--contrast);
	--tl-muted: var(--wp--preset--color--muted);
	--tl-accent: var(--wp--preset--color--accent);
	--tl-accent-bright: var(--wp--preset--color--accent-bright);
	--tl-link: var(--wp--preset--color--link);
	--tl-good: var(--wp--preset--color--good);
	--tl-radius: 12px;
}
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
::selection { background: rgba(69, 135, 219, 0.45); color: #fff; }
.wp-site-blocks { min-height: 100vh; display: flex; flex-direction: column; }
.wp-site-blocks > main, .wp-site-blocks > .wp-block-group:has(> main) { flex: 1; }
.wp-site-blocks > * + * { margin-block-start: 0; }

/* Header */
.wp-site-blocks > div:first-child:has(.site-header) { position: sticky; top: 0; z-index: 50; }
.site-header { backdrop-filter: saturate(140%) blur(10px); background: rgba(17, 22, 31, 0.86) !important; border-bottom: 1px solid var(--tl-line); }
.admin-bar .wp-site-blocks > div:first-child:has(.site-header) { top: 32px; }
@media (max-width: 782px) { .admin-bar .wp-site-blocks > div:first-child:has(.site-header) { top: 46px; } }
.site-brand .wp-block-site-logo img { border-radius: 8px; }
.site-header .wp-block-navigation a { color: var(--tl-text); opacity: 0.86; }
.site-header .wp-block-navigation a:hover { opacity: 1; text-decoration: none; color: #fff; }
.site-header .wp-block-navigation .current-menu-item > a, .site-header .wp-block-navigation a[aria-current="page"] { opacity: 1; color: var(--tl-link); }
.site-header .nav-github a { padding: 0.35em 0.85em; border: 1px solid var(--tl-line); border-radius: 999px; }
.site-header .nav-github a:hover { border-color: var(--tl-accent-bright); }
.wp-block-navigation__responsive-container.is-menu-open { padding: 1.5rem; }

/* Footer */
.footer-heading { text-transform: uppercase; letter-spacing: 0.08em; color: var(--tl-muted) !important; font-weight: 600; margin-bottom: 0.6rem; }
.footer-links { list-style: none; padding: 0; margin: 0; font-size: 0.95rem; }
.footer-links li { margin: 0.35rem 0; }
.footer-links a { color: var(--tl-text); opacity: 0.85; }
.footer-links a:hover { opacity: 1; color: var(--tl-link); }

/* Hero */
.is-style-tallow-hero {
	background: var(--wp--preset--gradient--hero);
	border-bottom: 1px solid var(--tl-line);
	position: relative;
	overflow: hidden;
}
.is-style-tallow-hero::after {
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
	background-image: linear-gradient(rgba(143, 155, 176, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(143, 155, 176, 0.08) 1px, transparent 1px);
	background-size: 44px 44px;
	mask-image: radial-gradient(ellipse at 60% 20%, black, transparent 70%);
}
.is-style-tallow-hero > * { position: relative; z-index: 1; }
.tl-eyebrow { display: inline-block; font-size: 0.8rem !important; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tl-link) !important; background: rgba(51, 117, 199, 0.14); border: 1px solid rgba(69, 135, 219, 0.35); padding: 0.3em 0.8em; border-radius: 999px; }
.tl-lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem) !important; color: #b9c4d6; max-width: 46rem; }
.tl-hero-title { max-width: 18ch; }

/* Cards */
.is-style-tallow-card {
	background: var(--tl-panel);
	border: 1px solid var(--tl-line);
	border-radius: var(--tl-radius);
	padding: 1.5rem;
	transition: border-color 0.2s, transform 0.2s;
}
.is-style-tallow-card:hover { border-color: rgba(69, 135, 219, 0.55); }
.is-style-tallow-card h3, .is-style-tallow-card h2 { margin-top: 0; }
.is-style-tallow-card p { color: #b5c0d2; }
.tl-icon { font-size: 1.6rem !important; line-height: 1; margin-bottom: 0.4rem !important; }
.wp-block-button.is-style-tallow-ghost .wp-block-button__link { background: transparent; border: 1px solid var(--tl-line); color: var(--tl-text); }
.wp-block-button.is-style-tallow-ghost .wp-block-button__link:hover { border-color: var(--tl-accent-bright); background: rgba(51, 117, 199, 0.12); }
.tl-section-title { margin-bottom: 0.3rem !important; }
.tl-section-lede { color: var(--tl-muted); margin-top: 0 !important; }
.tl-stat strong { display: block; font-size: 1.8rem; color: #fff; font-family: var(--wp--preset--font-family--heading); }
.tl-stat { color: var(--tl-muted); font-size: 0.95rem; }

/* Content */
.wp-block-post-content :where(p, li) { color: #cdd6e4; }
.wp-block-post-content :where(h2) { margin-top: 2.4rem; padding-top: 0.4rem; }
.wp-block-post-content :where(h3) { margin-top: 1.8rem; }
:where(.wp-block-post-content) :not(pre) > code, .tl-code { font-family: var(--wp--preset--font-family--mono); font-size: 0.86em; background: var(--tl-surface); border: 1px solid var(--tl-line); border-radius: 5px; padding: 0.12em 0.38em; color: #e6edf6; }
.wp-block-post-content pre { background: var(--tl-panel); border: 1px solid var(--tl-line); border-radius: 8px; padding: 1rem 1.1rem; overflow-x: auto; font-family: var(--wp--preset--font-family--mono); font-size: 0.85rem; line-height: 1.55; }
.wp-block-post-content pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.wp-block-post-content table { width: 100%; border-collapse: collapse; font-size: 0.93rem; display: block; overflow-x: auto; }
.wp-block-post-content th, .wp-block-post-content td { border: 1px solid var(--tl-line); padding: 0.55rem 0.75rem; text-align: left; vertical-align: top; }
.wp-block-post-content th { background: var(--tl-surface); color: #fff; font-weight: 600; }
.wp-block-post-content tr:nth-child(even) td { background: rgba(26, 31, 43, 0.6); }
.wp-block-post-content blockquote { border-left: 3px solid var(--tl-accent); margin-left: 0; padding: 0.2rem 1rem; color: var(--tl-muted); background: rgba(51, 117, 199, 0.06); border-radius: 0 6px 6px 0; }
.wp-block-post-content img { border-radius: 8px; max-width: 100%; height: auto; }
.wp-block-post-content hr { border: 0; border-top: 1px solid var(--tl-line); }

/* GitHub-rendered code colours (docs are rendered by GitHub's Markdown API). */
.pl-c { color: #7d8aa0; font-style: italic; }
.pl-k, .pl-kos { color: #ff8f8f; }
.pl-k { color: #c792ea; }
.pl-s, .pl-pds, .pl-s1 .pl-pds { color: #a5e07a; }
.pl-c1, .pl-cce { color: #7fc4ff; }
.pl-en, .pl-e { color: #82aaff; }
.pl-smi, .pl-v { color: #f0c674; }
.pl-ent { color: #7ee0a8; }
.pl-sr { color: #f78c6c; }
.pl-kos { color: #9aa4b2; }
.markdown-heading .anchor { display: none; }
.markdown-heading { position: relative; }
.markdown-alert { border-left: 3px solid var(--tl-accent); background: rgba(51, 117, 199, 0.08); padding: 0.6rem 1rem; border-radius: 0 8px 8px 0; margin: 1rem 0; }

/* Docs */
.docs-columns { align-items: flex-start !important; }
.docs-sidebar { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow-y: auto; padding-right: 0.5rem; scrollbar-width: thin; }
.docs-nav { font-size: 0.92rem; }
.docs-nav-search { width: 100%; box-sizing: border-box; background: var(--tl-panel); border: 1px solid var(--tl-line); color: var(--tl-text); border-radius: 8px; padding: 0.55rem 0.75rem; margin-bottom: 1rem; font: inherit; }
.docs-nav-search:focus { outline: 2px solid var(--tl-accent); outline-offset: 1px; }
.docs-nav h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--tl-muted); margin: 1.2rem 0 0.4rem; font-family: var(--wp--preset--font-family--body); }
.docs-nav ul { list-style: none; margin: 0; padding: 0; }
.docs-nav li a { display: block; padding: 0.28rem 0.6rem; border-radius: 6px; color: #c5cfdd; border-left: 2px solid transparent; }
.docs-nav li a:hover { background: var(--tl-panel); text-decoration: none; color: #fff; }
.docs-nav li a.is-current { background: rgba(51, 117, 199, 0.16); border-left-color: var(--tl-accent-bright); color: #fff; }
.docs-breadcrumb { font-size: 0.85rem; color: var(--tl-muted); margin-bottom: 0.4rem !important; }
.docs-body { min-width: 0; }
.docs-body .wp-block-post-title { margin-top: 0; }
.docs-source { margin-top: 3rem; font-size: 0.85rem; color: var(--tl-muted); border-top: 1px solid var(--tl-line); padding-top: 1rem; }
.docs-index-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.docs-index-grid section { background: var(--tl-panel); border: 1px solid var(--tl-line); border-radius: var(--tl-radius); padding: 1.1rem 1.3rem; }
.docs-index-grid h2 { font-size: 1.05rem !important; margin: 0 0 0.6rem !important; padding: 0 !important; }
.docs-index-grid ul { list-style: none; margin: 0; padding: 0; }
.docs-index-grid li { margin: 0.25rem 0; }
@media (max-width: 781px) {
	.docs-sidebar { position: static; max-height: none; flex-basis: 100% !important; }
	.docs-nav ul { columns: 2; }
}

/* Downloads */
.tl-downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; margin: 1.5rem 0; }
.tl-release { background: var(--tl-panel); border: 1px solid var(--tl-line); border-radius: var(--tl-radius); padding: 1.5rem; display: flex; flex-direction: column; gap: 0.8rem; }
.tl-release.is-featured { border-color: rgba(69, 135, 219, 0.6); box-shadow: 0 0 0 1px rgba(69, 135, 219, 0.25), 0 18px 50px -25px rgba(51, 117, 199, 0.7); }
.tl-release h3 { margin: 0 !important; font-size: 1.25rem !important; }
.tl-release .tl-tag { display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.2em 0.65em; border-radius: 999px; background: rgba(51, 117, 199, 0.18); color: var(--tl-link); }
.tl-release .tl-tag.is-ecs { background: rgba(140, 224, 128, 0.14); color: var(--tl-good); }
.tl-release .tl-meta { color: var(--tl-muted); font-size: 0.88rem; margin: 0; }
.tl-release p { margin: 0; color: #c2ccdb; }
.tl-release .tl-buttons { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: auto; }
.tl-btn { display: inline-flex; align-items: center; gap: 0.45em; background: var(--tl-accent); color: #fff !important; font-weight: 600; font-size: 0.95rem; padding: 0.65em 1.1em; border-radius: 8px; text-decoration: none !important; }
.tl-btn:hover { background: var(--tl-accent-bright); }
.tl-btn.is-ghost { background: transparent; border: 1px solid var(--tl-line); color: var(--tl-text) !important; }
.tl-btn.is-ghost:hover { border-color: var(--tl-accent-bright); background: rgba(51, 117, 199, 0.12); }
.tl-btn small { font-weight: 400; opacity: 0.8; }
.tl-fineprint { font-size: 0.85rem; color: var(--tl-muted); }

/* API reference */
.tl-api { display: grid; grid-template-columns: 280px 1fr; gap: 1.5rem; align-items: start; margin-top: 1rem; }
.tl-api-side { position: sticky; top: 88px; max-height: calc(100vh - 110px); display: flex; flex-direction: column; gap: 0.6rem; }
.tl-api-search { width: 100%; box-sizing: border-box; background: var(--tl-panel); border: 1px solid var(--tl-line); color: var(--tl-text); border-radius: 8px; padding: 0.65rem 0.8rem; font: inherit; }
.tl-api-search:focus { outline: 2px solid var(--tl-accent); outline-offset: 1px; }
.tl-api-types { overflow-y: auto; scrollbar-width: thin; font-size: 0.9rem; border: 1px solid var(--tl-line); border-radius: 10px; background: var(--tl-panel); padding: 0.4rem; }
.tl-api-types h5 { margin: 0.7rem 0.4rem 0.2rem; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--tl-muted); font-family: var(--wp--preset--font-family--body); }
.tl-api-types button { all: unset; box-sizing: border-box; display: flex; justify-content: space-between; width: 100%; cursor: pointer; padding: 0.3rem 0.55rem; border-radius: 6px; color: #c5cfdd; font-family: var(--wp--preset--font-family--mono); font-size: 0.82rem; }
.tl-api-types button:hover { background: var(--tl-surface); color: #fff; }
.tl-api-types button.is-current { background: rgba(51, 117, 199, 0.2); color: #fff; }
.tl-api-types button span { color: var(--tl-muted); font-family: var(--wp--preset--font-family--body); font-size: 0.72rem; }
.tl-api-main { min-width: 0; }
.tl-api-status { color: var(--tl-muted); font-size: 0.9rem; }
.tl-api-type { background: var(--tl-panel); border: 1px solid var(--tl-line); border-radius: var(--tl-radius); padding: 1.2rem 1.4rem; margin-bottom: 1.2rem; }
.tl-api-type h2 { font-family: var(--wp--preset--font-family--mono) !important; font-size: 1.05rem !important; margin: 0 0 0.3rem !important; padding: 0 !important; word-break: break-word; color: #fff; }
.tl-api-type .tl-api-file { font-size: 0.8rem; color: var(--tl-muted); }
.tl-api-members { list-style: none; margin: 0.8rem 0 0; padding: 0; }
.tl-api-members li { border-top: 1px solid var(--tl-line); padding: 0.45rem 0; display: flex; gap: 0.8rem; justify-content: space-between; align-items: baseline; }
.tl-api-members code { font-family: var(--wp--preset--font-family--mono); font-size: 0.8rem; color: #dfe7f3; white-space: pre-wrap; word-break: break-word; }
.tl-api-members a { font-size: 0.75rem; white-space: nowrap; color: var(--tl-muted); }
.tl-api-members a:hover { color: var(--tl-link); }
.tl-api mark { background: rgba(255, 199, 92, 0.3); color: #fff; border-radius: 3px; padding: 0 1px; }
.tl-api .kw { color: #c792ea; }
@media (max-width: 860px) {
	.tl-api { grid-template-columns: 1fr; }
	.tl-api-side { position: static; max-height: none; }
	.tl-api-types { max-height: 40vh; }
}

/* Home */
.tl-feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.1rem; margin-top: 1.6rem; }
a.is-style-tallow-card { display: block; color: inherit; text-decoration: none !important; }
a.is-style-tallow-card:hover { transform: translateY(-2px); }
a.is-style-tallow-card h3 { font-size: 1.12rem; margin: 0 0 0.4rem; color: #f2f6fc; }
a.is-style-tallow-card p { margin: 0; font-size: 0.95rem; line-height: 1.55; }
a.is-style-tallow-card .tl-icon { margin-bottom: 0.6rem; }
.tl-snippet { background: var(--tl-panel); border: 1px solid var(--tl-line); border-radius: var(--tl-radius); padding: 1.3rem 1.4rem; overflow-x: auto; font-family: var(--wp--preset--font-family--mono); font-size: 0.88rem; line-height: 1.6; color: #dfe7f3; margin: 0; box-shadow: 0 24px 60px -30px rgba(51, 117, 199, 0.55); }
.tl-snippet .kw { color: #c792ea; } .tl-snippet .ty { color: #82aaff; } .tl-snippet .nu { color: #f78c6c; }
.tl-cta h3 { margin: 0 0 0.3rem; }
.tl-cta p { margin: 0; }
.tl-showcase-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.2rem; margin: 1.5rem 0; }
.tl-roadmap { list-style: none; padding: 0; }
.tl-roadmap li { position: relative; padding: 0.15rem 0 0.15rem 1.6rem; }
.tl-roadmap li::before { content: "○"; position: absolute; left: 0; color: var(--tl-muted); }
.tl-roadmap.is-done li::before { content: "✓"; color: var(--tl-good); }
.tl-roadmap.is-now li::before { content: "◐"; color: var(--wp--preset--color--warning); }
.tl-hero-inner { max-width: 1180px; margin-left: auto !important; margin-right: auto !important; width: 100%; }
.tl-hero-inner > * + * { margin-top: 1.25rem; }
.tl-hero-title { text-wrap: balance; }
.wp-block-post-content.alignfull, .home .wp-block-post-content { margin-top: 0; }
.wp-block-table thead { border-bottom: 0 !important; } .wp-block-table td, .wp-block-table th { border-color: var(--tl-line) !important; }

/* ------------------------------------------------------------------ Account menu */
.site-account { display: flex; align-items: center; }
.tl-signin { display: inline-flex; align-items: center; gap: 0.45em; font-size: 0.92rem; font-weight: 600; color: #fff !important; background: var(--tl-accent); padding: 0.42em 0.9em; border-radius: 999px; text-decoration: none !important; white-space: nowrap; }
.tl-signin:hover { background: var(--tl-accent-bright); }
.tl-account { position: relative; }
.tl-account summary { list-style: none; cursor: pointer; display: flex; }
.tl-account summary::-webkit-details-marker { display: none; }
.tl-account summary img { border-radius: 50%; border: 2px solid var(--tl-line); display: block; }
.tl-account.is-supporter summary img { border-color: #ffc75c; box-shadow: 0 0 0 2px rgba(255, 199, 92, 0.25); }
.tl-account-menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 210px; background: var(--tl-panel); border: 1px solid var(--tl-line); border-radius: 10px; padding: 0.6rem; display: flex; flex-direction: column; gap: 0.1rem; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8); z-index: 100; }
.tl-account-menu strong { padding: 0.3rem 0.6rem 0.2rem; color: #fff; }
.tl-account-menu .tl-badge { margin: 0 0.6rem 0.4rem; align-self: flex-start; }
.tl-account-menu a:not(.tl-badge) { padding: 0.4rem 0.6rem; border-radius: 6px; color: var(--tl-text); font-size: 0.92rem; }
.tl-account-menu a:not(.tl-badge):hover { background: var(--tl-surface); text-decoration: none; }
.site-header .nav-sponsor a { color: #ff9db5 !important; }

/* ------------------------------------------------------------------ Supporter badges and backgrounds */
.tl-badge { display: inline-flex; align-items: center; gap: 0.3em; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.22em 0.65em; border-radius: 999px; text-decoration: none !important; white-space: nowrap; color: #fff !important; }
.tl-badge.tier-5 { background: linear-gradient(135deg, #2a5ea3, #4587db); }
.tl-badge.tier-15 { background: linear-gradient(135deg, #1b8a7a, #4587db 60%, #7b5cd6); }
.tl-badge.tier-30 { background: linear-gradient(135deg, #b8742a, #f0b54a); color: #241500 !important; }
.tl-badge.tier-100 { background: linear-gradient(135deg, #f0b54a, #ffe29a 40%, #4587db); color: #1a1200 !important; box-shadow: 0 0 12px rgba(255, 210, 120, 0.45); }

.bg-default { background: linear-gradient(180deg, var(--tl-surface), var(--tl-panel)); }
.bg-tallow-blue { background: radial-gradient(120% 140% at 0% 0%, #4587db 0%, #2a5ea3 35%, #152238 75%); }
.bg-aurora { background: linear-gradient(115deg, rgba(27, 138, 122, 0.95), rgba(69, 135, 219, 0.9) 45%, rgba(123, 92, 214, 0.95)); background-size: 220% 220%; animation: tl-aurora 14s ease-in-out infinite; }
.bg-ember { background: radial-gradient(90% 120% at 100% 0%, #ffd27a 0%, #d9892c 35%, #5a2a12 80%); }
.bg-starfield { background-color: #0b1020; background-image:
	radial-gradient(1.5px 1.5px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 70% 60%, #ffe29a, transparent),
	radial-gradient(1.5px 1.5px at 40% 80%, #9cc8ff, transparent), radial-gradient(1px 1px at 85% 20%, #fff, transparent),
	radial-gradient(1px 1px at 10% 70%, #ffe29a, transparent), radial-gradient(1.5px 1.5px at 55% 15%, #fff, transparent),
	radial-gradient(60% 90% at 80% 10%, rgba(240, 181, 74, 0.55), transparent 70%), radial-gradient(70% 100% at 10% 100%, rgba(69, 135, 219, 0.6), transparent 70%);
	background-size: 180px 180px, 230px 230px, 260px 260px, 200px 200px, 240px 240px, 300px 300px, 100% 100%, 100% 100%;
	animation: tl-stars 60s linear infinite; }
@keyframes tl-aurora { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes tl-stars { from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; } to { background-position: 180px 360px, -230px 230px, 260px 520px, -200px 400px, 240px 240px, 300px 600px, 0 0, 0 0; } }
@media (prefers-reduced-motion: reduce) { .bg-aurora, .bg-starfield { animation: none; } }

.tl-profile-banner { display: flex; align-items: center; gap: 1.4rem; padding: 2rem; border-radius: 14px; border: 1px solid var(--tl-line); margin-bottom: 1.5rem; position: relative; overflow: hidden; }
.tl-profile-banner-avatar img { border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.85); width: 112px; height: 112px; display: block; }
.tl-profile-banner h2 { margin: 0 0 0.3rem !important; font-size: 1.8rem !important; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45); padding: 0 !important; }
.tl-profile-banner p { margin: 0 0 0.6rem; color: rgba(255, 255, 255, 0.85); display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; font-size: 0.95rem; }
.tl-profile-banner p a { color: #fff; display: inline-flex; gap: 0.35em; align-items: center; }
.tl-profile-nudge { background: rgba(255, 157, 181, 0.08); border: 1px dashed rgba(255, 157, 181, 0.4); padding: 0.7rem 1rem; border-radius: 10px; font-size: 0.92rem; }
@media (max-width: 600px) { .tl-profile-banner { flex-direction: column; text-align: center; } .tl-profile-banner p { justify-content: center; } }

/* Sponsor page */
.tl-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.tl-tier { border: 1px solid var(--tl-line); border-radius: 14px; overflow: hidden; background: var(--tl-panel); display: flex; flex-direction: column; }
.tl-tier-swatch { height: 96px; display: flex; align-items: flex-end; padding: 0.8rem; }
.tl-tier-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.tl-tier-body h3 { margin: 0; font-size: 1.15rem; }
.tl-tier-body .tl-price { font-size: 1.6rem; font-weight: 700; color: #fff; }
.tl-tier-body .tl-price small { font-size: 0.85rem; color: var(--tl-muted); font-weight: 400; }
.tl-tier-body ul { margin: 0; padding-left: 1.1rem; color: #c2ccdb; font-size: 0.93rem; }
.tl-supporters { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.8rem; margin: 1rem 0; }
.tl-supporter { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; padding: 1rem; border-radius: 12px; border: 1px solid var(--tl-line); color: #fff !important; text-decoration: none !important; text-align: center; }
.tl-supporter img { border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.8); }
.tl-supporter small { opacity: 0.85; }

/* ------------------------------------------------------------------ Release notes */
.tl-tabs { display: flex; gap: 0.4rem; flex-wrap: wrap; border-bottom: 1px solid var(--tl-line); margin: 1rem 0 1.5rem; }
.tl-tabs button { all: unset; cursor: pointer; padding: 0.6rem 1rem; border-bottom: 2px solid transparent; color: var(--tl-muted); font-weight: 600; margin-bottom: -1px; }
.tl-tabs button:hover { color: #fff; }
.tl-tabs button[aria-selected="true"] { color: #fff; border-bottom-color: var(--tl-accent-bright); }
.tl-tabs button:focus-visible { outline: 2px solid var(--tl-accent); }
.tl-note { background: var(--tl-panel); border: 1px solid var(--tl-line); border-radius: var(--tl-radius); padding: 1.2rem 1.4rem; margin-bottom: 1rem; scroll-margin-top: 90px; }
.tl-note header { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0.5rem; }
.tl-note h2 { margin: 0 !important; padding: 0 !important; font-size: 1.2rem !important; font-family: var(--wp--preset--font-family--mono) !important; }
.tl-note h2 a { color: #fff; }
.tl-note .tl-tag { font-family: var(--wp--preset--font-family--body); font-size: 0.7rem; vertical-align: middle; padding: 0.2em 0.6em; border-radius: 999px; background: rgba(140, 224, 128, 0.15); color: var(--tl-good); text-transform: uppercase; letter-spacing: 0.06em; }
.tl-note .tl-meta { margin: 0; color: var(--tl-muted); font-size: 0.88rem; }
.tl-changes { margin: 0.8rem 0; padding-left: 1.2rem; }
.tl-changes li { margin: 0.25rem 0; }
.tl-changes code { font-size: 0.75rem !important; }
.tl-note .tl-buttons { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.8rem; }
.tl-note .tl-btn { font-size: 0.85rem; padding: 0.45em 0.9em; }

/* ------------------------------------------------------------------ Forums (bbPress, restyled dark) */
.tl-forum-main { padding-top: var(--wp--preset--spacing--50); padding-bottom: var(--wp--preset--spacing--60); flex: 1; }
.tl-forum-inner { max-width: 1180px; margin: 0 auto; }
.tl-forum-inner > .wp-block-post-title { margin-top: 0; }
.tl-forum-signin { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; background: rgba(51, 117, 199, 0.1); border: 1px solid rgba(69, 135, 219, 0.35); border-radius: 12px; padding: 0.9rem 1.2rem; margin-bottom: 1.4rem; }
.tl-forum-signin p { margin: 0; }
#bbpress-forums { font-size: 0.97rem; color: var(--tl-text); background: transparent; }
#bbpress-forums div.bbp-breadcrumb, #bbpress-forums div.bbp-breadcrumb p { color: var(--tl-muted); font-size: 0.88rem; }
#bbpress-forums ul.bbp-forums, #bbpress-forums ul.bbp-topics, #bbpress-forums ul.bbp-replies, #bbpress-forums ul.bbp-lead-topic, #bbpress-forums ul.bbp-search-results { border: 1px solid var(--tl-line); border-radius: 12px; overflow: hidden; background: var(--tl-panel); font-size: 0.95rem; }
#bbpress-forums li.bbp-header, #bbpress-forums li.bbp-footer { background: var(--tl-surface); border-color: var(--tl-line); color: var(--tl-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.75rem; padding: 0.7rem 1rem; }
#bbpress-forums li.bbp-body ul.forum, #bbpress-forums li.bbp-body ul.topic { border-top: 1px solid var(--tl-line); padding: 0.9rem 1rem; }
#bbpress-forums div.odd, #bbpress-forums ul.odd, #bbpress-forums div.even, #bbpress-forums ul.even { background: transparent; }
#bbpress-forums div.bbp-forum-header, #bbpress-forums div.bbp-topic-header, #bbpress-forums div.bbp-reply-header { background: var(--tl-surface); border-top: 1px solid var(--tl-line); }
#bbpress-forums .status-closed, #bbpress-forums .status-closed a { color: var(--tl-muted); }
#bbpress-forums a.bbp-forum-title, #bbpress-forums a.bbp-topic-permalink { font-size: 1.05rem; font-weight: 600; color: #f2f6fc; }
#bbpress-forums .bbp-forum-content, #bbpress-forums p.bbp-topic-meta, #bbpress-forums .bbp-forum-info .bbp-forum-content { color: var(--tl-muted); font-size: 0.9rem; }
#bbpress-forums .bbp-reply-content, #bbpress-forums .bbp-topic-content { color: #cdd6e4; }
#bbpress-forums div.bbp-reply-author, #bbpress-forums div.bbp-topic-author { text-align: center; }
#bbpress-forums div.bbp-reply-author img.avatar, #bbpress-forums div.bbp-topic-author img.avatar { border-radius: 50%; }
#bbpress-forums div.bbp-reply-author .tl-badge, #bbpress-forums div.bbp-topic-author .tl-badge { margin-top: 0.4rem; }
#bbpress-forums .bbp-author-role { color: var(--tl-muted); font-size: 0.8rem; }
#bbpress-forums fieldset.bbp-form { border: 1px solid var(--tl-line); border-radius: 12px; padding: 1rem 1.2rem; background: var(--tl-panel); }
#bbpress-forums fieldset.bbp-form legend { color: #fff; font-weight: 600; padding: 0 0.4rem; }
#bbpress-forums input[type="text"], #bbpress-forums input[type="email"], #bbpress-forums input[type="url"], #bbpress-forums input[type="password"], #bbpress-forums textarea, #bbpress-forums select, .bbp-search-form input[type="text"] { background: var(--tl-base); color: var(--tl-text); border: 1px solid var(--tl-line); border-radius: 8px; padding: 0.5rem 0.7rem; font: inherit; max-width: 100%; box-sizing: border-box; }
#bbpress-forums textarea { width: 100%; min-height: 180px; }
#bbpress-forums button, #bbpress-forums input[type="submit"], .bbp-search-form #bbp_search_submit { background: var(--tl-accent); color: #fff; border: 0; border-radius: 8px; padding: 0.55rem 1.1rem; font-weight: 600; cursor: pointer; font: inherit; }
#bbpress-forums button:hover, #bbpress-forums input[type="submit"]:hover { background: var(--tl-accent-bright); }
#bbpress-forums div.wp-editor-container, #bbpress-forums .quicktags-toolbar { border-color: var(--tl-line); background: var(--tl-surface); }
#bbpress-forums .quicktags-toolbar input { background: var(--tl-panel); color: var(--tl-text); border: 1px solid var(--tl-line); }
div.bbp-template-notice, div.indicator-hint { background: rgba(51, 117, 199, 0.1) !important; border: 1px solid rgba(69, 135, 219, 0.35) !important; border-radius: 10px !important; color: var(--tl-text) !important; }
div.bbp-template-notice.error, div.bbp-template-notice.warning { background: rgba(255, 120, 110, 0.1) !important; border-color: rgba(255, 120, 110, 0.4) !important; }
div.bbp-template-notice p, div.bbp-template-notice li { color: var(--tl-text) !important; }
#bbpress-forums .bbp-pagination { color: var(--tl-muted); }
#bbpress-forums .bbp-pagination-links a, #bbpress-forums .bbp-pagination-links span.current { border: 1px solid var(--tl-line); border-radius: 6px; padding: 0.15em 0.55em; background: var(--tl-panel); }
#bbpress-forums .bbp-pagination-links span.current { background: var(--tl-accent); color: #fff; }
#bbpress-forums #bbp-single-user-details #bbp-user-avatar { display: none; }
#bbpress-forums #bbp-single-user-details { width: 200px; }
#bbpress-forums #bbp-single-user-details #bbp-user-navigation a { color: var(--tl-text); padding: 0.35rem 0.6rem; border-radius: 6px; }
#bbpress-forums #bbp-single-user-details #bbp-user-navigation li.current a { background: rgba(51, 117, 199, 0.2); color: #fff; opacity: 1; }
#bbpress-forums #bbp-user-wrapper h2.entry-title { color: #fff; font-size: 1.3rem; padding-top: 0; }
#bbpress-forums #bbp-user-body { margin-left: 230px; }
@media (max-width: 700px) { #bbpress-forums #bbp-single-user-details { width: auto; float: none; } #bbpress-forums #bbp-user-body { margin-left: 0; } }
#bbpress-forums code, #bbpress-forums pre { background: var(--tl-base); border: 1px solid var(--tl-line); color: #e6edf6; border-radius: 6px; }
#bbpress-forums hr { border-color: var(--tl-line); }
.bbp-forum-freshness a, .bbp-topic-freshness a { color: var(--tl-muted); }
.tl-api-series { display: grid; grid-template-columns: 1fr 1fr; background: var(--tl-panel); border: 1px solid var(--tl-line); border-radius: 8px; padding: 3px; gap: 3px; }
.tl-api-series button { all: unset; cursor: pointer; text-align: center; padding: 0.45rem 0.4rem; border-radius: 6px; font-size: 0.85rem; font-weight: 600; color: var(--tl-muted); }
.tl-api-series button:hover { color: #fff; }
.tl-api-series button[aria-pressed="true"] { background: var(--tl-accent); color: #fff; }
.tl-api-series button:focus-visible { outline: 2px solid var(--tl-accent-bright); }
.tl-api-styles { font-size: 0.85rem; }

/* ------------------------------------------------------------------ Forums laid out like the Discord */
.tl-forum-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.tl-forum-side { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; scrollbar-width: thin; background: var(--tl-panel); border: 1px solid var(--tl-line); border-radius: 12px; padding: 0.6rem 0.5rem; }
.admin-bar .tl-forum-side { top: 116px; }
.tl-channels { font-size: 0.95rem; }
.tl-ch-home { display: block; padding: 0.4rem 0.6rem; border-radius: 6px; color: var(--tl-text) !important; font-weight: 600; margin-bottom: 0.3rem; }
.tl-ch-home:hover, .tl-ch-home.is-current { background: var(--tl-surface); text-decoration: none !important; }
.tl-channels details { margin-top: 0.7rem; }
.tl-channels summary { cursor: pointer; list-style: none; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--tl-muted); padding: 0.15rem 0.4rem; display: flex; align-items: center; gap: 0.25rem; user-select: none; }
.tl-channels summary::-webkit-details-marker { display: none; }
.tl-channels summary::after { content: "⌄"; font-size: 0.9rem; line-height: 0.6; margin-left: 0.15rem; transition: transform 0.15s; }
.tl-channels details:not([open]) summary::after { transform: rotate(-90deg); }
.tl-channels summary:hover { color: var(--tl-text); }
.tl-channels ul { list-style: none; margin: 0.15rem 0 0; padding: 0; }
.tl-channels li a { display: flex; align-items: center; gap: 0.45rem; padding: 0.32rem 0.55rem; margin: 1px 0; border-radius: 6px; color: #93a0b5 !important; text-decoration: none !important; }
.tl-channels li a:hover { background: var(--tl-surface); color: #dbe3f0 !important; }
.tl-channels li a.is-current { background: rgba(69, 135, 219, 0.2); color: #fff !important; }
.tl-channels li a.is-locked { opacity: 0.75; }
.tl-ch-icon { position: relative; display: inline-flex; color: #7d899c; flex: none; }
.tl-ch-lock { position: absolute; right: -5px; top: -6px; font-size: 0.6rem; }
.tl-forum-content { min-width: 0; }
.tl-forum-content > .wp-block-post-title { margin-top: 0; font-family: var(--wp--preset--font-family--heading); }
@media (max-width: 860px) {
	.tl-forum-layout { grid-template-columns: 1fr; }
	.tl-forum-side { position: static; max-height: none; }
	.tl-channels details[open] ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

.tl-forum-index { display: flex; flex-direction: column; gap: 1.4rem; }
.tl-fi-category h2 { font-size: 0.8rem !important; font-weight: 700 !important; text-transform: uppercase; letter-spacing: 0.06em; color: var(--tl-muted) !important; margin: 0 0 0.5rem !important; padding: 0 !important; display: flex; align-items: center; gap: 0.6rem; font-family: var(--wp--preset--font-family--body) !important; }
.tl-fi-staff { font-size: 0.7rem; padding: 0.15em 0.6em; border-radius: 999px; background: rgba(255, 120, 110, 0.15); color: #ff9d94; letter-spacing: 0.04em; }
.tl-fi-channel { display: flex; align-items: center; gap: 0.9rem; padding: 0.85rem 1rem; background: var(--tl-panel); border: 1px solid var(--tl-line); border-radius: 10px; margin-bottom: 0.45rem; color: var(--tl-text) !important; text-decoration: none !important; transition: border-color 0.15s, background 0.15s; }
.tl-fi-channel:hover { border-color: rgba(69, 135, 219, 0.55); background: #1d2330; }
.tl-fi-channel .tl-ch-icon { color: #8f9bb0; }
.tl-fi-channel .tl-ch-icon svg { width: 22px; height: 22px; }
.tl-fi-main { flex: 1; min-width: 0; }
.tl-fi-main strong { color: #f2f6fc; font-size: 1.02rem; }
.tl-fi-main .tl-badge { margin-left: 0.3rem; vertical-align: 2px; font-size: 0.65rem; }
.tl-fi-note { font-size: 0.72rem; color: var(--tl-muted); border: 1px solid var(--tl-line); border-radius: 999px; padding: 0.05em 0.55em; margin-left: 0.3rem; }
.tl-fi-desc { display: block; color: var(--tl-muted); font-size: 0.9rem; margin-top: 0.15rem; }
.tl-fi-stats { color: var(--tl-muted); font-size: 0.82rem; text-align: right; white-space: nowrap; }
.tl-fi-channel.is-locked .tl-fi-stats { color: #ff9db5; font-weight: 600; }
@media (max-width: 600px) { .tl-fi-stats { display: none; } }

.tl-locked { text-align: center; max-width: 520px; margin: 2rem auto; background: var(--tl-panel); border: 1px solid var(--tl-line); border-radius: 14px; padding: 2.2rem 1.8rem; }
.tl-locked-icon { font-size: 2.4rem; }
.tl-locked h2 { margin: 0.4rem 0 0.6rem !important; }
.tl-locked p { color: #c2ccdb; }

.tl-vote { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.2rem 0.6rem; margin-right: 0.6rem; border: 1px solid var(--tl-line); border-radius: 8px; background: var(--tl-surface); color: var(--tl-muted); font-size: 0.85rem; vertical-align: middle; }
.tl-vote:hover:not([disabled]) { border-color: var(--tl-accent-bright); color: #fff; }
.tl-vote.is-voted { background: rgba(69, 135, 219, 0.22); border-color: var(--tl-accent-bright); color: #fff; }
.tl-vote[disabled] { cursor: default; opacity: 0.7; }
.tl-vote b { font-weight: 700; color: inherit; }
#bbpress-forums .bbp-search-form { margin-bottom: 1rem; }
/* bbPress floats its breadcrumb; keep notices and the sign-in box on their own line below it. */
#bbpress-forums div.bbp-breadcrumb { float: none; margin-bottom: 0.8rem; }
.tl-forum-signin, #bbpress-forums div.bbp-template-notice, #bbpress-forums .bbp-search-form { clear: both; }
#bbpress-forums div.bbp-template-notice { padding: 0.7rem 1rem; margin: 0 0 0.8rem; }
#bbpress-forums div.bbp-template-notice p, #bbpress-forums div.bbp-template-notice li { margin: 0; font-size: 0.92rem; }
