/* ==========================================================================
   OPAC Serial Articles Directory (/artikel & /opac/artikel)
   Inherits exact OPAC container width, padding, and active theme colors
   via .catalog-browse-page / .catalog-browse-shell & --browse-* tokens
   across Zavier, Finexy, Rain, Soft Dark Mode, and WCAG High Contrast.
   ========================================================================== */

.serial-articles-page {
    --art-accent: var(--browse-blue, var(--rain-primary, #1f5fae));
    --art-accent-dark: var(--browse-blue-dark, var(--rain-primary-dark, #16477f));
    --art-accent-solid: var(--browse-blue, var(--rain-primary, #1f5fae));
    --art-accent-solid-hover: var(--browse-blue-dark, var(--rain-primary-dark, #16477f));
    --art-accent-soft: var(--browse-blue-soft, var(--rain-primary-soft, #eaf2fb));
    --art-border: var(--browse-border, #d8e3ef);
    --art-text: var(--browse-text, #172b43);
    --art-muted: var(--browse-muted, #64748b);
    --art-surface: #ffffff;
    --art-surface-alt: #f8fafc;
    --art-input-border: #b9cadb;
    --art-radius-card: 16px;
    --art-radius-control: 11px;
    --art-success-bg: #e7f7ef;
    --art-success-text: #0f6b42;
    --art-warn-bg: #fef3c7;
    --art-warn-text: #92400e;
}

body[data-theme="zavier"] .serial-articles-page {
    --art-accent: var(--zavier-primary, #1959c7);
    --art-accent-dark: var(--zavier-primary-hover, #12469f);
    --art-accent-solid: var(--zavier-primary, #1959c7);
    --art-accent-solid-hover: var(--zavier-primary-hover, #12469f);
    --art-accent-soft: var(--zavier-primary-soft, #eaf1ff);
    --art-border: var(--zavier-border, #d7e3e6);
    --art-text: var(--zavier-text, #14213d);
    --art-muted: var(--zavier-muted, #64758a);
    --art-surface: var(--zavier-surface, #ffffff);
    --art-surface-alt: var(--zavier-surface-soft, #f6f9f9);
    --art-input-border: var(--zavier-border-strong, #bdcdd2);
    --art-radius-card: var(--zavier-radius, 10px);
    --art-radius-control: var(--zavier-radius, 10px);
}

body[data-theme="rain"] .serial-articles-page {
    --art-accent: var(--browse-blue, var(--rain-primary, #647d68));
    --art-accent-dark: var(--browse-blue-dark, var(--rain-primary-dark, #435947));
    --art-accent-solid: var(--browse-blue, var(--rain-primary, #647d68));
    --art-accent-solid-hover: var(--browse-blue-dark, var(--rain-primary-dark, #435947));
    --art-accent-soft: var(--browse-blue-soft, var(--rain-primary-soft, #edf2ed));
}

body[data-theme="finexy"] .serial-articles-page {
    --art-accent: var(--browse-blue, #1d4ed8);
    --art-accent-dark: var(--browse-blue-dark, #1e3a8a);
    --art-accent-solid: var(--browse-blue, #1d4ed8);
    --art-accent-solid-hover: var(--browse-blue-dark, #1e3a8a);
    --art-accent-soft: var(--browse-blue-soft, #eff6ff);
}

html[data-color-mode="dark"] body:not(.wcag-high-contrast) .serial-articles-page {
    --art-accent: var(--dm-accent, #60a5fa);
    --art-accent-dark: var(--dm-accent-hover, #93c5fd);
    --art-accent-solid: var(--dm-accent-solid, #2563eb);
    --art-accent-solid-hover: var(--dm-accent-solid-hover, #1d4ed8);
    --art-accent-soft: var(--dm-accent-soft, rgba(59, 130, 246, 0.16));
    --art-border: var(--dm-border, #334155);
    --art-text: var(--dm-text-strong, #f8fafc);
    --art-muted: var(--dm-muted, #a6b5ca);
    --art-surface: var(--dm-surface, #1e293b);
    --art-surface-alt: var(--dm-surface-alt, #253349);
    --art-input-border: var(--dm-border-strong, #475569);
    --art-success-bg: rgba(16, 185, 129, 0.16);
    --art-success-text: #6ee7b7;
    --art-warn-bg: rgba(245, 158, 11, 0.18);
    --art-warn-text: #fcd34d;
}

/* Filter Form (matches .opac-search-panel form rhythm) */
.articles-filter-form {
    padding: 16px 18px;
}

.articles-search-bar {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr) auto;
    gap: 10px;
    margin-bottom: 12px;
}

.articles-field-select,
.articles-select-wrap {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
}

.articles-field-select select,
.articles-facet-control select {
    width: 100%;
    min-height: 46px;
    padding: 10px 36px 10px 13px;
    color: var(--art-text);
    background-color: var(--art-surface);
    border: 1px solid var(--art-input-border);
    border-radius: var(--art-radius-control);
    font-size: 0.84rem;
    font-weight: 600;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    box-sizing: border-box;
}

.articles-facet-control select {
    min-height: 42px;
    padding: 8px 34px 8px 12px;
    font-weight: 500;
}

.articles-field-select > svg,
.articles-select-wrap > svg {
    position: absolute;
    top: 50%;
    right: 12px;
    width: 16px;
    height: 16px;
    color: var(--art-muted);
    transform: translateY(-50%);
    pointer-events: none;
}

.articles-select-wrap > svg {
    width: 15px;
    height: 15px;
}

.articles-query-input {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0;
}

.articles-query-input > svg {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: var(--art-muted);
    pointer-events: none;
}

.articles-query-input input {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px 10px 43px;
    color: var(--art-text);
    background-color: var(--art-surface);
    border: 1px solid var(--art-input-border);
    border-radius: var(--art-radius-control);
    font-size: 0.85rem;
    box-sizing: border-box;
}

.articles-field-select select:focus-visible,
.articles-facet-control select:focus-visible,
.articles-query-input input:focus-visible {
    outline: 0;
    border-color: var(--art-accent);
    box-shadow: 0 0 0 3px var(--art-accent-soft);
}

.articles-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 112px;
    min-height: 46px;
    padding: 9px 20px;
    color: #ffffff;
    background: var(--art-accent-solid);
    border: 1px solid var(--art-accent-solid);
    border-radius: var(--art-radius-control);
    font-size: 0.83rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease;
}

.articles-submit-btn:hover,
.articles-submit-btn:focus-visible {
    color: #ffffff;
    background: var(--art-accent-solid-hover);
    border-color: var(--art-accent-solid-hover);
}

.articles-submit-btn svg {
    width: 17px;
    height: 17px;
}

.articles-facets-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) 150px 185px auto;
    gap: 12px;
    align-items: end;
    padding-top: 4px;
}

.articles-facet-control {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    margin: 0;
}

.articles-facet-control > span {
    color: var(--art-muted);
    font-size: 0.74rem;
    font-weight: 650;
    line-height: 1.3;
}

.articles-facet-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-height: 42px;
    flex-wrap: wrap;
}

.articles-digital-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 13px;
    margin: 0;
    color: var(--art-text);
    background: var(--art-surface-alt);
    border: 1px solid var(--art-border);
    border-radius: var(--art-radius-control);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.articles-digital-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--art-accent);
}

.articles-digital-check span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.articles-digital-check svg {
    width: 15px;
    height: 15px;
    color: var(--art-accent);
}

.articles-reset-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 42px;
    padding: 0 13px;
    color: var(--art-muted);
    background: var(--art-surface);
    border: 1px solid var(--art-border);
    border-radius: var(--art-radius-control);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
}

.articles-reset-link:hover,
.articles-reset-link:focus-visible {
    color: var(--art-accent);
    border-color: var(--art-accent);
    background: var(--art-accent-soft);
}

.articles-reset-link svg {
    width: 15px;
    height: 15px;
}

/* Article Cards */
.articles-collection {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px 18px;
}

.article-card {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
    background: var(--art-surface);
    border: 1px solid var(--art-border);
    border-radius: var(--art-radius-card);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.article-card:hover {
    border-color: var(--art-accent);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.article-serial-thumb {
    display: block;
    width: 84px;
    aspect-ratio: 3 / 4;
    border-radius: var(--art-radius-control);
    overflow: hidden;
    background: var(--art-surface-alt);
    border: 1px solid var(--art-border);
    align-self: start;
}

.article-serial-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-card-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.article-meta-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.article-issue-pills {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.article-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.2;
}

.article-pill svg {
    width: 13px;
    height: 13px;
}

.article-pill--issue {
    color: var(--art-accent);
    background: var(--art-accent-soft);
}

.article-pill--pdf {
    color: var(--art-success-text);
    background: var(--art-success-bg);
}

.article-pill--drm {
    color: var(--art-warn-text);
    background: var(--art-warn-bg);
}

.article-meta-date,
.article-meta-pages {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--art-muted);
    font-size: 0.78rem;
    font-weight: 500;
}

.article-meta-date svg,
.article-meta-pages svg {
    width: 14px;
    height: 14px;
}

.article-title {
    margin: 0;
    font-size: 1.04rem;
    font-weight: 700;
    line-height: 1.38;
}

.article-title a {
    color: var(--art-text);
    text-decoration: none;
}

.article-title a:hover,
.article-title a:focus-visible {
    color: var(--art-accent);
    text-decoration: underline;
}

.article-parent-line {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: var(--art-muted);
}

.article-parent-serial {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--art-accent);
    font-weight: 600;
    text-decoration: none;
}

.article-parent-serial:hover,
.article-parent-serial:focus-visible {
    text-decoration: underline;
}

.article-parent-serial svg {
    width: 14px;
    height: 14px;
}

.article-responsibility {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: 0;
    font-size: 0.81rem;
}

.article-responsibility > div {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

.article-responsibility dt {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--art-muted);
    font-weight: 600;
}

.article-responsibility dt svg {
    width: 13px;
    height: 13px;
}

.article-responsibility dd {
    margin: 0;
    color: var(--art-text);
    font-weight: 600;
}

.article-responsibility dd a {
    color: inherit;
    text-decoration: none;
}

.article-responsibility dd a:hover,
.article-responsibility dd a:focus-visible {
    color: var(--art-accent);
    text-decoration: underline;
}

.article-abstract {
    margin: 2px 0 0;
    color: var(--art-muted);
    font-size: 0.84rem;
    line-height: 1.55;
    max-width: 78ch;
}

.article-subjects {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}

.article-subject-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    color: var(--art-muted);
    background: var(--art-surface-alt);
    border: 1px solid var(--art-border);
    border-radius: 8px;
    font-size: 0.74rem;
    font-weight: 600;
    text-decoration: none;
}

.article-subject-chip:hover,
.article-subject-chip:focus-visible {
    color: var(--art-accent);
    border-color: var(--art-accent);
    background: var(--art-accent-soft);
}

.article-subject-chip svg {
    width: 12px;
    height: 12px;
}

.article-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid var(--art-border);
}

.article-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 6px 13px;
    border-radius: var(--art-radius-control);
    font-size: 0.79rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.article-btn svg {
    width: 15px;
    height: 15px;
}

.article-btn--primary {
    color: #ffffff !important;
    background: var(--art-accent-solid);
    border: 1px solid var(--art-accent-solid);
}

.article-btn--primary:hover,
.article-btn--primary:focus-visible {
    color: #ffffff !important;
    background: var(--art-accent-solid-hover);
    border-color: var(--art-accent-solid-hover);
}

.article-btn--secondary {
    color: var(--art-accent);
    background: var(--art-accent-soft);
    border: 1px solid var(--art-border);
}

.article-btn--secondary:hover,
.article-btn--secondary:focus-visible {
    color: #ffffff !important;
    background: var(--art-accent-solid);
    border-color: var(--art-accent-solid);
}

.article-btn--ghost {
    color: var(--art-muted);
    background: transparent;
    border: 1px solid var(--art-border);
}

.article-btn--ghost:hover,
.article-btn--ghost:focus-visible {
    color: var(--art-accent);
    background: var(--art-accent-soft);
    border-color: var(--art-accent);
}

/* Override .browse-empty a default button rules so dual empty-state buttons follow .article-btn */
.articles-empty-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Protect button-link contrast & active theme tokens against global a:not(.btn):hover theme rules */
body[data-theme] #opacArticlesRoot a.article-btn--primary,
body[data-theme] #opacArticlesRoot a.article-btn--primary:hover,
body[data-theme] #opacArticlesRoot a.article-btn--primary:focus-visible,
body[data-theme] #opacArticlesRoot a.article-btn--secondary:hover,
body[data-theme] #opacArticlesRoot a.article-btn--secondary:focus-visible,
body[data-theme] #opacArticlesRoot .articles-empty-state a.article-btn--primary,
body[data-theme] #opacArticlesRoot .articles-empty-state a.article-btn--primary:hover,
body[data-theme] #opacArticlesRoot .articles-empty-state a.article-btn--primary:focus-visible,
body[data-theme] #opacArticlesRoot .articles-empty-state a.article-btn--secondary:hover,
body[data-theme] #opacArticlesRoot .articles-empty-state a.article-btn--secondary:focus-visible {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

body[data-theme] #opacArticlesRoot a.article-btn--primary,
body[data-theme] #opacArticlesRoot .articles-empty-state a.article-btn--primary {
    background: var(--art-accent-solid) !important;
    border-color: var(--art-accent-solid) !important;
}

body[data-theme] #opacArticlesRoot a.article-btn--primary:hover,
body[data-theme] #opacArticlesRoot a.article-btn--primary:focus-visible,
body[data-theme] #opacArticlesRoot .articles-empty-state a.article-btn--primary:hover,
body[data-theme] #opacArticlesRoot .articles-empty-state a.article-btn--primary:focus-visible {
    background: var(--art-accent-solid-hover) !important;
    border-color: var(--art-accent-solid-hover) !important;
}

body[data-theme] #opacArticlesRoot a.article-btn--secondary,
body[data-theme] #opacArticlesRoot .articles-empty-state a.article-btn--secondary {
    color: var(--art-accent) !important;
    background: var(--art-accent-soft) !important;
    border-color: var(--art-border) !important;
}

body[data-theme] #opacArticlesRoot a.article-btn--secondary:hover,
body[data-theme] #opacArticlesRoot a.article-btn--secondary:focus-visible,
body[data-theme] #opacArticlesRoot .articles-empty-state a.article-btn--secondary:hover,
body[data-theme] #opacArticlesRoot .articles-empty-state a.article-btn--secondary:focus-visible {
    background: var(--art-accent-solid) !important;
    border-color: var(--art-accent-solid) !important;
}

body[data-theme] #opacArticlesRoot .article-parent-serial,
body[data-theme] #opacArticlesRoot .article-title a:hover,
body[data-theme] #opacArticlesRoot .article-title a:focus-visible,
body[data-theme] #opacArticlesRoot .article-responsibility dd a:hover,
body[data-theme] #opacArticlesRoot .article-responsibility dd a:focus-visible,
body[data-theme] #opacArticlesRoot .articles-reset-link:hover,
body[data-theme] #opacArticlesRoot .articles-reset-link:focus-visible,
body[data-theme] #opacArticlesRoot .article-subject-chip:hover,
body[data-theme] #opacArticlesRoot .article-subject-chip:focus-visible {
    color: var(--art-accent) !important;
}

/* Soft Dark Mode surface and WCAG AA contrast adjustments */
html[data-color-mode="dark"] body:not(.wcag-high-contrast) #opacArticlesRoot .browse-empty,
html[data-color-mode="dark"] body:not(.wcag-high-contrast) #opacArticlesRoot .article-card {
    background: var(--art-surface) !important;
    border-color: var(--art-border) !important;
}

html[data-color-mode="dark"] body:not(.wcag-high-contrast) #opacArticlesRoot .browse-panel-header,
html[data-color-mode="dark"] body:not(.wcag-high-contrast) #opacArticlesRoot .browse-results-toolbar,
html[data-color-mode="dark"] body:not(.wcag-high-contrast) #opacArticlesRoot .article-actions {
    border-color: var(--art-border) !important;
}

html[data-color-mode="dark"] body:not(.wcag-high-contrast) #opacArticlesRoot .article-card:hover {
    border-color: var(--art-accent) !important;
    box-shadow: 0 8px 22px rgba(2, 6, 23, 0.36);
}

html[data-color-mode="dark"] body:not(.wcag-high-contrast) #opacArticlesRoot .articles-query-input input::placeholder {
    color: var(--art-muted);
    opacity: 1;
}

html[data-color-mode="dark"] body:not(.wcag-high-contrast) #opacArticlesRoot .browse-result-footer small {
    color: var(--art-muted);
}

/* WCAG High Contrast Mode */
html.wcag-high-contrast body.wcag-high-contrast #opacArticlesRoot.serial-articles-page {
    --art-accent: #facc15;
    --art-accent-dark: #fde047;
    --art-accent-solid: #facc15;
    --art-accent-solid-hover: #fde047;
    --art-accent-soft: #252e40;
    --art-border: #cbd5e1;
    --art-text: #f8fafc;
    --art-muted: #e2e8f0;
    --art-surface: #18202c;
    --art-surface-alt: #1e293b;
    --art-input-border: #cbd5e1;
    --art-success-bg: #252e40;
    --art-success-text: #fef08a;
    --art-warn-bg: #252e40;
    --art-warn-text: #fde047;
}

html.wcag-high-contrast body.wcag-high-contrast #opacArticlesRoot .articles-submit-btn,
html.wcag-high-contrast body.wcag-high-contrast #opacArticlesRoot a.article-btn--primary,
html.wcag-high-contrast body.wcag-high-contrast #opacArticlesRoot a.article-btn--primary:hover,
html.wcag-high-contrast body.wcag-high-contrast #opacArticlesRoot a.article-btn--primary:focus-visible,
html.wcag-high-contrast body.wcag-high-contrast #opacArticlesRoot .articles-empty-state a.article-btn--primary,
html.wcag-high-contrast body.wcag-high-contrast #opacArticlesRoot .articles-empty-state a.article-btn--primary:hover,
html.wcag-high-contrast body.wcag-high-contrast #opacArticlesRoot .articles-empty-state a.article-btn--primary:focus-visible {
    background: #facc15 !important;
    border-color: #fde047 !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
}

html.wcag-high-contrast body.wcag-high-contrast #opacArticlesRoot a.article-btn--secondary,
html.wcag-high-contrast body.wcag-high-contrast #opacArticlesRoot .article-btn--ghost,
html.wcag-high-contrast body.wcag-high-contrast #opacArticlesRoot .articles-reset-link,
html.wcag-high-contrast body.wcag-high-contrast #opacArticlesRoot .article-subject-chip,
html.wcag-high-contrast body.wcag-high-contrast #opacArticlesRoot .articles-digital-check {
    background: #252e40 !important;
    border-color: #cbd5e1 !important;
    color: #f8fafc !important;
    -webkit-text-fill-color: #f8fafc !important;
}

html.wcag-high-contrast body.wcag-high-contrast #opacArticlesRoot a.article-btn--secondary:is(:hover, :focus-visible),
html.wcag-high-contrast body.wcag-high-contrast #opacArticlesRoot .article-btn--ghost:is(:hover, :focus-visible),
html.wcag-high-contrast body.wcag-high-contrast #opacArticlesRoot .articles-reset-link:is(:hover, :focus-visible),
html.wcag-high-contrast body.wcag-high-contrast #opacArticlesRoot .articles-empty-state a.article-btn--secondary:is(:hover, :focus-visible) {
    background: #facc15 !important;
    border-color: #fde047 !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
}

html.wcag-high-contrast body.wcag-high-contrast #opacArticlesRoot .articles-field-select > svg,
html.wcag-high-contrast body.wcag-high-contrast #opacArticlesRoot .articles-select-wrap > svg,
html.wcag-high-contrast body.wcag-high-contrast #opacArticlesRoot .articles-query-input > svg {
    color: #f8fafc !important;
}

html.wcag-high-contrast body.wcag-high-contrast #opacArticlesRoot .articles-toast {
    background: #facc15 !important;
    border-color: #fde047 !important;
    color: #0f172a !important;
}

/* Compact Mode */
.articles-collection[data-layout="compact"] .article-card {
    grid-template-columns: minmax(0, 1fr);
    padding: 13px 16px;
}

.articles-collection[data-layout="compact"] .article-serial-thumb,
.articles-collection[data-layout="compact"] .article-abstract {
    display: none;
}

/* Citation Toast */
.articles-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 1080;
    padding: 10px 16px;
    color: #ffffff;
    background: var(--art-accent-solid);
    border: 1px solid var(--art-accent-solid-hover);
    border-radius: var(--art-radius-control);
    font-size: 0.83rem;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.25);
}

/* Responsive Breakpoints */
@media (max-width: 991.98px) {
    .articles-facets-row {
        grid-template-columns: 1fr 1fr;
    }

    .articles-facet-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .articles-filter-form {
        padding: 13px;
    }

    .articles-collection {
        padding: 12px;
        gap: 10px;
    }

    .articles-search-bar {
        grid-template-columns: 1fr;
    }

    .articles-facets-row {
        grid-template-columns: 1fr;
    }

    .article-card {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 12px;
        padding: 14px;
    }

    .article-serial-thumb {
        width: 64px;
    }
}

@media (max-width: 479.98px) {
    .article-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .article-serial-thumb {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .articles-submit-btn,
    .article-card,
    .article-btn {
        transition: none !important;
    }
}
