/* ============================================================
   ARECH News List block — front-end styles.

   Port of the LIGHT body of the prototype
     prototypes/news-list-v1/index.html
   (the .filter-section + .grid-section regions ONLY — the navbar / breadcrumb /
   dark editorial header / footer are separate global blocks and are NOT styled
   here). Re-tokenized to the theme tokens (main.css :root) and corrected to the
   responsive standard (responsive_manual_en_0.1: min-width ONLY, no max-width
   media queries; canonical container box --container 1140/1200).

   ALL rules are scoped under `.arech-news` so nothing leaks into the theme.
   Font families use theme tokens (--font-mono / --font-headline / --font-body)
   so a later phase can remap them globally — no literal family names.
   ============================================================ */

.arech-news { display: block; }

.arech-news__intro {
    max-width: var(--container);
    margin: 0 auto;
    padding-block: var(--space-6) 0;
    padding-inline: var(--container-px);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink-2);
}

/* ============================================================
   FILTER BAR — Light body
   Search input left + category chips right + status line.
   ============================================================ */
.arech-news__filter-section {
    background: var(--paper-1);
    padding-block: var(--space-8) var(--space-5);
    padding-inline: var(--container-px);
}
@media (min-width: 768px) { .arech-news__filter-section { padding-top: var(--space-9); } }
.arech-news__filter-inner { max-width: var(--container); margin-inline: auto; }

.arech-news__filter-bar {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    padding: var(--space-5);
    background: var(--paper-0);
    border: 1px solid var(--hairline);
    border-radius: 2px;
}
@media (min-width: 1024px) {
    .arech-news__filter-bar {
        flex-direction: row;
        align-items: center;
        gap: var(--space-6);
        padding: var(--space-4) var(--space-5);
    }
}

.arech-news__search-field {
    position: relative;
    flex-shrink: 0;
    width: 100%;
}
@media (min-width: 1024px) { .arech-news__search-field { width: 320px; } }
.arech-news__search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px; height: 16px;
    /* v1.1 fix-pack [H4]: ink-3 for safer contrast next to body-size input. */
    color: var(--ink-3);
    pointer-events: none;
}
.arech-news__search-input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px 10px 40px;
    background: var(--paper-1);
    border: 1px solid var(--hairline);
    border-radius: 2px;
    font-family: var(--font-body);
    font-size: 15px; font-weight: 400;
    color: var(--ink-1);
    transition: border-color var(--motion-fast) var(--ease-standard), background var(--motion-fast) var(--ease-standard);
}
/* v1.1 fix-pack [H4]: placeholder needs ink-3 contrast (ink-4 FAILs body AA). */
.arech-news__search-input::placeholder { color: var(--ink-3); }
.arech-news__search-input:hover { border-color: var(--hairline-strong); }
.arech-news__search-input:focus { outline: 2px solid var(--orange); outline-offset: 2px; background: var(--paper-0); border-color: var(--orange); }

.arech-news__filter-divider {
    display: none;
    width: 1px; align-self: stretch;
    background: var(--hairline);
}
@media (min-width: 1024px) { .arech-news__filter-divider { display: block; } }

.arech-news__chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    flex: 1;
}
.arech-news__chip-label {
    font-family: var(--font-mono);
    font-size: 10px; font-weight: 500;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--ink-3);
    align-self: center;
    margin-right: var(--space-2);
}
.arech-news__chip {
    display: inline-flex; align-items: center;
    min-height: 36px;
    padding: 6px 14px;
    background: var(--paper-1);
    border: 1px solid var(--hairline);
    /* S78b — user mod #4: news category filter chips were pill (999px); flatten
       to the site action-button standard (S73 FIX-1) so they match every other
       button on the site. */
    border-radius: var(--radius-btn);
    font-family: var(--font-mono);
    font-size: 11px; font-weight: 500;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--ink-2);
    cursor: pointer;
    transition:
        background var(--motion-fast) var(--ease-standard),
        border-color var(--motion-fast) var(--ease-standard),
        color var(--motion-fast) var(--ease-standard),
        transform var(--motion-fast) var(--ease-standard);
}
.arech-news__chip:hover { border-color: var(--orange); color: var(--ink-1); transform: translateY(-1px); }
.arech-news__chip:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
/* v1.1 fix-pack [M2]: dark-on-orange for contrast (white-on-orange FAILs body AA). */
.arech-news__chip.is-active {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--dark);
}
.arech-news__chip.is-active:hover { background: var(--orange-bright); border-color: var(--orange-bright); }
.arech-news__chip-count {
    margin-left: 6px;
    opacity: 0.7;
    font-size: 10px;
}

