/* Shared design tokens are defined in /css-variables.css. */

/* ── 1. Reset CSS & Pure Native Base ─────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: var(--font-size-body);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-medium);
    line-height: 1.5;
    color: var(--gray-800);
    background-color: var(--gray-50);
    min-height: 100vh;
    /* Hide completely until JS finishes rendering; use opacity for smooth fade-in */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease;
}

.cursor-pointer {
    cursor: pointer;
}

.d-none {
    display: none !important;
    opacity: 0 !important;
}

.background-color-green,
.background-color-blue,
.background-color-orange,
.background-color-pink,
.background-color-purple,
.background-color-red,
.background-color-yellow,
.background-color-cyan,
.background-color-teal,
.background-color-lime {
    background: var(--promo-surface);
}

/* Class app-ready is attached by JS after the entire UI finishes rendering */
body.app-ready {
    opacity: 1;
    visibility: visible;
}

/* ── Skeleton Shimmer (loading effect replacing placeholder text) ── */
@keyframes shimmer {
    0% {
        background-position: -400px 0;
    }
    100% {
        background-position: 400px 0;
    }
}

.skeleton {
    display: inline-block;
    border-radius: var(--radius-sm);
    background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
    background-size: 800px 100%;
    animation: shimmer 1.4s ease-in-out infinite;
    color: transparent !important;
    user-select: none;
    pointer-events: none;
}

/* ── 3. Typography & Line Clamp Standards ────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-headline);
    color: var(--gray-900);
    line-height: 1.25;
    font-weight: var(--font-weight-bold);
}

h1 {
    font-size: var(--font-size-heading-large);
    font-weight: var(--font-weight-extrabold);
}
h2 {
    font-size: var(--font-size-heading);
    font-weight: var(--font-weight-extrabold);
}
h3 {
    font-size: var(--font-size-heading-small);
    font-weight: var(--font-weight-bold);
}
h4 {
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-bold);
}
h5 {
    font-size: var(--font-size-medium);
    font-weight: var(--font-weight-semibold);
}

p {
    color: var(--gray-600);
    line-height: 1.6;
}

small {
    font-size: var(--font-size-small);
    color: var(--gray-500);
}

.flex-row {
    display: flex;
    flex-direction: row;
    gap: var(--spacing-5);
}
.flex-col {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-5);
}
.flex-row > *,
.flex-col > * {
    flex-grow: 1;
}

/* Line Clamp Rules (design.md line clamp specification) */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Form Controls & Inputs ──────────────────────────────── */
input,
textarea,
select {
    font-family: var(--font-ui);
    font-size: var(--font-size-medium);
    color: var(--gray-800);
    background: var(--surface);
    border: var(--border-width-strong) solid var(--gray-300);
    /* border-radius: var(--radius-md); */
    padding: 8px 14px;
    outline: none;
    transition: var(--transition);
}

input::placeholder,
textarea::placeholder {
    color: var(--gray-400);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary-text);
    background: var(--surface);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

/* ── Buttons ─────────────────────────────────────────────── */
button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 18px;
    border: var(--control-border-width) solid transparent;
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: var(--font-size-medium);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    background: var(--primary);
    color: var(--on-brand);
    transition: var(--control-hover-transition);
    white-space: nowrap;
    user-select: none;
    text-decoration: none;
}

button:hover,
.btn:hover {
    transition: var(--control-hover-transition);
    box-shadow: var(--shadow-sm);
}

button:active,
.btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

button:disabled,
button.disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}
.btn-sm {
    min-height: 32px;
    padding: 5px 10px;
    font-size: var(--font-size-small);
}

/* Button Variants */
.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}
.btn-secondary:hover {
    box-shadow: var(--shadow-sm);
}

.btn-light {
    background: var(--primary-light);
    color: var(--primary-text);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
}
:root[data-theme='dark'] .btn-light {
    color: var(--primary-text);
    background: var(--surface-raised);
    border-color: var(--border);
}
:root[data-theme='dark'] .btn-light:hover {
    background: var(--nav-hover);
    box-shadow: var(--shadow-sm);
}
.btn-light:hover {
    box-shadow: var(--shadow-sm);
}

