/* Restore list styles stripped by Stack theme */
.text-formatted ul {
  padding-left: 1.5rem;
}

.text-formatted ul li {
  list-style-type: disc;
}

/* Normalize link line-height to prevent uneven paragraph spacing */
p a, span a, label a {
  line-height: inherit !important;
}

/* Standardize font weight for headers */
body h1, body h2, body h3, body h4, body h5, body h6{
  font-weight:600;
}

/* business services affinity partners */
#block-bookweb-content .view-business-services .accordion-header{height:75px; padding:20px;
  line-height:1.75em;
  font-size:.7em;}

#block-bookweb-content .view-business-services .business-partners-offer-details{
  font-weight:bold; margin-top:20px;
}

#block-bookweb-content .view-business-services  div.view-content.row > div > div.accordion-item{
  border-color:lightgray;
  border-width:1px 0px 0px 0px;
  margin-top:4px;
  border-radius:unset;
}

#block-bookweb-content .view-business-services div.business-partners-logo img {float:right;margin:2em;}
.page-view-business-services .view-display-id-block_1 button{
  line-height:1em;
  padding:0px;
  margin:0px;
}

.view-business-services button div.business-partners-logo-tn img{
  max-height:40px;
  width:auto;
}
.view-business-services button div.business-partners-logo-tn {
  width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width:200px;
}

.view-business-services div div.business-partners-logo img {
  float:right;
  margin:30px;
  border:1px solid silver;
}

#block-bookweb-views-block-business-services-block-1 .view-content.row div{
    float: left;
    width: unset;
}

.page-view-business-services .accordion-header {
    scroll-margin-top: 85px;
}

/* resource pages */
.page-view-resources .views-field-field-marketing-category {
  color:#8e351d;
}
.page-view-resources input.btn-primary:hover {
  background-color:#2f487a;
  border-color: /* your color here */;
}
.page-view-resources #edit-submit-resources {
  margin:1.7em;
}

/* Resource index - hide access level indicator for authenticated users */
.page-view-resources.user-logged-in .views-field-field-access-level-1 {
  display: none;
}

/* Resource index - access level indicator - all displays */
.page-view-resources .views-field-field-access-level-1 {
  float: left;
  margin-top: 0;
  font-size: 2em;
}

.page-view-resources .views-field.views-field-field-access-level-1  span {
  margin-right:5px;
}

/* Resource index - access level indicator - Marketing display only */
.page-view-resources .view-display-id-page_5 .views-field-field-access-level-1 {
  float: right;
  margin-top: -.5em;
  padding: 5px;
}

/* Resource index - access level indicator - Membership display */
.page-view-resources .view-display-id-page_4 .views-field-field-access-level-1 {
  padding: 5px;
}

.page-view-resources .views-field-title{
  font-weight:700;
  line-height:1.9em;
  clear:both;
  font-size:18px;
}

.page-view-resources .views-field-title a{
  font-weight:700;
}

.page-view-resources .views-field-field-thumbnail img{
  border:1px silver solid;
}

/* Resource index - float track detail next to level detail */
.page-node-type-resource div.field.field--name-field-education-level{
 float:left;
 margin-right:20px;
}

/* site-wide font size baseline */
body .content {
  font-size: 1.2em;
  line-height: 1.4;
  font-weight: 500;
}

/* Cap external link URL display length */
.page-node-type-resource .paragraph--type--external-link .resource-paragraph__action a {
  display: inline-block;
  max-width: 18ch;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
}

/* Marketing Resources grid thumbnail sizing */
.page-view-resources .view-display-id-page_5 .views-field-field-thumbnail img {
  object-fit: contain;
  height: auto;
  margin-top: 40px;
}

/* Marketing Resources - add space between roes */
.page-view-resources  .views-row {
  margin-bottom: 30px;
}

/* Add breathing room above and below main content region */
.main-container {
  padding-top: 50px;
  padding-bottom: 50px;
}


/* Education Level display - Track term inline after title */
.page-view-resources .view-display-id-page_2 .views-field-title {
  display: inline;
    clear: none;
}
.page-view-resources .view-display-id-page_2 .views-field-field-education-track a,
.page-view-resources .view-display-id-page_3 .views-field-field-education-level a,
.page-view-resources .view-display-id-page_1 .views-field-field-education-level a,
.page-view-resources .view-display-id-page_1 .views-field-field-education-track a{
  color: #923921;
  margin-left: 20px;
  font-weight:700;
}
.page-view-resources .views-field-field-summary {
  clear: both;
  display: block;
  margin-top: 0.5em;
}


