/* Fantasy Draft Scheduler styles.css - Mobile-first + Month/DOW headers + Pill =========================== */

/* Reset / base */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root{
  --green-dark: #2E8B57;
  --green: #3CB043;
  --green-mid: #7BB661;
  --green-dim: #A9BA9D;
  --green-olive: #556B2F;
  --bg: #f5f5f5;
  --text: #222;

  /* Month header is intentionally NOT green */
  --month-bar: #3d4551;   /* slate/dark gray */
  --month-text: #ffffff;
}

html, body { height: 100%; }
body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.4;
}

/* Buttons */
button {
  cursor: pointer;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  transition: opacity .15s ease;
}
button:hover { opacity: .9; }

/* Header */
header {
  display: grid;
  grid-template-columns: auto 1fr auto auto; /* menu | title | pill | actions */
  column-gap: 8px;
  align-items: center;
  background: var(--green-dark);
  color: #fff;
  padding: 10px;
}
header h1 {
  font-size: 1.1rem;
  text-align: center;
  font-weight: 800;
}

/* Header actions group (right side) */
.header-right {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Default Weekday Unavailability pill (filled by JS) */
#weekday-pill {
  justify-self: end;
  background: #1f2937; /* neutral dark (not green) so it stands out */
  color: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: .85rem;
  white-space: nowrap;
}

/* Side menu: single class .open for slide-in */
.side-menu {
  position: fixed;
  top: 0; left: 0;
  width: 80%;
  max-width: 320px;
  height: 100%;
  background: var(--green-dark);
  color: #fff;
  padding: 20px;
  z-index: 1000;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform .3s ease;
}
.side-menu.open { transform: translateX(0); }
.side-menu h2 { margin-bottom: 16px; font-weight: 800; }
.side-menu ul { list-style: none; }
.side-menu ul li { border-bottom: 1px solid rgba(255,255,255,.2); }
.side-menu ul li > button {
  width: 100%;
  background: transparent;
  color: #fff;
  text-align: left;
  border-radius: 0;
  padding: 12px 0;
}
#close-side-menu,
#create-league-button {
  width: 100%;
  margin: 10px 0;
}

/* Day-of-week header (S M T W T F S) */
.dow-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  padding: 8px 10px 0 10px;
}
.dow-cell {
  text-align: center;
  font-weight: 800;
  color: var(--green-dark);
  font-size: .9rem;
}

/* Month bar (distinct color from app greens) */
.month-bar {
  grid-column: 1 / -1;
  background: var(--month-bar);
  color: var(--month-text);
  padding: 6px 10px;
  margin: 8px 10px 4px 10px;
  border-radius: 6px;
  font-weight: 800;
}

/* Calendar grid */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  padding: 10px;
}
.calendar-row { display: contents; }

.calendar-cell {
  background: var(--green-mid); /* base before brightness mapping */
  border-radius: 8px;
  min-height: 84px;
  padding: 10px;
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-weight: 700;
}
.calendar-cell .cell-date { font-size: 1rem; }
.calendar-cell .cell-label { font-size: .75rem; margin-top: 4px; }
.calendar-cell .cell-percent { font-size: .8rem; margin-top: 6px; }

.calendar-cell.today { border: 2px solid #ffd54f; } /* amber/yellow */
.calendar-cell.past-day { background: var(--green-dim); color: #555; }
.calendar-cell.nfl-start { background: var(--green-olive); color: gold; }

/* Footer */
footer {
  position: fixed;
  bottom: 0; left: 0; width: 100%;
  background: var(--green-dark);
  text-align: center;
  padding: 12px;
  box-shadow: 0 -2px 8px rgba(0,0,0,.08);
}
footer button {
  width: 84%;
  max-width: 520px;
  font-size: 1rem;
}

/* Modals */
.modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  display: flex; justify-content: center; align-items: center;
  z-index: 2000;
}
.modal-content {
  background: #fff;
  width: 92%;
  max-width: 440px;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}
.modal-content h2 { margin-bottom: 12px; }
.modal-content p { margin-bottom: 8px; color: #333; }
.modal-content label { display: block; margin: 10px 0; }
.modal-content input,
.modal-content select {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border: 1px solid #d2d6db;
  border-radius: 8px;
  font-size: 1rem;
}

/* Time picker row (dropdowns) */
.time-row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin: 10px 0 4px;
  flex-wrap: wrap;
}
.picker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.picker span { font-weight: 700; }
.confirm-note {
  margin-top: 6px;
  font-size: .92rem;
  color: #333;
}
.modal-content button { margin-top: 14px; }

/* Small screens polish */
@media (min-width: 480px) {
  header h1 { font-size: 1.2rem; }
  .calendar-cell { min-height: 92px; }
}

/* Month section wrapper */
.month-section { margin-bottom: 8px; }

/* Both headers and days use the same 7-col grid */
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  padding: 0 10px;
}

