/* Registry-style pages (Career Development Center): employer partnerships, events archive. */
/* Registry page — follows the printed "Rasmiy reyestr" layout: cover numbers,
   I Introduction, II General registry table, III Details with photos, IV Conclusion. */
.reg { --navy: #1c3557; --gold: #c9a227; --ink: #1f2937; --muted: #6b7280; --line: #e5e7eb; --soft: #f6f7fa; }
.reg-section { padding: 3.5rem 0; }
.reg-section + .reg-section { border-top: 1px solid var(--line); }
.reg-section.soft { background: var(--soft); }
.reg-heading { display: flex; align-items: baseline; gap: 0.9rem; margin: 0 0 1.75rem; padding-bottom: 0.9rem; border-bottom: 2px solid var(--gold); }
.reg-heading .num { font-family: Georgia, "Times New Roman", serif; color: var(--gold); font-size: 1.1rem; letter-spacing: 2px; }
.reg-heading h2 { font-family: Georgia, "Times New Roman", serif; color: var(--navy); font-size: 1.6rem; letter-spacing: 2px; text-transform: uppercase; margin: 0; }
.reg-text p { color: var(--ink); line-height: 1.75; margin: 0 0 1rem; text-align: justify; }

/* Cover numbers */
.reg-cover { padding: 2.5rem 0 2rem; }
.reg-cover-inner { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 760px; margin: 0 auto; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); padding: 1.5rem 0; }
.reg-cover-item { text-align: center; padding: 0 1rem; }
.reg-cover-item + .reg-cover-item { border-left: 1px solid var(--line); }
.reg-cover-num { font-family: Georgia, "Times New Roman", serif; color: var(--navy); font-size: 2.4rem; font-weight: 700; line-height: 1.1; }
.reg-cover-label { color: var(--muted); font-style: italic; font-size: 0.9rem; margin-top: 0.3rem; }

