/*
 * _base.css — Global design tokens, element defaults, page shell, and tiny utilities.
 * ALWAYS included in every page.
 *
 * Provides:
 *   :root variables (light + dark), box-sizing, html/body,
 *   element defaults (button, input, select, textarea, label, fieldset, legend,
 *   a, hr, img, h1-h4, p, ul/ol/li, blockquote, table/th/td, details/summary,
 *   pre/code), main / .notion-shell, utility classes, .notion-footer,
 *   reduced-motion and responsive breakpoints for base elements.
 */

:root {
	color-scheme: light dark;
	--notion-bg: #ffffff;
	--notion-bg-soft: #f9f9f8;
	--notion-surface: #ffffff;
	--notion-surface-hover: #f6f5f4;
	--notion-text: #191918;
	--notion-text-soft: rgba(0, 0, 0, 0.54);
	--notion-text-faint: rgba(0, 0, 0, 0.3);
	--notion-border: rgba(0, 0, 0, 0.1);
	--notion-border-soft: rgba(0, 0, 0, 0.05);
	--notion-shadow:
		0px 0.7px 1.462px rgba(0, 0, 0, 0.015), 0px 3px 9px rgba(0, 0, 0, 0.03);
	--notion-blue: #2783de;
	--notion-orange: #d5803b;
	--notion-red: #e56458;
	--notion-blue-bg: #f3f9fd;
	--notion-yellow-bg: #fcfaef;
	--notion-orange-bg: #fcf7f4;
	--notion-green-bg: #f6f9f7;
	--notion-red-bg: #fdf6f6;
	--notion-gray-bg: #f9f8f7;
	--notion-radius: 8px;
	--notion-page-width: 900px;
	--notion-chart-1: #5e9fe8;
	--notion-chart-2: #eac26b;
	--notion-chart-3: #72bc8f;
	--notion-chart-4: #bf8eda;
	--notion-chart-5: #de9255;
	--notion-chart-6: #df84a8;
	--notion-chart-7: #4fb9c9;
	--notion-chart-8: #e97366;
	--diff-add: #47c1b6;
	--diff-del: #f07070;
	--pr-approved: #2b8a3e;
}

@media (prefers-color-scheme: dark) {
	:root {
		--notion-bg: #000000;
		--notion-bg-soft: #191918;
		--notion-surface: #191918;
		--notion-surface-hover: #31302e;
		--notion-text: #ffffff;
		--notion-text-soft: rgba(255, 255, 255, 0.5);
		--notion-text-faint: rgba(255, 255, 255, 0.3);
		--notion-border: rgba(255, 255, 255, 0.2);
		--notion-border-soft: rgba(255, 255, 255, 0.1);
		--notion-shadow:
			0px 0.7px 1.462px rgba(0, 0, 0, 0.06), 0px 3px 9px rgba(0, 0, 0, 0.12);
		--notion-blue: #5e9fe8;
		--notion-orange: #de9255;
		--notion-red: #e97366;
		--notion-blue-bg: rgba(41, 139, 253, 0.061);
		--notion-yellow-bg: rgba(203, 145, 47, 0.08);
		--notion-orange-bg: rgba(246, 126, 35, 0.08);
		--notion-green-bg: rgba(42, 157, 118, 0.08);
		--notion-red-bg: rgba(246, 73, 50, 0.08);
		--notion-gray-bg: #31302e;
		--diff-add: #5dd8cb;
		--diff-del: #ff8a80;
		--pr-approved: #69db7c;
	}
}

* {
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
}
body {
	margin: 0;
	background: var(--notion-bg);
	color: var(--notion-text);
	font-family:
		ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica,
		"Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
	font-size: 16px;
	line-height: 1.5;
	transition:
		background 180ms ease,
		color 180ms ease;
}

/* -- Base element defaults -------------------------------- */
button,
[type="button"],
[type="submit"],
[type="reset"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 8px 16px;
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	color: #ffffff;
	background: var(--notion-blue);
	border: 1px solid transparent;
	border-radius: 8px;
	cursor: pointer;
	transition: background 150ms;
	white-space: nowrap;
}
button:hover,
[type="button"]:hover,
[type="submit"]:hover,
[type="reset"]:hover {
	background: color-mix(in srgb, var(--notion-blue) 82%, black);
}
button:focus-visible,
[type="button"]:focus-visible,
[type="submit"]:focus-visible,
[type="reset"]:focus-visible {
	outline: 2px solid var(--notion-blue);
	outline-offset: 2px;
}