/* Shared footer-style management lists used by admin settings and author profile. */
.footer-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-8);
    margin-top: var(--spacing-10);
}
.footer-box {
    display: flex;
    flex-direction: column;
    padding: var(--spacing-8);
    background: var(--surface);
    border: var(--border-width-default) solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.footer-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-6);
    margin-bottom: var(--spacing-7);
    padding-bottom: var(--spacing-6);
    /* border-bottom: var(--border-width-default) solid var(--border); */
}
.footer-box-title {
    margin: 0;
    color: var(--gray-900);
    font-size: var(--font-size-medium);
    font-weight: var(--font-weight-bold);
}
.btn-add-footer {
    padding: var(--spacing-4) var(--spacing-7);
    font-size: var(--font-size-small);
}
.footer-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-7);
    margin-bottom: var(--spacing-6);
    padding: var(--spacing-6) var(--spacing-7);
    background: var(--surface);
    border: var(--border-width-default) solid var(--border);
    border-radius: var(--radius-sm);
    transition: box-shadow 160ms ease;
}
.footer-list-item:hover,
.footer-list-item:focus-within {
    box-shadow: var(--shadow-sm);
}
.footer-list-item.drag-active {
    opacity: 0.55;
    border-style: dashed;
}
.footer-list-item.drag-over {
    background: var(--primary-light);
}
.footer-item-content {
    flex: 1;
    min-width: 0;
    word-break: break-word;
}
.footer-item-content strong {
    color: var(--gray-900);
    font-size: var(--font-size-medium);
}
.footer-item-value {
    color: var(--gray-600);
    font-size: var(--font-size-small);
}
.footer-empty-msg {
    padding: var(--spacing-9) 0;
    color: var(--gray-500);
    font-size: var(--font-size-small);
    text-align: center;
}
.footer-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-8);
    background: rgba(0, 0, 0, 0.58);
}
.footer-modal-content {
    box-sizing: border-box;
    width: 100%;
    max-width: var(--layout-form-max-width);
    padding: var(--spacing-10);
    background: var(--surface);
    border: var(--border-width-default) solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    animation: footerModalFadeIn 160ms ease-out;
}
.footer-modal-title {
    margin: 0 0 var(--spacing-8);
    color: var(--gray-900);
    font-size: var(--font-size-heading-small);
    font-weight: var(--font-weight-bold);
}
.footer-modal-group,
.footer-modal-group-large {
    margin-bottom: var(--spacing-8);
}
.footer-modal-group label,
.footer-modal-group-large label {
    display: block;
    margin-bottom: var(--spacing-5);
    color: var(--gray-700);
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-semibold);
}
.footer-modal-input {
    box-sizing: border-box;
    width: 100%;
}
.footer-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-7);
    margin-top: var(--spacing-9);
}
@keyframes footerModalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.btn-danger {
    background: var(--danger);
    color: var(--on-brand);
}
.btn-danger:hover {
    box-shadow: var(--shadow-sm);
}

.btn-ghost {
    background: transparent;
    color: var(--gray-600);
    box-shadow: none;
}
.btn-ghost:hover {
    box-shadow: var(--shadow-sm);
}

/* ── Icons ───────────────────────────────────────────────── */
.icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

/* ── Links ───────────────────────────────────────────────── */
a {
    color: var(--primary-text);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--primary-text-hover);
}
.app-content a:not(.btn):hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

/* ── 4.1. Navigation Header (Sticky Header) ──────────────── */
.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    height: var(--layout-nav-height);
    background: var(--nav-bg);
    border-bottom: var(--editorial-rule-width) solid var(--brand-red);
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--layout-outer-gutter);
    transition:
        border-color 160ms ease,
        color 160ms ease,
        background-color 160ms ease;
}

/* ── Topbar menu button — visible on all screen sizes ──── */
.topbar-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    background: transparent;
    border: var(--control-border-width) solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 6px;
    flex-shrink: 0;
    transition: var(--control-hover-transition);
}

.topbar-hamburger:hover {
    box-shadow: var(--shadow-sm);
}

.topbar-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: #ffffff;
    border-radius: var(--radius-sm);
    transition:
        transform 0.2s ease,
        opacity 0.2s ease,
        width 0.2s ease;
    transform-origin: center;
}

