/*
Theme Name: AriEdu
Theme URI: https://arihub.com/ariedu/
Author: AriHub
Author URI: https://arihub.com/
Description: AriEdu is a friendly, accessible block theme for course creators, online academies, schools and tutors. A course catalogue with course cards, topics and a search hero, a single course page with what you will learn, a box with the price and an Enrol button, and a curriculum of modules that open to show their lessons. A lesson layout with a progress bar, key points and buttons to the next lesson. Teachers, a learning path, pricing plans, certificates, learner quotes and questions, plus admissions steps, term dates, subjects and a school hero for schools. When Tutor LMS, LearnPress, LifterLMS or Sensei LMS is active, AriEdu hands it the theme's colours, fonts and button shapes, in every style variation. Starter pages for a course creator home, a school home, courses, one course, a lesson, about, pricing and contact. Six style variations including a dark style and a Large text style, Lexend and Nunito Sans stored in the theme, and no requests to other servers.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ariedu
Tags: education, blog, one-column, wide-blocks, accessibility-ready, block-patterns, block-styles, custom-colors, custom-logo, custom-menu, editor-style, featured-images, full-site-editing, style-variations, template-editing, threaded-comments, translation-ready

AriEdu, Copyright 2026 AriHub.
AriEdu is distributed under the terms of the GNU GPL v2 or later.
*/

/*
 * Most styles live in theme.json. This file holds only what theme.json cannot express yet.
 */

/* Keep focus visible for keyboard users everywhere. */
:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 3px solid var(--wp--preset--color--contrast);
	outline-offset: 2px;
}

.has-inverse-background-color :where(a, button, input, select, textarea, summary):focus-visible,
.has-accent-background-color :where(a, button, input, select, textarea, summary):focus-visible,
.wp-block-cover :where(a, button):focus-visible {
	outline-color: var(--wp--preset--color--on-inverse);
}

/* Text for screen readers only; it appears when focused (the skip link). */
.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--wp--preset--color--base);
	border-radius: var(--wp--custom--radius--small);
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip-path: none;
	color: var(--wp--preset--color--contrast);
	display: block;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Long words and URLs wrap instead of pushing the page sideways. */
:where(.wp-block-post-content, .wp-block-post-title, .wp-block-heading, .wp-block-post-excerpt, .wp-block-comment-content, .wp-block-query-title, .wp-block-site-title) {
	overflow-wrap: break-word;
}

/* Preformatted text wraps long lines, so there is no scroll box a keyboard cannot reach. */
pre {
	max-width: 100%;
	overflow-wrap: anywhere;
	white-space: pre-wrap;
}

img,
video,
iframe {
	max-width: 100%;
	height: auto;
}

/* Old caption shortcodes set a fixed width; keep them inside the screen. */
.wp-caption {
	max-width: 100%;
}

/* Links in running text are underlined with a little room, so they are easy to spot. */
:where(.wp-block-post-content, .entry-content) a:not(.wp-element-button) {
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

/* Card: a bordered, rounded panel for courses, plans and people. */
.is-style-ariedu-card {
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--medium);
	padding: var(--wp--preset--spacing--50);
}

.wp-block-column > .is-style-ariedu-card:only-child {
	box-sizing: border-box;
	height: 100%;
}

.is-style-ariedu-card.has-background {
	border-color: transparent;
}

/* Eyebrow: a short label above a heading. */
.is-style-ariedu-eyebrow {
	color: var(--wp--preset--color--accent);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--x-small) !important;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.4;
	text-transform: uppercase;
}

/* Badge: a small pill for specialties, languages and labels. */
.is-style-ariedu-badge {
	background-color: var(--wp--preset--color--accent-soft);
	border-radius: 999px;
	color: var(--wp--preset--color--contrast);
	display: inline-block;
	font-size: var(--wp--preset--font-size--x-small) !important;
	font-weight: 700;
	line-height: 1.4;
	padding: 0.3em 0.85em;
}

.has-text-align-center.is-style-ariedu-badge {
	display: table;
	margin-left: auto !important;
	margin-right: auto !important;
}