input,
select,
textarea {
	font: inherit;
	font-size: 14px;
	line-height: 1.4;
	color: var(--notion-text);
	background: var(--notion-surface);
	border: 1px solid var(--notion-border);
	border-radius: 8px;
	padding: 8px 12px;
	transition: border-color 150ms;
}
input:focus,
select:focus,
textarea:focus {
	outline: none;
	border-color: var(--notion-blue);
	box-shadow: 0 0 0 2px rgba(9, 127, 232, 0.15);
}
input::placeholder,
textarea::placeholder {
	color: var(--notion-text-faint);
}
select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' fill='none' stroke='%23999' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	padding-right: 30px;
}
textarea {
	resize: vertical;
	min-height: 80px;
}
input[type="range"] {
	border: none;
	padding: 0;
	background: transparent;
	accent-color: var(--notion-blue);
	height: 18px;
	cursor: pointer;
	box-shadow: none;
}
input[type="range"]:focus {
	box-shadow: none;
}
input[type="checkbox"],
input[type="radio"] {
	width: 16px;
	height: 16px;
	accent-color: var(--notion-blue);
	border: 1px solid var(--notion-border);
	padding: 0;
	cursor: pointer;
}
label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--notion-text);
	margin-bottom: 6px;
}
fieldset {
	border: 1px solid var(--notion-border-soft);
	border-radius: 10px;
	padding: 16px;
	margin: 0;
}
legend {
	font-weight: 600;
	padding: 0 4px;
}

a {
	color: var(--notion-text);
	text-decoration: underline;
	text-underline-offset: 2px;
	text-decoration-color: var(--notion-border);
}
a:hover {
	text-decoration-color: var(--notion-text);
}

hr {
	height: 1px;
	margin: 34px 0;
	border: none;
	background: var(--notion-border-soft);
}

img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

h1,
h2,
h3,
h4 {
	text-wrap: balance;
}
h1 {
	margin: 0 0 14px;
	font-size: clamp(42px, 3vw, 72px);
	line-height: 1.1;
	letter-spacing: -0.035em;
	font-weight: 700;
	font-style: italic;
}
h2 {
	margin: 44px 0 10px;
	font-size: 32px;
	line-height: 1.25;
	letter-spacing: -0.025em;
}
h3 {
	margin: 0 0 6px;
	font-size: 18px;
	line-height: 1.556;
	letter-spacing: -0.007em;
}
p {
	margin: 0 0 10px;
}

ul,
ol {
	margin: 8px 0 16px;
	padding-left: 24px;
}
li {
	margin-bottom: 4px;
}
li::marker {
	color: var(--notion-text-faint);
}

blockquote {
	border-left: 3px solid var(--notion-text);
	padding: 4px 0 4px 16px;
	margin: 24px 0;
	}
blockquote p {
	font-size: 18px;
	line-height: 1.5;
	margin: 0;
}

table {
	width: 100%;
	margin: 14px 0;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--notion-border-soft);
	border-radius: 10px;
	overflow: hidden;
	background: var(--notion-surface);
	font-size: 14px;
}
th,
td {
	padding: 12px 14px;
	vertical-align: top;
	text-align: left;
	border-right: 1px solid var(--notion-border-soft);
	border-bottom: 1px solid var(--notion-border-soft);
}
th:last-child,
td:last-child {
	border-right: 0;
}
tr:last-child td {
	border-bottom: 0;
}
th {
	background: var(--notion-bg-soft);
	color: var(--notion-text-soft);
	font-weight: 600;
}

details {
	margin: 16px 0;
	border-radius: var(--notion-radius);
}
summary {
	padding: 8px 10px;
	border-radius: var(--notion-radius);
	cursor: pointer;
	font-weight: 600;
}
summary:hover {
	background: var(--notion-surface-hover);
}
details p {
	margin: 8px 10px 0 28px;
	color: var(--notion-text-soft);
}

pre,
code {
	font-family: ui-monospace, "iA Writer Mono", Nitti, Menlo, Courier, monospace;
}
pre {
	margin: 16px 0;
	padding: 14px 16px;
	overflow-x: auto;
	border: 1px solid var(--notion-border-soft);
	border-radius: 10px;
	background: var(--notion-gray-bg);
	font-size: 13px;
	line-height: 1.55;
}
code {
	font-size: 0.9em;
	padding: 2px 5px;
	border-radius: 4px;
	background: var(--notion-gray-bg);
}
pre code {
	font-size: inherit;
	padding: 0;
	border-radius: 0;
	background: none;
}

main {
	max-width: var(--notion-page-width);
	margin: 0 auto;
	padding: 76px 24px 88px;
}

section {
	margin-top: 44px;
}
section:first-child {
	margin-top: 0;
}

/* -- Page shell ------------------------------------------- */
.notion-shell {
	max-width: var(--notion-page-width);
	margin: 0 auto;
	padding: 76px 24px 88px;
}

/* -- Tiny utilities --------------------------------------- */
.notion-lede {
	max-width: 720px;
	margin: 0 0 24px;
	color: var(--notion-text-soft);
	font-size: 20px;
}
.notion-muted {
	color: var(--notion-text-soft);
}
.notion-faint {
	color: var(--notion-text-faint);
}
.notion-divider {
	height: 1px;
	margin: 34px 0;
	background: var(--notion-border-soft);
}
.notion-eyebrow {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.0078125rem;
	text-transform: uppercase;
	color: var(--notion-red);
}