.arech-news__reset-btn {
    display: none;
    align-items: center;
    min-height: 36px;
    padding: 8px 14px;
    background: transparent;
    border: 1px solid var(--hairline);
    border-radius: 2px;
    font-family: var(--font-mono);
    font-size: 10px; font-weight: 500;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--ink-3);
    cursor: pointer;
    transition: border-color var(--motion-fast) var(--ease-standard), color var(--motion-fast) var(--ease-standard);
    flex-shrink: 0;
}
.arech-news__reset-btn.is-visible { display: inline-flex; }
.arech-news__reset-btn:hover { border-color: var(--orange); color: var(--orange); }
.arech-news__reset-btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.arech-news__filter-status {
    margin-top: var(--space-4);
    font-family: var(--font-mono);
    font-size: 11px; font-weight: 500;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--ink-3);
    min-height: 18px;
}
.arech-news__count-num { color: var(--orange); font-weight: 600; }

/* ============================================================
   GRID SECTION — Editorial Grid (paper-1 body)
   Featured strip top + magazine 3-col grid below.
   ============================================================ */
.arech-news__grid-section {
    background: var(--paper-1);
    padding-block: var(--space-6) var(--space-9);
    padding-inline: var(--container-px);
}
@media (min-width: 1024px) { .arech-news__grid-section { padding-bottom: var(--space-10); } }
.arech-news__grid-inner { max-width: var(--container); margin-inline: auto; }

/* ---------- Featured article strip ---------- */
.arech-news__featured-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    background: var(--paper-0);
    border: 1px solid var(--hairline);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: var(--space-8);
    text-decoration: none;
    color: inherit;
    transition:
        transform var(--motion-slow) var(--ease-standard),
        box-shadow var(--motion-slow) var(--ease-standard),
        border-color var(--motion-slow) var(--ease-standard);
}
@media (min-width: 768px) {
    .arech-news__featured-card { grid-template-columns: 6fr 4fr; }
}
.arech-news__featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(10, 10, 11, 0.08);
    border-color: var(--orange);
}
.arech-news__featured-card:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.arech-news__featured-card.is-hidden { display: none; }

.arech-news__featured-img-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--paper-3);
    overflow: hidden;
}
.arech-news__featured-img-wrap img,
.arech-news__featured-img-wrap picture {
    width: 100%; height: 100%;
    display: block;
}
.arech-news__featured-img-wrap img {
    object-fit: cover;
    transition: transform var(--motion-slower) var(--ease-standard);
}
.arech-news__featured-card:hover .arech-news__featured-img-wrap img { transform: scale(1.03); }
/* v1.1 fix-pack [M2]: dark on orange = PASS body AA. */
.arech-news__featured-cat-chip {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    padding: 4px 10px;
    background: var(--orange);
    color: var(--dark);
    font-family: var(--font-mono);
    font-size: 10px; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    border-radius: 2px;
    z-index: 2;
}
.arech-news__featured-content {
    padding: var(--space-5) var(--space-5) var(--space-6);
    display: flex; flex-direction: column;
    justify-content: center;
    gap: var(--space-3);
}
@media (min-width: 768px) { .arech-news__featured-content { padding: var(--space-6) var(--space-7); } }
.arech-news__featured-eyebrow {
    font-family: var(--font-mono);
    font-size: 10px; font-weight: 500;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--orange);
}
.arech-news__featured-title {
    font-family: var(--font-headline);
    font-weight: 600;
    font-size: clamp(24px, 2.6vw, 36px);
    line-height: 1.15;
    letter-spacing: -0.005em;
    color: var(--ink-1);
}
.arech-news__featured-lead {
    font-family: var(--font-body);
    font-size: 15px; font-weight: 400;
    line-height: 1.6;
    color: var(--ink-2);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.arech-news__featured-meta {
    display: flex; gap: var(--space-4);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--ink-3);
    margin-top: var(--space-2);
}
.arech-news__read-more {
    margin-left: auto;
    color: var(--orange);
    font-weight: 600;
    transition: color var(--motion-fast) var(--ease-standard);
}
.arech-news__featured-card:hover .arech-news__read-more { color: var(--orange-bright); }

/* ---------- Card grid ---------- */
.arech-news__card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
}
@media (min-width: 768px)  { .arech-news__card-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-5); } }
@media (min-width: 1024px) { .arech-news__card-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); } }

