:root {
    --cf-blue: #3498db;
    --cf-blue-dark: #237bb5;
    --cf-ink: #2c3e50;
    --cf-muted: #647587;
    --cf-line: #e4ebf1;
}
* { box-sizing: border-box; }
body.campus-fairs-page { margin: 0; color: var(--cf-ink); background: #fff; font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif; font-size: 14px; line-height: 1.65; }
.campus-fairs-page button, .campus-fairs-page input, .campus-fairs-page select { font: inherit; }
.campus-fairs-page [hidden] { display: none !important; }
.campus-fairs-page :focus-visible { outline: 3px solid #3498db80; outline-offset: 3px; }
.cf-main { max-width: 1200px; margin: 110px auto 56px; padding: 0 24px; }
.cf-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 26px; }
.cf-back { color: var(--cf-muted); font-size: 13px; text-decoration: none; }
.cf-heading h1 { margin: 3px 0 6px; font-size: 28px; letter-spacing: .02em; line-height: 1.4; }
.cf-heading p { color: var(--cf-muted); margin: 0; }
.cf-text-link { color: var(--cf-blue-dark); text-decoration: none; white-space: nowrap; }
button.cf-text-link { padding: 0; border: 0; background: transparent; cursor: pointer; }
body.cf-monitor-open { overflow: hidden; }
.cf-heading-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: flex-end; }
.cf-filters { padding: 22px; border: 1px solid var(--cf-line); border-radius: 12px; background: #f9fbfd; }
.cf-filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 18px; }
.cf-field { min-width: 0; }
.cf-primary-filters { grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.3fr); }
.cf-advanced-filters { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cf-field label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.cf-field input, .cf-field select { display: block; width: 100%; min-width: 0; height: 40px; padding: 7px 10px; color: var(--cf-ink); border: 1px solid #d4dfe8; border-radius: 6px; background: #fff; }
.cf-field input::placeholder { color: #82909e; }
.cf-more-filters { margin-top: 15px; }
.cf-more-filters summary { width: fit-content; color: var(--cf-blue-dark); cursor: pointer; font-size: 13px; padding: 4px 0; }
.cf-more-filters[open] summary { margin-bottom: 12px; }
.cf-filter-count { color: var(--cf-muted); margin-left: 8px; }
.cf-form-bottom { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 19px; }
.cf-region-note { margin: 0; font-size: 12px; color: var(--cf-muted); }
.cf-form-actions { display: flex; gap: 10px; margin-left: auto; flex-shrink: 0; }
.cf-button { border: 1px solid var(--cf-blue); background: var(--cf-blue); color: #fff; border-radius: 6px; padding: 8px 20px; min-height: 40px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.cf-button:hover { border-color: var(--cf-blue-dark); background: var(--cf-blue-dark); }
.cf-button-secondary { color: var(--cf-ink); border-color: #d4dfe8; background: #fff; }
.cf-button-secondary:hover { color: var(--cf-blue-dark); border-color: var(--cf-blue); background: #f0f8fe; }
.cf-form-error { margin: 12px 0 0; color: #a5372f; }
.cf-filter-notice { margin: 14px 0 0; padding: 10px 12px; border-radius: 6px; color: #63542d; background: #fff6dd; font-size: 12px; }
.cf-results { margin-top: 28px; scroll-margin-top: 92px; }
.cf-results-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; }
.cf-results-heading h2 { font-size: 19px; margin: 0; }
.cf-results-heading p { color: var(--cf-muted); margin: 0; font-size: 13px; }
.cf-source-note { color: var(--cf-muted); font-size: 12px; margin: 10px 0 16px; }
.cf-state { padding: 50px 20px; text-align: center; border: 1px solid var(--cf-line); border-radius: 10px; color: var(--cf-muted); background: #fafcfe; }
.cf-state p { margin: 0 0 14px; }
.cf-state p:last-child { margin-bottom: 0; }
.cf-table-wrap { border: 1px solid var(--cf-line); border-radius: 8px; overflow: hidden; }
.cf-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; }
.cf-table th { text-align: left; background: #f1f7fc; color: #526a7d; font-weight: 600; padding: 11px 14px; }
.cf-table th:nth-child(1) { width: 40%; }
.cf-table th:nth-child(2) { width: 28%; }
.cf-table th:nth-child(3) { width: 21%; }
.cf-table th:nth-child(4) { width: 11%; }
.cf-table td { padding: 15px 14px; vertical-align: top; border-top: 1px solid var(--cf-line); overflow-wrap: anywhere; }
.cf-table tbody tr:hover { background: #fcfdff; }
.cf-title-button { display: block; padding: 0; text-align: left; border: 0; background: transparent; color: var(--cf-ink); font-weight: 600 !important; cursor: pointer; line-height: 1.55; }
.cf-title-button:hover { color: var(--cf-blue-dark); }
.cf-school-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 10px; margin-bottom: 5px; }
.cf-school { color: #356382; font-weight: 600; }
.cf-location { color: var(--cf-muted); font-size: 12px; }
.cf-event-date { font-weight: 600; line-height: 1.6; font-variant-numeric: tabular-nums; }
.cf-event-venue { color: #526678; margin-top: 7px; }
.cf-deadline { color: #526678; margin-top: 8px; font-size: 12px; }
.cf-known-facts { color: #476b6b; font-size: 12px; margin-top: 7px; }
.cf-subtext { color: var(--cf-muted); font-size: 12px; margin-top: 4px; }
.cf-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin: 9px 0; }
.cf-tag { display: inline-block; padding: 2px 7px; border-radius: 4px; background: #f0f4f7; color: #516777; font-size: 12px; line-height: 1.6; font-weight: 400; }
.cf-tag-coverage { background: #edf6fc; color: #28678f; }
.cf-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cf-badge { display: inline-block; border-radius: 4px; padding: 2px 7px; font-size: 12px; color: #566a7c; background: #edf1f5; }
.cf-badge-open { color: #187046; background: #eaf7ef; }
.cf-badge-not_open { color: #237bb5; background: #eaf4fc; }
.cf-badge-cancelled, .cf-badge-postponed, .cf-badge-full { color: #96602b; background: #fff4e6; }
.cf-badge-conflict { color: #9c4533; background: #fff0e9; }
.cf-badge-corrected { color: #536d82; background: #edf3f8; }
.cf-row-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.cf-inline-button, .cf-row-actions a { border: 0; padding: 0; background: transparent; color: var(--cf-blue-dark); text-decoration: none; cursor: pointer; white-space: nowrap; }
.cf-row-actions a:hover, .cf-inline-button:hover { text-decoration: underline; }
.cf-pagination { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 24px 0 0; flex-wrap: wrap; }
.cf-pagination button { min-width: 36px; min-height: 36px; padding: 5px 10px; background: #fff; border: 1px solid #d4dfe8; border-radius: 5px; color: var(--cf-ink); cursor: pointer; }
.cf-pagination button[aria-current='page'] { color: #fff; background: var(--cf-blue); border-color: var(--cf-blue); }
.cf-pagination button:disabled { cursor: default; color: #8a99a7; background: #f6f8fa; }
.cf-page-caption { color: var(--cf-muted); font-size: 12px; margin-left: 6px; }
.cf-dialog { padding: 0; width: min(850px, calc(100% - 36px)); max-height: calc(100dvh - 48px); border: 1px solid var(--cf-line); border-radius: 12px; color: var(--cf-ink); background: #fff; box-shadow: 0 20px 70px #172e4b33; }
.cf-dialog::backdrop { background: #18304d70; }
.cf-dialog-header { display: flex; align-items: flex-start; gap: 18px; padding: 21px 24px 17px; border-bottom: 1px solid var(--cf-line); position: sticky; top: 0; background: #fff; z-index: 1; }
.cf-dialog-header h2 { margin: 0; flex: 1; font-size: 19px; line-height: 1.55; overflow-wrap: anywhere; }
.cf-dialog-close { width: 34px; height: 34px; flex-shrink: 0; border: 0; border-radius: 5px; color: var(--cf-muted); font-size: 26px !important; line-height: 1; background: #f0f4f7; cursor: pointer; }
.cf-dialog-body { padding: 22px 24px 28px; overflow-wrap: anywhere; }
.cf-detail-status { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.cf-detail-status p { margin: 0; color: var(--cf-muted); font-size: 12px; }
.cf-theme-description { margin: 8px 0 17px; color: #526a7d; }
.cf-dialog-body > .cf-tags { margin-bottom: 17px; }
.cf-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; margin: 0; }
.cf-detail-grid > div { min-width: 0; }
.cf-detail-grid dt { color: var(--cf-muted); font-size: 12px; }
.cf-detail-grid dd { margin: 4px 0 0; white-space: pre-wrap; }
.cf-detail-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 12px; }
.cf-detail-links .cf-button { font-size: 13px; }
.cf-detail-section { margin-top: 23px; padding-top: 18px; border-top: 1px solid var(--cf-line); }
.cf-detail-section h3, .cf-detail-section summary { margin: 0 0 12px; font-size: 15px; font-weight: 600; }
.cf-detail-section summary { cursor: pointer; }
.cf-detail-paragraph { margin: 8px 0 0; white-space: pre-wrap; }
.cf-subheading { margin: 18px 0 7px; font-size: 13px; font-weight: 600; }
.cf-fact-list { margin: 0; padding-left: 20px; }
.cf-fact-list li + li { margin-top: 5px; }
.cf-required-list { color: #8b572a; }
.cf-organization-list, .cf-fact-cards { list-style: none; margin: 0; padding: 0; }
.cf-organization-list li { padding: 10px 0; border-bottom: 1px solid #eef2f6; }
.cf-organization-list li:first-child { padding-top: 0; }
.cf-organization-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.cf-fact-heading { display: flex; gap: 8px 12px; align-items: baseline; flex-wrap: wrap; }
.cf-fact-heading strong { font-weight: 500; }
.cf-fact-label { color: var(--cf-muted); font-size: 12px; min-width: 56px; }
.cf-fact-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cf-fact-cards > li { min-width: 0; padding: 13px 14px; border: 1px solid var(--cf-line); border-radius: 7px; background: #fafcfe; }
.cf-fact-cards > li > strong { font-size: 14px; font-weight: 600; }
.cf-fact-cards p { margin-bottom: 0; }
.cf-fact-quote { margin-top: 7px; color: #607488; font-size: 12px; }
.cf-derived-deadline { margin-top: 14px; padding: 13px 14px; background: #f1f7fc; border-radius: 7px; }
.cf-derived-deadline p { margin-bottom: 0; }
.cf-conflict-notice { margin-top: 14px; padding: 14px; background: #fff8f1; border: 1px solid #f1deca; border-radius: 7px; }
.cf-conflict-notice > strong { color: #92552d; }
.cf-conflict-entry { display: flex; flex-wrap: wrap; gap: 3px 12px; align-items: baseline; margin: 10px 0 0; }
.cf-conflict-entry a, .cf-evidence a { color: var(--cf-blue-dark); text-decoration: underline; }
.cf-freshness { margin-top: 23px; }
.cf-source-text { white-space: pre-wrap; line-height: 1.9; margin: 0; }
.cf-evidence { margin: 0; }
.cf-evidence dt { font-size: 12px; color: var(--cf-muted); margin-top: 12px; }
.cf-evidence dd { margin: 5px 0 0; padding: 10px 13px; border-left: 3px solid #bddff5; background: #f5f9fc; white-space: pre-wrap; }
.cf-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.cf-subscriptions { width: min(960px, calc(100% - 36px)); margin: auto; padding: 0; overscroll-behavior: contain; }
.cf-subscriptions-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.cf-subscriptions-heading h2 { margin: 0; font-size: 17px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.cf-subscriptions-heading p { margin: 5px 0 0; color: var(--cf-muted); font-size: 13px; }
.cf-subscriptions-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.cf-subscriptions-actions .cf-inline-button { font-size: 12px; }
.cf-subscriptions .cf-monitor-activation { margin-top: 0; padding-top: 0; border-top: 0; }
.cf-subscription-message { margin-top: 14px; font-size: 13px; color: #466580; }
.cf-subscription-message:empty { display: none; }
.cf-subscription-message[data-error='true'] { color: #a5372f; }
.cf-subscription-recovery { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.cf-subscription-email { margin: 18px 0 0; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; color: var(--cf-muted); font-size: 13px; }
.cf-subscription-notice { padding: 11px 14px; border-radius: 6px; background: #fff4e6; color: #875e2d; font-size: 13px; }
.cf-subscription-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; margin-top: 21px; }
.cf-subscription-search label, .cf-subscription-following h3 { display: block; font-size: 14px; font-weight: 600; margin: 0 0 9px; }
.cf-subscription-following h3 span { color: var(--cf-muted); font-size: 12px; font-weight: 400; margin-left: 7px; }
.cf-subscription-search-row { display: flex; gap: 8px; }
.cf-subscription-search-row input { width: 100%; min-width: 0; height: 40px; padding: 7px 10px; color: var(--cf-ink); border: 1px solid #d4dfe8; border-radius: 6px; background: #fff; }
.cf-subscription-search-row .cf-button { flex-shrink: 0; padding: 7px 14px; }
.cf-subscription-hint { color: var(--cf-muted); font-size: 12px; margin: 9px 0; }
.cf-subscription-school-list { list-style: none; margin: 0; padding: 0; }
.cf-subscription-school-list li { padding: 11px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--cf-line); }
.cf-subscription-school-list li > div { min-width: 0; overflow-wrap: anywhere; }
.cf-subscription-school-list strong { font-weight: 500; }
.cf-subscription-school-list .cf-subtext { margin-top: 1px; }
.cf-subscription-school-list button { flex-shrink: 0; min-height: 34px; font-size: 13px; }
.cf-subscription-school-list .cf-button { padding: 5px 12px; }
.cf-subscriptions button:disabled { cursor: default; opacity: .6; }
.cf-subscription-scope { font-size: 12px; color: var(--cf-muted); margin: 20px 0 0; padding-top: 15px; border-top: 1px solid var(--cf-line); }
.cf-vip-tag { display: inline-block; padding: 1px 8px; color: #896128; background: #fff0cf; border-radius: 4px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.cf-monitor-activation { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--cf-line); }
.cf-monitor-activation p { margin: 0; color: #536b80; font-size: 13px; }
.cf-monitor-activation-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; flex-wrap: wrap; }
.cf-monitor-activation-actions .cf-button { font-size: 13px; padding: 7px 13px; }
.cf-monitor-directory { margin-top: 14px; }
.cf-monitor-directory > summary { display: flex; gap: 10px; align-items: baseline; width: fit-content; cursor: pointer; color: var(--cf-blue-dark); font-size: 13px; padding: 3px 0; }
.cf-monitor-directory > summary::before { content: '▸'; margin-right: 2px; }
.cf-monitor-directory[open] > summary::before { content: '▾'; }
.cf-monitor-total { color: var(--cf-muted); font-size: 12px; }
.cf-monitor-scroll { max-height: 320px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding-right: 9px; }
.cf-monitor-scroll:empty { display: none; }
.cf-detail-login { text-align: center; padding: 22px 16px; max-width: 630px; margin: 0 auto; }
.cf-detail-login > p { color: #586e80; margin: 0 0 16px; }
.cf-detail-login .cf-login-session { color: #94652f; font-size: 13px; }
.cf-detail-login .cf-login-lead { color: var(--cf-ink); font-size: 23px; font-weight: 600; }
.cf-login-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.cf-detail-login .cf-login-vip { padding: 12px 14px; background: #f7f9fc; border-radius: 7px; font-size: 13px; }
.cf-detail-login > .cf-inline-button { margin-top: 6px; min-height: 40px; }

.help-footer { color: #5b6d7e; background: #f0f3f6; border-top: 1px solid #e1e7ec; }
.help-footer__inner { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 36px 0 22px; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(150px, .65fr) minmax(150px, .65fr); gap: 32px; }
.help-footer h2 { margin: 0 0 12px; color: var(--cf-ink); font-size: 16px; }
.help-footer p { max-width: 520px; margin: 0 0 13px; }
.help-footer a { color: #647789; text-decoration: none; }
.help-footer a:hover { color: var(--cf-blue-dark); }
.help-footer__intro > a { display: block; width: fit-content; }
.help-footer__column { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.help-footer__copyright { grid-column: 1 / -1; padding-top: 20px; text-align: center; border-top: 1px solid #dfe5ea; font-size: 13px; }
@media (max-width: 1000px) and (min-width: 769px) { .cf-table th, .cf-table td { padding-left: 10px; padding-right: 10px; } .cf-main { padding: 0 18px; } }
@media (max-width: 768px) {
    .cf-main { margin-top: 25px; padding: 0 18px; }
    .cf-heading { flex-direction: column; gap: 12px; margin-bottom: 20px; align-items: flex-start; }
    .cf-heading h1 { font-size: 25px; }
    .cf-heading p { font-size: 13px; }
    .cf-heading > .cf-text-link { font-size: 12px; margin-top: 30px; }
    .cf-heading-actions { flex-direction: row; align-items: center; justify-content: flex-start; gap: 8px 18px; margin-top: 0; font-size: 12px; }
    .cf-filters { padding: 17px 15px; }
    .cf-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 12px; }
    .cf-primary-filters > .cf-field:first-child, .cf-primary-filters > .cf-field:last-child { grid-column: 1 / -1; }
    .cf-advanced-filters > .cf-field:nth-child(3) { grid-column: 1 / -1; }
    .cf-field input, .cf-field select { height: 42px; font-size: 16px; }
    .cf-form-bottom { flex-wrap: wrap; gap: 10px; }
    .cf-form-actions { width: 100%; }
    .cf-form-actions .cf-button { flex: 1; }
    .cf-results { margin-top: 24px; scroll-margin-top: 16px; }
    .cf-table-wrap { border: 0; border-radius: 0; overflow: visible; }
    .cf-table, .cf-table tbody, .cf-table tr, .cf-table td { display: block; width: 100%; }
    .cf-table thead { display: none; }
    .cf-table tr { border: 1px solid var(--cf-line); border-radius: 9px; margin-bottom: 13px; padding: 16px; }
    .cf-table td { padding: 10px 0 0; border: 0; }
    .cf-table td:first-child { padding: 0 0 10px; border-bottom: 1px solid #eef2f6; margin-bottom: 2px; }
    .cf-table td[data-label] { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 9px; }
    .cf-table td[data-label]::before { content: attr(data-label); color: var(--cf-muted); font-size: 12px; padding-top: 2px; }
    .cf-title-button { font-size: 15px !important; }
    .cf-school-line { gap: 2px 9px; margin-bottom: 7px; }
    .cf-event-date { font-size: 13px; }
    .cf-row-actions { border-top: 1px solid #eef2f6; margin-top: 5px; }
    .cf-row-actions { flex-direction: row; gap: 23px; justify-content: flex-end; padding-top: 9px; }
    .cf-row-actions button, .cf-row-actions a { min-height: 32px; display: inline-flex; align-items: center; }
    .cf-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 24px); border-radius: 10px; }
    .cf-dialog-header { padding: 16px; gap: 10px; }
    .cf-dialog-header h2 { font-size: 17px; }
    .cf-dialog-body { padding: 18px 16px 24px; }
    .cf-detail-grid { grid-template-columns: 1fr; gap: 13px; }
    .cf-fact-cards { grid-template-columns: 1fr; }
    .cf-detail-links .cf-button { flex: 1; }
    .cf-page-caption { width: 100%; text-align: center; margin: 5px 0 0; }
    .cf-subscriptions { width: calc(100% - 20px); margin: auto; padding: 0; }
    .cf-subscriptions-heading { gap: 8px; }
    .cf-subscriptions-heading h2 { font-size: 18px; }
    .cf-subscriptions-actions { flex-direction: column-reverse; gap: 5px; }
    .cf-subscription-columns { grid-template-columns: 1fr; gap: 22px; }
    .cf-monitor-activation { align-items: flex-start; flex-direction: column; gap: 12px; }
    .cf-monitor-activation-actions { width: 100%; }
    .cf-monitor-activation-actions .cf-button { flex: 1; }
    .cf-monitor-scroll { max-height: 280px; }
    .cf-subscription-search-row { flex-wrap: wrap; }
    .cf-subscription-search-row input { flex-basis: 100%; }
    .cf-subscription-search-row .cf-button { flex: 1; }
    .cf-detail-login { padding: 12px 0; }
    .cf-detail-login .cf-login-lead { font-size: 20px; }
    .cf-login-actions { flex-direction: column; }

    .cf-subscription-search-row input { font-size: 16px; }
    .help-footer__inner { width: calc(100% - 36px); padding-top: 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px 18px; }
    .help-footer__intro, .help-footer__copyright { grid-column: 1 / -1; }
}
