/**
 * Style Guide page — ported from legacy D7 churchfinder theme.
 * Targets the .section-style-guide wrapper so it doesn't affect other pages.
 */

.section-style-guide {
  color: #666;
}

/* Typography overrides to match legacy D7 style-guide presentation.
 * !important is needed here because the biblemus theme.css and style.css
 * apply blanket h1..h6 color rules that otherwise override these. Scoped
 * to .section-style-guide so no bleed into other pages. */
.section-style-guide h1 {
  margin: 20px auto !important;
  padding-bottom: 20px !important;
  font-size: 32px !important;
  font-weight: 900 !important;
  color: #666 !important;
  line-height: normal !important;
  text-transform: none !important;
}

.section-style-guide h2 {
  font-size: 28px !important;
  font-weight: 900 !important;
  color: #0097db !important;
  line-height: normal !important;
  margin: 20px 0 !important;
}

.section-style-guide h3 {
  font-size: 24px !important;
  font-weight: bold !important;
  color: #7db500 !important;
  line-height: normal !important;
  text-transform: none !important;
  margin: 20px 0 !important;
}

.section-style-guide h4 {
  font-size: 22px !important;
  font-weight: 300 !important;
  color: #666 !important;
  line-height: normal !important;
  text-transform: none !important;
  margin: 20px 0 !important;
}

.section-style-guide h5 {
  color: #7db500 !important;
  font-size: 20px !important;
  font-weight: 300 !important;
  line-height: normal !important;
  text-transform: none !important;
  margin: 15px 0 !important;
}

.section-style-guide h6 {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #333 !important;
  margin: 10px 0 !important;
}

/* sub-header is an h5 but needs green uppercase bar, override h5 color. */
.section-style-guide h5.sub-header {
  color: #7db500 !important;
}

.section-style-guide p {
  font-size: 16px;
  font-weight: normal;
  color: #666;
  line-height: normal;
  margin-bottom: 20px;
}

/* Pattern block separator — one pattern per snippet section. */
.section-style-guide .pattern {
  margin-bottom: 40px;
}

/* Green underlined sub-header used to label each pattern. */
.section-style-guide .sub-header {
  font-weight: bold;
  padding: 10px 0;
  border-bottom: 5px solid #7db500;
  margin-bottom: 20px;
  color: #7db500;
  text-transform: uppercase;
}

