/* The masthead uses the same navy and gold as the site's primary navigation. */
#main-content {
  --af-hub-navy: #192f49;
  --af-hub-blue: #244967;
  --af-hub-text: #304458;
  --af-hub-muted: #45596c;
  --af-hub-gold: #bd9b5c;
  --af-hub-dark-gold: #785919;
  --af-hub-cream: #fbf5e7;
  --af-hub-pale: #edf3f8;
  --af-hub-line: #c5d2df;
  --af-hub-map-line: #547493;
  --af-hub-map-land: #b5cadf;
}

#main-content .af-atlas {
  --ink: var(--af-hub-navy);
  --paper: #fff;
  border-color: var(--af-hub-line);
  border-top: 3px solid var(--af-hub-gold);
}
body.single-freemasonry-location #main-content .et_pb_section:has(.afp-hero):has(.af-atlas) {
  background: #f5f7fa !important;
}
#page-container #main-content :is(.af-atlas h1,.af-atlas h2,.af-area-index h2) {color: var(--af-hub-navy) !important}
#main-content :is(.af-atlas-path,.af-atlas-caption,.af-area-index li span) {color: var(--af-hub-muted)}
#main-content :is(.af-atlas-description,.af-atlas-stats,.af-atlas-meeting,.af-guide-sources p,.afp-intro,.af-map-message) {color: var(--af-hub-text)}
#page-container #main-content :is(.af-geo-path,.af-atlas-actions,.af-atlas-cities,.af-guide-sources,.af-result-return,.afp-nav) a,
#page-container #main-content .afp-nav #af-save button {color: var(--af-hub-blue) !important}
#page-container #main-content .af-atlas-actions a:first-child,
#main-content .af-atlas-search button {
  color: #fff !important;
  background: var(--af-hub-navy);
}
#page-container #main-content .af-atlas-search + .af-atlas-actions a:first-child {background: transparent; color: var(--af-hub-blue) !important}
#page-container #main-content .af-atlas-actions a:first-child:hover,
#main-content .af-atlas-search button:hover {background: var(--af-hub-blue)}
#page-container #main-content .af-atlas-search + .af-atlas-actions a:first-child:hover {background: transparent}
#main-content .af-atlas-search {border-color: var(--af-hub-map-line)}
#main-content .af-atlas-search input {color: var(--af-hub-navy)}
#main-content :is(.af-guide-sources,.af-atlas-figure,.af-atlas-map,.af-map-preview) {
  background: var(--af-hub-pale);
  border-color: var(--af-hub-line);
  color: var(--af-hub-navy);
}
#main-content .af-atlas-caption {background: #e2ebf3}
#main-content .af-atlas-cities {border-color: var(--af-hub-line)}
#main-content .af-meeting-outline path {fill: var(--af-hub-map-land); stroke: var(--af-hub-map-line)}
#main-content .af-meeting-outline circle {fill: var(--af-hub-navy); stroke: #fff}
#main-content .af-meeting-outline text {fill: var(--af-hub-navy); stroke: var(--af-hub-pale)}
#main-content .af-map-preview button {border-color: var(--af-hub-dark-gold); color: var(--af-hub-navy); background: var(--af-hub-cream)}
#main-content .af-map-preview button:hover {background: #f4e4c2}
#main-content .af-atlas-marker {background: var(--af-hub-navy); box-shadow: 0 1px 5px #192f4944}
#main-content .af-atlas-map .leaflet-tooltip {background: #fff; color: var(--af-hub-navy); box-shadow: 0 1px 4px #192f4933}
#main-content .af-area-index {border-color: var(--af-hub-line); color: var(--af-hub-navy)}
#main-content .af-area-index input {border-color: var(--af-hub-map-line)}
#main-content .af-area-index summary {color: var(--af-hub-blue)}
#page-container #main-content .af-area-index li a {color: var(--af-hub-navy) !important; background: var(--af-hub-pale)}
#page-container #main-content .af-area-index li a:is(:hover,:focus-visible) {background: #dae6f1}
#main-content .af-region-coverage strong {color: #f5dfaa}
#page-container #main-content :is(.af-atlas,.af-area-index,.afp-nav) :focus-visible {outline-color: var(--af-hub-dark-gold)}
#main-content .af-region-coverage a:focus-visible {outline-color: #f5dfaa}

