/* Allotmates brand layer on top of Astra. Tokens from brand.json (guidelines v1). Flat: no gradients, no text shadows. */
:root{
  --c-primary:#1F6F45; --c-primary-dark:#16543A; --c-secondary:#D9EBD0; --c-accent:#BE451C; --c-accent-dark:#963716;
  --c-text:#2B2620; --c-text-muted:#5B6B5A; --c-bg:#FAF4E4; --c-tint:#D9EBD0; --c-line:#5B6B5A;
  --c-marigold:#F0B323; --c-beetroot:#7A2E48; --c-white:#FFFFFF;
  --font-heading:"Fraunces",Georgia,serif; --font-body:"Source Sans 3",system-ui,sans-serif;
  --radius-card:12px; --radius-button:12px; --radius-pill:999px;
  --shadow-card:0 1px 2px rgba(43,38,32,.08),0 4px 12px rgba(43,38,32,.06);
  --btn-h:52px; --reading:720px;
  /* Point Astra's global colour variables at the brand (0 link/theme, 1 hover, 2 headings, 3 text, 4 to 8 backgrounds and borders) */
  --ast-global-color-0:var(--c-primary); --ast-global-color-1:var(--c-primary-dark); --ast-global-color-2:var(--c-primary);
  --ast-global-color-3:var(--c-text); --ast-global-color-4:var(--c-bg); --ast-global-color-5:var(--c-white);
  --ast-global-color-6:var(--c-tint); --ast-global-color-7:var(--c-text); --ast-global-color-8:var(--c-text);
}
body,button,input,select,textarea{font-family:var(--font-body)}
body{font-size:18px;line-height:1.6;color:var(--c-text);background:var(--c-bg);-webkit-font-smoothing:antialiased}
h1,h2,h3,h4,.entry-title{font-family:var(--font-heading);font-weight:600;color:var(--c-primary);line-height:1.2}
h1{font-size:32px;line-height:1.15}
h2{font-size:26px}
h3{font-size:22px;line-height:1.3}
h4{font-size:18px;font-family:var(--font-body);color:var(--c-text)}
@media(min-width:768px){h1{font-size:44px}h2{font-size:34px}}
a{color:var(--c-primary);text-decoration:underline;text-underline-offset:3px}
a:hover{color:var(--c-primary-dark)}
:focus-visible{outline:3px solid #2B2620;outline-offset:3px}

/* buttons: flat, 52px, 12px radius. One Clay call to action per screen. */
.ast-button,.button,button,input[type=submit],.wp-block-button__link,.elementor-button{border-radius:var(--radius-button);min-height:var(--btn-h);font-family:var(--font-body);font-weight:600;box-shadow:none;text-shadow:none}
.btn-cta,.elementor-button.btn-cta{background:var(--c-accent);color:var(--c-white)}
.btn-cta:hover{background:var(--c-accent-dark);color:var(--c-white)}

/* form fields: high contrast borders */
input[type=text],input[type=email],input[type=password],input[type=search],input[type=tel],select,textarea{border:2px solid var(--c-line);border-radius:var(--radius-button);min-height:var(--btn-h);background:var(--c-white);color:var(--c-text);font-size:18px}

/* skip link */
.skip{position:absolute;left:8px;top:-100px;z-index:200;background:var(--c-white);color:var(--c-primary);padding:12px 20px;border-radius:var(--radius-button);font-weight:600}
.skip:focus{top:8px}

/* shared classes for wp_aibuilder blueprints */
.band-cream{background:var(--c-bg)}
.band-sage{background:var(--c-tint)}
.band-green{background:var(--c-primary);color:var(--c-bg)}
.band-green h1,.band-green h2,.band-green h3{color:var(--c-bg)}
.tag{display:inline-flex;align-items:center;gap:6px;background:var(--c-tint);color:var(--c-text);padding:6px 12px;border-radius:var(--radius-pill);font-size:16px;font-weight:600}
.tag-event{background:var(--c-beetroot);color:var(--c-white)}
.card{background:var(--c-white);border:1px solid var(--c-line);border-radius:var(--radius-card)}
a.card:hover,.card.is-link:hover{box-shadow:var(--shadow-card)}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

/* ---- Astra header (interim; the final header is built in Elementor). Two variants, chosen by the option allotmates_header_variant (cream | green). ---- */
.site-header .custom-logo-link img,.site-branding img{max-height:52px;width:auto}
.site-content{background:var(--c-bg)}
.ast-separate-container .ast-article-single,.ast-separate-container .ast-article-post{background:transparent;padding:0;border:0}
.ast-separate-container #primary{padding:0;background:transparent}
.ast-separate-container .site-main>.ast-row{margin:0}
.main-header-bar .menu-link{font-weight:600;font-size:18px}
.hdr-cream .main-header-bar,.hdr-cream .ast-primary-header-bar{background:var(--c-bg);border-bottom:1px solid var(--c-line)}
.hdr-cream .main-header-bar .menu-link,.hdr-cream .ast-builder-menu .menu-item>.menu-link{color:var(--c-primary)}
.hdr-green .main-header-bar,.hdr-green .ast-primary-header-bar{background:var(--c-primary);border-bottom:0}
.hdr-green .main-header-bar .menu-link,.hdr-green .ast-builder-menu .menu-item>.menu-link{color:var(--c-bg)}
.hdr-green .ast-header-break-point .ast-mobile-menu-buttons .menu-toggle,.hdr-green .menu-toggle{color:var(--c-bg)}
/* the one Clay button in the menu */
.main-header-menu .menu-cta>.menu-link,.ast-builder-menu .menu-cta>.menu-link{background:var(--c-accent);color:var(--c-white)!important;border-radius:var(--radius-button);padding:0 20px;min-height:48px;display:inline-flex;align-items:center;line-height:1}
.main-header-menu .menu-cta>.menu-link:hover{background:var(--c-accent-dark)}

/* Menu hover: Astra's default fills the item with the primary green, which is invisible on the
   already-green header and unreadable green-on-green in the dropdown. Give clearer, on-brand feedback. */
.main-header-menu>.menu-item>a:hover,.main-header-menu>.menu-item>a:focus,
.main-header-menu>.menu-item.current-menu-item>a{background:rgba(255,255,255,.16);color:#fff}
.main-header-menu .sub-menu{background:#fff;border-radius:10px;overflow:hidden;box-shadow:0 8px 24px rgba(0,0,0,.12)}
.main-header-menu .sub-menu a{color:var(--c-primary-dark);background:#fff}
.main-header-menu .sub-menu a:hover,.main-header-menu .sub-menu a:focus{background:var(--c-tint);color:var(--c-primary-dark)}
.main-header-menu .menu-cta>.menu-link:hover,.main-header-menu .menu-cta>.menu-link:focus{color:#fff}
.main-header-menu .sub-menu{background:var(--c-white);border:1px solid var(--c-line);border-radius:var(--radius-button)}
.main-header-menu .sub-menu .menu-link{color:var(--c-primary)!important}

/* page title injected on BuddyPress directories */
.allot-bp-title{margin:0 0 var(--s3,24px)}

/* ---- BuddyPress (Nouveau) branded ---- */
#buddypress,.buddypress-wrap{font-family:var(--font-body);font-size:18px;color:var(--c-text)}
.buddypress-wrap .bp-navs,.buddypress-wrap .bp-navs ul{background:transparent}
.buddypress-wrap .bp-navs li a{color:var(--c-primary);font-weight:600;border-radius:var(--radius-button) var(--radius-button) 0 0}
.buddypress-wrap .bp-navs li.selected a,.buddypress-wrap .bp-navs li.current a,.buddypress-wrap .bp-navs li.selected a:focus,.buddypress-wrap .bp-navs li.selected a:hover{background:var(--c-primary);color:var(--c-white)}
.buddypress-wrap .bp-navs li:not(.selected) a:hover,.buddypress-wrap .bp-navs li:not(.selected) a:focus{background:var(--c-tint);color:var(--c-primary-dark)}
.buddypress-wrap .bp-navs li a .count{background:var(--c-tint);color:var(--c-text);border:1px solid var(--c-line);font-weight:600}
.buddypress-wrap .bp-navs li.selected a .count,.buddypress-wrap .bp-navs li.current a .count{background:var(--c-white);color:var(--c-primary)}
.buddypress-wrap .bp-dir-hdr-bar,.buddypress-wrap .subnav-filters{background:transparent;border:0}
.buddypress-wrap .bp-search form,.buddypress-wrap .dir-search form{border:2px solid var(--c-line);border-radius:var(--radius-button);background:var(--c-white)}
.buddypress-wrap .bp-search input[type=search],.buddypress-wrap .dir-search input[type=search]{border:0;min-height:48px;background:transparent}
.buddypress-wrap .bp-search [type=submit]{background:var(--c-primary);color:var(--c-white);border-radius:0 calc(var(--radius-button) - 2px) calc(var(--radius-button) - 2px) 0;min-height:48px}
.buddypress-wrap select{border:2px solid var(--c-line);border-radius:var(--radius-button);min-height:48px;background:var(--c-white);color:var(--c-text)}
.buddypress-wrap .button,.buddypress-wrap button:not(.bp-tooltip),.buddypress-wrap input[type=submit]{background:var(--c-primary);color:var(--c-white);border:2px solid var(--c-primary);border-radius:var(--radius-button);min-height:var(--btn-h)}
.buddypress-wrap .button:hover,.buddypress-wrap input[type=submit]:hover{background:var(--c-primary-dark);border-color:var(--c-primary-dark);color:var(--c-white)}
.buddypress-wrap .bp-feedback{background:var(--c-tint);color:var(--c-text);border:1px solid var(--c-line);border-left:6px solid var(--c-primary);border-radius:var(--radius-button);box-shadow:none}
.buddypress-wrap .bp-feedback .bp-icon{background:var(--c-primary);color:var(--c-white)}
.buddypress-wrap .bp-feedback.loading .bp-icon,.buddypress-wrap .bp-feedback.info .bp-icon{background:var(--c-primary)}
.buddypress-wrap .activity-list .activity-item,.buddypress-wrap .item-list .item-entry{background:var(--c-white);border:1px solid var(--c-line);border-radius:var(--radius-card);box-shadow:none;padding:var(--s3,24px);margin-bottom:var(--s2,16px)}
.buddypress-wrap a{color:var(--c-primary)}

/* Mobile menu fixes: visible toggle on the green header, readable Clay join button inside the open menu */
.hdr-green .ast-mobile-menu-trigger-minimal,.hdr-green .ast-mobile-menu-buttons .menu-toggle,.hdr-green .menu-toggle.main-header-menu-toggle{color:var(--c-bg)!important;border-color:var(--c-bg)!important}
.hdr-green .ast-mobile-menu-trigger-minimal .ast-mobile-svg,.hdr-green .ast-mobile-menu-buttons .ast-mobile-svg{fill:var(--c-bg)!important}
.ast-header-break-point .main-header-bar-navigation .menu-item.menu-cta>.menu-link,.ast-mobile-header-content .menu-item.menu-cta>.menu-link,.ast-mobile-popup-content .menu-item.menu-cta>.menu-link{background:var(--c-accent)!important;color:var(--c-white)!important;border-radius:var(--radius-button);margin:8px 20px;width:calc(100% - 40px);box-sizing:border-box;padding:0 20px;min-height:52px;display:flex;align-items:center;justify-content:center;line-height:1}
.ast-mobile-header-content .menu-link,.ast-mobile-popup-content .menu-link{color:var(--c-text);font-size:18px;min-height:56px}

/* Mid-width desktops (922 to 1180px): keep the menu on one row */
@media (min-width:922px) and (max-width:1180px){
  .main-header-menu>.menu-item>.menu-link{padding-left:10px;padding-right:10px;font-size:16px}
  .main-header-menu .menu-cta>.menu-link{padding:0 14px;min-height:44px}
  .site-header .custom-logo-link img,.site-branding img{max-height:44px}
}

/* Join button: a normal 48px button centred in the header bar, not the full bar height (desktop) */
@media (min-width:922px){
  .ast-desktop .main-header-menu>.menu-item.menu-cta{align-self:center;height:auto;line-height:1;margin-left:8px}
  .ast-desktop .main-header-menu>.menu-item.menu-cta>.menu-link{height:48px!important;min-height:48px;padding:0 22px;line-height:1;border-radius:var(--radius-button)}
}

/* Side gutter for full-width Elementor sections built by wp_aibuilder (Blueprint rows keep padding-left/right 0 to match the mockup section boxes). Only needed below the 1120px content width plus gutters. */
@media (max-width:1167px){.elementor .e-con.e-parent>.e-con-inner{padding-left:24px;padding-right:24px}}
@media (max-width:767px){.elementor .e-con.e-parent>.e-con-inner{padding-left:16px;padding-right:16px}}

/* Tokens used by the mockup component CSS (components.css) that the first brand layer did not define */
:root{--s1:8px;--s2:16px;--s3:24px;--s4:32px;--s5:48px;--s6:64px;--s7:96px;--tap:44px;--max:1120px;--gutter:16px;--c-footer-text:#FAF4E4;--c-tint2:#D9EBD0;--c-dark:#2B2620;--c-header-bg:#1F6F45;--c-footer-bg:#1F6F45}
@media(min-width:768px){:root{--gutter:24px}}

/* ---- Central fixes from the page-by-page comparison (21 Sep 2026) ---- */
/* html widgets fill their row instead of shrinking to content */
.elementor .elementor-widget-html{width:100%;align-self:stretch}
.elementor .elementor-widget-html>.elementor-widget-container{width:100%}
/* Elementor supplies the content width and gutter; the mockup's own .wrap must not add another */
.allot .wrap{max-width:none;padding-left:0;padding-right:0}
/* No extra Elementor gap inside stacks (spacing comes from the roles and the mockup markup); column rows keep their gap, 48px for two-column splits */
.elementor .e-con:not(:has(> .e-con)),.elementor .e-con-inner:not(:has(> .e-con)){row-gap:0}
@media (min-width:768px){.elementor .e-con-inner:has(> .e-con:nth-child(2)):not(:has(> .e-con:nth-child(3))){column-gap:48px}}
/* Astra form and list defaults that fight the mockup */
.allot fieldset{border:0;min-width:0}
.allot legend{float:none;width:auto}
.allot label{color:var(--c-text)}
.allot dd{margin-left:0}
.allot h1 .caption{font-size:.4em;display:inline;font-weight:400}
/* marker hook: a widget with class cover-band-marker makes its row carry the green left border */
.elementor .e-con.e-parent:has(.cover-band-marker){border-left:4px solid var(--c-primary)}
/* prose measure */
.allot .prose{max-width:var(--reading)}
/* Elementor's default 20px space after every widget: spacing here comes from the roles and the mockup markup */
.elementor{--kit-widget-spacing:0px}
.elementor .elementor-widget:not(:last-child){margin-block-end:0}

/* Spacing between stacked widgets (the Elementor gap is 0, so the rhythm of the mockups lives here) */
.elementor .elementor-widget-heading+.elementor-widget-text-editor,.elementor .elementor-widget-heading+.elementor-widget-heading{margin-top:8px}
.elementor .elementor-widget-text-editor+.elementor-widget-text-editor{margin-top:16px}
.elementor .elementor-widget-text-editor+.elementor-widget-heading{margin-top:32px}
.elementor .elementor-widget-heading+.elementor-widget-button,.elementor .elementor-widget-html+.elementor-widget-button{margin-top:16px}
.elementor .elementor-widget-text-editor+.elementor-widget-button{margin-top:24px}
.elementor .elementor-widget-text-editor+.elementor-widget-html,.elementor .elementor-widget-heading+.elementor-widget-html{margin-top:16px}

/* ---- BuddyPress registration and account forms ---- */
#buddypress #signup-form .layout-wrap{display:block}
#buddypress #signup-form .layout-wrap>*{float:none;width:100%;max-width:640px}
#buddypress #signup-form h2,#buddypress #signup-form .register-section h2{margin:0 0 var(--s2,16px)}
#buddypress #signup-form .register-section{margin-bottom:var(--s4,32px)}
#buddypress label,#buddypress .label{font-size:18px;color:var(--c-text);font-weight:600}
#buddypress input[required],#buddypress select[required],#buddypress .required-field input{border-color:var(--c-line)!important}
#buddypress input:focus,#buddypress select:focus{border-color:var(--c-primary)}
#buddypress .field-visibility-settings-notoggle,#buddypress .field-visibility-settings-toggle{font-size:16px;color:var(--c-text-muted)}
#buddypress p.description,#buddypress .description{font-size:16px;color:var(--c-text-muted)}
/* Astra's scroll-to-top button renders as a big unstyled arrow on these pages */
#ast-scroll-top{display:none!important}

/* Landlord facts on area hubs (generated by build/tools/gen_hubs.py) */
.allot .lf{max-width:var(--wrap,1120px);margin:0 auto;padding:0 16px}
.allot .lf-note{font-size:.95rem;color:var(--c-muted,#4a4a3f);margin:0 0 16px}
.allot .lf h3{margin:28px 0 8px;font-size:1.2rem}
.allot .lf-table{width:100%;border-collapse:collapse;background:#fff;border:1px solid #d8d2bd;border-radius:12px;overflow:hidden}
.allot .lf-table th,.allot .lf-table td{padding:12px 16px;text-align:left;vertical-align:top;border-bottom:1px solid #ece6d2;line-height:1.5}
.allot .lf-table th{width:26%;font-weight:700;background:#f6efd9}
.allot .lf-table tr:last-child th,.allot .lf-table tr:last-child td{border-bottom:0}
.allot .lf ul{margin:0;padding-left:1.2em}
.allot .lf li{margin:4px 0}
.allot .lf a{color:#1F6F45;text-decoration:underline}
.allot .lf-gaps{margin-top:20px;font-size:.95rem}
@media (max-width:640px){.allot .lf-table{width:100%;table-layout:fixed}.allot .lf-table th,.allot .lf-table td{display:block;width:auto;padding:10px 12px;box-sizing:border-box;word-break:break-word}.allot .lf-table th{border-bottom:0;padding-bottom:4px}}

/* Swap and gift listings (staging/theme/allotmates-child/inc/swaps.php) */
.allot .swap-feed{list-style:none;margin:16px 0 0;padding:0}
.allot .swap-card{background:#fff;border:1px solid #d8d2bd;border-radius:12px;padding:16px;position:relative;display:flex;flex-direction:column;gap:8px}
.allot .swap-card .swap-card-img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:8px}
.allot .swap-card h3{margin:0;font-size:1.05rem}
.allot .swap-card p{margin:0;font-size:.95rem;color:var(--c-muted,#4a4a3f)}
.allot .swap-card .go{font-size:.9rem;color:#1F6F45;font-weight:600}
.allot .tag-row{display:flex;gap:8px;flex-wrap:wrap}
.allot-form p{margin:0 0 14px}
.allot-form label{display:block;font-weight:700;margin-bottom:4px}
.allot-form input[type=text],.allot-form input[type=file],.allot-form select,.allot-form textarea{width:100%;max-width:480px;padding:10px 12px;border:1px solid #ccc4a8;border-radius:8px;font:inherit;background:#fff}
.allot-form .notice{background:#D9EBD0;padding:10px 14px;border-radius:8px;display:inline-block}
.swap-replies .comment{border-top:1px solid #ece6d2;padding:12px 0}
.reply-block .comment-form-comment textarea{width:100%;padding:10px;border:1px solid #ccc4a8;border-radius:8px;margin-top:6px}
.reply-block #submit,.reply-block input[type=submit]{margin-top:10px}

/* Swap-feed chip filtering (client-side, staging/theme/allotmates-child/inc/swaps.php enqueues the JS) */
.allot .swap-card[hidden]{display:none}

/* ---- Phone and tablet spacing (30 Nov 2026). The Elementor gap is 0, so every pairing that can stack needs its own space. Desktop is unchanged. ---- */
@media (max-width:1180px){
  /* buttons that sit or wrap together */
  .elementor .e-con:has(>.elementor-widget-button~.elementor-widget-button){gap:12px}
  .elementor .e-con-inner>.elementor-widget-button+.elementor-widget-button,.elementor .e-con-full>.elementor-widget-button+.elementor-widget-button{margin-top:12px}
  .elementor .e-con:not(.e-con-full)>.e-con-inner>.elementor-widget-heading+.elementor-widget-button{margin-top:16px}
  .elementor .e-con-full:has(>.elementor-widget-button~.elementor-widget-button)>.elementor-widget-button+.elementor-widget-button{margin-top:0}
  /* nested columns: drop Elementor's extra 10px side padding so edges line up */
  .elementor .e-con.e-parent>.e-con-inner>.e-con.e-con-full{padding-left:0;padding-right:0}
  .elementor .e-con.e-con-full:has(>.elementor-widget-button~.elementor-widget-button){padding-left:0;padding-right:0}
  /* widget pairings that had no space */
  .elementor .elementor-widget-html+.elementor-widget-text-editor,.elementor .elementor-widget-button+.elementor-widget-text-editor,.elementor .elementor-widget-text-editor+.elementor-widget-html,.elementor .elementor-widget-html+.elementor-widget-html,.elementor .elementor-widget-button+.elementor-widget-html{margin-top:20px}
  .elementor .elementor-widget-html+.elementor-widget-heading,.elementor .elementor-widget-button+.elementor-widget-heading{margin-top:32px}
  .elementor .elementor-widget-heading+.elementor-widget-button{margin-top:16px}
  /* inside cards and panels */
  .allot .promise-panel h2+p{margin-top:12px}
  .allot h2+.band-sage,.allot .band-sage+h2{margin-top:24px}
  .allot .lf-table{margin-top:12px}
  .allot .lf-table+.caption{margin-top:12px}
  .allot .breadcrumb+h1,.allot .breadcrumb+.page-header{margin-top:12px}
  .allot .steps+p,.allot .stack+p{margin-top:16px}
  /* neighbour cover band: one side bar, not two */
  .elementor .e-con.e-parent:has(.cover-band-marker) .e-con:has(>.cover-band-marker){border-left:0;padding-left:0;padding-right:0}
  /* registration form help text */
  #buddypress #signup-form input+p,#buddypress #signup-form select+p,#buddypress #signup-form p.description,#buddypress #signup-form .field-visibility-settings-header{margin-top:10px}
  #buddypress #signup-form label{display:block;margin-bottom:8px}
  body #signup-form fieldset input+p{margin-top:10px}
}

/* Caps-lock warning on password fields: WordPress's admin styles are not loaded on the front end, so it showed all the time with a full-width icon. Its script shows it when caps lock is on. */
.caps-warning{display:none;margin-top:8px;font-size:16px;line-height:1.4}
.caps-warning .caps-icon{display:inline-block;width:20px;height:20px;margin-right:6px;vertical-align:text-bottom}
.caps-warning .caps-icon svg{width:20px;height:20px}

@media (max-width:1180px){#signup-form .submit{margin-bottom:16px}}