/* Code snippet box. */
.section-style-guide pre {
  margin-top: 20px;
  padding: 20px;
  background: #fafafa;
  border: 1px solid #dddddd;
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* ---------- Legacy buttons ---------- */
.section-style-guide .btn-border-red,
.section-style-guide .btn-border-blue,
.section-style-guide .btn-border-green,
.section-style-guide .btn-block-red,
.section-style-guide .btn-block-blue,
.section-style-guide .btn-block-green,
.section-style-guide .btn-round-blue,
.section-style-guide .btn-round-green,
.section-style-guide .btn-round-red {
  display: inline-block;
  padding: 8px 15px;
  font-size: 18px;
  font-family: "Lato", Arial, sans-serif;
  font-weight: bold;
  text-align: center;
  text-transform: none;
  text-decoration: none;
  border: 0 none;
  transition: all 0.3s ease;
}

/* Border variants. */
.section-style-guide .btn-border-blue {
  color: #0097db;
  background: #ffffff;
  border: 1px solid #0097db;
}
.section-style-guide .btn-border-blue:hover,
.section-style-guide .btn-border-blue:focus {
  color: #ffffff;
  background: #0097db;
}

.section-style-guide .btn-border-green {
  color: #7db500;
  background: #ffffff;
  border: 1px solid #7db500;
}
.section-style-guide .btn-border-green:hover,
.section-style-guide .btn-border-green:focus {
  color: #ffffff;
  background: #7db500;
}

.section-style-guide .btn-border-red {
  color: #ffaa00;
  background: #ffffff;
  border: 1px solid #ffaa00;
}
.section-style-guide .btn-border-red:hover,
.section-style-guide .btn-border-red:focus {
  color: #ffffff;
  background: #ffaa00;
}

/* Block (solid) variants. */
.section-style-guide .btn-block-blue {
  color: #ffffff;
  background: #0097db;
}
.section-style-guide .btn-block-blue:hover,
.section-style-guide .btn-block-blue:focus {
  color: #ffffff;
  background: #036ec1;
}

.section-style-guide .btn-block-green {
  color: #ffffff;
  background: #7db500;
}
.section-style-guide .btn-block-green:hover,
.section-style-guide .btn-block-green:focus {
  color: #ffffff;
  background: #699800;
}

.section-style-guide .btn-block-red {
  color: #ffffff;
  background: #ffaa00;
}
.section-style-guide .btn-block-red:hover,
.section-style-guide .btn-block-red:focus {
  color: #ffffff;
  background: #ee8407;
}

/* Round variants — larger, uppercase, rounded corners. */
.section-style-guide .btn-round-blue,
.section-style-guide .btn-round-green,
.section-style-guide .btn-round-red {
  color: #ffffff;
  border-radius: 5px;
  padding: 12px 15px;
  font-size: 24px;
  text-transform: uppercase;
  background-clip: padding-box;
}
.section-style-guide .btn-round-blue {
  background: #0097db;
}
.section-style-guide .btn-round-blue:hover,
.section-style-guide .btn-round-blue:focus {
  background: #036ec1;
  color: #ffffff;
}
.section-style-guide .btn-round-green {
  background: #7db500;
}
.section-style-guide .btn-round-green:hover,
.section-style-guide .btn-round-green:focus {
  background: #699800;
  color: #ffffff;
}
.section-style-guide .btn-round-red {
  background: #ffaa00;
}
.section-style-guide .btn-round-red:hover,
.section-style-guide .btn-round-red:focus {
  background: #ee8407;
  color: #ffffff;
}

/* ---------- Form items ---------- */
.section-style-guide input[type="text"],
.section-style-guide input[type="password"],
.section-style-guide input[type="email"] {
  padding: 8px 12px;
  font-size: 14px;
  font-family: "Lato", Arial, sans-serif;
  border: 1px solid #dddddd;
  background: #ffffff;
  color: #333;
  height: auto;
  line-height: normal;
  box-shadow: none;
  border-radius: 0;
  max-width: 300px;
}

.section-style-guide .select-wrapper {
  position: relative;
  display: inline-block;
  max-width: 300px;
  border: 1px solid #dddddd;
  background: #ffffff;
}
.section-style-guide .select-wrapper select {
  padding: 8px 32px 8px 12px;
  font-size: 14px;
  font-family: "Lato", Arial, sans-serif;
  border: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  cursor: pointer;
}
.section-style-guide .select-wrapper:after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #666;
  pointer-events: none;
}

.section-style-guide .form-item label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
  color: #333;
}

/* ---------- Div utility classes ---------- */
.section-style-guide .block-border,
.section-style-guide .block-no-border {
  width: 100%;
  padding: 30px;
  margin-bottom: 20px;
  box-sizing: border-box;
}
.section-style-guide .block-border {
  border: 1px solid #dddddd;
}

.section-style-guide .form-header-outer-wrapper {
  margin-bottom: 20px;
  width: 100%;
  height: 90px;
  line-height: 90px;
  background: #fafafa;
  border-bottom: 1px solid #dddddd;
  clear: both;
}
.section-style-guide .form-header-inner-wrapper {
  width: 95%;
  max-width: 1080px;
  margin: 0 auto;
}
.section-style-guide .form-header-inner-wrapper h1 {
  text-transform: none;
  line-height: 90px;
  margin: 0 auto;
  padding: 0;
}

/* ---------- Legacy D7 profile / dashboard classes ---------- */

/* Two-column share-my-church / manager-dashboard layout. */
.church-profile-manager-dashboard {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 20px;
  margin: 20px 0;
}

.church-profile-manager-dashboard .manage-church-profile {
  display: block;
  margin-bottom: 10px;
  border: 1px solid #dddddd;
  text-align: left;
  box-sizing: border-box;
}

.church-profile-manager-dashboard .manage-church-profile.left-block {
  width: 24%;
  flex-basis: 24%;
  margin-bottom: 0;
  background: #fafafa;
  padding: 15px;
  text-align: center;
}

.church-profile-manager-dashboard .manage-church-profile.left-block img {
  max-width: 100%;
  height: auto;
}

.church-profile-manager-dashboard .manage-church-profile.right-block {
  width: 74.5%;
  flex-basis: 74.5%;
  margin-bottom: 0;
  padding: 15px;
}

.church-profile-manager-dashboard .manage-church-profile.right-block .top-text {
  color: #666;
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 15px;
}

