/* Rule-change articles: rule-changes.html (the list) and rule-changes/*.html
   (one page per article). The pages are written by
   scripts/site/build-rule-changes.js; the colours, type, buttons and the
   reading column come from css/career-paths.css, the header and footer from
   css/site-chrome.css. This file is the articles' own layout. */
.rc-crumb { margin: 0 0 4px; font-size: 0.875rem; }
.rc-crumb a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #e2ecf9; font-weight: 600; text-decoration: none; }
.rc-crumb a:hover { text-decoration: underline; }
.rc-hero a:focus-visible { outline-color: #fff; }
.rc-standfirst { font-size: 1.125rem; }

/* An article reads as one piece: its sections are not ruled off from each other */
.rc-article section { border-bottom: 0; padding: 14px 0; }
.rc-article section:first-of-type { padding-top: 32px; }
.rc-article section:last-of-type { padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.rc-article ul, .rc-article ol { padding-left: 22px; }
.rc-article li { margin: 8px 0; }
.rc-short ul { margin: 10px 0 0; padding: 16px 20px 16px 38px; background: var(--primary-light); border-radius: 12px; }
main .rc-short .wrap ul > li { max-width: none; }

.rc-source-list a { overflow-wrap: anywhere; }
.rc-next { background: var(--soft); }
.rc-links { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0 6px; }
.rc-more { list-style: none; margin: 4px 0 0; padding: 0; }
.rc-more li { margin: 0; }
.rc-more a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* The list page: one card per article */
main section:not(.cp-cta) .wrap > .rc-cards { max-width: 1040px; }
.rc-cards { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.rc-cards li { margin: 0; }
.rc-card { display: block; height: 100%; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--text); text-decoration: none; }
.rc-card:hover { border-color: var(--primary); background: var(--primary-light); }
.rc-card-when { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--primary-light); color: var(--primary-dark); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em; }
.rc-card:hover .rc-card-when { background: #fff; }
.rc-card-title { display: block; margin: 10px 0 6px; color: var(--navy); font-size: 1.125rem; font-weight: 700; line-height: 1.3; }
.rc-card-text { display: block; color: var(--text-2); font-size: 0.875rem; }

@media (max-width: 480px) {
    .rc-links .btn { width: 100%; }
}
@media print {
    .rc-next, .navbar, .footer, .skip-link { display: none; }
    .cp-hero { background: none; color: #000; padding: 0 0 12px; }
    .cp-hero p, .rc-crumb a { color: #000; }
}