/* X icon when sidebar is open */
body.sidebar-open .topbar-hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
body.sidebar-open .topbar-hamburger span:nth-child(2) {
    opacity: 0;
    width: 0;
}
body.sidebar-open .topbar-hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.topbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0 auto;
    gap: 16px;
}

/* 4.1.1 Left logo */
.topbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    cursor: pointer;
    flex-shrink: 0;
}

.topbar-logo-badge {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: #ffffff;
    color: var(--brand-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-extrabold);
    font-size: var(--font-size-heading-small);
    box-shadow: none;
    flex-shrink: 0;
    transition: var(--transition);
}

.topbar-brand:hover .topbar-logo-badge {
    transform: none;
    box-shadow: none;
}

.topbar-brand-title {
    font-size: var(--font-size-heading-small);
    font-weight: var(--font-weight-extrabold);
    color: var(--nav-text);
    letter-spacing: -0.01em;
    margin: 0;
}

/* 4.1.3 Right actions */
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.topbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.1);
    color: var(--on-brand);
    font-size: var(--font-size-medium);
    font-weight: var(--font-weight-semibold);
    border: 1px solid rgba(255, 255, 255, 0.28);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: none;
}

.topbar-btn:hover {
    color: var(--on-brand);
    background: var(--nav-hover);
    box-shadow: var(--shadow-sm);
}

.topbar-btn-icon {
    width: auto;
    height: 36px;
    padding: 0 14px;
    border-radius: 0;
    position: relative;
}

/* Red counter badge */
.badge-counter {
    position: absolute;
    top: -3px;
    right: -3px;
    background: var(--danger);
    color: var(--on-brand);
    font-size: var(--font-size-micro);
    font-weight: var(--font-weight-bold);
    min-width: 17px;
    height: 17px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--surface);
}

#menu-admin-slot {
    display: contents;
}

/* User Box & Dropdown */
.user-box {
    position: relative;
    display: flex;
    align-items: center;
}

.user-name {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 4px 10px 4px 4px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.28);
    user-select: none;
    color: var(--on-brand);
    font: inherit;
    min-height: 38px;
}

.user-menu-item:is(button) {
    width: 100%;
    color: var(--gray-700);
    background: transparent;
    border: 0;
    text-align: left;
    font: inherit;
    justify-content: flex-start;
}

.user-menu-theme {
    display: flex;
    justify-content: space-between !important;
}

button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
}

/* Make interactive controls visibly lift on hover and keyboard focus. */
button:not(:disabled):hover,
input[type='button']:hover,
input[type='submit']:hover,
input[type='reset']:hover,
select:not(:disabled):hover,
[role='button']:hover,
[onclick]:hover,
summary:hover,
.topbar-brand:hover,
.sidebar a[href]:hover,
.year-day:hover,
.author-calendar-year:hover,
.author-calendar-year-controls button:hover,
button:not(:disabled):focus-visible,
input[type='button']:focus-visible,
input[type='submit']:focus-visible,
input[type='reset']:focus-visible,
select:not(:disabled):focus-visible,
[role='button']:focus-visible,
[onclick]:focus-visible,
summary:focus-visible {
    box-shadow: var(--shadow-md);
}

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

.user-name:hover {
    box-shadow: var(--shadow-sm);
}

.user-avatar-badge {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: var(--on-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-small);
    box-shadow: none;
    flex-shrink: 0;
}

.topbar .user-avatar-badge {
    background: #ffffff;
    color: var(--brand-blue);
    box-shadow: none;
}

.user-display-label {
    font-size: var(--font-size-medium);
    font-weight: var(--font-weight-semibold);
    color: var(--on-brand);
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* User dropdown menu */
.user-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--surface);
    border: var(--border-width-default) solid var(--gray-200);
    border-radius: 0;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    min-width: 220px;
    overflow: hidden;
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px) scale(0.96);
    transform-origin: top right;
    transition: var(--transition);
    z-index: 1100;
}

.user-menu.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.user-menu-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
}

.user-menu-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: var(--on-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-small);
    flex-shrink: 0;
}

