/* INSIDER Bid Board. One clean stylesheet. Layout follows the board's own width, not the screen. */
#itb{--ivory:#F5F3F1;--stone:#E7E5E1;--paper:#FBFAF8;--line:#D9E3DF;--teal:#0E4A42;--teal2:#136258;--deep:#0A2E29;--board:#0F3F39;--tile:#16524A;--tileTop:#1B5D54;--ink:#24302D;--muted:#5E6B67;--cham:#D6B98A;--cham2:#F3E6C8;--live:#9FD3C2;--sub:#AFC6BF;
--c-rough:#D6B98A;--c-polished:#9FD3C2;--c-gem:#8FB4E3;--c-jewel:#E6B9A8;--c-watch:#C9B8E8;--c-none:#7F9C95;
--serif:"Cormorant Garamond",Georgia,serif;--sans:"Karla","Helvetica Neue",Arial,sans-serif;--flap:"Oswald","Arial Narrow",Arial,sans-serif;
background:var(--ivory);color:var(--ink);font-family:var(--sans);direction:ltr;text-align:left;-webkit-font-smoothing:antialiased;box-sizing:border-box;container-type:inline-size;container-name:itb}
#itb *,#itb *::before,#itb *::after{box-sizing:border-box}
#itb button,#itb input,#itb select,#itb textarea{font:inherit;line-height:1.2;text-transform:none;letter-spacing:normal;box-shadow:none;margin:0;min-height:0}
#itb button{cursor:pointer}
#itb :focus-visible{outline:2px solid var(--cham);outline-offset:3px}
#itb h1,#itb h2,#itb p,#itb ul,#itb dl{margin-top:0}
#itb [hidden]{display:none!important}

/* header */
#itb .wrap{max-width:1180px;margin:0 auto;padding:22px 20px 90px}
/* the board comes first: one slim title line, then filters and the board. Context and SEO text live at the bottom. */
#itb .top{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap;margin:0 0 8px}
#itb .mark{margin:0;font-size:inherit;line-height:1.1}
#itb .mark .w{font-family:var(--serif);font-size:22px;font-weight:600;color:var(--teal)}
#itb .mark .by{font-size:13px;color:var(--muted);margin-left:8px}
#itb .mark .by b{color:var(--teal);letter-spacing:.22em}
#itb .clock{font-family:var(--flap);color:var(--teal);font-size:15px;letter-spacing:.06em}
#itb .about{margin-top:34px;max-width:70ch}
#itb .about h2{font-family:var(--serif);font-weight:500;font-size:30px;color:var(--teal);margin:0 0 6px}
#itb .about p{margin:0 0 10px;font-size:15px;line-height:1.55;color:var(--ink)}
#itb .answer{margin:14px 0 0;font-size:15px;line-height:1.55;max-width:60ch;color:var(--teal);border-left:3px solid var(--cham);padding:2px 0 2px 12px}

/* filters: the airport-board pills, compact. The dot is the row's edge color, so no separate legend is needed. */
#itb .ctrl{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin:0 0 12px}
#itb .fgroup{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
#itb .ctrl-top{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
#itb .region{position:relative;flex:0 0 auto}
#itb .region select{appearance:none;-webkit-appearance:none;border:1px solid var(--teal);background:transparent;color:var(--teal);border-radius:999px;padding:6px 32px 6px 13px;font-size:14px;cursor:pointer}
#itb .region select:hover{background:rgba(14,74,66,.07)}
#itb .region.on select{background:var(--teal);color:var(--ivory)}
#itb .region::after{content:"";position:absolute;right:13px;top:50%;width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;color:var(--teal);transform:translateY(-70%) rotate(45deg);pointer-events:none}
#itb .region.on::after{color:var(--ivory)}
#itb .fgroup button{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--teal);background:transparent;color:var(--teal);border-radius:999px;padding:6px 13px;font-size:14px;white-space:nowrap;transition:background .15s,color .15s}
#itb .fgroup button i{width:8px;height:8px;border-radius:50%;background:var(--c);flex:0 0 auto}
#itb .fgroup button:hover{background:rgba(14,74,66,.07)}
#itb .fgroup button[aria-pressed="true"]{background:var(--teal);color:var(--ivory)}
#itb .fgroup button[disabled]{opacity:.38;cursor:default;background:transparent}
#itb .ctrl-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:2px}
#itb .result{margin:0;font-size:14px;color:var(--muted);display:flex;align-items:center;gap:10px}
#itb .result b{color:var(--teal);font-family:var(--flap);font-size:16px;letter-spacing:.04em}
#itb .clear{border:0;background:none;color:var(--teal2);text-decoration:underline;text-underline-offset:3px;padding:4px 0;font-size:14px}
#itb .add{border:0;background:none;color:var(--teal);font-size:14px;font-weight:500;padding:6px 0;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:4px}
#itb .add span{font-family:var(--flap);font-size:16px;margin-right:3px;text-decoration:none;display:inline-block}

