/* ============================================================
   sinavlia.gr clone — base styles (structural & functional)
   Dark palette is applied via public-theme.css for public pages.
   Admin pages override via admin.css.
   ============================================================ */

/* --- Reset & Base ------------------------------------------ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    position: relative;
    min-height: 100%;
}

html,
body {
    overflow-x: clip;
    max-width: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #fff;
    background: #0a0a0a;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color .2s;
}
a:hover {
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.wrapper {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Search drawer -------------------------------------------------- */

.search-drawer {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0, 0, 0, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
}

.search-drawer.is-open {
    opacity: 1;
    pointer-events: all;
}

.search-drawer-inner {
    width: 100%;
    max-width: 720px;
    padding: 0 1.5rem;
    transform: translateY(-30px);
    transition: transform .22s ease;
}

.search-drawer.is-open .search-drawer-inner {
    transform: translateY(0);
}

.search-drawer-form {
    display: flex;
    border-bottom: 2px solid rgba(255, 255, 255, 0.4);
}

.search-drawer-form:focus-within {
    border-bottom-color: #fff;
}

.search-drawer-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 3rem);
    padding: .4rem 0;
    outline: none;
}

.search-drawer-input::placeholder {
    color: rgba(255, 255, 255, 0.28);
}

.search-drawer-close {
    position: fixed;
    top: 1.25rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    padding: .25rem;
    transition: color .15s;
}

.search-drawer-close:hover {
    color: #fff;
}

.search-drawer-hint {
    color: rgba(255, 255, 255, 0.3);
    font-size: .8rem;
    margin-top: .75rem;
    letter-spacing: .03em;
}

/* --- Admin link -------------------------------------------- */

.admin-link {
    color: #aaa;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.admin-link:hover {
    color: #fff;
}

/* Authenticated admin toolbar */
.admin-toolbar {
    background: #1d2327;
    color: #c3c4c7;
    font-size: .8rem;
    line-height: 32px;
    height: 32px;
    position: relative;
    z-index: 1100;
}
.admin-toolbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.admin-toolbar-left,
.admin-toolbar-right {
    display: flex;
    align-items: center;
    gap: 4px;
}
.admin-toolbar-brand {
    color: #c3c4c7;
    text-decoration: none;
    font-weight: 600;
    margin-right: 12px;
    white-space: nowrap;
}
.admin-toolbar-brand:hover {
    color: #72aee6;
}
.admin-toolbar-link {
    color: #c3c4c7;
    text-decoration: none;
    padding: 0 8px;
    white-space: nowrap;
}
.admin-toolbar-link:hover {
    color: #72aee6;
}
.admin-toolbar-new-post {
    background: rgba(255,255,255,.08);
    border-radius: 3px;
    font-weight: 600;
}
.admin-toolbar-user {
    color: #c3c4c7;
    padding: 0 8px;
    white-space: nowrap;
}
.admin-toolbar-logout {
    background: none;
    border: none;
    color: #c3c4c7;
    font-size: .8rem;
    cursor: pointer;
    padding: 0 8px;
    line-height: 32px;
    white-space: nowrap;
}
.admin-toolbar-logout:hover {
    color: #d63638;
}
@media (max-width: 768px) {
    .admin-toolbar-user,
    .admin-toolbar-link:not(.admin-toolbar-new-post) {
        display: none;
    }
}

/* --- theme-toggle button (in landing header) --------------- */
.theme-toggle {
    background: transparent;
    border: none;
    color: #fff;
    border-radius: .375rem;
    padding: .15rem .5rem;
    cursor: pointer;
}
.theme-toggle:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* --- No-posts ------------------------------------------------ */
.no-posts {
    text-align: center;
    padding: 40px 0;
}

/* --- Category: full-bleed infinite feed -------------------- */

.category-infinite-page {
    padding-bottom: 40px;
}

.category-feed-header {
    padding: 28px 0 12px;
    border-bottom: 1px solid #eee;
    margin-bottom: 0;
}

.category-feed-heading {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0 0 8px;
}

.category-feed-lead {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 820px;
}

.category-infinite-feed {
    display: flex;
    flex-direction: column;
}

.feed-fullbleed-card {
    margin: 0;
}

.feed-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.feed-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 9;
    min-height: 220px;
    max-height: 72vh;
    overflow: hidden;
    background: #1a1a1a;
}

