/* Shared A1 navigation and purchase flow. */
#main-nav .a1-menu-exam {
  border: 1px solid #d3bb88;
  border-radius: 5px;
  padding: .54rem .78rem;
  color: #3b3825;
  background: #f3e6c8;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 700;
}
#main-nav .a1-menu-exam:hover { background: #ead5a7; color: #3b3825; }
#main-nav .a1-menu-exam[aria-current="page"] {
  background: #e4c78b;
  color: #262e22;
  border-bottom-color: #a4884b;
}
#main-nav .a1-menu-exam::after { display: none; }
.site-header .a1-header-consult { white-space: nowrap; }
.mobile-contact:has(.a1-mobile-consult) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mobile-contact:has(.a1-mobile-consult) .a1-mobile-consult { font-weight: 700; }
.a1-exam .mobile-contact,
.a1-exam .site-header .header-contact { display: none; }

.a1-homepage .ntd-slideshow-home .slide-tab-number,
.a1-homepage .ntd-slideshow-home .slide-tab-title { display: none; }
.a1-homepage .ntd-slideshow-home .ntd-slide-tab {
  display: block;
  min-width: 41px;
  width: 41px;
  padding: 0;
}
.a1-homepage .ntd-slideshow-home .slide-tab-progress { top: calc(50% - 2px); bottom: auto; height: 3px; border-radius: 4px; }
.a1-homepage .property-hero-slideshow .property-hero-shell { min-height: clamp(530px, 43vw, 625px); }
.a1-homepage .property-hero-copy .a1-hero-contact { padding: 11px 0; text-decoration: underline; text-underline-offset: 5px; }
.a1-homepage .section-projects { background: #f0eee4; }
.a1-homepage .section-projects .section-heading .text-link { margin-left: 0; }
.a1-homepage .a1-home-guides { padding-bottom: 2.7rem; }
.a1-homepage .section-heading h2,
.a1-homepage .a1-home-contact h2 {
  font-family: Lora, Georgia, serif;
  font-weight: 400;
  color: #203b30;
}
.a1-guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.a1-guide-grid a {
  display: grid;
  align-content: start;
  gap: .65rem;
  color: #203d31;
  padding: clamp(15px, 2.6vw, 28px);
  border: 1px solid #dedbce;
  border-radius: 9px;
  background: #fffefa;
  text-decoration: none;
}
.a1-guide-grid a:hover { border-color: #a88755; background: #fffdf5; }
.a1-guide-grid strong { display: flex; justify-content: space-between; gap: .4rem; font-size: 1.06rem; }
.a1-guide-grid a > span { color: #4b5c54; font-size: .91rem; line-height: 1.55; }
.a1-guide-grid strong span { color: #765b2d; }
.a1-homepage .a1-exam-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(28%, 275px);
  align-items: center;
  gap: clamp(24px, 6vw, 100px);
  padding: clamp(24px, 4.6vw, 58px);
  margin-bottom: clamp(25px, 3.6vw, 46px);
  border: 1px solid #4b604b;
  border-radius: 14px;
  background: linear-gradient(130deg, #19382e, #2b4b3d);
  color: #fdf4df;
}
.a1-exam-feature h2 {
  font: 400 clamp(30px, 4.1vw, 55px)/1.14 Lora, Georgia, serif;
  text-wrap: balance;
  margin: .5rem 0 .85rem;
  color: #fff7e2;
}
.a1-exam-feature p:not(.eyebrow) { color: #f0ecdf; max-width: 59ch; margin-bottom: 1.2rem; }
.a1-exam-feature .eyebrow { color: #ebd29c; }
.a1-exam-feature img { width: 100%; aspect-ratio: 1.1; object-fit: cover; object-position: 50% 28%; border: 1px solid #f8d9a38c; border-radius: 9px; }
.a1-exam-feature .button { background: #eddbb1; color: #24372b; border-color: #dbc28c; border-radius: 4px; }
.a1-exam-feature .button:hover { background: #f5e5c4; color: #24372b; }
.a1-home-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-block: 26px 54px;
  padding: 16px 0 0;
  border-top: 1px solid #dfddcf;
}
.a1-home-contact h2 { font-size: clamp(25px, 3vw, 33px); margin: 0; }
.a1-home-contact p { margin: .5rem 0; color: #4b5f54; }

.a1-library .a1-topic-tile .a1-tile-body { justify-content: center; }
.a1-library .a1-topic-tile .a1-tile-body > p { margin: 0; }
.a1-library .a1-library-extra {
  margin-block: 0 56px;
  background: #fffdf8;
  border: 1px solid #dfddd0;
  border-radius: 10px;
  padding: 16px 20px;
  color: #28483b;
}
.a1-library-extra > summary { cursor: pointer; font-weight: 700; padding-block: 5px; }
.a1-library-extra .container { padding-inline: 0; }
.a1-library .master-entry { margin-block: 0 30px; }

.a1-project-consult {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  margin: .7rem 0 1rem;
}
.a1-project-visit {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #254c3a;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.a1-sales-widgets [hidden] { display: none !important; }
.a1-sales-panel { padding: clamp(16px, 4vw, 28px); }
.a1-sales-header { display: flex; align-items: start; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.a1-sales-header h2 { font: 400 clamp(25px, 5vw, 34px)/1.15 Lora, Georgia, serif; margin: 0; }
.a1-sales-header p { margin: .45rem 0 0; color: #4b5b52; font-size: .9rem; line-height: 1.5; }
.a1-sales-header button {
  border: 1px solid #c5c4b5;
  min-width: 42px;
  min-height: 42px;
  border-radius: 50%;
  background: #fffefa;
  color: #253a30;
  font-size: 25px;
  cursor: pointer;
}
.a1-sales-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.a1-sales-copy {
  cursor: pointer;
  min-height: 44px;
  padding: 7px 10px;
  border-radius: 5px;
  border: 1px solid #b4bead;
  color: #263b30;
  background: #fbfaf3;
  font: 700 .88rem/1.25 'Be Vietnam Pro', sans-serif;
}
.a1-sales-copy:hover { background: #edf0e1; }
.a1-sales-form { margin-top: 13px; }
.a1-sales-hint { font-size: .87rem; line-height: 1.5; margin: 0 0 10px; color: #3c5549; }
.a1-sales-form label { display: block; font-size: .85rem; font-weight: 650; }
.a1-sales-form label small { font-size: .72rem; color: #4e6056; font-weight: 400; }
.a1-sales-form select, .a1-sales-form input:not([type="checkbox"]), .a1-sales-form textarea {
  display: block;
  width: 100%;
  min-width: 0;
  margin: .28rem 0 .6rem;
  box-sizing: border-box;
  padding: .45rem .55rem;
  border: 1px solid #aeb9aa;
  border-radius: 5px;
  background: #fff;
  color: #243c31;
  font: inherit;
}
.a1-sales-form select { min-height: 42px; }
.a1-sales-form textarea { resize: vertical; min-height: 53px; line-height: 1.5; }
.a1-sales-related, .a1-sales-actions { display: flex; align-items: center; gap: 7px 13px; flex-wrap: wrap; }
.a1-sales-related { margin-bottom: .64rem; font-size: .82rem; }
.a1-sales-related a, .a1-sales-direct a { color: #284e3e; text-decoration: underline; text-underline-offset: 3px; }
.a1-sales-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 14px;
  cursor: pointer;
  border: 1px solid #244a38;
  border-radius: 5px;
  background: #244a38;
  color: #fffdf5;
  text-decoration: none;
  font: 700 .88rem/1.25 'Be Vietnam Pro', sans-serif;
}
.a1-sales-primary:hover { background: #193a2b; color: #fffdf5; }
.a1-sales-preview { margin-top: .7rem; padding: .65rem .75rem; background: #eef0e4; border-radius: 7px; }
.a1-sales-status { margin: .5rem 0 0; font-size: .8rem; color: #385244; }
.a1-sales-direct { padding-top: .65rem; margin-top: .75rem; border-top: 1px solid #e0dfd4; font-size: .88rem; }
.a1-sales-widgets :focus-visible { outline: 2px solid #926d27; outline-offset: 2px; }

@media (max-width: 900px) {
  #main-nav .a1-menu-exam { padding-inline: .64rem; }
  .a1-homepage .ntd-slideshow-home .ntd-slide-tab { width: 28px; min-width: 28px; }
}
@media (max-width: 640px) {
  .a1-homepage .property-hero-slideshow .property-hero-shell { min-height: 565px; padding-bottom: 205px; }
  .a1-homepage .ntd-slideshow-home .ntd-slide-tab { width: 21px; min-width: 21px; }
  .a1-guide-grid { grid-template-columns: 1fr; gap: .65rem; }
  .a1-homepage .a1-exam-feature { grid-template-columns: minmax(0, 1fr) 78px; gap: 14px; }
  .a1-exam-feature img { align-self: start; aspect-ratio: 1; }
  .a1-exam-feature .eyebrow { font-size: 10px; }
  .a1-library .a1-topic-tile { min-height: 116px; }
}
@media (max-width: 390px) {
  .a1-homepage .a1-exam-feature { grid-template-columns: minmax(0, 1fr); }
  .a1-exam-feature img { display: none; }
}

/* Equal cards with the original homepage design. */
.a1-homepage .section-projects .projects-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.3vw, 28px); }
.a1-homepage .section-projects .project-card:nth-child(n) { grid-column: auto; }
.a1-homepage .section-projects .project-card:nth-child(n) .project-cover > img { height: auto; aspect-ratio: 1.61; }

.a1-project-directory .project-card {
  background: #fffefa;
  border: 1px solid #e4e0d7;
  border-radius: 8px;
  box-shadow: 0 4px 15px #233b2d08;
  overflow: hidden;
}
.a1-project-directory .project-cover img { filter: saturate(.88); }
.a1-project-directory .project-cover .project-label {
  color: #213e34;
  background: #fbf8f0f2;
  box-shadow: none;
}
.a1-homepage .ntd-slideshow-home .ntd-slide-image { filter: saturate(.88) brightness(1.06); }
:is(.page-project,.page-topic,.page-article) .site-header { background: #172e27; }
:is(.page-project,.page-topic,.page-article) .main-nav a:is(:hover,[aria-current="page"]) { color: #e8cf9d; }
:is(.page-project,.page-topic,.page-article) .main-nav .a1-menu-exam:is(:hover,[aria-current="page"]) { color: #262e22; }
:is(.page-project,.page-topic,.page-article) .site-footer { background: #172e27; border-top-color: #b59765; }
.reference-project .ntd-slideshow-header .ntd-slide-image { filter: saturate(.9); }
.reference-project .ntd-slideshow-header .ntd-slide-media::after {
  background: linear-gradient(180deg, #14292532, #1225205c 46%, #10211dcc);
}
.a1-chat-launch {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 17px;
  color: #fffaf0;
  background: #23483a;
  border: 1px solid #bc9f6a;
  border-radius: 100px;
  box-shadow: 0 5px 19px #12281d32;
  font: 700 .86rem/1.2 'Be Vietnam Pro', system-ui, sans-serif;
  cursor: pointer;
}
.a1-chat-launch:hover { background: #18382d; }
.a1-widget { position: fixed; z-index: 74; bottom: max(24px, env(safe-area-inset-bottom)); max-width: 100%; }
.a1-widget-lead { left: max(20px, env(safe-area-inset-left)); }
.a1-widget-lead .a1-chat-launch { color: #264639; background: #fffdfa; }
.a1-widget-lead .a1-chat-launch:hover { background: #f5ebd9; }
.a1-widget-lead .a1-chat-launch svg { color: #866334; }
.a1-widget-chat { right: max(20px, env(safe-area-inset-right)); }
.a1-widget-chat .a1-chat-launch {
  position: relative;
  display: grid;
  place-items: center;
  inline-size: 54px;
  block-size: 54px;
  padding: 0;
}
.a1-chat-launch.is-inviting::after {
  position: absolute;
  inset: 2px 1px auto auto;
  inline-size: 12px;
  block-size: 12px;
  border-radius: 50%;
  border: 2px solid #23483a;
  background: #f0cd8b;
  content: "";
}
.a1-widget-panel {
  position: absolute;
  bottom: calc(100% + 8px);
  width: min(370px, calc(100vw - 40px));
  max-height: min(68dvh, 560px);
  overflow: auto;
  overscroll-behavior: contain;
  background: #fffdf8;
  color: #213b30;
  border: 1px solid #c8b48b;
  border-radius: 12px;
  box-shadow: 0 12px 36px #162a2233;
  color-scheme: light;
}
.a1-widget-chat .a1-widget-panel { right: 0; }
.a1-widget-lead .a1-widget-panel { left: 0; }
.a1-widget-panel .a1-sales-header h2 { font-size: 26px; }
.a1-widget-panel .a1-sales-header button { font-size: 24px; }
.a1-sales-form .a1-lead-consent { display: flex; align-items: flex-start; gap: 8px; margin: .75rem 0; font-weight: 400; }
.a1-sales-form .a1-lead-consent input { margin: .25em 0 0; flex: none; }
@media (max-width: 850px) {
  .a1-widget { bottom: calc(72px + env(safe-area-inset-bottom)); }
  .a1-widget-lead { left: max(10px, env(safe-area-inset-left)); }
  .a1-widget-chat { right: max(10px, env(safe-area-inset-right)); }
  .a1-widget .a1-widget-panel {
    position: fixed;
    left: max(10px, env(safe-area-inset-left));
    right: max(10px, env(safe-area-inset-right));
    bottom: calc(134px + env(safe-area-inset-bottom));
    width: auto;
    max-width: 390px;
    max-height: min(64dvh, 490px);
    margin-inline: auto;
  }
  .a1-widget-panel .a1-sales-header h2 { font-size: 24px; }
}
.a1-chat-launch svg { flex: none; color: #ead2a4; }
#a1-chat { padding: 14px; }
#a1-chat .a1-sales-header { align-items: center; margin-bottom: 9px; }
.a1-chat-log {
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 74px;
  max-height: min(41dvh, 325px);
  overflow-y: auto;
  padding: 1px 3px 10px 1px;
  overscroll-behavior: contain;
}
.a1-chat-line {
  display: grid;
  justify-self: start;
  gap: 5px;
  max-width: 94%;
  padding: 10px 12px;
  border-radius: 12px 12px 12px 4px;
  background: #edf1e9;
  color: #263e35;
  font-size: .9rem;
  overflow-wrap: anywhere;
}
.a1-chat-line p { white-space: pre-line; margin: 0; line-height: 1.55; }
.a1-chat-line a { color: #254b3c; font-size: .82rem; text-decoration: underline; }
.a1-chat-line.is-user { background: #f1e8d9; border-radius: 12px 12px 4px 12px; justify-self: end; }
.a1-chat-form { display: flex; gap: 7px; border-top: 1px solid #e5e0d4; padding-top: 8px; }
.a1-chat-form input {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid #aebbb0;
  border-radius: 18px;
  background: #fff;
  color: #263d35;
  font: inherit;
  font-size: 16px;
}
.a1-chat-form .a1-sales-primary { min-width: 44px; padding: 0; border-radius: 50%; }
.a1-chat-form .a1-sales-primary:disabled { opacity: .62; }
.a1-chat-mode { margin: .25rem 0 .5rem; color: #4c5f55; font-size: .76rem; line-height: 1.45; }
.a1-chat-next {
  justify-self: start;
  margin-top: 3px;
  min-height: 36px;
  padding: 4px 10px;
  border: 1px solid #a4b6a6;
  border-radius: 6px;
  background: #fffdf8;
  color: #274c3d;
  font: inherit;
  cursor: pointer;
}
@media (max-width: 900px) {
  .a1-homepage .section-projects .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body:has(.a1-chat-launch) .mobile-contact:has(.a1-mobile-consult) { background: #fffefa; border-top-color: #e5e1d8; }
  body:has(.a1-chat-launch) .mobile-contact:has(.a1-mobile-consult) a { color: #254a3d; }
  .a1-chat-launch { min-height: 44px; padding-inline: 12px; }
}
@media (max-width: 560px) {
  .a1-homepage .section-projects .projects-grid { grid-template-columns: minmax(0, 1fr); }
}
