/* Trusty reading extension: paper #FAFAF8; ink #1B1F1C; secondary #5C615D;
   deep green #0E7A3E; marker #CFEA8F. Existing Gelica headings and Inter/Avenir body retained. */
.discovery-page .resource-hero { gap:0; }
.discovery-back { display:inline-flex;align-items:center;min-height:44px;margin-bottom:20px;color:var(--muted); }
.discovery-page .resource-reading>section:first-of-type { margin-top:0; }
.discovery-page .resource-reading>section { margin-top:44px; }
.discovery-page .resource-actions>a:not(.resource-primary) { display:inline-flex;align-items:center;min-height:44px; }
.discovery-page .resource-contents { display:grid;grid-template-columns:1fr;gap:0; }
.discovery-page .resource-contents a { padding-block:6px; }
.discovery-table { margin:24px 0;max-width:100%; }
.discovery-table table { width:100%;border-collapse:collapse;table-layout:fixed;font-size:.95rem;line-height:1.5; }
.discovery-table th,.discovery-table td { text-align:left;vertical-align:top;padding:14px 12px;border-bottom:1px solid var(--line);overflow-wrap:anywhere; }
.discovery-table th { color:var(--ink);font-weight:600; }
.discovery-table td { color:var(--muted); }
.discovery-page pre { white-space:pre-wrap;overflow-wrap:anywhere;background:var(--green-soft);padding:20px;line-height:1.6; }
.discovery-page code { font-size:.9em;overflow-wrap:anywhere; }
.discovery-page .resource-reading ul { padding-left:24px; }
.discovery-page .resource-reading li { margin-block:12px; }
.discovery-overview-link { margin-bottom:36px !important; }
.discovery-worksheet table th:first-child { width:36%; }
.discovery-worksheet .blank { min-height:44px; }
@media(max-width:767px) {
 .discovery-table table,.discovery-table tbody,.discovery-table thead,.discovery-table tr,.discovery-table th,.discovery-table td { display:block; }
 .discovery-table thead { position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap; }
 .discovery-table tr { padding-block:12px;border-bottom:1px solid var(--line); }
 .discovery-table td { padding:8px 0;border:0; }
 .discovery-table td:first-child { color:var(--ink);font-weight:600; }
 .discovery-worksheet td[data-label]:not(:first-child)::before { content:attr(data-label);display:block;font-size:.8rem;letter-spacing:.04em;color:var(--muted); }
 .discovery-worksheet td.blank { border-bottom:1px solid var(--line);min-height:54px; }
 .discovery-table th:first-child { width:auto; }
}
@media print {
 @page { size:A4 landscape;margin:12mm; }
 .site-header,.site-footer,.resource-contents,.resource-actions,.discovery-back,.cookie-banner,[class*="consent"] { display:none !important; }
 .discovery-page { padding:0 !important;min-height:0; }
 .discovery-page .resource-hero,.discovery-page .resource-reading>*,.discovery-page .resource-reading { display:block !important;max-width:none;margin:0; }
 .discovery-page .resource-hero h1 { font-size:22pt;max-width:none;margin:0 0 8pt; }
 .discovery-page .resource-intro { font-size:10pt;margin-bottom:8pt;max-width:none; }
 .discovery-page .resource-byline { display:none; }
 .discovery-page .resource-reading p { font-size:9pt;line-height:1.3;margin:6pt 0; }
 .discovery-page .resource-reading>section { margin-top:12pt; }
 .discovery-table table { font-size:9pt; }
 .discovery-table th,.discovery-table td { padding:5px 8px; }
 .discovery-table tr { break-inside:avoid; }
 .discovery-table { margin:8pt 0; }
 .discovery-page a { color:inherit; }
}
.discovery-page .resource-primary { box-shadow:none; }
.discovery-page .resource-primary:hover,.discovery-page .resource-primary:focus-visible { color:#fff;background:var(--green-deep,#0E7A3E); }
@media print {
 #main.discovery-page .resource-reading > * { display:block !important; }
}
@media print {
 #main.discovery-page .resource-hero { padding-bottom:4pt; }
 #main.discovery-page .resource-reading>section { margin-top:0; }
 #main.discovery-page .discovery-table table { font-size:8pt;line-height:1.2; }
 #main.discovery-page .discovery-table th,#main.discovery-page .discovery-table td { padding:3px 6px;height:22px; }
 #main.discovery-page .resource-reading p { font-size:8pt;line-height:1.2;margin:3pt 0; }
}

.discovery-worksheet tbody th { font-weight:500;color:var(--muted); }
@media(max-width:767px) { .discovery-worksheet table tbody th:first-child { width:auto;text-align:left;color:var(--ink);font-weight:600;padding:8px 0;border:0; } }
