/**
 * ΜΙΝΩΑΣ — CSS για ό,τι δεν εκφράζεται με το theme.json.
 *
 * Χρώματα, γραμματοσειρές και αποστάσεις έρχονται από τα CSS variables του
 * theme.json (--wp--preset--*, --wp--custom--*). Εδώ μένουν: ο ρόμβος, οι
 * παραλλαγές κουμπιών, το μενού κινητού, οι κάρτες εκδηλώσεων και μερικά
 * responsive σημεία.
 */

/* --------------------------------------------------------------------------
 * Βάση
 * ----------------------------------------------------------------------- */

/* Οι ενότητες της σελίδας ακουμπούν η μία στην άλλη (ζώνες σε πλήρες πλάτος). */
body .wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* Σε κοντές σελίδες το υποσέλιδο μένει στο κάτω μέρος της οθόνης. */
.wp-site-blocks {
	display: flex;
	flex-direction: column;
	min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
}

.wp-site-blocks > main {
	flex-grow: 1;
}

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--wp--preset--color--card);
	clip-path: none;
	color: var(--wp--preset--color--wine-deep);
	display: block;
	font-size: 1rem;
	height: auto;
	left: 8px;
	padding: 12px 20px;
	text-decoration: none;
	top: 8px;
	width: auto;
	z-index: 100000;
}

/* Ορατό focus: σκούρο χρυσό σε ανοιχτό φόντο, ανοιχτό χρυσό σε σκούρο. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--gold-dark);
	outline-offset: 2px;
}

.is-style-section-dark :where(a, button, input, [tabindex]):focus-visible {
	outline-color: var(--wp--preset--color--gold-light);
}

/* Σε φόντο «άμμος» το σκούρο χρυσό σκουραίνει 6%, για αντίθεση ≥ 4.5:1 (4.21 → 4.63). */
.has-sand-background-color :is(.is-style-eyebrow:not(.has-text-color), a:where(:not(.wp-element-button))) {
	color: var(--wp--custom--color--gold-dark-on-sand);
}

/* --------------------------------------------------------------------------
 * Κουμπιά
 * ----------------------------------------------------------------------- */

.wp-block-button__link,
.wp-element-button {
	align-items: center;
	box-sizing: border-box;
	display: inline-flex;
	justify-content: center;
	min-height: 50px;
}

/* Μικρό κουμπί της κεφαλίδας (44px). */
.wp-block-button.minoas-button-small > .wp-block-button__link {
	font-size: 0.875rem;
	min-height: 44px;
	padding: 0 20px;
}

/* Μεγάλο κουμπί της ζώνης «Γίνε μέλος». */
.wp-block-button.minoas-button-large > .wp-block-button__link {
	min-height: 52px;
	padding: 0 32px;
}

/*
 * Outline: σε ανοιχτό φόντο σκούρο χρυσό περίγραμμα και μπορντό κείμενο,
 * σε σκούρο φόντο χρυσό περίγραμμα και ανοιχτό χρυσό κείμενο.
 * Το core βάζει color: currentColor με :not(.has-text-color), γι' αυτό τα ίδια selectors.
 */
.wp-block-button.is-style-outline > .wp-block-button__link {
	border: 1.5px solid var(--wp--preset--color--gold-dark);
	padding: calc(0.9rem - 1.5px) calc(1.75rem - 1.5px);
}

.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-text-color) {
	color: var(--wp--preset--color--wine-deep);
}

.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background) {
	background: transparent;
}

.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background):hover {
	background: rgba(138, 93, 28, 0.1);
}

.is-style-section-dark .wp-block-button.is-style-outline > .wp-block-button__link {
	border-color: var(--wp--preset--color--gold);
}

.is-style-section-dark .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-text-color) {
	color: var(--wp--preset--color--gold-light);
}

.is-style-section-dark .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background):hover {
	background: rgba(201, 151, 58, 0.16);
}

.is-style-section-dark .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-text-color):hover {
	color: var(--wp--preset--color--parchment);
}

.is-style-section-dark :where(.wp-element-button, .wp-block-button__link):focus-visible {
	outline-color: var(--wp--preset--color--gold-light);
}

/* --------------------------------------------------------------------------
 * Διαχωριστικό με ρόμβο (block style του Separator)
 * ----------------------------------------------------------------------- */

.wp-block-separator.is-style-diamond {
	--minoas-diamond: 9px;
	--minoas-diamond-gap: 12px;
	--minoas-diamond-color: currentColor;
	--minoas-diamond-line: calc(50% - (var(--minoas-diamond) + 3px) / 2 - var(--minoas-diamond-gap));

	background:
		linear-gradient(currentColor, currentColor) left center / var(--minoas-diamond-line) 1px no-repeat,
		linear-gradient(currentColor, currentColor) right center / var(--minoas-diamond-line) 1px no-repeat;
	border: 0;
	color: var(--wp--preset--color--gold-dark);
	height: calc(var(--minoas-diamond) + 3px);
	margin-left: auto;
	margin-right: auto;
	max-width: 100%;
	opacity: 1;
	overflow: visible;
	position: relative;
	width: 220px;
}