/* DOW header row */
.month-grid.dow {
  margin-top: 6px;
}
.dow-cell {
  text-align: center;
  font-weight: 800;
  color: var(--green-dark);
  background: transparent; /* keep clean */
  padding: 4px 0;
}

/* Day cells grid */
.month-grid.days { margin-top: 6px; }

/* Placeholder cells keep columns aligned but stay subdued */
.calendar-cell.placeholder {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  pointer-events: none;
  min-height: 0;
}

/* Make the outer calendar container a normal block (stack months vertically) */
#calendar-grid.calendar-grid {
  display: block;        /* was: grid */
  padding: 10px;
}

/* Month section spacing tightened so both months fit comfortably */
.month-section { 
  margin-bottom: 12px;   /* adjust as needed */
}

/* Keep month grids as 7 columns (no change needed if you already have this) */
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  padding: 0 10px;
}

/* Month bars + DOW header: tighter */
.month-bar { margin: 6px 10px 2px; padding: 5px 10px; }
.month-section { margin-bottom: 8px; }
.month-grid { gap: 4px; padding: 0 8px; }
.month-grid.dow { margin-top: 4px; }
.dow-cell { font-size: .85rem; padding: 2px 0; }

/* Day cells: smaller footprint */
.calendar-cell { 
  min-height: 70px;           /* was ~84–92px */
  padding: 8px;
  border-radius: 8px;
  position: relative;         /* for absolute child positioning */
}

.calendar-cell .cell-date { font-size: .95rem; }
.calendar-cell .cell-label { font-size: .7rem; margin-top: 3px; }
.calendar-cell .cell-percent { font-size: .75rem; margin-top: 4px; }

/* Placeholder cells keep grid tight */
.calendar-cell.placeholder { min-height: 0; }

.cell-date {
  position: absolute;
  top: 6px;
  left: 6px;
  font-weight: bold;
  font-size: 0.9rem;
}

/* Modals: slightly denser */
.modal-content { padding: 16px; }
.time-row { margin: 10px 0 6px; }
.modal-content button { margin-top: 12px; }

/* Small screens polish */
@media (max-width: 420px) {
  .calendar-cell { min-height: 64px; padding: 7px; }
  .dow-cell { font-size: .8rem; }
  header h1 { font-size: .95rem; }
}

/* === Fit calendar between header & footer, fixed-size cells === */
:root{
  --cal-cell: 76px;   /* gets overwritten by JS to fit viewport */
  --cal-dow:  24px;   /* day-of-week row height */
  --cal-bar:  34px;   /* month bar height */
  --cal-gap:   6px;   /* gap between grid items */
}

/* stop cells from stretching */
.calendar-cell{ 
  min-height: 0 !important;
  height: var(--cal-cell) !important;
}

/* fix heights for headers too so math is predictable */
.month-bar{
  min-height: 0;
  height: var(--cal-bar);
  display: flex; align-items: center;
}
.month-grid.dow .dow-cell{
  height: var(--cal-dow);
  display:flex; align-items:center; justify-content:center;
}

/* keep placeholders the same height as real cells so rows align perfectly */
.calendar-cell.placeholder{
  height: var(--cal-cell) !important;
}

/* prevent long labels from forcing taller cells */
.calendar-cell .cell-label,
.calendar-cell .cell-percent{
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

select {
  min-width: fit-content;
  white-space: nowrap;
}

.weekday-select,
.time-select {
  min-width: fit-content;
  white-space: nowrap;
}

.confirm-note.error { color: #b00020; font-weight: 600; }
.modal-content button:disabled { opacity: 0.5; cursor: not-allowed; }

/* --- Header layout: explicit columns in this order ---
   [hamburger] [invite] [title (grows)] [weekday pill] [default btn] [teams btn]
*/
header {
  display: grid;
  grid-template-columns: auto auto 1fr auto auto auto;
  align-items: center;
  column-gap: 8px;
}

/* Place items in fixed columns */
#menu-button         { grid-column: 1; }
#invite-link-button  { grid-column: 2; justify-self: start; }
#league-title        { grid-column: 3; justify-self: center; }
#weekday-pill        { grid-column: 4; }
#blackout-button     { grid-column: 5; }
#teams-button        { grid-column: 6; }

/* Compact Invite Link button: only as wide as text */
#invite-link-button {
  all: unset;                 /* wipe inherited button rules */
  display: inline-block;
  padding: 4px 3px;
  background: #2e3342;
  color: #fff;
  border-radius: 6px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}


/* keep header heights tidy on small screens */
@media (max-width: 480px) {
  #invite-link-button { font-size: 0.75rem; padding: 3px 3px; }
}

/* --- Sidebar color override (place at the very end) --- */
#side-menu {
  background: #274536 !important;  /* your new sidebar color */
  color: #fff;
}

