/*
 * Most-Used Weathering Products
 *
 * This file is intentionally separate from the shared Tips & Techniques CSS.
 * It gives Eric Christianson's feature article a more editorial, masterclass-like
 * presentation without changing the appearance of every other tips article.
 */

.tip-article.weathering-feature {
  max-width: 86rem;
}

.weathering-feature .static-article-copy {
  max-width: none;
}

.weathering-article {
  color: #14233a;
}

.weathering-article p {
  max-width: none;
}

/* The shared article stylesheet gives every h2 an underline; this feature uses
 * numbered section rules instead, so its headings deliberately reset that line.
 */
.weathering-article h2 {
  padding-bottom: 0;
  border-bottom: 0;
}

.weathering-signature {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(18rem, 0.85fr);
  margin: 0 0 clamp(2rem, 5vw, 4.5rem);
  overflow: hidden;
  background: #071a31;
  border: 1px solid rgba(7, 26, 49, 0.18);
  box-shadow: 0 1.5rem 3.5rem rgba(7, 26, 49, 0.18);
}

.weathering-signature figure {
  position: relative;
  min-height: 31rem;
  margin: 0;
  background: #d9dde3;
}

.weathering-signature figure::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, transparent 65%, rgba(7, 26, 49, 0.32));
}

.weathering-signature figure img {
  width: 100%;
  height: 100%;
  min-height: 31rem;
  margin: 0;
  object-fit: cover;
}

.weathering-signature figcaption {
  position: absolute;
  z-index: 1;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  width: fit-content;
  max-width: calc(100% - 2rem);
  padding: 0.6rem 0.8rem;
  color: #ffffff;
  background: rgba(7, 26, 49, 0.84);
  font-size: 0.8rem;
  line-height: 1.4;
}

.weathering-signature-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem);
  color: #ffffff;
  border-left: 0.45rem solid #f2b84b;
}

.weathering-signature-card h2 {
  max-width: 12ch;
  margin: 0.35rem 0 1.25rem;
  color: #ffffff;
  font-family: "Oswald", sans-serif;
  font-size: clamp(2.25rem, 4.5vw, 4.8rem) !important;
  font-weight: 500 !important;
  line-height: 0.96 !important;
  text-transform: uppercase;
}

.weathering-signature-card p:not(.weathering-kicker) {
  color: #dfe8f4;
  font-size: 1.05rem;
  line-height: 1.65;
}

.weathering-signature-card a {
  align-self: flex-start;
  margin-top: 1.25rem;
  padding-bottom: 0.25rem;
  color: #f2b84b;
  border-bottom: 2px solid currentColor;
  font-weight: 800;
  text-decoration: none;
}

.weathering-signature-card a:hover,
.weathering-signature-card a:focus-visible {
  color: #ffffff;
}

.weathering-kicker {
  margin: 0;
  color: #c47d00;
  font-family: "DM Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.weathering-signature-card .weathering-kicker,
.weathering-tools .weathering-kicker {
  color: #f2b84b;
}

.weathering-introduction {
  max-width: 58rem;
  margin: 0 auto clamp(2rem, 4vw, 3.5rem);
}

.weathering-introduction p {
  font-size: 1.05rem;
  line-height: 1.85;
}

.weathering-introduction .weathering-lede {
  margin-top: 0.75rem;
  color: #071a31;
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  font-weight: 400;
  line-height: 1.35;
}

.weathering-article .weathering-quote {
  position: relative;
  max-width: 67rem;
  margin: 0 auto clamp(3rem, 7vw, 6rem);
  padding: clamp(1.75rem, 4vw, 3.25rem) clamp(2rem, 6vw, 5rem);
  background: #f4f0e7;
  border: 0;
  border-top: 1px solid #d5cdbf;
  border-bottom: 1px solid #d5cdbf;
  text-align: center;
}

.weathering-quote::before {
  position: absolute;
  top: -1.6rem;
  left: 50%;
  width: 3.2rem;
  height: 3.2rem;
  content: "“";
  color: #071a31;
  background: #f2b84b;
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 3.5rem;
  line-height: 1.35;
  transform: translateX(-50%);
}

.weathering-quote p {
  margin: 0;
  color: #071a31;
  font-family: Georgia, serif;
  font-size: clamp(1.35rem, 2.8vw, 2.1rem);
  font-style: italic;
  line-height: 1.45;
}

.weathering-quote cite {
  display: block;
  margin-top: 1rem;
  color: #526174;
  font-family: "DM Sans", sans-serif;
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.weathering-product-showcase,
.weathering-section {
  margin: 0 0 clamp(3rem, 7vw, 6rem);
}

.weathering-section-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: 1.3rem;
  border-bottom: 1px solid #c9d0d9;
}

.weathering-section-heading h2 {
  margin: 0.25rem 0 0;
  color: #071a31;
  font-family: "Oswald", sans-serif;
  font-size: clamp(2rem, 4vw, 3.8rem) !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  text-transform: uppercase;
}

.weathering-section-heading div > p:last-child:not(.weathering-kicker) {
  max-width: 50rem;
  margin: 0.85rem 0 0;
  color: #526174;
}

.weathering-number {
  min-width: 3.4rem;
  margin: 0;
  color: #f2b84b;
  font-family: "Oswald", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 600;
  line-height: 1;
}

.weathering-product-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 1rem;
}

