/* ══════════════════════════════════════════════════════════════════
   Health Canada Recalls — Frontend Template Styles
   ══════════════════════════════════════════════════════════════════ */

/* ── Variables ────────────────────────────────────────────────────── */
:root {
    --hcr-red:        #cc0000;
    --hcr-red-dark:   #990000;
    --hcr-gold:       #f0a500;
    --hcr-gold-bg:    #fff8e1;
    --hcr-grey-bg:    #f7f7f7;
    --hcr-border:     #e0e0e0;
    --hcr-text:       #1a1a1a;
    --hcr-muted:      #666;
    --hcr-radius:     6px;
}

/* ══ SINGLE RECALL ══════════════════════════════════════════════════ */

.hcr-single { max-width: 860px; margin: 0 auto; font-family: inherit; color: var(--hcr-text); }

/* ── Alert banner at the top ──────────────────────────────────────── */
.hcr-alert-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--hcr-red);
    color: #fff;
    padding: 14px 20px;
    border-radius: var(--hcr-radius) var(--hcr-radius) 0 0;
    margin-bottom: 0;
}
.hcr-alert-banner .hcr-alert-icon { font-size: 28px; line-height: 1; flex-shrink: 0; }
.hcr-alert-banner .hcr-alert-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.hcr-alert-banner .hcr-alert-title { font-size: 1.2em; font-weight: 700; line-height: 1.3; margin: 2px 0 0; }

/* ── Meta bar ─────────────────────────────────────────────────────── */
.hcr-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    background: #fff;
    border: 1px solid var(--hcr-border);
    border-top: none;
    padding: 10px 20px;
    font-size: 13px;
    color: var(--hcr-muted);
    margin-bottom: 20px;
}
.hcr-meta-bar .hcr-meta-item { display: flex; align-items: center; gap: 5px; }
.hcr-meta-bar .hcr-meta-item strong { color: var(--hcr-text); }
.hcr-meta-bar .hcr-category-badge {
    display: inline-block;
    background: var(--hcr-red);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 20px;
    text-decoration: none;
}
.hcr-meta-bar .hcr-category-badge:hover { background: var(--hcr-red-dark); }

/* ── Product images ───────────────────────────────────────────────── */
.hcr-product-images {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 24px;
}
.hcr-product-image {
    margin: 0;
    border: 1px solid var(--hcr-border);
    border-radius: var(--hcr-radius);
    overflow: hidden;
    background: #fff;
}
.hcr-product-image img {
    display: block;
    max-width: 200px;
    height: auto;
}

/* ── Summary quick-facts box ──────────────────────────────────────── */
.hcr-summary-box {
    background: var(--hcr-gold-bg);
    border-left: 4px solid var(--hcr-gold);
    padding: 16px 20px;
    margin-bottom: 24px;
    border-radius: 0 var(--hcr-radius) var(--hcr-radius) 0;
}
.hcr-summary-box h3 {
    margin: 0 0 10px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #7a5000;
    font-weight: 700;
}
.hcr-summary-box dl { margin: 0; }
.hcr-summary-box dt {
    font-weight: 600;
    float: left;
    clear: left;
    min-width: 130px;
    color: var(--hcr-text);
    padding: 2px 0;
}
.hcr-summary-box dd {
    margin-left: 140px;
    padding: 2px 0;
    color: #444;
}