/* -- Footer ----------------------------------------------- */
.notion-footer {
	margin-top: 52px;
	padding-top: 18px;
	border-top: 1px solid var(--notion-border-soft);
	color: var(--notion-text-faint);
	font-size: 13px;
}

/* -- Accessibility & motion ------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* -- Responsive: 560px (base elements) -------------------- */
@media (max-width: 560px) {
	main,
	.notion-shell {
		padding-inline: 16px;
	}
	table {
		display: block;
		overflow-x: auto;
	}
}
/*
 * hero — Full-width hero section with title, subtitle, and optional eyebrow.
 *
 * HTML:
 * <section class="notion-hero">
 *   <span class="notion-eyebrow">Category</span>
 *   <h1>Page Title</h1>
 *   <p>A brief description that supports the title with additional context.</p>
 *   <div class="notion-button-group">
 *     <a class="notion-button" data-variant="primary" href="#">Get started</a>
 *     <a class="notion-button" data-variant="secondary" href="#">Learn more</a>
 *   </div>
 * </section>
 */

.notion-hero {
	padding: 48px 0 40px;
	max-width: var(--notion-page-width);
}
.notion-hero h1 {
	font-size: clamp(42px, 7vw, 72px);
	font-weight: 700;
	letter-spacing: -0.04em;
	line-height: 1.05;
	margin: 0;
	text-wrap: balance;
}
.notion-hero p {
	font-size: 20px;
	line-height: 1.5;
	color: var(--notion-text-soft);
	margin: 16px 0 0;
	max-width: 640px;
}
.notion-hero .notion-eyebrow {
	margin-bottom: 12px;
}

/* -- Responsive: 820px ------------------------------------ */
@media (max-width: 820px) {
	.notion-hero {
		padding: 32px 0 24px;
	}
	.notion-hero h1 {
		font-size: clamp(32px, 8vw, 48px);
	}
}
/*
 * button — Styled link/button with variant and size options.
 * Options: data-variant="primary"|"secondary"|"tertiary"
 *          data-size="small"|"large"
 *
 * HTML:
 * <a class="notion-button" data-variant="primary" href="#">Primary</a>
 */

.notion-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 8px 16px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	border-radius: 8px;
	border: 1px solid transparent;
	cursor: pointer;
	transition:
		background 150ms,
		box-shadow 150ms,
		border-color 150ms;
	text-decoration: none;
	font-family: inherit;
	white-space: nowrap;
}
.notion-button:focus-visible {
	outline: 2px solid var(--notion-blue);
	outline-offset: 2px;
}
/* Primary */
.notion-button[data-variant="primary"],
.notion-button:not([data-variant]) {
	background: var(--notion-blue);
	color: #ffffff;
	border-color: transparent;
}
.notion-button[data-variant="primary"]:hover,
.notion-button:not([data-variant]):hover {
	background: color-mix(in srgb, rgba(214,158,46,1) 78%, rgba(182,78,58,1));
}
/* Secondary */
.notion-button[data-variant="secondary"] {
	background: var(--notion-blue-bg);
	color: var(--notion-blue);
	border-color: transparent;
}
.notion-button[data-variant="secondary"]:hover {
	background: color-mix(in srgb, rgba(214,158,46,0.18) 40%, rgba(255,255,255,1));
	border-color: rgba(214,158,46,0.28);
}
/* Tertiary */
.notion-button[data-variant="tertiary"] {
	background: transparent;
	color: var(--notion-text);
	border-color: transparent;
}
.notion-button[data-variant="tertiary"]:hover {
	background: var(--notion-surface-hover);
}
/* Small modifier */
.notion-button[data-size="small"] {
	padding: 4px 12px;
	font-size: 12px;
}
/* Large modifier */
.notion-button[data-size="large"] {
	padding: 12px 24px;
	font-size: 16px;
}
.notion-button-group {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 24px;
}

/* -- Responsive: 820px ------------------------------------ */
@media (max-width: 820px) {
	.notion-button-group {
		flex-direction: column;
	}
	.notion-button-group .notion-button {
		width: 100%;
	}
}
/*
 * callout — Highlighted info box with icon and text.
 * Options: data-tone="blue" | "green" | "orange" | "red" (default: yellow)
 *
 * HTML:
 * <div class="notion-callout" data-tone="blue">
 *   <div>💡</div>
 *   <div><strong>Note</strong><p>Helpful context.</p></div>
 * </div>
 */