/* Calendar display */
#block-bookweb-views-block-calender-event-registration-block-1 span{
    font-weight:bold;
}

#block-bookweb-views-block-calender-event-registration-block-1  a{
  color: #ffffff;
  font-weight:bold;
}
#block-bookweb-views-block-calender-event-registration-block-1 .btn{
  margin-bottom:25px;
}

/* BW Layout & Style System */

.bw-dark {
  position: relative;
  background: linear-gradient(135deg, #2b3350, #2f487a);
  border-radius: 5px;
  padding: 1.5rem;
  color: white;
  overflow: hidden;
  float: left;
  margin: 0 1.5rem 1.5rem 0;
}
.bw-dark a,
.bw-dark strong {
  color: white;
}
.bw-dark a:hover,
.bw-dark strong {
  color: #e3ddd5
}

.bw-light {
  position: relative;
  background: linear-gradient(135deg, #e3ddd5, #f2efec);
    border-radius: 5px;
  padding: 1.5rem;
  color: #2b3350;
  overflow: hidden;
  float: left;
  margin: 0 1.5rem 1.5rem 0;
}
.bw-light a,
.bw-light strong {
  color: #2b3350;
}

.bw-no-fill {
  position: relative;
  border-radius: 5px;
  padding-top: 1.5rem;
  float: left;
  margin: 0 1.5rem 1.5rem 0;
}

.bw-no-fill-outline {
  position: relative;
  border-radius: 5px;
  border-style: solid;
  border-color: #e3ddd5;
  border-width: 1px;
  padding: 1.5rem;
  float: left;
  margin: 0 1.5rem 1.5rem 0;
}

/* Width modifiers */
.bw-w25  { width: calc(25% - 1.5rem); }
.bw-w33  { width: calc(33.333% - 1.5rem); }
.bw-w50  { width: calc(50% - 1.5rem); }
.bw-w100 { width: 100%; float: none; }

/* .bw-row makes its bw-wNN children flex items (equal height); overrides their default float. */

.bw-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px; /* replaces float gutters; tune to taste */
}
.bw-row > .bw-w33 {
  float: none;
  /* three across, accounting for the two gaps between them */
  flex: 0 0 calc((95% - 45px) / 3);
}

.bw-row > .bw-w50 {
  float: none;
  /* two across, one gap between them */
  flex: 0 0 calc((95% - 25px) / 2);
}

.bw-row > .bw-w25 {
  float: none;
  /* four across, three gaps between them */
  flex: 0 0 calc((95% - 65px) / 4);
}

@media (max-width: 500px) {
     .bw-row { flex-direction: column; }
     .bw-row > .bw-w33,
     .bw-row > .bw-w50,
     .bw-row > .bw-w25 { flex-basis: 100%; }
   }

.bw-dark h1, .bw-dark h2, .bw-dark h3, .bw-dark h4, .bw-dark h5, .bw-dark h6{
  color:white
}

/* Float modifiers */
.bw-float-right {
  float: right;
  margin: 0 0 1.5rem 1.5rem;
}
.bw-centered {
  float: none;
  margin-left: auto;
  margin-right: auto;
}

/* Clearing */
.bw-clear     { clear: both; }
.bw-first-col { clear: left; }
.bw-last-col  { clear: right; }

/* Icon watermarks - shared properties */
.bw-icon-addr-book::before,
.bw-icon-approved-window::before,
.bw-icon-audio::before,
.bw-icon-environmental::before,
.bw-icon-money-2::before,
.bw-icon-bell::before,
.bw-icon-facebook-2::before,
.bw-icon-monitor-5::before,
.bw-icon-book::before,
.bw-icon-film-strip::before,
.bw-icon-movie::before,
.bw-icon-bookmark::before,
.bw-icon-flash-2::before,
.bw-icon-newspaper::before,
.bw-icon-books::before,
.bw-icon-gear::before,
.bw-icon-open-book::before,
.bw-icon-box-open::before,
.bw-icon-gift-box::before,
.bw-icon-paper-plane::before,
.bw-icon-calendar-4::before,
.bw-icon-headphones::before,
.bw-icon-pencil::before,
.bw-icon-camera-2::before,
.bw-icon-heart::before,
.bw-icon-photo::before,
.bw-icon-check::before,
.bw-icon-hipster-headphones::before,
.bw-icon-present::before,
.bw-icon-clock::before,
.bw-icon-home::before,
.bw-icon-shop::before,
.bw-icon-coffee-togo::before,
.bw-icon-laptop::before,
.bw-icon-shop-2::before,
.bw-icon-danger::before,
.bw-icon-library::before,
.bw-icon-speach-bubble::before,
.bw-icon-data-download::before,
.bw-icon-mail::before,
.bw-icon-spot::before,
.bw-icon-dollar::before,
.bw-icon-map-marker::before,
.bw-icon-tee-mug::before,
.bw-icon-envelope::before,
.bw-icon-megaphone::before,
.bw-icon-thunder::before,
.bw-icon-microphone-3::before {
  font-family: "iconsmind";
  position: absolute;
  top: 0.2em;
  right: 0.3em;
  font-size: 5em;
  font-weight: 800;
  color: inherit;
  opacity: 0.15;
  line-height: 1;
}

/* Icon watermarks - individual content values */
.bw-icon-addr-book::before         { content: "\e60c"; }
.bw-icon-approved-window::before   { content: "\e631"; }
.bw-icon-audio::before             { content: "\e675"; }
.bw-icon-environmental::before     { content: "\e861"; }
.bw-icon-money-2::before           { content: "\eac6"; }
.bw-icon-bell::before              { content: "\e6ac"; }
.bw-icon-facebook-2::before        { content: "\e87e"; }
.bw-icon-monitor-5::before         { content: "\eacd"; }
.bw-icon-book::before              { content: "\e6d4"; }
.bw-icon-film-strip::before        { content: "\e8bb"; }
.bw-icon-movie::before             { content: "\eae0"; }
.bw-icon-bookmark::before          { content: "\e6d5"; }
.bw-icon-flash-2::before           { content: "\e8df"; }
.bw-icon-newspaper::before         { content: "\eaff"; }
.bw-icon-books::before             { content: "\e6d7"; }
.bw-icon-gear::before              { content: "\e944"; }
.bw-icon-open-book::before         { content: "\eb24"; }
.bw-icon-box-open::before          { content: "\e6e7"; }
.bw-icon-gift-box::before          { content: "\e963"; }
.bw-icon-paper-plane::before       { content: "\eb3b"; }
.bw-icon-calendar-4::before        { content: "\e70b"; }
.bw-icon-headphones::before        { content: "\e99d"; }
.bw-icon-pencil::before            { content: "\eb4f"; }
.bw-icon-camera-2::before          { content: "\e70f"; }
.bw-icon-heart::before             { content: "\e9a0"; }
.bw-icon-photo::before             { content: "\eb65"; }
.bw-icon-check::before             { content: "\e73e"; }
.bw-icon-hipster-headphones::before { content: "\e9af"; }
.bw-icon-present::before           { content: "\eba2"; }
.bw-icon-clock::before             { content: "\e771"; }
.bw-icon-home::before              { content: "\e9bd"; }
.bw-icon-shop::before              { content: "\ec59"; }
.bw-icon-coffee-togo::before       { content: "\e797"; }
.bw-icon-laptop::before            { content: "\ea17"; }
.bw-icon-shop-2::before            { content: "\ec56"; }
.bw-icon-danger::before            { content: "\e7db"; }
.bw-icon-library::before           { content: "\ea3c"; }
.bw-icon-speach-bubble::before     { content: "\ec97"; }
.bw-icon-data-download::before     { content: "\e7e4"; }
.bw-icon-mail::before              { content: "\ea8d"; }
.bw-icon-spot::before              { content: "\ecc0"; }
.bw-icon-dollar::before            { content: "\e81f"; }
.bw-icon-map-marker::before        { content: "\ea98"; }
.bw-icon-tee-mug::before           { content: "\ed25"; }
.bw-icon-envelope::before          { content: "\e85e"; }
.bw-icon-megaphone::before         { content: "\eaac"; }
.bw-icon-thunder::before           { content: "\ed43"; }
.bw-icon-microphone-3::before      { content: "\eab7"; }

/* Hero image container */
.bw-hero {
  width: 100%;
  clear: both;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 300px;
  border-radius: 5px;
  margin-bottom: 30px;
}

@media (max-width: 500px) {
    .bw-hero {
        background-size: 180%;
        min-height: unset !important;
        height: 150px;
    }
}

@media (min-width: 501px) and (max-width: 1024px) {
    .bw-hero {
        background-size: cover;
        background-position: center center;
        min-height: unset !important;
        height: 28vw;
    }
}

/* Icon heading styles */
h2.icon-heading, h3.icon-heading {
  font-family: unset;
}
h2.icon-heading::before, h3.icon-heading::before {
  font-family: "iconsmind";
  display: inline-block;
  position: static;
  font-size: 0.75em;
  opacity: 1;
  text-align: center;
  border-radius: 50%;
  background: #2f487a;
  color: #fff;
  margin-right: 0.4em;
  vertical-align: middle;
  border: 2px solid #2b3350;
  font-weight: 900;
  padding: 0.4em;
  top: auto;
  right: auto;
}

/* BW Layout - narrow columns stack below 700px */
@media (max-width: 700px) {
  .bw-w25,
  .bw-w33 {
    float: none;
    width: 100%;
    margin: 0 0 1.5rem 0;
  }
}

/* BW Layout - mobile stack below 500px */
@media (max-width: 500px) {
  .bw-dark,
  .bw-light,
  .bw-no-fill,
  .bw-no-fill-outline,
  .bw-w25,
  .bw-w33,
  .bw-w50 {
    float: none;
    width: 100%;
    margin: 0 0 1.5rem 0;
  }
  .page-view-business-services .views-row .accordion-button {
  height: 80px;
  }
}

/* site logo */
.bar .logo img.logo.logo-dark{
  max-height:4em !important;
  height:200px;
padding:0px 0px 10px 0px;
  margin:0px;
}

/* membership comparison chart checkmark */
.bw-check {
  font-weight: bold;
  font-size: 2.1em;
  color:#d24823;
}

/* adjusts link destinations to avoid being hidden under sticky menu */
a[name] {
  display: block;
  position: relative;
  top: -80px; /* negative of header height */
  visibility: hidden;
}

/* defines img height:auto to address CKEditors automatic inclusion of height spec */
.field--name-body img,
.ck-content img {
  height: auto;
}

/* styling for left column nav menus */
aside[role="complementary"] .nav {
  display: block;
}

aside[role="complementary"] a.nav-link {
  display: block;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  border-radius: 0.375rem;
  border: 1px solid #2f487a;
  background-color: #2f487a;
  color: #fff;
  margin-bottom: 0.5rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

aside[role="complementary"] a.nav-link:hover {
  background-color: #0055a3;
  border-color: #0055a3;
  color: #fff;
}

/* styling for indies introduce pages */
.view-indies-introduce .views-field-field-book-cover-image,
#block-bookweb-views-block-indies-introduce-block-1 .views-field-field-book-cover-image{
  float:left;
  margin-left: -80px;
}

.view-indies-introduce li,
#block-bookweb-views-block-indies-introduce-block-1 li{
  margin-left: 80px !important;
  padding-bottom:20px;
}

