/*
Theme Name: Ιππότης
Description: Το νέο design του Σκακιστικού Ομίλου Ρόδου πάνω στο υπάρχον WordPress.
Version: 0.1.0
Requires PHP: 8.2
Text Domain: ippotis
*/

.site-nav ul, .site-nav li { display: contents; }
.lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.lang a:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
@media (min-width: 1281px) {
    .site-header__row { gap: 18px; }
    .site-nav a { padding-inline: 8px; }
}
.story__language { color: var(--muted); font-size: 13px; }
.archive-filters .chips a { min-height: 44px; }
.archive-filters .filters__row--years .chips { flex-basis: 100%; }
.archive-filters .chips a:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
.archive-filter-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; color: var(--muted); font-size: 15px; }
.archive-filter-summary a { display: inline-flex; align-items: center; min-height: 44px; }
.archive-empty { padding-block: 16px 40px; }
.archive-history { margin-top: 28px; }
.pager .current { border-color: var(--wine); color: #fff; background: var(--wine); }
@media (min-width: 700px) {
    .archive-history { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
}
.day.is-today .day__name::after { content: attr(data-today); }
@media (max-width: 480px) {
    .site-header__row { gap: 10px; }
    .site-header .brand { gap: 8px; }
    .site-header .brand__org { font-size: 10.5px; }
    .site-header__side { gap: 8px; }
}
@media (max-width: 359px) { .site-header .brand__org { display: none; } }
.prose { overflow-wrap: anywhere; }
.prose img, .prose video { max-width: 100%; height: auto; }
.prose iframe { max-width: 100%; }
.prose .wp-block-cover { min-height: 0; }
.prose .wp-block-cover__image-background { position: static; width: 100%; }
.prose .wp-block-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.prose .wp-block-gallery figure { width: auto !important; margin: 0; }
.prose .wp-block-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.prose .wp-block-table { overflow-x: auto; }
/* Results tables in the archive: columns sized by their content, compact rows, sideways scroll on phones. */
.prose table { display: block; width: auto; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 15px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.prose .wp-block-table table { display: table; width: 100%; }
.prose td, .prose th { padding: 6px 12px; border: 1px solid var(--line); vertical-align: top; overflow-wrap: normal; }
.prose td p, .prose th p { margin: 0; }
.prose .wp-block-table .has-fixed-layout { table-layout: auto; }
.prose .wp-block-table .has-fixed-layout td, .prose .wp-block-table .has-fixed-layout th { word-break: normal; }
.slots__venue { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; font-weight: 400; overflow-wrap: anywhere; }
.article { padding-bottom: clamp(48px, 8vw, 100px); }
.pagination { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.pagination .page-numbers { min-width: 44px; padding: 10px 14px; text-align: center; }
.pagination .current { color: white; background: var(--wine); border-radius: 8px; }
.comment-form input:not([type=checkbox]), .comment-form textarea { display: block; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.comment-form .submit { background: var(--wine); color: white; cursor: pointer; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { padding-block: 20px; border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 480px) { .prose .wp-block-gallery { gap: 8px; } }
@media (max-width: 640px) {
    .contact__list a { display: inline-flex; align-items: center; min-height: 44px; }
    .map > p a, .areas--four .area a { min-height: 44px; padding-block: 10px; }
    .map > p a { display: inline-block; }
}
.post-password-form p:last-child { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; max-width: 640px; }
.post-password-form label { display: flex; flex: 1 1 240px; flex-direction: column; gap: 6px; min-width: 0; font-size: 15px; font-weight: 700; }
.post-password-form input[type=password] { min-height: 52px; padding: 10px 18px; border: 1px solid #c9c2b6; border-radius: 999px; background: #fff; font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); }
.post-password-form input[type=submit] { min-height: 52px; padding: 12px 26px; border: 0; border-radius: 999px; background: var(--wine); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.post-password-form input[type=submit]:hover { background: var(--wine-deep); }
.post-password-form input:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }

/* Older posts and pages, shown with the design's elements. */
.prose .alignleft, .prose .alignright, .prose .aligncenter, .prose .alignnone { float: none; display: block; margin-inline: auto; }
.prose img { height: auto; }
.prose > * + .post-figure, .prose > .post-figure + * { margin-top: 28px; }
.post-figure { text-align: center; }
.post-figure img { display: inline-block; max-width: 100%; }
.post-figure a { display: inline-block; }
.prose .gallery, .prose .files { margin-block: 28px; }
.prose .files a { color: inherit; }
.prose .wp-caption { max-width: 100%; margin: 28px auto; text-align: center; }
.prose .wp-caption img { display: block; margin-inline: auto; }
.prose .wp-caption-text, .prose figcaption { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--muted); }
/* LiteSpeed lazy loads embeds, keeping the address in data-litespeed-src until they scroll into view. */
.prose iframe:is([src*="youtube"], [src*="youtu.be"], [src*="vimeo"], [data-litespeed-src*="youtube"], [data-litespeed-src*="youtu.be"], [data-litespeed-src*="vimeo"]) { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); }
.prose h1 { margin-top: 1.9em; font-size: 28px; font-weight: 800; line-height: 1.2; }
.prose h4, .prose h5, .prose h6 { margin-top: 1.5em; font-size: 18px; font-weight: 800; }
.prose blockquote { margin: 28px 0; padding-left: 20px; border-left: 3px solid var(--wine); }
.page-empty { color: var(--muted); }
.prose .files:first-child { margin-top: 0; }
/* The arrow drawn like the partner cards' one. The arrow character falls back to a colour emoji on Apple devices. */
.files__arrow { flex: none; align-self: center; width: 14px; height: 14px; fill: none; stroke: var(--muted); stroke-width: 1.5; transition: transform 160ms, stroke 160ms; }
.files a:hover .files__arrow { stroke: var(--wine); transform: translate(2px, -2px); }
@media (prefers-reduced-motion: reduce) { .files__arrow { transition: none; } }
/* Level test, filled in by level-test/level-test.js. */
.level-test { max-width: 1040px; }
.level-test > * + * { margin-top: 24px; }
.level-test .section-title + .section-lead { margin-top: 12px; }
.level-test button.btn { font: inherit; font-weight: 700; cursor: pointer; }
.level-test .btn--paper { border-color: var(--line); }
/* .btn sets a display, which would otherwise show buttons the test hides. */
.level-test [hidden] { display: none !important; }
.level-test .btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.lt-loading { color: var(--muted); }
.lt-card { padding: clamp(20px, 4vw, 36px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.lt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.lt-question { min-width: 0; margin: 0; padding: 0; border: 0; }
.lt-question + .lt-question { margin-top: 28px; }
.lt-question legend { padding: 0; font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.lt-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.lt-option { position: relative; cursor: pointer; }
.lt-option input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.lt-option span { display: inline-flex; align-items: center; min-height: 46px; padding: 8px 20px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 16px; font-weight: 700; transition: border-color 0.15s, background-color 0.15s, color 0.15s; }
.lt-option:hover span { border-color: var(--wine); color: var(--wine); }
.lt-option input:checked + span { border-color: var(--wine); background: var(--wine); color: #fff; }
.lt-option input:focus-visible + span { outline: 3px solid var(--wine); outline-offset: 3px; }
.lt-questions .lt-actions { margin-top: 32px; }

.lt-play { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); grid-template-areas: "board head" "board foot"; grid-template-rows: auto 1fr; gap: 0 48px; }
.lt-head { grid-area: head; }
.lt-foot { grid-area: foot; }
.lt-board-wrap { grid-area: board; }
.lt-count { font-size: 14px; font-weight: 700; color: var(--muted); }
.lt-prompt { display: flex; align-items: center; gap: 12px; margin-top: 6px; font-size: clamp(26px, 3vw, 34px); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
.lt-prompt::before { content: ""; flex: none; width: 0.7em; height: 0.7em; border: 2px solid var(--ink); border-radius: 50%; }
.lt-prompt--w::before { background: #fff; }
.lt-prompt--b::before { background: var(--ink); }
.lt-goal { margin-top: 8px; font-size: 18px; }
.lt-feedback { min-height: 1.6em; margin-top: 20px; font-weight: 700; color: var(--wine); }
.lt-feedback--right { color: #1d6b37; }
.lt-foot .lt-actions { margin-top: 16px; }

.lt-board { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 8px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(26, 28, 34, 0.12); user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.lt-sq { position: relative; display: block; width: 100%; aspect-ratio: 1; margin: 0; padding: 0; border: 0; border-radius: 0; background: #f0d9b5; color: #b58863; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.lt-sq--dark { background: #b58863; color: #f0d9b5; }
.lt-sq::before { content: ""; position: absolute; inset: 0; }
.lt-sq--last::before { background: rgba(155, 199, 0, 0.41); }
.lt-sq--selected::before { background: rgba(20, 85, 30, 0.5); }
.lt-sq--right::before { background: rgba(29, 140, 64, 0.55); }
.lt-sq--wrong::before { background: rgba(196, 38, 38, 0.55); }
.lt-sq--target::before { background: radial-gradient(rgba(20, 85, 30, 0.5) 19%, transparent 20%); }
.lt-sq--capture::before { background: radial-gradient(transparent 76%, rgba(20, 85, 30, 0.45) 77%); }
.lt-sq img { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.lt-sq:focus-visible { z-index: 1; outline: 3px solid var(--wine); outline-offset: -3px; border-radius: 0; }
.lt-coord { position: absolute; font-size: clamp(9px, 1.6vw, 12px); font-weight: 700; line-height: 1; pointer-events: none; }
.lt-coord--rank { top: 3px; left: 3px; }
.lt-coord--file { right: 3px; bottom: 3px; }

.lt-eyebrow { font-size: 14px; font-weight: 700; color: var(--muted); }
.lt-result-title { margin-top: 6px; font-size: clamp(34px, 5vw, 52px); font-weight: 800; line-height: 1.08; letter-spacing: -0.025em; color: var(--wine); }
.lt-result-text { max-width: 58ch; margin-top: 12px; font-size: 19px; }
.lt-result p + p:not(.lt-result-text) { margin-top: 8px; color: var(--muted); }
.lt-classes .h3 + * { margin-top: 12px; }
.lt-classes .area__name { margin: 0; }
.lt-classes > p { color: var(--muted); }
.lt-enrol { padding: clamp(20px, 4vw, 32px); border-radius: var(--radius); background: var(--stone); }
.lt-enrol p { max-width: 62ch; margin-top: 8px; }
.lt-enrol .lt-actions { margin-top: 18px; }
.lt-note { font-size: 15px; color: var(--muted); }

@media (max-width: 860px) {
  .lt-play { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "board" "foot"; grid-template-rows: none; gap: 16px; }
  .lt-board-wrap { max-width: 560px; }
  .lt-feedback { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) { .lt-option span { transition: none; } }
