/* VINOD's forest, warm paper and brass palette on the Renhe component layout. */
:root {
  --primary: #073c34;
  --dark: #052f2a;
  --gold: #b99b59;
  --pale-gold: #ebcc82;
  --text: #112c31;
  --body: #314746;
  --muted: #5a6a62;
  --line: #dce3db;
  --line-2: #e8ece4;
  --tint: #f8f6ef;
  --wa: var(--pale-gold);
  --wa-700: #d4b66f;
  --shadow-sm: 0 2px 5px #052f2a0c;
  --shadow: 0 14px 34px -17px #052f2a42;
  --shadow-lg: 0 25px 65px -28px #073c3452;
}
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
html[lang="zh-HK"] { --font: Inter, "PingFang HK", "Noto Sans HK", "Microsoft JhengHei", system-ui, sans-serif; }
.form-disclosure { margin:16px 0; color:var(--muted); font-size:.92rem; }
.form-disclosure a { color:var(--primary); text-decoration:underline; text-underline-offset:3px; }
.topbar { background: var(--dark); color: #f6f3e8; }
.topbar-company { color: #d8d9c8; }
.brand-logo { flex-shrink: 0; }
.brand-logo img { width: clamp(128px,13.5vw,177px); height: auto; }
.btn-wa { color: var(--dark); box-shadow:none; }
.btn-wa:hover { background: var(--wa-700); color: var(--dark); }
.header .nav-item > a { white-space: nowrap; }
.header-cta .icon { display:none; }
.hero { background: radial-gradient(680px 420px at 94% 14%,#e8edde 0%,transparent 72%),linear-gradient(120deg,#f9f8f1,#fff 64%); }
.hero .pill { border-color: #d5dbca; }
.hero-title { color: var(--text); }
.hero-title span { color: var(--primary); }
.hero-sub p, .inquiry-heading .lead p { margin: 0; }
.hero-points { align-items: flex-start; }
.hero-points li { min-width: 0; }
.carousel-slide img { object-position: 54% 46%; }
.carousel-slide figcaption { background: linear-gradient(transparent,rgba(5,47,42,.84)); }
.carousel-dots button { background: #c3ccc2; }
.carousel-dots button.active { background: var(--gold); }
.cat-count, .pc-cat, .section-kicker { font-size: .875rem; }
.section-kicker { letter-spacing:.085em; text-transform:uppercase; font-weight:730; color:#756038; }
.section-head.with-action { display:flex; align-items:center; justify-content:space-between; text-align:left; gap:20px; }
.section-head.with-action p { margin-left:0; }
.pc-media, .story-cover, .article-photo { background: #eeeae0; }
.pc-title { font-size: 1.1rem; }
.pc-meta dt { font-size:.75rem; }
.text-link { display:inline-block; margin-top:14px; color:var(--primary); text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:4px; font-weight:650; }
.text-link:hover { text-decoration-thickness:2px; }
.section-link { margin-top:18px; text-align:center; }
.faq-item {
  --faq-inset: clamp(16px, 3vw, 24px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: none;
}
.faq-item[open] { border-color:color-mix(in srgb,var(--primary) 28%,white); box-shadow:none; }
.faq-item summary { padding:18px var(--faq-inset); line-height:1.5; border-radius:0; }
.faq-item summary .icon { flex:none; }
.faq-item .faq-answer {
  margin:0 var(--faq-inset);
  padding:14px 0 18px;
  border-top:1px solid var(--line-2);
  color:var(--body);
  line-height:1.7;
}
.faq-answer.rich > :first-child { margin-top:0; }
.faq-answer.rich > :last-child { margin-bottom:0; }
.faq-item summary:focus-visible { outline:2px solid var(--primary); outline-offset:-3px; }
@supports selector(:has(*)) {
  .faq-item:has(> summary:focus-visible) { outline:2px solid var(--primary); outline-offset:3px; }
  .faq-item > summary:focus-visible { outline:none; }
}
.faculty-feature { padding-block: 58px; background: #fff; }
.faculty-grid { display:grid; grid-template-columns: minmax(220px,.68fr) minmax(0,1.32fr); align-items:center; gap: clamp(28px,5vw,78px); }
.faculty-image-wrap { display:grid; place-items:center; min-height:282px; border-radius:18px; background:linear-gradient(135deg,#e4e9dd,#f5f1e6 65%,#e8dfc8); }
.faculty-photo, .profile-portrait { padding:8px; background:#fff; border:1px solid #d4cbb1; box-shadow:0 8px 26px #052f2a18; border-radius:4px; }
.faculty-photo img, .profile-portrait img { width:154px; height:207px; object-fit:contain; }
.faculty-copy { max-width:685px; }
.faculty-copy h2, .prof-title h1 { font-size:clamp(2rem,4vw,3.25rem); line-height:1.12; margin:8px 0 12px; letter-spacing:-.03em; }
.faculty-copy p:not(.section-kicker), .profile-lead { font-size:1.075rem; }
.faculty-position { color:var(--primary); font-weight:650; margin:4px 0 12px; }
.faculty-copy .btn { margin-top:24px; }
.section-dark { color:#dbe6de; }
.section-dark .section-head p { color:#c2d1c6; }
.gallery-tabs button { color:#f4f2e7; }
.gallery-item > span { position:absolute; inset:auto 0 0; padding:38px 14px 12px; color:#fff; font-weight:600; background:linear-gradient(transparent,#052f2ad4); }
.story-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.story-card { display:flex; min-width:0; flex-direction:column; overflow:hidden; background:#fff; border:1px solid var(--line); border-radius:var(--radius); }
.story-cover { display:block; aspect-ratio:1.85; overflow:hidden; }
.story-cover img { width:100%; height:100%; object-fit:cover; }
.story-body { display:flex; flex-direction:column; align-items:flex-start; gap:12px; padding:22px; height:100%; }
.story-body h3 { font-size:1.25rem; }
.story-body .text-link { margin-top:auto; }
.inquiry-section { background: linear-gradient(135deg,#f6f5ed,#eef3ea); }
.inquiry-heading { margin-bottom:26px; }
.inquiry-heading h1,.inquiry-heading h2 { font-size:clamp(2rem,4vw,2.8rem); }
.inquiry-aside .aside-card { background:var(--dark); color:#e1e9df; }
.aside-card h3,.aside-card .brief-heading,.aside-card p { color:#fff; }
.aside-company { padding-top:20px; margin-top:20px; border-top:1px solid #ffffff36; font-size:.9rem; }
.form-status.saved { background:#e1f1e7; color:#184a36; border-color:#b5cfc1; }
.footer { background:var(--dark); color:#d3dfd7; }
.foot-mark { width:158px; height:auto; filter:brightness(0) invert(1); margin-bottom:20px; }
.footer-col h2 { color:#fff; font-size:1rem; margin-bottom:14px; }
.footer-col li { margin-bottom:6px; }
.footer-col a:hover { color:var(--pale-gold); }
.footer-bottom .container { gap:12px; }
.crumbs { display:flex; gap:10px; flex-wrap:wrap; align-items:center; font-size:.92rem; }
.crumbs a { text-decoration:underline; text-underline-offset:3px; }
.page-hero { color:#d6e3da; }
.page-hero.compact { color:var(--muted); }
.crumbs [aria-current] { font-weight:600; }
.vinod-side { padding:20px; background:#fff; border:1px solid var(--line); border-radius:14px; }
.vinod-side h2 { font-size:1.2rem; padding:4px 0 16px; }
.side-item { display:flex; align-items:center; justify-content:space-between; gap:8px; border-radius:7px; padding:10px 12px; }
.side-item.selected,.side-item:hover { background:var(--primary-50); color:var(--primary); font-weight:650; }
.side-item small { color:var(--muted); }
.catalog-search label { display:block; color:var(--dark); font-weight:650; margin-bottom:8px; }
.catalog-search > div { display:flex; gap:8px; }
.catalog-search input { flex:1; min-width:0; border:1px solid var(--line); border-radius:8px; font:inherit; padding:9px 13px; }
.result-count { margin:18px 0; color:var(--muted); font-size:.95rem; }
.product-card[hidden] { display:none; }
.pd-intro { margin:18px 0; font-size:1.1rem; }
.project-specs { margin:24px 0; border-top:1px solid var(--line); }
.project-specs div { display:grid; grid-template-columns:1fr 1.5fr; gap:12px; border-bottom:1px solid var(--line); padding:10px 0; }
.project-specs dt { font-weight:650; }
.pd-gallery .pd-main img { object-fit:contain; background:#f5f3ec; }
.list-intro { max-width:750px; margin-bottom:28px; }
.article-layout { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,.7fr); gap:clamp(25px,5vw,76px); align-items:start; }
.article-photo { border-radius:16px; overflow:hidden; }
.article-photo img { width:100%; aspect-ratio:4/3; object-fit:cover; }
.article-photo figcaption { font-size:.9rem; padding:12px 16px; }
.prof-hero { background:linear-gradient(125deg,var(--tint),#e8eee1); padding:40px 0 56px; color:var(--dark); }
.prof-title { display:flex; align-items:center; justify-content:space-between; gap:40px; max-width:950px; margin-top:38px; }
.profile-portrait { flex:none; }
.profile-lead { max-width:680px; }
.professor-body > h2 { padding-top:16px; border-top:1px solid var(--line); }
.to-top { bottom:calc(98px + env(safe-area-inset-bottom,0px)); right:calc(32px + env(safe-area-inset-right,0px)); }
@media (max-width:1024px) {
  .header-inner { gap:12px; }
  .header-actions { margin-left:auto; }
  .hero-media { width:100%; }
  .story-grid { gap:16px; }
}
@media (max-width:760px) {
  .topbar-company { display:none; }
  .faculty-grid,.article-layout,.story-grid { grid-template-columns:1fr; }
  .faculty-image-wrap { min-height:236px; }
  .faculty-photo img { width:127px; height:171px; }
  .faculty-copy { text-align:left; }
  .prof-title { align-items:flex-start; gap:20px; }
  .profile-portrait img { width:88px; height:119px; }
  .prof-title h1 { font-size:1.85rem; }
  .section-head.with-action { align-items:flex-start; }
}
@media (max-width:720px) {
  .footer .to-top { position:static; opacity:1; visibility:visible; transform:none; margin-left:auto; }
  .hero-grid { grid-template-columns:minmax(0,1fr); gap:18px; }
  .hero-copy { display:contents; }
  .hero-copy .pill { justify-self:start; }
  .hero-title, .hero-sub, .hero .btn-row { margin:0; }
  .hero .btn-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .hero .btn-row .btn { padding:0 8px; }
  .hero-media { order:1; margin-top:6px; }
  .hero-points { order:2; margin:4px 0 0; padding-top:20px; }
}
@media (max-width:440px) {
  .hero-points { gap:12px; }
  .prof-title { flex-direction:column-reverse; }
  .section-head.with-action { flex-direction:column; gap:12px; }
}
@media (min-width:361px) and (max-width:720px) {
  .header-cta { width:auto; padding:0 12px; }
  .header-cta span { display:inline; }
}
@media (max-width:360px) {
  .header-inner, .header-actions { gap:6px; }
  .header-cta .icon { display:block; }
}
.lightbox .lb-btn[hidden] { display:none; }


/* Research hub and its editable homepage entry. */
.research-hero { padding:56px 0; color:#e2e9df; background:var(--dark); }
.research-hero-grid { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr); gap:48px; align-items:center; }
.research-hero .section-kicker { color:var(--pale-gold); }
.research-intro h1 { color:white; font-size:clamp(2.3rem,4.5vw,4rem); line-height:1.08; letter-spacing:-.03em; margin:14px 0 22px; }
.research-lead { max-width:650px; font-size:1.1rem; line-height:1.8; }
.research-intro .btn-row { margin-top:28px; }
.research-jump { display:inline-flex; align-items:center; gap:8px; color:#fff; text-decoration:underline; text-underline-offset:4px; font-size:.95rem; }
.research-jump .icon { width:16px; }
.research-hero-photo { border:1px solid #ffffff30; border-radius:16px; overflow:hidden; margin:0; }
.research-hero-photo img { width:100%; aspect-ratio:1.25; object-fit:cover; }
.research-hero-photo figcaption { padding:12px 18px; font-size:.85rem; color:#d1decf; }
.research-body { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(0,.65fr); gap:clamp(30px,5vw,80px); align-items:start; }
.research-copy > :first-child { margin-top:0; font-size:1.1rem; }
.research-copy h3 { border-left:3px solid var(--gold); padding-left:16px; color:var(--primary); }
.research-sidebar { position:sticky; top:110px; }
.research-sidebar .btn { width:100%; margin-top:20px; }
.research-sidebar .article-photo { margin:0; }
.research-feature { background:var(--tint); }
.research-feature-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:clamp(26px,5vw,72px); align-items:center; }
.research-feature-photo { display:block; border-radius:16px; overflow:hidden; }
.research-feature-photo img { width:100%; aspect-ratio:1.8; object-fit:cover; }
.research-feature h2 { margin:10px 0 16px; font-size:clamp(1.8rem,3vw,2.6rem); line-height:1.2; }
.research-feature .btn { margin-top:24px; }
.article-copy > :first-child { margin-top:0; }
@media (min-width:1025px) {
  .header-inner { gap:14px; }
  .header .nav-item > a { padding-inline:10px; }
}
@media (min-width:1025px) and (max-width:1180px) {
  .header-inner { gap:10px; }
  .header .nav-item > a { padding-inline:7px; font-size:14px; }
  .header-actions { gap:6px; }
  .header-cta { padding-inline:12px; }
}
@media (max-width:1024px) {
  .research-hero-grid { gap:28px; }
  .research-body { grid-template-columns:minmax(0,1fr); }
  .research-sidebar { position:static; max-width:620px; }
}
@media (max-width:760px) {
  .research-hero { padding-block:36px; }
  .research-hero-grid,.research-feature-grid { grid-template-columns:minmax(0,1fr); }
  .research-hero-photo img { aspect-ratio:1.65; }
  .research-feature-photo { order:1; }
}

.cta-inner h2 { color:#fff; }
.story-cover { flex-shrink:0; }
.story-body { flex:1; height:auto; }
#research-areas .section-head { max-width:none; }
#research-areas .section-kicker { color:#756038; font-size:.875rem; }

/* Incremental content hubs reuse the existing cards and brand palette. */
.focus-products { grid-template-columns:repeat(2,minmax(0,1fr)); }
.focus-products .pc-media { aspect-ratio:1.65; }
.format-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.application-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
#product-focus .section-head,.section-head.with-action { max-width:none; }
.catalog-intro { margin:24px 0 32px; }
.catalog-focus-head { text-align:left; margin-bottom:22px; }
.catalog-formats-head { margin:48px 0 24px; text-align:left; }
.catalog-heading { margin:36px 0 22px; font-size:1.55rem; }
.catalog-formats { grid-template-columns:repeat(2,minmax(0,1fr)); }
.category-overview { margin-top:28px; }
.category-photo { float:right; width:36%; margin:0 0 20px 28px; }
.category-photo img { width:100%; aspect-ratio:1; object-fit:cover; border-radius:14px; }
.category-photo figcaption { margin-top:8px; color:var(--muted); font-size:.82rem; }
.category-overview::after { content:""; display:block; clear:both; }
.catalog-search input { min-width:0; }
.crumbs { flex-wrap:wrap; }
@media (max-width:1024px) { .format-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:760px) {
  .focus-products,.catalog-formats,.application-grid { grid-template-columns:minmax(0,1fr); }
  .category-photo { float:none; width:100%; max-width:420px; margin:0 0 24px; }
  .category-photo img { aspect-ratio:1.6; }
}

.focus-products .pc-media img { object-fit:contain; padding:16px; }
.image-note { color:#5e6e65; font-size:.8rem; line-height:1.5; margin:0 0 10px; }
.pd-gallery > .image-note { margin:12px 0; }
.carousel-dots { gap:0; margin-top:4px; }
.carousel-dots button,.carousel-dots button.active { width:44px; height:36px; display:grid; place-items:center; background:transparent; }
.carousel-dots button::after { content:""; display:block; width:9px; height:9px; border-radius:999px; background:#c3ccc2; transition:width .3s,background .3s; }
.carousel-dots button.active::after { width:26px; background:var(--gold); }
.carousel-dots button:focus-visible { outline:2px solid var(--primary); outline-offset:0; }
.catalog-focus-head { max-width:none; margin-inline:0; }
@media (max-width:1024px) {
  .shop-side .vinod-side { display:flex; flex-wrap:wrap; gap:6px; }
  .shop-side .vinod-side h2 { flex-basis:100%; margin-bottom:8px; }
  .shop-side .side-item { flex:0 0 auto; width:auto; padding:8px 10px; margin:0; font-size:.875rem; min-height:40px; }
}

/* Delivery navigation: keep the existing visual system. */
.side-formats-title{font-size:.9rem;margin:22px 12px 8px;padding-top:16px;border-top:1px solid var(--line);color:var(--muted);}
.hero-title{text-wrap:balance;}
.hero-title span{margin-top:.3em;font-size:.76em;}

/* Shared contact details use the existing inquiry card and footer palette. */
.direct-contact-list{list-style:none;margin:18px 0 0;padding:0;}
.direct-contact-list li{border-top:1px solid rgba(255,255,255,.16);}
.direct-contact-list a{display:block;padding:13px 0;color:#fff;overflow-wrap:anywhere;}
.direct-contact-list a:hover strong{text-decoration:underline;text-underline-offset:3px;}
.direct-contact-list span{display:block;color:#d3dfd7;font-size:.82rem;margin-bottom:3px;}
.direct-contact-list strong{font-size:1rem;font-weight:600;}
.contact-brief{margin-top:22px;padding-top:20px;border-top:1px solid rgba(255,255,255,.16);}
.contact-brief-title{font-size:1.1rem;font-weight:700;margin-bottom:8px;}
.contact-brief p:last-child{font-size:.94rem;margin-bottom:18px;}
.contact-qr{margin-top:12px;}
.contact-qr summary{cursor:pointer;padding:10px 0;color:#fff;text-decoration:underline;text-underline-offset:3px;}
.contact-qr img{display:block;width:100%;max-width:300px;height:auto;margin:12px auto;border-radius:12px;}
.contact-qr p{font-size:.8rem;line-height:1.5;}
.footer-contact-details a{overflow-wrap:anywhere;}

/* Direct WhatsApp contact remains available while browsing either language. */
.wa-float{right:calc(24px + env(safe-area-inset-right,0px));bottom:calc(24px + env(safe-area-inset-bottom,0px));}
.wa-fab.wa-direct{display:grid;place-items:center;width:58px;height:58px;padding:0;border:2px solid #fff;border-radius:50%;background:#25d366;color:#fff;box-shadow:0 5px 20px rgba(7,60,52,.25);}
.wa-fab.wa-direct::before{display:none;}
.wa-direct .icon{width:32px;height:32px;}
.wa-fab.wa-direct:hover{background:#128c4a;}
.wa-direct:focus-visible{outline:3px solid var(--primary);outline-offset:4px;}
@media (max-width:760px){
  .wa-float{right:calc(16px + env(safe-area-inset-right,0px));bottom:calc(16px + env(safe-area-inset-bottom,0px));}
  .wa-fab.wa-direct{width:54px;height:54px;}
  .to-top{right:calc(21px + env(safe-area-inset-right,0px));bottom:calc(82px + env(safe-area-inset-bottom,0px));}
}
@media (max-width:720px){.footer-bottom{padding-bottom:calc(86px + env(safe-area-inset-bottom,0px));}}
@media (prefers-reduced-motion:reduce){.wa-direct{transition:none;}.wa-fab.wa-direct:hover{transform:none;}}
@media print{.wa-float{display:none;}}