/* Notice: a highlighted panel for urgent or important information. */
.is-style-ariedu-notice {
	background-color: var(--wp--preset--color--accent-soft);
	border-left: 6px solid var(--wp--preset--color--accent);
	border-radius: var(--wp--custom--radius--small);
	color: var(--wp--preset--color--contrast);
	padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50);
}

.is-style-ariedu-notice > * {
	margin-block: 0;
}

.is-style-ariedu-notice > * + * {
	margin-block-start: 0.5em;
}

/* Row with line: label and value on one line, with a hairline below (opening hours, facts). */
.is-style-ariedu-rows {
	border-bottom: 1px solid var(--wp--preset--color--line);
	gap: var(--wp--preset--spacing--40) !important;
	padding-block: var(--wp--preset--spacing--20);
}

.is-style-ariedu-rows > * {
	margin-block: 0;
}

.has-inverse-background-color .is-style-ariedu-rows {
	border-color: currentcolor;
}

/* Dotted line: a lesson or item, a dotted line, its length or price. */
.is-style-ariedu-leader {
	align-items: baseline !important;
	gap: 0.5em !important;
}

.is-style-ariedu-leader > * {
	margin-block: 0;
}

.is-style-ariedu-leader > :first-child {
	min-width: 0;
	order: 0;
}

.is-style-ariedu-leader::after {
	border-bottom: 2px dotted currentcolor;
	content: "";
	flex: 1 1 1.5em;
	min-width: 1.5em;
	opacity: 0.45;
	order: 1;
	transform: translateY(-0.3em);
}

.is-style-ariedu-leader > :last-child {
	order: 2;
}

.ariedu-item {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
}

.ariedu-amount {
	font-family: var(--wp--preset--font-family--heading);
	font-variant-numeric: lining-nums tabular-nums;
	font-weight: 700;
	white-space: nowrap;
}

.ariedu-amount-item {
	break-inside: avoid;
}

.ariedu-amount-item > .has-small-font-size {
	margin-top: 0.25em;
}

/* Checklist: list items with a tick instead of a bullet. */
.is-style-ariedu-checklist {
	list-style: none;
	padding-left: 0 !important;
}

.is-style-ariedu-checklist li {
	padding-left: 1.9em;
	position: relative;
}

.is-style-ariedu-checklist li + li {
	margin-top: 0.5em;
}

.is-style-ariedu-checklist li::before {
	border-bottom: 3px solid var(--wp--preset--color--accent);
	border-left: 3px solid var(--wp--preset--color--accent);
	content: "";
	height: 0.4em;
	left: 0.2em;
	position: absolute;
	top: 0.45em;
	transform: rotate(-45deg);
	width: 0.85em;
}

.has-inverse-background-color .is-style-ariedu-checklist li::before,
.has-accent-background-color .is-style-ariedu-checklist li::before {
	border-color: currentcolor;
}

/* Icons: a soft circle behind each service icon. */
.ariedu-icon {
	align-items: center;
	background-color: var(--wp--preset--color--accent-soft);
	border-radius: 50%;
	display: flex;
	height: 3.5rem;
	justify-content: center;
	margin: 0;
	width: 3.5rem;
}

.ariedu-icon img {
	filter: var(--wp--custom--icon-filter, none);
	height: 1.75rem;
	width: 1.75rem;
}

/* Numbered steps for the first-visit guide. */
.ariedu-step-num {
	align-items: center;
	background-color: var(--wp--preset--color--accent);
	border-radius: 50%;
	color: var(--wp--preset--color--on-accent);
	display: flex;
	flex: none;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	height: 2.5rem;
	justify-content: center;
	line-height: 1;
	margin: 0;
	width: 2.5rem;
}

/* Big figures in the facts band. */
.ariedu-figure {
	font-family: var(--wp--preset--font-family--heading);
	font-variant-numeric: lining-nums;
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1;
}

/* A short quote, set in the heading font. */
.ariedu-quote {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.3;
}

/* Portraits: rounded, same shape for every person. */
.ariedu-portrait img {
	aspect-ratio: 4 / 5;
	border-radius: var(--wp--custom--radius--medium);
	object-fit: cover;
	width: 100%;
}

@media (max-width: 599px) {
	.ariedu-hide-small {
		display: none;
	}
}

