@charset "UTF-8";

:root {
  color-scheme: light;
  --orange: #f36d16;
  --orange-dark: #e95d09;
  --ink: #262b30;
  --muted: #899098;
  --line: #e9edf0;
  --canvas: #f4f6f8;
  --green: #169b6a;
  --red: #ef382c;
  --gutter: clamp(1rem, 2.2vw, 2rem);
  --card-gap: clamp(.65rem, 1vw, 1rem);
  --card-radius: .75rem;
  font-size: clamp(16px, calc(15px + .1vw), 18px);
  font-family: "DM Sans", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { min-width: 20rem; scroll-behavior: smooth; scroll-padding-top: 7rem; }
body { margin: 0; background: var(--canvas); font-size: clamp(.875rem, .83rem + .12vw, 1rem); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }

.header-container, .page-container, .hero-inner, .category-inner, .footer-inner {
  width: calc(100% - var(--gutter) - var(--gutter));
  max-width: 1600px;
  margin-inline: auto;
}
.site-header { position: relative; z-index: 10; background: #fff; box-shadow: 0 .125rem .55rem #292d3210; }
.utility-bar { min-height: 2.125rem; border-bottom: 1px solid #f2f1ef; }
.utility-inner { min-height: inherit; display: flex; align-items: center; justify-content: flex-end; gap: clamp(.6rem, 1.3vw, 1.125rem); color: #686c70; font-size: .6875rem; }
.utility-promise { margin-right: auto; color: #e76514; }
.utility-promise b { margin-right: .3rem; font-size: .85rem; }
.nav-row { min-height: 4.25rem; display: flex; align-items: center; justify-content: space-between; gap: clamp(.75rem, 1.5vw, 1.5rem); }
.brand { flex: 0 1 auto; display: flex; align-items: center; min-width: 0; width: clamp(10rem, 18vw, 17.5rem); }
.brand img { display: block; width: 100%; height: auto; aspect-ratio: 25 / 8; object-fit: contain; }
.main-nav { min-width: 0; min-height: 4.25rem; display: flex; align-items: center; justify-content: center; gap: clamp(.45rem, 1.2vw, 1.25rem); margin: 0; }
.main-nav a { min-height: 2.3rem; display: flex; align-items: center; gap: .25rem; padding: 0 .2rem; color: #32373b; font-size: clamp(.68rem, .8vw, .78rem); white-space: nowrap; }
.main-nav a:hover { color: var(--orange); }
.main-nav a.nav-active { padding-inline: .75rem; border-radius: .45rem; color: #fff; background: linear-gradient(110deg,#ff8a24,#f56409); box-shadow: 0 .2rem .55rem #ef762333; }
.main-nav a.nav-active span { font-size: .95rem; }
.header-tools { flex: 0 0 auto; display: flex; align-items: center; gap: .6rem; }
.search-box { width: clamp(9rem, 15vw, 13.75rem); min-height: 2.25rem; display: flex; align-items: center; gap: .45rem; padding: 0 .65rem; border: 1px solid #f1dfd2; border-radius: .5rem; color: #aaa; font-size: 1.1rem; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; color: #50565a; font-size: .65rem; }
.search-box input::placeholder { color: #aaadb0; }
.login-button { min-height: 2.25rem; display: grid; place-items: center; padding-inline: clamp(.65rem, 1.1vw, 1rem); border-radius: .5rem; background: linear-gradient(110deg,#ff831e,#f45700); color: #fff; font-size: .7rem; font-weight: 600; white-space: nowrap; box-shadow: 0 .2rem .55rem #ec661e26; }

.hero-banner { position: relative; display: grid; grid-template-columns: minmax(0,1fr); grid-template-rows: 1fr; width: calc(100% - var(--gutter) - var(--gutter)); max-width: 1600px; margin-inline: auto; aspect-ratio: 4.7 / 1; min-height: 15rem; max-height: 22rem; overflow: hidden; background: #f9d5ab; isolation: isolate; }
.hero-art { grid-area: 1 / 1; z-index: 0; width: 100%; min-width: 0; height: 100%; margin: 0; object-fit: cover; object-position: center 54%; }
.hero-art-shade { grid-area: 1 / 1; z-index: 1; width: 100%; height: 100%; background: linear-gradient(90deg,transparent 0%,#fff6 34%,#fff2 58%,transparent 83%); pointer-events: none; }
.hero-inner { grid-area: 1 / 1; z-index: 2; position: relative; width: 100%; min-width: 0; height: 100%; margin: 0; }
.hero-copy { position: absolute; z-index: 2; left: 37%; top: clamp(1.6rem, 3vw, 2.75rem); }
.hero-kicker { display: flex; align-items: center; gap: .45rem; color: #8f5b38; font: .55rem "DM Mono",monospace; letter-spacing: .07rem; }
.hero-kicker i { width: 1rem; height: 2px; background: #ee791f; }
.hero-copy h1 { margin: .6rem 0 .3rem; color: #512616; font-size: clamp(2rem, 3vw, 4.2rem); font-weight: 800; line-height: 1.16; letter-spacing: .04rem; text-shadow: 0 2px #fff8; }
.hero-copy h1 em { color: #3e251e; font-style: normal; }
.hero-copy p { margin: .55rem 0 .9rem; color: #755443; font-size: clamp(.68rem, .85vw, .8rem); letter-spacing: .1rem; }
.hero-cta { min-height: 1.9rem; display: inline-flex; align-items: center; gap: 1.1rem; padding: 0 .8rem; border-radius: .35rem; background: #f37419; color: #fff; font-size: .65rem; box-shadow: 0 .25rem .6rem #a64e2430; }
.hero-cta span { font-size: .9rem; }
.hero-slogan { position: absolute; right: 2.5%; top: 2rem; padding: .45rem .8rem; border: 1px solid #ffffffad; border-radius: 2rem; background: #ffffff91; color: #974719; font-size: clamp(.75rem, 1vw, .9rem); font-weight: 600; letter-spacing: .06rem; }
.hero-slogan b { margin: 0 .35rem; color: #ef7b27; }
.hero-shortcuts { position: absolute; right: 1.5%; bottom: .75rem; width: min(31rem, 43%); min-height: 4.25rem; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); align-items: center; border: 1px solid #ffffffc9; border-radius: .85rem; background: #ffffffd9; box-shadow: 0 .35rem 1rem #4d5a5d16; backdrop-filter: blur(8px); }
.hero-shortcuts a { min-height: 2.7rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; border-right: 1px solid #e8e2dc; color: #333; font-size: .62rem; }
.hero-shortcuts a:last-child { border: 0; }
.hero-shortcuts i { color: var(--orange); font-size: 1.1rem; font-style: normal; font-weight: 700; }

.category-rail { position: relative; z-index: 4; padding: .6rem 0; background: #fff; box-shadow: 0 .25rem .7rem #1d28300a; }
.category-inner { min-height: 3rem; display: flex; align-items: center; justify-content: space-between; gap: .25rem; }
.category-link, .category-more { min-width: 0; min-height: 2.8rem; display: flex; flex: 1 1 auto; align-items: center; justify-content: center; gap: clamp(.3rem, .7vw, .7rem); padding: .3rem clamp(.35rem, .8vw, .8rem); border-right: 1px solid #f0f1f2; color: #3b4247; font-size: clamp(.7rem, .85vw, .8rem); white-space: nowrap; }
.category-link:hover, .category-selected { border-radius: .5rem; background: linear-gradient(110deg,#ff8b2a,#f45c08); color: white; }
.category-icon { width: clamp(1.8rem, 2.5vw, 2.6rem); aspect-ratio: 1; display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #fff0e6; color: #e97925; }
.category-icon i { font-size: .8rem; font-style: normal; font-weight: 700; }
.category-icon.mangosteen { background: #f4edf5; color: #8e698a; }
.category-icon.longan { background: #f7efe7; color: #ae8050; }
.category-icon.coconut { background: #f0f2ec; color: #73866b; }
.category-icon.banana { background: #fff6d9; color: #c49d26; }
.category-icon.jackfruit { background: #fff0df; color: #d58a31; }
.category-icon.dragonfruit { background: #fae9ed; color: #c86c81; }
.category-icon.mango { background: #fff0e3; color: #db852f; }
.category-selected .category-icon { background: #ffffff38; color: #fff; }
.category-more { flex: 0 0 auto; border: 0; }
.category-more b { color: var(--orange); font-size: 1.05rem; }

.dashboard { padding-top: clamp(.7rem, 1.1vw, 1rem); }
.dashboard-top, .dashboard-middle, .dashboard-bottom { display: grid; gap: var(--card-gap); margin-bottom: var(--card-gap); }
.dashboard-top, .dashboard-middle, .dashboard-bottom { grid-template-columns: repeat(12,minmax(0,1fr)); }
.dashboard-top > .durian-card { grid-column: span 4; }
.dashboard-top > .graph-card { grid-column: span 5; }
.dashboard-top > .arrivals-card { grid-column: span 3; }
.dashboard-middle > .table-card { grid-column: span 5; }
.dashboard-middle > .volume-card { grid-column: span 4; }
.dashboard-middle > .market-table-card { grid-column: span 3; }
.dashboard-bottom > .customs-card { grid-column: span 5; }
.dashboard-bottom > .news-card { grid-column: span 4; }
.dashboard-bottom > .utility-column { grid-column: span 3; }
.data-card { min-width: 0; overflow: hidden; border: 1px solid #edf0f2; border-radius: var(--card-radius); background: #fff; box-shadow: 0 .2rem .75rem #2a30380a; }
.dashboard-top > .data-card { min-height: clamp(16rem, 18vw, 20rem); }
.dashboard-middle > .data-card { min-height: clamp(14rem, 16vw, 18rem); }
.dashboard-bottom > .data-card, .utility-column { min-height: clamp(17rem, 18vw, 20rem); }
.card-heading { min-height: 2.45rem; display: flex; align-items: center; gap: .5rem; padding: .35rem clamp(.7rem, 1vw, 1rem); }
.card-heading h2 { min-width: 0; display: flex; align-items: center; gap: .4rem; margin: 0; color: #293137; font-size: clamp(.78rem, .9vw, .88rem); font-weight: 700; white-space: nowrap; }
.card-heading h2 small { color: #737d83; font-size: .68em; font-weight: 400; }
.card-heading > a { margin-left: auto; color: #929ba1; font-size: .65rem; white-space: nowrap; }
.card-heading > a b { margin-left: .2rem; font-size: .9rem; }
.heading-icon { color: var(--orange); font-size: .95rem; }

.durian-card { display: flex; flex-direction: column; }
.durian-main { min-height: 8.4rem; display: flex; flex: 1; align-items: center; gap: clamp(.6rem, 1vw, 1rem); padding: .3rem clamp(.85rem, 1.2vw, 1.2rem); }
.durian-visual { position: relative; width: clamp(6.25rem, 9vw, 8rem); aspect-ratio: 1.15; display: grid; flex: 0 0 auto; place-items: center; }
.durian-shell { width: 72%; aspect-ratio: 1; display: grid; place-items: center; border: .35rem dotted #819d32; border-radius: 48% 52% 48% 52%; background: radial-gradient(circle at 36% 35%,#d5dc69,#8ba738 65%,#638333); color: #fffbe3; font-size: 1.65rem; font-weight: 800; text-shadow: 0 1px 3px #66732f; box-shadow: 0 .4rem .7rem #697f3328; }
.durian-leaf { position: absolute; top: 9%; left: 52%; width: 22%; height: 14%; border-radius: 100% 0; background: #698d39; transform: rotate(-26deg); }
.durian-quote { min-width: 0; display: flex; flex-direction: column; gap: .4rem; }
.quote-origin { color: #333b40; font-size: .72rem; font-weight: 600; white-space: nowrap; }
.quote-origin b { margin-left: .3rem; padding: .18rem .4rem; border-radius: .5rem; background: #ffe8e3; color: #f25b49; font-size: .62rem; }
.durian-quote > strong { color: #f52c28; font: 600 clamp(1.65rem, 2.2vw, 2rem) "DM Mono",sans-serif; letter-spacing: -.08rem; white-space: nowrap; }
.durian-quote > strong small { font-size: .5em; letter-spacing: 0; }
.quote-compare { color: #81878b; font-size: .68rem; }
.quote-compare b, .quote-compare i { margin-left: .3rem; color: #f4312a; font-size: .8rem; font-style: normal; }
.durian-stats { min-height: 4.5rem; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .3rem; margin-top: auto; padding: 0 .65rem .6rem; }
.durian-stats > div { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: .2rem; padding: .4rem clamp(.35rem, .6vw, .6rem); border-radius: .45rem; background: #f7f8fa; }
.durian-stats span { color: #81888c; font-size: .61rem; white-space: nowrap; }
.durian-stats strong { color: #262b2e; font: 600 clamp(.82rem, 1vw, .95rem) "DM Mono","Noto Sans SC",sans-serif; white-space: nowrap; }
.durian-stats strong small { margin-left: .12rem; color: #83898d; font: .6rem "Noto Sans SC",sans-serif; }
.durian-stats b { font: .6rem "DM Mono","Noto Sans SC",sans-serif; }
.good { color: var(--green) !important; }
.bad { color: var(--red) !important; }
.neutral { color: #92989c !important; }

.graph-card { position: relative; }
.period-tabs, .data-tabs { display: flex; flex: 0 0 auto; align-items: center; padding: .12rem; border: 1px solid #edf0f2; border-radius: 2rem; background: #f8f9fa; }
.period-tabs button, .data-tabs button { padding: .25rem .45rem; border: 0; border-radius: 2rem; background: transparent; color: #6e767c; font-size: .62rem; white-space: nowrap; }
.period-tabs button.period-active, .data-tabs button.data-active { background: #fff0e6; color: #f16814; font-weight: 700; }
.graph-legend { position: absolute; z-index: 2; top: 2.75rem; right: .8rem; display: flex; gap: .75rem; }
.graph-legend span { display: flex; align-items: center; gap: .3rem; color: #70787d; font-size: .6rem; white-space: nowrap; }
.graph-legend i { width: .55rem; height: .25rem; border-radius: .2rem; background: #ff771d; }
.graph-legend i.legend-blue { background: #4686ed; }
.graph-legend i.legend-grey { background: #9da5ad; }
.chart-canvas { width: 100%; height: clamp(11rem, 14vw, 14rem); }
.graph-card .chart-canvas { height: clamp(12rem, 15vw, 15rem); }
.arrivals-card .card-heading h2 small { font-size: .65rem; }
.arrivals-card { display: flex; flex-direction: column; }
.arrival-list { display: flex; flex: 1; flex-direction: column; justify-content: space-evenly; padding: .25rem .8rem 0; }
.arrival-row { min-height: 1.9rem; display: grid; grid-template-columns: minmax(4rem,5.2rem) minmax(2rem,1fr) minmax(1.8rem,2.2rem) minmax(2.8rem,3.6rem); align-items: center; gap: .4rem; color: #42494d; font-size: .65rem; }
.arrival-track { height: .75rem; overflow: hidden; border-radius: .2rem; background: #f0f2f4; }
.arrival-track i { height: 100%; display: block; border-radius: .2rem; background: linear-gradient(90deg,#ff9a37,#ed6542); }
.arrival-row > strong { text-align: right; color: #273036; font: .75rem "DM Mono",monospace; }
.arrival-row > b { font: .62rem "DM Mono",sans-serif; text-align: right; }
.arrival-total { min-height: 2.1rem; display: flex; align-items: center; gap: .55rem; margin: .4rem .65rem 0; padding: 0 .5rem; border-top: 1px solid #eceff1; background: #fafbfc; color: #3d454a; font-size: .7rem; }
.arrival-total strong { margin-left: auto; color: #f26315; font: 700 1.1rem "DM Mono",monospace; }
.arrival-total b { font: .7rem "DM Mono",monospace; }

.table-scroll { width: 100%; flex: 1; overflow-x: auto; overscroll-behavior-inline: contain; }
.table-card, .market-table-card { display: flex; flex-direction: column; }
.table-card table, .market-table-card table { height: 100%; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
thead { background: #f6f8fa; }
th { height: 1.8rem; padding: 0 .55rem; color: #68717a; font-size: .64rem; font-weight: 600; }
td { height: 1.9rem; padding: 0 .55rem; border-bottom: 1px solid #f0f2f4; color: #646d74; font-size: .64rem; }
tbody tr:last-child td { border-bottom: 0; }
.table-price { color: #f1362c; font-family: "DM Mono",monospace; font-weight: 600; }
.table-action { width: 1rem; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: #fff1e6; color: #ed6817; font-size: .62rem; }
.table-card .card-heading, .market-table-card .card-heading { min-height: 2.45rem; }
.market-table-card table { margin-top: .15rem; }
.market-table-card td, .market-table-card th { height: 2rem; }
.market-table-card td:last-child { text-align: center; }
.volume-card .graph-legend { top: 2.75rem; }

.origins-strip { margin-bottom: var(--card-gap); }
.origin-subtitle { margin-left: auto; color: #939ba1; font-size: .65rem; }
.origins-strip .card-heading > a { margin-left: .4rem; }
.origin-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .5rem; padding: .15rem .65rem .7rem; }
.origin-tile { min-width: 0; min-height: 5rem; display: grid; grid-template-columns: 2.2rem minmax(4rem,.7fr) minmax(6rem,1.15fr); grid-template-rows: 1fr 1fr; align-items: center; column-gap: .5rem; padding: .55rem .65rem; border: 1px solid #eef0f2; border-radius: .45rem; background: linear-gradient(110deg,#fff,#fcfcfb); }
.origin-code { grid-row: 1/3; width: 2.1rem; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: #fff0e6; color: #df762c; font: 700 .62rem "DM Mono",monospace; }
.origin-vn { background: #fff0e5; color: #e56f24; }
.origin-th { background: #f0f4fb; color: #6482ad; }
.origin-my { background: #eff6f1; color: #548a68; }
.origin-ph { background: #f7f0f2; color: #a26c78; }
.origin-tile > div { display: flex; flex-direction: column; gap: .2rem; }
.origin-tile > div strong { color: #3e474d; font-size: .7rem; }
.origin-tile > div small { color: #929ba0; font-size: .58rem; white-space: nowrap; }
.origin-fruits { overflow: hidden; color: #5e686e; font-size: .6rem; text-overflow: ellipsis; white-space: nowrap; }
.origin-port { grid-column: 2/4; color: #929ba0; font-size: .58rem; white-space: nowrap; }
.origin-port b { margin-left: .3rem; color: #68747a; font-weight: 500; }

.customs-card .card-heading { gap: .45rem; }
.customs-card .data-tabs { margin-left: .15rem; }
.customs-card .card-heading > a { margin-left: auto; }
.customs-kpis { min-height: 3.9rem; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: .05rem .65rem .4rem; border-radius: .45rem; background: #f6f8fa; }
.customs-kpis > div { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: .2rem; padding: 0 clamp(.4rem, .8vw, .65rem); border-right: 1px solid #e1e5e8; }
.customs-kpis > div:last-child { border: 0; }
.customs-kpis span { color: #777f85; font-size: .6rem; }
.customs-kpis strong { color: #242b30; font: 600 clamp(.9rem, 1vw, 1rem) "DM Mono",sans-serif; white-space: nowrap; }
.customs-kpis strong small { font: .6rem "Noto Sans SC",sans-serif; }
.customs-kpis b { font: .58rem "DM Mono","Noto Sans SC",sans-serif; white-space: nowrap; }
.customs-charts { min-height: 9.5rem; display: grid; grid-template-columns: minmax(0,1.45fr) minmax(0,.8fr); }
.customs-chart-block { min-width: 0; padding: .25rem .55rem 0; border-right: 1px solid #edf0f2; }
.customs-chart-block:last-child { border: 0; }
.subchart-title { color: #515a60; font-size: .63rem; font-weight: 600; }
.subchart-title small { color: #969da1; font-size: .58rem; font-weight: 400; }
.small-chart, .donut-chart { width: 100%; height: clamp(7.5rem, 9vw, 9rem); }

.news-card .card-heading { gap: .5rem; }
.news-filters { display: flex; align-items: center; gap: .45rem; margin-left: auto; }
.news-filters button { padding: .12rem 0; border: 0; background: transparent; color: #879096; font-size: .6rem; }
.news-filters button.news-filter-active { color: #f16814; font-weight: 700; }
.news-card .card-heading > a { margin-left: .25rem; }
.news-list { padding: 0 .65rem; }
.news-row { min-height: 3.25rem; display: flex; align-items: center; gap: .55rem; border-top: 1px solid #f0f2f4; }
.news-row:first-child { border-top: 0; }
.news-thumb { position: relative; width: clamp(3.5rem, 5vw, 4.25rem); aspect-ratio: 1.7; display: grid; flex: 0 0 auto; place-items: center; overflow: hidden; border-radius: .25rem; background: linear-gradient(135deg,#acc7ce,#536d78); }
.news-thumb:before { content: ""; position: absolute; width: 76%; height: 35%; bottom: .25rem; background: #334b57; clip-path: polygon(0 0,100% 0,86% 100%,8% 100%); }
.news-thumb:after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg,#fff2,transparent 55%,#f49a4033); }
.news-thumb i { position: relative; z-index: 1; width: 1.45rem; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid #ffffffaa; border-radius: 50%; background: #ffffff66; color: #fff; font-size: .7rem; font-style: normal; }
.thumb-orchard { background: linear-gradient(135deg,#9eb178,#e4ae64); }
.thumb-orchard:before { width: 45%; height: 65%; bottom: .25rem; border-radius: 50%; background: #eea837; clip-path: none; box-shadow: 1rem .3rem #e78b35,-.9rem .5rem #8f9c4c; }
.thumb-market { background: linear-gradient(135deg,#f0c888,#b9714e); }
.thumb-market:before { background: #765946; }
.thumb-report { background: linear-gradient(135deg,#8da9b3,#59677b); }
.news-copy { min-width: 0; display: flex; flex: 1; flex-direction: column; gap: .3rem; }
.news-copy strong { overflow: hidden; color: #41494e; font-size: .64rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.news-copy small { color: #a0a6aa; font-size: .58rem; }
.news-copy em { margin-left: .5rem; padding: .1rem .3rem; border-radius: .5rem; background: #fff2e7; color: #dc7440; font-size: .55rem; font-style: normal; }

.utility-column { min-width: 0; display: flex; flex-direction: column; gap: var(--card-gap); }
.app-promo { min-height: 8.5rem; position: relative; flex: 0 0 auto; overflow: hidden; padding: .8rem; border-radius: .65rem; background: linear-gradient(120deg,#ff941f,#f15c05); color: #fff; box-shadow: 0 .2rem .65rem #f06b1830; }
.app-promo:after { content: ""; position: absolute; width: 8rem; aspect-ratio: 1; right: -1.6rem; bottom: -3.25rem; border-radius: 50%; background: #ffffff1b; }
.app-promo-copy { position: relative; z-index: 2; display: flex; flex-direction: column; gap: .3rem; }
.app-promo-copy strong { font-size: .9rem; }
.app-promo-copy span { font-size: .6rem; }
.app-promo-copy b { margin-top: .35rem; color: #fff5e6; font-size: .55rem; font-weight: 400; }
.qr-placeholder { position: absolute; right: .7rem; bottom: .6rem; z-index: 2; width: 3.1rem; aspect-ratio: 1; display: grid; place-items: center; border: .25rem solid white; border-radius: .25rem; background: repeating-conic-gradient(#38342f 0 25%,#fff 0 50%) 50% / .55rem .55rem; }
.qr-placeholder i { width: 1.65rem; aspect-ratio: 1; display: grid; place-items: center; background: #fff; color: #e86714; font-size: .45rem; font-style: normal; font-weight: 700; text-align: center; }
.promo-cat { position: absolute; right: .25rem; top: 1.6rem; width: 3.25rem; aspect-ratio: .88; display: grid; place-items: center; border: 3px solid #ffe1b4; border-radius: 48% 48% 44% 44%; background: linear-gradient(140deg,#ffd17f,#e98a35); color: #fff; font-size: 1.5rem; font-weight: 700; transform: rotate(-8deg); box-shadow: 0 .25rem .5rem #983e2050; }
.promo-cat:before, .promo-cat:after { content: ""; position: absolute; top: -.65rem; width: 1rem; height: 1.2rem; border: 2px solid #ffe1b4; background: #e98a35; }
.promo-cat:before { left: .1rem; transform: rotate(-25deg); border-radius: .4rem .8rem .1rem; }
.promo-cat:after { right: .1rem; transform: rotate(25deg); border-radius: .8rem .4rem .1rem; }
.tools-card { flex: 1; }
.tools-card .card-heading { min-height: 2.3rem; }
.tool-links { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); padding: .4rem .4rem 0; }
.tool-links a { display: flex; flex-direction: column; align-items: center; gap: .3rem; color: #5e676c; font-size: .55rem; white-space: nowrap; }
.tool-links i { width: 2rem; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: #fff3e8; color: #f2741c; font-size: .9rem; font-style: normal; }
.tool-links a:nth-child(2) i { background: #f1f5ff; color: #648fe0; }
.tool-links a:nth-child(3) i { background: #fff1e8; color: #ee8450; }
.tool-links a:nth-child(4) i { background: #edf8f4; color: #45a483; }

.site-footer { background: #fff; border-top: 1px solid #e8ecef; }
.footer-inner { min-height: 3.1rem; display: flex; align-items: center; gap: .9rem; color: #969da1; font-size: .62rem; }
.footer-brand { display: flex; align-items: center; gap: .3rem; color: #52595e; font-weight: 700; }
.footer-brand span { width: 1.2rem; aspect-ratio: 1; display: grid; place-items: center; border-radius: .35rem; background: #f47720; color: #fff; }
.footer-disclaimer { margin-left: auto; }

/* Medium desktop and tablet: relax the three-column minimums before they collide. */
@media (max-width: 68rem) {
  .nav-row { flex-wrap: wrap; padding-block: .45rem; }
  .main-nav { order: 3; min-height: 2.4rem; flex: 1 0 100%; justify-content: flex-start; overflow-x: auto; scrollbar-width: thin; }
  .dashboard-top > .durian-card, .dashboard-top > .graph-card { grid-column: span 6; }
  .dashboard-top .arrivals-card { grid-column: 1 / -1; min-height: 12rem; }
  .arrival-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 1rem; }
  .dashboard-middle > .table-card { grid-column: span 7; }
  .dashboard-middle > .volume-card { grid-column: span 5; }
  .dashboard-middle .market-table-card { grid-column: 1 / -1; }
  .dashboard-bottom > .customs-card { grid-column: span 7; }
  .dashboard-bottom > .news-card { grid-column: span 5; }
  .dashboard-bottom .utility-column { grid-column: 1 / -1; min-height: 0; display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); }
  .app-promo, .tools-card { min-height: 8.5rem; }
}

@media (max-width: 58rem) {
  .utility-inner { gap: .6rem; }
  .utility-promise { margin-right: auto; }
  .nav-row { gap: .6rem; }
  .brand { min-width: auto; }
  .header-tools { margin-left: auto; }
  .search-box { width: clamp(2.5rem, 9vw, 9rem); }
  .main-nav { gap: .9rem; }
  .hero-banner { aspect-ratio: 4 / 1; min-height: 14rem; max-height: 19rem; }
  .hero-inner { aspect-ratio: auto; }
  .hero-copy { left: 34%; }
  .hero-copy h1 { font-size: clamp(1.55rem, 4vw, 2.25rem); }
  .hero-slogan { top: 1rem; right: 1rem; font-size: .7rem; }
  .hero-shortcuts { width: min(27rem, 55%); }
  .category-inner { justify-content: flex-start; overflow-x: auto; scrollbar-width: thin; }
  .category-link { flex: 0 0 auto; }
  .category-more { flex: 0 0 auto; }
  .origin-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .origin-subtitle { display: none; }
}

@media (max-width: 46rem) {
  html { scroll-padding-top: 6.5rem; }
  .utility-bar { min-height: 1.8rem; }
  .utility-inner { justify-content: flex-end; font-size: .58rem; }
  .utility-promise { font-size: .58rem; }
  .nav-row { min-height: 4rem; flex-wrap: wrap; padding-block: .35rem; }
  .brand { width: clamp(9rem, 32vw, 12rem); }
  .search-box { width: 2.2rem; min-height: 2rem; justify-content: center; padding: 0; border: 0; }
  .search-box input { display: none; }
  .search-box span { font-size: 1.2rem; }
  .login-button { min-height: 2rem; padding-inline: .6rem; font-size: .62rem; }
  .main-nav { min-height: 2.2rem; gap: .75rem; }
  .main-nav a { min-height: 1.9rem; font-size: .62rem; }
  .hero-banner { height: clamp(14rem, 62vw, 18rem); aspect-ratio: auto; min-height: 0; }
  .hero-inner { aspect-ratio: auto; }
  .hero-art { object-position: 34% center; }
  .hero-art-shade { background: linear-gradient(90deg,#fff4 0%,#fff8 46%,#fff3 100%); }
  .hero-copy { left: 36%; top: 1.4rem; }
  .hero-kicker { font-size: .45rem; }
  .hero-copy h1 { margin-top: .45rem; font-size: clamp(1.25rem, 6vw, 1.75rem); }
  .hero-copy p { max-width: 11rem; margin-block: .4rem .7rem; font-size: .55rem; letter-spacing: .04rem; }
  .hero-slogan { display: none; }
  .hero-shortcuts { right: .55rem; bottom: .55rem; width: calc(100% - 1.1rem); min-height: 3.2rem; }
  .hero-shortcuts a { min-height: 2.5rem; font-size: .52rem; }
  .hero-shortcuts i { font-size: .9rem; }
  .category-rail { padding-block: .4rem; }
  .category-inner { width: 100%; min-height: 2.8rem; padding-inline: .5rem; gap: .15rem; }
  .category-link, .category-more { min-height: 2.5rem; gap: .3rem; padding-inline: .45rem; font-size: .62rem; }
  .category-icon { width: 1.8rem; }
  .dashboard-top, .dashboard-middle, .dashboard-bottom { grid-template-columns: repeat(12,minmax(0,1fr)); gap: .6rem; margin-bottom: .6rem; }
  .dashboard-top > .data-card, .dashboard-middle > .data-card, .dashboard-bottom > .data-card, .dashboard-bottom > .utility-column { grid-column: 1 / -1; }
  .dashboard-top > .data-card, .dashboard-middle > .data-card, .dashboard-bottom > .data-card { min-height: 0; }
  .dashboard-top .durian-card { min-height: 15rem; }
  .dashboard-top .graph-card { min-height: 15rem; }
  .dashboard-top .arrivals-card { grid-column: auto; min-height: 13.5rem; }
  .dashboard-middle .table-card { min-height: 13rem; }
  .dashboard-middle .volume-card { min-height: 14rem; }
  .dashboard-middle .market-table-card { grid-column: auto; min-height: 13rem; }
  .dashboard-bottom .customs-card { min-height: 18rem; }
  .dashboard-bottom .news-card { min-height: 15rem; }
  .dashboard-bottom .utility-column { grid-column: auto; min-height: 0; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .6rem; }
  .app-promo, .tools-card { min-height: 8.5rem; }
  .durian-main { min-height: 7.8rem; }
  .durian-stats { min-height: 4.25rem; }
  .chart-canvas, .graph-card .chart-canvas { height: 12rem; }
  .volume-card .chart-canvas { height: 11rem; }
  .arrival-list { display: block; padding-top: .2rem; }
  .arrival-row { grid-template-columns: minmax(4.5rem,5rem) minmax(2rem,1fr) 2rem 3.2rem; }
  .dashboard-middle .table-card table { min-width: 38rem; }
  .dashboard-middle .market-table-card table { min-width: 0; }
  .dashboard-middle .market-table-card td, .dashboard-middle .market-table-card th { padding-inline: .5rem; }
  .customs-kpis { margin-bottom: .5rem; }
  .customs-kpis > div { padding-inline: .4rem; }
  .customs-kpis strong { font-size: .75rem; }
  .customs-charts { min-height: 9.5rem; grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr); }
  .small-chart, .donut-chart { height: 7.5rem; }
  .news-row { min-height: 3rem; }
  .footer-inner { min-height: 3rem; flex-wrap: wrap; justify-content: space-between; gap: .4rem; padding-block: .45rem; }
  .footer-disclaimer { display: none; }
}

@media (max-width: 25rem) {
  .utility-inner { font-size: .52rem; }
  .utility-promise { font-size: .52rem; }
  .brand { width: clamp(8rem, 38vw, 10rem); }
  .hero-copy { left: 34%; }
  .hero-copy h1 { font-size: 1.2rem; }
  .hero-copy p { max-width: 9rem; font-size: .5rem; }
  .hero-shortcuts a { font-size: .46rem; }
  .durian-main { gap: .4rem; padding-inline: .6rem; }
  .durian-visual { width: 5.5rem; }
  .durian-quote > strong { font-size: 1.4rem; }
  .durian-stats { gap: .2rem; padding-inline: .4rem; }
  .durian-stats > div { padding-inline: .3rem; }
  .durian-stats strong { font-size: .72rem; }
  .durian-stats span, .durian-stats b { font-size: .52rem; }
  .card-heading { gap: .3rem; padding-inline: .55rem; }
  .card-heading h2 { font-size: .72rem; }
  .period-tabs button { padding-inline: .3rem; font-size: .55rem; }
  .origin-grid { grid-template-columns: minmax(0,1fr); }
  .origin-tile { grid-template-columns: 2rem minmax(3.5rem,.7fr) minmax(5.2rem,1.15fr); padding-inline: .4rem; }
}