.weathering-product-card {
  min-width: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #d8dde4;
  box-shadow: 0 0.55rem 1.5rem rgba(7, 26, 49, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.weathering-product-card:hover,
.weathering-product-card:focus-within {
  border-color: #f2b84b;
  box-shadow: 0 1rem 2rem rgba(7, 26, 49, 0.15);
  transform: translateY(-0.25rem);
}

.weathering-product-card a {
  display: flex;
  height: 100%;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.weathering-product-image {
  display: grid;
  min-height: 14rem;
  padding: 1.25rem;
  place-items: center;
  background: linear-gradient(145deg, #ffffff, #eef1f4);
  border-bottom: 1px solid #e2e6eb;
}

.weathering-product-image img {
  width: 100%;
  height: 12rem;
  margin: 0;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.weathering-product-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem 1.1rem 1.15rem;
}

.weathering-product-copy strong {
  color: #071a31;
  font-size: 1rem;
  line-height: 1.35;
}

.weathering-product-copy small {
  display: block;
  margin-top: 0.35rem;
  color: #526174;
  font-size: 0.82rem;
  line-height: 1.45;
}

.weathering-product-copy em {
  display: block;
  margin-top: auto;
  padding-top: 1rem;
  color: #a86400;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.weathering-source-note {
  display: grid;
  grid-template-columns: minmax(11rem, 0.35fr) minmax(0, 1fr);
  gap: 1.5rem;
  margin-top: 1.25rem;
  padding: 1.25rem 1.4rem;
  color: #dfe8f4;
  background: #071a31;
  border-left: 0.4rem solid #f2b84b;
}

.weathering-source-note strong {
  color: #ffffff;
  font-family: "Oswald", sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  text-transform: uppercase;
}

.weathering-source-note p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
}

.weathering-product-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.weathering-product-list li {
  display: grid;
  grid-template-columns: clamp(5.5rem, 8vw, 7rem) minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: start;
  min-width: 0;
  padding: 1.5rem;
  border-bottom: 1px solid #d8dde4;
}

.weathering-product-list li:nth-child(odd) {
  border-right: 1px solid #d8dde4;
}

.weathering-product-marker {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.55rem;
  align-items: center;
}

.weathering-list-number {
  color: #c47d00;
  font-family: "Oswald", sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
}

/* Each locally stored product photograph sits directly beneath its number.
 * The photograph remains a link to its outside source for attribution.
 */
.weathering-list-image {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  color: #071a31;
  background: #ffffff;
  border: 1px solid #cbd3dd;
  box-shadow: 0 0.35rem 0.9rem rgba(7, 26, 49, 0.09);
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

a.weathering-list-image:hover,
a.weathering-list-image:focus-visible {
  border-color: #c47d00;
  box-shadow: 0 0.55rem 1.2rem rgba(7, 26, 49, 0.16);
  transform: translateY(-0.12rem);
}

.weathering-list-image img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0;
  padding: 0.35rem;
  object-fit: contain;
  background: #ffffff;
}

.weathering-list-image > span {
  display: block;
  padding: 0.35rem 0.25rem;
  color: #6a4505;
  background: #f4f0e7;
  border-top: 1px solid #e2d8c8;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
}

.weathering-list-image-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: #d8dde4;
}

.weathering-list-image-pair a {
  display: block;
  min-width: 0;
  background: #ffffff;
}

.weathering-list-image-pair a:hover,
.weathering-list-image-pair a:focus-visible {
  outline: 3px solid #f2b84b;
  outline-offset: -3px;
}

.weathering-list-image-pair img {
  padding: 0.15rem;
}

.weathering-list-image-pair > span {
  grid-column: 1 / -1;
}

.weathering-list-copy {
  min-width: 0;
}

.weathering-list-copy strong {
  display: block;
  color: #071a31;
  font-size: 1.05rem;
  line-height: 1.4;
}

.weathering-list-copy p {
  margin: 0.45rem 0 0;
  color: #526174;
  font-size: 0.92rem;
  line-height: 1.65;
}

.weathering-representative-note {
  display: block;
  margin-top: 0.7rem;
  color: #7a5a21;
  font-size: 0.72rem;
  font-style: italic;
  line-height: 1.45;
}

.weathering-tools {
  margin: 0 0 clamp(3rem, 7vw, 6rem);
  padding: clamp(2rem, 5vw, 4rem);
  color: #ffffff;
  background: #071a31;
  box-shadow: inset 0.45rem 0 #f2b84b;
}

.weathering-section-heading-light {
  border-color: rgba(255, 255, 255, 0.2);
}

.weathering-section-heading-light h2 {
  color: #ffffff;
}

.weathering-section-heading-light div > p:last-child:not(.weathering-kicker) {
  color: #bdc9d9;
}

.weathering-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.weathering-tool-grid article {
  padding: clamp(1.4rem, 3vw, 2.3rem);
  background: #0d2543;
}

.weathering-tool-grid article > span {
  color: #f2b84b;
  font-family: "Oswald", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.weathering-tool-grid h3 {
  margin: 0.45rem 0 0.8rem;
  color: #ffffff;
  font-family: "Oswald", sans-serif;
  font-size: 1.65rem !important;
  font-weight: 500 !important;
  text-transform: uppercase;
}

.weathering-tool-grid p {
  margin: 0;
  color: #d6e0ed;
  font-size: 0.92rem;
  line-height: 1.7;
}

.weathering-tool-grid a {
  display: inline-block;
  margin-top: 1rem;
  color: #f2b84b;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.weathering-tool-grid a:hover,
.weathering-tool-grid a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
}

.weathering-signoff {
  position: relative;
  max-width: 52rem;
  margin: 0 auto;
  padding: 2rem 2rem 2rem 2.5rem;
  background: #f4f0e7;
  border-left: 0.4rem solid #f2b84b;
}

.weathering-signoff p {
  margin: 0;
  color: #071a31;
  font-family: Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-style: italic;
}

.weathering-signoff strong {
  display: block;
  margin-top: 0.55rem;
  color: #526174;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .weathering-signature {
    grid-template-columns: 1fr;
  }

  .weathering-signature figure,
  .weathering-signature figure img {
    min-height: 25rem;
  }

  .weathering-signature figure::after {
    background: linear-gradient(0deg, rgba(7, 26, 49, 0.35), transparent 45%);
  }

  .weathering-signature-card {
    border-top: 0.45rem solid #f2b84b;
    border-left: 0;
  }

  .weathering-signature-card h2 {
    max-width: 18ch;
  }

}

@media (max-width: 720px) {
  .weathering-signature figure,
  .weathering-signature figure img {
    min-height: 20rem;
  }

  .weathering-tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .weathering-product-list {
    grid-template-columns: 1fr;
  }

  .weathering-product-list li,
  .weathering-product-list li:nth-child(odd) {
    border-right: 0;
  }

  .weathering-tool-grid article:last-child {
    grid-column: 1 / -1;
  }

  .weathering-source-note {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

@media (max-width: 520px) {
  .weathering-signature figure,
  .weathering-signature figure img {
    min-height: 16rem;
  }

  .weathering-section-heading {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .weathering-tool-grid {
    grid-template-columns: 1fr;
  }

  .weathering-product-list li {
    grid-template-columns: 4.9rem minmax(0, 1fr);
    gap: 0.9rem;
    padding: 1.25rem 0.75rem;
  }

  .weathering-tool-grid article:last-child {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .weathering-product-card,
  .weathering-list-image {
    transition: none;
  }
}
