/* ==========================================================================
   /cotton/ — Cotton Trading & Logistics Page
   --------------------------------------------------------------------------
   Standalone stylesheet, enqueued only when the Cotton template is active.
   Mirrors src/sass/assets/_cotton.scss; same trade-off as wiper-products.
   ========================================================================== */

/* --------------------------------------------------------------------------
   01 — PAGE WRAPPER
   -------------------------------------------------------------------------- */
.cotton {
  background: #ffffff;
  color: #000000;
  position: relative;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   02 — HERO ( extends existing .page-hero )
   -------------------------------------------------------------------------- */
.cotton .cotton-hero {
  background-color: #364A39;
  position: relative;
}

.cotton .cotton-hero .hero-image img {
  filter: grayscale(100%) brightness(1.2) contrast(105%);
}
.cotton .cotton-hero .hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #364A39;
  mix-blend-mode: multiply;
  opacity: 0.8;
  pointer-events: none;
}

.cotton .cotton-hero .hero-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(242, 241, 237, 0.05) 1px, transparent 0);
  background-size: 32px 32px;
}

.cotton .cotton-hero .overlay {
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.45) 100%);
  z-index: 3;
}

.cotton .cotton-hero .hero-content {
  z-index: 3;
  max-width: 960px;
  padding-left: 30px;
  padding-right: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.cotton .cotton-hero .hero-eyebrow {
  font-family: "courier-std", monospace;
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #F2F1ED;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.cotton .cotton-hero .hero-eyebrow::before,
.cotton .cotton-hero .hero-eyebrow::after {
  content: "";
  width: 32px;
  height: 1px;
  background: rgba(155, 145, 133, 0.7);
}

.cotton .cotton-hero .hero-content h1 {
  font-size: 72px;
  line-height: 78px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #F2F1ED;
  text-align: center;
  margin: 0;
}
@media (max-width: 900px) {
  .cotton .cotton-hero .hero-content h1 {
    font-size: 56px;
    line-height: 62px;
  }
}
@media (max-width: 540px) {
  .cotton .cotton-hero .hero-content h1 {
    font-size: 38px;
    line-height: 44px;
  }
}

.cotton .cotton-hero .hero-subhead {
  font-family: "courier-std", monospace;
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: -0.015em;
  color: #F2F1ED;
  text-align: center;
  max-width: 680px;
  margin: 0;
}
@media (max-width: 540px) {
  .cotton .cotton-hero .hero-subhead {
    font-size: 14px;
  }
}

.cotton .cotton-hero .btns-wrapper {
  margin-top: 12px;
}

.cotton .cotton-hero .hero-doc-id {
  position: absolute;
  top: 32px;
  left: 32px;
  z-index: 3;
  font-family: "courier-std", monospace;
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(242, 241, 237, 0.8);
}
@media (max-width: 540px) {
  .cotton .cotton-hero .hero-doc-id {
    top: 20px;
    left: 20px;
    font-size: 9px;
    letter-spacing: 0.3em;
  }
}

.cotton .cotton-hero .hero-spec-line {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 14px;
  align-items: center;
  font-family: "courier-std", monospace;
  font-size: 10px;
  letter-spacing: 0.4em;
  color: rgba(242, 241, 237, 0.75);
  text-transform: uppercase;
  white-space: nowrap;
}
.cotton .cotton-hero .hero-spec-line .prefix {
  color: rgba(242, 241, 237, 0.4);
  margin-right: -4px;
}
@media (max-width: 540px) {
  .cotton .cotton-hero .hero-spec-line {
    font-size: 9px;
    gap: 10px;
    bottom: 24px;
  }
}

/* --------------------------------------------------------------------------
   03 — SECTION SCAFFOLDING (shared markers, headings, rules)
   -------------------------------------------------------------------------- */
.cotton .cs-section {
  position: relative;
}

.cotton .section-marker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
  font-family: "courier-std", monospace;
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #000;
}
.cotton .section-marker .sec-num {
  color: inherit;
  font-weight: 700;
}
.cotton .section-marker .sec-divider,
.cotton .section-marker .sec-label {
  color: #9B9185;
}
.cotton .section-marker .sec-rule {
  flex: 1;
  height: 1px;
  background: rgba(0, 0, 0, 0.12);
  margin-left: 10px;
}
.cotton .section-marker.light {
  color: #F2F1ED;
}
.cotton .section-marker.light .sec-rule {
  background: rgba(242, 241, 237, 0.18);
}
@media (max-width: 540px) {
  .cotton .section-marker {
    font-size: 10px;
    gap: 10px;
    margin-bottom: 24px;
  }
}

/* --------------------------------------------------------------------------
   04 — OPERATIONS ( SEC. 01 )
   -------------------------------------------------------------------------- */
.cotton .cs-operations {
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.cotton .cs-operations h2 {
  font-size: 56px;
  line-height: 1.08;
  text-align: left;
  letter-spacing: 0.005em;
  margin: 0 0 16px;
  color: #000;
}
@media (max-width: 768px) {
  .cotton .cs-operations h2 {
    font-size: 40px;
    line-height: 46px;
  }
}
@media (max-width: 480px) {
  .cotton .cs-operations h2 {
    font-size: 32px;
    line-height: 38px;
  }
}

.cotton .cs-operations .operations-intro {
  font-family: "courier-std", monospace;
  font-size: 15px;
  line-height: 1.75;
  letter-spacing: -0.015em;
  color: #000;
  max-width: 720px;
  margin: 0 0 72px;
}

.cotton .ops-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  border-left: 1px solid rgba(0, 0, 0, 0.12);
}
@media (max-width: 900px) {
  .cotton .ops-pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .cotton .ops-pillars {
    grid-template-columns: 1fr;
  }
}

.cotton .ops-pillar {
  padding: 40px 32px 36px;
  border-right: 1px solid rgba(0, 0, 0, 0.12);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 240px;
  transition: background-color 0.3s ease;
}
.cotton .ops-pillar:hover {
  background: rgba(155, 145, 133, 0.08);
}
.cotton .ops-pillar .ops-num {
  font-family: "courier-std", monospace;
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #9B9185;
}
.cotton .ops-pillar .ops-name {
  font-family: "din-condensed", sans-serif;
  font-size: 42px;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #364A39;
  margin: 0;
  text-align: left;
  word-break: keep-all;
  hyphens: none;
}
@media (max-width: 1180px) {
  .cotton .ops-pillar .ops-name { font-size: 36px; }
}
@media (max-width: 1024px) {
  .cotton .ops-pillar .ops-name { font-size: 44px; }
}
@media (max-width: 720px) {
  .cotton .ops-pillar .ops-name { font-size: 38px; }
}
@media (max-width: 480px) {
  .cotton .ops-pillar .ops-name { font-size: 42px; }
}
.cotton .ops-pillar p {
  font-family: "courier-std", monospace;
  font-size: 13px;
  line-height: 1.65;
  letter-spacing: -0.015em;
  color: #000;
  margin: 0;
}

/* --------------------------------------------------------------------------
   05 — MATERIAL CATALOG ( SEC. 02 ) — half-tone-beige tinted
   -------------------------------------------------------------------------- */
.cotton .cs-catalog {
  background: rgba(155, 145, 133, 0.08);
  color: #000;
}

.cotton .cs-catalog .catalog-header {
  margin-bottom: 56px;
  max-width: 720px;
}

.cotton .cs-catalog h2 {
  font-size: 56px;
  line-height: 1.08;
  text-align: left;
  letter-spacing: 0.005em;
  margin: 0 0 16px;
  color: #000;
}
@media (max-width: 768px) {
  .cotton .cs-catalog h2 {
    font-size: 40px;
    line-height: 46px;
  }
}
@media (max-width: 480px) {
  .cotton .cs-catalog h2 {
    font-size: 32px;
    line-height: 38px;
  }
}

.cotton .cs-catalog .catalog-intro {
  font-family: "courier-std", monospace;
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: -0.015em;
  color: #000;
  margin: 0;
}

/* Manifest table */
.cotton .material-manifest {
  border-top: 2px solid #364A39;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.cotton .manifest-header {
  display: grid;
  grid-template-columns: 140px 1fr 200px;
  gap: 24px;
  padding: 18px 4px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  font-family: "courier-std", monospace;
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #9B9185;
  font-weight: 700;
}
.cotton .manifest-header .col-action {
  text-align: right;
}
@media (max-width: 700px) {
  .cotton .manifest-header {
    grid-template-columns: 80px 1fr;
  }
  .cotton .manifest-header .col-action {
    display: none;
  }
}

.cotton .material-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cotton .material-row {
  display: grid;
  grid-template-columns: 140px 1fr 200px;
  gap: 24px;
  align-items: center;
  padding: 28px 4px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  transition: background-color 0.3s ease, padding 0.3s ease;
}
.cotton .material-row:last-child {
  border-bottom: none;
}
.cotton .material-row:hover {
  background: rgba(155, 145, 133, 0.18);
  padding-left: 16px;
  padding-right: 16px;
}
@media (max-width: 700px) {
  .cotton .material-row {
    grid-template-columns: 80px 1fr;
    padding: 22px 4px;
  }
}

.cotton .material-row .row-num {
  font-family: "courier-std", monospace;
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #9B9185;
  font-weight: 700;
}

.cotton .material-row .row-name {
  font-family: "din-condensed", sans-serif;
  font-size: 38px;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #000;
  transition: color 0.3s ease;
}
.cotton .material-row:hover .row-name {
  color: #364A39;
}
@media (max-width: 768px) {
  .cotton .material-row .row-name {
    font-size: 30px;
  }
}
@media (max-width: 480px) {
  .cotton .material-row .row-name {
    font-size: 24px;
  }
}

.cotton .material-row .row-action {
  font-family: "courier-std", monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #9B9185;
  text-align: right;
}
@media (max-width: 700px) {
  .cotton .material-row .row-action {
    display: none;
  }
}

.cotton .manifest-footer {
  display: flex;
  gap: 18px;
  align-items: baseline;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-family: "courier-std", monospace;
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: #000;
}
.cotton .manifest-footer .footer-label {
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #9B9185;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   06 — TRADE NETWORK ( SEC. 03 ) — DARK
   -------------------------------------------------------------------------- */
.cotton .cs-network {
  background: #364A39;
  color: #F2F1ED;
}

.cotton .network-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 96px;
  align-items: start;
}
@media (max-width: 1024px) {
  .cotton .network-grid {
    gap: 56px;
  }
}
@media (max-width: 900px) {
  .cotton .network-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.cotton .network-content h2 {
  font-size: 56px;
  line-height: 1.08;
  text-align: left;
  letter-spacing: 0.005em;
  margin: 0 0 24px;
  color: #F2F1ED;
}
@media (max-width: 768px) {
  .cotton .network-content h2 {
    font-size: 40px;
    line-height: 46px;
  }
}
@media (max-width: 480px) {
  .cotton .network-content h2 {
    font-size: 32px;
    line-height: 38px;
  }
}

.cotton .network-content p {
  font-family: "courier-std", monospace;
  font-size: 15px;
  line-height: 1.75;
  letter-spacing: -0.015em;
  color: rgba(242, 241, 237, 0.92);
  margin: 0 0 16px;
}
.cotton .network-content p:last-child {
  margin-bottom: 0;
}

.cotton .network-list-wrap {
  padding-top: 16px;
}

.cotton .network-list-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}
.cotton .network-list-header .list-tag {
  font-family: "courier-std", monospace;
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #9B9185;
  font-weight: 700;
}
.cotton .network-list-header .list-rule {
  flex: 1;
  height: 1px;
  background: rgba(242, 241, 237, 0.2);
}

.cotton .network-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cotton .network-list li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid rgba(242, 241, 237, 0.15);
}
.cotton .network-list li:last-child {
  border-bottom: none;
}
.cotton .network-list .np-num {
  font-family: "courier-std", monospace;
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #9B9185;
  font-weight: 700;
}
.cotton .network-list .np-name {
  font-family: "din-condensed", sans-serif;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #F2F1ED;
}
@media (max-width: 540px) {
  .cotton .network-list .np-name {
    font-size: 22px;
  }
}

