/* =====================================================================
   com_amsdokumenti - the public downloads page.

   Written for this site rather than renamed from the build it was ported
   from: that stylesheet carried the previous client's palette half as
   var(--nn-*) tokens and half as bare hex (#1E1712, #4A3E34, #F4EDE1). A
   token rename catches the first kind and leaves the second, and the page
   then renders in somebody else's browns with nothing reporting an error.

   rt_amsyseu is a dark theme; colours match media/css/cjenik.css so the
   two component pages are visibly one site.
   ===================================================================== */

.amsd-page {
    --amsd-ink-2:  var(--am-bg2, #0d1220);
    --amsd-text:   var(--am-text, #c3ccdd);
    --amsd-bright: var(--am-text-active, #ffffff);
    --amsd-muted:  #8b95ab;
    --amsd-violet: var(--am-accent1, #6c3bf5);
    --amsd-cyan:   var(--am-accent2, #22e1ff);
    --amsd-line:   rgba(168, 178, 198, .18);

    padding: clamp(2.5rem, 6vw, 5rem) 0;
    color: var(--amsd-text);
}

.amsd-shell {
    width: min(100% - 2rem, 900px);
    margin-inline: auto;
}

.amsd-head { margin-bottom: clamp(1.8rem, 4vw, 2.6rem); }

.amsd-eyebrow {
    margin: 0 0 .4rem;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--amsd-cyan);
}

.amsd-title {
    margin: 0 0 .8rem;
    font-size: clamp(2rem, 4.5vw, 3rem);
    line-height: 1.1;
    color: var(--amsd-bright);
}

.amsd-lead {
    max-width: 66ch;
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.65;
}

.amsd-empty {
    margin: 2rem 0 0;
    padding: 1.1rem 1.3rem;
    border-left: 3px solid var(--amsd-violet);
    background: var(--amsd-ink-2);
    color: var(--amsd-text);
}

.amsd-list {
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
    border-top: 1px solid var(--amsd-line);
}

.amsd-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--amsd-line);
}

/* The extension badge. It is aria-hidden because the same three letters
   are printed in the meta line below, where a screen reader will read them
   in context instead of as a bare shout before the title. */
.amsd-ext {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.1rem;
    padding: .35rem .5rem;
    border-radius: 6px;
    background: rgba(108, 59, 245, .18);
    border: 1px solid rgba(108, 59, 245, .4);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    color: var(--amsd-cyan);
}

.amsd-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: .2rem;
    min-width: 0;
}

/* The document's own link. It is NOT .amsd-title: that is the page's h1,
   and one class doing both jobs made the h1 inherit the link's size the
   moment the two rules were written in the wrong order. */
a.amsd-doc {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--amsd-bright);
    text-decoration: none;
    overflow-wrap: anywhere;
}

a.amsd-doc:hover { color: var(--amsd-cyan); text-decoration: underline; }

.amsd-desc {
    font-size: .9rem;
    line-height: 1.55;
    color: var(--amsd-text);
}

.amsd-meta {
    font-size: .8rem;
    color: var(--amsd-muted);
}

@media (max-width: 560px) {
    .amsd-item {
        flex-wrap: wrap;
        gap: .7rem;
    }

    .amsd-body { flex-basis: 100%; order: 3; }
}
