.archive-themes { width: 100%; max-width: 860px; }
.archive-themes__hint { font-size: .9rem; color: #626b76; margin: .5rem 0 0; }
.archive-themes__results { display: grid; gap: 1rem; }
.archive-themes__card { border: 1px solid #e1e5eb; border-radius: 16px; padding: 1.5rem; background: #fff; overflow-wrap: anywhere; }
.archive-themes__card h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.archive-themes__card dt { font-size: .9rem; margin-top: .75rem; }
.archive-themes__card dd { margin: .35rem 0 0; }
.archive-themes button:disabled { opacity: .65; cursor: wait; }
.archive-themes__actions { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1.5rem; }
.archive-themes__actions form { margin: 0; flex-shrink: 0; }
.archive-themes__export-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; column-gap: 1rem; margin-left: auto; }
.archive-themes__actions .site-btn { min-height: 38px; }
.archive-themes__download { margin-left: auto; padding: .5rem 0; border: 0; background: transparent; color: #315d85; font: inherit; font-size: .8rem; text-align: right; cursor: pointer; }
.archive-themes__download:hover { color: #174b91; text-decoration: underline; text-underline-offset: 3px; }
.archive-themes__download:focus-visible { outline: 2px solid #3678ce; outline-offset: 3px; border-radius: 3px; }
.archive-themes__loading { display: flex; align-items: center; gap: .85rem; }
.archive-themes__loading[hidden] { display: none; }
.archive-themes__spinner { width: 1.5rem; height: 1.5rem; flex-shrink: 0; border: 3px solid #e1e5eb; border-top-color: #426a85; border-radius: 50%; animation: archive-theme-spin 1s linear infinite; }
@keyframes archive-theme-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .archive-themes__spinner { animation: none; }
}

.archive-themes__group-title { font-size: 1.1rem; margin: 1.5rem 0 .5rem; }
.archive-themes__group-description { color: #626b76; font-size: .9rem; line-height: 1.7; margin: 0 0 1rem; }
.archive-themes__toggle { display: inline-flex; align-items: center; gap: .55rem; padding: .5rem 0; border: 0; background: transparent; color: #315d85; font: inherit; font-size: .9rem; cursor: pointer; }
.archive-themes__toggle:hover { color: #174b91; text-decoration: underline; text-underline-offset: 3px; }
.archive-themes__toggle:focus-visible { outline: 2px solid #3678ce; outline-offset: 3px; border-radius: 3px; }
.archive-themes__chevron { width: .45rem; height: .45rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin: 0 .15rem .2rem; }
.archive-themes__toggle[aria-expanded="true"] .archive-themes__chevron { transform: rotate(225deg); margin-bottom: -.2rem; }
.archive-themes__detail-panel { margin-top: .5rem; padding-top: .75rem; border-top: 1px solid #e1e5eb; }
.archive-themes__detail-panel [data-detail-error]:empty { display: none; }
.archive-themes__card dd { white-space: pre-wrap; }

@media (max-width: 767.98px) {
    .archive-themes__actions { flex-direction: column; align-items: stretch; }
    .archive-themes__actions form { align-self: center; }
    .archive-themes__export-actions { width: 100%; margin-left: 0; justify-content: space-between; flex-wrap: nowrap; gap: .75rem; }
    .archive-themes__export-actions .archive-themes__download { margin-left: 0; }
    .archive-themes__export-actions [data-download-themes] { order: 0; text-align: left; }
    .archive-themes__export-actions [data-copy-themes] { order: 1; text-align: right; }
}

.archive-themes__examples { margin-top: .35rem; font-size: .9rem; }
.archive-themes__examples > summary { cursor: pointer; color: #365f91; text-decoration: underline; }
.archive-themes__examples > summary:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.archive-themes__examples ul { padding-left: 1.5rem; }
.archive-themes__examples li + li { margin-top: .6rem; }

.archive-themes__directions { border: 0; padding: 0; margin: 1rem 0; min-width: 0; }
.archive-themes__direction-options { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; }
.archive-themes__direction-options label { cursor: pointer; display: flex; align-items: center; gap: .4rem; }
