:root {
    --fa-col-w: 135px;
    --fa-gap: 2px;
    --fa-left-rail: 54px;
    --fa-bg: #f1d2a6;
    --fa-card: #f7e3bf;
    --fa-border: #b77439;
    --fa-ink: #4a2e16;
    --fa-muted: #7a5b3a;
    --fa-pill-bg: #c65f36;
    --fa-pill-text: #fff1df;
    --fa-cell-bg: #f8e8c8;
    --fa-cell-alt: #efd6ab;
    --fa-hover: rgba(198, 95, 54, .12);
    --fa-shadow: 0 2px 6px rgba(96, 51, 22, .18);
    --fa-today: #ffb327;
    --fa-today-ink: #000;
    --fa-sank: #8e2b0f;
    --fa-sank-wash: rgba(142, 43, 15, .12);
    --fa-badge-gold: #d7a441;
    --fa-badge-wash: rgba(215, 164, 65, .12);
}

@media (max-width: 991.98px) {
    :root {
        --fa-col-w: 100px;
        --fa-left-rail: 48px;
    }
}

.fa-grid-wrap {
    background: var(--fa-card);
    border: 2px solid var(--fa-border);
    border-radius: 14px;
    box-shadow: var(--fa-shadow);
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
}

.fa-week-pills,
.fa-grid {
    min-width: calc(7 * var(--fa-col-w) + 6 * var(--fa-gap) + 12px);
    scroll-snap-align: start;
}

.fa-week-pills {
    display: grid;
    grid-template-columns: repeat(7, var(--fa-col-w));
    gap: var(--fa-gap);
    background: linear-gradient(180deg, rgba(183, 116, 57, .12), rgba(183, 116, 57, 0));
    padding: 8px 10px 6px;
    border-bottom: 1px solid rgba(183, 116, 57, .35);
}

.fa-week-pills span {
    width: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: var(--fa-pill-text);
    background: var(--fa-pill-bg);
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: .02em;
    padding: 4px 10px;
    min-height: 28px;
    text-transform: uppercase;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15);
}

.fa-grid {
    display: grid;
    grid-template-columns: repeat(7, var(--fa-col-w));
    gap: var(--fa-gap);
    padding: 6px;
    color: var(--fa-ink);
}

.fa-grid.fa-week-left {
    grid-template-columns: var(--fa-left-rail) repeat(5, var(--fa-col-w)) !important;
    min-width: calc(var(--fa-left-rail) + 5 * var(--fa-col-w) + 5 * var(--fa-gap) + 12px) !important;
}

.fa-weekname {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    letter-spacing: .02em;
    color: var(--fa-pill-text);
    background: var(--fa-pill-bg);
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 12px;
    margin-right: 4px;
    min-width: var(--fa-left-rail) !important;
    max-width: var(--fa-left-rail) !important;
}

.fa-grid-wrap .fa-cell {
    margin: 0;
    box-sizing: border-box;
    background: var(--fa-cell-bg);
    border: 1px solid rgba(183, 116, 57, .45);
    border-radius: 10px;
    padding: 6px 8px 8px;
    min-height: 95px;
    position: relative;
    transition: box-shadow .15s ease, transform .06s ease, background .15s ease;
}

@media (min-width: 992px) {
    .fa-grid-wrap .fa-cell {
        min-height: 110px;
    }
}

.fa-grid-wrap .fa-cell:hover,
.fa-grid-wrap .fa-cell:focus-within {
    background: color-mix(in oklab, var(--fa-cell-bg), var(--fa-hover));
    box-shadow: var(--fa-shadow);
}

.fa-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.fa-daynum {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 800;
    font-size: 1rem;
    line-height: 1;
    color: var(--fa-ink);
    background: rgba(0, 0, 0, .06);
    border-radius: 8px;
    padding: 2px 7px;
}

.fa-chandra {
    font-size: .78rem;
    color: var(--fa-muted);
    background: var(--fa-badge-wash);
    border: 1px dashed var(--fa-badge-gold);
    padding: 2px 6px;
    border-radius: 999px;
}

.fa-line {
    font-size: .82rem;
    color: var(--fa-ink);
}

.fa-line .text-muted {
    color: var(--fa-muted) !important;
}

.fa-cell.fa-sank {
    background: linear-gradient(180deg, var(--fa-sank-wash), transparent 65%),
        var(--fa-cell-bg);
    border-color: color-mix(in oklab, var(--fa-sank), var(--fa-border) 40%);
    box-shadow: inset 0 0 0 2px rgba(142, 43, 15, .08);
}