/* "Write a Church Review" pill inside right-block. */
.church-profile-manager-dashboard .right-block .share-church__btn,
.church-profile-manager-dashboard .right-block .cpm-text.add-church {
  display: inline-block;
  padding: 10px 18px;
  font-size: 16px;
  font-family: "Lato", Arial, sans-serif;
  font-weight: bold;
  color: #ffffff;
  background: #0097db;
  text-decoration: none;
  text-transform: none;
  border: 0;
  border-radius: 3px;
  transition: background 0.3s ease;
}
.church-profile-manager-dashboard .right-block .share-church__btn:hover,
.church-profile-manager-dashboard .right-block .cpm-text.add-church:hover {
  background: #036ec1;
  color: #ffffff;
}

/* When the "left-block" contains a star-icon CTA instead of an image. */
.church-profile-manager-dashboard .manage-church-profile.left-block .cpm-text.church-review {
  display: block;
  padding: 40px 10px;
  font-size: 18px;
  color: #0097db;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .church-profile-manager-dashboard {
    padding: 10px;
  }
  .church-profile-manager-dashboard .manage-church-profile.left-block,
  .church-profile-manager-dashboard .manage-church-profile.right-block {
    width: 100%;
    flex-basis: 100%;
    margin-bottom: 10px;
  }
}

/* Section headers used in HTML snippets panel. */
.church-profile-third-title {
  margin: 30px auto;
}
.church-profile-third-title h3 {
  color: #7db500;
  font-size: 24px;
  font-weight: bold;
  text-transform: uppercase;
  margin: 0;
}

.church-profile-eight-header {
  margin: 20px 0;
}
.church-profile-eight-header h2 {
  color: #0097db;
  font-weight: 900;
  font-size: 28px;
  margin: 0;
}

.church-profile-four-ministries-phrase {
  margin-bottom: 40px;
  color: #666;
  font: italic bold 24px "PT Serif", Times, serif;
}

/* Icons list — plain bulleted list, icon + spacing + label (D7 style). */
.section-style-guide ul.icon-col-list,
.section-style-guide ul.icons__list {
  padding-left: 20px;
  margin: 15px 0 30px;
  list-style: disc;
}
.section-style-guide ul.icon-col-list li,
.section-style-guide ul.icons__list li {
  margin: 6px 0;
  padding: 0;
  background: none;
  border: 0;
  list-style: disc;
  line-height: 1.6;
}
.section-style-guide ul.icon-col-list li:before,
.section-style-guide ul.icons__list li:before {
  display: inline-block;
  margin-right: 10px;
  font-size: 22px;
  color: #666;
  vertical-align: middle;
}
.section-style-guide .icons__list--items {
  color: #666;
  vertical-align: middle;
}

/* Legacy navbar / dashboard icon classes — ported from D7 _navbar.scss.
 * Each :before maps to the same glyph variable used by the matching icon-*
 * class in icomoon.css, so the same font file supplies the glyph. */
.cf-signup-icon,
.cf-login-icon,
.cf-dashboard-icon,
.cf-profile-icon,
.cf-logout-icon,
a.cf-signup-icon,
a.cf-login-icon,
a.cf-dashboard-icon,
a.cf-profile-icon,
a.cf-logout-icon {
  position: relative;
  padding-left: 28px !important;
}
.cf-signup-icon:before,
.cf-login-icon:before,
.cf-dashboard-icon:before,
.cf-profile-icon:before,
.cf-logout-icon:before {
  font-family: 'churchfinder' !important;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  font-size: 20px;
  line-height: 1;
  speak: none;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.cf-signup-icon:before   { content: var(--icon-user-plus); }
.cf-login-icon:before    { content: var(--icon-lock); }
.cf-dashboard-icon:before { content: var(--icon-dashboard); }
.cf-profile-icon:before  { content: var(--icon-user); }
.cf-logout-icon:before   { content: var(--icon-sign-out); }

.cf-login-icon,
a.cf-login-icon {
  padding-left: 28px !important;
}

@media (max-width: 768px) {
  .section-style-guide h1 { font-size: 24px; }
  .section-style-guide h2 { font-size: 20px; }
  .section-style-guide h3 { font-size: 18px; }
  .section-style-guide .form-header-outer-wrapper {
    line-height: normal;
    height: auto;
  }
  .section-style-guide .form-header-inner-wrapper {
    height: 100%;
    padding: 15px 0;
  }
  .section-style-guide .form-header-inner-wrapper h1 {
    line-height: 32px;
  }
}
