/*! Ozone.css — Duell Plumbing & Heating
    Case Studies templates only.

    IMPORTANT: this file is the shared Ozone theme stylesheet, so it also
    loads on the blog. Every rule below is therefore scoped to markup that
    only the Case Studies templates emit:

      .tc-grid-tiles / .tc__grid-item   list tiles
      .tc-case-study                    details article
      .inner-banner                     banner block in both templates
      .edNews_categoryDropdown          category menu template
      .tc-list-outro                    closing copy under the list

    Do NOT add bare .edn_* / .eds_news_Ozone rules here — the blog feed uses
    that same markup and is styled entirely by the .eds_news_Ozone block in
    core.min.css. Anything unscoped will leak into it.

    Tokens below mirror core.min.css so this module matches the site theme. */
:root {
  /* Brand — pulled from core.min.css */
  --color-primary: #141414;         /* dark brand: bands, table headers (white text) */
  --color-accent: #e5a032;          /* gold accent: buttons, bullets, borders, links */
  --color-accent-dark: #9f6e1f;     /* gold, darkened for text/hover on white */
  --color-secondary: #e5a032;       /* alias of accent (legacy selectors) */
  --color-tertiary: #4b4b4b;        /* body/meta grey */
  --color-light-shade: #f5f5f5;
  --color-border: #e9e9e9;
  --color-dark-shade: #050505;
  --color-primary--rgb: 20, 20, 20;
  --color-accent--rgb: 229, 160, 50;
  --color-secondary--rgb: 229, 160, 50;
  --color-tertiary--rgb: 75, 75, 75;
  --color-light-shade--rgb: 245, 245, 245;
  --color-dark-shade--rgb: 5, 5, 5;
  /* Type — Montserrat for headings/UI, Open Sans for copy (core.min.css) */
  --font-headline: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --font-weight-normal: 400;
  --font-weight-bold: 700;
  --gap-base: 0.938rem;
  --gap-small: 0.438rem;
  --line-height-base: 1.5;
  --space-section: clamp(3rem, 6vw, 4.375rem); /* 70px — site section rhythm */
}

/* =====================================================================
   INNER BANNER — shared by the list and the details templates.
   Mirrors the site's inner pages: photo behind a 70% black title bar that
   bleeds off the left edge (the bleed comes from the :before in
   core.min.css). Prefixed with .eds_news_Ozone to outrank the
   .inner-banner / .page-title-text-middle-left rules there.
   ===================================================================== */
.eds_news_Ozone .inner-banner {
  position: relative;
  /* viewport break-out so the banner is edge-to-edge inside the DNN pane */
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  /* inner pages are a fixed 200px; grow instead of clipping long titles */
  height: auto;
  min-height: 200px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-dark-shade);
  margin-bottom: 0;
}

.eds_news_Ozone .inner-banner .banner-image {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.eds_news_Ozone .inner-banner .banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.eds_news_Ozone .inner-banner .container,
.eds_news_Ozone .inner-banner .container > .row {
  position: relative;
  z-index: 2;
  height: auto;
}

.eds_news_Ozone .inner-banner .page-title.page-title-text-middle-left {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  width: auto;
  max-width: 800px;
  background: rgba(0, 0, 0, 0.7);
  padding: 25px 2rem 25px 15px;
  box-shadow: 0 7px 15px rgba(0, 0, 0, 0.25);
}

.eds_news_Ozone .inner-banner .page-title.page-title-text-middle-left .page-title__text {
  display: block;
  margin: 0;
  font-family: var(--font-headline);
  font-weight: 700;
  text-transform: uppercase;
  /* inner pages run a flat 3.5rem; capped because article titles are long */
  font-size: clamp(1.5rem, 3.2vw, 2.75rem);
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 5px 10px rgba(0, 0, 0, 0.4);
}

@media screen and (max-width: 767px) {
  .eds_news_Ozone .inner-banner { min-height: 180px; }
  .eds_news_Ozone .inner-banner .page-title.page-title-text-middle-left {
    padding: 20px 1.25rem 20px 15px;
  }
}

/* =====================================================================
   CASE STUDY LIST — tile grid
   ===================================================================== */
.tc-grid-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-base);
  max-width: 1200px;
  margin-block: 3rem var(--space-section);
  margin-inline: auto;
}