.fa-cell.fa-sank::after {
    content: "⚑";
    position: absolute;
    right: 8px;
    top: 6px;
    font-size: 14px;
    color: var(--fa-sank);
    filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .15));
}

.fa-cell.fa-today {
    background: linear-gradient(180deg, color-mix(in oklab, var(--fa-today), white 15%), transparent 65%),
        var(--fa-cell-bg);
    border-color: color-mix(in oklab, var(--fa-today), var(--fa-border) 50%);
    box-shadow: inset 0 0 0 2px color-mix(in oklab, var(--fa-today), white 70%),
        0 2px 8px rgba(92, 156, 43, .22);
}

.fa-cell.fa-today .fa-daynum {
    background: var(--fa-today);
    color: var(--fa-today-ink);
}

.fa-cell.fa-today .fa-line,
.fa-cell.fa-today .fa-chandra {
    color: color-mix(in oklab, var(--fa-today), var(--fa-ink) 40%);
}


#cal-controls {
    background: linear-gradient(180deg, rgba(183, 116, 57, .10), rgba(183, 116, 57, 0));
    padding: 8px 10px 6px;
    border: 1px solid rgba(183, 116, 57, .35);
    border-radius: 10px;
    margin-bottom: 8px;
}

#month-picker {
    background: #fff7ef;
    border: 1px solid var(--fa-border);
    color: var(--fa-ink);
}

#cal-controls #btn-today,
#btn-today.btn,
#btn-today[class*="btn-"] {
    background-color: var(--fa-today) !important;
    color: var(--fa-today-ink) !important;
    border: 1px solid color-mix(in oklab, var(--fa-today), black 20%) !important;
    font-weight: 700;
    font-size: .875rem;
    line-height: 1.1;
    text-shadow: none;
}

#cal-controls #btn-today:hover,
#cal-controls #btn-today:focus {
    filter: brightness(1.05);
    outline: 2px solid color-mix(in oklab, var(--fa-today), white 40%);
    outline-offset: 1px;
}

#cal-controls #btn-today:active {
    transform: translateY(.5px);
}

.fa-cell:focus-within {
    outline: 2px solid color-mix(in oklab, var(--fa-border), white 40%);
    outline-offset: 1px;
}

.fa-cal-wrapper {
    position: relative;
}

.fa-loader {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(1.5px);
    z-index: 20;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease-in-out;
}

.fa-loader.show {
    opacity: 1;
    pointer-events: auto;
}

.fa-spinner {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid #e8ecf3;
    border-top-color: #ed6b27;
    animation: fa-spin .9s linear infinite;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .02) inset;
}

.fa-loader-text {
    margin-top: 10px;
    font: 500 13px/1.2 system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
    color: #334155;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .6);
}

@keyframes fa-spin {
    to {
        transform: rotate(360deg);
    }
}

.fa-inline-loader {
    margin-left: 6px;
    opacity: .7;
    animation: fa-pulse 1s ease-in-out infinite;
}

@keyframes fa-pulse {

    0%,
    100% {
        opacity: .3
    }

    50% {
        opacity: 1
    }
}

#cityList {
    display: none;
}

#cityList.show {
    display: block;
}

#cityList .list-group-item {
    cursor: pointer;
}

#cityList .active {
    background: #ed6b27;
    border-color: #ed6b27;
    color: #fff;
}

#cityInput.loading {
    background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.06) 25%, rgba(0, 0, 0, 0.12) 37%, rgba(0, 0, 0, 0.06) 63%);
    background-size: 400% 100%;
    animation: fa-shimmer 1.2s linear infinite;
}

@keyframes fa-shimmer {
    0% {
        background-position: 100% 0
    }

    100% {
        background-position: 0 0
    }
}

#cal-controls .fa-ctrl-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

#cal-controls .fa-citywrap {
    flex: 1 1 260px;
    min-width: 260px;
}

@media (max-width: 768px) {
    #cal-controls .fa-citywrap {
        flex-basis: 100%;
        min-width: 100%;
    }
}

#cal-controls .fa-loc-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    max-width: 240px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: .35rem .5rem;
    border: 1px solid #e2e8f0;
    border-radius: .5rem;
    background: #fff;
    font-size: .85rem;
    line-height: 1.1;
    color: #334155;
}