.view-indies-introduce .views-field-field-terms li,
#block-bookweb-views-block-indies-introduce-block-1 .views-field-field-terms li{
  margin:0px 0px 0px 1em !important;
  list-style:disc;
  line-height:1em;
}

.view-indies-introduce div.views-field.views-field-field-terms,
#block-bookweb-views-block-indies-introduce-block-1 div.views-field.views-field-field-terms{
  margin:20px 10px;
  background-color:#ede9e4;
  padding:10px;
}
.view-indies-introduce .views-field-field-ii-blurbs,
#block-bookweb-views-block-indies-introduce-block-1 .views-field-field-ii-blurbs{
  line-height:1.5em;
  margin-top:5px;
}

.paragraph--type--ii-blurb {
  margin-top:5px;
}

a:focus-visible, button:focus-visible, button.dropdown__trigger:focus-visible, .admin-toolbar__expand-button:focus-visible {
  outline: 3px solid #d24823 !important;
  outline-offset: 2px;
}

#block-bookweb-views-block-indies-introduce-block-1-2 div.views-field.views-field-title,
.view-indies-introduce div.views-field.views-field-title  {
  font-weight:800;
  font-style:italic;
}
#block-bookweb-views-block-indies-introduce-block-1-2 ul,
.view-indies-introduce ul{
  line-height:unset;
}

