/* Agenda / Minutes: distinct colors, icons and document controls in both layouts.
   Type styling follows the existing editable sections; no extra row fields are needed. */
.records-section {
--agenda-ink:#174f79; --agenda-paper:#edf5fc; --agenda-line:#bdd3e6;
--minutes-ink:#246447; --minutes-paper:#eef7f1; --minutes-line:#bdd8c6;
--agenda-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23174f79' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='4' width='15' height='13.5' rx='2'/%3E%3Cpath d='M6 2v4m8-4v4M3 8.5h14M6 12h2m4 0h2m-8 3h2'/%3E%3C/svg%3E");
--minutes-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23246447' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11.5 2.5H5a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-8zM11.5 2.5V8H17M6.5 12l2.3 2.3 4.7-4.6'/%3E%3C/svg%3E");
}
.records-section :is(.meeting-record[data-record-type="Agenda"],.record-type-group[data-record-kind="Agenda"],[data-latest-record="Agenda"],.meeting-date-slot:first-child) {
--record-ink:var(--agenda-ink); --record-paper:var(--agenda-paper); --record-line:var(--agenda-line); --record-symbol:var(--agenda-icon);
}
.records-section :is(.meeting-record[data-record-type="Minutes"],.record-type-group[data-record-kind="Minutes"],[data-latest-record="Minutes"],.meeting-date-slot:nth-child(2)) {
--record-ink:var(--minutes-ink); --record-paper:var(--minutes-paper); --record-line:var(--minutes-line); --record-symbol:var(--minutes-icon);
}
.records-section .record-type {
display:inline-flex; align-items:center; gap:8px; width:fit-content; padding:6px 10px;
border:1px solid var(--record-line); border-radius:6px; background:var(--record-paper);
color:var(--record-ink); font:700 14px/1.45 var(--body); letter-spacing:0; text-transform:none;
}
.records-section .record-type::before,.records-section .record-group-heading h3::before {
content:""; display:inline-block; width:18px; height:18px; flex:none;
background:var(--record-symbol) center / contain no-repeat;
}
.records-section .meeting-date-body {gap:12px; padding:16px;}
.records-section .meeting-date-slot {
padding:12px; border:1px solid var(--record-line); border-radius:7px; background:var(--record-paper);
}
.records-section .meeting-date-slot+.meeting-date-slot {padding:12px; border:1px solid var(--record-line);}
.records-section .meeting-date-body.is-single-match .meeting-date-slot {padding:12px; border:1px solid var(--record-line);}
.records-section .meeting-date-grid .record-type {padding:0; border:0; background:none; font-size:14px;}
.records-section .meeting-date-grid .record-description {flex:1 1 95px;}
.records-section .meeting-date-grid .meeting-record {gap:8px;}
.records-section .meeting-date-grid .record-actions {gap:7px;}
.records-section .record-actions>a {
color:var(--record-ink); font-size:12px; font-weight:700; text-decoration:none;
}
.records-section .meeting-date-grid .record-actions>a {
padding:7px 9px; min-height:38px; border:1px solid var(--record-line); border-radius:5px; background:#fff;
}
.records-section .record-actions>a:hover {color:var(--record-ink); text-decoration:underline; text-underline-offset:3px;}
.records-section .meeting-date-grid .record-actions>a:hover {background:var(--record-line);}
.records-section .meeting-record .record-actions .copy-button:not(.is-copied) {
color:var(--record-ink); border-color:var(--record-line); background:#fff;
}
.records-section .meeting-record .record-actions .copy-button:not(.is-copied):hover {background:var(--record-line);}
.records-section .meeting-date-gap {min-height:40px; gap:2px;}
.records-section .meeting-date-gap>span {font-size:14px; font-weight:700; color:#5e6e7b;}
.records-section .meeting-date-gap>small {font-size:12px; color:#5e6e7b;}
.records-section .meeting-date-slot:has(>.meeting-date-gap:not([hidden])) {
background:#f8fafb; border-color:#dce3e8; border-style:dashed;
}
.records-section .record-group-heading {
padding:13px 15px; margin-bottom:8px; border:1px solid var(--record-line); border-left:4px solid var(--record-ink);
border-radius:7px; background:var(--record-paper);
}
.records-section .record-group-heading h3 {display:flex; align-items:center; gap:10px; color:var(--record-ink);}
.records-section .record-group-heading h3::before {width:23px; height:23px;}
.records-section .record-type-group .record-description h4 a,.records-section .record-type-group>p.para>a,
.records-section .record-type-group>p.para>a>.fa,.records-section .meeting-record .record-icon {color:var(--record-ink);}
.records-section .records-spotlight [data-latest-record] {gap:13px; border-radius:6px; padding-left:10px; padding-right:10px;}
.records-section .records-spotlight [data-latest-record] .spotlight-symbol {
display:grid; place-items:center; width:40px; height:40px; flex:none; border-radius:8px;
background:var(--record-paper); border:1px solid var(--record-line);
}
.records-section .records-spotlight [data-latest-record] .spotlight-symbol>.fa {display:none;}
.records-section .records-spotlight [data-latest-record] .spotlight-symbol::before {
content:""; width:23px; height:23px; background:var(--record-symbol) center / contain no-repeat;
}
.records-section .records-spotlight [data-latest-record] small {font-size:13px; font-weight:700; color:var(--record-ink);}
.records-section .records-spotlight [data-latest-record] strong {color:var(--record-ink);}
.records-section .records-spotlight [data-latest-record]:hover {background:var(--record-paper);}
@media(max-width:1100px) and (min-width:761px){
.records-section .meeting-date-grid .record-actions {flex:1 1 100%; margin-left:0;}
}
@media(max-width:600px){
.records-section .meeting-date-body {padding:14px; gap:10px;}
.records-section .meeting-date-slot,.records-section .meeting-date-slot+.meeting-date-slot {padding:12px;}
.records-section .meeting-date-grid .record-type {font-size:14px;}
.records-section .meeting-date-grid .record-actions>a {font-size:12px;}
.records-section .meeting-date-grid .record-actions .copy-button {width:36px; min-width:36px; height:38px;}
}
@media print{
.records-section .meeting-date-slot,.records-section .meeting-date-slot+.meeting-date-slot {padding:8px; margin-top:5px;}
.records-section .record-type,.records-section .meeting-date-grid .record-type {font-size:9pt;}
.records-section .meeting-date-grid .record-actions>a {font-size:8pt; padding:3px 6px; min-height:24px;}
}


/* Document List: quiet date rows beneath the type headings.
   These selectors deliberately leave the By Meeting cards unchanged. */
.records-section .record-columns .meeting-record {
display:grid; grid-template-columns:24px minmax(0,1fr) auto; align-items:center;
gap:12px; min-height:68px; padding:11px 2px; border-bottom:1px solid #e0e7f0;
}
.records-section .record-columns .meeting-record:last-child {border-bottom:0;}
.records-section .record-columns .record-icon {width:24px; font-size:21px;}
.records-section .record-columns .record-description>.record-type {display:none;}
.records-section .record-columns .record-description h4 {
margin:0; font:600 17px/1.5 var(--body); letter-spacing:0; text-wrap:wrap;
}
.records-section .record-columns .record-description h4 a {
display:block; min-height:40px; padding:7px 0; border:0; border-radius:0;
background:none; box-shadow:none; font:inherit; text-decoration:none;
}
.records-section .record-columns .record-description h4 a:hover {
text-decoration:underline; text-underline-offset:4px;
}
.records-section .record-columns .record-year-inline {
display:inline; font:inherit; color:inherit; white-space:normal;
}
.records-section .record-columns .record-actions {gap:10px; margin-left:0;}
.records-section .record-columns .record-actions>a {min-height:40px; padding:5px 2px; font-size:12px;}
.records-section .record-columns .record-actions .copy-button {width:36px; min-width:36px; height:38px;}
.records-section .record-columns .cancellation-note {margin:2px 0 0; font-size:12px; line-height:1.5; color:#79541e;}
/* Keep the editable source links equally readable before JavaScript loads. */
.records-section .record-columns .record-type-group>p.para {padding:10px 2px;}
.records-section .record-columns .record-type-group>p.para>a {padding:7px 0; gap:12px;}
.records-section .record-columns .record-type-group>p.para .detaillink {font:600 17px/1.5 var(--body);}
@media(max-width:600px){
.records-section .record-columns .meeting-record {grid-template-columns:20px minmax(0,1fr) auto; gap:9px; min-height:65px;}
.records-section .record-columns .record-icon {width:20px; font-size:19px;}
.records-section .record-columns .record-description h4 {font-size:16px;}
.records-section .record-columns .record-actions {gap:7px;}
.records-section .record-columns .record-actions>a {font-size:11px; gap:5px;}
.records-section .record-columns .record-actions .copy-button {width:33px; min-width:33px;}
}
@media print{
.records-section .record-columns .meeting-record {min-height:0; padding:7px 0;}
.records-section .record-columns .record-description h4 {font-size:11pt;}
.records-section .record-columns .record-description h4 a {min-height:0; padding:0;}
.records-section .record-columns .record-actions>a {min-height:0; font-size:8pt;}
}

.records-section .record-group-heading h3 {margin:0;}
