/* SFFO resources hub — family health + VHIS. Page-specific; does not replace site.css. */
.res-hero{padding:0;background:#eef7f1;overflow:hidden}
.res-hero-inner{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,1.05fr);gap:40px;align-items:center;padding:56px 24px 40px}
.res-hero-copy h1{margin:0 0 .4em;color:#18453B}
.res-hero-copy .lead{margin:0;max-width:36em;color:#3F8F6B;font-family:"Noto Serif TC",serif;font-size:clamp(1.05rem,2.2vw,1.25rem);line-height:1.7}
.res-hero-art{margin:0}
.res-hero-art img{display:block;width:100%;height:auto;border-radius:16px;box-shadow:0 8px 28px rgba(24,69,59,.10)}
.res-tags-wrap{background:#f7fbf8;border-bottom:1px solid #e3eee8;padding:14px 0}
.res-tags{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.res-tags button{appearance:none;font:inherit;cursor:pointer;border:1px solid #e0ebe4;background:#fff;color:#18453B;padding:6px 16px;border-radius:999px;font-size:.92rem;font-weight:500;line-height:1.4;transition:background .15s,border-color .15s,color .15s}
.res-tags button:hover{border-color:#8fb89f;background:#f3f8f5}
.res-tags button.is-active{background:#cfe6d8;border-color:#8fb89f;color:#18453B}
.res-tags button:focus-visible{outline:2px solid #3F8F6B;outline-offset:2px}
.res-section{padding:64px 0}
.res-section h2{margin-top:0}
.res-family{background:#fff}
.res-vhis{background:#f4f7f9;border-top:1px solid #e6e8ea}
.res-intro p{max-width:42em}
.res-cards{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:32px 0 8px}
.res-card{background:#fff;border-top:3px solid var(--p);border-radius:4px;box-shadow:0 1px 3px rgba(0,0,0,.05);padding:22px;display:flex;flex-direction:column;min-width:0}
.res-card-cover{display:block;margin:0 0 16px;background:#eef7f1;border-radius:4px;overflow:hidden}
.res-card-cover img{display:block;width:100%;height:auto;aspect-ratio:3/4;object-fit:cover;object-position:top center}
.res-card h3{font-size:1.15rem;margin:0 0 .25em}
.res-card .note{margin:.15em 0 .5em}
.res-card .btn{align-self:flex-start;margin-top:auto;padding:12px 22px}
.res-steps{list-style:none;padding:0;margin:8px 0 0;display:grid;gap:12px}
.res-steps li{display:grid;grid-template-columns:2em 1fr;gap:12px;align-items:start;max-width:42em}
.res-steps .num{display:inline-flex;align-items:center;justify-content:center;width:1.8em;height:1.8em;border-radius:50%;background:#cfe6d8;color:#18453B;font-weight:600;font-size:.9rem}
.res-contact{margin:28px 0 0;max-width:42em}
.res-disclaimer{margin:20px 0 0;font-size:.85rem;color:#5b5a5b;max-width:42em}
.res-vhis-note{max-width:42em}
.res-vhis-open{margin:8px 0 16px}
.res-vhis-frame{background:#fff;border:1px solid #e6e8ea;border-radius:4px;overflow:auto;width:100%;max-width:100%}
.res-vhis-frame iframe{display:block;width:100%;min-width:280px;height:1600px;border:0}
@media(max-width:800px){
  .res-hero-inner{grid-template-columns:1fr;gap:24px;padding:40px 24px 32px}
  .res-cards{grid-template-columns:1fr}
}
@media(max-width:390px){
  .res-hero-inner{padding:32px 16px 24px}
  .res-card{padding:18px}
  .res-vhis-frame iframe{height:1400px}
}

.res-lang-label{display:inline-block;margin:.1em 0 .65em;padding:4px 12px;border-radius:999px;background:#eef7f1;border:1px solid #cfe6d8;color:#18453B;font-size:.85rem;font-weight:500;line-height:1.4}
body.lang-en .res-hero-copy .lead{font-family:"Libre Baskerville",Georgia,serif}
body.lang-sc .res-hero-copy .lead{font-family:"Noto Serif SC","Noto Serif TC",serif}

/* Education section (coming to study in Hong Kong) */
.res-study{background:#fff;border-top:1px solid #e3eee8}
.res-section-art{margin:8px 0 28px}
.res-section-art img{display:block;width:100%;max-width:920px;height:auto;border-radius:16px;box-shadow:0 8px 28px rgba(24,69,59,.10)}
body[data-res-filter="study"] .res-study .res-section-art{display:none}
#res-hero-lead:empty{display:none}
.res-module-head{margin:0 0 1.4em}
.res-module-head h2{margin:0}
.res-module-head h2::after{display:none}
.res-module-sub{margin:.35em 0 0;max-width:36em;color:#3F8F6B;font-family:"Noto Serif TC",serif;font-size:clamp(1.05rem,2.2vw,1.25rem);line-height:1.7}
body.lang-en .res-module-sub{font-family:"Libre Baskerville",Georgia,serif}
body.lang-sc .res-module-sub{font-family:"Noto Serif SC","Noto Serif TC",serif}
.res-module-head::after{content:"";display:block;width:48px;height:2px;background:var(--a);margin-top:.7em}
.res-study .res-intro p{max-width:42em}
.res-study .res-cards{grid-template-columns:minmax(0,420px);max-width:420px}
@media(max-width:800px){
  .res-study .res-cards{grid-template-columns:1fr;max-width:none}
}