#block-bookweb-views-block-indies-introduce-block-1-2 li,
.view-indies-introduce .item-list ul li{
  margin-bottom:3em;
}


/* btw index page styling */
.view-duplicate-of-taxonomy-term article div.inline__links nav,
.view-btw-index article div.inline__links nav{
  justify-content:unset;
}

.view-duplicate-of-taxonomy-term article div.inline__links span,
.view-btw-index article div.inline__links span{
  padding-left:unset;
}

.view-duplicate-of-taxonomy-term .article-teaser__category .field--items,
.view-btw-index .article-teaser__category .field--items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25em;
}

.view-duplicate-of-taxonomy-term .article-teaser__category .field--item:not(:last-child)::after,
.view-btw-index .article-teaser__category .field--item:not(:last-child)::after {
  content: " |";
}

.view-duplicate-of-taxonomy-term div.article-teaser__content  h3,
.view-btw-index div.article-teaser__content  h3{
  line-height:1.25;
  margin-top:22px;
}

/* btw article styling */
.page-node-type-article .field--name-title.btw-article-title{
  font-size:2em;
  line-height:1.25em;
  font-weight:bold;
  padding-top:10px;
}

.page-node-type-article .node-submitted{
  margin-bottom:1.5em;
}

/* --- Home hero --- */