/* Tablet: 2 columns */
@media screen and (max-width: 991px) {
  .tc-grid-tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile: single column */
@media screen and (max-width: 575px) {
  .tc-grid-tiles {
    grid-template-columns: 1fr;
  }
}

.tc-grid-tiles .tc__grid-item {
  margin-bottom: 0;
}

.tc__grid-item {
  text-align: left;
  list-style: none;
  overflow: hidden;
  background-color: #fff;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 1;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.tc__grid-item:hover {
  box-shadow: 0 7px 15px rgba(0, 0, 0, 0.2);
  transform: translateY(-3px);
}

/* Article stretches so the Read More buttons line up across tiles */
.eds_news_Ozone.eds_subCollection_news .tc__grid-item > .edn_article {
  position: relative;
  z-index: 2;
  overflow: visible;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tc__grid-item .edn_clearFix::after {
  display: table;
  content: "";
  clear: both;
  width: 100%;
}

.tc__item-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 1 auto;
  position: relative;
  z-index: 2;
}

/* --- Tile image. The anchor is a full-tile click target. --- */
.eds_news_Ozone.eds_subCollection_news .tc__grid-item .edn_mediaContainer {
  width: 100%;
  height: 15rem;
  background: var(--color-dark-shade);
  border-bottom: 5px solid var(--color-accent);
}

.eds_news_Ozone.eds_subCollection_news .tc__grid-item .edn_mediaContainer > a {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  text-indent: -99999px;
  outline: 0;
  -moz-outline-style: none;
  outline-style: none;
  background: 0 0;
}

.eds_news_Ozone.eds_subCollection_news .tc__grid-item .edn_mediaContainer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: inline-block;
  margin-bottom: 0;
}

/* Logo fallback when an article has no image — contain, don't crop */
.eds_news_Ozone.eds_subCollection_news .tc__grid-item .edn_mediaContainer.placeholder img {
  object-fit: contain;
  padding: 2rem;
}

/* --- Tile text --- */
.eds_news_Ozone.eds_subCollection_news .tc__grid-item .edn_articleTitle {
  margin-block: 5px;
  text-wrap: balance;
  /* font-size is set here as well as on the anchor — without it the h2 keeps
     the 1.75rem line box from core.min.css and the lines space out */
  font-family: var(--font-headline);
  font-size: clamp(1.05rem, 4vw, 1.25rem);
  font-weight: 700;
  line-height: 1.2;
}

.eds_news_Ozone.eds_subCollection_news .tc__grid-item .edn_articleTitle a {
  font-family: var(--font-headline);
  font-size: clamp(1.05rem, 4vw, 1.25rem);
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none !important;
}
.eds_news_Ozone.eds_subCollection_news .tc__grid-item .edn_articleTitle a:hover {
  color: var(--color-accent-dark);
}

.eds_news_Ozone.eds_subCollection_news .tc__grid-item .edn_articleSubTitle {
  font-family: var(--font-headline);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: 0.5rem;
}

/* Specificity note: core.min.css sets a negative bottom margin on
   .edn_articleSummary for the default templates — outrank it here. */
.eds_news_Ozone.eds_subCollection_news .tc__grid-item .edn_articleSummary {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-tertiary);
  text-align: left !important;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.eds_news_Ozone.eds_subCollection_news .tc__grid-item .edn_articleSummary p {
  font-size: 0.9375rem;
  line-height: 1.5;
  margin-bottom: 0;
}

/* Read More — same as .button.button--primary in core.min.css */
.eds_news_Ozone.eds_subCollection_news .tc__grid-item .edn_readMoreButtonWrapper {
  margin: 0;
  margin-top: auto;
}

.eds_news_Ozone.eds_subCollection_news .tc__grid-item .edn_readMore.edn_readMoreButton {
  font-family: var(--font-headline);
  font-size: 1.0625rem;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none !important;
  display: inline-block;
  padding: 12px 25px;
  border: none;
  background: var(--color-accent);
  color: var(--color-primary);
  transition: all 0.3s ease-in-out;
}
.eds_news_Ozone.eds_subCollection_news .tc__grid-item .edn_readMore.edn_readMoreButton:hover {
  background: var(--color-primary);
  color: var(--color-accent);
}