.feed-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    vertical-align: middle;
}

.feed-card-img--placeholder {
    background: linear-gradient(135deg, #2a2a2a 0%, #111 100%);
}

.feed-card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, .85) 0%,
        rgba(0, 0, 0, .35) 45%,
        rgba(0, 0, 0, .15) 100%
    );
    pointer-events: none;
}

.feed-card-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px 24px 32px;
    max-width: 1170px;
    margin: 0 auto;
    box-sizing: border-box;
}

.feed-card-title {
    font-size: clamp(1.15rem, 2.5vw, 2rem);
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
    margin: 0 0 8px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, .5);
}

.feed-card-date {
    font-size: .85rem;
    color: rgba(255, 255, 255, .8);
    letter-spacing: .3px;
}

.infinite-scroll-sentinel {
    height: 4px;
    margin: 8px 0;
}

.infinite-scroll-end {
    text-align: center;
    font-size: .9rem;
    padding: 24px 16px 0;
}

.category-empty {
    padding: 48px 0;
}

@media (max-width: 767px) {
    .feed-card-media {
        aspect-ratio: 16 / 10;
        min-height: 200px;
        max-height: 55vh;
    }

    .feed-card-caption {
        padding: 20px 16px 24px;
    }
}

/* --- Article Page ------------------------------------------ */

.article-featured-image {
    width: 100%;
    overflow: hidden;
    max-height: 520px;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 520px;
}

.article-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    padding: 40px 0;
}

.article-body {
    min-width: 0;
}

.article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.article-categories {
    margin-bottom: 10px;
}

.article-cat {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 10px;
}

.article-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 12px;
}

.article-meta {
    font-size: .85rem;
    display: flex;
    gap: 16px;
    align-items: center;
}

.article-author {
    font-style: italic;
}

.article-photographers {
    font-size: .85rem;
    margin-top: 6px;
}

.article-photographers .photographers-label {
    font-style: italic;
}

/* Article body content */
.article-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    margin: 1.8em 0 .6em;
    line-height: 1.3;
}

.article-content h2 { font-size: 1.5rem; }
.article-content h3 { font-size: 1.25rem; }
.article-content h4 { font-size: 1.1rem; }

.article-content p {
    margin: 0 0 1.2em;
}

.article-content ul,
.article-content ol {
    margin: 0 0 1.2em;
    padding-left: 1.5em;
}

.article-content li {
    margin-bottom: .4em;
}

.article-content blockquote {
    margin: 1.5em 0;
    padding: 16px 24px;
    border-left: 4px solid #222;
    font-style: italic;
}

.article-content img {
    border-radius: 2px;
    margin: 1em 0;
}

