/* =========================================
   INSIGHTS PAGE (Articles + News)
   Reuses the sl-* page shell and update-card
   conventions from sansthalist.css / home.css
   so it matches the rest of the site.
   ========================================= */

.ins-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #4C493D;
    margin-bottom: 1rem;
}

.ins-breadcrumb a {
    color: #FF6900;
    text-decoration: none;
}

.ins-breadcrumb a:hover {
    text-decoration: underline;
}

.ins-breadcrumb i {
    font-size: 12px;
    color: #C4C4C4;
}

/* Tabs (Articles / News) — same pill style as the homepage Insights tabs */
.ins-tabs {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    margin-top: 1.5rem;
}

/* Language switcher */
.ins-lang-switch {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
    margin-left: auto;
}

.ins-lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1px solid #FFE6C4;
    border-radius: 92px;
    padding: 0.5rem 1rem;
    font-size: 14px;
    font-weight: 600;
    color: #4C493D;
    cursor: pointer;
}

.ins-lang-toggle:hover,
.ins-lang-switch.open .ins-lang-toggle {
    border-color: #FF6900;
    color: #FF6900;
}

.ins-lang-toggle i {
    font-size: 13px;
}

.ins-lang-switch.open .ins-lang-toggle .bi-chevron-down {
    transform: rotate(180deg);
}

.ins-lang-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 160px;
    background: white;
    border: 1px solid #FFE6C4;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    padding: 0.4rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 20;
    text-align: left;
}

.ins-lang-switch.open .ins-lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.ins-lang-menu button {
    background: none;
    border: none;
    border-radius: 10px;
    padding: 0.6rem 0.85rem;
    font-size: 14.5px;
    font-weight: 500;
    color: #4C493D;
    text-align: left;
    cursor: pointer;
}

.ins-lang-menu button:hover {
    background: #FFF7F0;
    color: #FF6900;
}

.ins-lang-menu button.active {
    background: linear-gradient(to right, #FF6900, #FB2C36);
    color: white;
    font-weight: 700;
}

.ins-lang-note {
    font-size: 13px;
    color: #A15C00;
    background: #FFF3D6;
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 92px;
    margin-top: 1rem;
}

/* Layout */
.ins-layout {
    padding: 2.5rem 8% 4rem;
}

.ins-results-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.ins-results-head h2 {
    font-size: 26px;
    font-weight: 700;
    color: #2d2d2d;
}

.ins-results-head span {
    font-size: 15px;
    font-weight: 500;
    color: #4C493D;
}

/* Cards grid — same visual language as the homepage update-card,
   just with room for a category chip + byline. */
.ins-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.ins-card .media-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.ins-card .media-container img,
.ins-card .media-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
}

.ins-card-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
}

.ins-card-category {
    background: linear-gradient(to right, #FF6900, #FB2C36);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 92px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: capitalize;
}

.ins-card-date {
    color: #999;
    font-size: 0.8rem;
}

.ins-card-byline {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4C493D;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 0.6rem;
}

.ins-card-byline i {
    font-size: 18px;
    color: #FF6900;
}

.ins-card .secondary-button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Empty state */
.ins-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: #4C493D;
    font-weight: 500;
}

/* Loader (matches sansthalist.css spinner) */
.ins-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    grid-column: 1 / -1;
}

.ins-loader.hide {
    display: none;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1024px) {
    .ins-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ins-titlebar .section-title {
        font-size: 32px;
    }
    .ins-layout {
        padding: 2rem 5% 3rem;
    }
}

@media (max-width: 768px) {
    .ins-tabs {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .ins-titlebar {
        padding: 1.5rem 5% 1rem;
    }
    .ins-titlebar .section-title {
        font-size: 24px !important;
    }
    .ins-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   TITLE BAR / TABS / TRANSLATION NOTICE
   ========================================= */

/* Machine-translation notice above the grid */
.ins-translated-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 1.25rem;
    padding: 0.45rem 1rem;
    font-size: 13px;
    font-weight: 600;
    color: #8A5200;
    background: #FFF7F0;
    border: 1px solid #FFE6C4;
    border-radius: 92px;
}

.ins-translated-note[hidden] {
    display: none;
}

/* Dim a grid while its cards are coming back from the translator */
.ins-cards-grid.is-translating {
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

/* =========================================
   CARD POLISH
   ========================================= */
.ins-card {
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid #ECECEC;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ins-card:hover {
    transform: translateY(-6px);
    border-color: #FFE6C4;
    box-shadow: 0 18px 38px rgba(45, 45, 45, 0.12);
}

.ins-card .media-container {
    /* height:auto cancels the fixed 220px set earlier, so the aspect ratio
       actually applies and covers scale with the card. */
    height: auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #F3F4F6;
}

.ins-card .media-container img,
.ins-card .media-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* The card already clips its corners. */
    border-radius: 0;
    transition: transform 0.4s ease;
}

.ins-card:hover .media-container img {
    transform: scale(1.04);
}

.ins-card .update-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.25rem 1.35rem 1.4rem;
}