.notion-callout {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 14px;
	margin: 18px 0;
	padding: 16px 18px;
	border-radius: var(--notion-radius);
	background: var(--notion-yellow-bg);
	box-shadow: inset 0 0 0 1px var(--notion-border-soft);
}
.notion-callout[data-tone="blue"] {
	background: var(--notion-blue-bg);
}
.notion-callout[data-tone="green"] {
	background: var(--notion-green-bg);
}
.notion-callout[data-tone="orange"] {
	background: var(--notion-orange-bg);
}
.notion-callout[data-tone="red"] {
	background: var(--notion-red-bg);
}
.notion-callout strong {
	display: block;
	margin-bottom: 3px;
}
.notion-callout p {
	margin: 0;
	color: var(--notion-text-soft);
}
/*
 * card-grid — Grid of clickable cards with icon, title, and description.
 *
 * HTML:
 * <section class="notion-card-grid">
 *   <article class="notion-card">
 *     <div class="notion-card-icon">%</div>
 *     <h3>Card</h3>
 *     <p>Card text.</p>
 *   </article>
 * </section>
 */

.notion-card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 20px 0 6px;
}
.notion-card {
	padding: 16px;
	border: 1px solid var(--notion-border-soft);
	border-radius: 10px;
	background: var(--notion-surface);
	box-shadow: var(--notion-shadow);
	transition:
		transform 140ms ease,
		background 140ms ease,
		border-color 140ms ease;
}
.notion-card:hover {
	transform: translateY(-1px);
	background: var(--notion-surface-hover);
	border-color: var(--notion-border);
}
.notion-card-icon {
	width: 34px;
	height: 34px;
	display: grid;
	place-items: center;
	margin-bottom: 12px;
	border-radius: 8px;
	background: var(--notion-gray-bg);
	font-size: 20px;
}
.notion-card p {
	color: var(--notion-text-soft);
}

/* -- Responsive: 820px ------------------------------------ */
@media (max-width: 820px) {
	.notion-card-grid {
		grid-template-columns: 1fr;
	}
}
/*
 * quote — Styled blockquote with attribution (avatar, name, meta).
 *
 * HTML:
 * <blockquote class="notion-quote">
 *   <p>Design is not just what it looks like and feels like.
 *      Design is how it works.</p>
 *   <div class="notion-attribution">
 *     <img src="avatar.jpg" alt="">
 *     <div>
 *       <span class="notion-attribution-name">Steve Jobs</span>
 *       <span class="notion-attribution-meta">Apple, 2003</span>
 *     </div>
 *   </div>
 * </blockquote>
 */

.notion-quote {
	border-left: 3px solid var(--notion-text);
	padding: 4px 0 4px 16px;
	margin: 24px 0;
}
.notion-quote p {
	font-size: 18px;
	line-height: 1.5;
	color: var(--notion-text);
	margin: 16px 0 0 0;
}
.notion-attribution {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 16px;
}
.notion-attribution img {
	width: 40px;
	height: 40px;
	border-radius: 9999px;
	object-fit: cover;
}
.notion-attribution-name {
	font-size: 14px;
	font-weight: 600;
	color: var(--notion-text);
}
.notion-attribution-meta {
	font-size: 13px;
	color: var(--notion-text-faint);
}
/*
 * tabs — CSS-only tabbed interface using radio inputs.
 * Options: data-style="line" | "pills" (default: pill-in-tray)
 *
 * HTML:
 * <div class="notion-tabs">
 *   <input checked type="radio" name="tabs-demo" id="tab-1">
 *   <input type="radio" name="tabs-demo" id="tab-2">
 *   <div class="notion-tab-list">
 *     <label class="notion-tab-label" for="tab-1">Simple</label>
 *     <label class="notion-tab-label" for="tab-2">Detailed</label>
 *   </div>
 *   <div class="notion-tab-panel" data-tab-panel="1"><p>Simple view.</p></div>
 *   <div class="notion-tab-panel" data-tab-panel="2"><p>Detailed view.</p></div>
 * </div>
 */

