/* INTI trade portal — builds on style.css */
.tp { background: var(--ivory); }
.tp-main { padding: 110px 0 80px; min-height: 70vh; }
.tp-main section { padding: 0; }
.tp-header .logo .tp-mark { font: 600 11px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, var(--saffron), #e9761a); padding: 6px 9px; border-radius: 999px; margin-left: 6px; font-style: normal; }
.tp-nav .inline { display: inline; }
.tp-nav button.nav-cta { font: 500 14px var(--sans); cursor: pointer; }
.tp-menu { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; font-size: 20px; padding: 4px 10px; cursor: pointer; color: var(--navy); }
.tp-footer { background: var(--navy); color: #b6c3de; font-size: 13px; padding: 28px 0; }
.tp-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.tp-footer a { color: #dfe7f6; }
.wa-float { position: fixed; right: 22px; bottom: 22px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -10px rgba(37, 211, 102, .8); z-index: 40; }
.wa-float svg { width: 30px; height: 30px; }

/* type */
.tp h1 { font-size: clamp(36px, 4.6vw, 56px); margin-bottom: 14px; }
.tp h2 { font-size: clamp(26px, 3vw, 34px); margin: 0 0 14px; }
.tp h3 { font-size: 22px; margin: 0 0 8px; }
.tp .lead { font-size: 18px; margin-bottom: 24px; }
.tp .sub { color: var(--muted); font-size: 15px; }
.tp-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.tp-head p { margin: 0; color: var(--muted); }

/* panels */
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 18px; }
.panel.tight { padding: 20px 22px; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.stat b { display: block; font-family: var(--serif); font-size: 36px; line-height: 1; margin-bottom: 6px; }
.stat span { font-size: 13px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

/* badges */
.badge { display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--mist); color: var(--muted); border: 1px solid var(--line); }
.badge.ok { background: #effaf5; color: #17603f; border-color: #bfe8d3; }
.badge.warn { background: #fff4e6; color: var(--saffron-ink); border-color: #f5d2aa; }
.badge.info { background: #eef3fb; color: var(--blue); border-color: #cdd7ea; }
.badge.cvd { background: #fff4e6; color: var(--saffron-ink); border-color: #f5d2aa; }
.badge.hpht { background: #eef3fb; color: var(--blue); border-color: #cdd7ea; }
.badge.status-received { background: #eef3fb; color: var(--blue); }
.badge.status-in_review { background: #fff4e6; color: var(--saffron-ink); }
.badge.status-quoted { background: #effaf5; color: #17603f; }
.badge.status-closed { background: var(--mist); color: var(--muted); }

/* forms */
.f { margin-bottom: 16px; }
.f label { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); margin-bottom: 7px; }
.f .opt { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); }
.f input, .f select, .f textarea { width: 100%; border: 1px solid #cdd7ea; border-radius: 12px; padding: 12px 14px; font: 15px var(--sans); color: var(--navy); background: var(--white); }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--saffron); box-shadow: 0 0 0 3px rgba(242, 140, 40, .2); }
.f.err input { border-color: #d14343; }
.f-err { color: #b42318; font-size: 13px; margin: 6px 0 0; }
.f-hint { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tp .chip { border-color: #cdd7ea; color: var(--navy); background: var(--white); }
.tp .chip:hover { border-color: var(--saffron); }
.tp .chip[aria-pressed="true"] { background: linear-gradient(135deg, #ffc163, var(--saffron)); color: #2a1200; border-color: transparent; }
.chip.sm { padding: 6px 12px; font-size: 13px; }
.btn.sm { padding: 10px 18px; font-size: 14px; }
.btn.block { width: 100%; justify-content: center; }
.btn-danger { color: #b42318; border-color: #f0c2bd; background: #fff; }
.btn-danger:hover { border-color: #d14343; }
.hp { position: absolute; left: -9999px; }
.alert { border-radius: 14px; padding: 14px 18px; font-size: 15px; margin-bottom: 18px; }
.alert.ok { background: #effaf5; color: #17603f; border: 1px solid #bfe8d3; }
.alert.err { background: #fff1f0; color: #b42318; border: 1px solid #f0c2bd; }
.alert.info { background: #eef3fb; color: var(--navy-2); border: 1px solid #cdd7ea; }
.code-input { font-size: 32px !important; letter-spacing: .4em; text-align: center; font-family: var(--serif) !important; }

/* status tracker */
.tracker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0; }
.tracker.four { grid-template-columns: repeat(4, 1fr); }
.tracker div { position: relative; padding: 14px 12px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--white); font-size: 13.5px; color: var(--muted); }
.tracker div b { display: block; color: var(--navy); font-size: 14px; margin-bottom: 2px; }
.tracker div::before { content: ""; display: block; width: 12px; height: 12px; border-radius: 50%; background: var(--line); margin-bottom: 10px; }
.tracker .done::before { background: var(--green); box-shadow: 0 0 10px var(--green-2); }
.tracker .now { border-color: #f3c48f; box-shadow: 0 14px 34px -22px rgba(242, 140, 40, .7); }
.tracker .now::before { background: var(--saffron); box-shadow: 0 0 10px var(--saffron-2); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(242, 140, 40, .15); } }

/* landing */
.tp-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; margin-bottom: 56px; }
.tp-hero .gem-cluster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tp-hero .gem-cluster div { aspect-ratio: 1; display: grid; place-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 18px; color: var(--navy); box-shadow: var(--shadow); }
.tp-hero .gem-cluster svg { width: 70%; height: 70%; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 28px 0 44px; }
.feature { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.feature b { display: block; font-size: 16px; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; }
.gem { filter: drop-shadow(0 8px 16px rgba(10, 26, 58, .12)); }

/* catalogue */
.cat { display: grid; grid-template-columns: 260px 1fr; gap: 26px; align-items: start; }
.filters { position: sticky; top: 96px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.filters h4 { margin: 14px 0 8px; font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); }
.filters h4:first-child { margin-top: 0; }
.filters .chips { gap: 6px; }
.filters .range { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.filters .range input { width: 100%; border: 1px solid #cdd7ea; border-radius: 10px; padding: 8px 10px; font: 14px var(--sans); }
.filters .clear { margin-top: 16px; font-size: 13px; color: var(--muted); background: none; border: 0; cursor: pointer; text-decoration: underline; }
.cat-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 14px; color: var(--muted); }
.cat-top .views button { background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; cursor: pointer; color: var(--muted); font-size: 13px; }
.cat-top .views button[aria-pressed="true"] { border-color: var(--saffron); color: var(--navy); }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pgrid.list { grid-template-columns: 1fr; }
.pcard { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 10px; position: relative; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.pcard:hover { transform: translateY(-3px); border-color: #f5d2aa; box-shadow: 0 20px 44px -24px rgba(242, 140, 40, .55); }
.pcard.hidden { display: none; }
.pcard .pc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.pcard .pc-gem { width: 84px; height: 84px; color: var(--navy); }
.pcard .pc-gem svg { width: 84px; height: 84px; }
.pcard h3 { font-size: 21px; line-height: 1.15; margin: 4px 0 2px; }
.pcard h3 a { color: var(--navy); }
.pcard h3 a:hover { color: var(--saffron-ink); text-decoration: none; }
.pcard .pc-line { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); font-weight: 600; }
.pcard .pc-spec { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-size: 13.5px; color: var(--muted); margin: 4px 0; }
.pcard .pc-spec b { color: var(--navy); font-weight: 600; }
.pcard .pc-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.pcard .pc-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 8px; align-items: center; }
.pcard .pc-actions .btn { flex: 1; justify-content: center; }
.pgrid.list .pcard { display: grid; grid-template-columns: 84px 1.4fr 1fr auto; align-items: center; gap: 18px; }
.pgrid.list .pcard .pc-actions { margin: 0; padding: 0; }
.pgrid.list .pcard .pc-badges, .pgrid.list .pcard .pc-gem { grid-row: span 1; }
.heart { background: var(--white); border: 1px solid #cdd7ea; border-radius: 999px; width: 42px; height: 42px; display: grid; place-items: center; cursor: pointer; color: var(--muted); font-size: 18px; transition: all .2s; flex: 0 0 auto; }
.heart[aria-pressed="true"] { color: #e2508f; border-color: #f5b8d2; background: #fff0f6; }
.heart:disabled { opacity: .5; cursor: not-allowed; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }
.freshness { font-size: 13px; color: var(--muted); }
.freshness::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green-2); margin-right: 7px; vertical-align: middle; }

/* product page */
.pd { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: start; }
.pd-media { max-width: 560px; width: 100%; background: var(--white); border: 1px solid var(--line); border-radius: 24px; aspect-ratio: 1; display: grid; place-items: center; color: var(--navy); position: relative; overflow: hidden; }
.pd-media::before { content: ""; position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 227, 187, .8), rgba(242, 140, 40, .12) 55%, transparent 72%); filter: blur(10px); }
.pd-media svg { width: 60%; height: 60%; position: relative; }
.pd-media .shapes { position: absolute; bottom: 14px; left: 14px; right: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.pd-media .shapes span { font-size: 12px; background: rgba(255, 255, 255, .85); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; color: var(--muted); }
.pd-media .media-note { position: absolute; top: 14px; right: 14px; font-size: 12px; color: var(--muted); background: rgba(255,255,255,.85); border-radius: 999px; padding: 4px 10px; border: 1px solid var(--line); }
.pd .actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.pd .price { background: var(--mist); border-radius: 14px; padding: 14px 18px; font-size: 14.5px; color: var(--navy-2); margin: 16px 0; }
.pd .price b { display: block; font-size: 16px; }
.spec-list { display: grid; grid-template-columns: 1fr; gap: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--white); }
.spec-list div { display: grid; grid-template-columns: 160px 1fr; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.spec-list div:last-child { border-bottom: 0; }
.spec-list div b { color: var(--navy); font-weight: 600; }
.spec-list div span { color: var(--muted); }
.related { margin-top: 48px; }

/* enquiry */
.items { display: grid; gap: 8px; margin-bottom: 18px; }
.item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); font-size: 14.5px; }
.item svg { width: 36px; height: 36px; color: var(--navy); flex: 0 0 auto; }
.item b { flex: 1; }
.item .rm { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 18px; }
.req-types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.req-types label { border: 1px solid #cdd7ea; border-radius: 14px; padding: 12px; cursor: pointer; font-size: 13.5px; text-align: center; background: var(--white); color: var(--muted); }
.req-types label b { display: block; color: var(--navy); margin-bottom: 2px; font-size: 14.5px; }
.req-types input { position: absolute; opacity: 0; }
.req-types input:checked + label, .req-types label:has(input:checked) { border-color: var(--saffron); box-shadow: 0 0 0 3px rgba(242, 140, 40, .18); color: var(--navy); }
.sla { display: flex; gap: 12px; align-items: center; font-size: 14px; color: #17603f; background: #effaf5; border: 1px solid #bfe8d3; border-radius: 14px; padding: 12px 16px; margin-bottom: 18px; }

/* enquiries list */
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { background: var(--mist); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.table tr:last-child td { border-bottom: 0; }
.table a.ref { font-weight: 600; color: var(--navy); }
.table-wrap { overflow-x: auto; border: 0; }
.thread { display: grid; gap: 12px; margin: 20px 0; }
.msg { border-radius: 16px; padding: 14px 18px; max-width: 80%; font-size: 15px; white-space: pre-wrap; }
.msg.buyer { background: var(--white); border: 1px solid var(--line); justify-self: end; }
.msg.inti { background: #fff4e6; border: 1px solid #f5d2aa; }
.msg small { display: block; color: var(--muted); font-size: 12px; margin-top: 8px; white-space: normal; }
.timeline { display: flex; gap: 6px; margin: 14px 0 22px; }
.timeline span { flex: 1; text-align: center; font-size: 12px; padding: 8px 4px; border-radius: 999px; background: var(--mist); color: var(--muted); }
.timeline span.done { background: #effaf5; color: #17603f; }
.timeline span.now { background: linear-gradient(135deg, #ffc163, var(--saffron)); color: #2a1200; font-weight: 600; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 20px; font-size: 14px; margin: 14px 0; }
.kv div span { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.kv div b { font-weight: 500; }

/* admin */
.admin-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.admin-nav a { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 14px; color: var(--navy); background: var(--white); }
.admin-nav a[aria-current="page"] { border-color: var(--saffron); background: #fff4e6; }
.inline-form { display: inline; }
.inline-form button { margin-right: 6px; }
.app-card { display: grid; grid-template-columns: 1fr auto; gap: 18px; }
.app-card .meta { font-size: 14px; color: var(--muted); display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; margin: 8px 0; }
.app-card .meta b { color: var(--navy); font-weight: 500; }
.app-card .decide { display: grid; gap: 8px; min-width: 200px; }

@media (max-width: 1024px) {
  .cat { grid-template-columns: 1fr; }
  .filters { position: static; }
  .pgrid { grid-template-columns: repeat(2, 1fr); }
  .pd, .split, .tp-hero { grid-template-columns: 1fr; }
  .feature-grid, .cols-3 { grid-template-columns: 1fr 1fr; }
  .pgrid.list .pcard { grid-template-columns: 64px 1fr; }
}
@media (max-width: 680px) {
  .tp-main { padding: 84px 0 60px; }
  .tp-menu { display: block; }
  .tp-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: stretch; padding: 12px 16px 18px; box-shadow: 0 20px 40px -20px rgba(10, 26, 58, .3); gap: 4px; }
  .tp-nav.open { display: flex; }
  .tp-nav a, .tp-nav .nav-cta { display: block !important; padding: 10px 4px; }
  .tp-nav .inline { display: block; }
  .tp-header .logo .tp-mark { display: none; }
  .pgrid, .feature-grid, .cols-3, .cols-2, .f-row, .kv, .tracker, .tracker.four { grid-template-columns: 1fr; }
  .req-types { grid-template-columns: 1fr 1fr; }
  .panel { padding: 20px; }
  .msg { max-width: 100%; }
  .spec-list div { grid-template-columns: 1fr; gap: 2px; }
  .app-card { grid-template-columns: 1fr; }
  .tp-hero .gem-cluster { max-width: 320px; margin: 0 auto; }
}

/* country panel on apply */
.doc-list { margin: 0; padding-left: 18px; color: var(--navy); font-size: 14.5px; }
.doc-list li { margin-bottom: 4px; }
.doc-list li::marker { color: var(--green); }
.bodies { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.bodies span { font-size: 12.5px; background: var(--mist); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; color: var(--navy-2); }

.more { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.more summary { cursor: pointer; font-weight: 600; color: var(--navy); list-style: none; display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: "+"; color: var(--saffron); font-size: 20px; line-height: 1; }
.more[open] summary::before { content: "–"; }
.more summary .opt { font-weight: 400; color: var(--muted); font-size: 13.5px; }
.more > div, .more > .f, .more > .f-row { margin-top: 16px; }
.alert.strip { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }

/* collection */
.type-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.type-tabs .chip small { color: var(--muted); font-weight: 400; margin-left: 4px; }
.type-tabs .chip[aria-pressed="true"] small { color: #2a1200; }
.pgrid.pieces { grid-template-columns: repeat(4, 1fr); gap: 14px; }
.piece { background: var(--white); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.piece:hover { transform: translateY(-3px); border-color: #f5d2aa; box-shadow: 0 20px 44px -24px rgba(242, 140, 40, .55); }
.piece.hidden { display: none; }
.piece-media { position: relative; display: block; aspect-ratio: 4 / 5; background: #0d1830; overflow: hidden; }
.piece-media img, .piece-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.piece-media video { position: absolute; inset: 0; }
.piece-play { position: absolute; right: 10px; bottom: 10px; z-index: 2; height: 26px; min-width: 26px; padding: 0 9px; border-radius: 13px; background: rgba(10,20,40,.62); color: #fff; display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; letter-spacing: .02em; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: opacity .3s; }
/* grid motion: the still stays until the preview is really playing, then cross-fades */
.piece-media video { opacity: 0; transition: opacity .45s ease; }
.piece-media.is-playing video { opacity: 1; }
.piece-media.is-playing .piece-play { opacity: 0; }
.piece-media img { transition: transform .6s ease; }
@media (hover: hover) { .piece:hover .piece-media img { transform: scale(1.03); } }
.piece-player { position: relative; }
.hd-toggle { position: absolute; right: 14px; top: 14px; z-index: 2; height: 28px; padding: 0 11px; border-radius: 14px; border: 1px solid rgba(255,255,255,.5); background: rgba(10,20,40,.55); color: #fff; font: 600 12px/1 inherit; letter-spacing: .06em; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hd-toggle[aria-pressed="true"] { background: var(--saffron); border-color: var(--saffron); }
@media (prefers-reduced-motion: reduce) { .piece-media video, .piece-media img { transition: none; } }
.piece-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 2px; }
.piece-body b { font-size: 15px; }
.piece-ref { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.piece-body .pc-actions { margin-top: 10px; padding: 0; display: flex; gap: 8px; }
.piece-body .pc-actions .btn { flex: 1; justify-content: center; }
.piece-body .heart { width: 38px; height: 38px; font-size: 16px; }
.piece-player { background: #0d1830; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 5; max-width: 560px; width: 100%; }
.piece-player video, .piece-player img { width: 100%; height: 100%; object-fit: contain; display: block; background: #0d1830; }
.item-thumb { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; }
@media (max-width: 1024px) { .pgrid.pieces { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .pgrid.pieces { grid-template-columns: repeat(2, 1fr); gap: 10px; } .piece-body { padding: 10px; } .piece-body .pc-actions .btn { padding: 8px 10px; font-size: 13px; } }

.search-form { display: flex; gap: 6px; margin-bottom: 6px; }
.search-form input { flex: 1; min-width: 0; border: 1px solid #cdd7ea; border-radius: 10px; padding: 9px 10px; font: 14px var(--sans); }
.filters a.chip { text-decoration: none; }
.filters a.clear { display: inline-block; margin-top: 16px; font-size: 13px; color: var(--muted); text-decoration: underline; }
.more-wrap { text-align: center; margin: 28px 0 8px; }
.type-tabs a.chip { text-decoration: none; }

/* collection v2: search, drawer, active filters, sort */
.search-form.big { margin: 0 0 16px; gap: 8px; max-width: 760px; }
.search-form.big input { padding: 12px 14px; font-size: 15px; border-radius: 12px; background: var(--white); }
.search-form.big input:focus { outline: 2px solid #f5b36b; outline-offset: 1px; border-color: transparent; }
.fdrawer > summary { display: none; }
.fdrawer > summary::-webkit-details-marker { display: none; }
.fdrawer .filters { max-height: calc(100vh - 120px); overflow: auto; overscroll-behavior: contain; }
.badge-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--saffron); color: #2a1200; font-size: 12px; font-weight: 600; margin-left: 6px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 16px; }
.active-filters .af { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #fff4e6; border: 1px solid #f5d2aa; color: var(--navy); font-size: 13px; text-decoration: none; }
.active-filters .af:hover { border-color: var(--saffron); }
.active-filters .af span[aria-hidden] { font-size: 15px; line-height: 1; color: #b4621a; }
.active-filters .clear-all { background: none; border-color: transparent; text-decoration: underline; color: var(--muted); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sort { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.sort select { border: 1px solid var(--line); border-radius: 10px; padding: 7px 28px 7px 10px; font: 13.5px var(--sans); color: var(--navy); background: var(--white); }
.piece-body .pc-title { font-size: 15px; line-height: 1.3; color: var(--navy); }
.piece-body .pc-line { font-size: 13px; color: var(--muted); min-height: 1.3em; }
.piece-media:focus-visible { outline: 3px solid var(--saffron); outline-offset: -3px; }
.empty { background: var(--white); border: 1px dashed var(--line); border-radius: 18px; padding: 28px; text-align: center; color: var(--muted); }
.empty p { margin: 6px 0; }
.pd-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pd-nav { display: flex; gap: 16px; font-size: 14px; }
.pd-nav a { color: var(--navy); text-decoration: none; }
.pd-nav a:hover { color: #b4621a; }
.h1-sub { color: var(--muted); font-weight: 400; }
.spec-list a { color: inherit; text-decoration: underline; text-decoration-color: #f5d2aa; text-underline-offset: 3px; }
@media (max-width: 1024px) {
  .fdrawer { background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
  .fdrawer > summary { display: flex; align-items: center; cursor: pointer; padding: 12px 16px; font-weight: 600; color: var(--navy); list-style: none; }
  .fdrawer > summary::after { content: "+"; margin-left: auto; color: var(--saffron); font-size: 20px; line-height: 1; }
  .fdrawer[open] > summary::after { content: "–"; }
  .fdrawer .filters { border: 0; border-top: 1px solid var(--line); border-radius: 0 0 14px 14px; max-height: none; }
  .type-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  .type-tabs::-webkit-scrollbar { display: none; }
  .type-tabs .chip { flex: 0 0 auto; }
}
@media (max-width: 680px) {
  .search-form.big input { font-size: 16px; }
  .cat-top { margin-bottom: 10px; }
  .piece-body .pc-title { font-size: 14px; }
  .piece-ref { font-size: 11px; word-break: break-all; }
  .pd-nav { width: 100%; justify-content: space-between; }
}

/* ── Japanese (body.ja): Japanese fonts, calmer letter-spacing, line heights that fit kana and kanji ── */
.tp-lang { font-size: 13.5px; font-weight: 600; border: 1px solid var(--line, #e6dccb); border-radius: 999px; padding: 6px 12px !important; }
body.tp.ja {
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", "Cormorant Garamond", serif;
  --sans: "Inter", "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px; line-height: 1.8; word-break: normal; line-break: strict; overflow-wrap: anywhere;
}
body.tp.ja h1, body.tp.ja h2, body.tp.ja h3 { line-height: 1.35; letter-spacing: .02em; }
body.tp.ja .tp-hero h1 { font-size: clamp(30px, 4vw, 46px); }
body.tp.ja .eyebrow, body.tp.ja .h1-kicker, body.tp.ja .f label, body.tp.ja .filters h4 { letter-spacing: .08em; text-transform: none; }
body.tp.ja .logo { font-family: "Cormorant Garamond", Georgia, serif; }   /* the wordmark stays Latin */
body.tp.ja .btn, body.tp.ja .chip { letter-spacing: .02em; }
body.tp.ja .pc-title, body.tp.ja .piece-body b { line-height: 1.5; }
/* The language switch is never hidden by the "fewer links on medium screens" rule. */
.tp-nav a.tp-lang { display: inline-block !important; white-space: nowrap; }
.tp-header .logo { flex-shrink: 0; white-space: nowrap; }
body.tp.ja .tp-nav { gap: 18px; }
body.tp.ja .tp-nav a, body.tp.ja .tp-nav .nav-cta { white-space: nowrap; }
@media (max-width: 1320px) { body.tp.ja .tp-nav a:not(.nav-cta):not(.tp-lang):nth-child(n+4) { display: none; } }
body.tp.ja .pcard h3 { font-size: 19px; line-height: 1.45; }
.tp-nav.open a.tp-lang { align-self: flex-start; }

/* ── LINE sign-in ── */
.btn-line { background: #06c755; color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; }
.btn-line:hover { background: #05b34c; color: #fff; text-decoration: none; }
.btn-line.block { display: flex; width: 100%; }
.or { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: rgba(14, 26, 58, .12); }

/* More angles: other shots of the same piece under the player */
.pd-media { min-width: 0; }
.angles { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; max-width: 560px; }
.angles::-webkit-scrollbar { display: none; }
.angle { position: relative; flex: 0 0 68px; height: 84px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; padding: 0; background: #0d1830; cursor: pointer; }
.angle img { width: 100%; height: 100%; object-fit: cover; display: block; }
.angle span { position: absolute; right: 5px; bottom: 5px; font-size: 9px; color: #fff; background: rgba(10,20,40,.6); border-radius: 8px; padding: 2px 5px; }
.angle[aria-pressed="true"] { border-color: var(--saffron); }