/* --------------------------------------------------------------------------
   07 — LOGISTICS ( SEC. 04 )
   -------------------------------------------------------------------------- */
.cotton .cs-logistics {
  background: #ffffff;
  color: #000;
}

.cotton .cs-logistics h2 {
  font-size: 56px;
  line-height: 1.08;
  text-align: left;
  letter-spacing: 0.005em;
  margin: 0 0 16px;
  color: #000;
}
@media (max-width: 768px) {
  .cotton .cs-logistics h2 {
    font-size: 40px;
    line-height: 46px;
  }
}
@media (max-width: 480px) {
  .cotton .cs-logistics h2 {
    font-size: 32px;
    line-height: 38px;
  }
}

.cotton .cs-logistics .logistics-intro {
  font-family: "courier-std", monospace;
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: -0.015em;
  color: #000;
  max-width: 580px;
  margin: 0 0 64px;
}

.cotton .logistics-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  border-left: 1px solid rgba(0, 0, 0, 0.12);
}
@media (max-width: 1024px) {
  .cotton .logistics-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 700px) {
  .cotton .logistics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 460px) {
  .cotton .logistics-grid {
    grid-template-columns: 1fr;
  }
}

.cotton .log-tile {
  position: relative;
  padding: 36px 28px;
  border-right: 1px solid rgba(0, 0, 0, 0.12);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 200px;
  transition: background-color 0.3s ease;
}
.cotton .log-tile:hover {
  background: rgba(155, 145, 133, 0.1);
}
.cotton .log-tile .log-num {
  font-family: "courier-std", monospace;
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #9B9185;
}
.cotton .log-tile .log-name {
  font-family: "din-condensed", sans-serif;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #364A39;
  margin-top: 0;
}
.cotton .log-tile .log-desc {
  font-family: "courier-std", monospace;
  font-size: 12px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: #000;
}

