
/* Noto Sans Bengali (variable, self-hosted; latin subset keeps Bangla pages uniform) */
@font-face {
  font-family: 'Noto Sans Bengali';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/noto-bengali-400-bengali.woff2') format('woff2');
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA-1CED, U+1CF2, U+A8F1;
}
@font-face {
  font-family: 'Noto Sans Bengali';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/noto-bengali-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --green: #006a4e;       /* Bangladesh flag green */
  --green-dark: #004e39;
  --red: #f42a41;
  --ink: #1c2321;
  --muted: #5b6660;
  --bg: #f7f8f7;
  --card: #ffffff;
  --line: #e3e7e4;
  --radius: 10px;
  --maxw: 880px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, "Segoe UI", Roboto, "Noto Sans Bengali", "Hind Siliguri", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}
a { color: var(--green-dark); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* header */
header.site {
  background: var(--green);
  color: #fff;
  padding: 14px 0;
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.brand { color: #fff; text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.brand small { display: block; font-weight: 400; font-size: .72rem; opacity: .85; }
.lang-btn {
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5);
  border-radius: 6px; padding: 4px 12px; cursor: pointer; font-size: .85rem;
}
.lang-btn:hover { background: rgba(255,255,255,.12); }

/* breadcrumb */
nav.crumbs { font-size: .8rem; color: var(--muted); margin: 14px 0 4px; }
nav.crumbs a { text-decoration: none; }

/* main */
main { padding: 10px 0 40px; }
h1 { font-size: 1.7rem; line-height: 1.25; margin: 8px 0 10px; }
.lede { color: var(--muted); font-size: 1.02rem; margin-top: 0; }

.tool-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin: 18px 0;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.field input, .field select {
  font-size: 1rem; padding: 9px 11px; border: 1px solid var(--line);
  border-radius: 7px; width: 100%; max-width: 240px; background: #fff; color: var(--ink);
}
.field input:focus { outline: 2px solid rgba(0,106,78,.35); border-color: var(--green); }
button.calc {
  background: var(--green); color: #fff; border: 0; border-radius: 7px;
  padding: 10px 22px; font-size: 1rem; font-weight: 600; cursor: pointer;
}
button.calc:hover { background: var(--green-dark); }
button.reset {
  background: transparent; color: var(--muted); border: 1px solid var(--line);
  border-radius: 7px; padding: 10px 16px; font-size: .9rem; cursor: pointer; margin-left: 8px;
}

#result {
  margin-top: 16px; border-top: 1px dashed var(--line); padding-top: 14px;
  font-size: 1.05rem; display: none;
}
#result .big { font-size: 1.5rem; font-weight: 700; color: var(--green-dark); }
#result ul { margin: 8px 0 0; padding-left: 20px; }
.err { color: var(--red); }

/* content blocks */
section.blurb h2 { font-size: 1.2rem; margin: 26px 0 8px; }
section.blurb p, section.blurb li { color: #333; font-size: .96rem; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 14px; margin: 8px 0;
}
.faq summary { font-weight: 600; cursor: pointer; }
.faq p { color: #333; font-size: .95rem; margin-bottom: 0; }

/* related tools */
.related { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-top: 8px; }
.related a {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; padding: 12px 14px; text-decoration: none; color: var(--ink);
  font-weight: 600; font-size: .92rem;
}
.related a:hover { border-color: var(--green); }
.related a span { display: block; font-weight: 400; font-size: .8rem; color: var(--muted); }

/* tool grid on home */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 16px; }
.tool-grid a {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 16px; text-decoration: none; color: var(--ink);
}
.tool-grid a:hover { border-color: var(--green); box-shadow: 0 2px 6px rgba(0,0,0,.06); }
.tool-grid h3 { margin: 0 0 4px; font-size: 1rem; }
.tool-grid p { margin: 0; font-size: .85rem; color: var(--muted); }

/* footer */
footer.site { background: #10201a; color: #cfd8d3; margin-top: 30px; padding: 26px 0 34px; font-size: .9rem; }
footer.site a { color: #9fd8c2; }
footer.site .cols { display: flex; gap: 40px; flex-wrap: wrap; }
footer.site h4 { margin: 0 0 6px; color: #fff; font-size: .95rem; }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin: 3px 0; }

/* bangla mode */
html[lang="bn"] body { font-size: 1.02rem; }

/* ---- Phase 2: clocks & tables ---- */
.clock-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin: 16px 0; }
.clock-card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 14px 16px; text-align: center;
}
.clock-city { font-weight: 700; font-size: .95rem; }
.clock-time { font-size: 1.9rem; font-weight: 700; color: var(--green-dark); font-variant-numeric: tabular-nums; }
.clock-date { font-size: .78rem; color: var(--muted); }
.clock-rm {
  position: absolute; top: 6px; right: 8px; border: 0; background: transparent;
  color: var(--muted); font-size: 1.1rem; cursor: pointer; line-height: 1;
}
.clock-rm:hover { color: var(--red); }

.corridor-live h2 { font-size: 1.05rem; margin: 12px 0 6px; }
.corridor-live #liveDiff { font-size: 1.1rem; margin: 0; }
#bestHours { margin: 0; padding-left: 20px; }
#bestHours li { margin: 4px 0; }

.conv-table, .meet-table { border-collapse: collapse; margin: 10px 0; font-variant-numeric: tabular-nums; }
.conv-table th, .conv-table td, .meet-table th, .meet-table td {
  border: 1px solid var(--line); padding: 6px 12px; text-align: left; font-size: .95rem;
}
.conv-table thead th, .meet-table thead th { background: var(--green); color: #fff; }
.conv-table tr:nth-child(even) { background: #f2f5f3; }
.dshift { color: var(--muted); font-size: .8rem; }

.meet-table td.pl-ok { background: #dff0e7; }
.meet-table td.pl-mid { background: #fdf3d7; }
.meet-table td.pl-bad { background: #e9e9e9; color: #7a7a7a; }
.meet-best { background: #e6f4ee; border: 1px solid #bcd9cb; border-radius: 8px; padding: 10px 14px; }
#result table { max-width: 100%; }

/* ---------- Bijoy converter & Bangla calendar ---------- */
.tool-card textarea {
  width: 100%;
  min-height: 7.5rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border, #c9c4bd);
  border-radius: 0.4rem;
  font: inherit;
  font-family: inherit;
  line-height: 1.6;
  resize: vertical;
  box-sizing: border-box;
}
.today-bn {
  margin: 0.75rem 0;
  padding: 0.6rem 0.85rem;
  background: var(--muted, #f4f1ec);
  border-radius: 0.4rem;
  font-size: 1.05rem;
}
.today-bn .dim, #result .dim { color: var(--muted-foreground, #6b6259); font-size: 0.92em; }

/* =====================================================================
   Phase 4: visual refresh (logo, header, hero, cards, forms, footer)
   ===================================================================== */
:root {
  --green-soft: #e8f3ee;
  --green-tint: #f3f9f6;
  --shadow-sm: 0 1px 2px rgba(16,32,26,.06), 0 1px 3px rgba(16,32,26,.05);
  --shadow-md: 0 4px 14px rgba(16,32,26,.09);
  --maxw: 960px;
}
body { background: linear-gradient(180deg, var(--green-tint) 0, var(--bg) 340px) no-repeat, var(--bg); font-size: 16.5px; -webkit-font-smoothing: antialiased; }

/* header: white bar so the full-colour logo reads, green accent underline */
header.site {
  background: #fff; color: var(--ink); padding: 10px 0;
  border-bottom: 3px solid var(--green);
  box-shadow: 0 2px 10px rgba(16,32,26,.06);
  position: sticky; top: 0; z-index: 20;
}
.brand { display: flex; align-items: center; line-height: 0; }
.brand img { height: 56px; width: auto; display: block; }
.lang-btn {
  background: var(--green); color: #fff; border: 0; border-radius: 999px;
  padding: 8px 18px; font-weight: 600; font-size: .9rem; cursor: pointer;
  transition: background .15s, transform .1s;
}
.lang-btn:hover { background: var(--green-dark); }
.lang-btn:active { transform: scale(.97); }
@media (max-width: 600px) { .brand img { height: 38px; } .lang-btn { padding: 7px 14px; } }

/* hero */
.hero { padding: 34px 0 10px; }
.hero h1 { font-size: clamp(1.8rem, 4.4vw, 2.6rem); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 12px; color: var(--green-dark); }
.hero .lede { font-size: 1.08rem; max-width: 760px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0 14px; }
.btn-primary, .btn-ghost {
  display: inline-block; padding: 12px 24px; border-radius: 10px; font-weight: 700;
  text-decoration: none; font-size: 1rem; transition: transform .1s, box-shadow .15s, background .15s;
}
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 3px 10px rgba(244,42,65,.28); }
.btn-primary:hover { background: #d81f35; box-shadow: 0 5px 14px rgba(244,42,65,.35); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--green-dark); border: 2px solid var(--green); }
.btn-ghost:hover { background: var(--green-soft); transform: translateY(-1px); }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
.trust li::before { content: "\2713"; color: var(--green); font-weight: 800; margin-right: 6px; }

/* headings */
h2#tools, section.blurb h2 { position: relative; padding-left: 14px; }
h2#tools::before, section.blurb h2::before {
  content: ""; position: absolute; left: 0; top: .18em; bottom: .18em; width: 5px;
  border-radius: 3px; background: linear-gradient(180deg, var(--green), var(--red));
}
h2#tools { font-size: 1.4rem; margin: 30px 0 4px; }

/* cards */
.tool-grid a, .related a, .clock-card {
  border-radius: 14px; box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.tool-grid a { padding: 18px 18px 16px; border-top: 3px solid transparent; }
.tool-grid a:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line); border-top-color: var(--red); }
.tool-grid h3 { color: var(--green-dark); font-size: 1.05rem; margin-bottom: 6px; }
.related a:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.tool-card { border-radius: 16px; box-shadow: var(--shadow-md); border: 1px solid var(--line); padding: 26px; }

/* controls */
.field label { color: var(--green-dark); }
.field input, .field select, .tool-card textarea {
  border: 1.5px solid #cfd8d3; border-radius: 9px; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .tool-card textarea:focus {
  outline: 0; border-color: var(--green); box-shadow: 0 0 0 4px rgba(0,106,78,.14);
}
button.calc {
  border-radius: 10px; padding: 12px 28px; box-shadow: 0 3px 8px rgba(0,106,78,.25);
  transition: background .15s, transform .1s, box-shadow .15s;
}
button.calc:hover { transform: translateY(-1px); box-shadow: 0 5px 12px rgba(0,106,78,.3); }
button.calc:active { transform: translateY(0); }
button.reset { border-radius: 10px; padding: 12px 18px; }
button.reset:hover { background: #f1f4f2; }

/* results */
#result { background: var(--green-tint); border: 1px solid #d3e8de; border-radius: 12px; padding: 16px 18px; margin-top: 18px; }
#result .big { font-size: 1.7rem; }

/* tables */
.conv-table, .meet-table { border-radius: 10px; overflow: hidden; border-collapse: separate; border-spacing: 0; box-shadow: var(--shadow-sm); }
.conv-table th, .conv-table td, .meet-table th, .meet-table td { border-width: 0 0 1px 0; }

/* faq */
.faq details { border-radius: 12px; box-shadow: var(--shadow-sm); transition: box-shadow .15s; }
.faq details[open] { box-shadow: var(--shadow-md); border-color: #cde3d8; }
.faq summary { padding: 4px 0; }

/* footer */
footer.site { background: #0d1d17; border-top: 4px solid var(--red); margin-top: 48px; padding: 36px 0 42px; }
footer.site a { text-decoration: none; }
footer.site a:hover { text-decoration: underline; color: #fff; }

/* ---- tool icons ---- */
.ti { display: block; }
.ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: 16px; margin-bottom: 12px;
  background: var(--green-soft); color: var(--green);
  transition: background .18s, color .18s, transform .18s;
}
.ico .ti { width: 34px; height: 34px; }
.tool-grid a:hover .ico { background: var(--green); color: #fff; transform: scale(1.06) rotate(-3deg); }
.tool-grid a:hover .ico .ti [stroke="#f42a41"] { stroke: #fff; }
.tool-grid a:hover .ico .ti circle[fill="#fff"], .tool-grid a:hover .ico .ti path[fill="#fff"] { fill: var(--green); }

/* related tiles: icon sits left of the text */
.related a { position: relative; padding-left: 62px; min-height: 58px; }
.related a .ico-sm {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 11px; margin: 0;
}
.related a .ico-sm .ti { width: 22px; height: 22px; }
.related a:hover .ico-sm { background: var(--green); color: #fff; }
.related a:hover .ico-sm .ti [stroke="#f42a41"] { stroke: #fff; }
/* corridor links (no icon) keep the normal padding */
.related a:not(:has(.ico-sm)) { padding-left: 14px; min-height: 0; }

/* page heading with icon badge */
.page-head { display: flex; align-items: center; gap: 14px; margin: 8px 0 10px; }
.page-head h1 { margin: 0; }
.ico-head { width: 52px; height: 52px; flex: none; margin: 0; border-radius: 15px; }
.ico-head .ti { width: 32px; height: 32px; }
@media (max-width: 520px) { .ico-head { width: 44px; height: 44px; } .ico-head .ti { width: 26px; height: 26px; } }

/* ---- categories ---- */
.cat-h { margin: 30px 0 4px; font-size: 1.06rem; letter-spacing: .01em; color: var(--green); }
.cat-h:first-of-type { margin-top: 18px; }

/* ---- misc tool bits ---- */
.tiny { font-size: .82rem; color: var(--muted, #6b7280); margin: 10px 0 0; line-height: 1.5; }
.form-sub { margin: 18px 0 6px; font-size: .98rem; }
.btn-row { margin: 6px 0 14px; }
.btn-row .reset { cursor: pointer; }

/* bKash comparison table */
.cmp-table { border-collapse: collapse; margin: 12px 0 4px; font-variant-numeric: tabular-nums; }
.cmp-table th, .cmp-table td { padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--border, #e5e7eb); font-size: .92rem; }
.cmp-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted, #6b7280); }
.cmp-table tr.sel td { background: var(--green-soft, #e9f4ef); font-weight: 600; }

/* PR tracker */
.trip-row { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.trip-row input[type="date"] { flex: 1; }
.trip-row .trip-x { border: none; background: none; color: var(--red, #f42a41); font-size: 1.3rem; cursor: pointer; padding: 2px 8px; }
.pbar { height: 14px; border-radius: 999px; background: var(--green-soft, #e9f4ef); overflow: hidden; margin: 10px 0 6px; }
.pbar span { display: block; height: 100%; background: var(--green, #006a4e); border-radius: 999px; transition: width .3s; }
.cta-line { margin-top: 14px; }
.cta-line a { display: inline-block; margin: 4px 14px 4px 0; font-weight: 600; color: var(--green, #006a4e); }

/* Ramadan countdown rows */
.cd-list { margin: 14px 0 4px; }
.cd-row { display: flex; align-items: baseline; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--border, #e5e7eb); }
.cd-row .cd-name { flex: 1.2; font-weight: 600; }
.cd-row .cd-date { flex: 1.4; font-size: .9rem; }
.cd-row .cd-days { flex: .6; text-align: right; font-weight: 600; color: var(--green, #006a4e); white-space: nowrap; }

/* Bangla calendar seasonal countdowns */
.seasonal { margin: 6px 0 10px; }
.seasonal .cd-row { border-bottom: 1px dashed var(--border, #e5e7eb); }

/* Biodata preview sheet */
.bio-sheet { border: 1px solid #e0ebe7; border-radius: 12px; padding: 18px; background: #fff; max-width: 720px; margin: 0 auto; }
.bio-sheet .bs-head { text-align: center; border-bottom: 3px solid #006a4e; padding-bottom: 10px; margin-bottom: 12px; }
.bio-sheet .bs-head h1 { margin: 0; font-size: 20px; color: #006a4e; }
.bio-sheet .bs-head p { margin: 4px 0 0; font-size: 13px; color: #d32f2f; }
.bio-sheet .bs-head .bs-name { font-size: 17px; color: #1a1a1a; margin-top: 6px; }
.bio-sheet .bs-table { width: 100%; border-collapse: collapse; }
.bio-sheet th { width: 32%; text-align: left; padding: 7px 10px; background: #f0f7f4; color: #006a4e; font-size: 14px; border: 1px solid #e0ebe7; vertical-align: top; }
.bio-sheet td { padding: 7px 10px; font-size: 14px; border: 1px solid #e0ebe7; }
.bio-sheet .bs-foot { text-align: center; font-size: 11px; color: #9aa5a1; margin: 12px 0 0; }
@media (max-width: 640px) { .bio-sheet th, .bio-sheet td { font-size: 13px; padding: 6px 8px; } }

/* Header search */
.site-search { position: relative; margin-left: auto; min-width: 180px; max-width: 340px; flex: 1; }
.site-search input {
  width: 100%; padding: 9px 14px; border-radius: 999px; border: 1.5px solid #d5e0dc;
  font-size: 14.5px; background: #f7faf9; color: #1a1a1a; outline: none; transition: border-color .15s, background .15s;
}
.site-search input:focus { border-color: #006a4e; background: #fff; }
.search-drop {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60;
  background: #fff; border: 1px solid #e0ebe7; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,40,25,.14);
  overflow: hidden; max-height: 380px; overflow-y: auto;
}
.sd-row { display: block; padding: 9px 14px; text-decoration: none; border-bottom: 1px solid #f0f5f3; }
.sd-row:last-child { border-bottom: none; }
.sd-row:hover, .sd-row.sd-sel { background: #f0f7f4; }
.sd-title { display: block; font-size: 14px; font-weight: 600; color: #006a4e; }
.sd-desc { display: block; font-size: 12px; color: #5c6b66; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-none { padding: 12px 14px; font-size: 13.5px; color: #5c6b66; }
@media (max-width: 720px) {
  .site-search { order: 3; min-width: 100%; max-width: none; margin: 8px 0 0; }
  header.site .wrap { flex-wrap: wrap; }
}

/* ---- homepage cards: icon + title on one line, shaded header band ---- */
.tool-grid a { padding: 0; overflow: hidden; display: flex; flex-direction: column; border-top: 3px solid var(--red); }
.tool-grid a:hover { border-top-color: var(--red); }
.tool-grid .card-head {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: var(--green-soft);
  border-bottom: 1px solid #d3e6dc;
  transition: background .18s;
}
.tool-grid .card-head .ico {
  width: 44px; height: 44px; margin: 0; flex: none; border-radius: 12px;
  background: #fff; box-shadow: 0 1px 2px rgba(16,32,26,.08);
}
.tool-grid .card-head .ico .ti { width: 26px; height: 26px; }
.tool-grid .card-head h3 { margin: 0; font-size: 1.02rem; line-height: 1.3; flex: 1; min-width: 0; }
.tool-grid a > p { padding: 12px 16px 16px; background: #fff; line-height: 1.55; flex: 1; }
.tool-grid a:hover .card-head { background: #dcece4; }
.tool-grid a:hover .card-head .ico { background: var(--green); color: #fff; transform: none; }


/* ---- homepage news ticker ---- */
.news-ticker {
  display: flex; align-items: center; gap: 14px;
  max-width: var(--maxw); margin: 14px auto 0; padding: 0 14px;
}
.news-ticker[hidden] { display: none; }
.nt-label {
  flex: none; font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  color: #fff; background: var(--red); border-radius: 6px; padding: 3px 8px;
}
.nt-viewport { flex: 1; overflow: hidden; white-space: nowrap; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.nt-track { display: inline-block; white-space: nowrap; will-change: transform; animation: nt-scroll 60s linear infinite; }
.nt-track a { text-decoration: none; color: var(--ink); font-size: .9rem; }
.nt-track a:hover { text-decoration: underline; color: var(--green); }
.nt-dot { color: var(--red); margin: 0 12px; font-size: .8rem; }
.nt-src { flex: none; font-size: .72rem; color: var(--muted); text-decoration: none; }
.nt-src:hover { text-decoration: underline; }
.news-ticker:hover .nt-track, .news-ticker:focus-within .nt-track { animation-play-state: paused; }
@keyframes nt-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .nt-track { animation: none; }
  .nt-viewport { overflow-x: auto; }
}
@media (max-width: 640px) {
  .nt-src { display: none; }
  .news-ticker { gap: 10px; margin-top: 10px; }
}

.nt-group { display: inline-block; white-space: nowrap; }


/* ---- category nav ---- */
.catnav { background: var(--card); border-bottom: 1px solid var(--line); }
.catnav .wrap { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.catnav .wrap::-webkit-scrollbar { display: none; }
.catnav a { flex: none; padding: 9px 12px; font-size: .82rem; font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.catnav a:hover { color: var(--ink); }
.catnav a.on { color: var(--red); border-bottom-color: var(--red); font-weight: 700; }

/* affiliate visit link in remittance table */
.visit-link { display: inline-block; padding: 4px 10px; border-radius: 7px; background: var(--green); color: #fff !important; font-size: .78rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.visit-link:hover { background: var(--green-dark); color: #fff; }
