/* Claude Courses theme — layout and component styles.
   Colours, type and spacing live in theme.json; this file only adds what theme.json can't. */

:root { --cc-radius: 12px; --cc-radius-lg: 18px; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
:where(a, button, summary, input, select, textarea):focus-visible {
	outline: 3px solid var(--wp--preset--color--violet);
	outline-offset: 3px;
	border-radius: 4px;
}
[id] { scroll-margin-top: 1.5rem; }

/* ---------- Header ---------- */
.cc-site-header { padding-top: 1.1rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--wp--preset--color--line); }
.cc-site-header__inner { gap: 1.5rem; }
.cc-site-header__nav { gap: 1.75rem; align-items: center; }
.cc-logo { display: block; line-height: 0; }
.cc-logo img { height: 36px; width: auto; }
.cc-site-header .wp-block-navigation a { color: var(--wp--preset--color--ink); }
.cc-site-header .wp-block-navigation a:hover { color: var(--wp--preset--color--violet); text-decoration: underline; text-underline-offset: 4px; }
.cc-account-link {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1rem;
	border: 2px solid var(--wp--preset--color--violet); border-radius: 10px;
	color: var(--wp--preset--color--violet); font-weight: 600; font-size: 1.0625rem; text-decoration: none; white-space: nowrap;
}
.cc-account-link:hover { background: var(--wp--preset--color--violet); color: var(--wp--preset--color--white); }
.wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--white); padding: 2rem; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { font-size: 1.375rem; }
@media (max-width: 600px) {
	.cc-logo img { height: 28px; }
	.cc-site-header__nav { gap: .75rem; }
}

/* ---------- Main ---------- */
.cc-main { padding-top: var(--wp--preset--spacing--50); padding-bottom: var(--wp--preset--spacing--60); }
.cc-main--landing { padding-top: 0; padding-bottom: 0; }
.cc-main--landing > .wp-block-post-content > * { margin-block-start: 0; }
.cc-page-title { margin-bottom: var(--wp--preset--spacing--40); }
.cc-lesson-title { font-size: var(--wp--preset--font-size--x-large); margin-bottom: .5rem; }

/* ---------- Buttons ---------- */
.wp-block-button.is-style-outline > .wp-block-button__link {
	border: 2px solid var(--wp--preset--color--violet); color: var(--wp--preset--color--violet); background: transparent;
	padding-top: calc(.9rem - 2px); padding-bottom: calc(.9rem - 2px);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--white); color: var(--wp--preset--color--violet-deep); }

/* ---------- Sections ---------- */
.cc-section { padding-top: var(--wp--preset--spacing--60); padding-bottom: var(--wp--preset--spacing--60); }
.cc-section > h2 { max-width: 22ch; }

/* ---------- Hero ---------- */
.cc-hero { padding-top: var(--wp--preset--spacing--60); padding-bottom: var(--wp--preset--spacing--60); overflow: hidden; }
.cc-hero__grid { gap: clamp(2rem, 5vw, 4.5rem); }
.cc-hero h1 { max-width: 15ch; margin-top: .75rem; }
.cc-kicker { color: var(--wp--preset--color--violet); font-weight: 600; margin: 0; }
.cc-lede { color: var(--wp--preset--color--slate); line-height: 1.5; max-width: 34ch; }
.cc-hero .wp-block-buttons { margin-top: 2rem; }

