/* HAG v30.9.318: project story PDF, file-source disclosure, and tucked-away QA examples */
#reporting .hag318-story-actions{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin-bottom:12px}
#reporting .hag318-story-actions .btn{font-size:12px!important;padding:9px 14px!important;border-radius:10px!important}
#reporting .hag318-library-detail{display:block;width:100%;margin-top:9px;color:#546f83;font-size:11px;line-height:1.45}
#reporting .hag318-library-detail summary{font-size:11px;font-weight:750;text-decoration:underline;cursor:pointer;color:#315c78}
#reporting .hag318-library-detail:not([open]) .hag318-library-list,#reporting .hag318-library-detail:not([open]) .hag318-library-refresh{display:none!important}
#reporting .hag318-library-list{padding:8px 0 2px;font-size:11px;line-height:1.5}
#reporting .hag318-library-list p{margin:0 0 6px!important;font-size:11px}
#reporting .hag318-library-refresh{border:1px solid #c8d9e5;border-radius:7px;padding:7px 9px;background:#fff;color:#254e72;font-size:11px;cursor:pointer;margin-top:8px}
.hag318-sample-overlay[hidden]{display:none!important}.hag318-sample-overlay{position:fixed;inset:0;z-index:15010;display:flex;align-items:center;justify-content:center;padding:18px}.hag318-sample-backdrop{position:absolute;inset:0;background:#0a253fd4}.hag318-sample-panel{position:relative;width:min(640px,95vw);max-height:87vh;overflow:auto;background:#fffdf9;border-radius:20px;padding:24px;color:#183b5b;box-shadow:0 25px 70px #071c3366}.hag318-sample-panel h2{font-size:24px;margin:9px 0}.hag318-sample-panel p{line-height:1.5;font-size:14px}.hag318-sample-close{position:absolute;right:18px;top:15px;border:0;background:#eaf2f8;color:#173e61;font-size:22px;border-radius:50%;width:35px;height:35px}.hag318-sample-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.hag318-sample-tabs button{background:#f2f6f9;color:#244e72;border:1px solid #d2e0e9;border-radius:9px;padding:9px 12px;cursor:pointer}.hag318-sample-tabs button.active{background:#dfeefa;border-color:#77a5c5}.hag318-sample-body{padding:14px;border:1px solid #dae4ec;border-radius:12px}.hag318-sample-body ul{padding-left:22px}
@media print{
 body.hag-v238-printing #hagV238PrintRoot.hag318-project-story-print .value-story{display:block!important;grid-template-columns:1fr!important;break-inside:auto!important}
 body.hag-v238-printing #hagV238PrintRoot.hag318-project-story-print .value-story-copy{display:block!important;margin-bottom:13px!important}
 body.hag-v238-printing #hagV238PrintRoot.hag318-project-story-print .value-story-copy h2{font-size:17pt!important;margin-bottom:12px!important}
 body.hag-v238-printing #hagV238PrintRoot.hag318-project-story-print .hag316-story-metrics{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important;margin:12px 0!important}
 body.hag-v238-printing #hagV238PrintRoot.hag318-project-story-print .hag316-story-metric{display:flex!important;flex-direction:column!important;padding:10px!important;border:1px solid #dce6ef!important;border-radius:7px!important;break-inside:avoid!important}
 body.hag-v238-printing #hagV238PrintRoot.hag318-project-story-print .hag316-story-metric strong{font-size:18pt!important;color:#173e65!important}
 body.hag-v238-printing #hagV238PrintRoot.hag318-project-story-print .hag316-story-metric span{font-size:8pt!important;font-weight:800!important}
 body.hag-v238-printing #hagV238PrintRoot.hag318-project-story-print .hag316-story-metric small{font-size:7pt!important}
 body.hag-v238-printing #hagV238PrintRoot.hag318-project-story-print .value-story-steps{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}
 body.hag-v238-printing #hagV238PrintRoot.hag318-project-story-print .value-story-steps>div{padding:8px!important;border:1px solid #e2e9f0!important;break-inside:avoid!important}
 body.hag-v238-printing #hagV238PrintRoot.hag318-project-story-print .hag318-print-source{font-size:8pt!important;line-height:1.48!important;border-top:1px solid #dbe5ec!important;padding-top:10px!important;margin-top:14px!important}
 body.hag-v238-printing #hagV238PrintRoot.hag318-project-story-print .hag316-story-paragraph{display:block!important;margin:0 0 8px!important}
}

/* Document verification is secondary, with an explicit action rather than a vague "Check" metric. */
#reporting .hag318-library-detail summary{font-size:11px;color:#235a80;text-decoration:none;}
#reporting .hag318-library-detail summary:hover{text-decoration:underline;}
#reporting .hag318-library-refresh{min-height:35px;padding:8px 12px;background:#f6f9fc;font-weight:700;}
#reporting .hag318-story-actions{margin:1px 0 15px;}
#reporting .hag318-story-actions [data-hag318-samples]{border-style:dashed!important;font-weight:650!important;}

/* HAG export toolbar placement rule: first action directly under page intro/hero, left aligned. */
#reporting > .hag325-export-actions, #results > .export-bar{display:flex!important;justify-content:flex-start!important;align-items:center!important;gap:10px!important;flex-wrap:wrap!important;width:100%!important;margin:0 0 15px!important;padding:0!important;position:static!important;clear:both!important;}
#results > .export-bar .export-btn{font-size:12px!important;padding:9px 14px!important;border-radius:10px!important;background:#f8f2e9!important;border:1px solid #decaa8!important;color:#123b65!important;cursor:pointer!important;}
@media(max-width:700px){#reporting > .hag325-export-actions, #results > .export-bar{margin:0 0 12px!important;padding:0!important;}#reporting > .hag325-export-actions button{white-space:normal!important;}}
@media print{#reporting > .hag325-export-actions,#results > .export-bar{display:none!important;}}