.ins-card h3 {
    font-size: 18.5px;
    font-weight: 700;
    line-height: 1.4;
    color: #2d2d2d;
    margin: 0.5rem 0 0.6rem;
}

.ins-card .update-content p {
    font-size: 14.5px;
    line-height: 1.65;
    color: #4C493D;
    margin: 0 0 1rem;
    flex: 1;
}

.ins-card .ins-card-byline {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #6B6862;
    margin: 0.75rem 0;
}

.ins-card .ins-card-byline i {
    color: #FF6900;
    font-size: 15px;
}

.ins-card .secondary-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    font-weight: 700;
    color: #FB2C36;
    text-decoration: none;
    cursor: pointer;
    transition: gap 0.15s ease;
}

.ins-card .secondary-button:hover {
    gap: 12px;
}

.ins-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.75rem;
    align-items: stretch;
}

/* =========================================
   TITLE BAR — themed
   Continues the site's pastel gradient band
   (same asset as .header-bg on every page),
   centred like every other section heading,
   with the tabs as one segmented control.
   Overrides the earlier .ins-titlebar rules.
   ========================================= */
.ins-titlebar {
    background: url("../assets/Gradient-pastel-1.png") center / cover no-repeat, #FFFDFB;
    border-bottom: 1px solid rgba(255, 105, 0, 0.14);
    padding: 3.5rem 8% 2.75rem;
    text-align: center;
}

.ins-titlebar-inner {
    max-width: 1180px;
    margin: 0 auto;
}

/* Small badge above the heading */
.ins-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.4rem 1.1rem;
    margin-bottom: 1.1rem;
    background: white;
    border: 1px solid #FFE6C4;
    border-radius: 92px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #4C493D;
    box-shadow: 0 4px 14px rgba(255, 105, 0, 0.10);
}

.ins-eyebrow i {
    font-size: 15px;
    color: #FF6900;
}

/* Heading: the site's 64px section title, dialled down for a page header and
   made fluid. .highlight keeps the theme's solid red — no gradient text. */
.ins-titlebar .section-title {
    text-align: center;
    font-size: clamp(34px, 5.2vw, 52px);
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: 0.7rem;
}

.ins-titlebar .section-title .highlight {
    color: #FB2C36;
    background: none;
    -webkit-text-fill-color: currentColor;
}

.ins-titlebar .section-subtitle {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 2rem;
    font-size: 17px;
    letter-spacing: 0.2px;
}

/* Control row: spacer | tabs | language, so the tabs sit dead centre */
.ins-controls {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
}

.ins-controls-spacer {
    display: block;
}

.ins-controls .ins-lang-switch {
    margin-left: 0;
    justify-self: end;
}

/* Segmented control: one white track holding both pills */
.ins-tabs {
    display: inline-flex;
    justify-content: center;
    gap: 6px;
    margin-top: 0;
    padding: 6px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #FFE6C4;
    border-radius: 92px;
    box-shadow: 0 6px 20px rgba(45, 45, 45, 0.07);
}

/* Sized down from the homepage's 18px buttons to suit a page header */
.ins-tabs .tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 1.35rem;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    border-radius: 92px;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.ins-tabs .tab-btn i {
    font-size: 15px;
}

/* Active */
.ins-tabs .btn-update {
    color: white;
    box-shadow: 0 6px 16px rgba(251, 44, 54, 0.28);
}

/* Inactive — transparent on the track, not a grey slab */
.ins-tabs .btn-update1 {
    background: transparent;
    color: #4C493D;
}

.ins-tabs .btn-update1:hover {
    background: #FFF3EA;
    color: #FF6900;
}

/* Results head: now a quiet label under the band, not a competing heading */
.ins-layout {
    padding: 2.5rem 8% 4rem;
}

.ins-results-head {
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ECECEC;
}

.ins-results-head h2 {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    font-size: 20px;
    letter-spacing: -0.01em;
}

.ins-translated-note {
    margin-top: 1.25rem;
    margin-bottom: 0;
}

@media (max-width: 860px) {
    .ins-titlebar {
        padding: 2.5rem 6% 2rem;
    }

    /* Drop the 3-column trick: stack the tabs above the language switcher */
    .ins-controls {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 0.9rem;
    }

    .ins-controls-spacer {
        display: none;
    }

    .ins-controls .ins-lang-switch {
        justify-self: center;
    }

    .ins-layout {
        padding: 2rem 6% 3rem;
    }
}

@media (max-width: 420px) {
    .ins-tabs {
        width: 100%;
    }

    .ins-tabs .tab-btn {
        flex: 1;
        justify-content: center;
        padding: 0.55rem 0.9rem;
        font-size: 14px;
    }
}