/* the board */
#itb .tap{display:none}
#itb .board{background:var(--deep);border-radius:22px;padding:10px;box-shadow:inset 0 0 0 1px rgba(214,185,138,.18),0 24px 60px rgba(14,74,66,.22)}
#itb .head,#itb .row{display:grid;grid-template-columns:118px minmax(0,1.3fr) minmax(0,1.2fr) 108px 84px 112px 128px;gap:10px;align-items:center}
#itb .head{padding:4px 12px 8px;color:var(--cham);font-family:var(--flap);font-size:13px;letter-spacing:.14em;text-transform:uppercase}
#itb #itb-rows{display:grid;gap:4px}
#itb .row{background:var(--board);border-radius:8px;position:relative;padding:12px 12px 12px 15px;color:var(--cham2);cursor:pointer;box-shadow:inset 0 1px 0 rgba(255,255,255,.04)}
#itb .row::before{content:"";position:absolute;left:0;top:8px;bottom:8px;width:3px;border-radius:0 3px 3px 0;background:var(--c,var(--c-rough))}
#itb .row:hover,#itb .row:focus-visible{background:#14514A}
#itb .row.hit{box-shadow:inset 0 0 0 2px var(--cham)}
#itb .cell{font-size:15px;line-height:1.3;min-width:0;overflow-wrap:anywhere}
#itb .sheet,#itb .answer{overflow-wrap:anywhere}
#itb .cell .sub{display:block;font-size:12px;color:var(--sub);margin-top:2px}
#itb .cycle{display:block;min-height:1.3em;transform-origin:50% 0}
#itb .cycle.turn{animation:itbTurn .32s ease}
#itb .goods{display:inline-block;white-space:nowrap;border:1px solid var(--c);border-radius:999px;padding:2px 9px;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--c)}
#itb .empty{padding:28px 10px;color:#BFD3CD;margin:0}
#itb .empty button{border:0;background:none;color:var(--cham2);text-decoration:underline;padding:0}
#itb .foot{margin-top:12px;font-size:13px;color:var(--muted)}

/* goods colors, one place */
#itb [data-g="Rough"]{--c:var(--c-rough)}
#itb [data-g="Polished"]{--c:var(--c-polished)}
#itb [data-g="Gemstones"]{--c:var(--c-gem)}
#itb [data-g="Jewels"]{--c:var(--c-jewel)}
#itb [data-g="Watches"]{--c:var(--c-watch)}
#itb [data-g="Not stated"]{--c:var(--c-none)}
#itb [data-g="all"]{--c:conic-gradient(var(--c-rough) 0 20%,var(--c-polished) 0 40%,var(--c-gem) 0 60%,var(--c-jewel) 0 80%,var(--c-watch) 0)}

/* split-flap */
#itb .flap{display:inline-flex;gap:2px}
#itb .ch{position:relative;display:inline-grid;place-items:center;width:.82em;height:1.32em;background:linear-gradient(var(--tileTop) 0 49.4%,#0B3530 49.4% 50.6%,var(--tile) 50.6%);border-radius:3px;font-family:var(--flap);font-weight:500;font-size:19px;color:var(--cham2);text-transform:uppercase;overflow:hidden}
#itb .ch.sp{background:transparent;width:.38em}
#itb .ch.fl{animation:itbFlip .09s linear}
#itb .st{font-family:var(--flap);letter-spacing:.06em;font-size:14px;text-transform:uppercase}
#itb .st .s{display:none}
#itb .st .u{font-family:var(--sans);font-weight:500;text-transform:none;letter-spacing:0;font-size:.9em;color:var(--sub);margin-left:1px}
#itb .st.viewing{color:var(--live)}
#itb .st.viewing::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--live);margin-right:7px;vertical-align:1px}
#itb .st.final{color:#F0C27A;animation:itbBlink 1.4s steps(2) infinite}
#itb .st.sched{color:var(--cham2)}
#itb .st.bidding{color:var(--cham)}
#itb .st.bidding::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--cham);margin-right:7px;vertical-align:1px}
#itb .c-close .bl{display:block;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--sub);margin-bottom:2px;font-family:var(--flap)}
@keyframes itbFlip{0%{transform:scaleY(1)}50%{transform:scaleY(.15)}100%{transform:scaleY(1)}}
@keyframes itbBlink{50%{opacity:.45}}
@keyframes itbTurn{0%{transform:rotateX(0);opacity:1}45%{transform:rotateX(90deg);opacity:.2}55%{transform:rotateX(-90deg);opacity:.2}100%{transform:rotateX(0);opacity:1}}

