/* Cessnock theme – front end + editor */
body { -webkit-font-smoothing: antialiased; margin: 0; }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * , .chg-main > .wp-block-post-content > * { margin-block-start: 0; }
.chg-main { margin-top: 0 !important; }
.chg-main .wp-block-post-content > .alignfull { margin-left: 0; margin-right: 0; }
h1,h2,h3,h4,h5 { margin-top: 0.9em; margin-bottom: 0.6em; }
p { margin: 0 0 1rem; }
ol > li { margin-top: 20px; letter-spacing: .8px; }
a { color: inherit; }

/* Header */
.chg-topbar { height: 10px; background: #e7b56c !important; }
.chg-header { position: relative; z-index: 20; margin: 0 !important; }
.chg-header-inner { max-width: 1160px; margin: 0 auto; height: 150px; padding: 0 20px; box-sizing: border-box; }
.chg-logo img { width: 160px; height: 140px; object-fit: contain; display: block; }
.chg-nav { font-size: 14px; flex-wrap: nowrap !important; letter-spacing: 1px; color: #707070; }
.chg-nav .wp-block-navigation-item__content { color: #707070; padding: 0 15px; line-height: 64px; }
.chg-nav .wp-block-navigation-item__content:hover { color: #e8b46e; }
.chg-nav.wp-block-navigation { gap: 0; }
.chg-nav .wp-block-navigation__submenu-icon { display: none; }
.chg-nav .wp-block-navigation__submenu-container { min-width: 210px !important; border: 0 !important; box-shadow: 0 2px 5px rgba(0,0,0,.16); background: #fff; }
.chg-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { font-size: 16px; line-height: 22px; padding: 14px 16px !important; letter-spacing: .5px; }
.chg-nav .wp-block-navigation__submenu-container .wp-block-navigation-item:hover > .wp-block-navigation-item__content { color: #e8b46e; background: #eee; }

/* Footer */
.chg-footer { margin: 0 !important; padding-top: 48px; font-size: 16px; letter-spacing: 1px; }
.chg-footer a { color: #fff; text-decoration: none; }
.chg-footer-top { gap: 28px; }
.chg-footer-info p { margin: 0 0 18px; }
.chg-footer-links { margin: 50px 0 40px; font-size: 12px; letter-spacing: 0; }
.chg-copyright { padding: 18px 0; margin: 0 !important; }
.chg-copyright p { max-width: 1130px; margin: 0 auto; padding: 0 20px; font-size: 12px; letter-spacing: 0; }
.chg-copyright a { color: #ffcc80; }

/* Underline accent */
.chg-underline { display: block; width: 150px; margin: 30px auto 20px; border-bottom: 3px solid currentColor; }
.chg-underline > span { display: block; width: 50px; height: 13px; margin: 0 auto; background: currentColor; }

/* Page hero */
.chg-hero { height: 400px; background: center/cover no-repeat; display: flex; }
.chg-hero__panel { width: 50%; height: 100%; background: rgba(232,180,110,.75); color: #fff; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.chg-hero__title { font-size: 4rem; margin: 0; color: #fff; font-weight: 400; }
@media (max-width: 992px) { .chg-hero__panel { width: 100%; } .chg-hero__title { font-size: 3rem; } }

/* Sections */
.chg-section { padding: 36px 20px !important; margin: 0 !important; }
.chg-section > * { max-width: 1130px; margin-left: auto !important; margin-right: auto !important; }
.chg-section.is-narrow > * { max-width: 840px; }
.chg-section-title { text-align: center; }
.has-slate-background-color a { color: inherit; }
.chg-btn, .wp-block-button__link { display: inline-block; min-width: 220px; box-sizing: border-box; text-align: center; border-radius: 20px; background: #e8b46e; color: #fff !important; font-weight: 800; font-size: 20px; padding: 16px 24px; text-decoration: none; text-transform: uppercase; letter-spacing: .5px; }
.chg-docs { display: flex; flex-direction: column; align-items: center; gap: 40px; }

/* Two-column */
.chg-twocol { display: flex; margin: 0 !important; }
.chg-twocol > div { width: 50%; }
.chg-twocol--img-right { flex-direction: row-reverse; }
.chg-twocol__image { background: center/cover no-repeat; }
.chg-twocol--large > div { min-height: 60em; }
.chg-twocol--medium > div { min-height: 35em; }
.chg-twocol--small > div { min-height: 35em; }
.chg-twocol__text { display: flex; align-items: center; }
.chg-twocol__inner { width: 83.33%; margin: 0 auto; padding: 30px 0; }
.chg-twocol--light .chg-twocol__text { background: #fff; color: #707070; }
.chg-twocol--dark .chg-twocol__text { background: #323a45; color: #fff; }
@media (max-width: 992px) { .chg-twocol { flex-direction: column !important; } .chg-twocol > div { width: 100%; } .chg-twocol__image { min-height: 320px !important; } .chg-twocol__text { min-height: 0 !important; } }

/* Tile grid */
.chg-tiles { display: grid; grid-template-columns: 1fr 1fr; margin: 0 !important; }
.chg-tile { display: block; height: 350px; background: center/cover no-repeat; }
.chg-tile__overlay { width: 50%; height: 100%; background: #00000085; display: flex; align-items: center; justify-content: center; }
.chg-tile__overlay img { width: 250px; max-width: 90%; height: auto; }
@media (max-width: 600px) { .chg-tiles { grid-template-columns: 1fr; } .chg-tile { height: 250px; } }

/* Slider */
.chg-slider__track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.chg-slider__item img { width: 100%; height: auto; display: block; }
.chg-slider__item[hidden] { display: none; }
.chg-slider__controls { list-style: none; padding: 15px; margin: 0; text-align: center; }
.chg-slider__controls li { display: inline-block; width: 35px; height: 35px; line-height: 33px; border: 1px solid #c3c3c3; margin: 4px; cursor: pointer; }
.chg-slider__controls li.is-active { background: #e8b46e; color: #fff; }
@media (max-width: 768px) { .chg-slider__track { grid-template-columns: repeat(2, 1fr); } }

/* Venues */
.chg-venues .wp-block-post { margin-bottom: 36px; }
.chg-venue .wp-block-button { width: 100%; margin-top: 20px; }
.chg-venue .wp-block-button__link { width: 100%; font-size: 120%; }
.chg-venue h3 { margin-top: 0; }

/* Membership cards */
.chg-card { box-shadow: 0 2px 2px 0 rgba(0,0,0,.14),0 3px 1px -2px rgba(0,0,0,.12),0 1px 5px 0 rgba(0,0,0,.2); margin-top: 0 !important; margin-bottom: 30px !important; transition: box-shadow .25s; }
.chg-card:hover { box-shadow: 0 8px 17px 0 rgba(0,0,0,.2),0 6px 20px 0 rgba(0,0,0,.19); }
.chg-card figure { margin: 0; } .chg-card img { width: 100%; display: block; }
.chg-card h4 { text-align: center; padding: 24px; margin: 0; }
.chg-card a { text-decoration: none; }

/* Board list */
.chg-board h5 { margin: 1.2rem 0 .5rem; }
.chg-board .wp-block-post-template { list-style: none; padding: 0; margin: 0; }

/* Community grant posters */
.chg-posters { gap: 0 !important; }
.chg-posters img { width: 100%; height: auto; }

/* Gravity Forms */
.gform_wrapper .gform_button, .gform_wrapper input[type=submit] { background: #e8b46e; color: #fff; border: 0; border-radius: 20px; padding: 14px 28px; font-weight: 800; text-transform: uppercase; cursor: pointer; }
.has-slate-background-color .gform_wrapper input:not([type=submit]), .has-slate-background-color .gform_wrapper textarea { background: transparent; border: 0; border-bottom: 1px solid #9e9e9e; color: #fff; }
.gform_wrapper .gform_title { color: #e8b46e; font-family: var(--wp--preset--font-family--black-diamond); font-weight: 400; font-size: 3rem; }

.chg-map iframe { display: block; width: 100%; height: 520px; border: 0; }
.chg-pdf iframe { width: 100%; height: 1200px; border: 0; }

.has-text-align-justify { text-align: justify; }
.chg-nav .wp-block-navigation__container { flex-wrap: nowrap; }
.chg-docs { padding: 20px 0; gap: 40px; }
.chg-docs .chg-btn { width: 220px; min-width: 0; height: 60px; display: flex; align-items: center; justify-content: center; padding: 10px; font-size: 18px; }
.chg-venues .wp-block-post + .wp-block-post { margin-top: 80px; }
.chg-venue { gap: 3rem; }
.chg-posters { margin-top: 60px !important; gap: 1.5rem !important; }
.chg-election-link a { color: #039be5; text-decoration: none; }
/* Gravity Forms look */
.gform_wrapper.gravity-theme .gfield_label, .gform_wrapper .gform-field-label { font-weight: 600; }
.chg-section:not(.has-slate-background-color) .gform_wrapper { color: #e8b46e; }
.chg-section:not(.has-slate-background-color) .gform_wrapper input:not([type=submit]):not([type=checkbox]):not([type=file]), .chg-section:not(.has-slate-background-color) .gform_wrapper textarea { border: 0 !important; border-bottom: 1px solid #9e9e9e !important; border-radius: 0 !important; box-shadow: none !important; background: transparent; }
.has-slate-background-color .gform_wrapper .gfield_label { display: none; }
.has-slate-background-color .gform_wrapper input:not([type=submit]), .has-slate-background-color .gform_wrapper textarea { background: #fff !important; color: #333 !important; border: 1px solid #ccc !important; border-radius: 0 !important; }
.has-slate-background-color .gform_wrapper .gform_footer button, .has-slate-background-color .gform_wrapper .gform_footer input[type=submit] { width: 100%; border-radius: 0; }
.gform_wrapper .gform_footer button, .gform_wrapper .gform_footer input[type=submit] { background: #e8b46e !important; color: #fff !important; border: 0 !important; font-weight: 700; text-transform: uppercase; }
.chg-nav .wp-block-navigation-item__content { white-space: nowrap; }
.chg-nav .wp-block-navigation-item__label { white-space: nowrap; }
.has-slate-background-color .gform_wrapper .gform_footer .gform_button { width: 100% !important; padding: 12px !important; }
a { text-decoration: none; }
.chg-card .wp-block-image, .chg-card .wp-block-image a, .chg-card .wp-block-image img { display: block; width: 100% !important; max-width: none; }

/* === Sign-off pass 22 Oct 2026 === */
/* Header logo: live is ~134x117 on desktop */
.chg-logo img { width: 134px; height: 117px; }
@media (max-width: 781px) {
  .chg-header-inner { height: 95px; position: relative; justify-content: center !important; }
  .chg-logo { margin: 0 auto; }
  .chg-logo img { width: auto; height: 63px; }
  .chg-nav { position: absolute !important; left: 38px; top: 50%; transform: translateY(-50%); }
  .chg-nav .wp-block-navigation__responsive-container-open { color: #e8b46e; }
  .chg-nav .wp-block-navigation__responsive-container-open svg { width: 28px; height: 28px; }
  .chg-footer-top { flex-direction: column; text-align: center; }
  .chg-footer-info { text-align: center; }
  .chg-footer-links { text-align: center; padding: 0 20px; }
}
/* Contact icons: self-hosted SVG, Font Awesome 4 look */
.chg-ico { display: flex; align-items: center; gap: 8px; margin-bottom: .6rem; }
.chg-ico::before { content: ""; flex: 0 0 16px; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--ico) center/contain no-repeat; mask: var(--ico) center/contain no-repeat; }
.chg-ico--address { --ico: url(../icons/address-card.svg); }
.chg-ico--email { --ico: url(../icons/envelope.svg); }
.chg-ico--phone { --ico: url(../icons/phone.svg); }
.chg-ico--fax { --ico: url(../icons/fax.svg); }
.chg-ico--facebook { --ico: url(../icons/facebook-square.svg); }
/* Contact form: full-width fields like live (469px col, 46px inputs, 200px textarea, 50px button) */
.has-slate-background-color .gform_wrapper .gfield input:not([type=submit]) { width: 100% !important; height: 46px; padding: 0 10px !important; font-size: 15px; }
.has-slate-background-color .gform_wrapper .gfield textarea { width: 100% !important; height: 200px !important; padding: 10px !important; font-size: 15px; }
.has-slate-background-color .gform_wrapper .gform_fields { row-gap: 22px !important; }
.has-slate-background-color .gform_wrapper .gform_footer { padding: 0; margin-top: 22px; }
.has-slate-background-color .gform_wrapper .gform_footer .gform_button { height: 50px; font-size: 14px; }
.has-slate-background-color .wp-block-columns { max-width: 1080px; gap: 6rem; }
.has-slate-background-color .wp-block-columns .wp-block-column:last-child { max-width: 469px; }
.has-slate-background-color.chg-section { padding-top: 60px !important; padding-bottom: 60px !important; }
/* Careers form: match live */
.chg-careers > * { max-width: 938px; }
.chg-careers { padding-top: 60px !important; padding-bottom: 20px !important; }
.chg-careers .gform_wrapper .gform_title { font-size: 53px !important; line-height: 1.1; margin: 0 0 20px; }
.chg-careers .gform_wrapper .gfield_label { font-weight: 400 !important; font-size: 16px; }
.chg-careers .gform_wrapper .gfield_description, .chg-careers .gform_wrapper .gform-field-label--type-sub { font-size: 13px; color: #e8b46e; }
.chg-careers .gform_wrapper input:not([type=submit]):not([type=checkbox]):not([type=file]) { height: 46px; padding: 8px 0 !important; }
.chg-careers .gform_wrapper .gform_fields { row-gap: 28px !important; }
.chg-careers .gform_wrapper .gform_footer .gform_button { background: #efefef !important; color: #000 !important; border: 1px solid #767676 !important; border-radius: 3px !important; padding: 4px 8px !important; font-size: 13px !important; font-weight: 400 !important; text-transform: none !important; }
.chg-careers .gform_wrapper .gfield_label { font-weight: 600 !important; }
.chg-careers .gform_wrapper .gform_fields { row-gap: 36px !important; }
@media (max-width: 781px) {
  .has-slate-background-color .wp-block-columns { gap: 1.5rem; }
  .has-slate-background-color h4 { font-size: 2rem; }
}
@media (max-width: 992px) { .chg-twocol--img-right { flex-direction: column-reverse !important; } }
@media (max-width: 781px) { .chg-card h4 { font-size: 1.9rem; padding: 18px; } }
/* === v2 review pass 22 Oct 2026: centring + container widths to match live Materialize .container === */
.chg-section { padding-left: 0 !important; padding-right: 0 !important; }
.chg-section > * { width: 90%; box-sizing: border-box; }
@media (min-width: 601px) { .chg-section > * { width: 85%; max-width: 1125px; } }
.chg-section.is-narrow > * { max-width: 840px; }
.chg-careers > * { max-width: 938px; }
@media (prefers-reduced-motion: reduce) { .chg-logo img, .chg-tile, .chg-hero, .chg-slider { opacity: 1 !important; transform: none !important; } }
/* Footer: matched to live (computed-style measurements at 1440/768/390) */
.chg-footer { padding-top: 50px !important; padding-bottom: 0 !important; letter-spacing: normal; }
.chg-footer-top { gap: 15px !important; align-items: center !important; flex-direction: row !important; flex-wrap: nowrap !important; justify-content: center !important; margin: 0 !important; }
.chg-footer-info { width: 382px; text-align: left; }
.chg-footer-info p { letter-spacing: .8px; margin: 0 0 16px; }
.chg-footer-info p:last-child { margin-bottom: 0; }
.chg-footer-links { font-size: 12px !important; line-height: 18px; letter-spacing: normal; margin: 66px auto 50px !important; width: 85%; max-width: 1125px; padding: 0 !important; }
.chg-copyright { padding: 16px 0 !important; margin: 0 !important; }
.chg-copyright p { font-size: 12px !important; line-height: 18px; color: rgba(255,255,255,.8); width: 85%; max-width: 1125px; margin: 0 auto !important; padding: 0 !important; letter-spacing: normal; }
.chg-copyright a { color: #ffcc80 !important; }
@media (max-width: 600px) {
  .chg-footer-top { flex-direction: column !important; gap: 0 !important; }
  .chg-footer-info { width: 90%; text-align: center; margin-top: 36px !important; }
  .chg-footer-links, .chg-copyright p { width: 90%; }
  .chg-footer-links { margin-top: 36px !important; }
}
@media (min-width: 601px) and (max-width: 781px) { .chg-footer-info { text-align: center; } }
.chg-footer-info > p { margin-block-start: 0 !important; margin-top: 0 !important; }
@media (min-width: 601px) { .chg-footer-info > p:not(:last-child) { margin-bottom: 16px !important; } }
@media (min-width: 601px) { .chg-footer-info > p { white-space: nowrap; } }
