/* All-projects archive. Table metrics match the matter lists; a matter column is added. */

body.page-archive {
    --section-color: #000000;
    color: #000000;
    /* Wider than matter lists so the all-projects table can breathe. */
    --arc-pad-x: clamp(32px, 6vw, 96px);
    /* Matter list cols + leading MATTER column. */
    --arc-table-cols: minmax(0, 0.95fr) minmax(0, 1.55fr) minmax(0, 1.05fr) minmax(0, 0.72fr) minmax(0, 0.78fr) 22px;
    --arc-table-divider-h: 1.36rem;
    --arc-table-col-inset: 2.85em;
}

.page-archive .site-content {
    position: relative;
    z-index: 2;
    min-height: 100dvh;
}

.page-archive .header-icon {
    filter: brightness(0) saturate(100%);
}

/* Header sits on the white canvas. The canvas itself is behind the list,
   so a white band on the header hides rows as they scroll up. */
@media (min-width: 769px) {
    /* Desktop only: current-page mark above ARCHIVE / 아카이브.
       Hidden on mobile (no ::before outside this query). */
    .page-archive .fixed-header a.nav-eng-word-1,
    .page-archive .fixed-header a.nav-kor-word-1 {
        position: relative;
        text-decoration: none;
    }

    html:is(.aom-lang-eng, [data-aom-lang="eng"]) .page-archive .fixed-header a.nav-eng-word-1::before,
    html:is(.aom-lang-kor, [data-aom-lang="kor"]) .page-archive .fixed-header a.nav-kor-word-1::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: calc(100% + 0.2em);
        height: 2px;
        background: currentColor;
        pointer-events: none;
    }

    .page-archive .fixed-header::before {
        content: "";
        position: absolute;
        top: 0;
        left: -40px;
        right: 40px;
        bottom: 32px;
        background-color: #ffffff;
        border-radius: 50px 50px 0 0;
        z-index: -1;
        pointer-events: none;
    }
}

.page-archive .grain-layer {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background-image: url("/assets/matters-grain.png");
    background-repeat: repeat;
    background-size: auto;
    background-position: 0 0;
    z-index: 10002;
    opacity: 1;
    pointer-events: none;
}

.page-archive .copyright {
    z-index: 10001;
}

.arc-main {
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    min-height: 100dvh;
    padding: 148px var(--arc-pad-x) 88px var(--arc-pad-x);
}

.arc-total {
    margin: 0 0 1.35rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-family: "parabolica", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15.6px;
    font-weight: 400;
    line-height: 1.3;
    color: #000000;
}

.arc-total-num {
    font-family: "parabolica-medium", "parabolica", sans-serif;
    font-weight: 700;
}

.arc-total-dot {
    font-family: "parabolica", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 400;
    font-synthesis: none;
}

.arc-table {
    width: 100%;
    box-sizing: border-box;
}

.arc-table-row {
    display: grid;
    grid-template-columns: var(--arc-table-cols);
    align-items: stretch;
    min-height: calc(2.6rem * 0.95);
}

.arc-table-row[hidden] {
    display: none;
}

a.arc-table-row--link {
    color: inherit;
    text-decoration: none;
}

.arc-table-row--head {
    position: relative;
    z-index: 32;
    background: #ffffff;
    min-height: calc(2.5rem * 0.95);
    border-top: 2.1px solid #000000;
    border-bottom: 2.1px solid #000000;
}

.arc-table-cell {
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    align-content: center;
    gap: 0.35em 0.55em;
    justify-content: flex-start;
    text-align: left;
    padding: 0.55em 0.85em;
    min-width: 0;
}

.arc-table-row--head .arc-table-cell {
    flex-wrap: wrap;
    align-items: baseline;
    align-content: center;
    padding-top: 0;
    padding-bottom: 0;
    cursor: pointer;
}

.arc-table-row--head .arc-filter-btn,
.arc-table-row--head .arc-sort-btn {
    align-self: center;
}

.arc-table-row--head .arc-filter-btn,
.arc-table-row--head .arc-table-cell--project .arc-sort-btn,
.arc-table-row--head .arc-table-cell--date .arc-sort-btn {
    margin-left: auto;
}