.cc-hero__demo { position: relative; }
.cc-hero__demo::before {
	content: ""; position: absolute; z-index: 0; pointer-events: none;
	width: 150%; aspect-ratio: 1; right: -38%; top: 50%; transform: translateY(-50%);
	background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 500' fill='none' stroke-linecap='round'><path d='M423.4 114.6A220 220 0 1 0 423.4 385.4' stroke='%23968AE0' stroke-width='26'/><path d='M360.3 163.8A140 140 0 1 0 360.3 336.2' stroke='%23B5ABFC' stroke-width='26'/></svg>") center / contain no-repeat;
	opacity: .32;
}
.cc-chat {
	position: relative; z-index: 1;
	border-radius: var(--cc-radius-lg); padding: clamp(1.25rem, 3vw, 2rem);
	box-shadow: var(--wp--preset--shadow--card);
	border: 1px solid var(--wp--preset--color--line);
}
.cc-chat > * { margin-block-start: 0; }
.cc-chat__label { font-size: .9375rem; font-weight: 600; color: var(--wp--preset--color--slate); margin-bottom: .4rem; }
.cc-chat__prompt {
	background: var(--wp--preset--color--mist); border-radius: var(--cc-radius); padding: .9rem 1.1rem;
	font-size: 1.0625rem; line-height: 1.55; margin-bottom: 1.5rem;
}
.cc-chat__reply { font-size: 1.0625rem; line-height: 1.6; border-left: 3px solid var(--wp--preset--color--lavender); padding-left: 1rem; }
.cc-chat__note { color: var(--wp--preset--color--slate); border-top: 1px solid var(--wp--preset--color--line); padding-top: 1rem; margin-top: 1.25rem; margin-bottom: 0; }

@media (max-width: 781px) {
	.cc-hero__demo::before { width: 120%; right: -45%; }
}

/* ---------- Tasks ---------- */
.cc-tasks { margin-top: var(--wp--preset--spacing--50); gap: clamp(1.5rem, 3vw, 2.5rem); }
.cc-tasks .wp-block-column { border-top: 3px solid var(--wp--preset--color--lavender); padding-top: 1.25rem; }
.cc-tasks h3 { margin-top: 0; }

/* ---------- Curriculum ---------- */
.cc-module-grid { margin-top: var(--wp--preset--spacing--50); gap: 1.25rem; }
.cc-module-card {
	background: var(--wp--preset--color--white); border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--cc-radius-lg); padding: clamp(1.25rem, 3vw, 2rem);
}
.cc-module-card > * { margin-block-start: 0; }
.cc-module-card__num { color: var(--wp--preset--color--violet); font-weight: 600; font-size: 1rem; margin-bottom: .25rem; }
.cc-module-card h3 { margin-bottom: .35rem; }
.cc-module-card__desc { color: var(--wp--preset--color--slate); margin-bottom: 1rem; }
.cc-module-card__list { list-style: none; padding: 0; margin: 0; }
.cc-module-card__list li {
	display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
	padding: .7rem 0; border-top: 1px solid var(--wp--preset--color--line); line-height: 1.4;
}
.cc-dur { color: var(--wp--preset--color--slate); font-size: 1rem; white-space: nowrap; }
@media (max-width: 600px) { .cc-module-grid { grid-template-columns: 1fr !important; } }