/* --- Edit/Publish/Approve actions on a tile --- */
.tc__grid-item .edn_adminActions {
  position: absolute;
  z-index: 300;
  top: 15px;
  left: 15px;
}
.eds_news_Ozone.eds_subCollection_news .tc__grid-item .admin_action::before,
.eds_news_Ozone.eds_subCollection_news .tc__grid-item .edn_adminActions > a::before {
  font-family: FontAwesome;
  display: inline-block;
  margin-right: 5px;
  font-size: 15px;
  opacity: 0.8;
}
.eds_news_Ozone.eds_subCollection_news .tc__grid-item .admin_action.edit,
.eds_news_Ozone.eds_subCollection_news .tc__grid-item .edn_adminActions > a.edit {
  background: var(--color-accent);
  color: var(--color-primary);
  font-family: var(--font-headline);
  font-weight: 700;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  padding: 7px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 100;
}
.eds_news_Ozone.eds_subCollection_news .tc__grid-item .admin_action.edit:hover,
.eds_news_Ozone.eds_subCollection_news .tc__grid-item .edn_adminActions > a.edit:hover {
  background: var(--color-primary);
  color: var(--color-accent);
}
.eds_news_Ozone.eds_subCollection_news .tc__grid-item .admin_action.edit::before,
.eds_news_Ozone.eds_subCollection_news .tc__grid-item .edn_adminActions > a.edit::before {
  content: "\f040";
}

/* =====================================================================
   Closing copy under the tile grid + buttons used inside the templates.
   core.min.css forces every link in .eds_news_Ozone to gold + underline,
   which would render a .button gold-on-gold — restore the site treatment.
   ===================================================================== */
.eds_news_Ozone.eds_subCollection_news .tc-list-outro .button,
.eds_news_Ozone.eds_subCollection_news .tc-case-study .button {
  font-family: var(--font-headline);
  text-decoration: none !important;
  transition: all 0.3s ease-in-out;
}
.eds_news_Ozone.eds_subCollection_news .tc-list-outro .button.button--primary,
.eds_news_Ozone.eds_subCollection_news .tc-case-study .button.button--primary {
  background: var(--color-accent);
  color: var(--color-primary);
}
.eds_news_Ozone.eds_subCollection_news .tc-list-outro .button.button--primary:hover,
.eds_news_Ozone.eds_subCollection_news .tc-case-study .button.button--primary:hover {
  background: var(--color-primary);
  color: var(--color-accent);
}
.eds_news_Ozone.eds_subCollection_news .tc-list-outro .button.button--secondary,
.eds_news_Ozone.eds_subCollection_news .tc-case-study .button.button--secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.eds_news_Ozone.eds_subCollection_news .tc-list-outro .button.button--secondary:hover,
.eds_news_Ozone.eds_subCollection_news .tc-case-study .button.button--secondary:hover {
  background: #fff;
  color: var(--color-primary);
}

/* Gravity gallery captions on a case study */
.tc-case-study .jg-caption,
.tc-case-study #ChameleonGallery {
  display: none !important;
}

/* =====================================================================
   CATEGORY DROPDOWN (TemplatedMenu CategoriesMenu — dropdown template)
   ===================================================================== */
.edNews_categoryDropdown {
  max-width: 315px;
  margin: 2rem auto;
}

.edNews_categoryDropdown .edn_category_menu_wrapper,
.edNews_categoryDropdown .edn_category_menu_wrapper ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* The toggle row (title + expand/collapse chevron) */
.edNews_categoryDropdown .node > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  background: var(--color-primary);
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.edNews_categoryDropdown .node > div:hover {
  background: var(--color-dark-shade);
}

.edNews_categoryDropdown .node.level_0 > div,
.edNews_categoryDropdown .node.level_1 > div,
.edNews_categoryDropdown .node.level_2 > div {
  background: #fff;
  padding: 0.25rem;
}
.edNews_categoryDropdown .edn_module_title {
  display: block;
  margin: 0;
  color: #fff;
  font-family: var(--font-headline);
  font-size: 1.0625rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
}

