
/* Hero Resources — visual original-source directory | Nov 2026.
   Applies to new curated original-source links only; never to legal answers or notices. */
body .hero-resource-gallery {
  margin-block: clamp(1.6rem,3vw,2.5rem);
  padding-block: clamp(1.2rem,2.5vw,2rem);
  border-block: 1px solid #e2eaee;
  scroll-margin-top: 110px;
}
body .hero-resource-gallery h2 { margin-bottom:.55rem; }
body .hero-resource-gallery > p { max-width:76ch; }
body .hero-resource-gallery-grid {
  display:grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 1rem;
  margin-top:1.2rem;
}
body .hero-resource-gallery-grid > a.hero-resource-tile {
  --hr-accent:var(--hero-brand-blue,#1E88E5);
  --hr-wash:#f1f7ff;
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  min-width:0;
  min-height:220px;
  padding:1.15rem 1.15rem 1.1rem;
  border:1px solid #dce6e9;
  border-top:3px solid var(--hr-accent);
  border-radius:15px;
  background:linear-gradient(155deg,var(--hr-wash),#fff 83%);
  color:#173b5a;
  text-decoration:none;
  box-shadow:0 4px 15px rgba(16,48,75,.06);
  transition:transform .17s ease,box-shadow .17s ease,background .17s ease;
}
body .hero-resource-gallery-grid > a.hero-resource-tile:nth-child(6n+1) { --hr-accent:var(--hero-brand-blue,#1E88E5);--hr-wash:#eff7ff; }
body .hero-resource-gallery-grid > a.hero-resource-tile:nth-child(6n+2) { --hr-accent:var(--hero-brand-rose,#E74C8C);--hr-wash:#fff2f7; }
body .hero-resource-gallery-grid > a.hero-resource-tile:nth-child(6n+3) { --hr-accent:var(--hero-brand-green,#2E7D32);--hr-wash:#f3faef; }
body .hero-resource-gallery-grid > a.hero-resource-tile:nth-child(6n+4) { --hr-accent:var(--hero-brand-purple,#8E24AA);--hr-wash:#fbf3fd; }
body .hero-resource-gallery-grid > a.hero-resource-tile:nth-child(6n+5) { --hr-accent:var(--hero-brand-teal,#26A69A);--hr-wash:#effaf8; }
body .hero-resource-gallery-grid > a.hero-resource-tile:nth-child(6n+6) { --hr-accent:var(--hero-brand-orange,#FB8300);--hr-wash:#fff8ef; }
body .hero-resource-tile .hero-resource-badge {
  display:inline-flex;align-items:center;justify-content:center;
  min-width:3.4rem;min-height:3.1rem;padding:.2rem .45rem;
  border-radius:10px;
  background:#fff;
  color:#153c60;
  border:1px solid #dce6e9;
  font-size:.95rem;letter-spacing:.035em;font-weight:800;
}
body .hero-resource-tile .hero-resource-publisher {
  margin:.65rem 0 .3rem;color:#3e5768;font-size:.84rem;font-weight:650;
}
body .hero-resource-tile h3 {
  margin:.08rem 0 .55rem;line-height:1.3;font-size:1.12rem;
  color:#143d63;
}
body .hero-resource-tile .hero-resource-detail {
  margin:0 0 1.05rem;font-size:.93rem;line-height:1.48;color:#375266;
}
body .hero-resource-tile .hero-resource-action {
  margin-top:auto;display:inline-flex;gap:.4rem;
  align-items:center;color:#123c63;font-weight:750;
  text-decoration:underline;text-underline-offset:.2em;
}
body .hero-resource-gallery-note { margin-top:.95rem;max-width:80ch;color:#42586a;font-size:.9rem; }
@media (hover:hover) and (pointer:fine) {
  body .hero-resource-gallery-grid > a.hero-resource-tile:hover {
    transform:translateY(-2px);
    background:linear-gradient(140deg,var(--hr-wash),#fff 73%);
    box-shadow:0 11px 24px rgba(16,48,75,.12);
  }
}
body .hero-resource-gallery-grid > a.hero-resource-tile:focus-visible {
  outline:3px solid #123b61 !important;outline-offset:3px !important;
  background:linear-gradient(140deg,var(--hr-wash),#fff 73%);
}
@media(max-width:960px){
  body .hero-resource-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:620px){
  body .hero-resource-gallery-grid{grid-template-columns:minmax(0,1fr);}
  body .hero-resource-gallery-grid > a.hero-resource-tile{min-height:0;padding:1rem;}
}
@media(prefers-reduced-motion:reduce){
  body .hero-resource-gallery-grid > a.hero-resource-tile {transition:none!important;transform:none!important;}
}
@media(forced-colors:active){
  body .hero-resource-gallery-grid > a.hero-resource-tile{
    background:Canvas!important;color:LinkText!important;box-shadow:none!important;
    border-color:CanvasText!important;border-top-width:3px;
  }
  body .hero-resource-gallery-grid > a.hero-resource-tile:focus-visible{outline:3px solid Highlight!important;}
  body .hero-resource-tile h3,body .hero-resource-tile .hero-resource-action{color:LinkText!important;}
}
@media print{
  body .hero-resource-gallery-grid > a.hero-resource-tile{background:white!important;box-shadow:none!important;break-inside:avoid;}
}


/* Exactly one agency identifier per issuing organization.
   Other cards use topic-specific icons. All frames are equal circular
   sizes and link targets remain the whole accessible card. */
body .hero-resource-tile .hero-resource-visual {
  width:80px;height:80px;min-width:80px;
  display:inline-flex;align-items:center;justify-content:center;
  box-sizing:border-box;
  border:1px solid #d6e2e9;
  border-radius:50%;
  background:#fff;
  color:#17466d;
  overflow:hidden;
}
body .hero-resource-tile .hero-resource-visual--agency {
  background:#fff;
}
body .hero-resource-tile .hero-resource-agency-mark {
  display:inline-flex;align-items:center;justify-content:center;
  font-size:1.05rem;font-weight:800;
  letter-spacing:.02em;
  color:#17466d;
}
body .hero-resource-tile .hero-resource-visual--topic {
  background:var(--hr-wash);
  color:#173d63;
}
body .hero-resource-tile .hero-resource-visual--topic svg {
  width:39px;height:39px;display:block;
  max-width:calc(100% - 25px);
}
@media(forced-colors:active) {
  body .hero-resource-tile .hero-resource-visual {
    background:Canvas!important;
    border:1px solid CanvasText!important;
    color:CanvasText!important;
  }
  body .hero-resource-tile .hero-resource-agency-mark {
    color:CanvasText!important;
  }
}
