/*
Theme Name: CAG Site Theme
Theme URI: https://computingaustralia.com.au/
Author: The Computing Australia Group
Author URI: https://computingaustralia.com.au/
Description: Thin shell theme for computingaustralia.com.au. The CAG Site plugin supplies the header, footer, blog post, archive, search and 404 layouts.
Version: 1.1.2
Requires PHP: 7.4
Text Domain: cag-site-theme
Update URI: false
*/

/* Kanit, hosted with the theme */
@font-face{font-family:'Kanit';font-style:normal;font-weight:300;font-display:swap;src:url('fonts/kanit-300-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Kanit';font-style:normal;font-weight:300;font-display:swap;src:url('fonts/kanit-300-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Kanit';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/kanit-400-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Kanit';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/kanit-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Kanit';font-style:normal;font-weight:500;font-display:swap;src:url('fonts/kanit-500-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Kanit';font-style:normal;font-weight:500;font-display:swap;src:url('fonts/kanit-500-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Kanit';font-style:normal;font-weight:600;font-display:swap;src:url('fonts/kanit-600-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Kanit';font-style:normal;font-weight:600;font-display:swap;src:url('fonts/kanit-600-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

/* Base */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;background:#fff;color:#3D434C;font-family:Kanit,sans-serif;font-size:18px;font-weight:300;line-height:1.5;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;overflow-x:hidden}
main{display:block}
img,video{max-width:100%;height:auto}
img{border-style:none;vertical-align:middle}
svg{vertical-align:middle}
a{color:inherit;text-decoration:none;font-weight:400}
h1,h2,h3,h4,h5,h6{margin:0 0 .5em;font-family:Kanit,sans-serif;font-weight:500;line-height:1.2;color:#14161A}
p{margin:0 0 1em}
ul,ol{margin:0 0 1em;padding-left:1.4em}
b,strong{font-weight:500}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
table{border-collapse:collapse}
figure{margin:0}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}
.cag-skip{position:absolute;left:-9999px;top:0;z-index:100001;padding:12px 18px;background:#14161A;color:#fff}
.cag-skip:focus{left:12px;top:12px}
.cag-page{max-width:860px;margin:0 auto;padding:170px 20px 80px}

/* Gravity Forms tweaks carried over from the old theme's Additional CSS */
p.gform_required_legend{display:none}
.gform-footer.gform_footer.top_label{justify-content:flex-end}
.gform-theme--foundation form#gform_5 .gform_fields{row-gap:15px!important}
input#input_5_1_3,input#input_5_3,input#input_5_5{padding-top:24px;padding-bottom:24px}
@media (min-width:1025px){#gform_submit_button_5{margin-top:80px}}
#gform_wrapper_4 legend.gfield_label.gform-field-label,label#label_4_4_0,#label_4_4_1{color:#fff;font-weight:400;font-size:16px!important}
/* Form 16 (IT spend review) uses placeholders, so hide its group labels properly rather than colouring them white */
#gform_wrapper_16 legend.gfield_label{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
input#input_1_3,input#input_1_5,input#input_1_6,input#input_1_7,input#input_1_8,#input_2_1,#input_2_3,#input_2_4{font-family:Kanit,sans-serif;font-size:16px;font-weight:400;border-style:solid;border-width:0 0 1px;border-color:#121212;height:50px;color:#121212;border-radius:0;margin:0 0 25px;box-shadow:none}
textarea#input_1_10{border-width:0 0 1px;border-color:#121212;border-style:solid;border-radius:0;box-shadow:none;margin:0 0 25px;font-family:Kanit,sans-serif;font-size:16px;font-weight:400;color:#121212;height:50px;outline-color:rgba(253,253,253,0)}
input#gform_submit_button_2,#gform_submit_button_1:hover{background-position:left bottom;color:#E67C26}

/* Leftovers from the old theme's companion plugin (Axtra Essential): hide if still active */
.progress-wrap,.wcf-cursor,.wcf-cursor-follower,#wcf--top--scroll{display:none!important}

/* Match the old theme's list and card spacing on hand-built pages */
li{list-style:none}
.cagh .wp-block-post-excerpt__excerpt{margin:0 0 24px}
.cagh .wp-block-post-date{margin-bottom:10px}

/* Accessible orange (WCAG 2.2 AA). Overrides the colour tokens in each hand-built page's inline styles. */
html body div.cagh{--o-d:#B0530A}
html body div.cagh .btn-p,html body div.cagh .art-search button{background:#B0530A}
html body div.cagh .btn-p:hover,html body div.cagh .art-search button:hover{background:#8F4308}
html body div.cagh .form-card .gform_footer input[type="submit"],html body div.cagh .form-card .gform_footer button{background:#B0530A!important}
html body div.cagh .form-card .gform_footer input[type="submit"]:hover,html body div.cagh .form-card .gform_footer button:hover{background:#8F4308!important}

/* Mid-page CTA band: even spacing, and white space above it when it follows a grey section */
html body div.cagh section[style*="padding-top:0"]:has(.band){padding-bottom:0}
html body div.cagh :is(section.inc,section.why,section.roles) + section:has(.band){padding-top:72px!important}
html body div.cagh section[style*="padding-top:0"]:has(.band):has(+ :is(section.inc,section.why,section.roles)){padding-bottom:72px}