/* Chevron toggle — replace the text label with an icon */
.edNews_categoryDropdown .expand_collapse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}
.edNews_categoryDropdown .expand_collapse span {
  display: none;
}
.edNews_categoryDropdown .expand_collapse::after {
  content: "\f078"; /* chevron-down */
  /* the skin loads Font Awesome 5 Pro; FontAwesome kept as a fallback */
  font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free", FontAwesome;
  font-weight: 900;
  color: var(--color-accent);
  font-size: 0.85rem;
  line-height: 1;
  transition: transform 0.25s ease;
}
/* Rotate the chevron when the menu is open */
.edNews_categoryDropdown .node.opened > div .expand_collapse::after,
.edNews_categoryDropdown .node.active > div .expand_collapse::after {
  transform: rotate(180deg);
}

/* The expandable panel of category links */
.edNews_categoryDropdown .node > ul {
  margin-top: 0.4rem;
  padding: 0.4rem;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: 0 7px 15px rgba(0, 0, 0, 0.15);
  position: absolute;
  z-index: 10;
  width: 100%;
  max-width: 315px;
  /* Scroll long category lists instead of overflowing the page.
     !important is required because the EasyDNNnews expand/collapse
     uses a jQuery slide animation that writes inline overflow/height
     onto this <ul>, which would otherwise override these rules. */
  max-height: 300px !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  /* Slimmer, on-brand scrollbar */
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) transparent;
}
.edNews_categoryDropdown .node > ul::-webkit-scrollbar {
  width: 8px;
}
.edNews_categoryDropdown .node > ul::-webkit-scrollbar-track {
  background: transparent;
}
.edNews_categoryDropdown .node > ul::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border: 2px solid #fff;
}
.edNews_categoryDropdown .node > ul::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent-dark);
}

.edNews_categoryDropdown .node > ul .edn_rss,
.edNews_categoryDropdown .node > ul .edn_articlecount {
  display: none !important;
}

/* text-decoration is forced because core.min.css underlines every link
   inside .eds_news_Ozone when this markup sits in a news wrapper */
.edNews_categoryDropdown .expand_collapse,
.edNews_categoryDropdown .node > ul .edn_category {
  text-decoration: none !important;
}

.edNews_categoryDropdown .node > ul .edn_category {
  display: block;
  padding: 0.65rem 0.85rem;
  color: var(--color-tertiary);
  font-family: var(--font-headline);
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
  width: 100%;
}
.edNews_categoryDropdown .node > ul .edn_category:hover {
  background: var(--color-light-shade);
  color: var(--color-primary);
}
.edNews_categoryDropdown .node > ul .node.active .edn_category {
  background: var(--color-primary);
  color: #fff;
}

/* Category rows that contain sub-categories */
.edNews_categoryDropdown .hasChild > .edn_category {
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.edNews_categoryDropdown .hasChild > .edn_category::after {
  content: "\f105"; /* angle-right */
  font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free", FontAwesome;
  font-weight: 900;
  font-size: 0.85rem;
  color: var(--color-accent);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.edNews_categoryDropdown .hasChild > .edn_category:hover::after {
  transform: translateX(3px);
}

/* Indent nested sub-category lists under a hasChild node */
.edNews_categoryDropdown .hasChild + ul,
.edNews_categoryDropdown .hasChild ul {
  margin: 0.15rem 0 0.35rem;
  padding-left: 0.85rem;
  padding-block: 0.25rem;
  border-left: 2px solid var(--color-accent);
  position: relative;
  box-shadow: none;
  scrollbar-color: #fff transparent !important;
}

.edNews_categoryDropdown .edn_category_menu_wrapper {
  margin-top: 2rem;
}
/*! END OF Ozone.css */
.eds_news_Ozone.eds_subCollection_news .edn_mediaContainer > a {
  position: absolute;
  inset: 0px;
  z-index: 1;
  text-indent: -99999px;
  outline: 0px;
  background: 0px 0px;
}


.eds_news_Ozone.eds_subCollection_news .edn_article .edn_articleSummary{
  margin-bottom: 1.25rem !important;
}