/*  reference.css  — kb.securedcs.com spare-parts style, scoped to /Ref/* pages.
    Introduces a warm-cream + teal palette *only inside* .ref-article and
    .ref-rail-downloads. Everything else on knowledge.securedcs.com keeps its
    existing look and feel.  */

.ref-article {
    --ref-teal: #01696F;
    --ref-teal-hover: #0C4E54;
    --ref-warn: #964219;
    --ref-text: #28251D;
    --ref-muted: #7A7974;
    --ref-faint: #BAB9B4;
    --ref-border: #D4D1CA;
    --ref-bg: #F7F6F2;
    --ref-surf: #FBFBF9;

    color: var(--ref-text);
    line-height: 1.55;
}

.ref-topstrip {
    background: var(--ref-teal);
    color: #fff;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    margin: 4px 0 24px;
    flex-wrap: wrap;
}

.ref-topstrip__back {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    transition: background 0.15s;
}

.ref-topstrip__back:hover {
    background: rgba(255, 255, 255, 0.15);
}

.ref-topstrip__bc {
    font-size: 13px;
    opacity: 0.92;
}

.ref-hero {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin: 4px 0 8px;
    flex-wrap: wrap;
}

.ref-hero__photo,
.ref-hero__nophoto {
    width: 190px;
    height: 190px;
    flex: 0 0 auto;
    border-radius: 10px;
    background: var(--ref-surf);
}

.ref-hero__photo {
    border: 1px solid var(--ref-border);
    object-fit: contain;
    padding: 8px;
}

.ref-hero__nophoto {
    border: 1px dashed var(--ref-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ref-muted);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.ref-hero__meta {
    flex: 1 1 320px;
    min-width: 260px;
}

.ref-hero__meta h1 {
    margin: 0 0 8px;
    font-size: 30px;
    line-height: 1.15;
    color: var(--ref-teal);
    font-weight: 700;
}

.ref-hero__subtitle {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 600;
    color: var(--ref-text);
}

.ref-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ref-chip {
    background: var(--ref-surf);
    border: 1px solid var(--ref-border);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 13px;
    color: var(--ref-text);
    white-space: nowrap;
}

.ref-chip b {
    color: var(--ref-muted);
    font-weight: 600;
}

.ref-chip--primary {
    background: var(--ref-teal);
    color: #fff;
    border-color: var(--ref-teal);
}

.ref-chip--primary b { color: rgba(255, 255, 255, 0.85); }

.ref-section {
    margin-top: 34px;
}

.ref-section__title {
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ref-muted);
    border-bottom: 2px solid var(--ref-border);
    padding-bottom: 8px;
    margin: 0 0 16px;
    font-weight: 700;
}

.ref-desc {
    background: #fff;
    border: 1px solid var(--ref-border);
    border-radius: 10px;
    padding: 14px 26px 20px;
}

.ref-desc h1,
.ref-desc h2,
.ref-desc h3 {
    color: var(--ref-teal);
}

.ref-desc table {
    border-collapse: collapse;
    width: 100%;
    margin: 14px 0;
    font-size: 14px;
}

.ref-desc td,
.ref-desc th {
    border: 1px solid var(--ref-border);
    padding: 8px 11px;
    vertical-align: top;
    text-align: left;
}

.ref-desc tr td:first-child {
    background: var(--ref-surf);
    font-weight: 600;
    width: 32%;
}

/* --- numbered reference list on hub pages --------------------------------- */

.ref-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid var(--ref-border);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.ref-list__row + .ref-list__row {
    border-top: 1px solid var(--ref-border);
}

.ref-list__link {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    text-decoration: none;
    color: var(--ref-text);
    transition: background 0.12s;
}

.ref-list__link--muted { color: var(--muted, #6b7280); background: transparent; cursor: default; }
.ref-list__link--muted .ref-list__num { color: var(--muted, #6b7280); }
.ref-list__link--muted:hover { background: transparent; }

.ref-list__link:hover {
    background: var(--ref-surf);
}

.ref-list__num {
    font-family: 'JetBrains Mono', 'SFMono-Regular', Menlo, monospace;
    font-size: 14px;
    font-weight: 700;
    color: var(--ref-teal);
    letter-spacing: 0.02em;
}

.ref-list__title {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-weight: 600;
    font-size: 15px;
}

.ref-list__sub {
    font-weight: 400;
    color: var(--ref-muted);
    font-size: 13px;
}

.ref-list__arrow {
    color: var(--ref-muted);
    font-size: 22px;
    line-height: 1;
}

/* --- right-rail Downloads panel ------------------------------------------ */

.ref-rail-downloads {
    --ref-teal: #01696F;
    --ref-teal-hover: #0C4E54;
    --ref-text: #28251D;
    --ref-muted: #7A7974;
    --ref-border: #D4D1CA;
    --ref-surf: #FBFBF9;

    background: #fff;
    border: 1px solid var(--ref-border);
    border-radius: 10px;
    padding: 14px 16px 16px;
    margin-bottom: 20px;
    color: var(--ref-text);
}

.ref-rail__title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ref-muted);
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--ref-border);
}

.ref-rail-files {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ref-filetile {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: var(--ref-surf);
    border: 1px solid var(--ref-border);
    border-radius: 8px;
    font-size: 13px;
}

.ref-filetile--primary {
    border-color: var(--ref-teal);
    background: #fff;
    box-shadow: 0 1px 6px rgba(1, 105, 111, 0.10);
}

.ref-filetile__ic {
    font-size: 18px;
    line-height: 1;
    flex: 0 0 auto;
    padding-top: 2px;
}

.ref-filetile__body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ref-filetile__name {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
    color: var(--ref-text);
}

.ref-filetile__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--ref-muted);
}

.ref-filetile__size {
    color: var(--ref-muted);
}

.ref-filetile__actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.ref-btn {
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
    border: 1px solid transparent;
    transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.ref-btn--primary {
    background: var(--ref-teal);
    color: #fff;
    border-color: var(--ref-teal);
}

.ref-btn--primary:hover {
    background: var(--ref-teal-hover);
    border-color: var(--ref-teal-hover);
}

.ref-btn--outline {
    background: #fff;
    color: var(--ref-text);
    border-color: var(--ref-border);
}

.ref-btn--outline:hover {
    border-color: var(--ref-teal);
    color: var(--ref-teal);
}

@media (max-width: 700px) {
    .ref-hero__photo,
    .ref-hero__nophoto { width: 140px; height: 140px; }
    .ref-hero__meta h1 { font-size: 24px; }
    .ref-list__link { grid-template-columns: 56px 1fr auto; padding: 10px 12px; }
}

/* ==========================================================================
   Hardware page — grouped Downloads (extends .ref-rail-downloads)
   ========================================================================== */

.hw-file-group {
    margin-top: 14px;
}
.hw-file-group:first-child {
    margin-top: 4px;
}
.hw-file-group__title {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--ref-teal-hover, #0d7a75);
    margin: 0 0 6px 0;
    padding: 0 0 4px 0;
    border-bottom: 1px solid var(--ref-border, #e6ecec);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}
.hw-file-group__count {
    font-size: 11px;
    color: var(--ref-text-muted, #6b7876);
    font-weight: 500;
}
.ref-chip--warn {
    background: #fff4d6;
    color: #7a5b00;
    border: 1px solid #e6c465;
}