/* ---------- Checklists ---------- */
.cc-checklist { list-style: none; padding: 0; margin-top: 1.75rem; }
.cc-checklist li { position: relative; padding-left: 2.4rem; margin-bottom: 1rem; }
.cc-checklist li::before {
	content: ""; position: absolute; left: 0; top: .2em; width: 1.45rem; height: 1.45rem; border-radius: 50%;
	background: var(--wp--preset--color--violet) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M6 12.5l4 4 8-9'/></svg>") center / 70% no-repeat;
}
.cc-checklist--dark li::before { background-color: var(--wp--preset--color--lilac); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23161826' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M6 12.5l4 4 8-9'/></svg>"); }

/* ---------- Pricing ---------- */
.cc-pricing__grid { gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.cc-pricing a { color: var(--wp--preset--color--lilac); }
.cc-pricing h2 { max-width: 14ch; }
.cc-buy-card { border-radius: var(--cc-radius-lg); padding: clamp(1.25rem, 3vw, 2.25rem); }
.cc-buy-card a { color: var(--wp--preset--color--violet); }
.cc-buy-card .cc-buy { border: 0; padding: 0; margin: 0; max-width: none; }
.cc-buy-card a.cc-btn--primary { color: var(--wp--preset--color--white); }

/* ---------- FAQ ---------- */
.cc-faq .wp-block-details { margin-top: 0; }
.cc-faq .wp-block-details:first-of-type { border-top: 1px solid var(--wp--preset--color--line); margin-top: var(--wp--preset--spacing--40); }
.cc-faq summary {
	font-weight: 600; font-size: 1.25rem; cursor: pointer; list-style: none;
	display: flex; justify-content: space-between; gap: 1rem; align-items: center; min-height: 44px;
}
.cc-faq summary::-webkit-details-marker { display: none; }
.cc-faq summary::after {
	content: "+"; flex: 0 0 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center;
	background: var(--wp--preset--color--mist); color: var(--wp--preset--color--violet); font-size: 1.4rem; font-weight: 500;
}
.cc-faq details[open] summary::after { content: "\2212"; }
.cc-faq details > p { margin-top: .75rem; color: var(--wp--preset--color--ink); max-width: 62ch; }

/* ---------- About ---------- */
.cc-about p { max-width: 62ch; }

/* ---------- Footer ---------- */
.cc-site-footer { padding-top: var(--wp--preset--spacing--50); padding-bottom: var(--wp--preset--spacing--40); }
.cc-site-footer a { color: var(--wp--preset--color--haze); text-decoration: none; }
.cc-site-footer a:hover { color: var(--wp--preset--color--white); text-decoration: underline; }
.cc-logo--footer img { height: 32px; }
.cc-footer-links { list-style: none; padding: 0; margin: 0; }
.cc-footer-links li { padding: .3rem 0; }
.cc-site-footer__legal {
	border-top: 1px solid rgba(207, 211, 229, .2); padding-top: 1.5rem; margin-top: var(--wp--preset--spacing--50);
	color: #A6ABC2; max-width: var(--wp--style--global--wide-size); margin-left: auto !important; margin-right: auto !important;
}

/* ---------- Page bits ---------- */
.cc-draft-note { background: var(--wp--preset--color--mist); border-left: 4px solid var(--wp--preset--color--lavender); padding: 1rem 1.25rem; border-radius: 0 var(--cc-radius) var(--cc-radius) 0; }

/* ---------- Layout fixes ---------- */
/* No gaps between header, page and footer. */
.wp-site-blocks > * { margin-block-start: 0; }
/* Section text lines up with the wide grid's left edge instead of floating centred. */
.cc-section > :not(.alignwide):not(.alignfull) {
	margin-left: max(0px, calc((100% - var(--wp--style--global--wide-size)) / 2)) !important;
	margin-right: auto !important;
}
.cc-logo img { height: 40px; }
.cc-buy-card .cc-buy__title { font-size: 1.5rem; }
.cc-faq summary::after { line-height: 1; padding-bottom: .1em; }
@media (max-width: 600px) { .cc-logo img { height: 30px; } }
.wp-block-button__link { font-size: 1.125rem; }

/* ---------- Home: audiences ---------- */
.cc-audience-grid { margin-top: var(--wp--preset--spacing--50); gap: 1.25rem; }
.cc-audience-card {
	position: relative; border: 1px solid var(--wp--preset--color--line); border-radius: var(--cc-radius-lg);
	padding: clamp(1.25rem, 3vw, 2rem); background: var(--wp--preset--color--white);
	display: flex; flex-direction: column; transition: border-color .15s ease;
}
.cc-audience-card > * { margin-block-start: 0; }
.cc-audience-card h3 { margin-bottom: .5rem; }
.cc-audience-card h3 a { color: var(--wp--preset--color--ink); text-decoration: none; }
/* Whole card is clickable via the heading link. */
.cc-audience-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.cc-audience-card:hover, .cc-audience-card:focus-within { border-color: var(--wp--preset--color--violet); }
.cc-audience-card:hover h3 a { color: var(--wp--preset--color--violet); }
.cc-audience-card__meta { margin-top: auto; padding-top: 1rem; font-weight: 600; color: var(--wp--preset--color--violet); }
.cc-status {
	display: inline-block; align-self: flex-start; font-size: .9375rem; font-weight: 600;
	padding: .2rem .7rem; border-radius: 999px; margin-bottom: 1rem;
	background: var(--wp--preset--color--mist); color: var(--wp--preset--color--slate);
}
.cc-status--live { background: var(--wp--preset--color--violet); color: var(--wp--preset--color--white); }
.cc-audiences__more { margin-top: var(--wp--preset--spacing--40); }

/* ---------- Home: approach (dark) ---------- */
.cc-tasks--dark .wp-block-column { border-top-color: var(--wp--preset--color--lilac); }

/* ---------- Home: steps ---------- */
.cc-steps { list-style: none; counter-reset: step; padding: 0; margin-top: var(--wp--preset--spacing--40); }
.cc-steps li { counter-increment: step; position: relative; padding-left: 3.5rem; margin-bottom: 1.5rem; min-height: 2.5rem; }
.cc-steps li::before {
	content: counter(step); position: absolute; left: 0; top: 0; width: 2.5rem; height: 2.5rem; border-radius: 50%;
	display: grid; place-items: center; font-weight: 700; background: var(--wp--preset--color--mist); color: var(--wp--preset--color--violet);
	border: 2px solid var(--wp--preset--color--lavender);
}
.cc-muted { color: var(--wp--preset--color--slate); }

/* ---------- Coming-soon hero ---------- */
.cc-hero--simple > :not(.alignwide):not(.alignfull) {
	margin-left: max(0px, calc((100% - var(--wp--style--global--wide-size)) / 2)) !important;
	margin-right: auto !important;
}
.cc-hero--simple h1 { max-width: 18ch; }

/* Submenu */
.cc-site-header .wp-block-navigation__submenu-container { border: 1px solid var(--wp--preset--color--line) !important; border-radius: var(--cc-radius); padding: .5rem 0; min-width: 15rem !important; }
.cc-site-header .wp-block-navigation__submenu-container a { padding: .6rem 1.1rem !important; }
.cc-hero .cc-status:not(.cc-status--live) { background: var(--wp--preset--color--white); }
.cc-section > h2:not(:first-child) { margin-top: var(--wp--preset--spacing--50); }

/* ---------- Intake + testimonials ---------- */
.cc-hero .cc-places-badge { margin-top: 1.25rem; }
.cc-quote-grid { margin-top: var(--wp--preset--spacing--50); display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr)); }
.cc-quote-grid > * { margin: 0 !important; }
.cc-quote-card { max-width: 52rem; }
.cc-quote-card { border-radius: var(--cc-radius-lg); padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--wp--preset--color--line); display: flex; flex-direction: column; }
.cc-quote-card > * { margin-block-start: 0; }
.cc-quote-card__text { font-size: var(--wp--preset--font-size--large); line-height: 1.45; flex: 1; }
.cc-quote-card__text::before { content: "\201C"; display: block; font-size: 3rem; line-height: .8; color: var(--wp--preset--color--lavender); font-weight: 700; }
.cc-quote-card__who { margin-top: 1.25rem; margin-bottom: 0; color: var(--wp--preset--color--slate); font-size: 1rem; }
.cc-quote-card__who strong { color: var(--wp--preset--color--ink); }

/* ---------- Hero: richer example ---------- */
.cc-chat__files { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .6rem; }
.cc-chat__files span {
	font-size: .875rem; font-weight: 500; padding: .2rem .6rem; border-radius: 6px;
	background: var(--wp--preset--color--white); border: 1px solid var(--wp--preset--color--line); color: var(--wp--preset--color--slate);
}
.cc-chat__table { margin: 0 0 1rem; }
.cc-chat__table table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.4; }
.cc-chat__table th, .cc-chat__table td { border: 0; border-bottom: 1px solid var(--wp--preset--color--line); padding: .55rem .5rem .55rem 0; text-align: left; vertical-align: top; }
.cc-chat__table th { font-weight: 600; color: var(--wp--preset--color--slate); font-size: .875rem; }
.cc-chat__table td:nth-child(-n+2), .cc-chat__table th { white-space: nowrap; }
.cc-chat__table td:nth-child(2) { font-weight: 600; }
.cc-chat__table thead { border-bottom: 0; }
.cc-status--closed { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--white); }
.cc-audience-card .cc-places-badge { margin: 1rem 0 .5rem; font-size: .9375rem; padding: .25rem .7rem; }