.arc-table-row:not(.arc-table-row--head) {
    box-shadow: inset 0 -1px 0 #000000;
}

.arc-table-row.is-last {
    box-shadow: none;
}

.arc-table-row--link {
    position: relative;
    isolation: isolate;
    cursor: pointer;
}

.arc-table-row--link::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: rgba(255, 255, 0, 0.9);
    opacity: 0;
    transition: opacity 0.15s ease;
}

.arc-table-row--link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2.1px;
    background: #000000;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.arc-table-row--link > .arc-table-cell {
    z-index: 1;
}

@media (hover: hover) and (pointer: fine) {
    .arc-table-row--link:hover::before,
    .arc-table-row--link:focus-visible::before {
        opacity: 1;
    }

    .arc-table-row--link:hover::after,
    .arc-table-row--link:focus-visible::after {
        opacity: 1;
    }

    .arc-table-row.is-last.arc-table-row--link:hover::after,
    .arc-table-row.is-last.arc-table-row--link:focus-visible::after {
        opacity: 0;
    }

    .arc-main:has(.arc-table-row.is-last:hover) .arc-footer-rule,
    .arc-main:has(.arc-table-row.is-last:focus-visible) .arc-footer-rule {
        height: 2.1px;
    }

    .arc-table-row--link:hover {
        box-shadow: inset 0 -2.1px 0 #000000;
    }

    .arc-table-row.is-last.arc-table-row--link:hover,
    .arc-table-row.is-last.arc-table-row--link:focus-visible {
        box-shadow: none;
    }

    .arc-table-row--link:hover .arc-table-eng,
    .arc-table-row--link:hover .arc-table-date,
    .arc-table-row--link:hover .arc-table-badge {
        font-family: "parabolica", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        font-weight: 500;
    }

    .arc-table-row--link:hover .arc-table-kor {
        font-weight: 500;
    }
}

.arc-table-cell:nth-child(1)::after,
.arc-table-cell:nth-child(2)::after,
.arc-table-cell:nth-child(3)::after,
.arc-table-cell:nth-child(4)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 1px;
    height: var(--arc-table-divider-h);
    background-color: #000000;
    pointer-events: none;
}

.arc-table-cell--arrow {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 0;
    transform: translateX(-10px);
}

.arc-table-cell--matter,
.arc-table-cell:nth-child(2),
.arc-table-cell:nth-child(3),
.arc-table-cell--status,
.arc-table-cell--date {
    overflow: hidden;
    min-width: 0;
}

/* Keep eng+kor on one line — same as matter lists */
.arc-table-row:not(.arc-table-row--head) .arc-table-cell--matter,
.arc-table-row:not(.arc-table-row--head) .arc-table-cell:nth-child(2),
.arc-table-row:not(.arc-table-row--head) .arc-table-cell:nth-child(3) {
    flex-wrap: nowrap;
    align-items: baseline;
    align-content: center;
}

.arc-table-row:not(.arc-table-row--head) .arc-table-cell--matter .arc-table-eng,
.arc-table-row:not(.arc-table-row--head) .arc-table-cell--matter .arc-table-kor,
.arc-table-row:not(.arc-table-row--head) .arc-table-cell:nth-child(2) .arc-table-eng,
.arc-table-row:not(.arc-table-row--head) .arc-table-cell:nth-child(2) .arc-table-kor,
.arc-table-row:not(.arc-table-row--head) .arc-table-cell:nth-child(3) .arc-table-eng,
.arc-table-row:not(.arc-table-row--head) .arc-table-cell:nth-child(3) .arc-table-kor,
.arc-table-row:not(.arc-table-row--head) .arc-table-cell--status .arc-table-eng,
.arc-table-row:not(.arc-table-row--head) .arc-table-cell--status .arc-table-kor,
.arc-table-row:not(.arc-table-row--head) .arc-table-date {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 0 1 auto;
}

.arc-table-cell:nth-child(2),
.arc-table-cell:nth-child(3),
.arc-table-cell--status,
.arc-table-cell--date {
    padding-left: var(--arc-table-col-inset);
}