.arech-news__card {
    display: flex; flex-direction: column;
    background: var(--paper-0);
    border: 1px solid var(--hairline);
    border-radius: 2px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition:
        transform var(--motion-slow) var(--ease-standard),
        box-shadow var(--motion-slow) var(--ease-standard),
        border-color var(--motion-slow) var(--ease-standard),
        opacity var(--motion-reveal) var(--ease-decelerate);
}
/* Progressive enhancement: cards are visible by default. The hidden-then-reveal
   animation only applies once view.js has initialised the block (it sets
   data-arech-news-inited on the root). No JS / JS error → cards stay visible. */
.arech-news[data-arech-news-inited="1"] .arech-news__card:not(.is-revealed) {
    opacity: 0;
    transform: translateY(20px);
}
.arech-news__card.is-revealed { opacity: 1; transform: translateY(0); }
.arech-news__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(10, 10, 11, 0.08);
    border-color: var(--orange);
}
.arech-news__card:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.arech-news__card.is-hidden { display: none; }

.arech-news__card-img-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--paper-3);
    overflow: hidden;
}
.arech-news__card-img-wrap img,
.arech-news__card-img-wrap picture {
    width: 100%; height: 100%;
    display: block;
}
.arech-news__card-img-wrap img {
    object-fit: cover;
    transform-origin: center;
    transition: transform var(--motion-slower) var(--ease-standard);
}
.arech-news__card:hover .arech-news__card-img-wrap img { transform: scale(1.03); }
.arech-news__card-cat-chip {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    padding: 4px 10px;
    background: rgba(13, 13, 15, 0.85);
    color: var(--off-white);
    font-family: var(--font-mono);
    font-size: 10px; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    border-radius: 2px;
    z-index: 2;
}

.arech-news__card-body {
    padding: var(--space-5);
    display: flex; flex-direction: column;
    gap: var(--space-3);
    flex: 1;
}
.arech-news__card-date {
    font-family: var(--font-mono);
    font-size: 11px; font-weight: 500;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--ink-3);
}
.arech-news__card-title {
    font-family: var(--font-headline);
    font-weight: 600;
    font-size: 22px;
    line-height: 1.25;
    letter-spacing: -0.005em;
    color: var(--ink-1);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
}
.arech-news__card-title::after {
    content: '';
    position: absolute;
    left: 0; bottom: -2px;
    width: 0;
    height: 1px;
    background: var(--orange);
    transition: width var(--motion-slow) var(--ease-standard);
}
.arech-news__card:hover .arech-news__card-title::after { width: 100%; }
.arech-news__card-lead {
    font-family: var(--font-body);
    font-size: 14px; font-weight: 400;
    line-height: 1.55;
    color: var(--ink-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- Empty state ---------- */
.arech-news__empty-state {
    display: none;
    text-align: center;
    padding: var(--space-9) var(--space-5);
    background: var(--paper-0);
    border: 1px dashed var(--hairline-strong);
    border-radius: 2px;
}
.arech-news__empty-state.is-visible { display: block; }
.arech-news__empty-state h3 {
    font-family: var(--font-headline);
    font-weight: 600;
    font-size: 24px;
    color: var(--ink-1);
    margin-bottom: var(--space-3);
}
.arech-news__empty-state p {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--ink-3);
    max-width: 48ch;
    margin: 0 auto var(--space-5);
}
.arech-news__clear-btn {
    display: inline-flex; align-items: center;
    min-height: 44px;
    padding: 10px 24px;
    background: var(--ink-1);
    color: var(--paper-0);
    font-family: var(--font-mono);
    font-size: 12px; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    border: 1px solid var(--ink-1);
    border-radius: 2px;
    cursor: pointer;
    transition: background var(--motion-fast) var(--ease-standard), color var(--motion-fast) var(--ease-standard);
}
.arech-news__clear-btn:hover { background: var(--orange); border-color: var(--orange); }
.arech-news__clear-btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* ============================================================
   REDUCED MOTION — kill transforms / scale / reveal animation
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .arech-news__card { opacity: 1 !important; transform: none !important; }
    .arech-news__card:hover,
    .arech-news__featured-card:hover { transform: none !important; box-shadow: none !important; }
    .arech-news__card-img-wrap img,
    .arech-news__featured-img-wrap img { transform: none !important; }
    .arech-news__card-title::after { transition: none !important; }
}