/* ── Content sections ─────────────────────────────────────────────── */
.hcr-content { line-height: 1.7; }
.hcr-content h2 {
    font-size: 1.05em;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--hcr-red);
    border-bottom: 2px solid var(--hcr-border);
    padding-bottom: 6px;
    margin: 28px 0 12px;
}
.hcr-content h2:first-child { margin-top: 0; }
.hcr-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-bottom: 16px;
}
.hcr-content table th {
    background: var(--hcr-grey-bg);
    border: 1px solid var(--hcr-border);
    padding: 8px 12px;
    text-align: left;
    font-weight: 600;
}
.hcr-content table td {
    border: 1px solid var(--hcr-border);
    padding: 8px 12px;
    vertical-align: top;
}
.hcr-content table tr:nth-child(even) td { background: #fafafa; }
.hcr-content ul, .hcr-content ol { padding-left: 1.4em; }
.hcr-content li { margin-bottom: 4px; }

/* ── What to do callout ───────────────────────────────────────────── */
.hcr-whatodo-box {
    background: #fff3f3;
    border: 1px solid #f5c0c0;
    border-left: 4px solid var(--hcr-red);
    border-radius: 0 var(--hcr-radius) var(--hcr-radius) 0;
    padding: 16px 20px;
    margin-bottom: 24px;
}
.hcr-whatodo-box h2 {
    color: var(--hcr-red) !important;
    border: none !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
    font-size: 1em !important;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.hcr-whatodo-box ul, .hcr-whatodo-box p { margin: 0; }

/* ── Credit / attribution block ───────────────────────────────────── */
.hcr-credit-block {
    border-top: 2px solid var(--hcr-border);
    margin-top: 32px;
    padding-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
}
.hcr-credit-logo img { height: 36px; display: block; }
.hcr-credit-text { flex: 1; min-width: 200px; font-size: 13px; color: var(--hcr-muted); line-height: 1.6; }
.hcr-credit-text a { color: var(--hcr-red); text-decoration: none; }
.hcr-credit-text a:hover { text-decoration: underline; }
.hcr-credit-source {
    display: inline-block;
    margin-top: 8px;
    background: var(--hcr-red);
    color: #fff !important;
    padding: 7px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
}
.hcr-credit-source:hover { background: var(--hcr-red-dark); }

/* ══ ARCHIVE / CATEGORY LIST ════════════════════════════════════════ */

.hcr-archive-header {
    border-bottom: 3px solid var(--hcr-red);
    padding-bottom: 12px;
    margin-bottom: 24px;
}
.hcr-archive-header h1 { margin: 0 0 4px; font-size: 1.5em; }
.hcr-archive-header p  { margin: 0; color: var(--hcr-muted); font-size: 14px; }

.hcr-recall-list { list-style: none; margin: 0; padding: 0; }

.hcr-recall-card {
    display: flex;
    gap: 16px;
    background: #fff;
    border: 1px solid var(--hcr-border);
    border-left: 4px solid var(--hcr-red);
    border-radius: 0 var(--hcr-radius) var(--hcr-radius) 0;
    padding: 16px;
    margin-bottom: 14px;
    transition: box-shadow .15s;
}
.hcr-recall-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,.08); }

.hcr-card-thumb {
    flex-shrink: 0;
    width: 90px;
    height: 68px;
    overflow: hidden;
    border-radius: 4px;
    background: var(--hcr-grey-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}
.hcr-card-thumb img { width: 90px; height: 68px; object-fit: cover; display: block; }
.hcr-card-thumb .hcr-no-thumb { font-size: 28px; }

.hcr-card-body { flex: 1; min-width: 0; }
.hcr-card-body h2 {
    margin: 0 0 6px;
    font-size: 1em;
    line-height: 1.4;
}
.hcr-card-body h2 a { color: var(--hcr-text); text-decoration: none; }
.hcr-card-body h2 a:hover { color: var(--hcr-red); }
.hcr-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    font-size: 12px;
    color: var(--hcr-muted);
    margin-bottom: 6px;
}
.hcr-card-excerpt { font-size: 13px; color: #555; line-height: 1.5; }
.hcr-card-badge {
    display: inline-block;
    background: var(--hcr-red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.hcr-pagination { margin-top: 24px; text-align: center; }
.hcr-pagination .page-numbers {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid var(--hcr-border);
    border-radius: 4px;
    margin: 2px;
    color: var(--hcr-text);
    text-decoration: none;
    font-size: 14px;
}
.hcr-pagination .page-numbers.current { background: var(--hcr-red); color: #fff; border-color: var(--hcr-red); }
.hcr-pagination .page-numbers:hover:not(.current) { background: var(--hcr-grey-bg); }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .hcr-alert-banner { padding: 12px 14px; }
    .hcr-alert-banner .hcr-alert-title { font-size: 1em; }
    .hcr-summary-box dt { float: none; min-width: 0; }
    .hcr-summary-box dd { margin-left: 0; padding-left: 12px; }
    .hcr-recall-card { flex-direction: column; }
    .hcr-card-thumb { width: 100%; height: 120px; }
    .hcr-card-thumb img { width: 100%; height: 120px; }
    .hcr-credit-block { flex-direction: column; }
}