.arc-table-cell--status {
    padding-right: 0.85em;
    justify-content: flex-start;
    text-align: left;
}

.arc-table-row--head .arc-table-cell--date {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.3em;
}

.arc-table-row--head .arc-table-cell--status {
    justify-content: flex-start;
}

.arc-table-row:not(.arc-table-row--head) .arc-table-cell--status {
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
}

.arc-table-row:not(.arc-table-row--head) .arc-table-cell--date {
    flex-wrap: nowrap;
    align-items: baseline;
    align-content: center;
    justify-content: flex-start;
    gap: 0.75em;
}

.arc-table-short,
.arc-table-kor-mobile,
.arc-table-eng-mobile {
    display: none;
}

.arc-table-eng {
    font-family: "parabolica", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15.6px;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: 0.01em;
    color: #000000;
}

.arc-table-kor {
    font-family: "neutronic-hangeul", -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: calc(1.35 * var(--kor-line-height-scale));
    letter-spacing: 0.02em;
    color: #000000;
    word-break: keep-all;
}

.arc-table-row--head .arc-table-eng {
    font-family: "parabolica-medium", "parabolica", sans-serif;
    font-size: 14.4px;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.2;
    transform: translateY(1px);
}

.arc-table-row--head .arc-table-kor {
    font-size: 11px;
    font-weight: 600;
    line-height: calc(1.2 * var(--kor-line-height-scale));
    transform: translateY(1px);
}

.arc-table-date {
    font-family: "parabolica", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15.6px;
    line-height: 1.3;
    white-space: nowrap;
    color: #000000;
    flex: 0 1 5.2em;
    width: 5.2em;
    min-width: 0;
}

.arc-table-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0.32em 0.95em;
    border-radius: 999px;
    background: #d8d8d8;
    color: #111111;
    font-family: "parabolica", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 13.2px;
    line-height: 1.2;
    white-space: nowrap;
}

.arc-table-badge--solid {
    background: #000000;
    color: #ffffff;
}

.arc-table-badge--progress,
.arc-table-badge--series {
    background: #ffffff;
    color: #000000;
    border: 1.7px solid #000000;
    padding: calc(0.32em - 1.7px) calc(0.95em - 1.7px);
}

.arc-table-row:not(.arc-table-row--head):has(
    .arc-table-cell--date > .arc-table-badge:not(.arc-table-badge--solid):not(.arc-table-badge--progress)
) .arc-table-eng,
.arc-table-row:not(.arc-table-row--head):has(
    .arc-table-cell--date > .arc-table-badge:not(.arc-table-badge--solid):not(.arc-table-badge--progress)
) .arc-table-kor,
.arc-table-row:not(.arc-table-row--head):has(
    .arc-table-cell--date > .arc-table-badge:not(.arc-table-badge--solid):not(.arc-table-badge--progress)
) .arc-table-date {
    color: rgba(0, 0, 0, 0.7);
}

.arc-table-row:not(.arc-table-row--head):has(
    .arc-table-cell--date > .arc-table-badge:not(.arc-table-badge--solid):not(.arc-table-badge--progress)
) .arc-table-badge--series {
    color: rgba(0, 0, 0, 0.7);
    border-color: rgba(0, 0, 0, 0.7);
}

.arc-sort-btn,
.arc-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    line-height: 0;
}

.arc-sort-alpha {
    display: block;
    width: 17.6px;
    height: 17.6px;
}

.arc-sort-date {
    display: block;
    width: 11.2px;
    height: 11.2px;
    transition: transform 0.25s ease;
}

.arc-sort-btn.is-asc .arc-sort-date {
    transform: rotate(180deg);
}

.arc-filter-btn img {
    display: block;
    height: 14px;
    width: auto;
}

.arc-table-row--head .arc-table-cell.is-filtered {
    background: #ffff00;
    align-self: stretch;
    align-content: center;
    min-height: 100%;
}

.arc-filter-panel {
    position: fixed;
    z-index: 20;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: none;
    overflow: hidden;
    padding: 0.55em 0.85em 0.7em;
    background: #ffffff;
    border: 1px solid #000000;
    border-top: 0;
}

