/* AICITY mixed-color design pilot. Scoped to the participating templates only.
   Palette: navy headings, blue links, green brand accents, burnt-orange action CTAs. */
:root {
  --aicity-pilot-navy: #183348;
  --aicity-pilot-green: #16866a;
  --aicity-pilot-blue: #075eaa;
  --aicity-pilot-action: #b84a24;
  --aicity-pilot-action-hover: #973c1c;
  --aicity-pilot-action-tint: #fff4ed;
  --aicity-pilot-line: #d7e3ed;
}
/* Shared site header: keep the "Post" entry recognizable without overpowering navigation. */
.aicity-post-main > a {
  background-color: var(--aicity-pilot-action-tint) !important;
  border-color: #e5b19e !important;
  color: #963b1d !important;
}
/* Landing page: reading/search actions stay blue/navy/green; posting is orange. */
.aicity-top-nav-buttons a.orange { background: var(--aicity-pilot-navy) !important; }
.aicity-top-nav-buttons a.blue { background: var(--aicity-pilot-blue) !important; }
.aicity-top-nav-buttons a.green { background: var(--aicity-pilot-action) !important; }
.aicity-top-nav-buttons a.red { background: var(--aicity-pilot-green) !important; }
.aicity-top-nav-buttons a.gray { background: #445c6d !important; }
.aicity-top-ugc-head h2,
.aicity-top-owner-feed-head h2 { color: var(--aicity-pilot-navy) !important; }
.aicity-top-ugc-more a[href*="/review/post"],
.aicity-top-ugc-more a[href*="/event/post"],
a.btn.btn_main1 {
  background-color: var(--aicity-pilot-action) !important;
  border-color: var(--aicity-pilot-action) !important;
  color: #fff !important;
}
/* Shop detail: keep its existing navy hierarchy and green active navigation;
   make original review/photo actions follow the same action convention. */
.aicity-store-detail-page .store_detail_review_cta_btn,
.aicity-store-detail-page .store-ugc-participation__review-button,
.aicity-store-detail-page .aicity-retention-v3__ugc-actions .aicity-retention-v3__ugc-action--post:first-child {
  background-color: var(--aicity-pilot-action) !important;
  border-color: var(--aicity-pilot-action) !important;
  color: #fff !important;
}
.aicity-store-detail-page .store_detail_photo_cta_btn,
.aicity-store-detail-page .aicity-retention-v3__ugc-actions .aicity-retention-v3__ugc-action--post:not(:first-child) {
  background-color: var(--aicity-pilot-action-tint) !important;
  border-color: #d88a6b !important;
  color: #963b1d !important;
}
/* Regional landing pages: navy titles, green brand stroke, blue text links. */
.region-portal .region-hero { border-top-color: var(--aicity-pilot-green); }
.region-portal h1,
.region-portal h2 { color: var(--aicity-pilot-navy); }
.region-portal .region-post-title { color: var(--aicity-pilot-blue); }
.region-portal .region-button-primary {
  background-color: var(--aicity-pilot-action);
  border-color: var(--aicity-pilot-action);
  color: #fff;
}
.region-portal .region-button:not(.region-button-primary) {
  border-color: #a8c3d8;
  color: var(--aicity-pilot-blue);
}
/* Regional lists, details and forms: presentation only; do not alter controls,
   POST targets, moderation, tab behavior or content visibility. */
.region-subpage .rbb-board-head,
.region-subpage .rqa-hero,
.region-subpage .match-post-header,
.region-subpage .rbb-thread-header { border-top-color: var(--aicity-pilot-green); }
.region-subpage .rbb-board-title,
.region-subpage .rqa-hero h1,
.region-subpage .match-post-header h1,
.region-subpage .rbb-thread-header h1,
.region-subpage .rqa-question h1,
.region-subpage .rbb-box h2,
.region-subpage .rqa-box h2,
.region-subpage .rbb-section-head h2,
.region-subpage .rqa-section-head h2,
.region-subpage .match-panel h1,
.region-subpage .match-form-section-head h2 {
  color: var(--aicity-pilot-navy) !important;
}
.region-subpage a:not(.rbb-button):not(.rqa-button) { color: var(--aicity-pilot-blue); }
.region-subpage .rbb-board-actions .rbb-button,
.region-subpage .rqa-hero-actions .rqa-button,
.region-subpage .rbb-reply-form button[type="submit"],
.region-subpage-bbs .rbb-box > form > button[type="submit"],
.region-subpage-qa .rqa-box > form > button[type="submit"],
.region-subpage-match .match-submit-button {
  background-color: var(--aicity-pilot-action) !important;
  border-color: var(--aicity-pilot-action) !important;
  color: #fff !important;
}
.region-subpage .rbb-button-secondary,
.region-subpage .rqa-button-secondary {
  background: #fff !important;
  border-color: #9dbed6 !important;
  color: var(--aicity-pilot-blue) !important;
}
.region-subpage-match .match-form-section-head {
  background: #f3f8fb;
}
.region-subpage .aicity-ugc-circulation > h2 {
  color: var(--aicity-pilot-navy) !important;
}
@media (hover: hover) {
  .region-portal .region-button-primary:hover,
  .region-subpage .rbb-board-actions .rbb-button:hover,
  .region-subpage .rqa-hero-actions .rqa-button:hover,
  .region-subpage .match-submit-button:hover,
  .aicity-top-ugc-more a[href*="/review/post"]:hover,
  .aicity-top-ugc-more a[href*="/event/post"]:hover {
    background-color: var(--aicity-pilot-action-hover) !important;
    border-color: var(--aicity-pilot-action-hover) !important;
  }
}

/* Round 2: the home page has legacy bright-blue strips and several dark browsing
   actions. Keep the action orange, but give discovery a lighter visual weight. */
:root {
  --aicity-pilot-home-heading: #287366;
  --aicity-pilot-home-soft: #eff8f3;
  --aicity-pilot-home-ink: #255a4e;
}
.aicity-top-search-outer {
  background-color: #fbfdfc !important;
  border-bottom-color: #e3ede8 !important;
}
.aicity-top-search {
  border: 1px solid #e0ede6 !important;
  box-shadow: 0 4px 16px rgba(29, 85, 70, .09) !important;
}
.aicity-search-submit {
  background: #277b67 !important;
  color: #fff !important;
}
.aicity-top-nav-buttons a {
  border: 1px solid transparent;
}
.aicity-top-nav-buttons a.orange {
  background: #eff8f3 !important;
  color: #255d4e !important;
  border-color: #cee6d9 !important;
}
.aicity-top-nav-buttons a.blue {
  background: #edf6fa !important;
  color: #235e79 !important;
  border-color: #d0e5ee !important;
}
.aicity-top-nav-buttons a.red {
  background: #edf8f2 !important;
  color: #246854 !important;
  border-color: #cee8da !important;
}
.aicity-top-nav-buttons a.gray {
  background: #f4f7f8 !important;
  color: #425e6d !important;
  border-color: #dbe7eb !important;
}
.aicity-top-gps-btn {
  background: #e7f6ed !important;
  border: 1px solid #c7e7d6 !important;
  color: #236249 !important;
  box-shadow: 0 3px 12px rgba(26, 101, 72, .10) !important;
}
.aicity-top-ugc.alt { background: #f6fbf8 !important; }
.aicity-top-ugc-head h2,
.aicity-top-owner-feed-head h2,
.aicity-top-map-head h2 {
  color: var(--aicity-pilot-home-heading) !important;
}
.aicity-top-card-title {
  color: #286a73 !important;
}
.aicity-top-ugc-more a:not([href*="/review/post"]):not([href*="/event/post"]) {
  background: var(--aicity-pilot-home-soft) !important;
  border: 1px solid #b9ddcb !important;
  color: var(--aicity-pilot-home-ink) !important;
}
.aicity-top-ugc .sub_htitle_pt {
  background: linear-gradient(100deg, #edf8f3, #f7fbf8) !important;
  border-block: 1px solid #d9eade;
}
.aicity-top-ugc .sub_htitle_pt .lay_lqd,
.aicity-top-ugc .sub_htitle_pt h2,
.aicity-top-ugc .sub_htitle_pt h3 {
  color: var(--aicity-pilot-home-heading) !important;
}
.aicity-top-ugc .sub_htitle_pt p {
  color: #53756b !important;
}
.post_req .post_req_link {
  background: linear-gradient(110deg, #e6f5ed, #f5faf6) !important;
  border: 1px solid #d2e8db;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(39, 106, 74, .07);
}
.post_req .post_req_link p {
  color: #276656 !important;
  font-weight: 700;
  letter-spacing: .03em;
}
.post_req .post_req_link a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  max-width: 94%;
  min-height: 44px;
  padding: 10px 24px !important;
  border: 1px solid var(--aicity-pilot-action) !important;
  border-radius: 999px;
  background: var(--aicity-pilot-action) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 700;
  letter-spacing: .04em !important;
  text-decoration: none;
}
.aicity-top-map-lazy-placeholder .aicity-top-map-loading {
  color: #2c7466 !important;
  background: #f3faf6 !important;
}
/* Explicit focus remains visible against light discovery panels. */
.aicity-top-nav-buttons a:focus-visible,
.aicity-top-gps-btn:focus-visible,
.post_req .post_req_link a:focus-visible {
  outline: 3px solid #075eaa;
  outline-offset: 3px;
}
@media (hover: hover) {
  .aicity-top-nav-buttons a:hover,
  .aicity-top-gps-btn:hover {
    filter: brightness(.975);
  }
}

/* Round 3: legacy home 'information' header below the fold used a bright blue
   strip. Keep its text legible on the same pale green as new-shop headings. */
main .info > .sub_htitle_pt {
  background: linear-gradient(100deg, #edf8f3, #f7fbf8) !important;
  border-block: 1px solid #d9eade;
}
main .info > .sub_htitle_pt .lay_lqd,
main .info > .sub_htitle_pt h2,
main .info > .sub_htitle_pt h3,
main .info > .sub_htitle_pt p {
  color: #287366 !important;
}

/* Round 4: lively hybrid. Restore some of the original blue energy without
   returning to large saturated blue bands or competing orange action buttons. */
:root {
  --aicity-pilot-home-heading: #0878c9;
  --aicity-pilot-home-soft: #eff7fc;
}
.aicity-top-ugc-head h2,
.aicity-top-map-head h2 {
  color: #0878c9 !important;
}
.aicity-top-owner-feed-head h2 {
  color: #168066 !important;
}
.aicity-top-card-title {
  color: #076aa6 !important;
}
.aicity-top-nav-buttons a.orange {
  background: #ddf2e7 !important;
  color: #245f4c !important;
  border-color: #b5dec9 !important;
}
.aicity-top-nav-buttons a.blue {
  background: #0878c9 !important;
  color: #fff !important;
  border-color: #0878c9 !important;
}
.aicity-top-nav-buttons a.red {
  background: #fbebf3 !important;
  color: #843b67 !important;
  border-color: #eed1de !important;
}
.aicity-top-nav-buttons a.gray {
  background: #ddf3f5 !important;
  color: #166477 !important;
  border-color: #c2e5e7 !important;
}
.aicity-search-submit {
  background: #168066 !important;
}
.aicity-top-gps-btn {
  background: linear-gradient(110deg, #d5f3e5, #e0f3fd) !important;
  border-color: #a6ddd0 !important;
  color: #176459 !important;
}
.aicity-top-ugc .sub_htitle_pt {
  background: linear-gradient(105deg, #e5f3fd, #f0faf5) !important;
  border-block-color: #cce4f0 !important;
}
.aicity-top-ugc .sub_htitle_pt h2,
.aicity-top-ugc .sub_htitle_pt h3,
.aicity-top-ugc .sub_htitle_pt .lay_lqd {
  color: #0878c9 !important;
}
.post_req .post_req_link {
  background: linear-gradient(105deg, #e5f4fc, #eaf8ee) !important;
  border-color: #cbe4ed !important;
}
.post_req .post_req_link p {
  color: #216475 !important;
}
main .info > .sub_htitle_pt {
  background: linear-gradient(105deg, #e8f5fd, #f1faf6) !important;
  border-block-color: #d1e7ef !important;
}
main .info > .sub_htitle_pt h2,
main .info > .sub_htitle_pt h3,
main .info > .sub_htitle_pt .lay_lqd {
  color: #0878c9 !important;
}

/* Round 5: restore the original warm GPS action and complete the sixth top
   navigation slot. Keep the review action primary; photo posting is secondary. */
.aicity-top-gps-btn {
  background: linear-gradient(135deg, #ff9f1a, #ff7a00) !important;
  border: 0 !important;
  color: #3f2600 !important;
  box-shadow: 0 5px 14px rgba(235, 116, 0, .23) !important;
}
.aicity-top-nav-buttons a.photo {
  background: #fff0e8 !important;
  color: #983e1f !important;
  border-color: #eeb69d !important;
}
@media (max-width: 767px) {
  main:has(.aicity-top-search-outer) .recurit-count.mywidth {
    margin-bottom: 12px !important;
  }
}

/* Store posting hierarchy — v20261114h.
   Reviews remain the saturated primary action. Photos use a pale coral
   secondary action, including the photo-only tab and image-placeholder CTA.
   Browsing tabs, bookmarks, login options and other pages are unaffected. */
body.aicity-store-detail-page :is(
  .aicity-retention-v3__ugc-actions a.aicity-retention-v3__ugc-action--post[data-post-type="review"],
  a.store_detail_review_cta_btn,
  a.store-ugc-participation__review-button
) {
  background-color: #c7493c !important;
  border-color: #c7493c !important;
  color: #fff !important;
  min-height: 44px;
}
body.aicity-store-detail-page :is(
  .aicity-retention-v3__ugc-actions a.aicity-retention-v3__ugc-action--post[data-post-type="photo"],
  a.store_detail_photo_cta_btn,
  a.aicity-store-photo-contribute__link,
  a.aicity-store-photo-placeholder__link,
  .aicity-store-photo-page a.aicity-review-write-btn
) {
  background-color: #fff0ec !important;
  border-color: #e6b1a8 !important;
  color: #a9483c !important;
  min-height: 44px;
}
@media (hover: hover) {
  body.aicity-store-detail-page :is(
    .aicity-retention-v3__ugc-actions a.aicity-retention-v3__ugc-action--post[data-post-type="review"],
    a.store_detail_review_cta_btn,
    a.store-ugc-participation__review-button
  ):hover {
    background-color: #b53b34 !important;
    border-color: #b53b34 !important;
    color: #fff !important;
  }
  body.aicity-store-detail-page :is(
    .aicity-retention-v3__ugc-actions a.aicity-retention-v3__ugc-action--post[data-post-type="photo"],
    a.store_detail_photo_cta_btn,
    a.aicity-store-photo-contribute__link,
    a.aicity-store-photo-placeholder__link,
    .aicity-store-photo-page a.aicity-review-write-btn
  ):hover {
    background-color: #ffe5de !important;
    border-color: #dc9387 !important;
    color: #8d342b !important;
  }
}