.path-frontpage section.region-wrapper-highlighted{
  padding-top:0px;
  padding-bottom:0px;
}
.path-frontpage #main-container{
  padding-top:0px;
}

.bw-hero-home {
  background-image: url("../images/homepage-hero.jpg");
  background-image: image-set(
    url("../images/homepage-hero.webp") type("image/webp"),
    url("../images/homepage-hero.jpg") type("image/jpeg")
  );
  min-height: 540px;
  background-size: cover;
  background-position: center;
  padding: 8rem 0 0;
}

.bw-hero-inner {
  max-width: 520px;                   /* keeps text clear of the photos (~51% across) */
  margin: 0;                          /* was 0 auto */
  text-align: left;                   /* was center */
  position: relative;
}

.bw-hero-home > .container {
  max-width: 1320px !important;
  margin-inline: auto;
}

.bw-hero-heading {
  font-family: Merriweather, Georgia, serif;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  margin: 0 0 2rem;
}

.bw-hero-actions {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;        /* was center */
  gap: 1rem;
}

.bw-hero-heading .bw-emphasis {
  background-image: url("../images/text-emphasis.png");
  background-repeat: no-repeat;
  background-position: 0 100%;        /* bottom-left of the word */
  background-size: 144px 9px;         /* the PNG's native size ≈ width of "Thrive" */
  padding-bottom: 14px;              /* gap between text and stroke */
}

/* Decorative floating books */
.bw-hero-book {
  position: absolute;
  width: 70px;
  height: auto;
}

.bw-hero-book-1 {
  top: -2.5rem;
  left: 10%;
}

.bw-hero-book-2 {
  bottom: -4rem;
  right: 10%;
}

.bw-hero-actions .btn {
  white-space: nowrap;
  margin: 0 !important;
}

.bw-hero-home {
  height:auto;
}

/* Hero actions: swap by login state */
.bw-hero-actions-auth {
  display: none;
}
body.user-logged-in .bw-hero-actions-anon {
  display: none;
}
body.user-logged-in .bw-hero-actions-auth {
  display: block;
}

/* Home page icon grid */
.path-frontpage .bw-w25 {
  text-align:center;
}

.path-frontpage #main-container > div > div > article > div.content > div > div.bw-w25:nth-child(7) > img,
.path-frontpage #main-container > div > div > article > div.content > div > div.bw-w25:nth-child(8) > img,
.path-frontpage #main-container > div > div > article > div.content > div > div.bw-w25:nth-child(9) > img,
.path-frontpage #main-container > div > div > article > div.content > div > div.bw-w25:nth-child(10) > img{
  padding-top:55px;
}

.path-frontpage #main-container > div > div > article > div.content > div > div.bw-w25:nth-child(10){
  margin-bottom:130px;
}


.path-frontpage .bw-w25 a{
  color:#8e351d;
  font-weight:700;
}

.path-frontpage .content{
  padding-top:40px;
}

.path-frontpage #main-container > div > div > article > div.content > div > div.bw-w50.bw-no-fill.bw-last-col > div:nth-child(1){
  font-size:1.6em;
  padding-bottom:1em;
}

