/* ------------------------------------------------------------------
   Rubber mat site — body styles.

   Loaded after style.css, which already supplies the ticker, header,
   footer and quote drawer. Everything here is the mat site's own look:
   a dark plant floor, rubber-black panels, lime and red accents.
------------------------------------------------------------------ */

.mats-site {
  --mat-ink: #14140F;      /* page */
  --mat-panel: #1C1C1A;    /* cards, wells */
  --mat-line: rgba(255,255,255,0.13);
  --mat-text: #F2F1EC;
  --mat-dim: #A9A79B;
  --mat-lime: #7FE0A8;
  --mat-red: #E1381C;
  --mat-paper: #F4F2EC;
  background: var(--mat-ink);
  color: var(--mat-text);
}
.mats-site main { display: block; }

/* No blanket link colour here on purpose: the ticker, header, footer and
   quote drawer are shared with the store and must keep their own palette.
   Mat components below each declare the colour they need. */

/* The shared header is translucent, which reads cream over the store's paper
   page but grey over this dark one. Opaque here so the chrome matches. */
.mats-site .site-header { background: #F6F4EE; }

/* Current mat type in the shared nav. */
.nav-left a.on, .nav-right a.on { color: #12603B; font-weight: 700; }
/* Four types on the left need a little more room than the store's three links. */
.mats-site .nav-left { gap: 8px 16px; }
.mats-site .nav-right { gap: 8px 18px; }

/* ---------- shared bits ---------- */
.m-inner { max-width: 1360px; margin: 0 auto; padding: 84px 40px 92px; }
.m-band { border-top: 1px solid var(--mat-line); }
.m-band.alt { background: #101010; }
.m-head { display: flex; align-items: baseline; gap: 20px; border-bottom: 1px solid var(--mat-line); padding-bottom: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.m-head .num { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #8F8878; }
.m-head h2 { font-size: 40px; font-weight: 800; letter-spacing: -0.035em; }
.m-head .count { margin-left: auto; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--mat-dim); }
.m-lbl { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: #8F8878; margin: 34px 0 12px; }

.m-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--mat-lime); color: #10251C;
  border: 0; border-radius: 2px; padding: 14px 22px; font-size: 14px; font-weight: 700; cursor: pointer; text-align: center; }
.m-btn:hover { background: #A8ECC4; color: #10251C; }
.m-btn.quiet { background: transparent; color: var(--mat-text); border: 1px solid var(--mat-line); }
.m-btn.quiet:hover { background: rgba(255,255,255,0.06); color: var(--mat-text); border-color: rgba(255,255,255,0.3); }

.crumbs { max-width: 1360px; margin: 0 auto; padding: 22px 40px 0; display: flex; gap: 10px; align-items: center;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
.crumbs a { color: var(--mat-lime); }
.crumbs a:hover { color: #A8ECC4; }
.crumbs span { color: #6A695E; }
.crumbs b { color: var(--mat-dim); font-weight: 400; }

/* ---------- landing hero ---------- */
.m-hero { background: linear-gradient(160deg, #1C1C1A 0%, #14140F 55%, #191917 100%);
  background-image: radial-gradient(rgba(255,255,255,0.05) 1.5px, transparent 1.5px); background-size: 15px 15px; }
.m-hero-inner { max-width: 1360px; margin: 0 auto; padding: 76px 40px 44px; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 44px; align-items: end; }
.m-hero-inner > * { min-width: 0; }
.m-hero .kicker { display: flex; align-items: center; gap: 12px; font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--mat-red); margin-bottom: 24px; }
.m-hero .kicker .rule { width: 26px; height: 1px; background: var(--mat-red); display: block; }
.m-hero h1 { font-size: clamp(38px, 3.4vw, 60px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 800;
  margin: 0 0 20px; max-width: 16ch; text-wrap: balance; }
.m-hero h1 em { font-style: italic; color: var(--mat-lime); }
.m-hero p { font-size: 17px; line-height: 1.6; color: var(--mat-dim); max-width: 480px; margin: 0 0 30px; text-wrap: pretty; }
.m-hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.m-hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--mat-line);
  border: 1px solid var(--mat-line); margin: 0; }
.m-hero-stats > div { background: var(--mat-ink); padding: 18px 20px; min-width: 0; }
.m-hero-stats dt { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: #85847A; }
.m-hero-stats dd { font-family: 'JetBrains Mono', monospace; font-size: 25px; margin: 6px 0 0; color: #FFFFFF; }

.m-hero-strip { max-width: 1360px; margin: 0 auto; padding: 0 40px 40px; display: grid;
  grid-template-columns: repeat(6, 1fr); gap: 8px; }
.m-hero-strip a { display: flex; flex-direction: column; gap: 6px; min-width: 0; color: var(--mat-dim); }
.m-hero-strip a span { display: block; height: 86px; border-radius: 2px; border: 1px solid var(--mat-line); }
.m-hero-strip a b { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.14em; text-align: center; font-weight: 400; }
.m-hero-strip a:hover { color: #FFFFFF; }
.m-hero-strip a:hover span { border-color: var(--mat-lime); }

/* ---------- filter chips ---------- */
.m-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip { border: 1px solid var(--mat-line); background: transparent; color: #C9C4B4; padding: 9px 17px; font-size: 13px;
  font-weight: 600; cursor: pointer; border-radius: 2px; }
.chip:hover { border-color: rgba(255,255,255,0.34); color: #FFFFFF; }
.chip.on { background: var(--mat-lime); border-color: var(--mat-lime); color: #14140F; }
.chip.on:hover { color: #14140F; }

/* ---------- mat cards ---------- */
.m-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 18px; }
.m-grid > * { min-width: 0; }
.m-card { display: flex; flex-direction: column; background: var(--mat-panel); border: 1px solid var(--mat-line); border-radius: 3px; overflow: hidden; }
.m-card:hover { border-color: rgba(127,224,168,0.55); }
.m-card-shot { position: relative; display: block; height: 210px; }
.m-badge { position: absolute; left: 10px; top: 10px; background: var(--mat-red); color: #FFFFFF;
  font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 9px; }
.m-card-tag { position: absolute; right: 10px; bottom: 10px; font-family: 'JetBrains Mono', monospace; font-size: 9px;
  letter-spacing: 0.16em; color: #FFFFFF; background: rgba(20,20,15,0.72); padding: 4px 8px; }
.m-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.m-card-code { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: #8F8878; }
.m-card-body h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; margin: 6px 0 8px; }
.m-card-body h3 a { color: var(--mat-text); }
.m-card-body h3 a:hover { color: var(--mat-lime); }
.m-card-body p { font-size: 13.5px; line-height: 1.55; color: var(--mat-dim); margin: 0 0 16px; text-wrap: pretty; }
.m-card-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--mat-line); margin: auto 0 0; }
.m-card-kv > div { background: #191917; padding: 9px 11px; min-width: 0; }
.m-card-kv dt { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: #85847A; }
.m-card-kv dd { font-size: 13.5px; font-weight: 700; letter-spacing: -0.01em; margin: 3px 0 0; }
/* Mats are quoted by the desk, so the card ends on the action rather than
   a price — the button takes the full width instead of sharing the row. */
.m-card-foot { display: flex; margin-top: 14px; }
.m-card-foot form { flex: 1; }
.m-card-foot button { width: 100%; background: transparent; border: 1px solid var(--mat-lime); color: var(--mat-lime); padding: 10px 14px;
  font-size: 12.5px; font-weight: 700; cursor: pointer; border-radius: 2px; white-space: nowrap; }
.m-card-foot button:hover { background: var(--mat-lime); color: #14140F; }

/* ---------- product page ---------- */
.m-product { max-width: 1360px; margin: 0 auto; padding: 26px 40px 80px; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 44px; align-items: start; }
.m-product > * { min-width: 0; }
.m-shot { position: relative; min-height: 460px; border: 1px solid var(--mat-line); border-radius: 3px; }
.m-shot-tag { position: absolute; right: 14px; bottom: 14px; font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.16em; color: #FFFFFF; background: rgba(20,20,15,0.72); padding: 5px 10px; }
.m-code { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mat-red); }
.m-detail h1 { font-size: clamp(30px, 3vw, 44px); font-weight: 800; letter-spacing: -0.04em; margin: 10px 0 14px; text-wrap: balance; }
.m-use { font-size: 16px; line-height: 1.6; color: var(--mat-dim); margin: 0 0 24px; max-width: 46ch; text-wrap: pretty; }
.m-roll { display: flex; align-items: baseline; gap: 12px; border-top: 1px solid var(--mat-line);
  border-bottom: 1px solid var(--mat-line); padding: 16px 0; margin-bottom: 20px; }
.m-roll b { font-family: 'JetBrains Mono', monospace; font-size: 26px; color: #FFFFFF; font-weight: 400; }
.m-roll span { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: #85847A; }
.m-order { display: flex; gap: 10px; align-items: flex-end; margin-bottom: 26px; flex-wrap: wrap; }
.m-order label { display: block; }
.m-order label span { display: block; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: #85847A; margin-bottom: 7px; }
.m-order input { width: 96px; background: #101010; border: 1px solid var(--mat-line); color: #FFFFFF; padding: 13px 14px;
  font-family: 'JetBrains Mono', monospace; font-size: 16px; }
.m-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 1px;
  background: var(--mat-line); border: 1px solid var(--mat-line); margin: 0; }
.m-specs > div { background: var(--mat-panel); padding: 14px 16px; min-width: 0; }
.m-specs dt { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: #85847A; }
.m-specs dd { font-size: 15px; font-weight: 700; letter-spacing: -0.015em; margin: 4px 0 0; }
.m-appnote { display: block; border: 1px dashed rgba(255,255,255,0.22); padding: 16px 18px; margin-top: 22px; color: var(--mat-text); }
.m-appnote:hover { border-color: var(--mat-lime); color: var(--mat-text); }
.m-appnote .lbl { display: block; font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.14em;
  text-transform: uppercase; color: #85847A; }
.m-appnote strong { display: block; font-size: 15px; margin: 5px 0 6px; letter-spacing: -0.015em; }
.m-appnote .go { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--mat-lime); }

/* ---------- application page ---------- */
.m-apphero { position: relative; height: 400px; background-size: cover; background-position: center; margin-top: 18px; }
.m-apphero .app-hero-image { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center; }
.m-apphero .wash { position: absolute; inset: 0; background: linear-gradient(92deg, rgba(12,12,9,0.94) 0%, rgba(12,12,9,0.7) 48%, rgba(12,12,9,0.25) 100%); }
.m-apphero .cap { position: relative; max-width: 1360px; margin: 0 auto; padding: 0 40px; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 40px; }
.m-apphero .tag { display: inline-block; align-self: flex-start; background: var(--mat-red); color: #FFFFFF;
  font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.14em; padding: 5px 10px; margin-bottom: 14px; }
.m-apphero .kick { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--mat-lime); }
.m-apphero h1 { font-size: clamp(34px, 4vw, 54px); font-weight: 800; letter-spacing: -0.04em; margin: 10px 0 10px; }
.m-apphero p { font-size: 16px; line-height: 1.55; color: #D6D3C7; max-width: 56ch; margin: 0; text-wrap: pretty; }
.m-apphero .app-hero-cta { align-self:flex-start; margin-top:20px; }
.m-appbody .app-buying-copy { max-width:68ch; line-height:1.65; color:#4B514A; margin:0 0 22px; }

.m-appbody { max-width: 1360px; margin: 0 auto; padding: 56px 40px 90px; display: grid;
  grid-template-columns: 1.35fr 0.65fr; gap: 48px; align-items: start; }
.m-appbody > * { min-width: 0; }
.m-appbody .lede { font-size: 18px; line-height: 1.65; color: #D6D3C7; margin: 0; text-wrap: pretty; }
.m-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--mat-line); border: 1px solid var(--mat-line); }
.m-points li { background: var(--mat-panel); padding: 15px 18px; display: flex; gap: 14px; align-items: flex-start; }
.m-points .n { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--mat-red); padding-top: 2px; }
.m-points li span:last-child { font-size: 14.5px; line-height: 1.55; color: #D6D3C7; }
.m-sheet { background: var(--mat-panel); border: 1px solid var(--mat-line); position: sticky; top: 96px; }
.m-sheet .hd { background: #08301F; color: #FFFFFF; padding: 12px 20px; font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; }
.m-sheet .rows { display: grid; gap: 1px; background: var(--mat-line); }
.m-sheet .rows > div { background: var(--mat-panel); padding: 13px 20px; display: flex; justify-content: space-between;
  gap: 16px; font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.m-sheet .rows .k { color: #85847A; }
.m-sheet .body { padding: 20px; }
.m-sheet .note { border-left: 2px solid var(--mat-red); padding-left: 14px; font-size: 14px; line-height: 1.6;
  color: var(--mat-dim); margin: 0 0 18px; }
.m-sheet .m-btn { width: 100%; margin-top: 9px; }

/* ---------- job cards ---------- */
.m-jobs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 18px; }
.m-jobs > * { min-width: 0; }
.m-job { display: flex; flex-direction: column; background: var(--mat-panel); border: 1px solid var(--mat-line);
  border-radius: 3px; overflow: hidden; color: var(--mat-text); }
.m-job:hover { border-color: rgba(127,224,168,0.55); color: var(--mat-text); }
.m-job .shot { display: block; height: 200px; background-size: cover; background-position: center; }
.m-job .body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.m-job .tag { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.14em; color: var(--mat-red); }
.m-job strong { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; margin: 7px 0 9px; }
.m-job .blurb { font-size: 13.5px; line-height: 1.55; color: var(--mat-dim); margin-bottom: 16px; text-wrap: pretty; }
.m-job .foot { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; border-top: 1px dashed var(--mat-line);
  padding-top: 13px; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: #85847A; }
.m-job .foot .go { color: var(--mat-lime); }

/* ---------- spec table ---------- */
.m-table-wrap { overflow-x: auto; border: 1px solid var(--mat-line); }
.m-table { width: 100%; border-collapse: collapse; min-width: 900px; }
.m-table th { text-align: left; background: #101010; color: #85847A; font-family: 'JetBrains Mono', monospace;
  font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 400; padding: 13px 14px;
  border-bottom: 1px solid var(--mat-line); white-space: nowrap; }
.m-table td { padding: 14px; border-bottom: 1px solid rgba(255,255,255,0.07); font-size: 13.5px; color: #D6D3C7; vertical-align: middle; }
.m-table tr:last-child td { border-bottom: 0; }
.m-table tbody tr:hover td { background: rgba(255,255,255,0.03); }
.m-table td b { color: #FFFFFF; font-weight: 700; letter-spacing: -0.01em; }
.m-table .mono { font-family: 'JetBrains Mono', monospace; font-size: 12px; white-space: nowrap; }
.tbl-link { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  white-space: nowrap; color: var(--mat-lime); }
.tbl-link:hover { color: #A8ECC4; }
.m-fine { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: #6A695E; margin: 14px 0 0; }

/* ---------- ordering notes ---------- */
.m-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 1px; background: var(--mat-line);
  border: 1px solid var(--mat-line); }
.m-notes > div { background: var(--mat-ink); padding: 26px 24px; min-width: 0; }
.m-notes .n { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--mat-red); }
.m-notes h3 { font-size: 19px; font-weight: 800; letter-spacing: -0.025em; margin: 10px 0 9px; }
.m-notes p { font-size: 14px; line-height: 1.6; color: var(--mat-dim); margin: 0; text-wrap: pretty; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .m-appbody { grid-template-columns: 1fr; }
  .m-sheet { position: static; }
  .m-hero-strip { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .m-inner { padding: 60px 20px 66px; }
  .m-hero-inner { padding: 52px 20px 34px; }
  .m-hero-strip { padding: 0 20px 32px; }
  .m-product { padding: 20px 20px 64px; gap: 28px; }
  .m-shot { min-height: 300px; }
  .m-appbody { padding: 34px 20px 70px; }
  .m-apphero { height: 320px; }
  .m-apphero .cap { padding: 0 20px 30px; }
  .crumbs { padding: 18px 20px 0; }
  .m-head h2 { font-size: 30px; }
  .m-head .count { margin-left: 0; }
}
@media (max-width: 560px) {
  .m-hero-strip { grid-template-columns: repeat(2, 1fr); }
  .m-hero-stats { grid-template-columns: 1fr; }
}
