/* EMVCo app styles. Global styles (nav, breadcrumbs, cards, badges) live in
   base.css — only EMVCo-specific styles belong here. */

/* Family filter chips on the list page */
.emv-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0 1.5rem;
}

.emv-filter-chip {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border: 1px solid var(--border-color, #d0d0d0);
    border-radius: 999px;
    font-size: 0.85rem;
    text-decoration: none;
    color: var(--text-color, #333);
    background: var(--card-bg, #fff);
    transition: background 0.15s, border-color 0.15s;
}

.emv-filter-chip:hover {
    border-color: var(--accent-color, #0066cc);
}

.emv-filter-chip.active {
    background: var(--accent-color, #0066cc);
    border-color: var(--accent-color, #0066cc);
    color: #fff;
}

/* Count badge inside a filter chip */
.emv-filter-count {
    display: inline-block;
    margin-left: 0.3rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
    background: rgba(0, 0, 0, 0.07);
    color: inherit;
}

.emv-filter-chip.active .emv-filter-count {
    background: rgba(255, 255, 255, 0.25);
}

/* Taxonomy chips on the detail page */
.emv-tags {
    margin-top: 0.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.emv-chip {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.78rem;
    background: var(--tag-bg, #eef2f7);
    color: var(--tag-color, #33506e);
}

.emv-chip-type {
    background: #e7f0ff;
    color: #1452a3;
}

.emv-chip-product {
    background: #f0ece1;
    color: #6b5526;
}

/* Extracted document text.
   This is the whole substance of an EMVCo detail page, so it reads as a
   document: full height, no inner scroll region, no chrome around it. It used
   to sit collapsed inside a <details> with a scrollbox, which hid the only
   content the page had. */
.emv-doc-text {
    margin-top: 1.6rem;
    line-height: 1.6;
    overflow-wrap: break-word;
}

.emv-doc-text > p {
    margin: 0 0 0.9rem;
}

.emv-doc-heading {
    font-weight: 600;
    line-height: 1.3;
    margin: 1.8rem 0 0.6rem;
}

h2.emv-doc-heading {
    font-size: 1.15rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid var(--border-color, #e0e0e0);
}

h3.emv-doc-heading {
    font-size: 1rem;
    color: var(--muted-color, #555);
}

.emv-doc-list {
    margin: 0 0 1rem;
    padding-left: 1.3rem;
}

.emv-doc-list li {
    margin-bottom: 0.35rem;
}

/* Sub-bullets ("o" markers in the source PDF) indent one level further. */
.emv-doc-list li.emv-doc-depth-1 {
    margin-left: 1.3rem;
    list-style-type: circle;
}

/* Caveats sit under the document, not in front of it, and each one is only
   rendered when it is actually true of this document. */
.emv-doc-caveats {
    margin-top: 1.6rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--border-color, #e0e0e0);
    font-size: 0.85rem;
    color: var(--muted-color, #777);
}

.emv-doc-caveats p {
    margin: 0 0 0.4rem;
}

.emv-doc-text.empty-content {
    color: var(--muted-color, #777);
}

.emv-footer {
    margin-top: 1.4rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color, #e0e0e0);
    font-size: 0.92rem;
}

/* Change-history list */
.emv-version-list {
    list-style: none;
    padding: 0;
    margin: 1.2rem 0;
}

.emv-version {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color, #ececec);
}

.emv-version-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.25rem;
}

.emv-version-title {
    font-size: 0.95rem;
    color: var(--text-color, #333);
}