/* Text on accent bands follows the band's own text colour. */
.has-accent-background-color :where(h1, h2, h3, h4, h5, h6, .wp-block-heading, .is-style-ariedu-eyebrow) {
	color: inherit;
}

.has-accent-background-color .has-muted-color {
	color: inherit !important;
}

/* Buttons on accent bands swap to the band's text colour so they stay visible. */
.has-accent-background-color .wp-block-button:not(.is-style-outline) > .wp-element-button {
	background-color: var(--wp--preset--color--on-accent);
	color: var(--wp--preset--color--accent);
}

.has-accent-background-color .wp-block-button.is-style-outline > .wp-element-button,
.has-inverse-background-color .wp-block-button.is-style-outline > .wp-element-button,
.wp-block-cover .wp-block-button.is-style-outline > .wp-element-button {
	color: inherit;
}

/* Buttons on dark bands use the light text colour, so they read in every style. */
.has-inverse-background-color .wp-block-button:not(.is-style-outline) > .wp-element-button {
	background-color: var(--wp--preset--color--on-inverse);
	color: var(--wp--preset--color--inverse);
}

/* Text and links on dark bands follow the band's own colours. */
.has-inverse-background-color :where(h1, h2, h3, h4, h5, h6, .wp-block-heading, .is-style-ariedu-eyebrow),
.wp-block-cover .is-style-ariedu-eyebrow {
	color: inherit;
}

.wp-block-cover :where(a:not(.wp-element-button)),
.has-inverse-background-color :where(a:not(.wp-element-button)),
.has-accent-background-color :where(a:not(.wp-element-button)) {
	color: inherit;
}

.has-inverse-background-color .has-muted-color {
	color: inherit !important;
}

.has-inverse-background-color .is-style-ariedu-badge {
	background-color: transparent;
	border: 1px solid currentcolor;
	color: inherit;
}

/* Tables: a clear header row and striped rows. */
.wp-block-table thead {
	border-bottom: 2px solid var(--wp--preset--color--line);
}

.wp-block-table th {
	font-size: var(--wp--preset--font-size--x-small);
	text-align: left;
}

.wp-block-table td,
.wp-block-table th {
	border-color: var(--wp--preset--color--line);
	padding: 0.75em 1em;
}

.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
	background-color: var(--wp--preset--color--surface);
}

.wp-block-table.is-style-stripes {
	border-bottom: 0;
}

@media (max-width: 599px) {
	.wp-block-table td,
	.wp-block-table th {
		padding: 0.6em 0.4em;
	}

	.wp-block-table td {
		font-size: var(--wp--preset--font-size--x-small);
	}
}

/* Header: stays visible while scrolling on wide screens. */
@media (min-width: 782px) {
	.ariedu-sticky {
		position: sticky;
		top: 0;
		z-index: 20;
	}

	.admin-bar .ariedu-sticky {
		top: var(--wp-admin--admin-bar--height, 32px);
	}
}

/* The site footer sits flush under the last section. */
.wp-site-blocks > footer:last-child,
.wp-site-blocks > .wp-block-template-part:last-child {
	margin-block-start: 0;
}

.wp-block-query-pagination-numbers .page-numbers {
	padding: 0 0.375em;
}

/* FAQ: a plus and minus marker on each question. */
.wp-block-details summary {
	cursor: pointer;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
	list-style: none;
	padding-right: 2rem;
	position: relative;
}

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

.wp-block-details summary::after {
	color: var(--wp--preset--color--accent);
	content: "+";
	font-size: 1.4em;
	line-height: 1;
	position: absolute;
	right: 0;
	top: -0.1em;
}

.has-inverse-background-color .wp-block-details summary::after {
	color: inherit;
}

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

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

/* Small date and author links stay easy to tap (at least 24px tall). */
:where(.wp-block-post-date, .wp-block-comment-date, .wp-block-post-author-name, .wp-block-comment-author-name) a {
	align-items: center;
	display: inline-flex;
	min-height: 24px;
}

/* The header button is a little smaller than buttons in the page. */
header .wp-block-buttons .wp-element-button {
	padding: 0.65rem 1.1rem;
	white-space: nowrap;
}

header .wp-block-buttons {
	flex-shrink: 0;
}

/* Linked course titles in cards and lists. */
.wp-block-heading a:where(:not(.wp-element-button)) {
	text-decoration: none;
}