.arc-filter-panel[hidden] {
    display: none;
}

.arc-filter-list {
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    min-height: 0;
}

.arc-filter-list label {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.45em;
    padding: 0.28em 0;
    cursor: pointer;
}

.arc-filter-list input {
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 auto;
    align-self: center;
    box-sizing: border-box;
    width: 14px;
    height: 14px;
    margin: 0;
    border: 1px solid #000000;
    background-color: #ffffff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px 10px;
}

.arc-filter-list input:checked {
    background-color: #ffff00;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.1 6.2 4.7 8.8 9.9 3.3' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.arc-filter-list input:focus-visible {
    outline: 1px solid #000000;
    outline-offset: 2px;
}

.arc-filter-eng {
    font-family: "parabolica", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.3;
    color: #000000;
}

.arc-filter-kor {
    font-family: "neutronic-hangeul", -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
    font-size: 12px;
    line-height: 1.3;
    color: #000000;
}

.arc-filter-actions {
    display: flex;
    flex: 0 0 auto;
    justify-content: center;
    gap: 40px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #000000;
}

.arc-filter-actions button {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35em;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-family: "parabolica-medium", "parabolica", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 13px;
    font-weight: 400;
    font-synthesis: none;
    line-height: 1.3;
    color: #000000;
}

.arc-filter-actions button .arc-filter-kor {
    font-size: 12px;
    font-weight: 400;
    font-synthesis: none;
}

/* Desktop: the page stays put. Total and the column titles stay, and only
   the rows move. The bottom rule matches the matter-list line: rows under
   it stay hidden until they scroll up. */
@media (min-width: 769px) {
    html:has(body.page-archive) {
        height: 100%;
        overflow: hidden;
    }

    body.page-archive {
        height: 100%;
        overflow: hidden;
    }

    .page-archive .site-content {
        height: 100dvh;
        min-height: 0;
        overflow: hidden;
    }

    .arc-main {
        height: 100dvh;
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        padding-bottom: calc((max(28px, env(safe-area-inset-bottom)) + 24px + clamp(16px, 2.5vh, 24px)) * 0.6 + var(--arc-half-trim, 0px));
    }

    .arc-total,
    .arc-table-row--head,
    .arc-footer-rule {
        flex: 0 0 auto;
    }

    .arc-total {
        height: var(--arc-preview-space);
        margin: 0;
        padding-bottom: var(--arc-preview-gap);
        box-sizing: border-box;
        justify-content: flex-end;
    }

    .arc-table {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        margin-top: 0;
    }

    .arc-table-body {
        flex: 1 1 auto;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: none;
        scrollbar-width: none;
    }

    .arc-table-body::-webkit-scrollbar {
        display: none;
    }

    .arc-footer-rule {
        position: relative;
        z-index: 2;
        width: 100%;
        height: 1.5px;
        background-color: #000000;
        transition: height 0.15s ease;
    }

    .arc-main.is-short .arc-table,
    .arc-main.is-short .arc-table-body {
        flex-grow: 0;
    }
}

/* Hover thumbnail sits above the table. The table margin reserves that height. */
.page-archive {
    --arc-preview-w: clamp(120px, 13.2vw, 176px);
    --arc-preview-h: calc(var(--arc-preview-w) * 3 / 4);
    --arc-preview-gap: 0.85rem;
    /* Slot is shorter than the old thumbnail by the 20% we cut, so the list gains that height. */
    --arc-preview-space: calc(var(--arc-preview-h) * 0.861 + var(--arc-preview-gap));
}

.arc-row-preview {
    position: fixed;
    z-index: 20;
    width: var(--arc-preview-w);
    height: var(--arc-preview-h);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    background: #000000;
}

.arc-row-preview.is-visible {
    opacity: 1;
    visibility: visible;
}

.arc-row-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    vertical-align: top;
}

.page-archive .about-lang-switch-fixed {
    display: none;
}

