:root {
  --paper: #f7f2e9;
  --paper-2: #fffaf1;
  --ink: #17211c;
  --muted: #5e6a61;
  --line: #d9cdbb;
  --green: #1f6a4f;
  --green-dark: #0f3d31;
  --honey: #c8851a;
  --amber: #f0b43b;
  --blue: #2b5d8f;
  --danger: #a84432;
  --shadow: 0 22px 60px rgba(37, 29, 16, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #eef1ed;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  line-height: 1.45;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.7rem 1rem;
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  top: 1rem;
}

.market-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(23, 33, 28, 0.12);
  background: rgba(247, 242, 233, 0.94);
  backdrop-filter: blur(18px);
}

.market-nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--green);
  background: var(--green-dark);
  color: var(--amber);
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.market-nav-toggle {
  display: none;
  min-height: 42px;
  padding: 0.55rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper-2);
  color: var(--green-dark);
  font-weight: 900;
  cursor: pointer;
}

.market-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
}

.market-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.72rem;
  border-radius: 4px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 850;
  white-space: nowrap;
}

.market-links a:hover,
.market-links a:focus-visible {
  background: rgba(31, 106, 79, 0.08);
  color: var(--green-dark);
}

.market-hero {
  position: relative;
  min-height: calc(100svh - 64px);
  padding: clamp(5rem, 9vw, 8rem) max(20px, calc((100vw - 1120px) / 2)) clamp(2.8rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr);
  gap: clamp(1.2rem, 4vw, 3rem);
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  background: #10251b;
  color: #fffaf1;
}

.market-hero::before,
.market-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.market-hero::before {
  z-index: -2;
  background: url("assets/images/marketplace.jpg") center / cover no-repeat;
  opacity: 0.52;
  transform: scale(1.04);
}

.market-hero::after {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(14, 31, 23, 0.94), rgba(14, 31, 23, 0.64) 58%, rgba(14, 31, 23, 0.36)),
    linear-gradient(90deg, var(--amber), #fff2a6, var(--green)) bottom / 100% 12px no-repeat;
}

.market-hero-copy {
  max-width: 790px;
}

.kicker {
  margin: 0 0 0.85rem;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.market-hero .kicker {
  color: #f7d36f;
}

.market-hero h1,
.section-heading h2,
.cart-panel h2,
.order-form h2,
.processing-flow h2,
.packet-panel h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.02;
  letter-spacing: 0;
}

.market-hero h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.92;
}

.market-hero p:not(.kicker) {
  max-width: 720px;
  margin: 1.2rem 0 0;
  color: rgba(255, 250, 241, 0.86);
  font-size: clamp(1rem, 1.8vw, 1.22rem);
}

.hero-actions,
.form-actions,
.packet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border: 1px solid var(--green-dark);
  border-radius: 4px;
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
}

.button-primary {
  background: var(--green-dark);
  color: #fff;
}

.button-secondary {
  background: rgba(255, 250, 241, 0.9);
  color: var(--green-dark);
}

.market-hero-panel {
  padding: 1rem;
  border: 1px solid rgba(255, 250, 241, 0.22);
  border-radius: 8px;
  background: rgba(15, 61, 49, 0.72);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.market-hero-panel strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.05;
}

.market-hero-panel p {
  margin: 0.6rem 0 0;
  color: rgba(255, 250, 241, 0.78);
}

.market-hero-panel dl {
  display: grid;
  gap: 0.52rem;
  margin: 1rem 0 0;
}

.market-hero-panel div {
  display: grid;
  grid-template-columns: 0.38fr 1fr;
  gap: 0.8rem;
  padding: 0.62rem 0;
  border-top: 1px solid rgba(255, 250, 241, 0.18);
}

.market-hero-panel dt {
  color: #f7d36f;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.market-hero-panel dd {
  margin: 0;
  color: rgba(255, 250, 241, 0.9);
}

.market-section,
.packet-panel {
  width: min(1120px, calc(100% - 32px));
  margin: clamp(1.3rem, 4vw, 3rem) auto;
  padding: clamp(1rem, 3vw, 1.45rem);
  border: 1px solid rgba(23, 33, 28, 0.12);
  background: rgba(255, 250, 241, 0.9);
  box-shadow: 0 16px 36px rgba(37, 29, 16, 0.08);
}