.wp-block-separator.is-style-diamond::before {
	border: 1.5px solid var(--minoas-diamond-color);
	box-sizing: content-box;
	content: "";
	height: var(--minoas-diamond);
	left: 50%;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%) rotate(45deg);
	width: var(--minoas-diamond);
}

.wp-block-separator.is-style-diamond:is(.alignwide, .alignfull, .minoas-separator-full) {
	width: 100%;
}

/* Σκούρα παραλλαγή (υποσέλιδο): γραμμές #5A1A1C, ρόμβος σκούρο χρυσό. */
.is-style-section-dark .wp-block-separator.is-style-diamond {
	--minoas-diamond: 7px;
	--minoas-diamond-color: var(--wp--preset--color--gold-dark);
	color: var(--wp--custom--color--line-dark);
}

/* --------------------------------------------------------------------------
 * Κεφαλίδα και μενού
 * ----------------------------------------------------------------------- */

.minoas-brand .wp-block-site-logo img,
.minoas-brand .custom-logo {
	height: 46px !important;
	width: auto !important;
}

.minoas-brand .wp-block-site-logo a {
	display: block;
}

.minoas-nav .wp-block-navigation-item__content {
	color: var(--wp--preset--color--parchment);
	padding-bottom: 10px;
	padding-top: 10px;
}

.minoas-nav .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--gold-light);
}

.minoas-nav .wp-block-navigation__responsive-container-open,
.minoas-nav .wp-block-navigation__responsive-container-close {
	color: var(--wp--preset--color--gold-light);
}

.minoas-nav .wp-block-navigation__responsive-container-open {
	align-items: center;
	border: 1px solid var(--wp--custom--color--line-dark);
	border-radius: var(--wp--custom--radius--button);
	height: 44px;
	justify-content: center;
	width: 44px;
}

.minoas-nav .wp-block-navigation__responsive-container-close {
	align-items: center;
	display: flex;
	height: 44px;
	justify-content: center;
	width: 44px;
}

/*
 * Το μενού χωράει σε μία γραμμή από τα ~1024px και πάνω. Πιο κάτω δείχνουμε το
 * hamburger (το core το δείχνει μόνο κάτω από 600px).
 */
@media (min-width: 600px) and (max-width: 1023.98px) {
	.minoas-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.minoas-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}

/* Το ανοιχτό μενού κινητού: μπορντό φόντο, links σε περγαμηνή, στοίχιση αριστερά. */
.minoas-nav .wp-block-navigation__responsive-container.is-menu-open {
	--navigation-layout-justification-setting: flex-start;
	--navigation-layout-justify: flex-start;
	padding: 20px 24px 32px;
}

.minoas-nav .is-menu-open .wp-block-navigation__responsive-container-content {
	gap: 4px;
	padding-top: 64px;
}

.minoas-nav .is-menu-open .wp-block-navigation-item {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.5rem;
}

.minoas-nav .is-menu-open .wp-block-navigation-item__content {
	padding-bottom: 8px;
	padding-top: 8px;
}

.minoas-nav .is-menu-open .minoas-nav__cta {
	font-family: var(--wp--preset--font-family--body);
	margin-top: 20px;
}

@media (max-width: 599.98px) {
	.minoas-brand .wp-block-site-logo img,
	.minoas-brand .custom-logo {
		height: 38px !important;
	}

	.minoas-brand {
		gap: 10px !important;
	}
}

/* --------------------------------------------------------------------------
 * Hero της αρχικής
 * ----------------------------------------------------------------------- */

/* Η κεφαλίδα μέσα στο Cover πιάνει όλο το πλάτος. */
.minoas-hero > .wp-block-cover__inner-container {
	width: 100%;
}

.minoas-hero__logo img {
	filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.6));
	height: auto;
	max-width: 100%;
}

/* Σε στενή οθόνη τα πρόσωπα πέφτουν πίσω από το κείμενο: συμπαγής σκίαση. */
@media (max-width: 900px) {
	.minoas-hero > .wp-block-cover__background.has-background-gradient {
		background: var(--wp--custom--color--hero-overlay-solid) !important;
	}
}

@media (max-width: 600px) {
	.minoas-hero__content {
		padding-top: 36px !important;
		padding-bottom: 56px !important;
	}

	.minoas-hero__buttons {
		align-self: stretch;
		flex-direction: column;
	}

	.minoas-hero__buttons > .wp-block-button,
	.minoas-hero__buttons > .wp-block-button > .wp-block-button__link {
		width: 100%;
	}
}

