/* Homepage design language for all public page families; native forms and directory queries retained. */
.diw-unified{background:var(--diw-cream);color:var(--diw-ink)}
.diw-unified:not(.home) #content{background:var(--diw-cream)}
.diw-unified:not(.home) h1{font-family:var(--diw-serif)!important;font-weight:400!important;letter-spacing:-.035em!important;line-height:1.08!important}
.diw-unified:not(.home) .entry-content h2,.diw-unified:not(.home) .dsg-guide h2{font-family:var(--diw-serif)!important;font-weight:400!important;letter-spacing:-.025em!important;line-height:1.18!important}
.diw-unified:not(.home) .entry-content a{text-underline-offset:4px}
/* Legacy immigration, community, practical, policy and contact pages. */
.diw-legacy #primary{margin:0!important}.diw-legacy #content>.ast-container{max-width:none!important;padding:0!important}
.diw-legacy .ast-article-single{padding:0!important;background:transparent!important}
.diw-legacy .entry-content>.diw-unified-section{width:100%!important;max-width:none!important;margin:0!important;padding:56px 28px!important;background:#fffefa!important;border:0}
.diw-legacy .diw-unified-section>.wp-block-group{width:100%!important;max-width:1120px!important;margin:auto!important}
.diw-legacy .diw-unified-section p,.diw-legacy .diw-unified-section li{color:#536659!important;font-size:17px!important;line-height:1.85!important}
.diw-legacy .diw-unified-section h2{color:#163c32!important;font-size:clamp(30px,3.3vw,43px)!important;margin-bottom:24px!important}
.diw-legacy .diw-unified-section h3{color:#234c36!important;font-size:23px!important;line-height:1.3!important}
.diw-legacy .diw-unified-section a{color:#236549!important}
.diw-legacy .entry-content>.diw-unified-soft{background:#edf2e4!important}
.diw-legacy .entry-content>.diw-unified-warm{background:#faf0d9!important}
.diw-legacy .entry-content>.diw-unified-hero{position:relative;isolation:isolate;overflow:hidden;padding:65px 28px 60px!important;background:radial-gradient(ellipse at 82% 10%,#e8eed8,transparent 55%),var(--diw-cream)!important;border-bottom:1px solid #e1e6d7}
.diw-legacy .diw-unified-hero h1{color:#163c32!important;font-size:clamp(40px,5.5vw,70px)!important;max-width:1000px;margin:15px 0 25px!important}
.diw-legacy .diw-unified-hero p:first-child{font-size:11px!important;font-weight:750!important;text-transform:uppercase;letter-spacing:1.8px;color:#587249!important;line-height:1.5!important}
.diw-legacy .diw-unified-hero p:last-child{font-size:19px!important;max-width:850px;color:#5b6b61!important;margin-bottom:0}
.diw-legacy .diw-unified-hero:after{content:'';position:absolute;z-index:-1;width:210px;height:280px;right:6%;top:18%;border:1px solid #dce5cf;border-radius:80% 0 80% 0;transform:rotate(25deg);opacity:.7;pointer-events:none}
.diw-legacy .entry-content .wp-block-group[style*="border"]{border-color:#dce4d5!important;border-radius:18px!important;box-shadow:0 7px 22px #254f3708}
.diw-legacy .entry-content .wp-block-columns{gap:24px}
.diw-legacy .entry-content .wp-block-column{min-width:0}
.diw-legacy .entry-content .wp-block-buttons{gap:12px}
.diw-legacy .entry-content .wp-block-button__link{background:#245c44!important;color:white!important;border-radius:11px!important;padding:14px 23px!important;font-size:15px!important;border:1px solid #245c44!important;transition:background .2s,transform .2s}
.diw-legacy .entry-content .wp-block-button__link:hover{background:#173f30!important;transform:translateY(-2px)}
.diw-legacy .entry-content ol{padding-left:26px}.diw-legacy .entry-content li{padding:6px 0 6px 7px}.diw-legacy .entry-content li::marker{color:#417451;font-weight:700}
.diw-legacy .entry-content details{background:#fffefa;border:1px solid #dce4d5;border-radius:14px;padding:20px 23px;margin:12px 0}
.diw-legacy .entry-content summary{font-weight:700;color:#244d37;cursor:pointer}
.diw-legacy .entry-content details[open]{background:#f1f6e9}
.diw-legacy .entry-content table{border-color:#dce4d5}.diw-legacy .entry-content th{background:#eaf0e2;color:#234c36}
.diw-legacy .entry-content input:not([type=checkbox]):not([type=radio]):not([type=submit]),.diw-legacy .entry-content select,.diw-legacy .entry-content textarea{border-color:#cddbc4;border-radius:9px;background:#fffefa;color:#234c36;max-width:100%}
.diw-legacy .entry-content input[type=submit],.diw-legacy .entry-content button[type=submit]{background:#245c44;color:white;border-radius:10px}
.diw-legacy .diw-unified-section.diw-unified-footer{background:#163c32!important;padding:45px 28px!important}
.diw-legacy .diw-unified-footer h2{color:#fffefa!important;font-size:31px!important}
.diw-legacy .diw-unified-footer p{color:#bfceba!important;font-size:14px!important}
.diw-legacy .diw-unified-footer a{color:#e6f0d4!important}
/* Bring the recently rebuilt support/directory pages into the homepage's lighter editorial palette. */
.diw-unified .dsg-hero,.diw-unified .dds-directory-hero,.diw-unified.single-gd_place .entry-header{background:radial-gradient(ellipse at 85% 10%,#e8eed8,transparent 65%),var(--diw-cream)!important;color:#163c32!important;border-bottom:1px solid #dce4d5}
.diw-unified .dsg-hero h1,.diw-unified .dds-directory-hero h1,.diw-unified.single-gd_place .entry-header h1{color:#163c32!important}
.diw-unified .dsg-hero .dsg-kicker,.diw-unified .dds-directory-hero .dds-eyebrow{color:#587249!important}
.diw-unified .dsg-hero .dsg-updated{color:#617358!important}
.diw-unified .dsg-hero .dsg-intro,.diw-unified .dds-directory-hero>p:not(.dds-eyebrow){color:#5b6b61!important}
.diw-unified .dsg-guide{background:var(--diw-cream)}
.diw-unified .dsg-first{background:#edf2e4;border-left-color:#789258}
.diw-unified .dsg-first strong{color:#48633d}
.diw-unified:not(.home) .site-footer{background:#163c32;border-top:1px solid #365642}
.diw-unified:not(.home) .site-footer .site-primary-footer-wrap,.diw-unified:not(.home) .site-footer .site-below-footer-wrap{background:#163c32!important;color:#bfceba!important;border-color:#365642!important}
.diw-unified:not(.home) .site-footer a{color:#e6f0d4!important}
/* Movement never delays the visibility of essential content. */
@media(prefers-reduced-motion:no-preference){.diw-unified:not(.home) h1{animation:diw-page-enter .5s ease-out}@keyframes diw-page-enter{from{transform:translateY(9px)}to{transform:translateY(0)}}}
@media(max-width:767px){.diw-legacy .entry-content>.diw-unified-section{padding:38px 20px!important}.diw-legacy .entry-content>.diw-unified-hero{padding:40px 20px!important}.diw-legacy .diw-unified-hero h1{font-size:43px!important;overflow-wrap:anywhere}.diw-legacy .diw-unified-hero p:last-child{font-size:17px!important}.diw-legacy .diw-unified-section p,.diw-legacy .diw-unified-section li{font-size:16px!important;line-height:1.8!important}.diw-legacy .diw-unified-hero:after{right:-80px;opacity:.45}.diw-legacy .entry-content .wp-block-columns{gap:18px}.diw-legacy .entry-content>.diw-unified-footer{padding:34px 20px!important}.diw-unified .dsg-hero h1,.diw-unified .dds-directory-hero h1{font-size:39px!important}.diw-unified.single-gd_place .entry-header h1{font-size:34px!important}}
@media(prefers-reduced-motion:reduce){.diw-unified:not(.home) h1,.diw-legacy .wp-block-button__link{animation:none!important;transition:none!important;transform:none!important}}
/* SureForms owns its own colour variables; align those without changing validation. */
.diw-legacy .srfm-form-container{--srfm-color-scheme-primary:#245c44;--srfm-color-scheme-text-on-primary:#fffefa;--srfm-color-scheme-text:#234c36;--srfm-quill-editor-color:#245c44;--srfm-color-input-label:#234c36;background:#fffefa!important;border:1px solid #dce4d5;border-radius:18px;padding:28px!important;box-sizing:border-box;box-shadow:0 10px 30px #254f3708}
.diw-legacy .srfm-submit-button{background:#245c44!important;color:#fff!important;border-radius:10px!important}
.diw-legacy .srfm-error-message{color:#a52b26!important}
.diw-legacy .entry-content>.wp-block-group[style*="background-color:#15324B" i]{background:#163c32!important}
.diw-legacy .entry-content>.wp-block-group[style*="background-color:#15324B" i] p{color:#bfceba!important}
.diw-legacy .entry-content>.wp-block-group[style*="background-color:#15324B" i] a{color:#e6f0d4!important}
.diw-unified:not(.home) .site-footer .ast-footer-copyright,.diw-unified:not(.home) .site-footer .ast-footer-copyright p{color:#bfceba!important}
@media(max-width:767px){.diw-legacy .srfm-form-container{padding:20px!important}}