/* --------------------------------------------------------------------------
   08 — SERVED / INDUSTRIES ( SEC. 05 ) — DARK
   -------------------------------------------------------------------------- */
.cotton .cs-served {
  background: #364A39;
  color: #F2F1ED;
}

.cotton .cs-served h2 {
  font-size: 56px;
  line-height: 1.08;
  text-align: left;
  letter-spacing: 0.005em;
  margin: 0 0 16px;
  color: #F2F1ED;
}
@media (max-width: 768px) {
  .cotton .cs-served h2 {
    font-size: 40px;
    line-height: 46px;
  }
}
@media (max-width: 480px) {
  .cotton .cs-served h2 {
    font-size: 32px;
    line-height: 38px;
  }
}

.cotton .cs-served .served-intro {
  font-family: "courier-std", monospace;
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: -0.015em;
  color: rgba(242, 241, 237, 0.92);
  max-width: 580px;
  margin: 0 0 64px;
}

.cotton .served-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(242, 241, 237, 0.22);
  border-left: 1px solid rgba(242, 241, 237, 0.22);
}
@media (max-width: 768px) {
  .cotton .served-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 460px) {
  .cotton .served-grid {
    grid-template-columns: 1fr;
  }
}

.cotton .served-cell {
  position: relative;
  padding: 36px 28px;
  border-right: 1px solid rgba(242, 241, 237, 0.22);
  border-bottom: 1px solid rgba(242, 241, 237, 0.22);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 160px;
  transition: background-color 0.3s ease;
}
.cotton .served-cell:hover {
  background: rgba(155, 145, 133, 0.1);
}
.cotton .served-cell .sv-num {
  font-family: "courier-std", monospace;
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #9B9185;
}
.cotton .served-cell .sv-name {
  font-family: "din-condensed", sans-serif;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #F2F1ED;
}