/* --------------------------------------------------------------------------
 * Εκδηλώσεις: κάρτες με κουτάκι ημερομηνίας
 * ----------------------------------------------------------------------- */

/*
 * Η κάρτα και το κουτάκι είναι Groups με flex layout. Το layout επαναλαμβάνεται
 * εδώ για τις προεπισκοπήσεις του Query Loop στον editor, που δεν το παίρνουν.
 */
.minoas-event-card {
	align-items: center;
	background: var(--wp--preset--color--card);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--card);
	box-sizing: border-box;
	display: flex;
	flex-wrap: nowrap;
	gap: 20px;
	height: 100%;
	padding: 22px;
}

.minoas-event-date,
.minoas-event-card__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.minoas-event-card .minoas-event-date {
	align-items: center;
	border-right: 1px solid var(--wp--preset--color--line);
	box-sizing: content-box;
	color: var(--wp--preset--color--wine-deep);
	flex: 0 0 auto;
	justify-content: center;
	padding-right: 18px;
	text-align: center;
	width: 64px;
}

.minoas-event-date--large {
	align-items: center;
	border-right: 1px solid var(--wp--preset--color--line);
	box-sizing: content-box;
	flex: 0 0 auto;
	padding-right: 24px;
	text-align: center;
	width: 88px;
}

.minoas-event-date .minoas-event-date__day {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 30px;
	line-height: 1;
	margin: 0;
	white-space: nowrap;
}

.minoas-event-date .minoas-event-date__month {
	color: var(--wp--preset--color--gold-dark);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
	line-height: 1.3;
	margin: 0;
}

.minoas-event-date--large .minoas-event-date__day {
	font-size: 46px;
}

.minoas-event-date--large .minoas-event-date__month {
	font-size: 14px;
}

.minoas-event-card__body {
	min-width: 0;
}

.minoas-event-card .minoas-event-card__title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.25rem;
	font-weight: 400;
	line-height: 1.3;
	margin: 0;
}

.minoas-event-card .minoas-event-card__title a {
	color: var(--wp--preset--color--wine-deep);
	font-weight: 400;
	text-decoration: none;
}

.minoas-event-card .minoas-event-card__title a:hover {
	color: var(--wp--preset--color--gold-dark);
	text-decoration: underline;
}

.minoas-event-meta {
	color: var(--wp--preset--color--ink-soft);
	font-size: 14px;
	line-height: 1.5;
	margin: 0;
}

.minoas-events__empty {
	background: rgba(255, 251, 244, 0.55);
	border: 1px dashed var(--wp--custom--color--placeholder-border);
	border-radius: var(--wp--custom--radius--card);
	color: var(--wp--preset--color--ink-soft);
	margin: 0;
	padding: 28px 24px;
	text-align: center;
}

@media (max-width: 600px) {
	.minoas-event-card {
		gap: 16px;
		padding: 18px;
	}

	.minoas-event-card .minoas-event-date {
		padding-right: 14px;
		width: 56px;
	}

	.minoas-event-date .minoas-event-date__day {
		font-size: 26px;
	}

	.minoas-event-date .minoas-event-date__month {
		font-size: 11px;
	}

	.minoas-event-card .minoas-event-card__title {
		font-size: 1.125rem;
	}

	.minoas-event-date--large {
		width: 64px;
	}

	.minoas-event-date--large .minoas-event-date__day {
		font-size: 34px;
	}
}

/* Σελίδα εκδήλωσης: αφίσα αριστερά, περιγραφή δεξιά. */
.minoas-event-header .minoas-event-meta {
	font-size: 1rem;
}

.minoas-event-body {
	align-items: flex-start;
}

.minoas-event-poster {
	flex: 0 1 360px;
	margin: 0;
}

.minoas-event-poster img {
	border: 1px solid var(--wp--preset--color--line);
	height: auto;
	width: 100%;
}

.minoas-event-content {
	flex: 1 1 420px;
	max-width: var(--wp--style--global--content-size);
	min-width: 0;
}

/* Το πλαίσιο «Πληροφορίες εκδήλωσης» του Local Events, στα χρώματα του theme
   (και χωρίς το dark mode του plugin, που δεν ταιριάζει στην περγαμηνή). */
body .le-details {
	--le-radius: var(--wp--custom--radius--card);
	--le-border: var(--wp--preset--color--line);
	--le-muted: var(--wp--preset--color--ink-soft);
	--le-accent: var(--wp--preset--color--gold-dark);
	--le-surface: var(--wp--preset--color--card);
	color: var(--wp--preset--color--ink-body);
}

body .le-details .le-details__title {
	color: var(--wp--preset--color--wine-deep);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 500;
}

body .le-details .le-details__item strong {
	color: var(--wp--preset--color--gold-dark);
	letter-spacing: 0.12em;
}