.user-menu-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.user-menu-name {
    font-size: var(--font-size-medium);
    font-weight: var(--font-weight-semibold);
    color: var(--gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-menu-email {
    font-size: var(--font-size-small);
    color: var(--gray-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-menu-divider {
    margin: 4px 0;
    border: none;
    border-top: 1px solid var(--gray-200);
}

.user-menu > div,
.user-menu > a,
.user-menu-item {
    height: 40px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-700);
    font-size: var(--font-size-medium);
    font-weight: var(--font-weight-medium);
    border-radius: var(--radius-md);
    border: var(--control-border-width) solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

.user-menu-item:hover,
.user-menu > div:hover:not(.user-menu-profile),
.user-menu > a:hover {
    box-shadow: var(--shadow-sm);
}

.user-menu-logout {
    color: var(--danger) !important;
}

.user-menu-logout:hover {
    box-shadow: var(--shadow-sm);
}

.user-menu hr {
    margin: 4px 0;
    border: none;
    border-top: 1px solid var(--gray-200);
}

/* ── 4.3. Two-Column Layout (Shop / CMS Layout) ──────────── */
main {
    min-height: calc(100vh - var(--layout-nav-height));
    display: flex;
    flex-direction: column;
    background: var(--gray-50);
}

.app-container {
    display: grid;
    grid-template-columns: 1fr; /* Sidebar is a fixed overlay — does not occupy a grid column */
    gap: var(--layout-column-gutter);
    align-items: start;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: var(--layout-section-padding-y) var(--layout-page-padding-x);
    box-sizing: border-box;
}

/* ── Desktop: main slides right when sidebar is open (side-by-side, no overlap) ── */
@media (min-width: 901px) {
    main {
        transition: margin-left 0.25s cubic-bezier(0.2, 0, 0, 1);
    }
    body.sidebar-open main {
        margin-left: var(--layout-sidebar-width);
    }
}

/* ── Sidebar: Slide-out panel from left edge — unified across desktop & mobile ── */
.sidebar {
    position: fixed !important;
    left: 0;
    top: var(--layout-nav-height);
    width: var(--layout-sidebar-width);
    height: calc(100dvh - var(--layout-nav-height));
    background: var(--surface);
    border: none;
    border-right: var(--border-width-strong) solid var(--border);
    box-shadow: 3px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 800;
    transform: translateX(-110%);
    transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1);
    overflow-y: auto;
    overflow-x: hidden;
}

/* Sidebar open — slides in from the left edge */
body.sidebar-open .sidebar {
    transform: translateX(0);
}

.sidebar-title {
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    padding: 16px 18px 8px;
}

/* ── Sidebar Quick Panel ────────────────────────────────── */
.sidebar-quick-panel {
    padding: 14px 16px 18px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-quick-title {
    font-size: var(--font-size-micro);
    font-weight: var(--font-weight-extrabold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-400);
    margin-bottom: 2px;
    padding-left: 2px;
}

.sidebar-quick-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.sidebar-quick-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 8px 12px;
    min-height: 38px;
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    box-sizing: border-box;
    box-shadow: none;
    justify-content: flex-start;
}

.sidebar-quick-btn:hover {
    box-shadow: var(--shadow-sm);
}

.sidebar-quick-btn .quick-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    text-align: left;
}

/* ── Dashboard KPI Stats ────────────────────────────────── */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.kpi-card {
    background: var(--surface);
    border: var(--border-width-strong) solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.kpi-card:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
}

.kpi-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.kpi-label {
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gray-500);
}

.kpi-value {
    font-size: var(--font-size-heading-large);
    font-weight: var(--font-weight-extrabold);
    color: var(--gray-900);
    line-height: 1.2;
}

.kpi-desc {
    font-size: var(--font-size-small);
    color: var(--gray-400);
}

/* ── Quick Control Panel ────────────────────────────────── */
.quick-panel {
    background: var(--surface);
    border: var(--border-width-strong) solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.quick-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.quick-panel-title {
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-extrabold);
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.quick-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.quick-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 16px;
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: var(--font-size-medium);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    min-height: 38px;
}

.quick-action-btn:hover {
    box-shadow: var(--shadow-sm);
}

.quick-action-btn.primary {
    background: var(--primary);
    color: var(--on-brand);
    border-color: var(--primary-text);
}

.quick-action-btn.primary:hover {
    box-shadow: var(--shadow-sm);
}

.sidebar .content-manager {
    display: flex;
    flex-direction: column;
    padding: 8px;
    gap: 4px;
}

.sidebar .content-manager a {
    gap: var(--layout-sidebar-item-gap);
    height: var(--layout-sidebar-row-height);
    padding: 0 var(--layout-sidebar-row-padding-x);
    display: flex;
    align-items: center;
    color: var(--gray-600);
    font-size: var(--font-size-medium);
    font-weight: var(--font-weight-semibold);
    border-radius: 0;
    transition: var(--transition);
    cursor: pointer;
}

.sidebar .content-manager a .sidebar-icon,
.sidebar-quick-btn .sidebar-icon {
    width: var(--icon-size-standard);
    height: var(--icon-size-standard);
    flex: 0 0 var(--icon-size-standard);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sidebar .content-manager a .menu-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

.sidebar .content-manager a:hover {
    background: var(--surface-raised);
    color: var(--primary-text);
    text-decoration: none;
}

.sidebar .content-manager a.active {
    background: var(--brand-blue);
    color: var(--on-brand);
    font-weight: var(--font-weight-bold);
    box-shadow: none;
    text-decoration: none;
}

/* Category counter badge in aside */
.cat-count {
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-bold);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    background: var(--gray-100);
    color: var(--gray-500);
    transition: var(--transition);
}

.sidebar .content-manager a.active .cat-count {
    background: rgba(255, 255, 255, 0.16);
    color: var(--on-brand);
}

/* Right Column (Main Content) */
.app-body {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    max-width: var(--layout-page-max-width);
    display: flex;
    flex-direction: column;
}

.app-content {
    width: 100%;
    height: 100%;
}

/* ── 4.3 & 4.4 Filter Toolbar ───────────────────────────── */
.filter-toolbar {
    background: var(--surface);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-toolbar + .list-posts {
    margin-top: 16px;
}

.filter-toolbar > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.post-view-toggle {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 8px;
    white-space: nowrap;
}

.filter-toolbar > .post-view-toggle {
    flex-direction: row;
    align-items: flex-end;
}

.post-view-toggle .view-btn {
    height: 38px;
    min-height: 38px;
    align-self: flex-end;
}

.post-view-toggle .view-btn.active,
.view-btn.active {
    background: var(--primary);
    color: var(--on-brand);
    border-color: var(--primary-text);
    box-shadow: none;
}

.filter-toolbar label {
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-bold);
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-toolbar input[type='date'],
.filter-toolbar input[type='text'],
.filter-toolbar input[type='search'],
.filter-toolbar select {
    padding: 8px 12px;
    border: var(--border-width-strong) solid var(--gray-300);
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: var(--font-size-medium);
    color: var(--gray-800);
    outline: none;
    background: var(--gray-50);
    min-width: 140px;
    transition: var(--transition);
    height: 38px;
    box-sizing: border-box;
}

.filter-toolbar > button {
    height: 38px;
    min-height: 38px;
    align-self: flex-end;
    white-space: nowrap;
}

.filter-toolbar input:focus,
.filter-toolbar select:focus {
    border-color: var(--primary-text);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
    background: var(--surface);
}

/* ── 4.4. Product / Post Card Spec ──────────────────────── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--layout-post-card-min-width), 1fr));
    gap: var(--spacing-9);
}

.product-card,
.post-card {
    background: var(--surface);
    border: var(--border-width-default) solid var(--gray-200);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: none;
    transition: box-shadow 160ms ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.author-panel-card,
.admin-calendar-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    padding: var(--spacing-9);
    background: var(--surface);
    border: var(--border-width-default) solid var(--border);
    border-radius: var(--radius-card);
}

.post-card:hover,
.product-card:hover,
.post-card:focus-within,
.product-card:focus-within {
    box-shadow: var(--shadow-md);
    transform: none;
}

/* Product / post image frame */
.card-image-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--gray-100);
}