/* Tables */
.reg-table-title { text-align: center; font-family: Georgia, "Times New Roman", serif; color: var(--navy); letter-spacing: 1px; font-weight: 700; margin: 2rem 0 0.75rem; }
.reg-table-wrap { overflow-x: auto; }
.reg-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.reg-table th { background: var(--navy); color: #fff; text-align: left; padding: 0.7rem 0.9rem; font-weight: 600; font-size: 0.82rem; letter-spacing: 0.3px; }
.reg-table td { padding: 0.65rem 0.9rem; border-bottom: 1px solid var(--line); color: var(--ink); vertical-align: top; }
.reg-table tbody tr:nth-child(even) td { background: #fafbfc; }
.reg-table tbody tr:hover td { background: #f0f4f9; }
.reg-table td.n { color: var(--gold); font-weight: 700; white-space: nowrap; }
.reg-table td.num { text-align: right; font-weight: 700; }
.reg-table th.num { text-align: right; }
.reg-table tr.total td { background: #f3efe2 !important; font-weight: 700; border-top: 2px solid var(--gold); }
.reg-table td a { color: var(--navy); font-weight: 600; text-decoration: none; }
.reg-table td a:hover { text-decoration: underline; }
.reg-table td.date { white-space: nowrap; }
.reg-composition { max-width: 620px; margin: 0 auto; }
.reg-note { background: #fdf8e7; border: 1px solid #ecdcae; border-radius: 6px; padding: 0.9rem 1.1rem; font-size: 0.86rem; color: #6b5a1e; line-height: 1.55; margin-top: 1.5rem; }
.reg-note b { color: #5a4a12; }
.reg-footnote { font-size: 0.82rem; color: var(--muted); font-style: italic; margin-top: 0.9rem; }
.reg-lead { color: var(--muted); font-style: italic; margin: -0.75rem 0 1.25rem; }

/* Detail entries */
.reg-entry { padding: 2rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.reg-entry:last-child { border-bottom: 0; }
.reg-entry-title { display: flex; align-items: baseline; gap: 0.8rem; margin: 0 0 1.1rem; }
.reg-entry-title .n { font-family: Georgia, "Times New Roman", serif; color: var(--gold); font-size: 1.15rem; font-weight: 700; }
.reg-entry-title h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; color: var(--navy); font-size: 1.25rem; line-height: 1.35; }
.reg-entry-title h3 a { color: inherit; text-decoration: none; }
.reg-entry-title h3 a:hover { text-decoration: underline; }
.reg-entry-body { display: grid; grid-template-columns: 300px 1fr; gap: 1.5rem; align-items: start; }
.reg-entry-body.no-photo { grid-template-columns: 1fr; }
.reg-photo { border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: #eef1f5; aspect-ratio: 3 / 2; }
.reg-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.reg-facts { font-size: 0.93rem; color: var(--ink); line-height: 1.6; }
.reg-facts p { margin: 0 0 0.45rem; }
.reg-facts b { color: var(--navy); }
.reg-facts ul { margin: 0.25rem 0 0; padding-left: 1.2rem; }
.reg-facts li { margin: 0.15rem 0; }
.reg-purpose { margin: 1.1rem 0 0; color: var(--ink); line-height: 1.7; text-align: justify; }
.reg-purpose b { color: var(--navy); }
.reg-source { margin-top: 0.5rem; font-size: 0.82rem; color: var(--muted); text-align: right; }
.reg-source a { color: #0369a1; text-decoration: none; }
.reg-source a:hover { text-decoration: underline; }
.reg-logo-inline { height: 22px; width: auto; vertical-align: middle; margin-left: 0.5rem; }

.contact-card { background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; padding: 2rem; max-width: 600px; }
.contact-card h3 { color: #003366; margin-bottom: 1rem; }
.contact-card p { margin: 0.4rem 0; color: #333; font-size: 0.95rem; }
.contact-card i { color: #00bcd4; width: 20px; margin-right: 0.5rem; }

@media (max-width: 768px) {
    .reg-cover-inner { grid-template-columns: 1fr; gap: 1rem; }
    .reg-cover-item + .reg-cover-item { border-left: 0; border-top: 1px solid var(--line); padding-top: 1rem; }
    .reg-entry-body { grid-template-columns: 1fr; }
    .reg-heading h2 { font-size: 1.25rem; letter-spacing: 1px; }
    .reg-text p, .reg-purpose { text-align: left; }
}

/* Events archive additions */
.reg-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.5rem; }
.reg-filter { border: 1px solid var(--line); background: #fff; color: var(--navy); border-radius: 999px; padding: 0.45rem 1rem; font-size: 0.86rem; font-weight: 600; cursor: pointer; transition: all .15s; }
.reg-filter i { margin-right: 0.4rem; color: var(--gold); }
.reg-filter .cnt { color: var(--muted); font-weight: 500; margin-left: 0.3rem; }
.reg-filter:hover { border-color: var(--navy); }
.reg-filter.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.reg-filter.active i, .reg-filter.active .cnt { color: #fff; }
.reg-badge { display: inline-block; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.3px; border-radius: 4px; padding: 0.15rem 0.5rem; background: #eef2f8; color: var(--navy); white-space: nowrap; }
.reg-badge.gold { background: #f6efd6; color: #7a5f0a; }
.reg-badge.green { background: #e6f4ea; color: #1e6b3a; }
.reg-badge.grey { background: #f1f2f4; color: #555; }
.reg-entry-head { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: -0.5rem 0 1rem; }
.reg-entry.hidden, .reg-table tr.hidden { display: none; }
.reg-empty { text-align: center; color: var(--muted); font-style: italic; padding: 2rem 0; }
.reg-original { color: var(--muted); font-style: italic; font-size: 0.9rem; margin: -0.6rem 0 1rem; }
.reg-desc { color: var(--ink); line-height: 1.75; margin: 1rem 0 0; text-align: justify; }
.reg-signif { margin: 0.75rem 0 0; padding: 0.8rem 1rem; background: var(--soft); border-left: 3px solid var(--gold); color: var(--ink); font-size: 0.93rem; line-height: 1.6; }
.reg-signif b { color: var(--navy); }
@media (max-width: 768px) { .reg-desc { text-align: left; } }