/* Optional polish so text/borders stay readable on the darker bg */
#side-menu h2 { 
  color: #fff; 
  /* If you also want a bar behind “Your Leagues”, uncomment: */
  /* background: #2a3140; padding: 6px 10px; border-radius: 6px; */
}
#side-menu ul li { border-color: rgba(255,255,255,.15); }
#side-menu button { color: #fff; }
#side-menu button:hover { background: rgba(255,255,255,.08); }

/*Side Menu color buttons hover*/
#side-menu #create-league-button:hover {
  background-color: #67ba2d !important;
  color: #ffffff !important; /* text color */
  opacity: 1 !important;
}

#side-menu #close-side-menu:hover {
  background-color: #67ba2d !important;
  color: #ffffff !important; /* text color */
  opacity: 1 !important;
}

#side-menu .league-open { 
  background: var(--pill-bg); 
  color: var(--pill-fg);
}
#side-menu .league-open:hover,
#side-menu .league-open:focus-visible {
  background: var(--pill-bg-hover);
  color: var(--pill-fg-hover);
}


/* ---------- Header: allow wrapping + truncation ---------- */
header { 
  row-gap: 6px; 
}
.header-right { 
  flex-wrap: wrap; 
}

/* Truncate long league names instead of pushing layout */
#league-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 45vw; /* prevent taking over header */
}

/* Keep the pill from growing too wide */
#weekday-pill {
  max-width: 42vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Make invite button shrink-friendly if text is long */
#invite-link-button {
  white-space: nowrap;
}

/* Font clamping for header + footer */
header h1 { font-size: clamp(0.9rem, 2.5vw, 1.2rem); }
footer button { font-size: clamp(0.9rem, 2.7vw, 1rem); }

/* ---------- Calendar tightening for small screens ---------- */
:root{
  /* these are already in your file; we keep them dynamic */
  --cal-gap: 6px;
}

/* Allow cells to get smaller on tiny viewports */
@media (max-height: 700px) {
  .month-grid { gap: 4px; }
}

/* Hide secondary label on ultra-small widths to preserve height */
@media (max-width: 360px) {
  .calendar-cell .cell-label { display: none; } /* hides "Avail: ..." line */
  .calendar-cell .cell-percent { margin-top: 2px; }
}

/* Slightly denser footer */
footer { padding: 8px 10px; }

/* Each day row is a fixed height across the whole grid */
.month-grid.days {
  grid-auto-rows: var(--cal-cell);
}

/* Make sure content can’t push a cell taller or wider */
.calendar-cell {
  height: var(--cal-cell) !important; /* you already set this, keep it */
  overflow: hidden;                   /* prevents text from growing the box */
}

/* Placeholders keep the same footprint so columns line up under Sun–Sat */
.calendar-cell.placeholder {
  height: var(--cal-cell) !important;
  visibility: hidden;  /* keeps spacing without showing a tile */
}

/* Side menu rows */
#side-menu #league-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.league-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 6px;
  border-bottom: 1px solid var(--border, #e6e6e6);
}
.league-open-btn {
  flex: 1;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
}
.league-open-btn:hover {
  background: rgba(0,0,0,0.05);
}
.league-name {
  font-weight: 600;
}
.league-display {
  opacity: 0.7;
  font-size: 0.95em;
}

/* Icon button (trash) */
.icon-btn {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}
.icon-btn:hover {
  background: rgba(0,0,0,0.06);
}

/* Simple trash icon using CSS (no image needed) */
.icon-trash::before {
  content: "🗑️";
  font-size: 18px;
  line-height: 1;
}

/* Confirm modal buttons */
.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}
.btn-secondary {
  background: #f2f2f2;
  border: 1px solid #ddd;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
}
.btn-secondary:hover {
  background: #eaeaea;
}
.btn-danger {
  background: #d9534f;
  color: #fff;
  border: 0;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
}
.btn-danger:hover {
  background: #c64541;
}