@media (max-width: 768px) {
    /* Same as keywords / matter pages: lock the document and scroll inside
       → browser address bar & tab bar stay put; header area stays covered. */
    html:has(body.page-archive) {
        height: 100svh;
        max-height: 100svh;
        overflow: hidden;
        position: fixed;
        inset: 0;
        width: 100%;
        background-color: #000000;
    }

    body.page-archive {
        /* Matter / Project / Date only — category, status & arrow hidden.
           Keep Matter; nudge a little from Date into Project. */
        --arc-table-cols: minmax(0, 1.15fr) minmax(0, 1.85fr) minmax(0, 0.7fr);
        --arc-table-col-inset: 0.7em;
        /* Tighter mobile inset — give the 3-column list more width. */
        --arc-pad-x: clamp(14px, 4vw, 22px);
        --arc-mobile-top: 108px;
        --arc-mobile-radius: 50px;
        height: 100svh;
        max-height: 100svh;
        min-height: 0;
        overflow: hidden;
        position: fixed;
        inset: 0;
        width: 100%;
        overscroll-behavior: none;
        touch-action: manipulation;
    }

    body.page-archive::before {
        inset: auto;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: var(--arc-mobile-radius);
    }

    .page-archive .mobile-placeholder {
        display: none !important;
    }

    .page-archive .site-content {
        display: block !important;
        height: 100svh;
        max-height: 100svh;
        min-height: 0;
        overflow: hidden;
    }

    .page-archive .site-content::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: var(--arc-mobile-top);
        background: #ffffff;
        border-radius: var(--arc-mobile-radius) var(--arc-mobile-radius) 0 0;
        z-index: 10;
        pointer-events: none;
    }

    .page-archive .fixed-header {
        z-index: 20;
    }

    .arc-row-preview {
        display: none;
    }

    .page-archive .about-lang-switch-fixed {
        display: flex !important;
        position: fixed;
        top: var(--arc-mobile-top);
        left: 0;
        right: 0;
        z-index: 11;
        background: transparent;
        padding: 0.35em 0;
        margin: 0;
        justify-content: center;
        align-items: center;
        gap: 0.35em;
        pointer-events: auto;
    }

    .page-archive .about-lang-btn {
        background: none;
        border: none;
        padding: 0;
        font-size: clamp(14px, 3.6vw, 16px);
        font-family: "neutronic-hangeul", -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
        color: #000000;
        cursor: pointer;
        text-decoration: none;
    }

    .page-archive .about-lang-btn.is-active {
        text-decoration: underline;
        text-underline-offset: 0.25em;
        font-weight: 500;
    }

    .page-archive .about-lang-sep {
        color: #000000;
        font-size: inherit;
        pointer-events: none;
    }

    /* Same as desktop web: pin total + column titles + bottom rule;
       only the row list scrolls above the fixed footer line. */
    .arc-main {
        --arc-mobile-bottom-zone: calc(28px + env(safe-area-inset-bottom, 0px));
        position: fixed;
        left: 0;
        right: 0;
        top: 156px;
        bottom: 0;
        z-index: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
        padding-top: 4px;
        padding-bottom: var(--arc-mobile-bottom-zone);
        overflow: hidden;
        overscroll-behavior: none;
        border-radius: 0 0 var(--arc-mobile-radius) var(--arc-mobile-radius);
    }

    .arc-total,
    .arc-footer-rule {
        flex: 0 0 auto;
    }

    .arc-total {
        margin: 0 0 0.55rem;
        font-size: 12.48px; /* 15.6px × 0.8 */
    }

    .arc-table {
        margin-top: 8px;
        flex: 1 1 auto;
        min-height: 0;
        overflow: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x pan-y;
        scrollbar-width: none;
    }

    .arc-table::-webkit-scrollbar {
        display: none;
    }

    .arc-table-row--head {
        position: sticky;
        top: 0;
        z-index: 3;
        background: #ffffff;
    }

    .arc-table-row--head .arc-table-cell.is-filtered {
        background: #ffff00;
    }

    /* Mobile tap — same yellow flash as matter lists */
    .arc-table-row--link {
        -webkit-tap-highlight-color: transparent;
    }

    .arc-table-row--link:active::before,
    .arc-table-row--link.is-pressing::before {
        opacity: 1;
    }

    .arc-table-row--link:active::after,
    .arc-table-row--link.is-pressing::after {
        opacity: 1;
    }

    .arc-table-row.is-last.arc-table-row--link:active::after,
    .arc-table-row.is-last.arc-table-row--link.is-pressing::after {
        opacity: 0;
    }

    .arc-main:has(.arc-table-row.is-last:active) .arc-footer-rule,
    .arc-main:has(.arc-table-row.is-last.is-pressing) .arc-footer-rule {
        height: 2.1px;
    }

    .arc-table-row--link:active,
    .arc-table-row--link.is-pressing {
        box-shadow: inset 0 -2.1px 0 #000000;
    }

    .arc-table-row.is-last.arc-table-row--link:active,
    .arc-table-row.is-last.arc-table-row--link.is-pressing {
        box-shadow: none;
    }

    .arc-table-body {
        overflow: visible;
    }

    /* Short / filtered lists: table hugs content so the footer rule
       sits under the last row instead of at the viewport bottom. */
    .arc-main.is-short .arc-table {
        flex-grow: 0;
        flex-shrink: 0;
        overflow: hidden;
    }

    .arc-footer-rule {
        position: relative;
        z-index: 4;
        width: 100%;
        height: 1.5px;
        min-height: 1.5px;
        background-color: #000000;
        flex: 0 0 1.5px;
    }

    /* White band under the line so rows never show through the canvas corner. */
    .arc-footer-rule::after {
        content: "";
        position: absolute;
        left: calc(-1 * var(--arc-pad-x));
        right: calc(-1 * var(--arc-pad-x));
        top: 100%;
        height: var(--arc-mobile-bottom-zone);
        background: #ffffff;
        border-radius: 0 0 var(--arc-mobile-radius) var(--arc-mobile-radius);
        pointer-events: none;
    }

    /* Language toggle — same pattern as matter mobile lists */
    html:is(.aom-lang-eng, [data-aom-lang="eng"]) .page-archive .arc-table-kor,
    html:is(.aom-lang-eng, [data-aom-lang="eng"]) .page-archive .arc-filter-kor,
    body.page-archive.archive-lang-eng .arc-table-kor,
    body.page-archive.archive-lang-eng .arc-filter-kor {
        display: none !important;
    }

    html:is(.aom-lang-kor, [data-aom-lang="kor"]) .page-archive .arc-table-eng,
    html:is(.aom-lang-kor, [data-aom-lang="kor"]) .page-archive .arc-filter-eng,
    body.page-archive.archive-lang-kor .arc-table-eng,
    body.page-archive.archive-lang-kor .arc-filter-eng {
        display: none !important;
    }

    html:is(.aom-lang-kor, [data-aom-lang="kor"]) .page-archive .arc-table-row:not(.arc-table-row--head)
        .arc-table-cell:not(:has(.arc-table-kor)) > .arc-table-eng:not(.arc-table-short),
    body.page-archive.archive-lang-kor .arc-table-row:not(.arc-table-row--head)
        .arc-table-cell:not(:has(.arc-table-kor)) > .arc-table-eng:not(.arc-table-short) {
        display: block !important;
    }

    /* Default kor text only — short/mobile variants are opted in below (matter-list style). */
    html:is(.aom-lang-kor, [data-aom-lang="kor"]) .page-archive .arc-table-row:not(.arc-table-row--head)
        .arc-table-cell:has(.arc-table-kor) > .arc-table-kor:not(.arc-table-short):not(.arc-table-kor-mobile),
    body.page-archive.archive-lang-kor .arc-table-row:not(.arc-table-row--head)
        .arc-table-cell:has(.arc-table-kor) > .arc-table-kor:not(.arc-table-short):not(.arc-table-kor-mobile) {
        display: block !important;
    }

    .arc-table-cell {
        padding: 0.475em 0.45em;
        gap: 0;
        flex-wrap: nowrap;
        align-items: center;
        align-content: center;
    }

    .arc-table-row {
        align-items: center;
    }

    .arc-table-row:not(.arc-table-row--head) .arc-table-cell--matter,
    .arc-table-row:not(.arc-table-row--head) .arc-table-cell:nth-child(2),
    .arc-table-row:not(.arc-table-row--head) .arc-table-cell--date {
        align-items: center;
        align-content: center;
    }

    .arc-table-row--head .arc-table-cell {
        align-items: center;
        align-content: center;
    }

    .arc-table-row--head .arc-table-eng,
    .arc-table-row--head .arc-table-kor {
        transform: none;
        line-height: 1;
    }

    .arc-table-row:not(.arc-table-row--head) .arc-table-cell--date {
        align-items: center;
        align-content: center;
        gap: 0;
    }

    .arc-table-eng,
    .arc-table-kor,
    .arc-table-date {
        line-height: 1.3;
        transform: none;
    }

    .arc-table-date-md {
        display: none;
    }

    /* Hide category (3rd) with status & arrow on mobile. */
    .arc-table-cell:nth-child(3),
    .arc-table-cell--status,
    .arc-table-cell--arrow,
    .arc-table-badge {
        display: none !important;
    }

    /*
      Project titles (2nd col) — same mobile rules as matter lists:
      prefer *-mobile when present, otherwise short, otherwise full.
    */
    html:is(.aom-lang-eng, [data-aom-lang="eng"]) .page-archive .arc-table-row:not(.arc-table-row--head)
        .arc-table-cell:nth-child(2):has(.arc-table-eng-mobile)
        > .arc-table-eng:not(.arc-table-eng-mobile),
    body.page-archive.archive-lang-eng .arc-table-row:not(.arc-table-row--head)
        .arc-table-cell:nth-child(2):has(.arc-table-eng-mobile)
        > .arc-table-eng:not(.arc-table-eng-mobile) {
        display: none !important;
    }

    html:is(.aom-lang-eng, [data-aom-lang="eng"]) .page-archive .arc-table-row:not(.arc-table-row--head)
        .arc-table-cell:nth-child(2) .arc-table-eng-mobile,
    body.page-archive.archive-lang-eng .arc-table-row:not(.arc-table-row--head)
        .arc-table-cell:nth-child(2) .arc-table-eng-mobile {
        display: block !important;
    }

    html:is(.aom-lang-eng, [data-aom-lang="eng"]) .page-archive .arc-table-row:not(.arc-table-row--head)
        .arc-table-cell:nth-child(2):not(:has(.arc-table-eng-mobile)):has(> .arc-table-eng.arc-table-short)
        > .arc-table-eng:not(.arc-table-short),
    body.page-archive.archive-lang-eng .arc-table-row:not(.arc-table-row--head)
        .arc-table-cell:nth-child(2):not(:has(.arc-table-eng-mobile)):has(> .arc-table-eng.arc-table-short)
        > .arc-table-eng:not(.arc-table-short) {
        display: none !important;
    }

    html:is(.aom-lang-eng, [data-aom-lang="eng"]) .page-archive .arc-table-row:not(.arc-table-row--head)
        .arc-table-cell:nth-child(2):not(:has(.arc-table-eng-mobile)) > .arc-table-eng.arc-table-short,
    body.page-archive.archive-lang-eng .arc-table-row:not(.arc-table-row--head)
        .arc-table-cell:nth-child(2):not(:has(.arc-table-eng-mobile)) > .arc-table-eng.arc-table-short {
        display: block !important;
    }

    html:is(.aom-lang-kor, [data-aom-lang="kor"]) .page-archive .arc-table-row:not(.arc-table-row--head)
        .arc-table-cell:nth-child(2):has(.arc-table-kor-mobile)
        > .arc-table-kor:not(.arc-table-kor-mobile),
    body.page-archive.archive-lang-kor .arc-table-row:not(.arc-table-row--head)
        .arc-table-cell:nth-child(2):has(.arc-table-kor-mobile)
        > .arc-table-kor:not(.arc-table-kor-mobile) {
        display: none !important;
    }

    html:is(.aom-lang-kor, [data-aom-lang="kor"]) .page-archive .arc-table-row:not(.arc-table-row--head)
        .arc-table-cell:nth-child(2) .arc-table-kor-mobile,
    body.page-archive.archive-lang-kor .arc-table-row:not(.arc-table-row--head)
        .arc-table-cell:nth-child(2) .arc-table-kor-mobile {
        display: block !important;
    }

    html:is(.aom-lang-kor, [data-aom-lang="kor"]) .page-archive .arc-table-row:not(.arc-table-row--head)
        .arc-table-cell:nth-child(2):not(:has(.arc-table-kor-mobile)):has(> .arc-table-kor.arc-table-short)
        > .arc-table-kor:not(.arc-table-short),
    body.page-archive.archive-lang-kor .arc-table-row:not(.arc-table-row--head)
        .arc-table-cell:nth-child(2):not(:has(.arc-table-kor-mobile)):has(> .arc-table-kor.arc-table-short)
        > .arc-table-kor:not(.arc-table-short) {
        display: none !important;
    }

    html:is(.aom-lang-kor, [data-aom-lang="kor"]) .page-archive .arc-table-row:not(.arc-table-row--head)
        .arc-table-cell:nth-child(2):not(:has(.arc-table-kor-mobile)) > .arc-table-kor.arc-table-short,
    body.page-archive.archive-lang-kor .arc-table-row:not(.arc-table-row--head)
        .arc-table-cell:nth-child(2):not(:has(.arc-table-kor-mobile)) > .arc-table-kor.arc-table-short {
        display: block !important;
    }

    .arc-table-cell:nth-child(2),
    .arc-table-cell--date {
        padding-left: var(--arc-table-col-inset);
    }

    .arc-table-cell--date {
        justify-content: flex-start;
        text-align: left;
        padding-right: 0;
        overflow: visible;
    }

    .arc-table-row:not(.arc-table-row--head) .arc-table-cell--date {
        justify-content: flex-start;
    }

    .arc-table-row--head .arc-table-cell--date {
        justify-content: flex-start;
        gap: 0.25em;
    }

    .arc-table-eng {
        font-size: 13.2px;
    }

    .arc-table-kor {
        font-size: 12px;
    }

    .arc-table-row--head .arc-table-eng,
    .arc-table-row--head .arc-table-kor {
        font-size: 12px;
    }

    .arc-table-date,
    .arc-table-row--head .arc-table-cell--date .arc-table-eng,
    .arc-table-row--head .arc-table-cell--date .arc-table-kor {
        font-size: 13.2px;
        flex: 0 0 auto;
        width: auto;
        min-width: 0;
        text-align: left;
    }

    .arc-table-row--head .arc-table-cell--date .arc-table-eng,
    .arc-table-row--head .arc-table-cell--date .arc-table-kor {
        font-size: 12px;
    }

    .arc-filter-eng {
        font-size: 13.2px;
    }

    .arc-filter-kor {
        font-size: 12px;
    }

    .arc-sort-date {
        width: 10px;
        height: 10px;
    }
}

/* To be updated: 회색 바탕은 그대로, 검은 테두리만 */
.arc-table-cell--date > .arc-table-badge:not(.arc-table-badge--solid):not(.arc-table-badge--progress):not(.arc-table-badge--series) {
    border: 1.7px solid #000000;
    padding: calc(0.32em - 1.7px) calc(0.95em - 1.7px);
}

/* 데스크톱: 표(와 Total) 너비를 헤더 점선 너비에 맞춤 (archive.js fitToHeader 가 잰 값) */
@media (min-width: 769px) {
    .arc-main {
        padding-left: var(--arc-head-l, var(--arc-pad-x));
        padding-right: var(--arc-head-r, var(--arc-pad-x));
    }
}

/* 웹: 날짜 칸의 배지(In Progress · To be updated)를 왼쪽 한 줄로 맞춤.
   날짜 글자 폭이 숫자마다 달라서(2026. 09 / 2026. 03) 바로 뒤에 붙는 배지 시작점이 어긋났다 → 날짜 폭 고정 */
@media (min-width: 769px) {
    .arc-table-row:not(.arc-table-row--head) .arc-table-date {
        flex: 0 0 5.3em;
    }
}