.path-frontpage #main-container > div > div > article > div.content > div > div.bw-w50.bw-no-fill.bw-last-col > div:nth-child(2){
  width:75%;
  padding-bottom:1em;
}

.path-frontpage #main-container > div > div > article > div.content > div > div.bw-w50.bw-no-fill.bw-last-col{
  padding-bottom:240px;
}

/* Mobile: tighten padding, hide books so they don't collide with text */
@media (max-width: 500px) {
  .bw-hero-home {
    padding: 4rem 1rem;
  }
  .bw-hero-heading {
    font-size: 1.75rem;
  }
  .bw-hero-book {
    display: none;
  }
}

/* CiviCRM admin pages */
.main-container.container:has(#crm-container),
.main-container.container:has(.crm-container){
  max-width:none;
  width:100%;
}

body:has(#crm-container) .nav-container,
body:has(#crm-container) .header-wrapper,
body:has(#crm-container) .title-wrapper,
body:has(#crm-container) .bookweb-footer,
body:has(.crm-container) .nav-container,
body:has(.crm-container) .header-wrapper,
body:has(.crm-container) .title-wrapper,
body:has(.crm-container) .bookweb-footer{
  display:none;
}

h4.label:not([class*="bg--"]) {
  position: static;
  display: block;
  top: auto;
  right: auto;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
  line-height: inherit;
  text-transform: none;
  color: inherit;
  background: none;
}

/* ---------------------------------------------------------------
   CiviCRM overrides — neutralize Stack global form rules
   Scoped to CiviCRM pages via body.path-civicrm + #crm-container
   --------------------------------------------------------------- */

.path-civicrm #crm-container input:not([class*='col-']),
.path-civicrm #crm-container select:not([class*='col-']),
.path-civicrm #crm-container .input-select:not([class*='col-']),
.path-civicrm #crm-container textarea:not([class*='col-']),
.path-civicrm #crm-container button[type="submit"]:not([class*='col-']) {
  width: auto;
}

.path-civicrm #crm-container button,
.path-civicrm #crm-container input[type="submit"] {
  height: auto;
}

/* Stacks (the AI chatbot, not the theme, Stack) edits */
.stacksinterface #intro-text > p{font-size:1.4em;}

.stacksinterface #chat-wrapper {
  padding:0px;
}

.stacksinterface #bottom-wrapper{
  padding:0px 15% 50px;
}
.stacksinterface  #intro-text > div{
  float:left;
  padding:0px 10px 0px 10%;
  margin:0px;
}
.stacksinterface  #intro-text > div img{
  max-height:200px;
}
.stacksinterface div#intro-text{
  padding:0px 20%;
  font-weight:700;
}

.stacksinterface #intro-text > p:nth-child(2){
  font-size:2em;
}



/* ============================================================
   CiviCRM / Stack theme conflict overrides

   Scope note: rules here use the .crm-container CLASS, not the
   #crm-container ID used by the older CiviCRM section above. The
   class travels with AJAX jQuery-UI dialogs, which append outside
   #crm-container and so escape ID-scoped rules. Prefer .crm-container
   for new fixes. (Older section pending migration to class scope.)
   ============================================================ */

/* Restore scrolling in CiviCRM jQuery-UI dialogs.
   Bootstrap's .modal-dialog sets pointer-events:none (expecting a
   .modal-content child to re-enable it); CiviCRM's dialog has no such
   child, which kills mouse-wheel and scrollbar interaction. */

.ui-dialog-content.modal-dialog {
  pointer-events: auto;
}

/* Stack's .label badge component collides with CiviCRM's td.label
   form cells. Restore normal table-cell label behavior.
   Two selectors: #crm-container covers the main CiviCRM screens;
   .crm-container (class) covers AJAX jQuery-UI dialogs, which append
   outside #crm-container and so escape the ID-scoped rule. */
.path-civicrm #crm-container td.label,
.crm-container td.label {
  display: table-cell;
  position: static;
  top: auto;
  right: auto;
  z-index: auto;
  height: auto;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
  color: inherit;
  text-align: right;
  padding: 4px 8px 4px 4px;
  border-radius: 0;
}

/* Stack's input[type] rule strips native appearance from ALL inputs,
   turning CiviCRM radios/checkboxes into tiny rounded boxes.
   Restore native rendering for these two input types only. */
.crm-container input[type="radio"],
.crm-container input[type="checkbox"] {
  -webkit-appearance: auto;
  appearance: auto;
}


