/* Atlantic Image Defense - v451.104
 * Functional layout correction for dedicated public exchange.
 * Scope: public navigation, homepage teaser, dedicated exchange page, forms and threads.
 */

/* ---------------- Navigation ---------------- */
#main-menu ul li ul{min-width:310px;max-width:360px}
#main-menu ul li ul li a,
.mobile_menu .sub-menu li a{
  white-space:normal !important;
  line-height:1.35 !important;
  overflow-wrap:anywhere;
  word-break:normal;
}

/* ---------------- Shared premium tokens ---------------- */
.aid-community-teaser,
.aid-community-page-hero,
.aid-community-exchange{
  --cx-bg:#07111e;
  --cx-bg2:#0b1a2a;
  --cx-panel:#10283a;
  --cx-panel2:#153044;
  --cx-gold:#e2bf8b;
  --cx-cyan:#76ddd9;
  --cx-text:#f7fafc;
  --cx-muted:#c7d1d8;
  --cx-line:rgba(226,191,139,.18);
}

/* ---------------- Homepage teaser ---------------- */
.aid-community-teaser{
  position:relative;
  overflow:hidden;
  padding:30px 0 74px;
  background:
    radial-gradient(circle at 10% 0%,rgba(118,221,217,.09),transparent 25%),
    radial-gradient(circle at 90% 6%,rgba(226,191,139,.1),transparent 28%),
    linear-gradient(180deg,#06111d 0%,#081523 100%);
}
.aid-community-teaser::before,
.aid-community-page-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:linear-gradient(rgba(226,191,139,.028) 1px,transparent 1px),linear-gradient(90deg,rgba(226,191,139,.028) 1px,transparent 1px);
  background-size:72px 72px;
  pointer-events:none;
}
.aid-community-teaser .container,
.aid-community-page-hero .container{position:relative;z-index:1}
.aid-community-teaser__shell{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(390px,.78fr);
  gap:34px;
  align-items:stretch;
  padding:30px;
  border:1px solid var(--cx-line);
  background:linear-gradient(145deg,rgba(255,255,255,.045),rgba(255,255,255,.014));
  box-shadow:0 28px 70px rgba(0,0,0,.2);
}
.aid-community-teaser__copy{display:flex;flex-direction:column;justify-content:center;gap:17px;min-width:0}
.aid-community-teaser__eyebrow,
.aid-community-page-hero__eyebrow{
  display:inline-flex;
  align-items:center;
  gap:9px;
  width:max-content;
  max-width:100%;
  padding:7px 13px;
  border:1px solid rgba(226,191,139,.2);
  background:rgba(226,191,139,.07);
  color:var(--cx-gold);
  font-size:12px;
  font-weight:800;
  letter-spacing:.13em;
  text-transform:uppercase;
}
.aid-community-teaser__eyebrow::before,
.aid-community-page-hero__eyebrow::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--cx-cyan);box-shadow:0 0 0 5px rgba(118,221,217,.08)}
.aid-community-teaser__copy h2,
.aid-community-page-hero__copy h1{margin:0;color:#fff;font-size:clamp(31px,3.5vw,50px);line-height:1.08;letter-spacing:-.04em;text-wrap:balance}
.aid-community-teaser__copy p,
.aid-community-page-hero__copy p{margin:0;max-width:840px;color:#dbe4e9;font-size:clamp(15px,1.22vw,18px);line-height:1.72}
.aid-community-teaser__facts,
.aid-community-page-hero__facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:2px}
.aid-community-teaser__fact,
.aid-community-page-hero__fact{display:flex;align-items:flex-start;gap:11px;min-width:0;padding:13px 14px;border:1px solid rgba(118,221,217,.14);background:rgba(255,255,255,.045)}
.aid-community-teaser__fact i,
.aid-community-page-hero__fact i{flex:0 0 31px;display:grid;place-items:center;width:31px;height:31px;border:1px solid rgba(118,221,217,.22);color:var(--cx-cyan);font-size:14px}
.aid-community-teaser__fact span,
.aid-community-page-hero__fact span{display:block;min-width:0}
.aid-community-teaser__fact strong,
.aid-community-page-hero__fact strong{display:block;margin:0 0 3px;color:#fff;font-size:13px;line-height:1.25}
.aid-community-teaser__fact small,
.aid-community-page-hero__fact small{display:block;color:#aebbc4;font-size:11px;line-height:1.4}
.aid-community-teaser__actions,
.aid-community-page-hero__actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:4px}
.aid-community-action-primary,
.aid-community-action-secondary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  min-height:49px;
  padding:0 19px;
  text-decoration:none !important;
  font-size:13px;
  font-weight:800;
  letter-spacing:.025em;
  text-transform:uppercase;
}
.aid-community-action-primary{border:1px solid #2bc5c3;background:linear-gradient(90deg,#1aaac3,#ef168f);color:#fff !important;box-shadow:0 16px 34px rgba(14,157,186,.16)}
.aid-community-action-secondary{border:1px solid rgba(226,191,139,.28);background:rgba(255,255,255,.045);color:#fff !important}
.aid-community-action-primary:hover,.aid-community-action-primary:focus-visible{filter:brightness(1.08);color:#fff !important}
.aid-community-action-secondary:hover,.aid-community-action-secondary:focus-visible{border-color:rgba(118,221,217,.5);background:rgba(118,221,217,.08);color:#fff !important}
.aid-community-teaser__visual,
.aid-community-page-hero__visual{position:relative;overflow:hidden;min-height:360px;border:1px solid rgba(255,255,255,.08);background:#0a1725}
.aid-community-teaser__visual img,
.aid-community-page-hero__visual img{display:block;width:100%;height:100%;object-fit:cover;object-position:center center}
.aid-community-teaser__visual::after,
.aid-community-page-hero__visual::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(8,18,30,.06),rgba(6,16,29,.68));pointer-events:none}
.aid-community-teaser__panel,
.aid-community-page-hero__panel{position:absolute;left:22px;right:22px;bottom:22px;z-index:2;padding:16px 18px;border:1px solid rgba(255,255,255,.1);background:rgba(8,22,36,.78);backdrop-filter:blur(9px)}
.aid-community-teaser__panel strong,
.aid-community-page-hero__panel strong{display:block;margin-bottom:6px;color:#fff;font-size:15px;line-height:1.32}
.aid-community-teaser__panel p,
.aid-community-page-hero__panel p{margin:0;color:#d8e2e8;font-size:12px;line-height:1.55}

/* ---------------- Dedicated page hero ---------------- */
.aid-community-page-hero{position:relative;overflow:hidden;padding:72px 0 44px;background:radial-gradient(circle at 8% 0%,rgba(118,221,217,.09),transparent 28%),radial-gradient(circle at 92% 8%,rgba(226,191,139,.1),transparent 28%),linear-gradient(180deg,#06111d 0%,#0b1828 100%)}
.aid-community-page-hero__layout{display:grid;grid-template-columns:minmax(0,1.04fr) minmax(390px,.96fr);gap:34px;align-items:stretch}
.aid-community-page-hero__copy{display:flex;flex-direction:column;justify-content:center;gap:17px;min-width:0}
.aid-community-page-hero__visual{min-height:430px;max-height:540px}

/* ---------------- Exchange functional content ---------------- */
.aid-community-exchange{position:relative;overflow:hidden;background:#eef2f5;color:#172b3a}
.aid-community-exchange--page{padding-top:42px}
.aid-community-exchange>.container{position:relative}
.aid-community-exchange__head{display:none}
.aid-community-exchange__notice{margin:0 0 22px;padding:15px 17px;border:1px solid #ccd6de;background:#fff;font-weight:650;color:#223846}
.aid-community-exchange__notice--success{border-left:4px solid #2d8561}.aid-community-exchange__notice--error{border-left:4px solid #aa4848}
.aid-community-exchange__layout{display:grid;grid-template-columns:minmax(340px,.72fr) minmax(0,1.28fr);gap:28px;align-items:start}
.aid-community-exchange__compose{grid-column:1;grid-row:1;scroll-margin-top:115px;position:sticky;top:96px;padding:0;background:transparent;border:0;box-shadow:none;color:#fff}
.aid-community-exchange__compose-inner{padding:26px;border:1px solid rgba(226,191,139,.18);background:linear-gradient(180deg,#112b3f 0%,#0c2132 100%);box-shadow:0 20px 44px rgba(13,34,49,.16)}
.aid-community-exchange__compose-kicker{display:block;margin-bottom:7px;color:#e2bf8b;font-size:11px;font-weight:850;letter-spacing:.11em;text-transform:uppercase}
.aid-community-exchange__compose h3{margin:0 0 9px;color:#fff;font-size:1.45rem;line-height:1.22}.aid-community-exchange__compose> .aid-community-exchange__compose-inner > p{margin:0 0 17px;color:#d5e0e6;font-size:.9rem;line-height:1.62}
.aid-community-form{display:grid;gap:13px}.aid-community-form__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.aid-community-form label{display:grid;gap:6px;margin:0}.aid-community-form label>span{font-size:.74rem;font-weight:800;line-height:1.35}.aid-community-form input,.aid-community-form select,.aid-community-form textarea{width:100%;border:1px solid #cad5de;background:#fff;color:#152c3c;padding:10px 11px;font:inherit;line-height:1.4;box-shadow:none;border-radius:0}.aid-community-form input,.aid-community-form select{min-height:44px}.aid-community-form textarea{resize:vertical;min-height:122px}.aid-community-form input:focus,.aid-community-form select:focus,.aid-community-form textarea:focus{outline:2px solid rgba(226,191,139,.35);outline-offset:1px;border-color:#e2bf8b}.aid-community-form small{color:#b8c5cd;font-size:.68rem;line-height:1.42}.aid-community-form__full{grid-column:1/-1}.aid-community-form__consent{grid-template-columns:auto 1fr!important;align-items:start;gap:9px!important;color:#d5e0e6;font-size:.73rem;line-height:1.48}.aid-community-form__consent input{width:16px;height:16px;min-height:0;margin-top:2px;accent-color:#e2bf8b}.aid-community-form__honeypot{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}.aid-community-form .btn_one{width:100%;justify-content:center;text-align:center;border-radius:0;box-shadow:none}
.aid-community-exchange__privacy{margin-top:16px;padding:13px 14px;border:1px solid rgba(118,221,217,.12);background:rgba(118,221,217,.055);color:#cbd7de;font-size:.74rem;line-height:1.5}.aid-community-exchange__privacy strong{display:block;margin-bottom:4px;color:#76ddd9;font-size:.72rem;letter-spacing:.06em;text-transform:uppercase}
.aid-community-exchange__feed{grid-column:2;grid-row:1;min-width:0}
.aid-community-exchange__feed-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}.aid-community-exchange__feed-head h3{margin:0;color:#17334a;font-size:1.16rem;line-height:1.3}.aid-community-exchange__feed-head>span{display:inline-grid;place-items:center;min-width:38px;height:32px;padding:0 9px;border:1px solid #cbd6dd;background:#fff;color:#17334a;font-size:.8rem;font-weight:800}
.aid-community-exchange__filters{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px;padding:0 0 16px;border-bottom:1px solid #d4dde3}.aid-community-exchange__filters a{display:inline-flex;align-items:center;min-height:37px;padding:7px 11px;border:1px solid #cbd5dc;background:#fff;color:#355061;text-decoration:none;font-size:.75rem;font-weight:750;line-height:1.25;border-radius:0}.aid-community-exchange__filters a:hover,.aid-community-exchange__filters a:focus-visible{border-color:#17334a;color:#17334a}.aid-community-exchange__filters a.is-active{background:#17334a;border-color:#17334a;color:#fff}
.aid-community-exchange__empty{padding:28px;border:1px solid #d4dde4;background:#fff;color:#687985}
.aid-community-thread{background:#fff;border:1px solid #d4dde4;border-left:4px solid #17334a;padding:22px 23px;margin-bottom:15px;box-shadow:0 10px 26px rgba(15,34,49,.04)}.aid-community-thread__header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.aid-community-thread__header h4{margin:8px 0 0;color:#152e40;font-size:1.17rem;line-height:1.3;overflow-wrap:anywhere}.aid-community-thread__category{display:inline-flex;align-items:center;min-height:25px;padding:4px 8px;background:#edf3f5;color:#49606f;font-size:.67rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase}.aid-community-thread__reference{white-space:nowrap;color:#7b8790;font-size:.69rem;font-weight:750;letter-spacing:.04em}.aid-community-thread__meta{display:flex;gap:8px 14px;flex-wrap:wrap;margin:13px 0 12px;padding-bottom:11px;border-bottom:1px solid #edf0f2;color:#74828c;font-size:.76rem}.aid-community-thread__meta strong{color:#344b59}.aid-community-thread__body{color:#40545f;font-size:.92rem;line-height:1.7;overflow-wrap:anywhere}.aid-community-thread__replies{display:grid;gap:9px;margin-top:17px;padding-top:13px;border-top:1px solid #e7ebee}.aid-community-reply{padding:13px 14px;border:1px solid #dbe3e8;background:#f9fbfc;color:#435661;line-height:1.6;font-size:.86rem}.aid-community-reply.is-atlantic{border-left:4px solid #e2bf8b;background:#fffaf1}.aid-community-reply__meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:6px;color:#78858e;font-size:.7rem}.aid-community-reply__meta strong{color:#213e51;font-size:.77rem}
.aid-community-thread__reply-box{margin-top:14px;padding-top:12px;border-top:1px solid #e7ecef}.aid-community-thread__reply-box>summary{cursor:pointer;display:inline-flex;align-items:center;gap:7px;padding:8px 11px;border:1px solid #cbd6dd;background:#f8fafb;color:#17334a;font-weight:800;font-size:.79rem;list-style:none}.aid-community-thread__reply-box>summary::-webkit-details-marker{display:none}.aid-community-thread__reply-box[open]>summary{margin-bottom:13px}.aid-community-form--reply{margin-top:0;padding:15px;border:1px solid #dce4e9;background:#f8fafb}.aid-community-form--reply label>span{color:#425966}.aid-community-form--reply small{color:#7f909b}.aid-community-form--reply .aid-community-form__consent{color:#536673}.aid-community-form--reply .btn_one{width:auto;justify-self:start}
.aid-community-exchange__pagination{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:18px}.aid-community-exchange__pagination a,.aid-community-exchange__pagination span{display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:7px 11px;border:1px solid #ccd7de;background:#fff;color:#244254;text-decoration:none;font-size:.78rem;font-weight:750}.aid-community-exchange__pagination a:hover,.aid-community-exchange__pagination a:focus-visible{border-color:#17334a}

/* ---------------- Accessibility / spacing ---------------- */
.aid-community-teaser a:focus-visible,
.aid-community-page-hero a:focus-visible,
.aid-community-exchange a:focus-visible,
.aid-community-exchange summary:focus-visible,
.aid-community-exchange button:focus-visible{outline:2px solid #e2bf8b;outline-offset:3px}

@media(max-width:1199px){
  .aid-community-teaser__shell,.aid-community-page-hero__layout{grid-template-columns:1fr}
  .aid-community-teaser__visual,.aid-community-page-hero__visual{min-height:360px;max-height:470px}
  .aid-community-exchange__layout{grid-template-columns:1fr}
  .aid-community-exchange__compose,.aid-community-exchange__feed{grid-column:1;position:static;top:auto}
  .aid-community-exchange__compose{grid-row:1}.aid-community-exchange__feed{grid-row:2}
}
@media(max-width:767px){
  .aid-community-teaser{padding:18px 0 58px}
  .aid-community-teaser__shell{padding:18px;gap:20px}
  .aid-community-page-hero{padding:58px 0 34px}
  .aid-community-page-hero__layout{gap:20px}
  .aid-community-teaser__facts,.aid-community-page-hero__facts{grid-template-columns:1fr}
  .aid-community-teaser__actions,.aid-community-page-hero__actions{display:grid;grid-template-columns:1fr}
  .aid-community-action-primary,.aid-community-action-secondary{width:100%}
  .aid-community-teaser__visual,.aid-community-page-hero__visual{min-height:300px;max-height:390px}
  .aid-community-teaser__panel,.aid-community-page-hero__panel{left:14px;right:14px;bottom:14px}
  .aid-community-exchange{padding-top:34px;padding-bottom:58px}
  .aid-community-exchange__compose-inner,.aid-community-thread{padding:18px}
  .aid-community-form__grid{grid-template-columns:1fr}.aid-community-form__full{grid-column:auto}
  .aid-community-thread__header{display:grid;gap:8px}.aid-community-thread__reference{white-space:normal}
  .aid-community-thread__meta{display:grid;gap:4px}
  .aid-community-form--reply .btn_one{width:100%;justify-self:stretch}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

/* ---------------- v451.136 Exchange Space navigation parity ---------------- */
/* EXCHANGE SPACE is special only while idle. Hover, focus and current-page states
   are deliberately left to the standard public navigation styles loaded later. */
#main-menu ul li.aid-menu-item-emphasis:not(.current):not(.active):not(.current-menu-item):not(.current_page_item) > a:not(.is-current-page):not([aria-current="page"]):not(:hover):not(:focus-visible){
  color:#e2bf8b !important;
}
.mobile_menu > li:not(.current):not(.active):not(.current-menu-item):not(.current_page_item) > a[href^="/community-exchange"]:not(.is-current-page):not([aria-current="page"]):not(:hover):not(:focus-visible){
  color:#e2bf8b !important;
}

#community-exchange-form,
#community-discussions{
  scroll-margin-top:118px;
}
.aid-community-exchange__compose.is-jump-target,
.aid-community-exchange__feed.is-jump-target{
  animation:aidCommunityTargetFlash .7s ease-out;
}
@keyframes aidCommunityTargetFlash{
  0%{box-shadow:0 0 0 0 rgba(118,221,217,.42)}
  100%{box-shadow:0 0 0 12px rgba(118,221,217,0)}
}
@media(prefers-reduced-motion:reduce){
  .aid-community-exchange__compose.is-jump-target,
  .aid-community-exchange__feed.is-jump-target{animation:none}
}


/* ---------------- v451.107 CTA cascade hardening ----------------
 * Loaded after page-specific CSS so homepage/page bundles cannot turn the
 * secondary CTA back into a plain text link.
 */
.aid-community-teaser .aid-community-teaser__actions > a.aid-community-action-primary,
.aid-community-teaser .aid-community-teaser__actions > a.aid-community-action-secondary,
.aid-community-page-hero .aid-community-page-hero__actions > a.aid-community-action-primary,
.aid-community-page-hero .aid-community-page-hero__actions > a.aid-community-action-secondary{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:9px !important;
  min-height:50px !important;
  padding:0 20px !important;
  border-radius:0 !important;
  text-decoration:none !important;
  font-size:13px !important;
  font-weight:800 !important;
  line-height:1.15 !important;
  letter-spacing:.025em !important;
  text-transform:uppercase !important;
  cursor:pointer !important;
}
.aid-community-teaser .aid-community-teaser__actions > a.aid-community-action-primary,
.aid-community-page-hero .aid-community-page-hero__actions > a.aid-community-action-primary{
  border:1px solid #2bc5c3 !important;
  background:linear-gradient(90deg,#1aaac3 0%,#8c69d7 52%,#ef168f 100%) !important;
  color:#fff !important;
  box-shadow:0 16px 34px rgba(14,157,186,.16) !important;
}
.aid-community-teaser .aid-community-teaser__actions > a.aid-community-action-secondary,
.aid-community-page-hero .aid-community-page-hero__actions > a.aid-community-action-secondary{
  border:1px solid rgba(118,221,217,.42) !important;
  background:rgba(13,37,55,.72) !important;
  color:#f7fbfc !important;
  box-shadow:none !important;
}
.aid-community-teaser .aid-community-teaser__actions > a.aid-community-action-secondary:hover,
.aid-community-teaser .aid-community-teaser__actions > a.aid-community-action-secondary:focus-visible,
.aid-community-page-hero .aid-community-page-hero__actions > a.aid-community-action-secondary:hover,
.aid-community-page-hero .aid-community-page-hero__actions > a.aid-community-action-secondary:focus-visible{
  border-color:#e2bf8b !important;
  background:rgba(226,191,139,.09) !important;
  color:#fff !important;
}
@media(max-width:767px){
  .aid-community-teaser .aid-community-teaser__actions > a.aid-community-action-primary,
  .aid-community-teaser .aid-community-teaser__actions > a.aid-community-action-secondary,
  .aid-community-page-hero .aid-community-page-hero__actions > a.aid-community-action-primary,
  .aid-community-page-hero .aid-community-page-hero__actions > a.aid-community-action-secondary{
    width:100% !important;
  }
}