.notion-tabs {
	margin: 18px 0;
}
.notion-tabs input[type="radio"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.notion-tab-list {
	display: flex;
	flex-wrap: wrap;
	width: fit-content;
	gap: 6px;
	padding: 4px;
	border-radius: 10px;
	background: var(--notion-gray-bg);
}
.notion-tab-label {
	padding: 6px 10px;
	border-radius: 8px;
	color: var(--notion-text-soft);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}
.notion-tab-label:hover {
	background: var(--notion-surface-hover);
	color: var(--notion-text);
}
.notion-tab-panel {
	display: none;
	padding: 16px 0 0;
}
.notion-tabs:has(#tab-1:checked) label[for="tab-1"],
.notion-tabs:has(#tab-2:checked) label[for="tab-2"],
.notion-tabs:has(#tab-3:checked) label[for="tab-3"],
.notion-tabs:has(#tab-4:checked) label[for="tab-4"] {
	background: var(--notion-surface);
	color: var(--notion-text);
	box-shadow: 0 1px 2px rgba(15, 15, 15, 0.06);
}

/* Line-style tabs */
.notion-tabs[data-style="line"] .notion-tab-list {
	width: auto;
	background: none;
	padding: 0;
	gap: 0;
	border-radius: 0;
	border-bottom: 1px solid var(--notion-border-soft);
}
.notion-tabs[data-style="line"] .notion-tab-label {
	padding: 8px 14px;
	border-radius: 0;
	font-weight: 500;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
}
.notion-tabs[data-style="line"] .notion-tab-label:hover {
	background: none;
	color: var(--notion-text);
}
.notion-tabs[data-style="line"] .notion-tab-panel {
	padding-top: 0;
}
.notion-tabs[data-style="line"] .notion-tab-panel > :first-child {
	margin-top: 0;
	border-top: none;
	border-top-left-radius: 0;
	border-top-right-radius: 0;
}
.notion-tabs[data-style="line"]:has(#tab-1:checked) label[for="tab-1"],
.notion-tabs[data-style="line"]:has(#tab-2:checked) label[for="tab-2"],
.notion-tabs[data-style="line"]:has(#tab-3:checked) label[for="tab-3"],
.notion-tabs[data-style="line"]:has(#tab-4:checked) label[for="tab-4"] {
	background: none;
	box-shadow: none;
	color: var(--notion-text);
	font-weight: 600;
	border-bottom-color: var(--notion-text);
}

/* Pill-style tabs */
.notion-tabs[data-style="pills"] .notion-tab-list {
	width: auto;
	background: none;
	padding: 0;
	gap: 8px;
	border-radius: 0;
}
.notion-tabs[data-style="pills"] .notion-tab-label {
	padding: 6px 16px;
	border-radius: 999px;
	border: 1px solid var(--notion-border);
	font-weight: 500;
	font-size: 14px;
	color: var(--notion-text-soft);
	background: var(--notion-surface);
}
.notion-tabs[data-style="pills"] .notion-tab-label:hover {
	background: var(--notion-surface-hover);
	border-color: var(--notion-text-faint);
	color: var(--notion-text);
}
.notion-tabs[data-style="pills"]:has(#tab-1:checked) label[for="tab-1"],
.notion-tabs[data-style="pills"]:has(#tab-2:checked) label[for="tab-2"],
.notion-tabs[data-style="pills"]:has(#tab-3:checked) label[for="tab-3"],
.notion-tabs[data-style="pills"]:has(#tab-4:checked) label[for="tab-4"] {
	background: var(--notion-text);
	border-color: var(--notion-text);
	color: var(--notion-bg);
	box-shadow: none;
	font-weight: 600;
}
.notion-tabs[data-style="pills"] .notion-tab-panel {
	padding-top: 16px;
}

/* Panel visibility */
.notion-tabs:has(#tab-1:checked) [data-tab-panel="1"],
.notion-tabs:has(#tab-2:checked) [data-tab-panel="2"],
.notion-tabs:has(#tab-3:checked) [data-tab-panel="3"],
.notion-tabs:has(#tab-4:checked) [data-tab-panel="4"] {
	display: block;
}
/*
 * toggle — Alias for the base <details> element.
 * No additional styles beyond _base.css defaults.
 *
 * HTML:
 * <details class="notion-toggle">
 *   <summary>More detail</summary>
 *   <p>Hidden content.</p>
 * </details>
 */

/* .notion-toggle is now an alias -- bare <details> is styled identically */
/* Warm & Ornate — from-scratch theme for the Hybrid Studio HTML structure.
   Light/cream base + colorful ornamental hero + friendly cards.
*/

:root{
  --hs-bg: #FBF6EE;
  --hs-ink: rgba(25,22,19,0.92);
  --hs-muted: rgba(25,22,19,0.72);
  --hs-faint: rgba(25,22,19,0.56);
  --hs-border: rgba(36,33,29,0.12);
  --hs-surface: rgba(255,255,255,0.90);

  --hs-accent: #B64E3A;  /* vermilion */
  --hs-accent2: #2B6CB0; /* lapis */
  --hs-accent3: #2F855A; /* green */
  --hs-accent4: #D69E2E; /* marigold */

  --hs-radius: 22px;
  --hs-radius-sm: 14px;
  --hs-shadow: 0 18px 50px rgba(40,30,20,0.14);
}

html,body{ background: var(--hs-bg); color: var(--hs-ink); }

/* Override base shell to feel airy but not huge */
.notion-shell{
  max-width: 1120px;
  padding: 48px 26px 72px;
}

main.notion-shell.hs{ max-width: 1120px; }

section{ margin-top: 40px; }
section:first-child{ margin-top: 0; }

/* Top nav */
.hs-nav{
  position: sticky;
  top: 0;
  z-index: 50;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding: 12px 0;
  margin: 0 0 14px;
  backdrop-filter: blur(10px);
  background: rgba(251, 246, 238, 0.82);
  border-bottom: 1px solid rgba(36,33,29,0.08);
}

.hs-brand{
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(25,22,19,0.65);
}

.hs-navlinks{ display:flex; align-items:center; gap:8px; flex-wrap: wrap; justify-content: flex-end; }

.hs-navlinks a{
  color: rgba(25,22,19,0.72);
  text-decoration:none;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 999px;
}

.hs-navlinks a:hover{ background: rgba(182,78,58,0.10); color: rgba(25,22,19,0.92); }

/* Mobile nav toggle (hidden on desktop) */
.hs-nav-toggle{
	display: none;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border-radius: 999px;
	border: 1px solid rgba(36,33,29,0.12);
	background: rgba(255,255,255,0.78);
	color: rgba(25,22,19,0.86);
	cursor: pointer;
}

.hs-nav-toggle:hover{ background: rgba(182,78,58,0.10); }

.hs-nav-toggle-icon{
	width: 18px;
	height: 12px;
	position: relative;
	display: inline-block;
}

.hs-nav-toggle-icon::before,
.hs-nav-toggle-icon::after,
.hs-nav-toggle-icon{
	background: transparent;
}

.hs-nav-toggle-icon::before,
.hs-nav-toggle-icon::after{
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	height: 2px;
	border-radius: 2px;
	background: rgba(25,22,19,0.75);
}

.hs-nav-toggle-icon::before{ top: 0; }
.hs-nav-toggle-icon::after{ bottom: 0; }

.hs-nav-toggle-label{ font-size: 14px; font-weight: 600; }

@media (max-width: 820px){
	.hs-nav{ align-items: flex-start; }
	.hs-nav-toggle{ display: inline-flex; }

	/* Collapse menu by default */
	.hs-navlinks{
		display: none;
		width: 100%;
		margin-top: 10px;
		padding: 10px;
		border-radius: 16px;
		border: 1px solid rgba(36,33,29,0.10);
		background: rgba(255,255,255,0.86);
		box-shadow: 0 12px 30px rgba(40,30,20,0.10);
	}
	.hs-navlinks a{ width: 100%; justify-content: flex-start; }
	.hs-navlinks .notion-button{ width: 100%; }

	/* When expanded */
	.hs-nav[data-open="true"] .hs-navlinks{ display: grid; gap: 6px; }
}

/* Ornate hero placeholder */
.hs-hero-image{
  height: 450px;
  border-radius: calc(var(--hs-radius) + 6px);
  border: 1px solid var(--hs-border);
  background:
    radial-gradient(900px 380px at 25% 25%, rgba(182,78,58,0.22), transparent 60%),
    radial-gradient(900px 380px at 75% 25%, rgba(43,108,176,0.20), transparent 60%),
    radial-gradient(900px 420px at 50% 80%, rgba(214,158,46,0.22), transparent 60%),
    repeating-linear-gradient(45deg, rgba(36,33,29,0.05) 0 2px, transparent 2px 10px),
    linear-gradient(180deg, rgba(255,255,255,0.86), rgba(255,255,255,0.56));
  box-shadow: var(--hs-shadow);
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}

.hs-hero-image::after{
  content: "Hero image placeholder";
  position: absolute;
  left: 16px;
  bottom: 14px;
  font-size: 12px;
  color: rgba(25,22,19,0.60);
  letter-spacing: 0.06em;
}

.hs-hero-grid{
  display:grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 26px;
  align-items: start;
  margin-top: 10px;
}

.hs-subtitle{ color: var(--hs-muted); font-size: 18px; line-height: 1.55; max-width: 62ch; }
.hs-subtitle strong {font-style: italic;}

/* Proof list */
.hs-proof{ margin-top: 16px; display:grid; gap: 10px; }
.hs-proof-item{
  display:flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(36,33,29,0.10);
  border-radius: var(--hs-radius-sm);
  background: rgba(255,255,255,0.84);
}
.hs-proof-k{ color: rgba(25,22,19,0.58); }
.hs-proof-v{ color: rgba(25,22,19,0.92); font-weight: 650; }

/* Buttons */
.notion-button[data-variant="primary"]{
  background: linear-gradient(90deg, rgba(182,78,58,1), rgba(214,158,46,1));
  border: 1px solid rgba(36,33,29,0.12);
  color: rgba(255,255,255,0.98);
  box-shadow: 0 12px 26px rgba(182,78,58,0.18);
}

.notion-button[data-variant="secondary"]{
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(36,33,29,0.12);
  color: rgba(25,22,19,0.88);
}

/* Cards */
.hs-hero-card,
.hs-video,
.hs-card,
.hs-reel,
.hs-cta-band,
.hs-about-panel,
.hs-modal{
  background: var(--hs-surface);
  border: 1px solid var(--hs-border);
  box-shadow: var(--hs-shadow);
}

.hs-hero-card{ overflow:hidden; border-radius: var(--hs-radius); display:flex; flex-direction: column; }

/* Ensure portrait never overlaps text */
.hs-portrait{ position: relative; }
.hs-portrait{ overflow: hidden; }
.hs-portrait-label{ position: static; display:block; padding: 0; margin: 0; height: 100%; }
.hs-portrait-label img{ width: 100%; height: 100%; object-fit: cover; display:block; }

@media (max-width: 820px){
	.hs-portrait{ height: 280px; }
}

/* Tablet fix: prevent portrait from consuming the whole card */
@media (max-width: 980px){
  .hs-portrait{ height: 260px; }
  .hs-card-body{ background: var(--hs-surface); }
}

/* Keep instructor text visible at all sizes */
.hs-card-body{ display: block; }

.hs-portrait{
  height: 320px;
  background:
    linear-gradient(180deg, rgba(182,78,58,0.12), rgba(214,158,46,0.08)),
    radial-gradient(1000px 500px at 30% 10%, rgba(43,108,176,0.14), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.72));
}

.hs-portrait-overlay{ display:none; }
.hs-portrait-label{ color: rgba(25,22,19,0.62); }
.hs-instructor-meta{ color: rgba(25,22,19,0.60); }
.hs-bio-link{ color: rgba(182,78,58,0.92); }

/* About */
.hs-about{ margin-top: 12px; display:grid; grid-template-columns: 1.2fr 0.8fr; gap: 16px; }

.hs-about-row{
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: start;
  margin: 0 28px 18px 18px;
}
.hs-about-row img {max-width: 150px;}
.abouthead {color: var(--notion-red); line-height: 1.5;}


.hs-about-row--right{
  grid-template-columns: 1fr 140px;
}

.hs-about-img{
  width: 140px;
  height: 140px;
  border-radius: 18px;
  border: 1px dashed rgba(36,33,29,0.22);
  background:
    radial-gradient(22px 22px at 35% 30%, rgba(182,78,58,0.18), transparent 60%),
    radial-gradient(26px 26px at 70% 70%, rgba(43,108,176,0.14), transparent 65%),
    rgba(255,255,255,0.92);
}

.hs-about-copy p{ color: var(--hs-muted); margin: 0; }

@media (max-width: 820px){
  .hs-about-row,
  .hs-about-row--right{
    grid-template-columns: 1fr;
  }
  .hs-about-img{ width: 100%; height: 180px; }

  /* On mobile, put image ABOVE text for the right-aligned row too */
  .hs-about-row--right .hs-about-img{ order: -1; }
}

/* If About rows use real <img> tags (not .hs-about-img), ensure row 2 stacks with image ABOVE text */
@media (max-width: 820px){
  .hs-about-row{ display: flex; flex-direction: column; }
  .hs-about-row--right img{ order: -1; }
}

/* Tablet safeguard: never hide instructor info card */
@media (max-width: 980px){
  .hs-hero-card{
    display: flex !important;
    flex-direction: column !important;
    position: relative;
    z-index: 1;
    visibility: visible;
    opacity: 1;
  }
  .hs-card-body{
    display: block !important;
    visibility: visible;
    opacity: 1;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

/* On mobile, show the About info panel ABOVE the paragraphs */
@media (max-width: 820px){
  .hs-about{ display: flex; flex-direction: column; }
  .hs-about-panel{ order: 1; }
  .hs-about-text{ order: 2; }
}
.hs-about-panel{ border-radius: var(--hs-radius); padding: 14px; }
.hs-panel-item{ display:flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(36,33,29,0.10); }
.hs-about-panel .notion-button {margin-top:16px;}
.hs-panel-item:last-child{ border-bottom:none; }
.hs-panel-item span{ color: rgba(25,22,19,0.60); }

/* Band */
.hs-band{
  margin-top: 16px;
  border: 1px solid var(--hs-border);
  border-radius: calc(var(--hs-radius) + 6px);
  background:
    radial-gradient(900px 240px at 20% 20%, rgba(214,158,46,0.18), transparent 60%),
    radial-gradient(900px 240px at 80% 20%, rgba(43,108,176,0.14), transparent 60%),
    rgba(255,255,255,0.78);
  padding: 14px;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.hs-band-item{ border: 1px solid rgba(36,33,29,0.12); border-radius: 18px; background: rgba(255,255,255,0.90); padding: 12px; }

/* Curriculum */
.hs-curr-grid{ margin-top: 16px; display:grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hs-card{ border-radius: var(--hs-radius); padding: 14px; }
.hs-card-top{ display:flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.hs-sessions{ color: rgba(182,78,58,0.92); font-weight: 800; letter-spacing: 0.14em; font-size: 12px; }
.hs-title{ font-weight: 750; }
.hs-desc{ color: var(--hs-muted); margin-top: 10px; }

/* Reels */
.hs-reels-grid{
	margin-top: 12px;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}
.hs-reel{ border-radius: var(--hs-radius); padding: 14px; width: auto; min-width: 0;}

.hs-reel-frame{
	background: rgba(251,246,238,0.92);
	border: 1px dashed rgba(36,33,29,0.20);
	border-radius: 14px;
	width: 100%;
	max-width: none;
	max-height: 405px;
}

.hs-reel-frame iframe { border-radius: 14px; width: 100%; max-width: 100%; }

/* CTA band */
.hs-cta-band{ border-radius: var(--hs-radius); padding: 16px; display:flex; justify-content: space-between; align-items:center; gap: 16px; }

/* Back-to-top */
.hs-toplink{ display:inline-block; margin-top: 16px; font-size: 12px; color: rgba(25,22,19,0.42); text-decoration:none; }
.hs-toplink:hover{ color: rgba(25,22,19,0.70); text-decoration: underline; }

/* Responsive */
@media (max-width: 980px){
  .hs-hero-grid{ grid-template-columns: 1fr; }
  .hs-about{ grid-template-columns: 1fr; }
  .hs-band{ grid-template-columns: 1fr; }
  .hs-curr-grid{ grid-template-columns: 1fr; }
  .hs-reels-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hs-hero-image{ height: 240px; }
  .hs-cta-band{ flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px){
	.hs-reels-grid{ grid-template-columns: 1fr; }
	.hs-reel{ width: 100%; }
	.hs-reel-frame{ max-height: none; }
}

/* --- Fixes: spacing + trailer button + testimonial meta --- */

/* Force light theme even if OS/browser is dark (prevents white-on-cream text) */
:root{ color-scheme: light; }
@media (prefers-color-scheme: dark){
	:root{
		--notion-bg: #ffffff;
		--notion-bg-soft: #f9f9f8;
		--notion-surface: #ffffff;
		--notion-surface-hover: #f6f5f4;
		--notion-text: #191918;
		--notion-text-soft: rgba(0, 0, 0, 0.54);
		--notion-text-faint: rgba(0, 0, 0, 0.3);
		--notion-border: rgba(0, 0, 0, 0.1);
		--notion-border-soft: rgba(0, 0, 0, 0.05);
		--notion-blue: #2783de;
		--notion-blue-bg: #f3f9fd;
	}
}

/* Links in About should stay readable */
.hs-about-text a{ color: rgba(25,22,19,0.92); text-decoration-color: rgba(182,78,58,0.35); }
.hs-about-text a:hover{ color: rgba(182,78,58,0.92); text-decoration-color: rgba(182,78,58,0.75); }

/* Ensure testimonial quote text stays dark */
.hs-testimonial .notion-quote p{ color: rgba(25,22,19,0.92); }
.hs-testimonial .notion-attribution-name{ color: rgba(25,22,19,0.92); }
.hs-testimonial .notion-attribution-meta{ color: rgba(25,22,19,0.55); }


/* Instructor card: padding + internal spacing */
.hs-card-body{ padding: 18px 18px 20px; }
.hs-instructor{ display:flex; gap: 12px; align-items: center; }
.hs-avatar{ width: 42px; height: 42px; border-radius: 999px; background: rgba(0,0,0,0.06); border: 1px solid rgba(36,33,29,0.12); }
.hs-instructor-name{ font-weight: 800; margin-bottom: 16px;}
.hs-instructor-name span { font-weight: 400; }
.hs-mini{ margin-top: 14px; display: grid; gap: 10px; }
.hs-mini-item{ padding-top: 10px; border-top: 1px solid rgba(36,33,29,0.10); }
.hs-mini-item:first-child{ border-top: none; padding-top: 0; }

/* Space between proof list and CTAs */
.hs-hero-cta{ margin-top: 16px; display:flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px;}

/* About schedule panel should be more compact */
.hs-about-panel{ padding: 10px 12px; }
.hs-panel-item{ padding: 8px 0; }
.hs-panel-item strong{ font-size: 13px; }

/* Trailer box padding + play button style */
.hs-video{ padding: 16px; border-radius: var(--hs-radius); }
.hs-video-btn{
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(36,33,29,0.14);
  color: var(--hs-ink);
  cursor: pointer;
}
.hs-video-btn:hover{ box-shadow: 0 12px 26px rgba(182,78,58,0.10); }

.hs-play{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(182,78,58,0.10);
  border: 1px solid rgba(182,78,58,0.22);
  color: rgba(182,78,58,0.92);
  font-size: 14px;
  line-height: 1;
}

/* Curriculum -> CTA spacing */
.hs-curr-grid{ margin-bottom: 18px; }
.hs-cta-band{ margin-top: 12px; }

/* Testimonial meta row */
.hs-testimonial{ margin-top: 18px; }
.hs-testimonial-meta{
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
}
.hs-testimonial-photo{
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 1px dashed rgba(36,33,29,0.22);
  background:
    radial-gradient(20px 20px at 35% 30%, rgba(182,78,58,0.18), transparent 60%),
    radial-gradient(24px 24px at 70% 70%, rgba(43,108,176,0.14), transparent 65%),
    rgba(255,255,255,0.92);
}
.hs-testimonial-name{ font-weight: 800; }
.hs-testimonial-date{ font-size: 13px; color: var(--hs-muted); margin-top: 2px; }

/* Band icon size */
.hs-band-icon{ width: 28px; height: 28px; display:block; margin-bottom: 10px; }

@media (max-width: 980px){
  .hs-testimonial-meta{ align-items: flex-start; }
}

.hs-desc span {font-style: italic;}