#cal-controls .fa-loc-badge .fa-loc-main {
    overflow: hidden;
    text-overflow: ellipsis;
}

#cal-controls .fa-loc-badge .fa-loc-sub {
    opacity: .7;
    margin-left: .25rem;
}

@media (max-width: 768px) {
    #cal-controls .fa-loc-badge {
        max-width: 100%;
    }
}

/* === FeelAstro: Cell layout (spec 2025-09-25) === */

/* Kill old chandra/adhika badge in cells */
.fa-chandra {
    display: none !important;
}

/* Remove old Sankranti flare/flag bg */
.fa-cell.fa-sank {
    background: var(--fa-cell-bg) !important;
    border-color: rgba(183, 116, 57, .45) !important;
    box-shadow: none !important;
}

.fa-cell.fa-sank::after {
    content: none !important;
}

/* Base text sizing */
.fa-cell {
    position: relative;
    /* reserve bottom space for sankranti line */
    padding: 6px 8px 18px !important;
}

/* Top line: Tithi name (10px) */
.fa-tithi-name {
    font-size: 10px;
    line-height: 1.2;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 2nd line: Nakshatra name (10px) */
.fa-nakshatra {
    font-size: 10px;
    line-height: 1.2;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 3rd line center: Gregorian day (18px) */
.fa-daynum {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 800;
    font-size: 18px !important;
    line-height: 1;
    color: var(--fa-ink);
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

/* 3rd line right: Tithi# or Kollavarsha day (12px w/ shaded bg) */
.fa-tnum {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    font-size: 12px;
    line-height: 1.1;
    background: rgba(0, 0, 0, .06);
    border-radius: 6px;
    padding: 2px 6px;
    font-weight: 600;
}

/* 4th line: Moon sign (10px) */
.fa-moonsign {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 4px;
    /* moved to bottom line */
    font-size: 10px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 5th line: Sankranti marking (red, bottom) */
.fa-sankline {
    position: absolute;
    left: 8px;
    right: 18px;
    bottom: 18px;
    /* sits above moonsign now */
    font-size: 10px;
    line-height: 1.1;
    color: #c91c1c;
    font-weight: 700;
    text-align: center;
}

/* 3rd line (flow): Sunrise / Sunset (10px, no labels) */
.fa-sunline {
    text-align: center;
    font-size: 10px;
    line-height: 1.2;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: .95;
}

/* Force Adhik badge visible (top-right) in all modes */
.fa-adhika {
    display: inline-flex !important;
    position: absolute;
    top: 50%;
    left: 6px;
    transform: translateY(-50%);
    padding: 2px 6px;
    font-size: 10px;
    line-height: 1;
    background: rgba(0, 0, 0, .08);
    border-radius: 10px;
    letter-spacing: .3px;
    pointer-events: none;
    z-index: 2;
}

/* Remove any leftover old "line" styling/labels look */
.fa-line {
    font-size: 10px;
}

/* Desktop: reduce column width by ~25px (135 -> 110).
   IMPORTANT: grid uses --fa-col-w for width; override the variable, not .fa-cell. */
/* Desktop column width override on the GRID itself (so it wins) */
@media (max-width: 991.98px) {

    /* Wider mobile columns */
    :root {
        --fa-col-w: 140px !important;
        /* was 100px */
        --fa-left-rail: 48px !important;
        /* was 48px; keeps week-left rail aligned */
    }

    /* Taller mobile cells (+10px from 95 -> 105) */
    .fa-grid-wrap .fa-cell {
        min-width: 140px !important;
        min-height: 110px !important;
        height: 110px !important;
    }
}

/* 6th line for Kollavarsham: Malayala masa at bottom */
.fa-masa {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 4px;
    font-size: 10px;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* When masa is present, move moonsign one step up */
.fa-cell.fa-has-masa .fa-moonsign {
    bottom: 18px;
}

/* Malayalam locale compacting (only when wrapper has .fa-ml) */
.fa-grid-wrap.fa-ml .fa-tithi-name,
.fa-grid-wrap.fa-ml .fa-nakshatra,
.fa-grid-wrap.fa-ml .fa-sunline,
.fa-grid-wrap.fa-ml .fa-sankline,
.fa-grid-wrap.fa-ml .fa-moonsign,
.fa-grid-wrap.fa-ml .fa-masa {
    font-size: 9px !important;
    /* slightly reduced for Malayalam script */
    line-height: 1.25 !important;
}

.fa-grid-wrap.fa-ml .fa-tnum,
.fa-grid-wrap.fa-ml .fa-adhika {
    font-size: 11px !important;
}

/* ---- Control bar info line ---- */
#fa-day-info-line {
    font-size: 12px;
    line-height: 1.25;
}

#fa-day-info-line .fa-info-cal {
    font-weight: 700;
    /* bold value */
    color: var(--fa-info-cal-color, #0B60B0);
    /* Element-1 color (blue) */
}

#fa-day-info-line .fa-info-label {
    font-weight: 400;
    /* label NOT bold */
    color: var(--fa-info-label-color, #64748B);
    /* muted slate */
}

#fa-day-info-line .fa-info-icc {
    font-weight: 700;
    /* bold value */
    color: var(--fa-info-icc-color, #0E9F6E);
    /* Element-2 color (green) */
}

#fa-day-info-line .fa-info-sep {
    color: var(--fa-info-sep-color, #94A3B8);
    padding: 0 2px;
}

/* ---- Control bar info line ---- */
#fa-day-info-line {
    font-size: 12px;
    line-height: 1.25;
}

/* Element-1: Amanta/Purnimanta/Kollam line (bold value) */
#fa-day-info-line .fa-info-cal {
    font-weight: 700;
    color: var(--fa-info-cal-color, #0B60B0);
    /* blue */
}

/* Label for ICC must NOT be bold */
#fa-day-info-line .fa-info-label {
    font-weight: 400;
    color: var(--fa-info-label-color, #64748B);
    /* muted slate */
}

/* Element-2: ICC value (bold) */
#fa-day-info-line .fa-info-icc {
    font-weight: 700;
    color: var(--fa-info-icc-color, #0E9F6E);
    /* green */
}

/* Separator (comma or dot) */
#fa-day-info-line .fa-info-sep {
    color: var(--fa-info-sep-color, #94A3B8);
    padding: 0 2px;
}

/* Element-3: Gregorian date pill (light, not bold) */
#fa-day-info-line .fa-info-greg {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 9999px;
    background: var(--fa-info-greg-bg, #F1F5F9);
    /* light slate */
    border: 1px solid var(--fa-info-greg-br, #E2E8F0);
    color: var(--fa-info-greg-fg, #334155);
    /* dark slate */
    font-weight: 400;
    /* keep light */
    vertical-align: baseline;
}

/* ===== Sidebar: Day Details ===== */
#sideDetails {
    font-size: 13px;
    color: var(--fa-ink);
}

#sideDetails .fa-side-date {
    display: inline-block;
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 999px;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    color: #334155;
    margin: 0 auto 10px;
    text-align: center;
}

#sideDetails .fa-side-sec {
    padding: 10px 0 8px;
    border-top: 1px dashed rgba(0, 0, 0, .08);
}

#sideDetails .fa-side-sec:first-of-type {
    border-top: 0;
    padding-top: 6px;
}

#sideDetails .fa-side-h {
    text-align: center;
    font-weight: 800;
    letter-spacing: .02em;
    color: #8e2b0f;
    /* theme accent */
    margin: 2px 0 8px;
}


