/* Removes residual non-functional line motifs while preserving component structure. */
.card:before,.brand-page .profile:before,.brand-page--hemp .card:not(:last-child):after,.brand-page--future .card-grid:before,.contact-enquiry-card:before,.contact-enquiry-card__access:before,.genetics-card:before,.seed-service-card:before,.knowledge-card:before,.resource-card:before,.sesame-genetics__card:before,.sesame-commercialisation__card:before,.hemp-licensing__card:before,.hemp-licensing__card:after{content:none!important;display:none!important}

/* Shared visual balance: restrained type scale and solid light HGT section rhythm. */
body{font-size:16px;line-height:1.75}
h1,h2,h3,h4,h5,h6{font-family:var(--sans);line-height:1.1}
h1,h2{font-weight:700}
h3,h4,h5,h6{font-weight:600}
.nav a,.nav summary,.button,.text-link{font-family:var(--sans);font-weight:600}
.eyebrow,.badge,.breadcrumbs a,.breadcrumbs span,.facts dt,.contact-form label,.catalogue-request-form label,.footer-title{font-weight:500}
.site-footer,.site-footer .footer-grid a,.site-footer .footer-grid span,.copyright__inner{font-weight:400}
h1{font-size:clamp(2.125rem,4.17vw,3.75rem);margin-bottom:1.25rem}
h2{font-size:clamp(1.625rem,3.1vw,2.5rem);margin-bottom:1rem}
h3{font-size:clamp(1.375rem,2.35vw,1.875rem);line-height:1.18}
.hero h1{font-size:clamp(2.125rem,4.17vw,3.75rem)}
.page-hero h1,.knowledge-hub__hero h1,.resources-hero h1{font-size:clamp(2rem,4vw,3.25rem)}
.lead{font-size:clamp(1rem,1.25vw,1.125rem);line-height:1.72}
.hero{min-height:610px!important}
.hero__inner{padding:clamp(6.75rem,11vw,9.25rem) 0}
.page-hero{padding:clamp(4.75rem,8vw,6.9rem) 0}
.knowledge-hub__hero,.resources-hero{padding:clamp(4.75rem,8vw,6.9rem) 0}
.section{padding:clamp(4.25rem,7.5vw,6.75rem) 0}
.section-heading{margin-bottom:2rem}
.two-col,.profile,.contact-layout{gap:clamp(2.5rem,6vw,5.5rem)}
.card{min-height:270px;padding:clamp(1.5rem,2.5vw,2rem)}

/* Sage-forward surfaces use only the official green with transparent tints. */
:root{--surface-sage-tint:rgba(96,135,90,.06);--surface-sage-wash:rgba(96,135,90,.08);--shadow-sage:rgba(96,135,90,.16)}
.hero,.page-hero,.knowledge-hub__hero,.resources-hero{background:var(--color-secondary)!important}
.hero,.page-hero,.knowledge-hub__hero,.resources-hero,.hero h1,.page-hero h1,.knowledge-hub__hero h1,.resources-hero h1,.hero .lead,.page-hero .lead,.knowledge-hub__hero .lead,.resources-hero .lead,.hero .eyebrow,.page-hero .eyebrow,.knowledge-hub__hero .eyebrow,.resources-hero .eyebrow,.hero .breadcrumbs a,.hero .breadcrumbs span,.page-hero .breadcrumbs a,.page-hero .breadcrumbs span,.knowledge-hub__hero .breadcrumbs a,.knowledge-hub__hero .breadcrumbs span,.resources-hero .breadcrumbs a,.resources-hero .breadcrumbs span{color:var(--color-primary)!important}
.hero .breadcrumbs i,.page-hero .breadcrumbs i,.knowledge-hub__hero .breadcrumbs i,.resources-hero .breadcrumbs i{color:var(--color-primary)!important}
.hero .eyebrow:before,.page-hero .eyebrow:before,.knowledge-hub__hero .eyebrow:before,.resources-hero .eyebrow:before{background:var(--color-primary)!important}
main>.section:nth-of-type(even):not(.cta){background:var(--surface-sage-tint);border-block:1px solid var(--border)}
.section--ivory,.brand-page .section--ivory{background:var(--accent-gold-light)!important;border-block:1px solid var(--surface-secondary)}
.hemp-genetics,.seed-services,.contact-enquiries,.sesame-genetics,.sesame-commercialisation,.hemp-licensing{background:var(--surface-sage-wash)!important;border-block:1px solid var(--border)}
.facts,.legal__notice,.contact-form{background:var(--surface-sage-tint)!important}
.card,.genetics-card,.seed-service-card,.knowledge-card,.resource-card,.contact-enquiry-card,.hemp-licensing__card,.sesame-commercialisation__card,.sesame-genetics__card{background:var(--surface-base)!important;border-color:var(--border);border-top:3px solid var(--color-secondary)!important;box-shadow:0 10px 26px var(--shadow-sage)}
.article-card{border-top:3px solid var(--color-secondary)!important;box-shadow:0 10px 26px var(--shadow-sage)}
.card--future,.knowledge-card--controlled,.resource-card--protected,.contact-enquiry-card--protected,.seed-service-card--international{background:var(--accent-gold-light)!important;border-color:var(--accent-gold)}