/* The switcher now sits at the right edge of the control row, so its menu
   opens right-aligned instead of centred (which would overflow the page). */
.ins-controls .ins-lang-menu {
    left: auto;
    right: 0;
    transform: translateY(8px);
}

.ins-controls .ins-lang-switch.open .ins-lang-menu {
    transform: translateY(0);
}

@media (max-width: 860px) {
    /* Centred again once the row stacks */
    .ins-controls .ins-lang-menu {
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(8px);
    }

    .ins-controls .ins-lang-switch.open .ins-lang-menu {
        transform: translateX(-50%) translateY(0);
    }
}

/* =========================================
   FILTERS — category tabs + date picker
   ========================================= */
.ins-filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    /* Single row: the pills absorb the slack and the date stays pinned right */
    flex-wrap: nowrap;
    margin: 1.25rem 0 2rem;
}

/* Category pills — always one line. On a wide screen all eleven fit; on a
   narrow one the row scrolls sideways, with a fade at the right edge to show
   there is more. */
.ins-cat-tabs {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent 100%);
}

/* No visible scrollbar: it would sit under the pills and add height. */
.ins-cat-tabs::-webkit-scrollbar {
    display: none;
}

.ins-cat-tabs[hidden] {
    display: none;
}

.ins-cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    height: 32px;
    padding: 0 0.8rem;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    color: #4C493D;
    background: white;
    border: 1px solid #ECECEC;
    border-radius: 92px;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.ins-cat-btn:hover {
    color: #FF6900;
    border-color: #FFE6C4;
    background: #FFF7F0;
}

.ins-cat-btn.active {
    color: white;
    background: linear-gradient(to right, #FF6900, #FB2C36);
    border-color: transparent;
    box-shadow: 0 5px 14px rgba(251, 44, 54, 0.24);
}

/* Count bubble inside each pill */
.ins-cat-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    font-size: 10.5px;
    font-weight: 700;
    color: #6B6862;
    background: #F3F4F6;
    border-radius: 92px;
}

.ins-cat-btn.active .ins-cat-count {
    color: white;
    background: rgba(255, 255, 255, 0.26);
}

/* Date picker */
.ins-filter-date {
    /* Anchors the calendar popover under the pill. */
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    white-space: nowrap;
}

.ins-date-field {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    /* Kept short so it lines up with the category pills rather than towering
       over them. */
    height: 32px;
    padding: 0 0.7rem;
    font-family: inherit;
    background: white;
    border: 1px solid #FFE6C4;
    border-radius: 92px;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ins-date-field:hover,
.ins-date-field:focus-visible,
.ins-date-field[aria-expanded="true"] {
    outline: none;
    border-color: #FF6900;
    box-shadow: 0 0 0 3px rgba(255, 105, 0, 0.12);
}

.ins-date-field > i {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    line-height: 1;
    color: #FF6900;
    /* Meets the lifted date text on the same optical centre line. */
    position: relative;
    top: 1px;
}

/* Off-screen but still announced, so the date input keeps a real label. */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* The picked day as dd/mm/yyyy, or the grey placeholder when none is picked. */
.ins-date-display {
    font-size: 13px;
    font-weight: 600;
    /* Not 1: that clips the descenders of "yyyy" in the placeholder. */
    line-height: normal;
    color: #2d2d2d;
    white-space: nowrap;
    /* "dd/mm/yyyy" is all lowercase, so its visible body sits below the line
       box's centre and reads as lower than the icon; lift it a touch. */
    position: relative;
    top: -1px;
}

.ins-date-display.is-empty {
    color: #9A968E;
}

/* ---- Calendar popover ---- */
.ins-cal {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 30;
    width: 272px;
    max-width: calc(100vw - 32px);
    padding: 12px;
    background: white;
    border: 1px solid #FFE6C4;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    white-space: normal;
}

.ins-cal[hidden] {
    display: none;
}

.ins-cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.ins-cal-title {
    font-size: 14px;
    font-weight: 700;
    color: #2d2d2d;
}

.ins-cal-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    font-size: 13px;
    color: #FF6900;
    background: #FFF7F0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.ins-cal-nav:disabled {
    color: #C9C5BD;
    background: #F6F6F4;
    cursor: not-allowed;
}

.ins-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.ins-cal-weekday {
    padding: 4px 0;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    color: #9A968E;
}

.ins-cal-day {
    height: 34px;
    padding: 0;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: #2d2d2d;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 50%;
    cursor: pointer;
}

.ins-cal-day:hover:not(:disabled) {
    background: #FFF7F0;
}

.ins-cal-day.is-today {
    border-color: #FF6900;
    color: #FF6900;
}