/* Keep button compact, not full-width */
#invite-button,
#invite-link-button {            /* if older id exists */
  width: auto !important;
  max-width: 200px;
  white-space: nowrap;
  padding: 10px 16px;            /* keeps height similar to current */
  border-radius: 12px;
  justify-self: center;          /* centers it if you're using CSS Grid in header */
}


/* Best → Blue, Good → Red, Bad → Green */
.calendar-cell.best { background: #0da818; color: #fff; }  /* blue */
.calendar-cell.good { background: #28942f; color: #fff; }  /* red */
.calendar-cell.bad  { background: #14471e; color: #fff; }  /* green */

:root {
  /* layout */
  --trash-w: 36px;       /* width of trash button */
  --trash-gap: 8px;      /* space between pill and trash */
  --pill-radius: 14px;

  /* colors — tweak to taste */
  --pill-bg:        #3CB043;  /* pill default */
  --pill-bg-hover:  #2E8B57;  /* pill on row hover/focus */
  --pill-fg:        #ffffff;
  --pill-fg-hover:  #ffffff;

  --trash-fg:            #cbd5e1;                 /* trash default (muted) */
  --trash-fg-revealed:   #e2e8f0;                 /* when row is hovered */
  --trash-fg-hover:      #f56565;                 /* when trash itself is hovered */
  --trash-bg-hover:      rgba(245,101,101,.12);   /* subtle hover halo */
}

/* Container for one league row */
.league-row {
  display: grid;
  grid-template-columns: 1fr 0px;  /* second column collapsed by default */
  align-items: center;
  column-gap: 0;                   /* no gap until hover */
  transition: grid-template-columns .22s ease, column-gap .22s ease;
  width: 100%;
}

/* The pill button */
.league-open {
  width: 100%;
  border: 0;
  border-radius: var(--pill-radius);
  padding: 10px 14px;
  font-weight: 700;
  color: var(--pill-fg);
  background: var(--pill-bg);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color .18s ease, color .18s ease, filter .15s ease;
}

/* Trash button (hidden initially) */
.league-trash {
  width: var(--trash-w);
  height: var(--trash-w);
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--trash-fg);
  font-size: 16px;      /* tweak for your icon */
  opacity: 0;
  transform: translateX(6px);
  pointer-events: none; /* ignore clicks while hidden */
  transition: opacity .18s ease, transform .18s ease, color .18s ease, background-color .18s ease;
}

/* Hover/focus shows trash and makes space for it */
.league-row:hover,
.league-row:focus-within {
  grid-template-columns: 1fr var(--trash-w);
  column-gap: var(--trash-gap);
}

.league-row:hover .league-trash,
.league-row:focus-within .league-trash {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  color: var(--trash-fg-revealed);
}

/* Row hover: change pill color independently */
.league-row:hover .league-open,
.league-row:focus-within .league-open {
  background: #67ba2d;
  color: #67ba2d;
}

/* Direct hover on the trash icon only */
.league-trash:hover {
  color: var(--trash-fg-hover);
  background: var(--trash-bg-hover);
  transform: translateX(0) scale(.05);
}

/* Optional: tiny visual feedback on the pill */
.league-row:hover .league-open { filter: brightness(1.04); }

/* Keyboard focus ring (optional) */
.league-open:focus-visible,
.league-trash:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .league-row,
  .league-trash,
  .league-open { transition: none; }
}

/* ==== MOBILE HEADER: compact like mock ==== */
/* ===== Mobile: 2-row header, using existing DOM (<=640px) ===== */
/* ==== MOBILE HEADER (<=640px) ========================================= */
@media (max-width: 640px) {

  /* Header becomes two rows:
     Row 1 = .header-top (menu, invite, pill, right icons)
     Row 2 = #league-title (full-width, centered) */
  header {
    display: flex;
    flex-direction: column;
    align-items: stretch;       /* rows span full width */
    gap: 6px;                   /* space between the two rows */
    padding: 6px 0;
  }

  /* Row 1 layout */
  .header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
  }

  /* 1) Hamburger — fixed size, no flex growth */
  #menu-button {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 1.5rem;          /* size of the ☰ glyph */
    line-height: 1;             /* avoid vertical wobble */
    border-radius: 10px;        /* match your style */
    display: grid;
    place-items: center;
  }

  /* 2) Invite button — compact, never overflows */
  #invite-button,
  #invite-link-button {
    flex: 0 0 auto;
    padding: 6px 10px;
    min-width: auto;
    max-width: none;            /* let content fit */
    border-radius: 12px;
    white-space: nowrap;        /* keep on one line (your <br> will still break) */
    font-size: clamp(0.7rem, 2.4vw, 0.95rem);
    overflow: visible;
    text-overflow: clip;
  }

  /* 4) Weekday pill — stacked label/value */
  #weekday-pill {
    flex: 0 0 auto;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #1f2937;
    color: #fff;
    border-radius: 12px;
    padding: 6px 18px;
    line-height: 1.15;
  }
  #weekday-pill .pill-heading {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
  }
  #weekday-pill .pill-value {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
  }

  /* 5/6) Right-side icon buttons — fixed size, tight gap */
  .header-right {
    flex: 0 0 auto;
    display: flex;
    gap: 6px;
  }
  .header-right > button {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 10px;
    display: grid;
    place-items: center;
    line-height: 1;
  }

  /* 3) League title — second row, full width, centered.
     Allow wrapping so long names don’t clip. */
  #league-title {
    margin: 0;
    text-align: center;
    white-space: normal;                      /* allow 2+ lines */
    font-weight: 800;
    font-size: clamp(1rem, 5vw, 1.6rem);      /* scale on small screens */
  }
}
/* ==== END MOBILE HEADER =============================================== */