/* Green-led interaction and footer surfaces. */
.button,.button--dark,.button--gold{background:var(--color-secondary);border-color:var(--color-secondary);color:var(--color-primary)}
.button:hover,.button--dark:hover,.button--gold:hover{background:var(--color-secondary);background:color-mix(in srgb,var(--color-secondary) 84%,var(--color-primary));border-color:var(--color-secondary);border-color:color-mix(in srgb,var(--color-secondary) 84%,var(--color-primary));color:var(--surface-base)}
.nav a[aria-current=page],.nav a:hover,.nav summary:hover,.text-link:hover{color:var(--color-secondary)}
.site-footer,.copyright{background:var(--color-secondary)!important;color:var(--color-primary)!important}
.site-footer .wordmark,.site-footer .wordmark__mark,.site-footer .wordmark__label,.site-footer .footer-title,.site-footer .footer-grid p,.site-footer .footer-grid a,.site-footer .footer-grid span,.site-footer .copyright__inner,.site-footer .copyright a{color:var(--color-primary)!important}
.site-footer .footer-grid a:hover,.site-footer .copyright a:hover{text-decoration-color:var(--color-primary);text-decoration-thickness:2px}
.site-footer,.copyright{border-color:var(--color-primary)!important}
.section .eyebrow,.knowledge-hub__articles-section .eyebrow,.article-card__meta,.genetics-card__status,.pipeline-status,.resource-card__access,.contact-enquiry-card__access{color:var(--color-secondary)}
.brand-card__number{border-color:var(--color-secondary);color:var(--color-secondary)}
.contact-form input[type=checkbox]{accent-color:var(--color-secondary)}

/* Responsive safety layer for real handset widths and long corporate labels. */
main,section,.shell,.card,.profile-card,.article-card,.contact-form{min-width:0}
img,svg,video,canvas{height:auto;max-width:100%}
h1,h2,h3,h4,h5,h6,p,li,.button,.nav a,.nav summary,.footer-grid a,.footer-grid span{overflow-wrap:anywhere}

@media(max-width:1100px){
  .header-inner{grid-template-columns:auto auto;justify-content:space-between;min-height:82px}
  .menu-toggle{display:block;min-height:44px;min-width:44px}
  .nav{background:var(--surface-base);border-top:1px solid var(--border);display:none;grid-column:1/-1;justify-self:stretch;margin-inline:-32px;max-height:calc(100dvh - 82px);overflow-y:auto;padding:14px 32px 22px}
  .nav.is-open{display:block}
  .nav-list{align-items:stretch;flex-direction:column;gap:0}
  .nav a,.nav summary{align-items:center;display:flex;min-height:44px;padding:10px 0}
  .brand-menu{background:var(--surface-base);border:0;box-shadow:none;left:0;padding:0 0 0 17px;position:static}
  .brand-menu a{color:var(--color-primary)}
  .header-cta{display:none}
}

