/*
Theme Name: Χώρος 2510
Theme URI: https://xwros2510.gr
Author: Χώρος 2510
Description: Ελαφρύ block θέμα για τον συνεργατικό Χώρο 2510. Χωρίς page builder, με εγγενή Gutenberg blocks.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.0
License: GPLv2 or later
Text Domain: xwros2510
*/

:root {
	--x-ink: #17213A;
	--x-muted: #4B5568;
	--x-bg: #F4F6F8;
	--x-accent: #D42A35;
	--x-accent-dark: #A3202A;
	--x-accent-soft: #FDECEC;
	--x-night: #1F3F66;
	--x-slot: #EEF2F6;
	--x-line: #CBD5E1;
	--x-shadow: 0 8px 28px rgba(23, 33, 58, 0.08);
	--x-section: clamp(72px, 9vw, 132px);
}

html { scroll-behavior: smooth; scroll-padding-top: 110px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--x-accent); outline-offset: 3px; }
.x-main { padding-bottom: var(--x-section); }

/* Header */
.x-site-header { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 50; }
.x-header { padding-top: 16px; padding-bottom: 8px; }
.x-header__bar { background: #fff; border-radius: 999px; padding: 10px 10px 10px 28px; box-shadow: var(--x-shadow); gap: 20px; }
.x-header .wp-block-site-logo img { height: 28px; width: auto; }
.x-header .wp-block-navigation { gap: 22px; }
.x-header .wp-block-navigation-item__content { text-decoration: none; padding: 8px 0; }
.x-header .wp-block-navigation-item__content:hover,
.x-header .current-menu-item > .wp-block-navigation-item__content { color: var(--x-accent); }
.x-header__actions { gap: 4px; }
.x-header__cta .wp-block-button__link { padding: 13px 22px; font-size: 0.9375rem; white-space: nowrap; }
.x-header .wp-block-navigation__responsive-container.is-menu-open { padding: 28px clamp(16px, 4vw, 56px); background: var(--x-bg); }
.x-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1.5rem; font-weight: 700; padding: 6px 0; }
.x-header .wp-block-navigation__responsive-container-open,
.x-header .wp-block-navigation__responsive-container-close { width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 999px; background: var(--x-slot); }
.x-header .wp-block-navigation__responsive-container-close { display: flex; }
@media (min-width: 600px) and (max-width: 1139px) {
	.x-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.x-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
@media (max-width: 1139px) { .x-header .x-social { display: none; } }
@media (max-width: 599px) {
	.x-header .x-header__bar { padding-left: 18px; }
	.x-header .x-header__actions { display: none; }
	/* Close button lands exactly where the menu button sits in the pill. */
	.x-header .wp-block-navigation__responsive-container.is-menu-open { padding: 26px calc(clamp(16px, 4vw, 56px) + 10px); }
	.x-chips { flex-wrap: nowrap; overflow-x: auto; margin-left: calc(-1 * clamp(16px, 4vw, 56px)); margin-right: calc(-1 * clamp(16px, 4vw, 56px)); padding: 0 clamp(16px, 4vw, 56px) 6px; scrollbar-width: none; }
	.x-chips::-webkit-scrollbar { display: none; }
	.x-chip { flex-shrink: 0; }
	.x-lessons__track { margin-right: calc(-1 * clamp(16px, 4vw, 56px)); padding-right: clamp(16px, 4vw, 56px); }
	.x-card { flex-basis: 78vw; max-width: 300px; }
}

/* Generic sections */
.x-section { margin-top: var(--x-section) !important; }
.x-section__head { gap: 20px; margin-bottom: 28px; }
.x-section__head > * { margin: 0; }
.x-section__head h2 { margin: 0; }
.x-lead { font-size: 1.1875rem; line-height: 1.6; color: var(--x-muted); max-width: 46ch; }
.x-sub { font-size: 1.125rem; line-height: 1.55; color: var(--x-muted); max-width: 60ch; margin-top: 12px !important; }
.x-more a { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.x-more a::after { content: "→"; transition: transform 0.2s ease; }
.x-more a:hover::after { transform: translateX(3px); }
.x-empty { color: var(--x-muted); font-size: 1.0625rem; }
.x-kicker { color: var(--x-muted); font-weight: 600; font-size: 0.875rem; }
.x-page-head { padding-top: clamp(40px, 6vw, 84px); padding-bottom: 8px; }
.x-page-head h1 { margin: 0; }
.x-page-head .x-lead { margin-top: 18px; }
.x-page-image { margin-top: 32px !important; }
.x-page-image img { max-height: 560px; object-fit: cover; }
.x-prose { margin-top: 40px !important; }
.x-prose > p, .x-prose > ul, .x-prose > ol { font-size: 1.125rem; }
.wp-block-image img { border-radius: 28px; }

/* Buttons */
.wp-block-button.is-style-outline > .wp-block-button__link:hover { border-color: var(--x-ink); background: #fff; color: var(--x-ink); }
.x-btn-dark .wp-block-button__link { background: var(--x-ink); }
.x-btn-dark .wp-block-button__link:hover { background: #0E1528; }
.x-btn, #loginform #wp-submit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--x-accent); color: #fff; border: 0; border-radius: 999px; padding: 14px 24px; font: inherit; font-weight: 700; font-size: 1rem; line-height: 1; text-decoration: none; cursor: pointer; }
.x-btn:hover, #loginform #wp-submit:hover { background: var(--x-accent-dark); color: #fff; }
.x-btn--secondary { background: #fff; color: var(--x-ink); border: 1px solid var(--x-line); }
.x-btn--secondary:hover { background: #fff; color: var(--x-ink); border-color: var(--x-ink); }
.x-btn--small { padding: 10px 16px; font-size: 0.9375rem; }
.x-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--x-ink); text-decoration: underline; cursor: pointer; }
.x-link--danger { color: var(--x-accent-dark); }

/* Hero */
.x-hero { gap: clamp(36px, 5vw, 72px) !important; padding-top: clamp(40px, 6vw, 84px); }
.x-hero__text { flex: 1 1 540px; max-width: 620px; }
.x-hero__text h1 { margin: 0; font-size: clamp(2.5rem, 4.3vw, 4rem); }
.x-hero__text > * + * { margin-top: 26px !important; }
.x-collage { flex: 999 1 520px; min-width: 0; position: relative; height: clamp(400px, 42vw, 600px); }
.x-collage > .wp-block-image { position: absolute; margin: 0 !important; }
.x-collage > .wp-block-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 28px; }
.x-collage > .wp-block-image:nth-child(1) { left: 0; top: 0; width: 52%; height: 88%; }
.x-collage > .wp-block-image:nth-child(2) { right: 0; top: 6%; width: 50%; height: 46%; }
.x-collage > .wp-block-image:nth-child(3) { right: 6%; bottom: 0; width: 46%; height: 46%; }
.x-collage > .wp-block-image:nth-child(2) img,
.x-collage > .wp-block-image:nth-child(3) img { border: 6px solid var(--x-bg); box-sizing: border-box; }
.x-collage > .x-collage__sticker { left: 42%; top: 64%; width: 124px; height: 124px; border-radius: 999px; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(23, 33, 58, 0.14); transform: rotate(-12deg); }
.x-collage > .x-collage__sticker img { width: 84px; height: 84px; border-radius: 0; object-fit: contain; }
@media (max-width: 599px) {
	.x-collage { height: min(112vw, 460px); }
	.x-collage > .x-collage__sticker { width: 92px; height: 92px; }
	.x-collage > .x-collage__sticker img { width: 60px; height: 60px; }
}

/* Chips and lesson cards */
.x-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.x-chip, .x-tab { font-size: 0.9375rem; font-weight: 600; line-height: 1.1; border-radius: 999px; padding: 12px 20px; border: 1px solid var(--x-line); background: #fff; color: var(--x-ink); text-decoration: none; }
.x-chip:hover, .x-tab:hover { border-color: var(--x-ink); color: var(--x-ink); }
.x-chip.is-active, .x-tab.is-active { background: var(--x-ink); border-color: var(--x-ink); color: #fff; }
.x-lessons__track { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 14px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.x-lessons--grid .x-lessons__track { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); overflow: visible; padding-bottom: 0; }
.x-card { flex: 0 0 272px; scroll-snap-align: start; display: flex; flex-direction: column; background: #fff; border-radius: 24px; overflow: hidden; color: var(--x-ink); text-decoration: none; transition: transform 0.2s ease; }
.x-card[hidden] { display: none; }
.x-card:hover { color: var(--x-ink); transform: translateY(-3px); }
.x-card__img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 0 !important; }
.x-card__img--empty, .x-event-main__img--empty { background: var(--x-accent-soft) url(assets/img/spiral.png) center / 34% no-repeat; }
.x-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.x-card__cat { font-size: 0.8125rem; font-weight: 700; color: var(--x-accent); }
.x-card__title { font-size: 1.25rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.x-card__meta { font-size: 0.9375rem; line-height: 1.45; color: var(--x-muted); }

/* Weekly timetable */
.x-week { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.x-week__day { background: #fff; border-radius: 24px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.x-week__day.is-today { box-shadow: inset 0 0 0 2px var(--x-accent); }
.x-week__name { margin: 0 0 4px; font-size: 1.125rem; font-weight: 800; letter-spacing: 0; display: flex; align-items: center; gap: 8px; }
.x-week__today { font-size: 0.75rem; font-weight: 700; background: var(--x-accent-soft); color: var(--x-accent-dark); border-radius: 999px; padding: 4px 10px; }
.x-week__none { margin: 0; color: var(--x-muted); font-size: 0.9375rem; }
.x-slot { display: block; background: var(--x-slot); border-radius: 14px; padding: 12px 14px; color: var(--x-ink); text-decoration: none; }
.x-slot:hover { background: #E2E9F1; color: var(--x-ink); }
.x-slot__time { display: block; font-size: 0.8125rem; font-weight: 700; color: var(--x-muted); font-variant-numeric: tabular-nums; }
.x-slot__title { display: block; font-size: 0.9375rem; font-weight: 600; line-height: 1.35; margin-top: 2px; }

/* Events */
.x-panel-night { background: var(--x-night); color: #F4F6F8; border-radius: 40px; padding: clamp(28px, 4.4vw, 64px); }
.x-panel-night :where(h2, h3, a) { color: #F4F6F8; }
.x-panel-night a:hover { color: #fff; }
.x-panel-night .x-empty { color: #B9C6D6; }
.x-events--featured { display: flex; flex-wrap: wrap; gap: 28px; align-items: stretch; }
.x-event-main { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; color: inherit; text-decoration: none; }
.x-event-main__img { display: block; width: 100%; height: clamp(240px, 26vw, 380px); object-fit: cover; border-radius: 24px !important; }
.x-event-main__info { display: flex; gap: 18px; align-items: flex-start; }
.x-event__meta { display: block; font-size: 0.9375rem; color: #B9C6D6; margin-bottom: 6px; }
.x-event-main__title { display: block; font-size: clamp(1.375rem, 2.2vw, 1.875rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
.x-events__side { flex: 1 1 320px; display: flex; flex-direction: column; gap: 14px; }
.x-event-row { display: flex; gap: 16px; align-items: center; background: rgba(255, 255, 255, 0.08); border-radius: 24px; padding: 18px; color: inherit; text-decoration: none; }
.x-event-row:hover { background: rgba(255, 255, 255, 0.14); }
.x-event-row__title { display: block; font-size: 1.125rem; font-weight: 700; line-height: 1.25; }
.x-date { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.x-date__day { font-weight: 800; font-variant-numeric: tabular-nums; }
.x-date__month { font-weight: 700; letter-spacing: 0.06em; margin-top: 3px; }
.x-date--round { width: 76px; height: 76px; border-radius: 999px; background: var(--x-accent); color: #fff; }
.x-date--round .x-date__day { font-size: 1.625rem; }
.x-date--round .x-date__month { font-size: 0.75rem; }
.x-date--tile { width: 64px; height: 64px; border-radius: 18px; background: #F4F6F8; color: var(--x-ink); }
.x-date--tile .x-date__day { font-size: 1.375rem; }
.x-date--tile .x-date__month { font-size: 0.6875rem; }
.x-events--list { display: flex; flex-direction: column; gap: 14px; }
.x-events__title { margin: 0 0 20px; }
.x-event-line { display: flex; gap: 20px; align-items: center; background: #fff; border-radius: 24px; padding: 18px; color: var(--x-ink); text-decoration: none; }
.x-event-line:hover { color: var(--x-ink); box-shadow: inset 0 0 0 1px var(--x-line); }
.x-event-line .x-date--tile { background: var(--x-accent-soft); color: var(--x-accent-dark); }
.x-event-line .x-event__meta { color: var(--x-muted); }
.x-event-line__text { flex: 1 1 auto; min-width: 0; }
.x-event-line__title { display: block; font-size: 1.25rem; font-weight: 700; line-height: 1.25; }
.x-event-line__img { width: 120px; height: 90px; object-fit: cover; border-radius: 14px !important; flex-shrink: 0; }
@media (max-width: 599px) { .x-event-line__img { display: none; } }

/* Houses */
.x-houses { gap: clamp(28px, 4vw, 56px) !important; align-items: center; }
.x-houses__media { flex: 1 1 440px; min-width: 0; margin: 0 !important; }
.x-houses__media img { width: 100%; height: clamp(320px, 36vw, 520px); object-fit: cover; }
.x-houses__list { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.x-houses__list > * { margin: 0 !important; }
.x-houses__list > h2 { margin-bottom: 10px !important; }
.x-house { position: relative; gap: 18px !important; background: #fff; border-radius: 24px; padding: 16px 20px 16px 16px; }
.x-house::after { content: ""; flex-shrink: 0; margin-left: auto; width: 22px; height: 22px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
.x-house:hover { box-shadow: inset 0 0 0 1px var(--x-line); }
.x-house .wp-block-image { margin: 0; flex-shrink: 0; }
.x-house .wp-block-image img { width: 72px; height: 72px; border-radius: 999px; object-fit: cover; border: 1px solid #E2E8F0; background: #fff; }
.x-house h3 { margin: 0 0 4px; font-size: 1.1875rem; font-weight: 700; letter-spacing: 0; }
.x-house h3 a { text-decoration: none; color: var(--x-ink); }
.x-house h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 24px; }
.x-house p { margin: 0; font-size: 0.9375rem; line-height: 1.45; color: var(--x-muted); }

/* Accent band */
.x-band { position: relative; overflow: hidden; background: var(--x-accent); color: #fff; border-radius: 40px; padding: clamp(36px, 5vw, 72px); gap: 32px !important; }
.x-band::after { content: ""; position: absolute; right: -70px; bottom: -110px; width: 360px; height: 360px; background: url(assets/img/spiral.png) center / contain no-repeat; filter: brightness(0) invert(1); opacity: 0.14; pointer-events: none; }
.x-band > * { position: relative; z-index: 1; }
.x-band__text { flex: 1 1 520px; margin: 0; font-weight: 800; font-size: clamp(1.75rem, 3.3vw, 2.875rem); line-height: 1.14; letter-spacing: -0.02em; max-width: 24ch; }
.x-band .wp-block-button__link { background: #fff; color: var(--x-ink); }
.x-band .wp-block-button__link:hover { background: var(--x-bg); color: var(--x-ink); }

/* Visit, contact, map, social */
.x-visit { gap: 24px !important; align-items: stretch !important; }
.x-visit__card { flex: 1 1 380px; background: #fff; border-radius: 28px; padding: clamp(28px, 3vw, 40px); display: flex; flex-direction: column; gap: 22px; }
.x-visit__card > * { margin: 0 !important; }
.x-visit__card .wp-block-buttons { margin-top: auto !important; }
.x-visit > .x-map { flex: 999 1 520px; }
.x-contact { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 12px 20px; margin: 0; font-size: 1rem; }
.x-contact dt { font-weight: 600; }
.x-contact dd { margin: 0; color: var(--x-muted); }
.x-contact a { color: var(--x-ink); }
.x-map { min-height: 420px; background: #DCE4EC; border-radius: 28px; overflow: hidden; display: flex; }
.x-map__placeholder { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; padding: 32px; max-width: 420px; }
.x-map__pin { width: 76px; height: 76px; border-radius: 999px; background: #fff; display: flex; align-items: center; justify-content: center; color: var(--x-accent); }
.x-map__pin .x-icon { width: 36px; height: 36px; }
.x-map__placeholder p { margin: 0; color: var(--x-muted); font-size: 1rem; }
.x-map__btn { font: inherit; font-weight: 700; background: #fff; color: var(--x-ink); border: 0; border-radius: 999px; padding: 14px 24px; cursor: pointer; }
.x-map__btn:hover { background: var(--x-ink); color: #fff; }
.x-map__link { font-size: 0.9375rem; }
.x-map iframe { flex: 1; width: 100%; min-height: 420px; border: 0; }
.x-social { display: flex; gap: 4px; }
.x-social__link { width: 44px; height: 44px; border-radius: 999px; display: flex; align-items: center; justify-content: center; color: inherit; }
.x-social__link:hover { background: var(--x-slot); color: var(--x-ink); }

/* Footer */
.x-footer { background: var(--x-ink); color: #E6ECF3; padding-top: 64px; padding-bottom: 32px; }
.x-footer a { color: #E6ECF3; text-decoration: none; }
.x-footer a:hover { color: #fff; text-decoration: underline; }
.x-footer__top { gap: 48px !important; }
.x-footer__brand { gap: 16px !important; }
.x-footer__spiral { margin: 0; width: 64px; height: 64px; border-radius: 999px; background: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.x-footer__spiral img { width: 42px; height: 42px; border-radius: 0; }
.x-footer__name { margin: 0; font-size: 1.625rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.1; }
.x-footer__tagline { margin: 4px 0 0; font-size: 0.9375rem; color: #B9C6D6; }
.x-footer__cols { gap: 56px !important; }
.x-footer__col > * { margin: 0; }
.x-footer__label { margin: 0 0 12px !important; font-size: 0.8125rem; font-weight: 700; color: #B9C6D6; }
.x-footer .wp-block-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 0.9375rem; }
.x-footer .x-social { margin-left: -12px; }
.x-footer .x-social__link:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.x-footer__bottom { margin-top: 56px !important; padding-top: 20px; border-top: 1px solid #2C3A57; font-size: 0.875rem; color: #9FB0C6; gap: 12px !important; }
.x-footer__bottom p { margin: 0; }
.x-footer__bottom a { color: #9FB0C6; }

/* Single lesson / event */
.x-single { gap: clamp(28px, 4vw, 56px) !important; padding-top: clamp(32px, 5vw, 64px); align-items: flex-start !important; }
.x-single__media { flex: 1 1 360px; max-width: 520px; }
.x-single__media .wp-block-post-featured-image { margin: 0; }
.x-single__media img { width: 100%; height: auto; border-radius: 28px; }
.x-single__body { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.x-single__body > * { margin: 0 !important; }
.x-single__body h1 { font-size: clamp(2.25rem, 4vw, 3.5rem); }
.x-terms a { display: inline-block; background: var(--x-accent-soft); color: var(--x-accent-dark); border-radius: 999px; padding: 6px 12px; font-size: 0.8125rem; font-weight: 700; text-decoration: none; }
.x-terms .wp-block-post-terms__separator { display: none; }
.x-terms a + a, .x-terms a ~ a { margin-left: 6px; }
.x-info { background: #fff; border-radius: 24px; padding: 24px; }
.x-info__title { margin: 0 0 12px; font-size: 1.125rem; letter-spacing: 0; }
.x-info__schedule { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.x-info__schedule li { display: flex; flex-wrap: wrap; gap: 4px 12px; background: var(--x-slot); border-radius: 14px; padding: 12px 14px; }
.x-info__day { font-weight: 700; min-width: 7.5em; }
.x-info__time { font-variant-numeric: tabular-nums; }
.x-info__note { color: var(--x-muted); }
.x-info__hint { margin: 0 0 16px; color: var(--x-muted); }
.x-info__contact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.x-info__contact li { display: flex; gap: 10px; align-items: center; }
.x-info__contact .x-icon { color: var(--x-accent); flex-shrink: 0; }
.x-info__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.x-info__actions:empty { display: none; }
.x-about__item { margin-top: 36px; }
.x-about__title { font-size: 1.5rem; }
.x-h-small { font-size: 1.5rem !important; }

/* Images inside lesson, event and news text (added from the management editor) */
.wp-block-post-content img[class*="wp-image-"] { border-radius: 20px; }
.wp-block-post-content img.alignleft, .wp-block-post-content .wp-caption.alignleft { float: left; margin: 6px 28px 16px 0; }
.wp-block-post-content img.alignright, .wp-block-post-content .wp-caption.alignright { float: right; margin: 6px 0 16px 28px; }
.wp-block-post-content img.aligncenter, .wp-block-post-content .wp-caption.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-block-post-content .wp-caption { max-width: 100%; }
.wp-block-post-content .wp-caption-text { margin: 8px 0 0; font-size: 0.9375rem; color: var(--x-muted); }
.wp-block-post-content::after { content: ""; display: table; clear: both; }
@media (max-width: 599px) {
	.wp-block-post-content img.alignleft, .wp-block-post-content img.alignright, .wp-block-post-content .wp-caption.alignleft, .wp-block-post-content .wp-caption.alignright { float: none; margin: 16px 0; }
}

/* News */
.x-news-card { background: #fff; border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding-bottom: 24px; }
.x-news-card > * { margin: 0 !important; padding-left: 22px; padding-right: 22px; }
.x-news-card > .wp-block-post-featured-image { padding: 0; }
.x-news-card .wp-block-post-featured-image img { border-radius: 0; }
.x-news-card .wp-block-post-featured-image { margin-bottom: 8px !important; }
.x-news-card__title { font-size: 1.375rem !important; }
.x-news-card__title a { text-decoration: none; }
.x-news-card .wp-block-post-excerpt__excerpt { margin: 0; color: var(--x-muted); }
.wp-block-query-pagination { margin-top: 40px; gap: 10px; }

/* Front-end management */
.x-manage { margin-top: 24px; }
.x-manage h2 { font-size: 1.75rem; }
.x-manage__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.x-manage__bar p { margin: 0; }
.x-manage__bar-links { display: flex; gap: 18px; }
.x-notice { border-radius: 14px; padding: 14px 18px; font-weight: 600; margin: 0 0 16px; }
.x-notice--ok { background: #E7F5EC; color: #14532D; }
.x-notice--error { background: var(--x-accent-soft); color: var(--x-accent-dark); }
.x-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 28px; }
.x-manage__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.x-manage__head h2 { margin: 0; }
.x-manage__count { font-size: 1rem; font-weight: 600; color: var(--x-muted); }
.x-manage__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.x-manage__item { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; background: #fff; border-radius: 20px; padding: 12px 16px 12px 12px; }
.x-manage__thumb { width: 64px; height: 64px; border-radius: 14px !important; object-fit: cover; flex-shrink: 0; display: block; }
.x-manage__thumb--empty { background: var(--x-slot); }
.x-manage__info { flex: 1 1 240px; display: flex; flex-direction: column; gap: 2px; }
.x-manage__meta { color: var(--x-muted); font-size: 0.9375rem; }
.x-status { font-size: 0.75rem; font-weight: 700; background: #FFF4D6; color: #7A5300; border-radius: 999px; padding: 3px 9px; margin-left: 6px; }
.x-manage__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.x-manage__actions form { margin: 0; }
.x-manage__login { background: #fff; border-radius: 24px; padding: clamp(24px, 4vw, 48px); max-width: 480px; }
.x-manage__login h2 { margin-top: 0; }
.x-form { display: flex; flex-direction: column; gap: 20px; background: #fff; border-radius: 24px; padding: clamp(20px, 3vw, 36px); }
.x-fields { display: flex; flex-direction: column; gap: 20px; }
.x-field { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.x-field label, .x-field legend, #loginform label { font-weight: 600; font-size: 0.9375rem; }
fieldset.x-field { border: 0; padding: 0; min-width: 0; }
fieldset.x-field legend { padding: 0; margin-bottom: 8px; }
.x-field input[type="text"], .x-field input[type="email"], .x-field input[type="tel"], .x-field input[type="url"], .x-field input[type="date"], .x-field input[type="time"], .x-field input[type="datetime-local"], .x-field input[type="file"], .x-field select, .x-field textarea, .x-schedule input, .x-schedule select, #loginform input[type="text"], #loginform input[type="password"] { font: inherit; font-size: 1rem; color: var(--x-ink); background: #fff; border: 1px solid var(--x-line); border-radius: 12px; padding: 12px 14px; width: 100%; box-sizing: border-box; }
.x-field textarea { line-height: 1.55; resize: vertical; }
.x-field input:focus, .x-field select:focus, .x-field textarea:focus, .x-schedule input:focus, .x-schedule select:focus, #loginform input:focus { border-color: var(--x-ink); outline: 2px solid var(--x-accent); outline-offset: 1px; }
.x-field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.x-field--short { max-width: 260px; }
.x-field__preview { width: 96px; height: 96px; object-fit: cover; border-radius: 14px !important; }
.x-schedule__scroll { overflow-x: auto; }
.x-schedule table { width: 100%; min-width: 560px; border-collapse: separate; border-spacing: 0 8px; }
.x-schedule th { text-align: left; font-size: 0.8125rem; font-weight: 600; color: var(--x-muted); padding: 0 8px 0 0; }
.x-schedule td { padding: 0 8px 0 0; }
.x-help { margin: 0; font-size: 0.875rem; color: var(--x-muted); }
.x-checks { display: flex; flex-wrap: wrap; gap: 10px; }
.x-check { display: inline-flex; align-items: center; gap: 8px; background: var(--x-slot); border-radius: 999px; padding: 8px 14px; font-size: 0.9375rem; font-weight: 500 !important; }
.x-form__footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; border-top: 1px solid var(--x-line); padding-top: 20px; }
#loginform p { display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; }
#loginform .login-remember label { display: flex; align-items: center; gap: 8px; font-weight: 500; }
#loginform .login-remember input { width: auto; }
.x-mt-section { margin-top: 40px !important; }
.x-footer__col:has(> .x-footer__label:last-child) { display: none; }
.x-house .wp-block-image img.wp-image-23 { object-fit: contain; padding: 14px; box-sizing: border-box; background: var(--x-accent-soft); border-color: var(--x-accent-soft); }