/* watch list + tell us */
/* coming soon: a running band, same language as the Press page ticker */
#itb .soon{position:relative;margin:10px 0 0;background:var(--deep);border-radius:14px;overflow:hidden;display:flex;align-items:stretch}
#itb .soon-k{margin:0;flex:0 0 auto;display:flex;align-items:center;padding:0 16px;font-family:var(--flap);font-weight:500;font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:var(--deep);background:var(--cham);position:relative;z-index:2}
#itb .soon-band{overflow:hidden;white-space:nowrap;padding:14px 0;flex:1 1 auto;min-width:0;-webkit-mask-image:linear-gradient(90deg,transparent,#000 40px,#000 calc(100% - 40px),transparent);mask-image:linear-gradient(90deg,transparent,#000 40px,#000 calc(100% - 40px),transparent)}
#itb .soon-t{display:inline-flex;align-items:center;gap:40px;padding-left:40px;animation:itbTick 60s linear infinite;font-family:var(--serif);font-style:italic;font-size:20px;color:var(--cham2)}
#itb .soon-t em{font-style:normal;font-family:var(--flap);font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:var(--cham)}
#itb .soon:hover .soon-t{animation-play-state:paused}
@keyframes itbTick{from{transform:translateX(0)}to{transform:translateX(-50%)}}
#itb .vh{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;margin:-1px;padding:0;border:0}
/* intro: one headline and one line, then the board */
#itb .intro{margin:6px 0 16px}
#itb .intro h1{font-family:var(--serif);font-weight:500;font-size:clamp(30px,3.6vw,46px);line-height:1.05;margin:0 0 8px;color:var(--teal);max-width:none}
#itb .intro p{margin:0;font-size:15px;color:var(--muted);max-width:62ch}
#itb .tell{margin-top:28px;display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;border:1px dashed var(--teal2);border-radius:20px;padding:20px 22px;background:var(--paper)}
#itb .tell p{margin:0;color:var(--muted);font-size:15px;max-width:52ch}

