@import url("https://use.typekit.net/kgg1olx.css");
@import url('https://fonts.googleapis.com/css2?family=Stack+Sans+Headline:wght@200..700&display=swap');

/* ---- Organization Variables ---- */

:root {
  --org-brand: #00a3a7;
  --org-light-1: #07b9bd;
  --org-light-2: #9b3ffe;
  --org-light-3: #0cdde2;
  --org-dark-1: #00566a;
  --org-dark-2: #064452;
  --org-dark-3: #042932;
  --org-brand-alt: #0cf3f9;
  --org-gray: #aeb3c1;

  --org-font: "taurunum", sans-serif;
  --org-body-font: "Stack Sans Headline", sans-serif;

  --org-shadow:
    0 2px 4px rgba(0, 0, 0, 0.15),
    0 4px 12px rgba(0, 0, 0, 0.15);

  --org-transition: 0.25s ease;
}

/* ---- Website Baselines ---- */

body {
  background: var(--org-dark-4);
  font-family: var(--org-body-font);
}

#design-wrapper {
  position: relative;
}

#design-wrapper > main {
  background: var(--color-white);
}

/* ---- Content Baselines ---- */

.dii-content-list {
  gap: 1.5rem;
}

.dii-content-header h2,
.dii-content-title,
.dii-content-title a,
.dii-content-continue a::before {
  font-family: var(--org-font);
  letter-spacing: -0.04em;
}

.dii-content.dii-content-header {
  border-bottom: 0;
  border-left: 5px solid var(--org-brand-alt);
  padding: 0 0.5rem;
}

.dii-content.dii-content-header h2 {
  color: var(--org-brand);
  font-size: 30px;
  font-weight: 400;
}

.dii-content .dii-content-title,
.dii-content .dii-content-title a {
  color: #000;
  font-size: 36px;
  font-weight: 400;
}

.dii-content-title-photo:has(img) {
  overflow: hidden;
  border: 1px solid var(--color-white);
  border-radius: 0.5rem;
  box-shadow: var(--org-shadow);
}

.dii-content .dii-content-story {
  border-top: 0;
}

/* Article body text, including links and formatted text. */
.dii-content-story,
.dii-content-story :where(p, li, a, span, strong, em, b, i, blockquote, h1, h2, h3, h4, h5, h6, td, th),
.article-story,
.article-story :where(p, li, a, span, strong, em, b, i, blockquote, h2, h3, h4, h5, h6, td, th) {
  color: #000;
  font-family: var(--org-body-font);
  font-weight: 400;
}

.dii-content .dii-content-story p:last-child {
  margin-bottom: 0;
}

.dii-content-continue a::before {
  color: var(--org-brand);
}

/* ---- Row Styles ---- */

/* Row Without Margins */

.row-no-margin {
  padding: 0;
  box-shadow: none;
}

.row-no-margin .cms-row__column {
  padding: 0;
}

.row-no-margin .dii-rotator-wrapper {
  border: 0;
  border-radius: 0;
}

/* Remove the CMS overlay layer from the main rotator photo. */
.row-no-margin .dii-rotator-wrapper article::before {
  content: none;
  display: none;
}

/* Main Rotator — Full-Width Article Block with Left-Aligned Title */

.row-no-margin .article-wrapper {
  position: absolute;
  z-index: 2;
  inset: 0;
}

/* Inset the title and button to match the design; retain mobile spacing below. */
.row-no-margin .article-inner {
  position: absolute;
  top: auto;
  right: auto;
  bottom: 4rem;
  left: 0;

  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 1.5rem 6.25%;

  text-align: center;
  transform: none;
}

.row-no-margin .article-inner h3 {
  margin: 0 0 0.75rem;
  padding: 0;

  color: #fff;
  font-family: var(--org-font);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}

.row-no-margin .article-inner h3 {
  color: var(--org-brand-alt) ;
}

/* Article title. The rotator renders it as H2; H1 is retained as a fallback. */
.row-no-margin .article-inner h2,
.row-no-margin .article-story h1 {
  margin: 0 0 1rem;
  padding: 0 ;

  color: #fff;
  font-family: var(--org-font);
  font-size: 60px;
  font-weight: 400;
  line-height: 1.05;
  text-align: left;
}

/* Reset the CMS title-link padding and left-align the link text. */
.row-no-margin .article-inner h2 > a,
.row-no-margin .article-inner h2 > a:visited {
  display: block;
  margin: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-align: left;
  text-decoration: none;
}