#sideDetails .fa-side-val {
    text-align: center;
    font-weight: 600;
    color: var(--fa-ink);
    margin-bottom: 6px;
}
/* Sidebar compact sizing */
#sideDetails { font-size: 12px; }


/* Values right under each pill */
#sideDetails .fa-side-val{
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;         /* ↓ tighter */
  color: var(--fa-ink, #111827);
}

/* Section title */
#sideDetails .fa-side-h{
  text-align:center;
  font-weight:800;
  font-size:12px;             /* ↓ smaller */
  margin: 2px 0 6px;
  color:#8e2b0f;
}

/* Date pill at the very top */
#sideDetails .fa-side-date{
  display:inline-block;
  font-size: 11px;            /* ↓ smaller */
  padding: 2px 8px;
  border-radius:999px;
  background:#F1F5F9;
  border:1px solid #E2E8F0;
  color:#334155;
  margin:0 auto 8px;
}
/* Sidebar base size */
#sideDetails { font-size: 12px; }

/* Values under each pill */
#sideDetails .fa-side-val{
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--fa-ink, #111827);
}

/* Section title + date chip */
#sideDetails .fa-side-h{
  text-align: center;
  font-weight: 800;
  font-size: 12px;
  margin: 2px 0 6px;
  color: #8e2b0f;
}
#sideDetails .fa-side-date{
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: #334155;
  margin: 0 auto 8px;
}
/* Make sidebar pills match the small Gregorian date chip and center them */