.card-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

/* .product-card:hover .card-image-box img,
.post-card:hover .card-image-box img {
    transform: scale(1.05);
} */

/* Category label: solid editorial tab over the image. */
.card-badge-left {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: var(--brand-blue);
    border-radius: 0;
    padding: 5px 9px;
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-bold);
    color: var(--on-brand);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    box-shadow: none;
    z-index: 2;
}

:root[data-theme='dark'] .card-image-box img[src*='500x300.png'] {
    filter: invert(0.82) saturate(0.55);
}

/* Top-right overlay badge on image */
.card-badge-right {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    border-radius: 0;
    padding: 0;
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-bold);
    box-shadow: none;
    z-index: 2;
}

/* Article cards share the same status badge shape on author and admin pages. */
.cms-post-card .card-badge-right > .card-status-badge {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    line-height: 1.2;
    border-radius: var(--radius-pill);
    padding: 4px 10px;
    box-shadow: 0 3px 8px rgba(24, 42, 66, 0.12);
}

.post-highlight-toggle {
    display: inline-grid !important;
    place-items: center;
    flex: 0 0 42px !important;
    width: 42px;
    min-width: 42px;
    padding: 6px !important;
}

.post-highlight-toggle svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.post-highlight-toggle.is-highlighted {
    color: #b98b00;
}

