/* Public-site headings: when a heading has a highlighted part (the template's <span class="mil-thin">), the HIGHLIGHT is the
 * bold one and the rest of the heading is light. The template had it the other way round (a medium heading with a hairline
 * highlight), which made the key words the weakest ones. Headings without a highlighted part and paragraphs that are
 * entirely thin (the muted taglines) are not touched. Loaded by app/site.py on every public page, because the live pages and
 * the live css/style.css are not this repository's build and are never replaced. */
:is(h1, h2, h3, h4, h5, h6, .mil-h1, .mil-h2, .mil-h3, .mil-h4, .mil-h5, .mil-h6, .mil-h12):has(.mil-thin) {
  font-weight: 300;
}
:is(h1, h2, h3, h4, h5, h6, .mil-h1, .mil-h2, .mil-h3, .mil-h4, .mil-h5, .mil-h6, .mil-h12):has(.mil-thin) .mil-thin {
  font-weight: 600;
}

/* Quote buttons (2026-11): the box under the four service cards on the home page, and the two buttons on /services.
 * Here, not in css/style.css, for the same reason as the headings above. */
.mil-services-quote {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  padding: 40px 24px;
  border: solid 1px rgba(255, 255, 255, 0.1);
  border-top: 0;
}
.mil-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px 30px;
}
@media screen and (max-width: 992px) {
  .mil-services-quote {
    min-height: 0;
    border: solid 1px rgba(255, 255, 255, 0.1);
  }
}

/* Temporary dotbaz block on the home page (marked <!-- dotbaz-promo:start/end -->; tools/remove_dotbaz_promo.py takes the block out). */
.mil-dotbaz-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
}
.mil-dotbaz-card img {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
}
@media screen and (max-width: 992px) {
  .mil-dotbaz-card {
    justify-content: flex-start;
    padding: 0;
  }
  .mil-dotbaz-card img {
    max-width: 180px;
  }
}
.mil-dotbaz-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 30px;
}

/* 2026-11-07 updates. Here, not in css/style.css, because the live css/style.css is not this repository's file. */

/* (1) Phones and tablets (<= 1200 px): the top-left logo is the full horizontal logo, like on the desktop - not the small square one.
 * The template shows the "mobile" (white) version there. */
@media screen and (max-width: 1200px) {
  .mil-frame-top .mil-logo .mil-logo-compact { display: none; }
  .mil-frame-top .mil-logo .mil-logo-desktop { display: none; }
  .mil-frame-top .mil-logo .mil-logo-mobile,
  .mil-frame.mil-frame-invert .mil-frame-top .mil-logo .mil-logo-mobile,
  .mil-frame-top .mil-logo .mil-logo-full { display: inline-block; width: 168px; height: auto; }
}

/* (2) Desktop: the service cards always show their text and price button; the hover only grows the button a little. */
@media screen and (min-width: 993px) {
  .mil-services-grid .mil-service-card-sm p { opacity: 1; transform: none; display: block; overflow: visible; -webkit-line-clamp: unset; line-clamp: unset; }
  .mil-services-grid .mil-service-card-sm .mil-button {
    transform: scale(1);
    filter: none;
    opacity: 1;
    transition: transform 0.3s cubic-bezier(0, 0, 0.3642, 1), background-color 0.3s;
  }
  .mil-services-grid .mil-service-card-sm:hover .mil-button { transform: scale(1.06); }
}

/* (3) The long quote sentence on the buttons: it may wrap on a narrow screen. */
.mil-services-quote .mil-button,
.mil-cta-buttons .mil-button { max-width: 100%; white-space: normal; text-align: center; height: auto; min-height: 70px; padding-top: 12px; padding-bottom: 12px; }
.mil-cta-buttons .mil-button strong { font-weight: 600; }

/* (5) The dotbaz logo between "New from Bayan Alzahabi" and the headline - on phones only (the card is for the desktop). */
.mil-dotbaz-phone-logo { display: none; }
@media screen and (max-width: 992px) {
  .mil-dotbaz-phone-logo { display: block; width: 180px; max-width: 70%; height: auto; margin: 0 0 30px; }
  .mil-dotbaz-promo .mil-dotbaz-card { display: none; }
}

/* (4) Google rating box in Customer Voices */
.mil-google-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 40px;
  padding: 12px 22px;
  border: solid 1px rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  background: #fff;
  color: rgba(0, 0, 0, 0.8);
  font-size: 14px;
  line-height: 1.3;
  text-decoration: none;
}
.mil-google-rating:hover { border-color: rgb(230, 74, 63); }
.mil-google-rating .mil-gr-g { width: 22px; height: 22px; flex: none; }
.mil-google-rating .mil-gr-score { font-weight: 600; font-size: 18px; color: #000; }
.mil-google-rating .mil-gr-stars { color: #fbbc04; letter-spacing: 2px; font-size: 18px; }
.mil-google-rating .mil-gr-text { color: rgba(0, 0, 0, 0.6); }

/* 2026-11-07 (UI polish) */
.mil-cta-buttons .mil-button strong { font-weight: inherit; }
@media screen and (max-width: 767px) {
  .mil-services-quote .mil-button,
  .mil-cta-buttons .mil-button { min-height: 56px; }
}

/* Unique Ideas cards, tablet and desktop: as tall as the tallest, headings take the same room, price buttons on one line at the bottom, same width. */
@media screen and (min-width: 768px) {
  .mil-services-grid .mil-services-grid-item { display: flex; }
  .mil-services-grid .mil-service-card-sm { display: flex; flex-direction: column; width: 100%; }
  .mil-services-grid .mil-service-card-sm h5 { min-height: 2.6em; }
  .mil-services-grid .mil-service-card-sm p { flex: 1 1 auto; }
  .mil-services-grid .mil-service-card-sm .mil-button { align-self: flex-start; margin-top: auto; }
}
.mil-services-grid .mil-service-card-sm .mil-button { width: 100%; max-width: 230px; justify-content: space-between; }

/* The live main.js adds a "Share this article" bar twice and a reading-progress line to the first `#blog .col-lg-8` of any page; on the
 * blog list and category pages that column is the category menu. Those pages have the category list; article pages have none. */
body:has(#blog .mil-category-list) .baz-article-share,
body:has(#blog .mil-category-list) .baz-reading-progress { display: none !important; }

/* No copying from the public pages (owner, 2026-11-07): text cannot be selected, so it cannot be copied, and images cannot be dragged out.
 * Form fields stay selectable so people can type and edit. This is a deterrent, not a lock (view-source, screenshots and reader modes bypass it). */
html, body, body * {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
input, textarea, select, [contenteditable="true"], [contenteditable=""] {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}
img, a { -webkit-user-drag: none; user-drag: none; }