/* Center everything inside the sidebar card */
#sideDetails { text-align: center; }

/* Unify chip look: apply the same style to BOTH the date chip and label pills */
#sideDetails .fa-side-date,
#sideDetails .fa-side-pill{
  display: inline-block;
  font-size: 11px;          /* same as the greg date chip */
  
  font-weight: 600;         /* same weight as chip */
  padding: 2px 8px;         /* compact like the chip */
         /* centers the chip; space below */
  border-radius: 999px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: #334155;
  text-transform: none;     /* ensure not UPPERCASE */
}

/* Slightly tighter spacing for value lines under each pill */
#sideDetails .fa-side-val{
  margin-top: 2px;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--fa-ink, #111827);
}

/* Optional: make section headers small too, to keep everything compact */
#sideDetails .fa-side-h{
  font-size: 12px;
  font-weight: 800;
  margin: 2px 0 6px;
  color: #8e2b0f;
}
/* Center the sidebar and keep it compact */
#sideDetails { text-align: center; font-size: 12px; }

/* Date chip and label pills share the same small style */
#sideDetails .fa-side-date,
#sideDetails .fa-side-pill{
  display: inline-block;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: #334155;
  margin: 0; /* we’ll control spacing via the row */
}

/* One row = pill + value on the SAME LINE */
#sideDetails .fa-side-row{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 4px 0;           /* compact vertical rhythm */
  width: 100%;
  flex-wrap: wrap;         /* wraps nicely on narrow screens */
}

#sideDetails .fa-side-val{
  font-size: 12px;
  font-weight: 600;
  color: var(--fa-ink, #111827);
}

/* Section headings */
#sideDetails .fa-side-h{
  font-size: 12px;
  font-weight: 800;
  margin: 6px 0 4px;
  color: #8e2b0f;
}

/* Malayalam mode for Kollavarsham: force 10px across */
#sideDetails.fa-ml,
#sideDetails.fa-ml .fa-side-pill,
#sideDetails.fa-ml .fa-side-val,
#sideDetails.fa-ml .fa-side-h{
  font-size: 10px !important;
}
/* Hard-disable link interaction in calendar/day-info UI (not Quicklinks) */
#calendar a,
.fa-grid a,
#fa-day-info-line a,
#sideDetails a{
  pointer-events: none !important;   /* no mouse/touch clicks */
  cursor: default !important;
  text-decoration: none !important;
  color: inherit !important;
}
/* Thin badge-like link */
.fa-badge-link {
  display: inline-block;
  font-size: .75rem;
  line-height: 1;
  padding: .25rem .5rem;
  border: 1px solid var(--fa-border, #d0d0d0);
  border-radius: 999px;
  text-decoration: none;
  margin: .25rem 0 .5rem;
  white-space: nowrap;
}

/* Sidebar column layout so footer sticks to bottom */
#sideDetails, .fa-side-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  gap: .5rem;
}

.fa-side-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.fa-daynav { display: grid; grid-template-columns: 1.5rem auto 1.5rem; align-items: center; gap: .25rem; width: 100%; }

.fa-daybtn {
  width: 1.5rem;
  height: 1.5rem;
  border: none;               /* remove border */
  background: transparent;    /* clean icon-like look */
  cursor: pointer;
  border-radius: 999px;
}
.fa-daybtn:hover { background: #f5f5f5; }
.fa-daybtn:focus { outline: 2px solid #4d90fe; outline-offset: 1px; }

.fa-side-date { text-align: center; font-weight: 600; font-size: .9rem; }

/* Footer with the thin badge aligned right */
.fa-side-footer { margin-top: auto; display: flex; justify-content: flex-end; }

.fa-badge-link {
  display: inline-block;
  font-size: 1.5rem;
  line-height: 1;
  padding: .25rem .5rem;
  border: 1px solid var(--fa-border, #d0d0d0);
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}
.fa-badge-link:hover { text-decoration: none; filter: brightness(0.98);background-color: #ffe671; }
.fa-badge-link[aria-disabled="true"] { pointer-events: auto !important; }


/* Keyboard focus ring for cells */
.fa-cell:focus { outline: 2px solid #4d90fe; outline-offset: 2px; border-radius: .35rem; }
#sideDetails { scroll-margin-top: 64px; } /* tweak to your header height */

