/* The history hub (/history/{asset}) and the governments page: what the report styles
   (history-report.css) do not have. Docs: docs/seo-models-hb.md. */

.hub .hb-h3{margin:22px 0 4px;font-size:16px;font-weight:650}
.hub .hr-table td.hb-wrap,.hub .hr-table .hb-wrap{white-space:normal;min-width:16ch;max-width:46ch}
.hub .hr-table .n{display:block;font-size:12px;font-weight:400;color:var(--muted);white-space:normal;max-width:30ch;line-height:1.7}
.hub .hr-table th .n{font-weight:400}
.hub .hr-table tr.is-empty th,.hub .hr-table tr.is-empty td{color:var(--muted);font-weight:400}
.hub .hb-ago tr.is-key th,.hub .hb-ago tr.is-key td{background:color-mix(in srgb,var(--brand) 9%,var(--surface));font-weight:650}
.hub .hb-gov tr.is-interim th,.hub .hb-gov tr.is-interim td{background:var(--surface-2);color:var(--muted)}
.hub .hb-gov tbody th{min-width:15ch;white-space:normal}

/* choose another date */
.hb-pick{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px 14px;margin:0 0 14px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}
.hb-pick label{display:flex;flex-direction:column;gap:4px;font-size:13px;color:var(--muted)}
.hb-pick select{min-width:110px;min-height:40px;padding:0 10px;border:1px solid var(--line-strong);border-radius:10px;background:var(--surface);color:var(--ink);font:inherit}
.hb-pick button{min-height:40px;padding:0 16px;border:1px solid var(--brand);border-radius:10px;background:var(--brand);color:#fff;font:inherit;font-weight:600;cursor:pointer}
.hb-pick a{align-self:center;font-size:13px;color:var(--brand);text-decoration:underline;text-underline-offset:3px}
.hub :focus-visible{outline:2px solid var(--brand);outline-offset:2px}

/* the years of the archive */
.hb-years ol{flex-wrap:wrap;overflow:visible}
.hb-years li{flex:0 0 auto}

/* periods shaded behind a chart */
.hr-chart .band{fill:color-mix(in srgb,var(--faint) 10%,transparent);stroke:none}
.hr-chart .band.alt{fill:color-mix(in srgb,var(--brand) 9%,transparent)}
.hr-chart .bandl{font-size:11.5px;fill:var(--muted)}

.hb-docs{margin:8px 0 0;padding-inline-start:20px;font-size:13.5px;line-height:1.95}
.hb-docs a{color:var(--brand)}

@media (max-width:720px){
  .hub .hr-table .hb-wrap{min-width:22ch}
  .hb-pick{padding:10px}
  .hb-pick label{flex:1 1 40%}
  .hb-pick select{width:100%}
}

/* the list of every instrument with history pages (/history) */
.hb-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:8px;margin:8px 0 0;padding:0;list-style:none}
.hb-list li{display:flex;flex-direction:column;gap:2px;padding:10px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.hb-list a{color:var(--ink);text-decoration:none;font-weight:600}
.hb-list a:hover{color:var(--brand)}
.hb-list .hb-sub{font-size:12.5px;font-weight:400;color:var(--muted)}
.hr-sec h2 small{font-size:13px;font-weight:400;color:var(--muted)}
