/*
Theme Name: Lyceum
Theme URI: https://tenfoldthemes.example/lyceum
Author: Tenfold Themes
Author URI: https://tenfoldthemes.example
Description: A stationery-modern block theme for career academies, training institutes and course providers — ruled-paper heroes, marigold highlighter swipes, sticky-note course chips, circled-number curricula and index-tab labels, with 17 patterns, four full-page layouts, a Night Study dark style and locally hosted Literata & Figtree fonts.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lyceum
Tags: block-theme, full-site-editing, block-patterns, block-styles, custom-colors, editor-style, featured-images, threaded-comments, translation-ready, wide-blocks, one-column, education, blog, portfolio
*/

/* ---------------------------------------------------------------------------
 * Focus visibility & motion
 * ------------------------------------------------------------------------- */

:where(a, button, input, summary, textarea, select, [tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
	border-radius: 3px;
}

::selection {
	background: var(--wp--preset--color--accent);
	color: #20263f;
}

a,
.wp-block-button__link,
.wp-element-button {
	transition: var(--wp--custom--transition);
}

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

/* ---------------------------------------------------------------------------
 * Block style: Group — Index card / Index card (hover lift)
 * A ruled index card: hairline border with a marigold rule pinned to the top.
 * ------------------------------------------------------------------------- */

.wp-block-group.is-style-card,
.wp-block-group.is-style-card-hover {
	position: relative;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--m);
	box-shadow: var(--wp--preset--shadow--card);
	padding: var(--wp--preset--spacing--40);
	overflow: hidden;
}

.wp-block-group.is-style-card::before,
.wp-block-group.is-style-card-hover::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: var(--wp--preset--color--accent);
}

.wp-block-group.is-style-card-hover {
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.wp-block-group.is-style-card-hover:hover {
	border-color: var(--wp--preset--color--primary);
	box-shadow: var(--wp--preset--shadow--lift);
	transform: translateY(-4px);
}

/* ---------------------------------------------------------------------------
 * Block style: Group — Sticky note
 * A slightly rotated course chip with a folded marigold corner, like a
 * sticky note pressed onto the page.
 * ------------------------------------------------------------------------- */

.wp-block-group.is-style-stickynote {
	position: relative;
	background: var(--wp--preset--color--tint);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 2px;
	box-shadow: var(--wp--preset--shadow--card);
	padding: var(--wp--preset--spacing--40);
	transform: rotate(-1.1deg);
}

.wp-block-group.is-style-stickynote:nth-of-type(even) {
	transform: rotate(1deg);
}

.wp-block-group.is-style-stickynote::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 26px;
	height: 26px;
	background: linear-gradient(135deg, var(--wp--preset--color--accent) 0 50%, transparent 50%);
}

/* ---------------------------------------------------------------------------
 * Block style: Group — Index tab
 * A small tab protruding above a section, like the tab on a file divider.
 * Marigold stock with pinned ink text so it holds in every variation.
 * ------------------------------------------------------------------------- */

.wp-block-group.is-style-indextab {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	width: fit-content;
	background: var(--wp--preset--color--accent);
	color: #20263f;
	padding: 0.35em 1.1em 0.4em;
	border-radius: 7px 7px 0 0;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.8125rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	line-height: 1.1;
}

.wp-block-group.is-style-indextab * {
	color: #20263f;
}

/* ---------------------------------------------------------------------------
 * Block style: List — Circled numbers
 * Ordered lists get a circled ink numeral in place of the default marker.
 * ------------------------------------------------------------------------- */

ol.is-style-circled {
	list-style: none;
	counter-reset: circled;
	padding-left: 0;
}

ol.is-style-circled > li {
	counter-increment: circled;
	position: relative;
	padding-left: 3rem;
	margin-bottom: 1rem;
	min-height: 2rem;
}

ol.is-style-circled > li::before {
	content: counter(circled);
	position: absolute;
	left: 0;
	top: 0.05em;
	width: 2rem;
	height: 2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid var(--wp--preset--color--primary);
	border-radius: 999px;
	color: var(--wp--preset--color--primary);
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: 0.95rem;
	line-height: 1;
}

/* ---------------------------------------------------------------------------
 * Block style: Separator — Ruled line
 * A dashed notebook rule instead of a solid divider.
 * ------------------------------------------------------------------------- */

hr.wp-block-separator.is-style-ruled {
	border: none;
	height: 0;
	max-width: none;
	width: 100%;
	border-top: 2px dashed var(--wp--preset--color--border);
	opacity: 1;
}

/* ---------------------------------------------------------------------------
 * Highlighter swipe — marigold sweep behind a key word (hand-drawn SVG)
 * ------------------------------------------------------------------------- */

.lyceum-hl {
	color: #20263f;
	background-image: url('assets/images/highlighter-swipe.svg');
	background-repeat: no-repeat;
	background-position: center 58%;
	background-size: 104% 1.02em;
	padding: 0 0.12em;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

/* Margin annotation — enrollment figures set like pencil notes in the margin */
.lyceum-note {
	position: relative;
	padding-left: 1rem;
}

.lyceum-note::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.15em;
	bottom: 0.15em;
	width: 3px;
	border-radius: 2px;
	background: #b23a2e;
}

/* ---------------------------------------------------------------------------
 * Quote — red margin line (fountain-pen correction rule)
 * ------------------------------------------------------------------------- */

.wp-block-quote {
	border-radius: 0 var(--wp--custom--radius--m) var(--wp--custom--radius--m) 0;
}

/* ---------------------------------------------------------------------------
 * Details / FAQ affordance — curriculum accordion
 * ------------------------------------------------------------------------- */

.wp-block-details summary {
	cursor: pointer;
	list-style: none;
	position: relative;
	padding-right: 2rem;
}

.wp-block-details summary::-webkit-details-marker {
	display: none;
}

.wp-block-details summary::after {
	content: "+";
	position: absolute;
	right: 0.25rem;
	top: 50%;
	transform: translateY(-50%);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.4em;
	font-weight: 600;
	line-height: 1;
	color: var(--wp--preset--color--primary);
	transition: transform 0.2s ease;
}

.wp-block-details[open] summary::after {
	content: "\2212";
}

.wp-block-details > :not(summary) {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 400;
	color: var(--wp--preset--color--contrast-2);
}

/* ---------------------------------------------------------------------------
 * Tables — cohort schedules & tuition tiers
 * ------------------------------------------------------------------------- */

.wp-block-table thead {
	border-bottom: 2px solid var(--wp--preset--color--contrast);
}

.wp-block-table th {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-size: 0.8125rem;
}

.wp-block-table td,
.wp-block-table th {
	border-color: var(--wp--preset--color--border);
}

/* ---------------------------------------------------------------------------
 * Small refinements
 * ------------------------------------------------------------------------- */

.wp-block-navigation .current-menu-item > a {
	color: var(--wp--preset--color--primary);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	border-width: 1.5px;
}

.wp-block-image img {
	height: auto;
	max-width: 100%;
}