/* Geography profiles also contain the original editorial panels further down the page. */
#page-container #main-content :is(.af-v2-glance,.af-v2-visit) {
  background: var(--af-hub-pale) !important;
  border-color: var(--af-hub-line) !important;
}
#page-container #main-content .af-v2-glance {border-top-color: var(--af-hub-gold) !important}
#page-container #main-content .af-v2-glance dl > div {border-color: var(--af-hub-line)}
#page-container #main-content .af-v2-glance dt {color: var(--af-hub-muted)}
#page-container #main-content .af-v2-sources,
#page-container #main-content .af-v2-lodge + .af-v2-lodge {background: #f5f7fa !important}
#main-content :is(.af-v2-tl,.af-v2-topic,.af-v2-note,.af-v2-bib li,.af-v2-visit .af-v2-side a,.af-v2-cardset .afp-link) {border-color: var(--af-hub-line)}
#main-content .af-v2-visit .af-v2-side {border-color: var(--af-hub-gold)}
#main-content .af-v2-badges span {color: var(--af-hub-navy); background: var(--af-hub-cream); border-color: #d7c59b}
#main-content .af-v2-cardset .afp-tile {background: #fff; border-color: var(--af-hub-line); border-top-color: var(--af-hub-gold)}
#main-content .af-v2-rail button::before {background: var(--af-hub-line)}
#main-content .af-v2-rail button::after {border-color: var(--af-hub-map-line)}
#main-content .af-v2-rail button[aria-pressed=true] {background: var(--af-hub-pale); color: var(--af-hub-navy)}
#main-content .af-v2-rail button[aria-pressed=true]::after {background: var(--af-hub-dark-gold); border-color: var(--af-hub-dark-gold)}
#main-content .af-v2-event {background: var(--af-hub-cream); border-left-color: var(--af-hub-gold)}
#main-content .af-v2-tl:not(.is-wide) .afm-tl-node {border-left-color: var(--af-hub-line)}
#page-container #main-content :is(#afm-sm,#afm-cm).af-v2-map {background: var(--af-hub-pale); border-color: var(--af-hub-line)}
#page-container #main-content :is(.af-v2-map .afm-side,.af-v2-places a + a,.af-place-note) {border-color: var(--af-hub-line)}
#page-container #main-content .af-v2-map .afm-card.pha .afm-kick {color: #f5dfaa}
body.single-freemasonry-location #page-container #main-content .et_pb_text_inner a:not(.et_pb_button):not(.afp-official) {color: var(--af-hub-blue) !important}
body.single-freemasonry-location #page-container #main-content .et_pb_text_inner .afm-gl a:not(.et_pb_button):not(.afp-official) {color: #fff !important}

/* Parent hub indexes and their historical timelines. */
#main-content .af-standing {color: var(--af-hub-muted)}
#main-content .af-affiliation {color: var(--af-hub-blue)}
#main-content .af-us-choice {background: var(--af-hub-pale)}
#main-content .af-us-choice a[aria-current=true] {background: var(--af-hub-navy); color: #fff}
#main-content .af-track {scrollbar-color: var(--af-hub-map-line) var(--af-hub-pale)}
#main-content .af-track button:is(:hover,[aria-pressed=true]) {background: var(--af-hub-pale)}
#main-content .af-track button::before {background: var(--af-hub-line)}
#main-content .af-track i {border-color: var(--af-hub-map-line); background: #fff}
#main-content .af-track button[aria-pressed=true] i {background: var(--af-hub-dark-gold); border-color: var(--af-hub-dark-gold)}
#main-content .af-story {border-color: var(--af-hub-line); border-left-color: var(--af-hub-gold)}
#main-content :is(.af-era-nav button,.af-step button,.af-mile-share button) {border-color: var(--af-hub-map-line)}

/* Directory navigation and the controls that appear on result and city hubs. */
#main-content .af-directory a {color: var(--af-hub-blue) !important}
#main-content section[id$="-grand-lodge"] p a {color: var(--af-hub-blue) !important}
#main-content .af-directory .af-search {background: var(--af-hub-pale)}
#main-content .af-directory :is(input,select) {border-color: var(--af-hub-map-line)}
#main-content .af-directory :is(.af-search button,.af-route button) {color: #fff; border-color: var(--af-hub-navy); background: var(--af-hub-navy)}
#main-content :is(.af-directory .af-region,.af-directory .af-term-list a,.af-directory .af-card) {border-color: var(--af-hub-line)}
#main-content .af-directory .af-visit-card {border-left-color: var(--af-hub-gold)}
#main-content .af-directory .af-visit-actions a:first-child {color: #fff !important; background: var(--af-hub-navy)}
#main-content .af-directory .af-visit-actions a:first-child:hover {background: var(--af-hub-blue)}
#main-content .af-directory :is(.af-card-save button,.af-card-save a) {color: var(--af-hub-blue) !important; border-color: var(--af-hub-map-line)}