/* Stack's `input, select { height: 2.78em }` forces a fixed height on
   CiviCRM's text inputs and selects, cramping them. Let them size
   naturally. Radios/checkboxes handled separately above. */
.crm-container input:not([type="radio"]):not([type="checkbox"]),
.crm-container select,
.crm-container textarea {
  height: auto;
}

/* CiviCRM select2 triggers (single crm-form-select2 + multi
   crm-form-multiselect, incl. chain-select State/County) render too
   narrow: select2 stamps a tiny inline width. Widen container + inner
   multi-select choices list. */
.crm-container .crm-select2 {
  min-width: 15em;
  max-width: 100%;
}
.crm-container .select2-container-multi .select2-choices {
  min-width: 15em;
}

/* select2 dropdown panels (single + multi) render at a stamped narrow
   width; widen so options aren't clipped or overflowing. */
.select2-drop.crm-container,
.select2-drop-multi.crm-container {
  min-width: 20em;
}


/* CiviCRM menubar quick-search radios — Stack theme inflates
   these into text-input-sized boxes. Reset to native radios. */
#civicrm-menu .crm-quickSearchField input[type="radio"] {
  width: auto;
  height: auto;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  -webkit-appearance: radio;
  appearance: radio;
}

/* CiviCRM "Use Saved Field Mapping" Select2 renders at a
   collapsed ~23px width from a mis-timed measurement. Let it
   size to content. Scoped to this one field by ID. */
.page-civicrm #s2id_mapping {
  width: auto !important;
}

/* CiviCRM My Scheduled Activities overdue items */
.page-civicrm table tr.status-overdue.crm-report td {
    color: red !important;
}

/* Marketing Resource page and index page styles */
html:has(link[rel="canonical"][href*="/marketing/"]) .page-node-type-resource {
  & .field--name-field-marketing-category,
  & .field--name-field-summary {
    display: none;
  }
}
html:has(link[rel="canonical"][href*="/marketing/"]) {
  & .views-field-field-thumbnail img {
    display: block;
    width: 100%;
    max-width: 424px;
    aspect-ratio: 424 / 303;
    height: auto;
    object-fit: contain;
  }

  & .views-field-field-summary .field-content {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
  }

  & .views-field-field-summary .field-content :is(h1, h2, h3, h4, h5, h6) {
  display: inline;
  font: inherit;
  margin: 0;
  }
}
html:has(link[rel="canonical"][href*="/marketing/"]) {
  & .views-view-responsive-grid {
    @media (max-width: 1024px) {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    @media (max-width: 500px) {
      grid-template-columns: minmax(0, 1fr);
    }
  }
}
/* CiviCRM Dashboard */
#civicrm-dashboard .crm-inactive-dashlet h3,
#civicrm-dashboard .crm-dashlet-header h3{
  color:#fff;
}

#civicrm-dashboard .crm-inactive-dashlet a,
#civicrm-dashboard .crm-dashlet-header a{
  color:silver;
}

/* bookseller profile*/
.page-node-577754 div.webform-type-checkbox{
  float:left;
  margin-right:1em;
  width:20%;
}

/* provisional membership application */
.page-node-16353 div.webform-type-checkbox{
  float:left;
  margin-right:1em;
  width:20%;
}

/* new bookstore membership application */
.page-node-15784 div.webform-type-checkbox{
  float:left;
  margin-right:1em;
  width:20%;
}

/* business services width for mobile */
@media (max-width: 991px) {
  .view-business-services button div.business-partners-logo-tn {
  width: auto;
  min-width: auto;
 }
  html:has(body.page-view-business-services) {
  scroll-padding-top: 70px;
 }
}

/* css for inl noms form*/
.webform-submission-webform-32861-form #inlinstructions{
  float:right;
  max-width:400px;
  margin:20px;
  background-color:#e4e1df;
  padding:20px;
  border-radius:15px;
}
.webform-submission-webform-32861-form ul li{
  list-style:disc;
  margin-left:20px
}

.webform-submission-webform-32861-form div.form-textarea-wrapper,
.webform-submission-webform-32861-form div.webform-type-textfield,
.webform-submission-webform-32861-form div.webform-type-email{
  max-width:50%;
}
.webform-submission-webform-32861-form #edit-fieldset-book-1-information {
  clear: right;
}
/* end inl noms form*/