/* --------------------------------------------------------------------------
   09 — BOTTOM CTA
   -------------------------------------------------------------------------- */
.cotton .cs-cta {
  background: #F2F1ED;
  color: #000;
}

.cotton .cs-cta .cta-frame {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 56px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.14);
  text-align: center;
}
@media (max-width: 540px) {
  .cotton .cs-cta .cta-frame {
    padding: 48px 24px;
  }
}

.cotton .cs-cta .cta-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: #364A39;
  border-style: solid;
  border-width: 0;
  background: transparent;
}
.cotton .cs-cta .cta-corner-tl {
  top: -1px;
  left: -1px;
  border-top-width: 2px;
  border-left-width: 2px;
}
.cotton .cs-cta .cta-corner-tr {
  top: -1px;
  right: -1px;
  border-top-width: 2px;
  border-right-width: 2px;
}
.cotton .cs-cta .cta-corner-bl {
  bottom: -1px;
  left: -1px;
  border-bottom-width: 2px;
  border-left-width: 2px;
}
.cotton .cs-cta .cta-corner-br {
  bottom: -1px;
  right: -1px;
  border-bottom-width: 2px;
  border-right-width: 2px;
}

.cotton .cs-cta .cta-tag {
  display: inline-block;
  font-family: "courier-std", monospace;
  font-size: 11px;
  letter-spacing: 0.4em;
  color: #9B9185;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.cotton .cs-cta h2 {
  font-family: "din-condensed", sans-serif;
  font-size: 52px;
  line-height: 1.05;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 18px;
  color: #000;
}
@media (max-width: 540px) {
  .cotton .cs-cta h2 {
    font-size: 36px;
    line-height: 42px;
  }
}
.cotton .cs-cta p {
  font-family: "courier-std", monospace;
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: -0.015em;
  color: #000;
  max-width: 520px;
  margin: 0 auto 32px;
  text-align: center;
}
.cotton .cs-cta .btns-wrapper {
  margin: 0 auto;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   10 — RELATED SERVICES
   -------------------------------------------------------------------------- */
.cotton .cs-related {
  background: #ffffff;
  padding: 56px 0 64px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.cotton .cs-related .related-label {
  display: block;
  font-family: "courier-std", monospace;
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #9B9185;
  margin-bottom: 22px;
}
.cotton .related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
}
@media (max-width: 540px) {
  .cotton .related-links {
    gap: 22px;
  }
}
.cotton .related-links a {
  font-family: "din-condensed", sans-serif;
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #000;
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.cotton .related-links a:hover {
  color: #364A39;
  border-bottom-color: #364A39;
}


/* =============================================================================
   CATALOG LIST  ·  Anti-FOUC override
   ============================================================================= */
.has-js .cotton .material-row { opacity: 1; }