/* ==== UI.HELPER.MODALS CSS =============================================== */
/* Non-selectable for buttons/calendar */
.no-select, button, .calendar-cell { user-select: none; -webkit-user-select: none; }

/* Sticky */
header.sticky { position: sticky; top: 0; z-index: 10; }
footer.sticky { position: sticky; bottom: 0; z-index: 10; }

/* Busy states */
.is-busy { opacity: .65; pointer-events: none; }
.spinner {
  display: inline-block; width: 1em; height: 1em;
  border: .16em solid rgba(255,255,255,.25);
  border-top-color: #fff; border-radius: 50%;
  animation: spin .9s linear infinite; margin-left: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Modal busy overlay container is positioned in JS */

/* Sept 4 disabled style (if not already styled) */
.calendar-cell.disabled,
.calendar-cell.nfl-start {
  filter: grayscale(1) brightness(.92);
  cursor: default;
}

/* ==== UI.HELPER.MODALS CSS END =============================================== */

/* ==== Polish =============================================== */
/* make sticky classes from helper effective */
header.sticky { position: sticky; top: 0; z-index: 1200; }

/* disable text selection on header buttons (helper adds .no-select) */
.no-select { user-select: none; -webkit-user-select: none; }

/* optional: small style so the mobile ⋮ looks tidy */
.league-more {
  width: 36px; height: 36px; border-radius: 10px; background: transparent; border: 0;
}
.league-more:hover { background: rgba(0,0,0,0.06); }

/* ==== Polish =============================================== */

/* Only buttons inside modals */
.modal button {
  padding: 10px 16px;   /* more height + width */
  font-size: 1rem;      /* slightly bigger text */
}

/* Optional: primary buttons in modals a little larger */
.modal button.primary {
  padding: 8px 16px;
  font-size: 1rem;
}

/* Intro modal layout */
.intro-modal { max-width: 480px; margin: 0 auto; }
.intro-title { text-align: center; font-size: 1.6rem; line-height: 1.2; margin: 0 0 8px; }
.intro-sub   { text-align: center; margin: 0 0 14px; color: #333; }

.intro-steps { text-align: left; margin: 0 auto 12px; }
.intro-steps ol { margin: 0; padding-left: 1.2em; }
.intro-steps li { margin: 6px 0; line-height: 1.35; }

.intro-note { font-size: 0.82rem; color: #666; text-align: center; margin: 8px 0 10px; }

.intro-actions { text-align: center; }
.intro-actions .primary { padding: 14px 24px; font-size: 1rem; margin-top: 6px; }

.modal-back {

  font-weight: 700;         /* thicker arrow */
  line-height: 1;
  
  padding: 9.5px 12px !important;  /* override global padding */
  min-width: auto !important;   /* stop full pill width */
  width: auto !important;       /* shrink to fit */
  
  border-radius: 6px !important; /* less rounded than the pill */
}


#side-menu .legal-link {
  color: #ffffff;
  text-decoration: underline;
  font: inherit;
  cursor: pointer;
  padding: 0;       /* no extra box */
  background: none; /* no highlight background */
  border: none;
}

#side-menu .legal-link:hover {
  filter: brightness(1.05);
}