.article-content a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Prevent post content from overflowing on mobile */
.article-content {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.article-content img,
.article-content iframe,
.article-content video,
.article-content table {
    max-width: 100%;
    height: auto;
}

/* About page — replaces WordPress [site_authors] shortcodes */
.article-content .sc-authors {
    margin: 0 0 1.5em;
    padding: 0 !important;
    margin-left: -2%;
    text-align: center;
    list-style: none;
}

.article-content .sc-authors li {
    display: inline-block;
    list-style: none !important;
    text-align: center;
    padding: 0 !important;
    margin: 0 0 1.5em;
    margin-left: 2%;
    vertical-align: top;
}

.article-content .sc-authors.three-cols li {
    width: 31.33%;
}

.article-content .sc-authors .author-avatar {
    text-align: center;
    margin-bottom: 18px;
}

.article-content .sc-authors .author-avatar.round img {
    border-radius: 50%;
    margin: 0 auto;
    max-width: 132px;
    height: auto;
    width: 100%;
}

.article-content .sc-authors li h2 {
    font-size: 1rem;
    line-height: 1.2;
    text-transform: uppercase;
    margin: 0;
}

.article-content .sc-authors li h2 a {
    text-decoration: none;
}

.article-content .sc-authors li.site-authors-member--inactive .author-avatar img {
    filter: grayscale(30%);
    opacity: 0.5;
}

@media only screen and (max-width: 750px) {
    .article-content .sc-authors {
        text-align: center;
        margin-left: 0;
    }

    .article-content .sc-authors li {
        margin-left: 0;
        width: 100% !important;
    }
}

/* Article footer / tags */
.article-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.tags-label {
    font-size: .85rem;
    font-weight: 700;
}

.article-tag {
    display: inline-block;
    font-size: .78rem;
    padding: 4px 10px;
    border-radius: 2px;
    transition: background .2s, color .2s;
}

/* --- Sidebar ----------------------------------------------- */

.sidebar {
    border-left: 1px solid #eee;
    padding-left: 30px;
}

.sidebar-widget {
    margin-bottom: 36px;
}

.widget-title {
    font-size: .95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

/* Upcoming events */
.upcoming-events {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: event-counter;
}

.upcoming-events li {
    counter-increment: event-counter;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.upcoming-events li::before {
    content: counter(event-counter) ".";
    font-size: 1.3rem;
    font-weight: 700;
    min-width: 28px;
    line-height: 1;
    padding-top: 2px;
}

.upcoming-events li a {
    font-size: .85rem;
    font-weight: 700;
    line-height: 1.3;
    display: block;
}

.upcoming-events li time {
    display: block;
    font-size: .75rem;
    margin-top: 2px;
}

/* Recent posts */
.recent-posts-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.recent-posts-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.recent-posts-list li a {
    font-size: .85rem;
    line-height: 1.4;
}

/* Tag cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-link {
    display: inline-block;
    font-size: .72rem;
    padding: 4px 10px;
    border-radius: 2px;
    text-transform: lowercase;
    transition: background .2s, color .2s;
}

.site-content {
    flex: 1;
}

/* Social links (used in footer/header) */
.social-links {
    display: flex;
    justify-content: center;
    gap: 18px;
    padding: 14px 0;
}

.social-link {
    font-size: 1.4rem;
    line-height: 1;
    text-decoration: none;
    transition: color .2s, transform .2s;
}

.social-link:hover {
    transform: translateY(-2px);
}

.social-link--topstrip {
    font-size: 1.1rem;
    margin-inline: 5px;
}

.social-link--topstrip:hover {
    transform: translateY(-2px);
}

/* --- Cookie consent banner --------------------------------- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #1a1a2e;
    color: #e0e0e0;
    padding: 18px 24px;
    box-shadow: 0 -4px 24px rgba(0,0,0,.45);
    transform: translateY(110%);
    /* Hidden after the slide-out so its buttons leave the tab order while off-screen. */
    visibility: hidden;
    transition: transform .35s ease, visibility 0s linear .35s;
}

.cookie-banner.is-visible {
    transform: translateY(0);
    visibility: visible;
    transition: transform .35s ease;
}

.cookie-banner__body {
    max-width: 900px;
    margin: 0 auto;
}

.cookie-banner__text {
    font-size: .87rem;
    line-height: 1.6;
    margin-bottom: 12px;
    color: #ccc;
}

.cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 14px;
}

.cookie-btn {
    border: none;
    border-radius: 4px;
    padding: 8px 20px;
    font-size: .88rem;
    cursor: pointer;
    transition: opacity .15s;
}
.cookie-btn:hover { opacity: .85; }

.cookie-btn--primary {
    background: #4f8ef7;
    color: #fff;
}

.cookie-btn--outline {
    background: transparent;
    border: 1px solid #666;
    color: #ccc;
}

.cookie-btn--link {
    background: transparent;
    color: #aaa;
    text-decoration: underline;
    padding: 8px 8px;
}

/* Preferences panel */
.cookie-prefs {
    margin-top: 14px;
    border-top: 1px solid #333;
    padding-top: 12px;
}

.cookie-pref-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #2a2a3e;
    font-size: .85rem;
}

.cookie-pref-row:last-child { border-bottom: none; }

.cookie-pref-desc {
    display: block;
    color: #999;
    font-size: .8rem;
    margin-top: 2px;
}

.cookie-toggle {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #4f8ef7;
}

/* "Ρυθμίσεις cookies" link */
.cookie-settings-link {
    background: none;
    border: none;
    color: #aaa;
    font-size: .82rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}