/* Style the visible link inside the article story. */
.row-no-margin .article-story p > a,
.row-no-margin .article-story p > a:visited {
  display: inline-block;
  margin: 0.75rem auto 0;
  padding: 0.5rem 0.85rem;

  background-color: var(--org-brand-alt);
  color: #000;
  font-family: var(--org-body-font);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;

  transition:
    background-color var(--org-transition),
    color var(--org-transition);
}

.row-no-margin .article-story p > a:hover,
.row-no-margin .article-story p > a:focus-visible {
  background-color: var(--org-brand);
  color: #000;
}

.row-no-margin .article-story p > a:focus-visible,
.row-no-margin .article-more:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* Display the CMS article-more anchor as a Learn More button. */
.row-no-margin .article-more,
.row-no-margin .article-more:visited {
  position: static;
  float: none;
  clear: both;
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 0.75rem 0 0;
  padding: 0.65rem 1rem;
  border-radius: 0.25rem;
  background-color: var(--org-brand);
  color: #fff;
  font-family: var(--org-font);
  font-size: 0;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition:
    background-color var(--org-transition),
    color var(--org-transition);
}

/* Button hover and keyboard focus. */
.row-no-margin .article-more:hover,
.row-no-margin .article-more:focus-visible {
  background-color: var(--org-dark-3);
  color: #fff;
}

.row-no-margin .article-more::after {
  content: "READ MORE";
  color: inherit;
  font-size: 20px;
}

/* Keep the rotator navigation along the bottom edge. */
.row-no-margin .dii-rotator-nav {
  top: auto;
  bottom: 0;
}

/* Row Programs */

.row-programs .dii-content.dii-content-header {
  width: 100%;
  border: 0;
  padding: 0;
  text-align: center;
}

.row-programs .dii-content.dii-content-header h2 {
  display: block;
  margin-right: auto;
  margin-left: auto;
  padding-left: 0;
  border-left: none;
  color: #000;
  font-size: 50px;
  text-align: center;
}

.row-programs .dii-content-image {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
}

/* Text overlay */

.row-programs .dii-content-title {
  position: absolute;
  z-index: 2;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  margin: 0;
  padding: 1rem;

  border-radius: 0.5rem;
  background: transparent;

  color: var(--color-white);
  font-family: var(--org-font);
  font-size: 50px;
  font-weight: 400;
  line-height: 1.15;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);

  pointer-events: none;
  transition:
    background var(--org-transition),
    color var(--org-transition);
}

/* Match linked program titles to the overlay title size. */

.row-programs .dii-content-title a {
  font-size: 50px;
  font-weight: 400;
}

/* Overlay hover */

.row-programs .dii-content-image:hover .dii-content-title {
  background: rgba(6, 68, 82, 0.65);
  color: #fff;
}

.row-programs .dii-content-image:hover .dii-content-title a {
  color: #fff;
}

/* Image container */

.row-programs .dii-content-title-photo {
  overflow: hidden;
  height: auto;
  border: 0;
  border-radius: 0.5rem;
  box-shadow: none;
}

/* Program images */

.row-programs .dii-content-title-photo img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: all 0.35s ease;
}

/* Image hover */

.row-programs .dii-content-image:hover .dii-content-title-photo img {
  transform: scale(1.05);
  opacity: 1;
}

/* Preserve clickable image links beneath the title */

.row-programs .dii-content-image > a:not(.dii-hide) {
  display: block;
}

/* Row Sponsors */

.row-sponsors {
  background: transparent;
}