body .le-details .le-icon {
	color: var(--wp--preset--color--gold-dark);
}

body .le-details .le-details__terms a {
	background: var(--wp--preset--color--parchment);
	font-weight: 400;
}

/* Χωρίς χάρτη το πλαίσιο κλείνει με τη λίστα. */
body .le-details .le-details__list {
	margin-bottom: 0;
}

/* --------------------------------------------------------------------------
 * Νέα
 * ----------------------------------------------------------------------- */

.minoas-news-card .wp-block-post-featured-image {
	margin: 0;
}

.minoas-thumb-placeholder {
	align-items: center;
	background: var(--wp--preset--color--sand);
	border-radius: var(--wp--custom--radius--card);
	display: flex;
	justify-content: center;
	margin: 0;
}

.minoas-thumb-placeholder img {
	height: 40%;
	opacity: 0.22;
	width: auto;
}

.minoas-pagination {
	margin-top: 48px;
}

/* --------------------------------------------------------------------------
 * «Γίνε μέλος»
 * ----------------------------------------------------------------------- */

.minoas-join .minoas-join__inner {
	align-items: center;
}

.minoas-join .minoas-join__text {
	flex: 999 1 480px;
	min-width: 0;
}

.minoas-join__emblem {
	flex-shrink: 0;
	margin: 0;
}

.minoas-join__emblem img {
	height: 96px;
	width: auto;
}

.minoas-join__lead {
	max-width: 560px;
}

@media (max-width: 781px) {
	.minoas-join .minoas-join__inner,
	.minoas-join .minoas-join__text {
		flex-direction: column;
		justify-content: center;
		text-align: center;
	}

	.minoas-join .minoas-join__text {
		flex-basis: auto;
		gap: 16px;
	}

	.minoas-join .minoas-join__text > .wp-block-group {
		align-items: center;
	}

	.minoas-join__emblem img {
		height: 72px;
	}

	.minoas-join .minoas-join__buttons,
	.minoas-join .minoas-join__buttons > .wp-block-button,
	.minoas-join .minoas-join__buttons > .wp-block-button > .wp-block-button__link {
		width: 100%;
	}
}

/* --------------------------------------------------------------------------
 * Υποσέλιδο
 * ----------------------------------------------------------------------- */

.minoas-footer .minoas-footer__logo img,
.minoas-footer .custom-logo {
	height: 52px !important;
	width: auto !important;
}

.minoas-footer .minoas-copyright a {
	color: inherit;
	font-weight: 400;
}

/* --------------------------------------------------------------------------
 * Core blocks στις σελίδες περιεχομένου
 * ----------------------------------------------------------------------- */

.wp-block-list li::marker,
:where(.wp-block-post-content) :where(ul, ol) li::marker {
	color: var(--wp--preset--color--gold-dark);
}

.wp-block-table table {
	border-collapse: collapse;
	width: 100%;
}

.wp-block-table :where(th, td) {
	border: 1px solid var(--wp--preset--color--line);
	padding: 0.65em 0.9em;
	text-align: left;
}

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

.wp-block-table th {
	font-weight: 600;
}

/* Το email του συλλόγου είναι μακρύ: σε στενή κάρτα σπάει αντί να βγαίνει έξω. */
.is-style-card a[href^="mailto:"] {
	overflow-wrap: anywhere;
}

/* Στο πρόγραμμα μαθημάτων η ώρα («18:30–19:30») μένει σε μία γραμμή· το core σπάει τα κελιά οπουδήποτε. */
.minoas-schedule td:first-child {
	white-space: nowrap;
	word-break: normal;
}

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

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

.wp-block-file {
	align-items: center;
	background: var(--wp--preset--color--card);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--card);
	display: flex;
	flex-wrap: wrap;
	gap: 12px 20px;
	padding: 14px 18px;
}

.wp-block-file .wp-block-file__button {
	margin-left: auto;
	min-height: 44px;
	padding: 0 20px;
}

.wp-block-gallery figcaption.wp-element-caption,
.wp-block-image figcaption.wp-element-caption {
	margin-top: 0.5em;
}

.wp-block-embed {
	margin-left: 0;
	margin-right: 0;
}

.wp-block-embed iframe {
	border-radius: var(--wp--custom--radius--card);
}

.wp-block-search__inside-wrapper {
	gap: 8px;
}

.wp-block-search__input {
	background: var(--wp--preset--color--card);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--button);
	color: var(--wp--preset--color--wine-deep);
	font: inherit;
	min-height: 50px;
	padding: 0 14px;
}

.wp-block-search__input:focus {
	border-color: var(--wp--preset--color--gold);
	outline: 2px solid var(--wp--preset--color--gold);
	outline-offset: 0;
}

.wp-block-post-navigation-link a {
	text-decoration: none;
}
