/*
Theme Name: Common Ground
Theme URI: https://wordpress.org/themes/
Author: Common Ground contributors
Description: A considered, accessible classic theme for locally led organisations. Three editable block page layouts, quiet glass surfaces and a guided starter setup. No page builder required.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: common-ground
Tags: custom-logo, custom-colors, custom-menu, featured-images, full-width-template, block-patterns, editor-style, translation-ready, wide-blocks
*/

/* 1. Tokens and foundations. Brand colors can be changed in the Customizer. */
:root {
  --color-primary: #183b36;
  --color-accent: #d5ea65;
  --color-on-primary: #ffffff;
  --color-on-accent: #172e29;
  --ink: #183b36;
  --muted: #586660;
  --paper: #f5f5ef;
  --line: #d9dfd6;
  --radius: 18px;
  --container: 1240px;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button, .button { cursor: pointer; }
:focus-visible { outline: 3px solid #a54412; outline-offset: 5px; }
.cg-hero :focus-visible, .site-footer :focus-visible, .cta-panel :focus-visible { outline-color: #f4f9c4; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font); font-weight: 500; line-height: 1.1; letter-spacing: -.045em; margin: 0 0 22px; text-wrap: balance; }
h1 { font-size: clamp(42px, 5.5vw, 78px); }
h2 { font-size: clamp(34px, 3.8vw, 54px); }
h3 { font-size: clamp(22px, 2vw, 26px); letter-spacing: -.025em; line-height: 1.2; }
p { margin: 0 0 24px; }
p:last-child { margin-bottom: 0; }
.container { width: min(var(--container), calc(100% - 96px)); margin-inline: auto; }
.screen-reader-text:not(:focus), .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 100000; top: 12px; left: 12px; padding: 12px 22px; color: #fff; background: #183b36; border-radius: 6px; }

/* 2. Header and keyboard-operable navigation. Visible without JavaScript. */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(250,251,246,.96); border-bottom: 1px solid rgba(24,59,54,.1); }
@supports (backdrop-filter: blur(16px)) { .site-header { background: rgba(250,251,246,.91); backdrop-filter: blur(16px); } }
.admin-bar .site-header { top: 32px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 96px; }
.site-brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 43px; height: 43px; display: grid; place-items: center; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-name { font-weight: 650; font-size: 21px; line-height: 1.02; letter-spacing: -.045em; max-width: 155px; }
.brand-name, .brand-symbol { text-decoration: none; }
.site-brand .custom-logo { max-width: 155px; max-height: 60px; width: auto; object-fit: contain; }
.primary-navigation { margin-left: auto; margin-right: auto; }
.primary-navigation ul { display: flex; gap: 34px; list-style: none; margin: 0; padding: 0; align-items: center; }
.primary-navigation a { display: inline-block; padding: 16px 0; font-size: 14px; font-weight: 500; text-decoration: none; position: relative; }
.primary-navigation a::after { content: ''; height: 2px; position: absolute; bottom: 8px; left: 0; right: 100%; background: var(--ink); transition: right .2s; }
.primary-navigation a:hover::after, .primary-navigation a[aria-current="page"]::after, .primary-navigation .current-menu-item > a::after { right: 0; }
.primary-navigation .sub-menu { display: block; padding-inline-start: 16px; }
.menu-toggle { display: none; }
.button, .wp-block-button__link, input[type="submit"], button[type="submit"] { display: inline-flex; align-items: center; justify-content: center; gap: 28px; border: 1px solid transparent; border-radius: 999px; min-height: 50px; padding: 13px 25px; background: var(--color-primary); color: var(--color-on-primary); font-size: 14px; font-weight: 600; line-height: 1.45; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.button:hover, .wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 5px 18px #142f2820; }
.header-cta { flex-shrink: 0; }
.header-cta .button span { font-size: 20px; font-weight: 400; }
.wp-block-buttons { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.wp-block-button { margin: 0; }
.wp-block-button__link::after { content: '↗'; font-size: 20px; font-weight: 400; line-height: 1; }
.is-style-outline .wp-block-button__link { border-color: currentColor; color: var(--ink); background: transparent; }

/* 3. Full-bleed photographic heroes and translucent feature cards. */
.cg-hero { position: relative; isolation: isolate; background: #1b332d; color: #fff; overflow: hidden; padding: 88px 0 34px; }
.cg-hero::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(13,33,28,.95), rgba(13,33,28,.76) 43%, rgba(13,33,28,.1) 100%), linear-gradient(0deg, rgba(13,33,28,.84), transparent 80%); }
.cg-hero::after { content: ''; position: absolute; z-index: -1; top: -100px; right: -180px; width: 750px; height: 750px; border: 1px solid #ffffff30; border-radius: 50%; box-shadow: 0 0 0 100px #ffffff08, 0 0 0 101px #ffffff1c; pointer-events: none; }
.hero-image, .cg-hero > .wp-block-image { position: absolute; inset: 0; height: 100%; width: 100%; z-index: -2; margin: 0; }
.hero-image img, .hero-image picture, .cg-hero > .wp-block-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 46%; }
.hero-content { position: relative; z-index: 1; }
.eyebrow, .section-kicker { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .18em; line-height: 1.6; margin-bottom: 24px; }
.eyebrow::before { content: ''; display: inline-block; width: 7px; height: 7px; background: var(--color-accent); border-radius: 50%; margin-right: 12px; vertical-align: 1px; }
.hero-content h1 { max-width: 780px; margin-bottom: 24px; font-weight: 400; }
.hero-lead { max-width: 470px; font-size: 17px; line-height: 1.65; color: #f1f4ee; margin-bottom: 29px; }
.hero-content .wp-block-button__link { background: var(--color-accent); color: var(--color-on-accent); }
.hero-content .is-style-outline .wp-block-button__link { background: rgba(14,35,29,.5); color: #fff; border: 1px solid #ffffff70; }
.hero-caption { font-size: 11px; letter-spacing: .05em; color: #e7ede6; margin-top: 30px; max-width: 460px; }
.hero-cards { position: relative; z-index: 1; margin-top: 58px; }
.card-grid { display: grid; gap: 18px; }
.card-grid > .wp-block-group, .focus-chips > p { margin-block: 0; }
.glass-card > .card-number { margin-top: 0; }
.cols-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.cols-4 { grid-template-columns: repeat(4,minmax(0,1fr)); }
.cols-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.glass-card { position: relative; border: 1px solid rgba(255,255,255,.8); border-radius: var(--radius); padding: 30px; background: rgba(255,255,255,.86); box-shadow: 0 3px 20px #253d2804; transition: transform .28s, box-shadow .28s, border-color .28s; }
.glass-card:hover { transform: translateY(-5px); border-color: #a0b4a0; box-shadow: 0 15px 32px #173b360b; }
.glass-card h3 { font-size: 23px; margin-bottom: 12px; }
.glass-card p { font-size: 14px; line-height: 1.7; color: #4f6259; }
.card-icon { width: 34px; height: 34px; margin: 0 0 32px; }
.card-icon img { width: 100%; height: 100%; object-fit: contain; }
.card-number { font-size: 11px !important; letter-spacing: .1em; position: absolute; right: 28px; top: 29px; color: #5d6b63; }
.cg-hero .glass-card { background: rgba(27,55,44,.78); border-color: #ffffff38; padding: 25px 29px; }
@supports (backdrop-filter: blur(14px)) { .cg-hero .glass-card { background: rgba(27,55,44,.61); backdrop-filter: blur(14px); } }
.cg-hero .glass-card:hover { border-color: #d5ea6590; background: rgba(35,65,48,.85); }
.cg-hero .glass-card h3 { font-size: 21px; }
.cg-hero .glass-card p { color: #eef3e9; font-size: 13px; }
.cg-hero .card-icon { width: 27px; height: 27px; margin-bottom: 22px; filter: brightness(0) saturate(100%) invert(92%) sepia(38%) saturate(696%) hue-rotate(20deg) brightness(100%) contrast(90%); }
.cg-hero .card-number { color: #e4ecd9; }

/* 4. Content sections. Images remain decorative; opaque surfaces protect contrast. */
.cg-section { position: relative; isolation: isolate; overflow: hidden; padding: 105px 0; }
.cg-section .section-photo { position: absolute; z-index: -2; inset: 0; height: 100%; width: 100%; }
.cg-section .section-photo img, .cg-section .section-photo picture { width: 100%; height: 100%; object-fit: cover; display: block; }
.cg-section:has(.section-photo)::before { content: ''; position: absolute; inset: 0; background: rgba(245,245,239,.94); z-index: -1; }
.section-intro { margin-bottom: 45px; }
.section-kicker { color: #4b6659; margin-bottom: 20px; }
.section-title { max-width: 720px; }
.section-lead { max-width: 650px; color: var(--muted); font-size: 17px; }
.who-section .section-intro { display: grid; grid-template-columns: 1.1fr 1fr; column-gap: 11%; }
.who-section .section-kicker { grid-column: 1 / -1; }
.who-section .section-title { grid-column: 1; margin-bottom: 0; }
.who-section .section-lead { grid-column: 2; margin-top: 5px; }
.who-section .glass-card { border: 1px solid #cfd8cc; background: rgba(255,255,255,.57); }
.focus-chips { display: flex; gap: 12px; flex-wrap: wrap; padding: 0; margin-top: 28px; }
.focus-chips p, .focus-chips li { list-style: none; font-size: 12px; line-height: 1.5; border: 1px solid #ced8cc; border-radius: 30px; padding: 9px 17px; margin: 0; }
.where-section { background: #e7eddf; border-top: 1px solid #d8e0d2; }
.where-section:has(.section-photo)::before { background: rgba(231,237,223,.94); }
.where-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; margin-bottom: 44px; }
.where-layout .section-intro { margin: 0; }
.map-placeholder { border: 1px solid #c4d2be; background: #eff3e888; border-radius: 20px; padding: 30px; min-height: 275px; position: relative; overflow: hidden; }
.map-placeholder .wp-block-image { max-width: 430px; margin: 0 auto; }
.map-placeholder .wp-block-image img { width: 100%; max-height: 205px; object-fit: contain; }
.map-placeholder h3 { font-size: 18px; margin: 18px 0 8px; }
.map-placeholder p { font-size: 12px; color: #566952; }
.programmes-section .card-grid { row-gap: 22px; }
.serve-section { background: #e7eddf; }
.ways-section .glass-card { min-height: 260px; }
.contact-section { background: #e7eddf; }
.contact-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
.contact-grid--three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.contact-card { padding: 29px; border-radius: var(--radius); border: 1px solid #d0dacb; background: #f6f8f1; min-width: 0; }
.contact-card h3 { font-size: 21px; }
.contact-card p, .contact-card a { font-size: 14px; overflow-wrap: anywhere; }
.contact-card svg { width: 30px; height: 30px; margin-bottom: 25px; }
.contact-card a { text-decoration-thickness: 1px; }
.contact-card address { font-size: 14px; font-style: normal; overflow-wrap: anywhere; }
.card-kicker { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .13em; color: var(--muted); margin-bottom: 23px; }
.contact-note { margin-top: 24px; font-size: 14px; }

/* 5. Reusable invitation and footer. */
.partnership-cta { padding: 60px 0 85px; background: var(--paper); }
.cta-panel { padding: 62px 65px; background: #193d34; color: #fff; border-radius: 22px; position: relative; isolation: isolate; overflow: hidden; }
.cta-panel::before { content: ''; position: absolute; right: -60px; top: -130px; width: 430px; height: 430px; border: 1px solid #ffffff20; border-radius: 50%; z-index: -1; box-shadow: 0 0 0 70px #ffffff07, 0 0 0 71px #ffffff15; }
.cta-panel .section-kicker { color: #d5e5b4; }
.cta-panel h2 { max-width: 660px; font-size: clamp(32px,3.7vw,50px); }
.cta-panel p { max-width: 560px; font-size: 16px; color: #e3eddf; }
.cta-panel .wp-block-buttons { margin-top: 27px; }
.cta-panel .wp-block-button__link { background: var(--color-accent); color: var(--color-on-accent); }
.site-footer { background: #142f29; color: #f2f5eb; padding: 54px 0 25px; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr .8fr; align-items: start; gap: 60px; }
.site-footer .site-brand { color: #fff; }
.site-footer .brand-name { max-width: 200px; }
.footer-contact, .footer-legal { font-size: 13px; line-height: 1.8; }
.footer-heading { font-size: 15px; font-weight: 600; letter-spacing: 0; margin-bottom: 14px; }
.footer-links { font-size: 13px; }
.footer-links ul, .social-links { margin: 0; padding: 0; list-style: none; }
.footer-links a { display: inline-block; padding-block: 5px; }
.footer-contact address { font-style: normal; }
.footer-tagline { font-size: 12px; margin-top: 18px; max-width: 280px; }
.social-links { display: flex; flex-wrap: wrap; gap: 15px; font-size: 12px; margin-top: 20px; }
.site-footer p { margin-bottom: 8px; }
.site-footer a { color: inherit; }
.footer-legal ul, .footer-social { list-style: none; padding: 0; margin: 0; }
.footer-legal a { display: inline-block; padding-block: 5px; }
.footer-social { display: flex; flex-wrap: wrap; gap: 17px; margin-top: 14px; }
.footer-bottom { margin-top: 38px; padding-top: 22px; border-top: 1px solid #ffffff24; font-size: 11px; color: #d2dfd4; display: flex; justify-content: space-between; gap: 20px; }

/* 6. Standard WordPress content and graceful plugin interoperability. */
.content-shell { width: min(840px, calc(100% - 48px)); margin-inline: auto; padding: 75px 0 95px; }
.content-shell h1 { font-size: clamp(36px,5vw,60px); }
.entry-content > * + * { margin-top: 1.5em; }
.entry-content > .cg-hero, .entry-content > .cg-section, .entry-content > .partnership-cta { margin-top: 0; }
.entry-content a:not(.wp-block-button__link), .entry-summary a { text-decoration: underline; }
.entry-content .alignwide { max-width: 1100px; }
.entry-content .alignfull { width: 100%; }
.entry-content ul, .entry-content ol { padding-left: 1.5em; }
.entry-content blockquote { border-left: 3px solid var(--color-primary); margin-inline: 0; padding-left: 25px; }
.entry-content table { border-collapse: collapse; width: 100%; }
.entry-content th, .entry-content td { padding: 10px; border: 1px solid var(--line); text-align: start; }
.entry-content pre { overflow: auto; padding: 20px; background: #e9ede5; }
.wp-block-image figcaption { font-size: 12px; color: var(--muted); margin-top: 10px; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: 13px; }
.alignleft { float: left; margin: 0 25px 20px 0; }
.alignright { float: right; margin: 0 0 20px 25px; }
.aligncenter { margin-inline: auto; }
.post-card { padding-block: 32px; border-bottom: 1px solid var(--line); }
.post-card h2 { font-size: 32px; }
.post-card h2 a { text-decoration: none; }
.entry-meta { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.navigation.pagination, .posts-navigation { margin-top: 36px; }
.page-numbers { padding: 10px 15px; display: inline-block; }
.page-numbers.current { background: var(--color-primary); color: var(--color-on-primary); border-radius: 5px; }
.search-form { display: flex; gap: 10px; flex-wrap: wrap; }
.search-form label { flex: 1; }
input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]), textarea, select { max-width: 100%; border: 1px solid #899f90; border-radius: 7px; background: #fff; color: #193d34; padding: 12px; }
.search-field { width: 100%; }
.comment-list { padding-left: 24px; }
.comment-body { border-bottom: 1px solid var(--line); padding: 20px 0; }
.comment-form label { display: block; }
.comment-form-cookies-consent label { display: inline; }
.bypostauthor { border-left: 2px solid var(--color-primary); padding-left: 18px; }
.sticky { border-top: 2px solid var(--color-primary); }

/* 7. Motion is progressive enhancement; text never depends on scripting. */
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
  .reveal-ready.is-visible { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* 8. Tablet, mobile, zoom and print. */
@media (min-width: 1600px) { .cg-hero { padding-top: 110px; } }
@media (max-width: 1100px) {
  .container { width: calc(100% - 64px); }
  .header-inner { gap: 22px; }
  .primary-navigation ul { gap: 25px; }
  .cols-4, .contact-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .glass-card { padding: 25px; }
  .where-layout { gap: 35px; }
  .footer-grid { gap: 35px; }
  .cg-hero .cols-4 .glass-card { padding: 22px; }
}
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  .container { width: calc(100% - 40px); }
  .header-inner { min-height: 80px; flex-wrap: wrap; padding-block: 13px; gap: 12px; }
  .brand-name { font-size: 20px; }
  .brand-mark { width: 37px; height: 37px; }
  .header-cta { margin-left: auto; }
  .header-cta .button { padding: 11px 16px; font-size: 12px; min-height: 44px; gap: 10px; }
  .primary-navigation { order: 4; width: 100%; margin: 0; }
  .primary-navigation ul { justify-content: space-between; gap: 16px; }
  .primary-navigation a { font-size: 13px; padding-block: 11px; }
  .js-nav .menu-toggle { display: inline-flex; order: 3; align-items: center; justify-content: center; gap: 7px; min-height: 44px; min-width: 44px; border: 1px solid #bcc9ba; border-radius: 50%; color: var(--ink); background: transparent; font-size: 11px; padding: 9px; }
  .menu-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .js-nav .menu-toggle svg { width: 21px; height: 21px; }
  .js-nav .primary-navigation:not(.is-open) { display: none; }
  .js-nav .primary-navigation.is-open { display: block; border-top: 1px solid var(--line); padding-top: 7px; }
  .cg-hero { padding-top: 58px; }
  .hero-content h1 { max-width: 650px; font-size: clamp(42px,7.5vw,63px); }
  .hero-lead { max-width: 450px; }
  .cg-hero::before { background: linear-gradient(90deg,#0d211cf0,#0d211c95),linear-gradient(0deg,#0d211cce,transparent); }
  .hero-image img { object-position: 65% center; }
  .hero-cards { margin-top: 42px; }
  .cg-hero .glass-card { padding: 22px; }
  .cg-hero .glass-card h3 { font-size: 20px; }
  .cols-3 { grid-template-columns: 1fr; }
  .hero-cards .cols-3 { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
  .hero-cards .cols-3 .glass-card { padding: 18px; }
  .hero-cards .cols-3 .glass-card h3 { font-size: 18px; }
  .cg-section { padding: 68px 0; }
  .who-section .section-intro { display: block; }
  .who-section .section-title { margin-bottom: 24px; }
  .section-intro { margin-bottom: 33px; }
  .where-layout { grid-template-columns: 1fr; gap: 28px; }
  .map-placeholder { min-height: 240px; }
  .partnership-cta { padding: 32px 0 55px; }
  .cta-panel { padding: 40px 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1/-1; }
  .card-icon { margin-bottom: 24px; }
  .ways-section .glass-card { min-height: auto; }
}
@media (max-width: 540px) {
  body { font-size: 16px; }
  .site-brand { gap: 7px; }
  .brand-name { max-width: 102px; font-size: 17px; }
  .site-brand .custom-logo { max-width: 100px; max-height: 45px; }
  .header-inner { gap: 9px; }
  .header-cta .button { font-size: 11px; padding-inline: 12px; gap: 7px; }
  .header-cta .button span { font-size: 16px; }
  .cg-hero { padding-top: 45px; padding-bottom: 24px; }
  .hero-content h1 { font-size: clamp(37px,10.8vw,55px); letter-spacing: -.05em; }
  .eyebrow { font-size: 9px; letter-spacing: .16em; margin-bottom: 23px; }
  .hero-lead { font-size: 16px; }
  .hero-content .wp-block-buttons { gap: 12px; }
  .wp-block-button__link { padding: 13px 20px; font-size: 13px; gap: 20px; }
  .hero-caption { font-size: 10px; }
  .hero-cards .cols-3, .cols-4, .contact-grid { grid-template-columns: 1fr; }
  .hero-cards { margin-top: 34px; }
  .cg-hero .glass-card, .hero-cards .cols-3 .glass-card { padding: 21px 23px 21px 73px; min-height: 122px; }
  .cg-hero .card-icon { position: absolute; left: 25px; top: 25px; width: 25px; height: 25px; }
  .cg-hero .card-number { display: none; }
  .cg-hero .glass-card h3 { font-size: 19px; margin-bottom: 8px; }
  .cg-hero .glass-card p { font-size: 13px; }
  .section-title { font-size: 34px; }
  .section-lead { font-size: 16px; }
  .glass-card { padding: 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 27px; }
  .footer-bottom { display: block; }
  .footer-bottom p + p { margin-top: 10px; }
}
@media (max-width: 359px) { .container { width: calc(100% - 28px); } .header-cta { display: none; } .menu-toggle { margin-left: auto; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
@media print {
  .site-header { position: static; }
  .menu-toggle, .header-cta, .hero-image, .section-photo, .site-footer, .partnership-cta { display: none !important; }
  .cg-hero, .cg-section, .glass-card { background: #fff !important; color: #000 !important; padding: 20px !important; }
  .cg-hero p { color: #000 !important; }
  .cg-hero::before, .cg-hero::after { display: none; }
  .reveal-ready { opacity: 1; transform: none; }
  .container { width: 100%; }
  a { text-decoration: underline; }
}

/* Nested custom menus remain available to pointer and keyboard users. */
@media (min-width: 783px) {
  .primary-navigation li { position: relative; }
  .primary-navigation .sub-menu { position: absolute; top: 100%; left: -18px; min-width: 210px; background: #fafbf6; border: 1px solid var(--line); border-radius: 10px; padding: 8px 18px; box-shadow: 0 14px 30px #183b3614; visibility: hidden; opacity: 0; }
  .primary-navigation li:hover > .sub-menu, .primary-navigation li:focus-within > .sub-menu { visibility: visible; opacity: 1; }
  .primary-navigation .sub-menu a { display: block; padding: 10px 0; }
}
@media (max-width: 782px) { .primary-navigation .sub-menu { padding-left: 14px; } }

/* TGCDA identity and page layouts; append after the Common Ground stylesheet. */
/* TGCDA identity and page layouts; append after the Common Ground stylesheet. */
:root { --color-primary:#1c4e80 !important; --color-accent:#d8a83e !important; --color-on-primary:#fff !important; --color-on-accent:#172b38 !important; --ink:#25313a; --muted:#52626e; --paper:#f7f9fa; --line:#d9e3eb; }
body { background:var(--paper); color:var(--ink); }
.tgcda-icon-library { position:absolute; width:0; height:0; overflow:hidden; }
a:focus-visible, button:focus-visible { outline:3px solid #e4ae32; outline-offset:4px; }
.site-header { background:rgba(255,255,255,.97); border-color:#dce5eb; }
.tgcda-brand { gap:12px; }
.tgcda-brand > a:first-child { display:block; width:72px; height:62px; overflow:hidden; flex:none; }
.tgcda-brand > a:first-child img { width:104px; height:auto; max-width:none; transform:translate(-16px,-1px); }
.tgcda-brand .brand-name { max-width:255px; font-size:17px; font-weight:800; line-height:1.18; letter-spacing:-.025em; color:#1c4e80; }
.tgcda-brand .brand-name span { color:inherit; white-space:nowrap; }
.primary-navigation a { color:#25313a; font-weight:650; }
.primary-navigation a::after { background:#1c4e80; }
.header-cta .button { background:#1c4e80; color:#fff; gap:12px; }
.tgcda-page h1,.tgcda-page h2,.tgcda-page h3 { font-family:Arial,Helvetica,sans-serif; letter-spacing:-.045em; }
.tgcda-page h1 { font-weight:700; }
.tgcda-page h2 { font-weight:700; }
.tgcda-page h3 { font-weight:700; }
.tgcda-page p { color:inherit; }
.tgcda-kicker { margin-bottom:18px; color:#b17b11; font-size:11px; font-weight:800; line-height:1.4; letter-spacing:.18em; text-transform:uppercase; }
.tgcda-hero,.tgcda-page-hero { color:#fff; background:#153a62; position:relative; overflow:hidden; }
.tgcda-hero { padding:100px 0 108px; background:radial-gradient(circle at 82% 25%,#3975a3 0%,transparent 31%),linear-gradient(125deg,#0c2e52,#1c4e80 55%,#285f78); }
.tgcda-hero-grid { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr); align-items:center; gap:6%; }
.tgcda-hero h1 { max-width:850px; font-size:clamp(44px,5.4vw,76px); line-height:1.02; margin-bottom:28px; }
.tgcda-hero .tgcda-kicker,.tgcda-page-hero .tgcda-kicker,.tgcda-cta .tgcda-kicker { color:#f4c969; }
.tgcda-hero-lead { max-width:650px; color:#eef4f8 !important; font-size:19px; line-height:1.65; }
.tgcda-actions { display:flex; align-items:center; flex-wrap:wrap; gap:26px; margin-top:36px; }
.tgcda-button-gold { background:#d8a83e; color:#172b38; }
.tgcda-text-link { color:#fff; font-weight:700; text-underline-offset:5px; }
.tgcda-hero-art { aspect-ratio:1; min-height:330px; position:relative; display:grid; place-items:center; border:1px solid #ffffff42; border-radius:50%; background:radial-gradient(circle,#ffffff21 0%,transparent 60%); }
.art-orbit { position:absolute; border:1px solid #ffffff45; border-radius:50%; }
.art-orbit-one { width:73%; height:73%; }
.art-orbit-two { width:50%; height:50%; background:#ffffff16; box-shadow:0 0 0 38px #ffffff08; }
.art-core { z-index:1; color:#fff; font-size:clamp(20px,2.1vw,32px); line-height:1.04; font-weight:800; letter-spacing:-.04em; text-align:center; }
.art-core em { display:block; font-size:12px; font-style:normal; letter-spacing:.14em; margin-top:10px; color:#f4c969; }
.art-caption { position:absolute; bottom:12%; color:#eaf2f7; font-size:10px; letter-spacing:.12em; text-transform:uppercase; }
.tgcda-facts { background:#fff; border-bottom:1px solid #dce5eb; }
.tgcda-facts-grid { display:grid; grid-template-columns:repeat(4,1fr); }
.tgcda-facts-grid div { min-width:0; padding:27px 22px; border-right:1px solid #dce5eb; }
.tgcda-facts-grid div:first-child { padding-left:0; }
.tgcda-facts-grid div:last-child { border-right:0; }
.tgcda-facts-grid strong { display:block; color:#1c4e80; font-size:24px; line-height:1.2; letter-spacing:-.03em; }
.tgcda-facts-grid span { display:block; margin-top:5px; color:#536572; font-size:12px; font-weight:650; text-transform:uppercase; letter-spacing:.06em; }
.tgcda-section { padding:104px 0; }
.tgcda-split { display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1fr); gap:11%; align-items:start; }
.tgcda-split h2 { max-width:590px; margin-bottom:0; font-size:clamp(36px,3.8vw,57px); }
.tgcda-split p { max-width:680px; font-size:18px; line-height:1.75; }
.tgcda-inline-link { display:inline-block; margin-top:10px; color:#1c4e80; font-size:15px; font-weight:800; text-underline-offset:5px; }
.tgcda-section-blue { background:#eaf3f9; }
.tgcda-section-intro { max-width:840px; margin-bottom:48px; }
.tgcda-section-intro h2 { font-size:clamp(36px,3.8vw,56px); }
.tgcda-section-intro p:not(.tgcda-kicker) { max-width:700px; color:#4d616e; font-size:18px; }
.tgcda-card-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:16px; }
.tgcda-card-grid-three { grid-template-columns:repeat(3,minmax(0,1fr)); }
.tgcda-card { min-width:0; padding:28px 24px 32px; border:1px solid #d4e0e9; border-radius:16px; background:#fff; box-shadow:0 8px 30px #1c4e8008; }
.tgcda-card-head { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:34px; }
.tgcda-card-head .tgcda-icon { display:block; width:46px; height:46px; padding:10px; flex:none; border-radius:13px; background:#edf4f8; color:#1c4e80; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.tgcda-card-head > span { display:block; color:#a4710b; font-size:11px; font-weight:800; letter-spacing:.14em; }
.tgcda-card h3 { margin-bottom:14px; color:#1c4e80; font-size:21px; line-height:1.15; }
.tgcda-card p { color:#4d616e; font-size:14px; line-height:1.6; }
.tgcda-after-grid { margin-top:35px; }
.tgcda-button-outline { background:transparent; border:1px solid #1c4e80; color:#1c4e80; }
.tgcda-principles { display:grid; grid-template-columns:1fr 1fr; gap:11%; align-items:center; }
.tgcda-principles h2 { font-size:clamp(36px,3.8vw,56px); }
.tgcda-principles p:not(.tgcda-kicker) { color:#4d616e; font-size:18px; }
.tgcda-principle-list { border-top:1px solid #cddce6; }
.tgcda-principle-list > div { display:grid; grid-template-columns:120px 1fr; gap:22px; padding:22px 0; border-bottom:1px solid #cddce6; }
.tgcda-principle-list strong { color:#1c4e80; font-size:16px; }
.tgcda-principle-list span { color:#4d616e; font-size:15px; }
.tgcda-cta { padding:75px 0; color:#fff; background:linear-gradient(110deg,#133858,#1c4e80); }
.tgcda-cta-inner { display:flex; align-items:center; justify-content:space-between; gap:40px; }
.tgcda-cta h2 { max-width:750px; font-size:clamp(34px,3.5vw,53px); }
.tgcda-cta p:not(.tgcda-kicker) { color:#e7f0f7; font-size:17px; }
.tgcda-cta .button { flex:none; }
.tgcda-page-hero { padding:90px 0 100px; background:radial-gradient(circle at 90% 20%,#3978aa,transparent 36%),linear-gradient(120deg,#103657,#1c4e80); }
.tgcda-page-hero h1 { max-width:940px; font-size:clamp(44px,5.3vw,74px); }
.tgcda-page-hero p:not(.tgcda-kicker) { max-width:700px; color:#edf4f8; font-size:19px; line-height:1.6; }
.tgcda-contact-panel { padding:35px; border:1px solid #d4e0e9; border-radius:18px; background:#fff; }
.tgcda-contact-panel h3 { color:#1c4e80; font-size:26px; }
.tgcda-contact-panel > div { padding:18px 0; border-bottom:1px solid #d9e3eb; }
.tgcda-contact-row { display:flex; align-items:flex-start; gap:14px; }
.tgcda-contact-icon { width:38px; height:38px; flex:none; padding:8px; border-radius:11px; background:#edf4f8; color:#1c4e80; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.tgcda-contact-detail { min-width:0; flex:1; }
.tgcda-contact-panel > div span { display:block; color:#5c7080; font-size:11px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.tgcda-contact-panel a,.tgcda-contact-panel address { display:block; margin-top:6px; font-size:16px; font-style:normal; overflow-wrap:anywhere; }
.tgcda-contact-note { margin-top:20px; color:#52626e !important; font-size:13px !important; }
.site-footer { background:#102d48; }
.tgcda-footer-name { max-width:390px; color:#fff; font-size:24px; font-weight:800; line-height:1.15; }
.tgcda-footer-name span { color:inherit; white-space:nowrap; }
.site-footer .footer-grid > div:first-child p { max-width:350px; color:#d3e1ec; font-size:13px; }
.site-footer .footer-heading { color:#fff; }
.site-footer a:hover { color:#f4c969; }
.tgcda-footer-button { padding:0; border:0; background:none; color:inherit; font:inherit; text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.tgcda-footer-button:hover { color:#f4c969; }
.tgcda-policy-date { margin-top:30px; color:#f4c969 !important; font-size:13px !important; font-weight:700; letter-spacing:.04em; }
.tgcda-policy-body { max-width:860px; padding-top:78px; padding-bottom:96px; }
.tgcda-policy-body section { padding:30px 0; border-bottom:1px solid #d9e3eb; }
.tgcda-policy-body section:first-child { padding-top:0; }
.tgcda-policy-body section:last-child { border-bottom:0; }
.tgcda-policy-body h2 { margin-bottom:16px; color:#1c4e80; font-size:clamp(26px,3vw,36px); }
.tgcda-policy-body p { max-width:760px; color:#3d505b; font-size:16px; line-height:1.75; }
.tgcda-policy-body a { color:#1c4e80; text-decoration:underline; text-underline-offset:3px; }
.tgcda-cookie-notice[hidden] { display:none !important; }
.tgcda-cookie-notice { position:fixed; z-index:99999; right:24px; bottom:80px; display:grid; grid-template-columns:38px minmax(0,1fr); gap:14px; width:min(500px,calc(100% - 32px)); padding:22px; border:1px solid #d9e3eb; border-radius:16px; background:#fff; box-shadow:0 16px 55px #0b29463d; color:#25313a; }
.tgcda-cookie-symbol { display:grid; place-items:center; width:38px; height:38px; border-radius:50%; background:#eaf3f9; color:#1c4e80; font-size:23px; font-weight:800; font-style:italic; font-family:Georgia,serif; }
.tgcda-cookie-copy h2 { margin:0 0 7px; color:#1c4e80; font-size:18px; line-height:1.2; }
.tgcda-cookie-copy p { margin:0; color:#425664; font-size:13px; line-height:1.55; }
.tgcda-cookie-copy a { color:#1c4e80; font-weight:700; text-decoration:underline; text-underline-offset:2px; }
.tgcda-cookie-dismiss { grid-column:2; justify-self:start; padding:9px 20px; border:0; border-radius:999px; background:#1c4e80; color:#fff; font-size:13px; font-weight:700; cursor:pointer; }
.tgcda-cookie-dismiss:hover { background:#153a62; }
@media(max-width:1150px){.tgcda-card-grid{grid-template-columns:repeat(3,minmax(0,1fr));}.tgcda-hero-grid{grid-template-columns:1fr .68fr;}.tgcda-hero-art{min-height:260px;}}
@media(max-width:782px){.tgcda-brand .brand-name{font-size:16px;}.tgcda-brand .brand-name span{font-size:inherit;}.tgcda-brand > a:first-child{width:54px;height:50px;}.tgcda-brand > a:first-child img{width:83px;transform:translate(-14px,-1px);}.tgcda-hero-grid,.tgcda-split,.tgcda-principles{grid-template-columns:1fr;gap:36px;}.tgcda-hero{padding:70px 0;}.tgcda-hero-art{display:none;}.tgcda-page-hero{padding:70px 0;}.tgcda-facts-grid{grid-template-columns:repeat(2,1fr);}.tgcda-facts-grid div:nth-child(2){border-right:0;}.tgcda-facts-grid div:nth-child(-n+2){border-bottom:1px solid #dce5eb;}.tgcda-facts-grid div:nth-child(3){padding-left:0;}.tgcda-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.tgcda-cta-inner{display:block;}.tgcda-cta .button{margin-top:22px;}.tgcda-section{padding:70px 0;}}
@media(max-width:540px){.tgcda-brand{flex:1 1 0;min-width:0;}.tgcda-brand .brand-name{min-width:0;max-width:none;font-size:13px;line-height:1.16;}.tgcda-brand .brand-name span{display:inline;font-size:inherit;}.tgcda-hero h1,.tgcda-page-hero h1{font-size:clamp(37px,10vw,53px);}.tgcda-hero-lead,.tgcda-page-hero p:not(.tgcda-kicker){font-size:16px;}.tgcda-card-grid{grid-template-columns:1fr;}.tgcda-card>span{margin-bottom:24px;}.tgcda-facts-grid strong{font-size:20px;}.tgcda-facts-grid div{padding:20px 12px;}.tgcda-split h2,.tgcda-section-intro h2,.tgcda-principles h2{font-size:36px;}.tgcda-split p,.tgcda-section-intro p:not(.tgcda-kicker),.tgcda-principles p:not(.tgcda-kicker){font-size:16px;}.tgcda-principle-list>div{grid-template-columns:1fr;gap:5px;}.tgcda-contact-panel{padding:24px;}.tgcda-cta{padding:60px 0;}}
@media(max-width:540px){.header-cta{display:none;}.js-nav .menu-toggle{order:2;margin-left:auto;}.primary-navigation{order:3;}.primary-navigation ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px;}.primary-navigation a{display:block;}}
@media(max-width:540px){.tgcda-card-head{margin-bottom:24px;}.tgcda-card-head .tgcda-icon{width:42px;height:42px;}.tgcda-footer-name{font-size:21px;}}
@media(max-width:540px){.tgcda-policy-body{padding-top:50px;padding-bottom:65px;}.tgcda-policy-body section{padding:24px 0;}.tgcda-cookie-notice{right:12px;bottom:72px;width:calc(100% - 24px);padding:17px;gap:10px;}.tgcda-cookie-copy p{font-size:12px;}}
@media(min-width:783px) and (max-width:980px){.header-inner{flex-wrap:wrap;}.primary-navigation{order:4;flex-basis:100%;margin:0;}.primary-navigation ul{justify-content:center;}.header-cta{margin-left:auto;}}