.wp-block-heading a:where(:not(.wp-element-button)):hover,
.wp-block-heading a:where(:not(.wp-element-button)):focus-visible {
	text-decoration: underline;
}

/* Full-width photos run edge to edge without rounded corners. */
.wp-block-cover.alignfull {
	border-radius: 0;
}

/* Previous and next post links wrap long titles instead of pushing the page sideways. */
.wp-block-post-navigation-link {
	min-width: 0;
	overflow-wrap: anywhere;
}

/* Progress bar: a Columns block whose first column is the part raised. Change the first
 * column's width (a percentage) in the block settings; the figures beside it say the same in words. */
.wp-block-columns.is-style-ariedu-progress {
	background-color: var(--wp--preset--color--line);
	border-radius: 999px;
	flex-wrap: nowrap !important;
	gap: 0 !important;
	height: 0.875rem;
	margin-block: 0;
	overflow: hidden;
}

.wp-block-columns.is-style-ariedu-progress > .wp-block-column {
	flex-grow: 0;
	margin: 0;
	min-height: 100%;
}

.wp-block-columns.is-style-ariedu-progress > .wp-block-column:first-child {
	background-color: var(--wp--preset--color--accent);
	border-radius: 999px;
}

.wp-block-columns.is-style-ariedu-progress > .wp-block-column:last-child {
	flex-grow: 1;
}

.has-inverse-background-color .wp-block-columns.is-style-ariedu-progress,
.has-accent-background-color .wp-block-columns.is-style-ariedu-progress {
	background-color: color-mix(in srgb, currentcolor 25%, transparent);
}

.has-accent-background-color .wp-block-columns.is-style-ariedu-progress > .wp-block-column:first-child {
	background-color: var(--wp--preset--color--on-accent);
}

/* Figures in a row, such as lessons, hours and rating. */
.ariedu-stat {
	font-family: var(--wp--preset--font-family--heading);
	font-variant-numeric: lining-nums tabular-nums;
	font-weight: 600;
	line-height: 1.1;
}

/* Date badge for events. */
.ariedu-date {
	background-color: var(--wp--preset--color--accent-soft);
	border-radius: var(--wp--custom--radius--medium);
	color: var(--wp--preset--color--contrast);
	flex: none;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	line-height: 1.1;
	min-width: 4.5rem;
	padding: 0.6rem 0.75rem;
	text-align: center;
}

/* Year in the history list. */
.ariedu-year {
	flex: none;
	font-family: var(--wp--preset--font-family--heading);
	font-variant-numeric: lining-nums tabular-nums;
	font-weight: 600;
	min-width: 4.5rem;
}

/* Course prices. */
.ariedu-price {
	font-family: var(--wp--preset--font-family--heading);
	font-variant-numeric: lining-nums tabular-nums;
	font-weight: 650;
	letter-spacing: -0.02em;
	line-height: 1.1;
}

/* A small label inside a line of text, such as "Free preview". */
.ariedu-tag {
	background-color: var(--wp--preset--color--accent-soft);
	border-radius: 999px;
	color: var(--wp--preset--color--contrast);
	display: inline-block;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	line-height: 1.4;
	margin-inline-start: 0.4em;
	padding: 0.1em 0.6em;
	white-space: nowrap;
}

/* Curriculum: each module is a Details block holding its lessons. */
.wp-block-details.ariedu-module {
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--medium);
	padding: 1rem 1.25rem;
}

.wp-block-details.ariedu-module summary::after {
	right: 0;
}

.wp-block-details.ariedu-module[open] summary {
	margin-bottom: 0.75rem;
}

.ariedu-module .ariedu-item {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 400;
}

.ariedu-module .is-style-ariedu-leader + .is-style-ariedu-leader {
	margin-top: 0.5rem;
}

/* The large course search in the search hero. */
.ariedu-hero-search .wp-block-search__input {
	border-radius: var(--wp--custom--radius--small);
	font-size: var(--wp--preset--font-size--medium);
	min-height: 3.25rem;
	padding-inline: 1rem;
}

/* The course box under posts is for blog posts, not for the lessons and courses of an LMS plugin. */
body:not(.single-post) .ariedu-article-note {
	display: none;
}