.post-highlight-toggle.is-highlighted svg {
    fill: #f5c400;
    stroke: #9a7300;
}

/* Card body content */
.card-content {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

.card-title {
    font-family: var(--font-headline);
    font-size: var(--font-size-card-title);
    font-weight: var(--font-weight-black);
    color: var(--primary-text);
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-title a {
    color: inherit;
    text-decoration: none;
}

.post-card:hover .card-title a,
.product-card:hover .card-title a {
    color: var(--primary-text);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.card-desc {
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-medium);
    color: var(--gray-600);
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--gray-100);
    font-size: var(--font-size-small);
    color: var(--gray-400);
}

.card-footer-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.card-footer-actions button,
.card-footer-actions a {
    flex: 1;
    text-align: center;
}

/* ── 4.7. Admin Data Table ─────────────────────────────────── */
.table-container {
    width: 100%;
    overflow-x: auto;
    background: var(--surface);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-family);
    font-size: var(--font-size-medium);
    background: var(--surface);
    text-align: left;
}

thead tr {
    background: var(--brand-blue);
    border-bottom: var(--editorial-rule-width) solid var(--brand-red);
}

th {
    height: 44px;
    padding: 10px 16px;
    color: var(--on-brand);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    font-size: var(--font-size-small);
    letter-spacing: 0.05em;
    white-space: nowrap;
}

tbody tr {
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
}

tbody tr:hover {
    background: var(--gray-50) !important;
}

td {
    padding: 12px 16px;
    vertical-align: middle;
    color: var(--gray-800);
}

.events-help {
    margin: 5px 0 0;
    color: var(--gray-500);
    font-size: var(--font-size-small);
}

.events-featured-column {
    width: 116px;
    white-space: nowrap;
}

.events-toggle {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    vertical-align: middle;
}

.events-toggle input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.events-toggle span {
    position: relative;
    width: 38px;
    height: 22px;
    border: 1px solid var(--gray-300);
    border-radius: 12px;
    background: var(--gray-200);
    transition: background-color 160ms ease;
}

.events-toggle span::after {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--surface);
    box-shadow: 0 1px 2px rgb(0 0 0 / 18%);
    content: '';
    transition: transform 160ms ease;
}

.events-toggle input:checked + span {
    border-color: var(--brand-blue);
    background: var(--brand-blue);
}

.events-toggle input:checked + span::after {
    transform: translateX(16px);
}