.row-sponsors .dii-content-list {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;

  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.row-sponsors .dii-content-list > .dii-content-header {
  flex: 0 0 100%;
  width: 100%;
  border: 0;
  padding: 0;
  text-align: center;
}

.row-sponsors .dii-content.dii-content-header h2 {
  display: inline-block;
  color: #000;
  font-size: 36px;
  padding-left: 0;
  border-left: 0;
  border-bottom: 0;
  text-align: center;
}

.row-sponsors .dii-content-list > .dii-content-image {
  flex: 0 1 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
}

.row-sponsors .dii-content-title-photo {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.row-sponsors .dii-content-title-photo img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 200px;
  margin-right: auto;
  margin-left: auto;
}

/* Row Bottom */

.row-bottom {
  background-color: #fff;
  background-image:
    linear-gradient(
      to bottom,
      #fff 0%,
      rgba(255, 255, 255, 0) 18%,
      rgba(255, 255, 255, 0) 82%,
      #fff 100%
    ),
    url("https://pleasantonsoftball.ottosport.ai/_deimos/_public_files/1hfjq1tbnnwsr/_design_files/main-bottom-bg.jpg?_path=template");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.row-bottom .dii-content.dii-content-header {
  border: 0;
  padding: 0;
}

.row-bottom .dii-content.dii-content-header h2 {
  color: #000;
  font-family: var(--org-font);
  font-size: 36px;
  border-bottom: 0;
  padding-bottom: 0;
  text-align: left;
}

.row-bottom .dii-content.dii-content-header h2::after {
  content: "";
  display: block;
  width: 40px;
  max-width: 100%;
  margin-top: 0.25rem;
  border-bottom: 3px solid var(--org-brand);
}

/* Row Bottom article body and links */

#design-wrapper .row-bottom .dii-content-story,
#design-wrapper .row-bottom .dii-content-story p,
#design-wrapper .row-bottom .dii-content-story li {
  color: #000;
  font-family: var(--org-body-font);
  font-weight: 400;
}

#design-wrapper .row-bottom .dii-content-story a,
#design-wrapper .row-bottom .dii-content-story a:visited {
  color: #000;
  font-family: var(--org-body-font);
  font-weight: 400;
}

#design-wrapper .row-bottom .dii-content-story a:hover,
#design-wrapper .row-bottom .dii-content-story a:focus-visible {
  color: #000;
}

/* Row Sitemap */

.row-sitemap {
  background-color: var(--org-dark-2);
  color: #fff;
  font-family: var(--org-body-font);
}

/* Remove the global image outline and shadow in the sitemap row. */
.row-sitemap .dii-content-title-photo,
.row-sitemap .dii-content-title-photo:has(img) {
  max-height: 200px;
  border: 0;
  box-shadow: none;
}

.row-sitemap .dii-content-title-photo img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 200px;
}

/* Article titles */

.row-sitemap .dii-content-title,
.row-sitemap .dii-content-title a {
  color: #000;
  font-family: var(--org-font);
  font-size: 36px;
  font-weight: 400;
}

/* Body content */

.row-sitemap .dii-content-story,
.row-sitemap .dii-content-story p,
.row-sitemap .dii-content-story li {
  color: #000;
  font-family: var(--org-body-font);
  font-weight: 400;
}

/* Align article body content with its title. */

.row-sitemap .dii-content-article .dii-content-story,
.row-sitemap .dii-content-article .dii-content-story p {
  margin-left: 0;
  padding-left: 0;
}

.row-sitemap .dii-content-story a,
.row-sitemap .dii-content-story a:visited {
  color: #000;
  font-family: var(--org-body-font);
  text-decoration-color: currentColor;
  transition: color var(--org-transition);
}

.row-sitemap .dii-content-story a:hover,
.row-sitemap .dii-content-story a:focus-visible {
  color: #000;
}

/* ---- Reduced Motion ---- */

@media (prefers-reduced-motion: reduce){
  .row-programs .dii-content-title,
  .row-programs .dii-content-title-photo img {
    transition: none;
  }

  .row-programs .dii-content-image:hover .dii-content-title-photo img {
    transform: none;
  }
}

/* ---- Responsive Adjustments ---- */

/* Tablet: 768px–1024px */
@media (min-width: 768px) and (max-width: 1024px) {
  .row-no-margin .article-inner {
    padding: 1.25rem 4%;
  }

  .row-no-margin .article-inner h2,
  .row-no-margin .article-story h1 {
    font-size: 60px;
  }

  .row-programs .dii-content-title-photo img {
    height: 280px;
  }
}

/* Mobile: up to 767px */
@media (max-width: 767px) {
  .row-no-margin .article-inner {
    bottom: 3rem;
    padding: 1rem;
  }

  .row-no-margin .article-inner h2,
  .row-no-margin .article-story h1 {
    font-size: 60px;
  }

  .row-no-margin .article-story > p:first-child,
  .row-no-margin .article-inner h3,
  .row-no-margin .article-story p > a {
    font-size: 20px;
  }

  .cms-row__wrapper[class*="-banner"] .dii-content-header h2 {
    font-size: 36px;
  }

  .row-programs .dii-content-title-photo img {
    height: 260px;
  }
}
