/* CHANNMAS homepage-only resource highlights. The complete library is unchanged. */
.chm-home-resources {
  position:relative;
  overflow:hidden;
  isolation:isolate;
  background:var(--bg);
  color:var(--ink);
  padding:78px 0 73px;
  border-top:1px solid var(--outline);
}
.chm-home-resources::before {
  content:"";
  pointer-events:none;
  position:absolute;
  z-index:-1;
  inset:-190px auto auto -200px;
  width:530px;
  height:470px;
  background:radial-gradient(ellipse,rgba(31,122,88,.075),transparent 70%);
}
.chm-home-resources-intro {
  margin:0 auto 38px;
  text-align:center;
  max-width:860px;
}
.chm-home-resources-eyebrow {
  margin:0 0 14px;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:14px;
  color:var(--jade);
  letter-spacing:.18em;
  font-weight:800;
  font-size:.7rem;
}
.chm-home-resources-eyebrow span {
  width:45px;
  height:1px;
  background:var(--jade);
  opacity:.65;
}
.chm-home-resources-intro h2 {
  margin:0 0 15px;
  color:var(--ink);
  font-family:'Plus Jakarta Sans',sans-serif;
  font-size:clamp(2rem,3.8vw,3.5rem);
  font-weight:800;
  letter-spacing:-.055em;
  line-height:1.18;
}
.chm-home-resources-intro h2 span {color:var(--jade)}
.chm-home-resources-intro>p:last-child {
  color:var(--muted);
  font-size:.95rem;
  line-height:1.7;
  max-width:720px;
  margin:0 auto;
}
.chm-home-resources-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(190px,240px));
  justify-content:center;
  gap:18px;
  align-items:stretch;
  max-width:1050px;
  margin:0 auto;
}
.chm-home-resource-card {
  min-width:0;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  background:var(--surface);
  border:1px solid var(--outline);
  border-radius:15px;
  box-shadow:0 8px 24px rgba(12,43,32,.035);
  transition:border-color .2s ease,transform .2s ease,box-shadow .2s ease;
}
.chm-home-resource-card:hover {
  border-color:var(--jade);
  box-shadow:var(--shadow);
  transform:translateY(-3px);
}
.chm-home-resource-image {
  position:relative;
  aspect-ratio:1.65;
  overflow:hidden;
  background:var(--surface-mint);
}
.chm-home-resource-image img {height:100%;width:100%;object-fit:cover}
.chm-home-resource-image--fallback {display:grid;place-items:center}
.chm-home-resource-placeholder {display:grid;place-items:center;gap:8px;color:var(--jade);font-weight:750}
.chm-home-resource-placeholder small {font-size:.66rem;letter-spacing:.14em}
.chm-home-resource-free,.chm-home-resource-format {
  position:absolute;
  top:10px;
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:4px 8px;
  font-size:.63rem;
  font-weight:850;
  line-height:1.15;
  letter-spacing:.045em;
}
.chm-home-resource-free {left:10px;color:#fff;background:#236249}
.chm-home-resource-format {right:10px;color:#fff;background:rgba(10,33,25,.86)}
.chm-home-resource-content {
  display:flex;
  flex-direction:column;
  flex:1;
  min-width:0;
  padding:14px 15px 16px;
}
.chm-home-resource-content h3 {
  margin:0 0 7px;
  font-family:'Plus Jakarta Sans',sans-serif;
  font-weight:800;
  font-size:.91rem;
  line-height:1.35;
  letter-spacing:-.02em;
  color:var(--ink);
  overflow-wrap:anywhere;
}
.chm-home-resource-content>p {
  margin:0 0 13px;
  color:var(--muted);
  font-size:.78rem;
  line-height:1.55;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
}
.chm-home-resource-open {
  display:inline-flex;
  align-items:center;
  gap:7px;
  width:fit-content;
  min-height:35px;
  margin-top:auto;
  color:var(--jade);
  font-size:.78rem;
  font-weight:800;
  text-decoration:none;
  text-underline-offset:3px;
}
.chm-home-resource-open svg:last-child {margin-left:2px;transition:transform .2s ease}
.chm-home-resource-open:hover svg:last-child {transform:translateX(3px)}
.chm-home-resource-open:hover {text-decoration:underline}
.chm-home-resource-open:focus-visible,.chm-home-resources-all:focus-visible {outline:3px solid var(--jade);outline-offset:4px}
.chm-home-resources-more {display:flex;justify-content:center;margin:32px auto 0}
.chm-home-resources-all {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:11px;
  padding:14px 23px;
  min-height:48px;
  border-radius:99px;
  background:#236249;
  color:#fff;
  font-size:.88rem;
  font-weight:800;
  text-decoration:none;
  transition:background-color .2s ease,transform .2s ease;
}
.chm-home-resources-all:hover {background:#1b7655;transform:translateY(-1px);color:#fff}
.chm-home-resources-signoff {
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:9px;
  margin:30px 0 0;
  text-transform:uppercase;
  letter-spacing:.13em;
  color:var(--jade);
  font-size:.68rem;
  font-weight:850;
}
.chm-home-resources-dot {margin:0 9px}
.chm-home-resources-soon {margin:0;text-align:center;color:var(--muted);font-size:.9rem}
html[data-theme=dark] .chm-home-resources {
  background:radial-gradient(circle at 8% 25%,rgba(46,111,79,.13),transparent 30%),var(--bg);
}
html[data-theme=dark] .chm-home-resource-card {
  background:#112720;
  border-color:#365547;
  box-shadow:none;
}
html[data-theme=dark] .chm-home-resource-card:hover {border-color:#76ba97}
html[data-theme=dark] .chm-home-resource-content h3 {color:#f1f8f3}
html[data-theme=dark] .chm-home-resource-content>p {color:#b5d0c3}
html[data-theme=dark] .chm-home-resources-intro h2 span {color:#a9e9ca}
html[data-theme=dark] .chm-home-resources-all {background:#246c50}
html[data-theme=dark] .chm-home-resources-all:hover {background:#2b8863}
@media(max-width:1080px) {
  .chm-home-resources-grid {grid-template-columns:repeat(2,minmax(0,250px))}
}
@media(max-width:600px) {
  .chm-home-resources {padding:53px 0 57px}
  .chm-home-resources-intro {margin-bottom:25px}
  .chm-home-resources-intro h2 {font-size:clamp(1.9rem,7vw,2.55rem)}
  .chm-home-resources-intro>p:last-child {font-size:.85rem}
  .chm-home-resources-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
  .chm-home-resource-content {padding:12px 11px 13px}
  .chm-home-resource-content h3 {font-size:.82rem}
  .chm-home-resource-content>p {font-size:.74rem}
  .chm-home-resource-free,.chm-home-resource-format {font-size:.56rem;padding:4px 6px;top:8px}
  .chm-home-resource-free {left:7px}
  .chm-home-resource-format {right:7px}
  .chm-home-resources-signoff {gap:7px;font-size:.58rem;letter-spacing:.08em}
  .chm-home-resources-dot {margin:0 3px}
}
@media(max-width:370px) {
  .chm-home-resources-grid {grid-template-columns:minmax(0,260px)}
  .chm-home-resource-content h3 {font-size:.9rem}
}
@media(prefers-reduced-motion:reduce) {
  .chm-home-resource-card,.chm-home-resource-open svg:last-child,.chm-home-resources-all {transition:none}
  .chm-home-resource-card:hover,.chm-home-resources-all:hover,.chm-home-resource-open:hover svg:last-child {transform:none}
}