.cookie-settings-link:hover { color: #fff; }

/* --- Author avatar ----------------------------------------- */
.author-avatar {
    vertical-align: middle;
}

/* Logo images */
.landing-logo .logo-img {
    height: 32px;
    width: auto;
    vertical-align: middle;
}

/* --- Calendar page ----------------------------------------- */
.calendar-page {
    padding: 20px 0;
}
.calendar-page #calendar {
    padding: 0 16px;
}
.calendar-page .page-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.event-image-preview {
    position: absolute;
    z-index: 1000;
    pointer-events: none;
    max-width: 280px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
    overflow: hidden;
}
.event-image-preview img {
    display: block;
    width: 100%;
    height: auto;
}

/* WordPress gallery grid */
.wp-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 1.5rem 0;
}
.wp-gallery .gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity .2s;
}
.wp-gallery .gallery-image:hover {
    opacity: .85;
}
@media (max-width: 768px) {
    .wp-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .wp-gallery { grid-template-columns: 1fr; }
    .wp-gallery .gallery-image { height: 180px; }
}

/* --- Related Articles (base structure) --------------------- */
.related-articles {
    padding: 2.5rem 0;
    margin-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.related-heading {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

.related-card {
    display: flex;
    flex-direction: column;
    border-radius: 0.5rem;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
}

.related-card:hover {
    transform: translateY(-2px);
}

.related-card-img {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.related-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-card-body {
    padding: 0.75rem 1rem 1rem;
}

.related-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card-date {
    font-size: 0.78rem;
}

/* ---- Banners ---- */
.banner-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,.6);
    display: flex;
    align-items: center;
    justify-content: center;
}
.banner-popup-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}
.banner-popup-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #111;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
    z-index: 1;
}
.banner-popup-img {
    max-width: 100%;
    max-height: 85vh;
    display: block;
    border-radius: 8px;
}

.banner-layout-wrapper {
    display: flex;
    gap: 0;
}
.banner-column-left,
.banner-column-right {
    flex-shrink: 0;
    width: 160px;
    position: sticky;
    top: 80px;
    align-self: flex-start;
}
.banner-main-content {
    flex: 1;
    min-width: 0;
}
.banner-side-img {
    width: 100%;
    display: block;
    border-radius: 4px;
}

@media (max-width: 1200px) {
    .banner-column-left,
    .banner-column-right {
        display: none;
    }
}

/* ── Event Wall ──────────────────────────────────────────── */
.event-wall-page {
    background: #0a0a0a;
    min-height: 100vh;
}

/* Flip board */
.flip-board-wrapper {
    background: #0d0d0d;
    border-bottom: 2px solid #161616;
    padding: 44px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}
.flip-board-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.flip-board-display {
    display: flex;
    align-items: flex-end;
    gap: 20px;
}
.flip-segment {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
}
.flip-segment-label {
    color: #3a3a3a;
    font-size: 0.58rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-family: 'Courier New', monospace;
}
.flip-segment--scroll {
    cursor: ns-resize;
    user-select: none;
}
.flip-segment--scroll:hover .flip-tile {
    box-shadow:
        0 2px 6px rgba(0,0,0,0.9),
        0 6px 18px rgba(0,0,0,0.7),
        inset 0 1px 0 rgba(255,255,255,0.07),
        inset 0 0 0 1px rgba(255,255,255,0.07);
}
.flip-segment--scroll:hover .flip-segment-label {
    color: #555;
}
.flip-tiles {
    display: flex;
    gap: 4px;
}

/* Individual flip tile */
.flip-tile {
    position: relative;
    width: 68px;
    height: 92px;
    background: #181818;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 2px 6px rgba(0,0,0,0.9),
        0 6px 18px rgba(0,0,0,0.7),
        inset 0 1px 0 rgba(255,255,255,0.04),
        inset 0 0 0 1px rgba(255,255,255,0.03);
    overflow: hidden;
    perspective: 300px;
}
/* Horizontal split line */
.flip-tile::after {
    content: '';
    position: absolute;
    top: calc(50% - 1px);
    left: 0;
    right: 0;
    height: 2px;
    background: #0a0a0a;
    z-index: 10;
    pointer-events: none;
}
.flip-tile-char {
    font-size: 3.8rem;
    font-weight: 900;
    font-family: 'Courier New', Courier, monospace;
    color: #f2eddc;
    line-height: 1;
    user-select: none;
    letter-spacing: -0.04em;
    text-shadow: 0 0 20px rgba(242,237,220,0.12);
    display: block;
    transform-origin: center;
}
/* Month tile */
.flip-tile.flip-tile-month {
    width: auto;
    min-width: 196px;
    padding: 0 18px;
}
.flip-tile.flip-tile-month .flip-tile-char {
    font-size: 1.9rem;
    letter-spacing: 0.1em;
}