.events-toggle input:focus-visible + span {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

.events-drag-handle {
    display: inline-block;
    width: 46px;
    color: var(--gray-500);
    cursor: grab;
    font-size: var(--font-size-small);
    user-select: none;
}

.featured-event-row {
    background: var(--primary-light);
}

.featured-event-row.is-dragging {
    opacity: 0.45;
}

/* ── Post title rule: Max 3 lines with trailing ellipsis on overflow ── */
.posts-title,
.posts-table td .posts-title,
.posts-table td .posts-title a {
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.4 !important;
    max-height: calc(1.4em * 3) !important;
    word-break: break-word !important;
}

/* ── Standard Status Badges ─────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 0;
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-bold);
    white-space: nowrap;
}

.badge-warning {
    background: var(--warning-light);
    color: var(--warning-strong, #b45309);
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.badge-info {
    background: var(--info-light);
    color: var(--info-strong, #0369a1);
    border: 1px solid rgba(2, 132, 199, 0.25);
}

.badge-success {
    background: var(--success-light);
    color: var(--success-strong, #047857);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-danger {
    background: var(--danger-light);
    color: var(--danger-strong, #b91c1c);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.badge-primary {
    background: var(--primary-light);
    color: var(--primary-text);
    border: 1px solid rgba(var(--primary-rgb), 0.25);
}

/* ── 4.2. Promo Hero Banner ─────────────────────────────── */
.promo-banner {
    border-radius: 0;
    padding: var(--layout-promo-padding);
    color: var(--promo-text);
    background: var(--promo-surface);
    border: 1px solid var(--border);
    border-left: var(--editorial-rule-width) solid var(--brand-blue);
    box-shadow: none;
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
}

.promo-banner h2 {
    font-family: var(--font-headline);
    color: var(--promo-text);
    font-size: var(--font-size-heading-large);
    font-weight: var(--font-weight-extrabold);
    margin-bottom: 8px;
}

.promo-banner p {
    color: var(--gray-600);
    max-width: var(--layout-dialog-max-width);
    margin-bottom: 16px;
}

.promo-highlight {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.promo-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--promo-tag-surface);
    border: 0;
    /* border-left: 2px solid var(--brand-blue); */
    border-radius: var(--radius-pill);
    padding: 4px 9px;
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-semibold);
    color: var(--promo-tag-text);
}

.admin-section-title {
    font-family: var(--font-headline);
    font-size: var(--font-size-heading-large);
    padding-bottom: 8px;
}

/* ── 4.7. R2 Image Upload Dropzone ─────────────────────────── */
.upload-dropzone {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    background: var(--gray-50);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.upload-dropzone:hover,
.upload-dropzone.drag-over {
    background: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

/* ── 4.5. Modal & Frosted Glass Overlay Backdrop ────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.58);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-box {
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
    width: 100%;
    max-width: var(--layout-dialog-max-width);
    max-height: 90vh;
    overflow-y: auto;
    animation: popInModal 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

@keyframes popInModal {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ── 4.6. Cart Drawer ───────────────────────────────────── */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
    z-index: 1000;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 420px;
    height: 100%;
    background: var(--surface);
    box-shadow: var(--shadow-xl);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.open {
    transform: translateX(0);
}

/* ── Utilities ───────────────────────────────────────────── */
.flex-1 {
    flex: 1 !important;
}

/* ── 5. Responsive Breakpoints ──────────────────────────── */

/* Desktop (>900px): sidebar pushes content right, no backdrop */
@media (min-width: 901px) {
    .sidebar-backdrop {
        display: none !important;
    }
}

@media (max-width: 900px) {
    /* Single-column layout on mobile */
    .app-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-8);
        padding: 16px 14px;
    }

    /* Smaller sidebar on mobile (base is already fixed + slides from edge) */
    .sidebar {
        top: var(--layout-nav-height);
        width: var(--layout-sidebar-width-mobile) !important;
        height: calc(100dvh - var(--layout-nav-height)) !important;
    }

    /* Dimmed backdrop — only visible on mobile */
    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        top: var(--layout-nav-height);
        background: rgba(0, 0, 0, 0.38);
        z-index: 799;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
    }

    body.sidebar-open .sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }
}

/* 60px topbar on very small screens */
@media (max-width: 640px) {
    .sidebar {
        top: var(--layout-nav-height-mobile) !important;
        height: calc(100dvh - var(--layout-nav-height-mobile)) !important;
    }

    .sidebar-backdrop {
        top: var(--layout-nav-height-mobile) !important;
    }
}