.ins-cal-day.is-selected {
    color: white;
    background: linear-gradient(to right, #FF6900, #FB2C36);
    border-color: transparent;
}

/* Future days: shown so the month reads normally, but greyed out and not
   pickable, since nothing is published ahead of today. */
.ins-cal-day:disabled {
    color: #CFCBC3;
    cursor: not-allowed;
}


.ins-filter-clear {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    height: 32px;
    padding: 0 0.8rem;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    color: #FB2C36;
    background: white;
    border: 1px solid #FBD5D5;
    border-radius: 92px;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.ins-filter-clear[hidden] {
    display: none;
}

.ins-filter-clear:hover {
    color: white;
    background: linear-gradient(to right, #FF6900, #FB2C36);
    border-color: transparent;
}

.ins-filter-clear i {
    font-size: 11px;
}

/* "Nothing matches these filters" sits in the grid like the empty state */
.ins-nomatch[hidden] {
    display: none;
}

/* Result count next to the section heading */
.ins-results-head #insCount {
    font-size: 14px;
    font-weight: 600;
    color: #6B6862;
}

@media (max-width: 720px) {
    /* A phone cannot hold the whole row, so the date drops below the pills.
       The pills themselves still stay on one scrolling line. */
    .ins-filters {
        flex-wrap: wrap;
        align-items: stretch;
        gap: 0.75rem;
    }

    .ins-cat-tabs {
        flex: 1 1 100%;
    }

    .ins-filter-date {
        justify-content: flex-start;
    }

    /* The pill sits at the left on phones, so the calendar opens from there. */
    .ins-cal {
        right: auto;
        left: 0;
    }

}

/* =========================================
   PAGINATION
   ========================================= */
.ins-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #ECECEC;
}

.ins-pagination[hidden] {
    display: none;
}

.ins-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 0.6rem;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #4C493D;
    background: white;
    border: 1px solid #ECECEC;
    border-radius: 92px;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.ins-page-btn:hover:not(:disabled):not(.active) {
    color: #FF6900;
    border-color: #FFE6C4;
    background: #FFF7F0;
}

.ins-page-btn.active {
    color: white;
    background: linear-gradient(to right, #FF6900, #FB2C36);
    border-color: transparent;
    box-shadow: 0 5px 14px rgba(251, 44, 54, 0.24);
    cursor: default;
}

.ins-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.ins-page-arrow {
    min-width: 38px;
    padding: 0;
    font-size: 13px;
}

.ins-page-gap {
    padding: 0 2px;
    color: #9A968A;
    font-weight: 700;
}

/* Range read-out next to the page buttons ("1–6 / 14") */
.ins-page-label {
    margin-left: 0.75rem;
    font-size: 13px;
    font-weight: 600;
    color: #6B6862;
    font-variant-numeric: tabular-nums;
}

/* =========================================
   VERTICAL CENTRING IN THE PILL CONTROLS
   Bootstrap Icons give their glyph
   `vertical-align: -.125em`, which drops the
   icon a couple of pixels below the label in
   a flex row. Flexbox is already centring
   these, so the shift is removed and each
   child is given a line-height of 1 so its
   box is the glyph height, not the font's
   default leading.
   ========================================= */
.ins-tabs .tab-btn i::before,
.ins-cat-btn i::before,
.ins-date-field > i::before,
.ins-filter-clear i::before,
.ins-eyebrow i::before,
.ins-pagination .ins-page-btn i::before,
.ins-translated-note i::before {
    vertical-align: 0;
}

.ins-tabs .tab-btn,
.ins-cat-btn,
.ins-filter-clear,
.ins-eyebrow,
.ins-page-btn {
    line-height: 1;
}

.ins-tabs .tab-btn > *,
.ins-cat-btn > *,
.ins-filter-clear > *,
.ins-eyebrow > * {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

/* Label and count sit on one centred row inside each pill */
.ins-cat-label {
    line-height: 1;
}

.ins-cat-count {
    line-height: 1;
}

/* Results heading and its count share a centre line, not a baseline */
.ins-results-head {
    align-items: center;
}

.ins-results-head h2,
.ins-results-head #insCount {
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
}

/* Page buttons: digits and arrows centred in the same circle */
.ins-page-btn,
.ins-page-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* =========================================
   LOADING SPINNER
   The loader markup uses .spinner, but the
   rule only ever lived in sansthalist.css,
   which this page does not load — so the
   loader showed as blank space. Defined here
   rather than pulling in that whole sheet.
   ========================================= */
.ins-loader .spinner {
    width: 44px;
    height: 44px;
    margin-bottom: 15px;
    border: 4px solid #ECECEC;
    border-top-color: #FF6900;
    border-radius: 50%;
    animation: ins-spin 0.8s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
    .ins-loader .spinner {
        animation-duration: 2.4s;
    }
}