/* Official HEMPGenTech border and interaction treatment. */
.site-header,.brand-menu,.card,.team-card,.profile-card,.genetics-card,.seed-service-card,.knowledge-card,.resource-card,.contact-enquiry-card,.hemp-licensing__card,.sesame-commercialisation__card,.sesame-genetics__card,.article-card,.contact-form,.catalogue-modal__dialog,.seed-catalogue-modal__dialog,.sesame-catalogue-modal__dialog,.resources-modal__dialog,.knowledge-modal__dialog,.profile-modal__dialog{border-color:var(--border)!important}
.site-footer,.copyright{border-color:var(--border)!important}
.contact-form input,.contact-form textarea,.catalogue-request-form input,.catalogue-request-form select,.catalogue-request-form textarea{border-color:var(--border)!important}
.contact-form input:focus,.contact-form textarea:focus,.catalogue-request-form input:focus,.catalogue-request-form select:focus,.catalogue-request-form textarea:focus:focus{border-color:var(--color-secondary)!important;box-shadow:0 0 0 3px var(--accent-gold-light)}

@media(max-width:980px){
  .hero h1{font-size:clamp(2.625rem,5.5vw,3rem)}
  .page-hero h1,.knowledge-hub__hero h1,.resources-hero h1{font-size:clamp(2.375rem,5vw,2.75rem)}
  h2{font-size:clamp(1.875rem,4vw,2.25rem)}
  h3{font-size:clamp(1.5rem,3vw,1.875rem)}
  .hero{min-height:0!important}
  .hero__inner{padding:clamp(5.5rem,11vw,7rem) 0}
  .page-hero,.knowledge-hub__hero,.resources-hero{padding:clamp(4.25rem,8vw,5.5rem) 0}
  .section{padding:clamp(4rem,7vw,5.5rem) 0}
}

@media(max-width:620px){
  h1{font-size:clamp(2.125rem,9.5vw,2.5rem)}
  .hero h1{font-size:clamp(2.125rem,9.5vw,2.5rem)}
  .page-hero h1,.knowledge-hub__hero h1,.resources-hero h1{font-size:clamp(2rem,9.5vw,2.375rem)}
  h2{font-size:clamp(1.625rem,7.5vw,2rem)}
  h3{font-size:clamp(1.375rem,6.5vw,1.625rem)}
  .hero{min-height:0!important}
  .hero__inner{padding:5.5rem 0}
  .page-hero,.knowledge-hub__hero,.resources-hero{padding:4.5rem 0}
  .section{padding:4.25rem 0}
  .card{min-height:0;padding:1.5rem}
  .nav{margin-inline:-20px;padding-inline:20px}
  .button{max-width:100%;min-height:44px;text-align:center;white-space:normal}
  .hero-actions,.cta__inner{gap:1rem}
  .card-grid,.team-grid,.footer-grid,.contact-form__row,.hemp-genetics__grid--available,.pipeline-lines,.seed-services__grid,.contact-enquiries__grid,.hemp-licensing__grid,.sesame-commercialisation__grid,.knowledge-hub__grid,.resources-grid{grid-template-columns:1fr!important}
  .footer-grid a,.footer-grid span{padding-block:.35rem}
  .catalogue-modal__dialog,.seed-catalogue-modal__dialog,.sesame-catalogue-modal__dialog,.resources-modal__dialog,.knowledge-modal__dialog,.profile-modal__dialog{max-height:calc(100dvh - 2rem);max-width:100%;overflow-y:auto;overscroll-behavior:contain;padding:1.5rem;width:calc(100% - 2rem)}
  .profile-modal__dialog{padding-top:3.5rem}
  .profile-modal,.catalogue-modal,.seed-catalogue-modal,.sesame-catalogue-modal,.resources-modal,.knowledge-modal{padding:1rem}
  .contact-form{max-width:100%;width:100%}
  .contact-form input,.contact-form textarea,.catalogue-request-form input,.catalogue-request-form select,.catalogue-request-form textarea{max-width:100%;min-width:0;width:100%}
  .catalogue-request-form__row,.contact-form__row{gap:.9rem}
  .brand-page .facts{box-shadow:none}
}