@media (max-width: 768px) {
    /* ── Spacious mobile user menu without crowding ─────────── */
    .user-menu {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        width: var(--layout-user-menu-width);
        min-width: 260px;
        max-width: calc(100vw - 24px);
        padding: 10px;
        border-radius: var(--radius-lg);
        box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
        border: 1px solid var(--border);
        background: var(--surface);
        z-index: 1100;
    }

    .user-menu-profile {
        padding: 8px 10px 12px;
        gap: 12px;
    }

    .user-menu-avatar {
        width: 38px;
        height: 38px;
        font-size: var(--font-size-body);
        flex-shrink: 0;
    }

    .user-menu-info {
        display: flex;
        flex-direction: column;
        overflow: hidden;
        min-width: 0;
    }

    .user-menu-name {
        font-size: var(--font-size-medium);
        font-weight: var(--font-weight-bold);
        color: var(--gray-900);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .user-menu-email {
        font-size: var(--font-size-small);
        color: var(--gray-500);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .user-menu-divider {
        margin: 6px 0;
    }

    .user-menu > div,
    .user-menu > a,
    .user-menu-item {
        min-height: 44px;
        height: auto;
        padding: 10px 14px;
        font-size: var(--font-size-medium);
        font-weight: var(--font-weight-semibold);
        gap: 12px;
        border-radius: var(--radius-md);
        display: flex;
        align-items: center;
    }

    /* Keep all published-post columns; the table scrolls horizontally on narrow screens. */
    .list-posts .table-container {
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
    }

    .posts-table {
        table-layout: auto;
        width: max-content !important;
        min-width: 980px;
    }

    .posts-table .col-desktop-only {
        display: table-cell !important;
    }

    .posts-table th.col-title,
    .posts-table td.col-title {
        width: 280px !important;
        min-width: 280px;
    }

    .posts-table td .posts-title,
    .posts-table td .posts-title a {
        display: block !important;
        -webkit-line-clamp: unset !important;
        overflow: visible !important;
        text-overflow: clip !important;
        max-height: none !important;
    }

    .posts-table th.col-action,
    .posts-table td.col-action {
        min-width: 112px;
    }
}

@media (max-width: 640px) {
    .topbar {
        height: var(--layout-nav-height-mobile);
        padding: 0 16px;
    }

    .topbar-container {
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .user-name {
        padding: 4px 8px 4px 4px;
        gap: 6px;
    }

    .user-display-label {
        max-width: 90px;
        font-size: var(--font-size-small);
    }

    .cart-drawer,
    .modal-box {
        max-width: 100% !important;
        border-radius: var(--radius-lg);
    }
}

/* ── 6. Infinite Scroll Pagination ──────────────────────── */
.infinite-scroll-sentinel {
    width: 100%;
    height: 1px;
    margin-top: 10px;
    pointer-events: none;
    opacity: 0;
}

.infinite-scroll-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 22px 0;
    color: var(--gray-500);
    font-size: var(--font-size-medium);
    font-weight: var(--font-weight-semibold);
    width: 100%;
}

.infinite-mini-spinner {
    width: 22px;
    height: 22px;
    border: var(--border-width-strong) solid var(--border);
    border-top-color: var(--primary-text);
    border-radius: 50%;
    animation: infiniteSpin 0.7s linear infinite;
}

@keyframes infiniteSpin {
    to {
        transform: rotate(360deg);
    }
}

.infinite-scroll-ended {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 0 16px;
    color: var(--gray-400);
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-semibold);
    width: 100%;
    letter-spacing: 0.02em;
    user-select: none;
}

.infinite-scroll-ended span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

/* Clickable surfaces get a clear, even shadow only during interaction. */
:is(
    button:not(:disabled),
    .btn,
    input[type='button'],
    input[type='submit'],
    input[type='reset'],
    select:not(:disabled),
    [role='button'],
    [onclick],
    summary,
    .topbar-brand,
    .user-name,
    .user-menu-item,
    .user-menu-logout,
    .sidebar .content-manager a[href],
    .sidebar-quick-btn,
    .quick-action-btn,
    .topbar-hamburger,
    .topbar-btn,
    .support-email-link,
    .action-btn-edit,
    .product-card,
    .post-card,
    .kpi-card,
    .category-breakdown-card,
    .year-day,
    .author-calendar-year,
    .view-btn,
    .topic-parent-header,
    .topic-child-item,
    .event,
    .footer-list-item,
    .user-card-btn
):is(:hover, :focus-visible, :focus-within) {
    box-shadow: var(--shadow-md);
}
