/*
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; } }