/* sheets: sale details and the form */
#itb .veil{position:fixed;inset:0;background:rgba(14,74,66,.34);backdrop-filter:blur(3px);display:none;align-items:center;justify-content:center;z-index:60;padding:16px}
#itb .veil.on{display:flex}
#itb .sheet{background:var(--ivory);border-radius:22px;width:min(560px,100%);max-height:calc(100% - 20px);overflow:auto;padding:24px 22px;box-shadow:0 30px 80px rgba(14,74,66,.35)}
#itb .sheet h2{font-family:var(--serif);font-weight:500;font-size:34px;margin:0 0 4px;color:var(--teal)}
#itb .sheet dl{display:grid;grid-template-columns:auto 1fr;gap:8px 16px;margin:16px 0;font-size:15px}
#itb .sheet dt{color:var(--muted)}#itb .sheet dd{margin:0;font-weight:500}
#itb .sheet .src,#itb .sheet .intro,#itb .sheet .consent{font-size:14px;color:var(--muted);line-height:1.5}
#itb .sheet a{color:var(--teal2)}
#itb .btns{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}
#itb .yes{background:var(--teal);color:var(--ivory);border:0;border-radius:999px;padding:11px 20px;font-weight:500}
#itb .yes[disabled]{opacity:.6;cursor:wait}
#itb .share{margin-right:auto;background:transparent;border:0;color:var(--teal);text-decoration:underline;text-underline-offset:3px;padding:11px 4px}
#itb .no{background:transparent;color:var(--teal);border:1px solid var(--line);border-radius:999px;padding:11px 18px}
#itb .fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0 8px}
#itb .f{display:grid;gap:5px;font-size:14px;color:var(--ink);min-width:0}
#itb .f.full{grid-column:1/-1}
#itb .chk{grid-column:1/-1;display:flex;align-items:center;gap:9px;font-size:14px;color:var(--ink);cursor:pointer;margin-top:-4px}
#itb .chk input{width:18px;height:18px;accent-color:var(--teal);flex:0 0 auto}
#itb .f.off{opacity:.45}
#itb .dt{position:relative;display:block}
#itb .f .dt input[type=text]{padding-right:44px;font-variant-numeric:tabular-nums;letter-spacing:.02em}
#itb .dtp{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:36px;height:36px;display:grid;place-items:center;border:0;border-radius:8px;background:transparent;color:var(--teal);padding:0}
#itb .dtp:hover{background:rgba(14,74,66,.07)}
#itb .dtp[disabled]{opacity:.4;cursor:default}
#itb .f .dt .dtn{position:absolute;right:0;bottom:0;width:36px;height:36px;opacity:0;pointer-events:none;padding:0;border:0}
#itb .f i{font-style:normal;font-size:12px;color:var(--muted);margin-left:4px}
#itb .f input,#itb .f select,#itb .f textarea{width:100%;border:1px solid var(--line);background:#fff;border-radius:10px;padding:10px 12px;font-size:15px;color:var(--ink)}
#itb .f textarea{resize:vertical}
#itb .f input:focus,#itb .f select:focus,#itb .f textarea:focus{outline:2px solid var(--teal2);outline-offset:0;border-color:var(--teal2)}
#itb .f.bad input,#itb .f.bad select{border-color:#B5523B}
#itb .err{color:#9A3F2C;font-size:14px;margin:6px 0 0;min-height:1em}
#itb .hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
#itb .done p{color:var(--muted);font-size:15px}

/* medium: the board turns compact, controls stay fully visible */
@container itb (max-width:980px){
  #itb .fgroup{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-webkit-mask-image:linear-gradient(90deg,#000 88%,transparent);mask-image:linear-gradient(90deg,#000 88%,transparent);padding-right:24px}
  #itb .fgroup::-webkit-scrollbar{display:none}
  #itb .board{padding:6px;border-radius:16px}
  #itb .head,#itb .row{grid-template-columns:84px 44px minmax(0,1fr) auto;gap:9px}
  #itb .head{padding:4px 10px 6px;font-size:11px}
  #itb .row{padding:10px 10px 10px 13px;min-height:56px}
  #itb .c-origin,#itb .c-goods,#itb .c-close{display:none}
  #itb .c-view{order:1}#itb .c-city{order:2}#itb .c-seller{order:3}#itb .c-status{order:4;text-align:right}
  #itb .ch{font-size:15px}
  #itb .c-view .sub,#itb .c-city .sub{display:none}
  #itb .row .c-seller{font-size:14px}
  #itb .c-seller .nm{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
  #itb .c-seller .sub{white-space:pre-line;line-height:1.35}
  #itb .st{font-size:13px;white-space:nowrap}
  #itb .st .l{display:none}#itb .st .s{display:inline}
  #itb .tap{display:block;font-size:13px;color:var(--muted);margin:0 0 8px}
}
/* phone */
@container itb (max-width:520px){
  #itb .wrap{padding:18px 14px 70px}
  #itb .ctrl-top{flex-wrap:wrap}
  #itb .ctrl-top .fgroup{flex:1 1 100%;min-width:0}
  #itb .fgroup button{padding:7px 12px}
  #itb .head,#itb .row{grid-template-columns:auto auto minmax(0,1fr) 56px;gap:8px}
  #itb .st{white-space:normal}
  #itb .ch{font-size:13px}
  #itb .fields{grid-template-columns:1fr}
  #itb .tell{padding:18px}
  #itb .soon-k{padding:0 12px;font-size:11px}
  #itb .soon-t{font-size:17px;gap:28px}
}
@media (prefers-reduced-motion:reduce){#itb .ch.fl,#itb .st.final,#itb .cycle.turn,#itb .soon-t{animation:none}#itb .soon-band{overflow-x:auto}}