/* Flip animations */
@keyframes flip-out {
    0%   { transform: rotateX(0deg); opacity: 1; }
    100% { transform: rotateX(-90deg); opacity: 0; }
}
@keyframes flip-in {
    0%   { transform: rotateX(90deg); opacity: 0; }
    100% { transform: rotateX(0deg); opacity: 1; }
}
.flip-tile.flip-animate-out .flip-tile-char {
    animation: flip-out 0.16s ease-in forwards;
}
.flip-tile.flip-animate-in .flip-tile-char {
    animation: flip-in 0.16s ease-out forwards;
}

/* Nav arrows */
.flip-board-nav {
    background: transparent;
    border: none;
    color: #2e2e2e;
    font-size: 3.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 28px;
    transition: color 0.2s;
    font-family: monospace;
    user-select: none;
}
.flip-board-nav:hover {
    color: #f2eddc;
}

/* Today button */
.flip-board-today-row {
    text-align: center;
}
.flip-board-today {
    background: transparent;
    border: 1px solid #252525;
    color: #3a3a3a;
    font-size: 0.6rem;
    cursor: pointer;
    padding: 4px 14px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-family: 'Courier New', monospace;
    transition: border-color 0.2s, color 0.2s;
    border-radius: 2px;
}
.flip-board-today:hover {
    border-color: #555;
    color: #f2eddc;
}

/* Event wall — Masonry layout */
.event-wall-container {
    padding: 24px 12px 40px;
    background: #0a0a0a;
    min-height: 200px;
}
.event-wall-status {
    text-align: center;
    padding: 80px 20px;
    color: #2a2a2a;
    font-family: 'Courier New', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
}
/* Masonry container — fitWidth: true will set its width; margin:auto centers it */
.event-wall-grid {
    margin: 0 auto;
}
.event-wall-grid .grid-sizer,
.event-wall-item {
    width: 280px;
}
.event-wall-item {
    position: relative;
    overflow: hidden;
    background: #111;
    display: block;
    text-decoration: none;
    margin-bottom: 4px;
}
.event-wall-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}
.event-wall-item:hover img {
    transform: scale(1.04);
}
.event-wall-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.08) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 14px;
}
.event-wall-item:hover .event-wall-item-overlay {
    opacity: 1;
}
.event-wall-item-title {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.35;
}

@media (max-width: 768px) {
    .flip-board-wrapper {
        padding: 32px 10px;
    }
    .flip-board-nav {
        padding: 0 14px;
        font-size: 2.6rem;
    }
    .flip-tile {
        width: 46px;
        height: 64px;
    }
    .flip-tile-char {
        font-size: 2.5rem;
    }
    .flip-tile.flip-tile-month {
        min-width: 138px;
        padding: 0 10px;
    }
    .flip-tile.flip-tile-month .flip-tile-char {
        font-size: 1.25rem;
        letter-spacing: 0.06em;
    }
    .flip-board-display {
        gap: 12px;
    }
    .event-wall-grid .grid-sizer,
    .event-wall-item {
        width: 160px;
    }
}

/* --- Responsive (article/sidebar) -------------------------- */
@media (max-width: 991px) {
    .article-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #eee;
        padding-top: 30px;
    }
}

@media (max-width: 767px) {
    .article-title {
        font-size: 1.5rem;
    }

    .article-featured-image {
        max-height: 300px;
    }

    .article-featured-image img {
        max-height: 300px;
    }
}

/* ── Instagram "link in bio" page (/instagram) ─────────────────────── */
.ig-links {
    max-width: 60rem;
}

.ig-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.ig-links-tile {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #222;
    color: #fff;
    text-decoration: none;
}

.ig-links-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .2s ease;
}

.ig-links-tile:hover img,
.ig-links-tile:focus img {
    transform: scale(1.04);
}

.ig-links-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: .5rem;
    text-align: center;
    font-size: .8rem;
}

.ig-links-title {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1.5rem .5rem .4rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, .8));
    font-size: .75rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 575.98px) {
    .ig-links-title {
        font-size: .65rem;
        padding: 1rem .3rem .3rem;
    }
}