.section-heading {
  max-width: 860px;
  margin-bottom: 1rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.section-heading p:not(.kicker) {
  margin: 0.85rem 0 0;
  color: #3d493f;
  font-size: clamp(1rem, 1.5vw, 1.14rem);
}

.market-intake {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.market-intake article,
.flow-grid article,
.network-rules,
.product-card {
  border: 1px solid rgba(23, 33, 28, 0.14);
  border-radius: 8px;
  background: #fffaf1;
  box-shadow: 0 10px 24px rgba(37, 29, 16, 0.08);
}

.market-intake article,
.flow-grid article,
.network-rules {
  padding: 1rem;
}

.market-intake span,
.flow-grid span,
.product-card-category,
.cart-item-type {
  color: var(--honey);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.market-intake h2,
.flow-grid h3,
.product-card h3,
.network-rules h3 {
  margin: 0.2rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.05;
}

.market-intake h2 {
  font-size: 1.5rem;
}

.market-intake p,
.flow-grid p,
.product-card p,
.network-rules li,
.cart-summary,
.cart-empty {
  color: #3d493f;
}

.product-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.filter-button,
.text-button,
.quantity-button {
  border: 1px solid rgba(15, 61, 49, 0.18);
  border-radius: 4px;
  background: #fff;
  color: var(--green-dark);
  font-weight: 900;
  cursor: pointer;
}

.filter-button {
  min-height: 38px;
  padding: 0.5rem 0.75rem;
}

.filter-button.is-active {
  background: var(--green-dark);
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.product-card {
  display: grid;
  overflow: hidden;
}

.product-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #d9cdbb;
}

.product-card-body {
  display: grid;
  gap: 0.62rem;
  padding: 1rem;
}

.product-card h3 {
  font-size: 1.5rem;
}

.product-card p {
  margin: 0;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.product-meta span {
  padding: 0.32rem 0.5rem;
  border: 1px solid rgba(31, 106, 79, 0.16);
  border-radius: 4px;
  background: rgba(31, 106, 79, 0.06);
  color: var(--green-dark);
  font-size: 0.76rem;
  font-weight: 850;
}

.product-card .button {
  width: fit-content;
}

.order-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.75fr) minmax(0, 1.25fr);
  gap: 1rem;
  align-items: start;
}

.cart-panel,
.order-form,
.message-form {
  padding: 1rem;
  border: 1px solid rgba(15, 61, 49, 0.16);
  border-radius: 8px;
  background: #fffaf1;
}

.cart-panel-head {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: start;
}

.cart-panel h2,
.order-form h2 {
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.text-button {
  min-height: 34px;
  padding: 0.42rem 0.62rem;
}

.cart-list {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.cart-empty {
  margin: 0;
  padding: 0.8rem;
  border: 1px dashed rgba(15, 61, 49, 0.22);
  border-radius: 6px;
}

.cart-item {
  display: grid;
  gap: 0.45rem;
  padding: 0.7rem;
  border: 1px solid rgba(15, 61, 49, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.56);
}

.cart-item-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.cart-item strong {
  display: block;
  line-height: 1.12;
}

.quantity-control {
  display: inline-grid;
  grid-template-columns: 34px 42px 34px;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(15, 61, 49, 0.16);
  border-radius: 4px;
  overflow: hidden;
}

.quantity-control output {
  text-align: center;
  font-weight: 900;
}

.quantity-button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 0;
}

.cart-summary {
  margin-top: 0.85rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(15, 61, 49, 0.14);
  font-weight: 850;
}

.form-head {
  margin-bottom: 0.9rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

label,
.wide-label {
  display: grid;
  gap: 0.34rem;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(15, 61, 49, 0.22);
  border-radius: 6px;
  padding: 0.75rem 0.8rem;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

textarea {
  min-height: 128px;
  resize: vertical;
}

.wide-label {
  margin-top: 0.8rem;
}

.check-label {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.55rem;
  align-items: start;
  margin-top: 0.8rem;
  color: #3d493f;
  font-size: 0.92rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: none;
}

.check-label input {
  width: 18px;
  height: 18px;
  margin-top: 0.12rem;
  accent-color: var(--green-dark);
}

.packet-panel {
  display: grid;
  gap: 0.75rem;
  border-color: rgba(200, 133, 26, 0.26);
  background:
    linear-gradient(135deg, rgba(255, 246, 222, 0.92), rgba(238, 246, 229, 0.84)),
    #fffaf1;
}

.packet-panel[hidden] {
  display: none;
}

.packet-panel textarea {
  min-height: 220px;
  background: #111914;
  color: #f7f2e9;
  font: 0.78rem/1.45 Consolas, "Courier New", monospace;
  white-space: pre;
}

.network-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 1rem;
}

.network-rules ol {
  display: grid;
  gap: 0.65rem;
  margin: 0.7rem 0 0;
  padding-left: 1.2rem;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.market-footer {
  padding: 2rem 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

.market-footer p {
  max-width: 880px;
  margin: 0 auto;
}

.market-footer p + p {
  margin-top: 0.45rem;
}

.powered-by {
  color: var(--green);
  font-weight: 900;
  white-space: nowrap;
}

.ten32-bench-ad {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 3rem;
  padding: clamp(1rem, 2.6vw, 1.45rem);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(190px, 0.34fr) auto;
  gap: 1rem;
  align-items: center;
  border: 3px solid var(--green-dark);
  border-radius: 4px;
  background: linear-gradient(90deg, var(--amber), #fff0b8 54%, var(--paper-2));
  box-shadow: var(--shadow);
}

.ten32-bench-ad .bench-label {
  margin: 0;
  padding: 0.32rem 0.5rem;
  border-radius: 4px;
  color: #fff;
  background: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.ten32-bench-ad strong {
  display: block;
  color: var(--green-dark);
  font-size: clamp(1.18rem, 2.3vw, 1.9rem);
  line-height: 1.06;
}

.ten32-bench-ad p:last-child {
  margin: 0.35rem 0 0;
  color: #3d493f;
  font-weight: 800;
}

.ten32-bench-ad .bench-video {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 0.62rem;
  align-items: center;
  min-height: 5rem;
  padding: 0.45rem;
  border: 2px solid rgba(15, 61, 49, 0.22);
  border-radius: 4px;
  color: var(--green-dark);
  background: rgba(255, 250, 241, 0.72);
  text-decoration: none;
}

.ten32-bench-ad .bench-video img {
  width: 92px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
}

.ten32-bench-ad .bench-video b,
.ten32-bench-ad .bench-video small {
  display: block;
}

.ten32-bench-ad .bench-video b {
  font-size: 0.72rem;
  text-transform: uppercase;
}

.ten32-bench-ad .bench-video small {
  color: #3d493f;
  font-weight: 900;
}

.ten32-bench-ad .bench-video:hover,
.ten32-bench-ad .bench-video:focus-visible {
  border-color: var(--green-dark);
  background: var(--paper-2);
  outline: none;
}

.zinn-note {
  display: grid;
  gap: 0.55rem;
  padding: clamp(1.1rem, 3vw, 1.7rem);
  border: 1px solid rgba(15, 61, 49, 0.22);
  border-left: 8px solid var(--green);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255, 250, 241, 0.98), rgba(238, 246, 229, 0.9));
  box-shadow: var(--shadow);
}

.zinn-note h2,
.zinn-note p {
  margin: 0;
}

.zinn-note p:last-child {
  max-width: 960px;
  color: #3d493f;
  font-size: 1.05rem;
  font-weight: 800;
}

.honey-ad-pair {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.92fr);
  gap: 1rem;
}

.honey-ad-card {
  display: grid;
  gap: 0.8rem;
  align-content: space-between;
  min-height: 100%;
  padding: clamp(1.1rem, 3vw, 1.7rem);
  border: 1px solid rgba(200, 133, 26, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(240, 201, 96, 0.3), transparent 48%),
    var(--paper-2);
  box-shadow: var(--shadow);
}

.honey-ad-card h2,
.honey-ad-card p {
  margin: 0;
}

.honey-ad-card p:not(.kicker) {
  color: #3d493f;
  font-weight: 800;
}

.honey-ad-card-funny {
  border-color: rgba(212, 91, 48, 0.34);
  background:
    linear-gradient(135deg, rgba(212, 91, 48, 0.18), transparent 48%),
    #fff4d9;
}

.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(15, 61, 49, 0.78);
  backdrop-filter: blur(10px);
}

.video-lightbox[hidden] {
  display: none;
}

.video-lightbox-card {
  width: min(980px, 100%);
  max-height: min(92vh, 760px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34);
}

.video-lightbox-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  padding: 1rem;
}

.video-lightbox-head h2,
.video-lightbox-head .kicker {
  margin: 0;
}

.video-lightbox-close {
  min-height: 2.4rem;
  padding: 0.5rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green-dark);
  background: var(--paper-2);
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.video-lightbox-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #07150f;
}

.video-lightbox-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-lightbox-source {
  display: inline-flex;
  margin: 1rem;
  color: var(--green-dark);
  font-weight: 950;
}

.reader-tools {
  position: fixed;
  left: 0;
  top: 50%;
  z-index: 130;
  display: grid;
  grid-template-columns: auto minmax(0, 16rem);
  color: var(--green-dark);
  transform: translateY(-50%);
}

.reader-tools-toggle {
  writing-mode: vertical-rl;
  display: inline-grid;
  gap: 0.35rem;
  align-items: center;
  min-width: 2.85rem;
  min-height: 7.2rem;
  padding: 0.78rem 0.48rem;
  border: 3px solid var(--green-dark);
  border-left: 0;
  border-radius: 0 10px 10px 0;
  color: var(--green-dark);
  background: rgba(255, 250, 241, 0.9);
  box-shadow: var(--shadow);
  font: inherit;
  text-align: center;
  cursor: pointer;
}

.reader-tools-toggle span {
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.reader-tools-toggle strong {
  display: inline-grid;
  min-width: 2rem;
  min-height: 2rem;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--green-dark);
  font-size: 0.95rem;
  line-height: 1;
  writing-mode: horizontal-tb;
}

.reader-tools-toggle:hover,
.reader-tools-toggle:focus-visible,
.reader-tools.is-open .reader-tools-toggle {
  color: #fff;
  background: var(--green-dark);
  outline: none;
}

.reader-tools-toggle:hover strong,
.reader-tools-toggle:focus-visible strong,
.reader-tools.is-open .reader-tools-toggle strong {
  color: var(--green-dark);
  background: #fff;
}

.reader-tools-panel {
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 0.45rem;
  align-items: center;
  width: min(16rem, calc(100vw - 3.6rem));
  padding: 0.72rem;
  border: 3px solid var(--green-dark);
  border-left: 0;
  border-radius: 0 10px 10px 0;
  background: rgba(255, 250, 241, 0.82);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.reader-tools-panel[hidden] {
  display: none;
}

.reader-tools-panel strong {
  grid-column: 1 / -1;
  font-size: 0.82rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.reader-tools-panel button,
.reader-tools-panel [data-reader-status] {
  display: inline-grid;
  min-width: 3rem;
  min-height: 3rem;
  place-items: center;
  border-radius: 8px;
  font: inherit;
  font-weight: 950;
}

.reader-tools-panel button {
  border: 2px solid rgba(15, 61, 49, 0.2);
  color: var(--green-dark);
  background: var(--paper-2);
  cursor: pointer;
}

.reader-tools-panel button:hover,
.reader-tools-panel button:focus-visible {
  color: #fff;
  background: var(--green-dark);
  border-color: var(--green-dark);
  outline: none;
}

.reader-tools-panel [data-reader-reset] {
  grid-column: 1 / -1;
  min-height: 2.6rem;
}

.reader-tools-panel [data-reader-status] {
  color: var(--ink);
  background: rgba(240, 180, 59, 0.24);
}

@media (max-width: 980px) {
  .market-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .market-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.35rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper-2);
    box-shadow: var(--shadow);
  }

  .market-links.is-open {
    display: flex;
  }

  .market-links a {
    justify-content: flex-start;
    width: 100%;
    padding: 0.9rem 1rem;
  }

  .market-hero,
  .order-layout,
  .network-grid,
  .honey-ad-pair,
  .ten32-bench-ad {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .market-intake,
  .flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 2rem;
  }

  .market-nav {
    width: calc(100% - 16px);
  }

  .market-section,
  .packet-panel,
  .ten32-bench-ad {
    width: calc(100% - 16px);
    padding: 0.85rem;
  }

  .market-hero {
    min-height: auto;
    padding: 5rem 16px 2.8rem;
  }

  .market-hero h1 {
    font-size: clamp(2.35rem, 15vw, 4.1rem);
  }

  .product-grid,
  .market-intake,
  .flow-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .button,
  .product-card .button,
  .form-actions .button,
  .packet-actions .button,
  .ten32-bench-ad .button {
    width: 100%;
  }

  .cart-panel-head,
  .cart-item-head {
    flex-direction: column;
  }

  .reader-tools {
    top: 44%;
  }

  .reader-tools-panel {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.market-nav .reader-tools {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 3.35rem;
  left: auto;
  z-index: 95;
  display: none;
  width: min(16rem, calc(100vw - 1.5rem));
  color: var(--green-dark);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(0.7rem, -0.35rem) scale(0.98);
  transition: opacity 0.2s ease, transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.2s ease;
}

.market-nav.is-menu-open .reader-tools {
  display: block;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(0, 0) scale(1);
}

.market-nav .reader-tools-toggle {
  display: none;
}

.market-nav .reader-tools-panel {
  width: 100%;
  border: 2px solid rgba(15, 61, 49, 0.2);
  border-left: 7px solid var(--amber);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.9);
  backdrop-filter: blur(14px);
}

@media (max-width: 980px) {
  .market-links .reader-tools {
    position: static;
    display: block;
    width: 100%;
    margin-top: 0.2rem;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
}
