:root {
  --gold: #d2a02a;
  --gold-soft: #f0dfb1;
  --brown: #512d1e;
  --brown-dark: #2c1810;
  --cream: #f6f1ea;
  --paper: #fffdfb;
  --ink: #2c1810;
  --muted: #766760;
  --line: #dfd3ca;
  --green: #3f6651;
  --red: #ad5d4f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: "Avenir Next", Avenir, "Century Gothic", Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.skip-link { position: absolute; top: -80px; left: 12px; z-index: 100; padding: 12px; background: #fff; color: var(--brown); }
.skip-link:focus { top: 12px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.market-status { height: 34px; padding: 0 4.2vw; background: var(--brown-dark); color: #efe7e0; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; font-size: 10px; letter-spacing: .035em; text-transform: uppercase; }
.market-status span:nth-child(2) { text-align: center; }
.status-links { text-align: right; opacity: .72; }
.market-status i { display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: #9fe6b4; box-shadow: 0 0 0 4px rgba(159,230,180,.1); }

.site-header { height: 82px; padding: 0 4.2vw; display: flex; align-items: center; background: var(--paper); border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 310px; }
.brand img { width: 54px; height: 54px; object-fit: contain; }
.brand span { display: flex; flex-direction: column; color: var(--brown); }
.brand strong { font-size: 15px; line-height: 1.1; letter-spacing: .01em; }
.brand small { margin-top: 5px; font-size: 8px; font-weight: 700; letter-spacing: .06em; }
.site-header nav { display: flex; justify-content: center; align-self: stretch; gap: 28px; flex: 1; }
.site-header nav a { display: flex; align-items: center; position: relative; font-size: 12px; color: #6e574d; white-space: nowrap; }
.site-header nav a.active, .site-header nav a:hover { color: var(--brown); font-weight: 700; }
.site-header nav a.active::after { content: ""; position: absolute; height: 3px; background: var(--gold); left: 0; right: 0; bottom: 0; }
.header-actions { display: flex; align-items: center; gap: 14px; margin-left: 28px; font-size: 11px; font-weight: 700; }
.login-link { padding: 12px 4px; }
.primary-small { padding: 13px 18px; color: white; background: var(--brown); }

.hero { min-height: 610px; display: grid; grid-template-columns: 54% 46%; background: var(--brown-dark); color: white; }
.hero-copy { padding: 76px 6vw 0 4.2vw; }
.eyebrow { margin: 0 0 25px; color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.eyebrow::before { content: ""; display: inline-block; width: 34px; height: 2px; margin-right: 15px; vertical-align: middle; background: currentColor; }
.hero h1 { margin: 0; font-size: clamp(48px, 4.5vw, 76px); line-height: 1.04; font-weight: 500; letter-spacing: -.035em; }
.hero-lead { max-width: 730px; margin: 35px 0 0; color: #d6c9c1; font-size: 16px; line-height: 1.65; }
.hero-actions { display: flex; gap: 14px; margin-top: 38px; }
.primary, .secondary { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; padding: 0 28px; font-size: 12px; font-weight: 800; }
.primary { background: var(--gold); color: var(--brown-dark); }
.primary span { margin-left: 18px; font-size: 18px; }
.secondary { border: 1px solid rgba(255,255,255,.3); color: white; }
.primary:hover { background: #e0b544; }
.secondary:hover { border-color: var(--gold); }
.trust-row { display: flex; gap: 32px; margin-top: 65px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.15); color: #cfc1b9; font-size: 11px; }
.trust-row b { margin-right: 8px; color: var(--gold); }
.hero-image { min-height: 610px; position: relative; background-image: linear-gradient(90deg, rgba(44,24,16,.2), transparent 45%), url('../images/hero-farmer.png'); background-size: cover; background-position: center; }
.hero-float { position: absolute; right: 28px; bottom: 28px; width: 255px; padding: 21px 23px; background: rgba(255,253,251,.95); color: var(--brown); backdrop-filter: blur(7px); }
.hero-float span { display: block; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .05em; }
.hero-float strong { display: block; margin: 5px 0 3px; font-size: 30px; font-weight: 600; }
.hero-float small { color: var(--green); font-size: 10px; font-weight: 700; }

.market-board { padding: 72px 4.2vw 80px; display: grid; grid-template-columns: 290px 1fr; gap: 58px; background: var(--cream); }
.eyebrow.dark { margin-bottom: 19px; color: var(--gold); }
.board-intro h2 { margin: 0 0 20px; color: var(--brown); font-size: 36px; line-height: 1.12; font-weight: 500; letter-spacing: -.025em; }
.board-intro p:not(.eyebrow) { color: var(--muted); font-size: 13px; line-height: 1.6; }
.board-intro a { display: inline-block; margin-top: 18px; padding-bottom: 5px; border-bottom: 1px solid var(--gold); color: var(--brown); font-size: 11px; font-weight: 800; }
.board-table { background: var(--paper); border: 1px solid var(--line); }
.table-head, .market-row { display: grid; grid-template-columns: 2fr 1fr 1.2fr 1fr 36px; align-items: center; column-gap: 12px; }
.table-head { height: 46px; padding: 0 20px; border-bottom: 1px solid var(--line); color: #8e7b72; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .055em; }
.market-row { min-height: 72px; padding: 0 20px; border-bottom: 1px solid #eee6df; color: var(--muted); font-size: 12px; transition: .2s ease; }
.market-row:last-child { border-bottom: 0; }
.market-row:hover { padding-left: 25px; background: #fcf7ef; color: var(--brown); }
.commodity { display: flex; align-items: center; gap: 12px; color: var(--brown); }
.commodity i { width: 30px; height: 30px; display: grid; place-items: center; background: var(--gold-soft); color: var(--brown); font-style: normal; font-weight: 800; }
.price { display: flex; flex-direction: column; color: var(--brown); }
.price b { font-size: 13px; }
.price small { margin-top: 4px; font-size: 9px; font-weight: 800; }
.up { color: var(--green); }
.down { color: var(--red); }
.sparkline { height: 30px; display: flex; align-items: end; gap: 3px; }
.sparkline span { width: 4px; min-height: 5px; background: currentColor; }
.row-arrow { color: var(--gold); font-size: 18px; text-align: right; }

.menu-button { display: none; width: 40px; height: 40px; border: 1px solid var(--line); background: transparent; color: var(--brown); font-size: 20px; }
.section-heading { max-width: 650px; }
.section-heading h2 { margin: 0 0 18px; color: var(--brown); font-size: 44px; line-height: 1.1; font-weight: 500; letter-spacing: -.03em; }
.section-heading > p:last-child { color: var(--muted); font-size: 15px; line-height: 1.65; }
.section-heading.light h2 { color: white; }
.section-heading.light > p:last-child { color: #cdbfb7; }

.exchange-process { padding: 84px 4.2vw 92px; background: var(--brown-dark); color: white; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 54px; border-top: 1px solid rgba(255,255,255,.16); border-bottom: 1px solid rgba(255,255,255,.16); }
.process-grid article { min-height: 265px; position: relative; padding: 30px 35px 28px; border-right: 1px solid rgba(255,255,255,.16); }
.process-grid article:last-child { border-right: 0; }
.process-grid article > span { color: var(--gold); font-size: 14px; }
.process-grid h3 { margin: 45px 0 16px; font-size: 19px; font-weight: 600; }
.process-grid p { color: #cdbfb7; font-size: 13px; line-height: 1.65; }
.process-grid i { position: absolute; bottom: 28px; color: var(--gold); font-size: 20px; font-style: normal; }

.warehouse-section { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 660px; background: var(--paper); }
.warehouse-photo { min-height: 660px; position: relative; background: linear-gradient(0deg, rgba(44,24,16,.22), transparent 40%), url('../images/warehouse.png') center/cover; }
.map-card { position: absolute; right: 28px; bottom: 28px; min-width: 245px; padding: 23px; display: flex; align-items: center; gap: 17px; background: rgba(255,253,251,.94); color: var(--brown); }
.map-card b { font-size: 38px; font-weight: 500; }
.map-card span { font-size: 11px; line-height: 1.45; }
.warehouse-copy { padding: 84px 7vw 70px; }
.warehouse-copy h2 { margin: 0 0 25px; color: var(--brown); font-size: 47px; line-height: 1.08; font-weight: 500; letter-spacing: -.03em; }
.warehouse-copy > p:not(.eyebrow) { max-width: 630px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.warehouse-copy ul { margin: 36px 0 32px; padding: 0; list-style: none; }
.warehouse-copy li { padding: 16px 0; display: grid; grid-template-columns: 150px 1fr; border-bottom: 1px solid var(--line); }
.warehouse-copy li b { color: var(--brown); font-size: 13px; }
.warehouse-copy li span { color: var(--muted); font-size: 12px; }
.text-link { display: inline-block; padding-bottom: 4px; border-bottom: 1px solid var(--gold); color: var(--brown); font-size: 12px; font-weight: 800; }

.institution-section { padding: 88px 4.2vw 94px; background: var(--cream); }
.institution-section > div:first-child { display: flex; justify-content: space-between; align-items: end; }
.institution-section h2 { margin: 0; max-width: 800px; color: var(--brown); font-size: 46px; line-height: 1.12; font-weight: 500; letter-spacing: -.03em; }
.institution-lead { max-width: 820px; margin: 30px 0 52px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.institution-cards { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #d6c8bd; }
.institution-cards article { min-height: 210px; padding: 28px 38px 20px 0; border-right: 1px solid #d6c8bd; }
.institution-cards article:not(:first-child) { padding-left: 38px; }
.institution-cards article:last-child { border-right: 0; }
.institution-cards span { color: var(--gold); font-size: 13px; }
.institution-cards h3 { margin: 27px 0 10px; color: var(--brown); font-size: 20px; }
.institution-cards p { max-width: 350px; color: var(--muted); font-size: 13px; line-height: 1.6; }

.intelligence-section { padding: 88px 4.2vw 98px; background: var(--paper); }
.news-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 22px; margin-top: 50px; }
.featured-news { min-height: 420px; position: relative; overflow: hidden; }
.featured-news img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.featured-news::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(44,24,16,.93), rgba(44,24,16,.04) 70%); }
.featured-news > div { position: absolute; z-index: 1; left: 30px; right: 30px; bottom: 28px; color: white; }
.featured-news span, .news-list span { color: var(--gold); font-size: 9px; font-weight: 800; letter-spacing: .06em; }
.featured-news h3 { max-width: 690px; margin: 10px 0 17px; font-size: 28px; line-height: 1.25; font-weight: 500; }
.featured-news a, .news-list a { color: var(--gold); font-size: 10px; font-weight: 800; }
.news-list { display: grid; grid-template-rows: 1fr 1fr; gap: 22px; }
.news-list article { padding: 31px; border: 1px solid var(--line); background: #fcf9f5; }
.news-list h3 { margin: 14px 0 10px; color: var(--brown); font-size: 18px; line-height: 1.35; }
.news-list p { margin: 0 0 22px; color: var(--muted); font-size: 12px; }

.closing-cta { padding: 90px 4.2vw; text-align: center; background: var(--brown); color: white; }
.closing-cta > p { margin: 0 0 18px; color: var(--gold); font-size: 10px; font-weight: 800; letter-spacing: .07em; }
.closing-cta h2 { margin: 0; font-size: 51px; line-height: 1.08; font-weight: 500; letter-spacing: -.03em; }
.closing-cta div { display: flex; justify-content: center; gap: 12px; margin-top: 37px; }

.site-footer { padding: 60px 4.2vw 25px; display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 50px; background: var(--brown-dark); color: #ddcfc7; }
.footer-brand { display: flex; align-items: flex-start; gap: 17px; }
.footer-brand img { width: 58px; height: 58px; object-fit: contain; }
.footer-brand strong { display: block; max-width: 280px; color: white; font-size: 14px; }
.footer-brand p { max-width: 340px; margin: 10px 0 0; color: #9f8c83; font-size: 11px; line-height: 1.5; }
.site-footer > div:not(:first-child) { display: flex; flex-direction: column; gap: 10px; font-size: 11px; }
.site-footer > div > b { margin-bottom: 7px; color: var(--gold); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.site-footer a:hover { color: var(--gold); }
.footer-base { grid-column: 1 / -1; margin: 35px 0 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); color: #847168; font-size: 9px; }

.market-page-hero { padding: 55px 4.2vw 46px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: end; background: var(--cream); }
.market-page-hero h1 { margin: 0; color: var(--brown); font-size: 46px; line-height: 1.12; font-weight: 500; letter-spacing: -.03em; }
.market-page-hero > p { max-width: 660px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.terminal-shell { padding: 0 4.2vw 90px; background: var(--cream); }
.terminal-summary { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: var(--paper); }
.terminal-summary > div { min-height: 98px; padding: 20px 23px; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.terminal-summary > div:last-child { border-right: 0; }
.terminal-summary span, .terminal-summary small { color: var(--muted); font-size: 9px; }
.terminal-summary strong { margin: 10px 0 4px; color: var(--brown); font-size: 17px; }
.terminal-summary .open-state { color: var(--green); }
.terminal-summary .open-state i { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--green); }
.market-access-note { margin-top: 14px; min-height: 58px; padding: 13px 18px; display: flex; align-items: center; justify-content: space-between; gap: 25px; border: 1px solid #dbc994; background: #fbf4e3; }
.market-access-note > div { display: flex; flex-direction: column; gap: 4px; }
.market-access-note b { color: var(--brown); font-size: 10px; }
.market-access-note span { color: var(--muted); font-size: 9px; line-height: 1.45; }
.market-access-note a { flex: 0 0 auto; padding: 10px 13px; background: var(--brown); color: white; font-size: 8px; font-weight: 800; }
.positive { color: var(--green) !important; }
.negative { color: var(--red) !important; }
.terminal-layout { display: grid; grid-template-columns: 330px 1fr; margin-top: 18px; border: 1px solid var(--line); background: var(--paper); }
.market-list-panel { border-right: 1px solid var(--line); }
.market-filters { padding: 20px; display: grid; grid-template-columns: 1fr .8fr; gap: 10px; border-bottom: 1px solid var(--line); }
.market-filters label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 9px; font-weight: 700; }
.market-filters input, .market-filters select { width: 100%; height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 0; background: white; color: var(--brown); font: inherit; font-size: 10px; outline: none; }
.market-filters input:focus, .market-filters select:focus { border-color: var(--gold); }
.market-list-head { height: 38px; padding: 0 18px; display: flex; justify-content: space-between; align-items: center; color: #907f75; background: #faf6f1; font-size: 8px; text-transform: uppercase; }
.market-list button { width: 100%; min-height: 76px; padding: 13px 17px; display: grid; grid-template-columns: 1fr auto; gap: 12px; border: 0; border-bottom: 1px solid #eee5df; background: white; color: var(--brown); text-align: left; cursor: pointer; }
.market-list button > span { display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.market-list button > span:last-child { text-align: right; }
.market-list button b { font-size: 11px; }
.market-list button small { color: var(--muted); font-size: 9px; }
.market-list button.selected { position: relative; background: #fbf5e8; }
.market-list button.selected::before { content: ""; width: 3px; position: absolute; left: 0; top: 0; bottom: 0; background: var(--gold); }
.empty-market { padding: 20px; color: var(--muted); font-size: 11px; }
.market-detail-panel { padding: 30px; min-width: 0; }
.detail-title { display: flex; justify-content: space-between; align-items: flex-start; }
.detail-title p { margin: 0 0 7px; color: var(--gold); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.detail-title h1 { margin: 0; color: var(--brown); font-size: 30px; font-weight: 500; }
.detail-title > div:first-child > span { display: block; margin-top: 8px; color: var(--muted); font-size: 11px; }
.detail-quote { display: flex; flex-direction: column; text-align: right; }
.detail-quote span { color: var(--muted); font-size: 9px; }
.detail-quote strong { margin: 4px 0; color: var(--brown); font-size: 24px; font-weight: 600; }
.detail-quote small { font-size: 10px; }
.chart-card { margin-top: 28px; padding: 20px 20px 14px; border: 1px solid var(--line); }
.chart-card-head { display: flex; justify-content: space-between; }
.chart-card-head > div:first-child { display: flex; flex-direction: column; }
.chart-card-head b { color: var(--brown); font-size: 12px; }
.chart-card-head span { margin-top: 4px; color: var(--muted); font-size: 8px; }
.chart-card-head button { height: 27px; min-width: 34px; border: 1px solid var(--line); border-left: 0; background: transparent; color: var(--muted); font-size: 8px; }
.chart-card-head button:first-child { border-left: 1px solid var(--line); }
.chart-card-head button.active { background: var(--brown); color: white; }
.bar-chart { height: 230px; margin-top: 20px; padding: 10px 12px 0; display: grid; grid-template-columns: repeat(10, 1fr); gap: 9px; align-items: end; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to bottom, transparent 0, transparent 54px, #eee5df 55px); }
.bar-chart > div { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; }
.bar-chart > div span { width: 62%; min-width: 9px; background: var(--brown); }
.bar-chart > div.last span { background: var(--gold); }
.bar-chart small { color: #9b8b83; font-size: 7px; }
.chart-caption { display: flex; justify-content: space-between; margin-top: 12px; color: var(--muted); font-size: 8px; }
.chart-caption b { color: var(--brown); }
.market-bottom-grid { margin-top: 18px; display: grid; grid-template-columns: 1.35fr .85fr; gap: 18px; }
.order-book, .lot-card { padding: 18px; border: 1px solid var(--line); }
.panel-title { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.panel-title > div { display: flex; flex-direction: column; gap: 3px; }
.panel-title b { color: var(--brown); font-size: 11px; }
.panel-title span { color: var(--muted); font-size: 8px; }
.panel-title i { color: var(--green); font-size: 8px; font-style: normal; font-weight: 800; }
.book-head, .book-row { display: grid; grid-template-columns: 1fr 1fr 1fr; text-align: right; }
.book-head { padding: 11px 0 7px; color: var(--muted); font-size: 8px; text-transform: uppercase; }
.book-row { padding: 7px 0; border-top: 1px solid #f1eae5; color: var(--muted); font-size: 10px; }
.bid { color: var(--green); font-weight: 700; }
.ask { color: var(--red); font-weight: 700; }
.lot-card dl { margin: 10px 0 15px; }
.lot-card dl div { padding: 8px 0; display: flex; justify-content: space-between; border-bottom: 1px solid #f0e8e1; font-size: 9px; }
.lot-card dt { color: var(--muted); }
.lot-card dd { margin: 0; color: var(--brown); font-weight: 700; }
.trade-button { min-height: 46px; padding: 0 17px; display: inline-flex; justify-content: space-between; align-items: center; gap: 20px; border: 0; background: var(--gold); color: var(--brown-dark); font-size: 10px; font-weight: 800; cursor: pointer; }
.trade-button.full { width: 100%; }
.trade-button:disabled { opacity: .55; cursor: wait; }

.trade-page { padding: 62px 4.2vw 85px; display: grid; grid-template-columns: 1.1fr .8fr; gap: 7vw; background: var(--cream); }
.trade-context > a { display: inline-block; margin-bottom: 46px; color: var(--muted); font-size: 10px; }
.trade-context h1 { margin: 0; color: var(--brown); font-size: 50px; font-weight: 500; letter-spacing: -.03em; }
.trade-context h2 { margin: 8px 0 30px; color: var(--muted); font-size: 21px; font-weight: 400; }
.trade-quote { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trade-quote > div { padding: 21px 20px 21px 0; display: flex; flex-direction: column; gap: 5px; }
.trade-quote > div + div { padding-left: 25px; border-left: 1px solid var(--line); }
.trade-quote span, .trade-quote small { color: var(--muted); font-size: 9px; }
.trade-quote b { color: var(--brown); font-size: 21px; }
.trade-quote small:first-letter { color: var(--green); }
.trade-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 26px; background: var(--line); border: 1px solid var(--line); }
.trade-specs > div { min-height: 76px; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: var(--paper); }
.trade-specs span { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.trade-specs b { color: var(--brown); font-size: 11px; }
.quality-note { margin-top: 26px; padding: 20px 22px; border-left: 3px solid var(--gold); background: #eee4d6; }
.quality-note b { color: var(--brown); font-size: 11px; }
.quality-note p { margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.bid-ticket, .bid-success { align-self: start; padding: 30px; border: 1px solid var(--line); background: var(--paper); box-shadow: 0 18px 45px rgba(67,43,32,.08); }
.ticket-title { display: flex; justify-content: space-between; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.ticket-title span { color: var(--gold); font-size: 8px; font-weight: 800; }
.ticket-title h2 { margin: 7px 0 0; color: var(--brown); font-size: 20px; }
.ticket-title i { color: var(--green); font-size: 8px; font-style: normal; font-weight: 800; }
.bid-ticket > label { margin-top: 23px; display: block; }
.bid-ticket label > span { display: block; margin-bottom: 7px; color: var(--brown); font-size: 10px; font-weight: 700; }
.bid-ticket label > small { display: block; margin-top: 6px; color: var(--muted); font-size: 8px; }
.money-field { height: 52px; display: flex; align-items: center; border: 1px solid var(--line); }
.money-field b { padding: 0 15px; color: var(--brown); font-size: 11px; }
.money-field input { width: 100%; height: 100%; padding: 0 10px; border: 0; outline: none; background: transparent; color: var(--brown); font: inherit; font-size: 18px; }
.ticket-summary { margin: 24px 0 18px; border-top: 1px solid var(--line); }
.ticket-summary div { padding: 11px 0; display: flex; justify-content: space-between; border-bottom: 1px solid #eee5df; font-size: 9px; }
.ticket-summary span { color: var(--muted); }
.ticket-summary b { color: var(--brown); }
.ticket-note { color: var(--muted); font-size: 9px; line-height: 1.5; }
.form-error { padding: 10px; color: var(--red); background: #f8ebe8; font-size: 9px; }
.security-line { margin-top: 13px; display: flex; justify-content: space-between; color: var(--green); font-size: 8px; }
.bid-success { min-height: 410px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.bid-success > i { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: #dce9e1; color: var(--green); font-size: 24px; font-style: normal; }
.bid-success p { margin: 18px 0 4px; color: var(--green); font-size: 10px; font-weight: 800; }
.bid-success h2 { margin: 5px 0 14px; color: var(--brown); font-size: 25px; }
.bid-success span { max-width: 330px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.bid-success a { margin-top: 23px; color: var(--brown); font-size: 10px; font-weight: 800; border-bottom: 1px solid var(--gold); }

.register-hero { padding: 80px 4.2vw; display: grid; grid-template-columns: .9fr 1.1fr; gap: 8vw; background: var(--brown-dark); color: white; }
.register-hero h1 { margin: 0; font-size: 52px; line-height: 1.08; font-weight: 500; letter-spacing: -.03em; }
.register-hero > div:first-child > p:last-child { max-width: 560px; margin-top: 30px; color: #cdbfb7; font-size: 14px; line-height: 1.7; }
.register-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,.16); }
.register-steps article { min-height: 135px; padding: 22px; display: flex; gap: 16px; background: var(--brown-dark); }
.register-steps article > span { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.2); color: var(--gold); font-size: 10px; }
.register-steps h3 { margin: 4px 0 7px; font-size: 13px; }
.register-steps p { margin: 0; color: #bbaa9f; font-size: 10px; line-height: 1.5; }
.register-body { padding: 75px 4.2vw 90px; display: grid; grid-template-columns: 1fr 380px; gap: 65px; background: var(--cream); }
.role-picker > p, .registration-card > span { color: var(--gold); font-size: 9px; font-weight: 800; letter-spacing: .06em; }
.role-picker > h2 { margin: 12px 0 30px; color: var(--brown); font-size: 36px; font-weight: 500; }
.role-picker > div { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.role-picker article { min-height: 180px; padding: 24px; border: 1px solid var(--line); background: var(--paper); }
.role-picker article.featured { border-color: var(--gold); background: #fbf4e3; }
.role-picker article > span { display: block; margin-bottom: 20px; color: var(--gold); font-size: 8px; font-weight: 800; }
.role-picker h3 { margin: 0 0 13px; color: var(--brown); font-size: 16px; }
.role-picker article p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.registration-card { align-self: start; padding: 32px; background: var(--brown); color: white; }
.registration-card h2 { margin: 12px 0 18px; font-size: 27px; font-weight: 500; }
.registration-card p { color: #d0c1b9; font-size: 11px; line-height: 1.6; }
.registration-card ul { margin: 22px 0 26px; padding: 0; list-style: none; }
.registration-card li { padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.12); color: #f1e8e2; font-size: 10px; }
.registration-card li::before { content: "✓"; margin-right: 9px; color: var(--gold); }
.registration-card > small { display: block; margin-top: 15px; color: #a9958a; font-size: 8px; line-height: 1.5; }

.account-shell { min-height: calc(100vh - 116px); display: grid; grid-template-columns: 260px 1fr; background: var(--cream); }
.account-sidebar { padding: 30px 22px; display: flex; flex-direction: column; background: var(--brown-dark); color: white; }
.account-person { display: flex; align-items: center; gap: 12px; padding-bottom: 25px; border-bottom: 1px solid rgba(255,255,255,.12); }
.account-person > i { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--brown-dark); font-style: normal; font-weight: 800; }
.account-person > div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.account-person b { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-person span { color: #a9958a; font-size: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-sidebar nav { display: flex; flex-direction: column; margin-top: 25px; }
.account-sidebar nav a { padding: 12px 10px; border-left: 2px solid transparent; color: #bbaaa0; font-size: 10px; }
.account-sidebar nav a.active { border-left-color: var(--gold); background: rgba(255,255,255,.05); color: white; }
.signout { margin-top: auto; padding: 12px 10px; color: #9d8980; font-size: 9px; }
.account-content { padding: 44px 4vw 80px; min-width: 0; }
.account-welcome { display: flex; justify-content: space-between; align-items: center; }
.account-welcome p { margin: 0 0 8px; color: var(--gold); font-size: 8px; font-weight: 800; }
.account-welcome h1 { margin: 0; color: var(--brown); font-size: 34px; font-weight: 500; }
.account-welcome span { display: block; margin-top: 8px; color: var(--muted); font-size: 11px; }
.account-welcome > a { padding: 14px 18px; background: var(--brown); color: white; font-size: 9px; font-weight: 800; }
.account-metrics { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 30px; border: 1px solid var(--line); background: var(--paper); }
.account-metrics article { min-height: 105px; padding: 20px; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.account-metrics article:last-child { border-right: 0; }
.account-metrics span, .account-metrics small { color: var(--muted); font-size: 8px; }
.account-metrics b { margin: 10px 0 5px; color: var(--brown); font-size: 22px; }
.account-metrics b.verified { color: var(--green); font-size: 16px; }
.account-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 18px; margin-top: 20px; }
.account-panel { min-height: 360px; padding: 22px; border: 1px solid var(--line); background: var(--paper); }
.account-panel-head { display: flex; justify-content: space-between; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.account-panel-head > div { display: flex; flex-direction: column; gap: 4px; }
.account-panel-head b { color: var(--brown); font-size: 12px; }
.account-panel-head span { color: var(--muted); font-size: 8px; }
.account-panel-head a { color: var(--brown); font-size: 8px; font-weight: 800; }
.account-loading, .empty-account { margin: 60px auto; text-align: center; color: var(--muted); font-size: 10px; }
.empty-account b { color: var(--brown); font-size: 12px; }
.empty-account a { color: var(--brown); font-weight: 800; border-bottom: 1px solid var(--gold); }
.account-bid-head, .account-bid-row { display: grid; grid-template-columns: 1.1fr 1.3fr .8fr .8fr .6fr; gap: 8px; align-items: center; }
.account-bid-head { padding: 14px 5px 8px; color: var(--muted); font-size: 7px; text-transform: uppercase; }
.account-bid-row { padding: 13px 5px; border-top: 1px solid #eee5df; color: var(--muted); font-size: 8px; }
.account-bid-row b { color: var(--brown); }
.account-bid-row i { padding: 4px; text-align: center; background: #e4eee7; color: var(--green); font-style: normal; }
.receipt-row { padding: 17px 0; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid #eee5df; }
.receipt-row > i { width: 34px; height: 34px; display: grid; place-items: center; background: #f2e6c4; color: var(--brown); font-size: 8px; font-style: normal; font-weight: 800; }
.receipt-row > div { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.receipt-row b { color: var(--brown); font-size: 10px; }
.receipt-row span { color: var(--muted); font-size: 8px; }
.receipt-row strong { color: var(--green); font-size: 7px; text-transform: uppercase; }
.panel-link { display: inline-block; margin-top: 22px; color: var(--brown); font-size: 8px; font-weight: 800; }

/* WordPress public market and editorial views. */
.bmm-empty-row, .bmm-empty-news { padding: 30px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.bmm-empty-news { margin-top: 32px; border: 1px solid var(--line); }
.bmm-market-page, .bmm-lot-page, .bmm-editorial-page { background: var(--cream); }
.bmm-market-summary { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: var(--paper); }
.bmm-market-summary > div { min-height: 105px; padding: 24px; border-right: 1px solid var(--line); }
.bmm-market-summary > div:last-child { border-right: 0; }
.bmm-market-summary span { display: block; color: var(--muted); font-size: 13px; }
.bmm-market-summary strong { display: block; margin-top: 12px; color: var(--brown); font-size: 23px; }
.bmm-market-controls { display: flex; gap: 16px; margin: 26px 0; }
.bmm-market-controls label { display: flex; flex-direction: column; flex: 1; gap: 8px; color: var(--brown); font-size: 14px; font-weight: 700; }
.bmm-market-controls label:last-child { max-width: 270px; }
.bmm-market-controls input, .bmm-market-controls select { height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 0; background: var(--paper); color: var(--brown); font: inherit; font-weight: 400; }
.bmm-market-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.bmm-market-card { min-height: 240px; padding: 25px; border: 1px solid var(--line); background: var(--paper); }
.bmm-card-location { margin: 0; color: #986d0f; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.bmm-market-card h2 { margin: 13px 0 6px; color: var(--brown); font-size: 23px; font-weight: 500; line-height: 1.2; }
.bmm-market-card h2 a:hover { color: #986d0f; }
.bmm-card-grade { color: var(--muted); font-size: 14px; }
.bmm-card-quote { display: flex; justify-content: space-between; align-items: baseline; gap: 15px; margin: 25px 0 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.bmm-card-quote strong { color: var(--brown); font-size: 25px; }
.bmm-card-quote small { margin-left: 2px; color: var(--muted); font-size: 13px; font-weight: 400; }
.bmm-card-quote > span { font-size: 14px; font-weight: 700; }
.bmm-card-bottom { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12px; }
.bmm-card-bottom a { color: var(--brown); font-weight: 800; white-space: nowrap; }
.bmm-market-empty, .bmm-market-no-results { padding: 54px 30px; border: 1px solid var(--line); background: var(--paper); color: var(--muted); font-size: 16px; }
.bmm-market-empty h2 { color: var(--brown); font-size: 30px; font-weight: 500; }
.bmm-lot-page { padding: 55px 4.2vw 95px; }
.bmm-lot-wrap { max-width: 1440px; margin: 0 auto; }
.bmm-back-link { display: inline-block; margin-bottom: 38px; color: var(--brown); font-size: 14px; font-weight: 700; }
.bmm-lot-page .detail-title { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.bmm-lot-page .detail-title h1 { font-size: clamp(36px, 4vw, 56px); }
.bmm-lot-page .detail-title p, .bmm-lot-page .detail-quote span { font-size: 13px; }
.bmm-lot-page .detail-title > div:first-child > span, .bmm-lot-page .detail-quote small { font-size: 14px; }
.bmm-lot-page .detail-quote strong { font-size: 34px; }
.bmm-lot-page .detail-quote strong small { margin-left: 3px; color: var(--muted); font-size: 15px; font-weight: 400; }
.bmm-lot-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(270px, .8fr); gap: 24px; margin-top: 30px; }
.bmm-lot-page .chart-card { margin-top: 0; background: var(--paper); }
.bmm-lot-page .chart-card-head b, .bmm-lot-page .panel-title b { font-size: 18px; }
.bmm-lot-page .chart-card-head span, .bmm-lot-page .panel-title span { font-size: 13px; }
.bmm-history-chart { display: block; padding-bottom: 0; }
.bmm-history-chart .bmm-history-bars { display: flex; align-items: end; justify-content: space-around; gap: 8px; height: 100%; }
.bmm-history-chart .bmm-history-bars > div { height: 100%; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; }
.bmm-history-chart .bmm-history-bars > div span { display: block; width: min(62%, 44px); min-width: 8px; background: var(--brown); }
.bmm-history-chart .bmm-history-bars > div.last span { background: var(--gold); }
.bmm-history-chart .bmm-history-bars small { font-size: 12px; }
.bmm-lot-page .chart-caption { font-size: 13px; }
.bmm-order-book, .bmm-lot-specs { margin-top: 24px; padding: 22px; border: 1px solid var(--line); background: var(--paper); }
.bmm-lot-specs { margin-top: 0; align-self: start; }
.bmm-lot-page .book-head, .bmm-lot-page .book-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; text-align: right; font-size: 14px; }
.bmm-lot-page .book-head { margin-top: 20px; font-size: 12px; }
.bmm-lot-page .book-head span:first-child, .bmm-lot-page .book-row span:first-child { text-align: left; }
.bmm-lot-page .lot-card dl div { font-size: 14px; }
.bmm-lot-page .trade-button { width: 100%; font-size: 14px; }
.bmm-data-empty, .bmm-trade-pending { margin: 20px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.bmm-lot-description { margin-top: 30px; padding: 30px; background: var(--paper); color: var(--muted); font-size: 16px; line-height: 1.7; }
.bmm-lot-description h2 { color: var(--brown); }
.bmm-editorial-page { min-height: 55vh; padding: 70px 4.2vw 95px; }
.bmm-editorial-wrap { max-width: 1180px; margin: 0 auto; }
.bmm-editorial-wrap > h1 { margin: 0 0 35px; color: var(--brown); font-size: clamp(38px, 5vw, 60px); font-weight: 500; }
.bmm-editorial-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.bmm-editorial-card { background: var(--paper); border: 1px solid var(--line); }
.bmm-editorial-card a { display: block; padding: 22px; }
.bmm-editorial-card img { display: block; width: calc(100% + 44px); height: 190px; margin: -22px -22px 20px; object-fit: cover; }
.bmm-editorial-card span { color: #986d0f; font-size: 12px; font-weight: 800; }
.bmm-editorial-card h2 { color: var(--brown); font-size: 23px; font-weight: 500; }
.bmm-editorial-card p, .bmm-editorial-wrap > p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.bmm-editorial-card b { color: var(--brown); font-size: 13px; }
.bmm-page-content { max-width: 780px; color: var(--ink); font-size: 17px; line-height: 1.75; }
.bmm-page-content a { color: #986d0f; text-decoration: underline; }
.bmm-page-content img, .bmm-article-image { max-width: 100%; height: auto; }
.bmm-article-image { display: block; width: 100%; margin-bottom: 38px; object-fit: cover; }
.bmm-pagination { margin-top: 35px; }
.register-body .registration-card a:not(.trade-button) { color: var(--gold); text-decoration: underline; }
.register-body + .bmm-page-content { max-width: none; padding: 30px 4.2vw 80px; }

@media (max-width: 1050px) {
  .bmm-market-grid, .bmm-editorial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bmm-lot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .bmm-market-summary { grid-template-columns: 1fr; }
  .bmm-market-summary > div { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .bmm-market-summary > div:last-child { border-bottom: 0; }
  .bmm-market-controls { flex-direction: column; }
  .bmm-market-controls label:last-child { max-width: none; }
  .bmm-market-grid, .bmm-editorial-grid { grid-template-columns: 1fr; }
  .bmm-lot-page .detail-title { flex-direction: column; gap: 25px; }
  .bmm-lot-page .detail-quote { text-align: left; }
  .bmm-lot-page .chart-caption { gap: 10px; flex-wrap: wrap; }
  .bmm-card-bottom { flex-direction: column; }
}

@media (max-width: 1120px) {
  .site-header nav { display: none; }
  .site-header nav.open { position: absolute; top: 82px; left: 0; right: 0; padding: 20px 4.2vw; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 15px 30px rgba(44,24,16,.1); }
  .site-header nav.open a { min-height: 42px; }
  .site-header nav.open a.active::after { display: none; }
  .menu-button { display: block; }
  .brand { flex: 1; }
  .hero { grid-template-columns: 58% 42%; }
  .trust-row { flex-wrap: wrap; }
  .warehouse-copy { padding: 70px 5vw; }
  .terminal-layout { grid-template-columns: 280px 1fr; }
  .market-bottom-grid { grid-template-columns: 1fr; }
  .account-metrics { grid-template-columns: 1fr 1fr; }
  .account-metrics article:nth-child(2) { border-right: 0; }
  .account-metrics article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .account-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .market-status { grid-template-columns: 1fr; height: 30px; }
  .market-status span:not(:first-child) { display: none; }
  .site-header { height: 72px; padding: 0 20px; }
  .site-header nav.open { top: 72px; grid-template-columns: 1fr; }
  .brand { min-width: 0; }
  .brand img { width: 44px; height: 44px; }
  .brand strong { font-size: 11px; }
  .header-actions .login-link { display: none; }
  .primary-small { padding: 12px; }
  .menu-button { width: 38px; height: 38px; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 54px 24px 52px; }
  .hero h1 { font-size: 44px; }
  .hero-lead { font-size: 14px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .trust-row { margin-top: 45px; gap: 18px; }
  .hero-image { min-height: 420px; background-position: 60% center; }
  .market-board { padding: 54px 20px; grid-template-columns: 1fr; gap: 28px; }
  .table-head { display: none; }
  .market-row { grid-template-columns: 1.6fr .9fr .7fr 26px; padding: 14px; }
  .market-row > span:nth-child(2) { display: none; }
  .commodity i { display: none; }
  .section-heading h2, .warehouse-copy h2, .institution-section h2 { font-size: 36px; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-grid article:nth-child(2) { border-right: 0; }
  .process-grid article:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.16); }
  .warehouse-section { grid-template-columns: 1fr; }
  .warehouse-photo { min-height: 430px; }
  .warehouse-copy { padding: 55px 24px; }
  .warehouse-copy li { grid-template-columns: 1fr; gap: 6px; }
  .institution-section, .intelligence-section, .exchange-process { padding: 60px 24px; }
  .institution-cards { grid-template-columns: 1fr; }
  .institution-cards article, .institution-cards article:not(:first-child) { min-height: 160px; padding: 25px 0; border-right: 0; border-bottom: 1px solid #d6c8bd; }
  .news-grid { grid-template-columns: 1fr; }
  .featured-news { min-height: 390px; }
  .closing-cta { padding: 70px 24px; }
  .closing-cta h2 { font-size: 39px; }
  .closing-cta div { flex-direction: column; }
  .site-footer { grid-template-columns: 1fr 1fr; padding: 50px 24px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .market-page-hero { grid-template-columns: 1fr; padding: 45px 24px 35px; gap: 20px; }
  .market-page-hero h1 { font-size: 38px; }
  .terminal-shell { padding: 0 20px 60px; }
  .terminal-summary { grid-template-columns: 1fr 1fr; }
  .terminal-summary > div:nth-child(2) { border-right: 0; }
  .terminal-summary > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .terminal-layout { grid-template-columns: 1fr; }
  .market-access-note { align-items: flex-start; flex-direction: column; gap: 12px; }
  .market-list-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .market-list { max-height: 320px; overflow-y: auto; }
  .market-detail-panel { padding: 22px 16px; }
  .detail-title { gap: 15px; }
  .detail-title h1 { font-size: 25px; }
  .detail-quote strong { font-size: 18px; }
  .bar-chart { gap: 5px; height: 200px; }
  .trade-page { grid-template-columns: 1fr; padding: 45px 24px 65px; }
  .trade-context h1 { font-size: 41px; }
  .register-hero, .register-body { grid-template-columns: 1fr; }
  .register-hero { padding: 60px 24px; }
  .register-hero h1 { font-size: 43px; }
  .register-steps { margin-top: 30px; }
  .register-body { padding: 55px 24px; }
  .registration-card { width: 100%; }
  .account-shell { grid-template-columns: 1fr; }
  .account-sidebar { padding: 20px; }
  .account-sidebar nav { flex-direction: row; overflow-x: auto; }
  .account-sidebar nav a { white-space: nowrap; }
  .signout { display: none; }
  .account-content { padding: 35px 20px 60px; }
  .account-welcome { align-items: flex-start; gap: 20px; }
  .account-welcome > a { display: none; }
  .account-bids { overflow-x: auto; }
  .account-bid-head, .account-bid-row { min-width: 620px; }
}

@media (max-width: 480px) {
  .brand span { display: none; }
  .header-actions { margin-left: 10px; }
  .process-grid, .register-steps, .role-picker > div, .trade-specs, .trade-quote, .account-metrics { grid-template-columns: 1fr; }
  .process-grid article { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.16); }
  .register-steps article { min-height: 115px; }
  .trade-quote > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .account-metrics article { border-right: 0; border-bottom: 1px solid var(--line); }
  .site-footer { grid-template-columns: 1fr; }
}
