/* ============================================================================
   epao-responsive.css  —  RESPONSIVE OVERLAY for the existing e-pao.net index.

   Philosophy: every rule lives inside @media (max-width:1000px), with ONE
   exception — the base block just below hides our injected .epao-rwd-* elements,
   which never exist on a pristine desktop load. So at >=1001px nothing here
   affects the page and the desktop is byte-for-byte identical to today.
   Below 1000px the fixed panels reflow into one readable column.

   Loaded AFTER portalMain.css, so equal-specificity overrides win on source order;
   !important is used only where it must beat inline widths / high-specificity IDs.
   This is the single containment point — adjust the breakpoint or any rule here to
   tune exactly how much the mobile view may deviate.
   ============================================================================ */

/* RWD helper elements (injected by epao-responsive.js; they don't exist on the
   live desktop site). Hidden by default so desktop is unaffected; the mobile
   breakpoint below reveals them. This also covers the brief gap when a built
   mobile page crosses back above 1000px (iPad rotation / window drag): the JS
   reloads once to restore desktop, and until that fires none of our injected
   chrome may show unstyled on the desktop layout. */
.epao-rwd-topbar,
.epao-rwd-scrim,
.epao-rwd-drawer,
.epao-rwd-dots,
.epao-rwd-tabbar,
.epao-rwd-panels,
.epao-rwd-snapshot,
.epao-rwd-duo,
.epao-rwd-galcard,
.epao-rwd-galsheet,
.epao-rwd-morelinks { display: none; }

@media (max-width: 1000px) {

  /* ---- 0. Never allow sideways scrolling ---- */
  html, body { overflow-x: hidden !important; max-width: 100%; }

  /* ---- 1. Collapse every fixed-width container to fluid full width ---- */
  #main_container,
  #content_bg,
  .inner_container,
  #header,
  #masthead,
  #header_navhead,
  #leftnmiddle_panel,
  #gen_panel,
  #middle_content_container,
  #middle_content_container_gen,
  #middle_content_nonrightrail,
  #left_panel,
  #right_panel,
  #wigetbox,
  #wigetmid,
  #slideshow,
  #slideshow .slides {
    width: 100% !important;
    float: none !important;
    left: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
  }

  #main_container { max-width: 720px; margin: 0 auto !important; }
  #content_bg { border-left: 0; border-right: 0; }
  .inner_container { padding: 0 12px; }

  /* ---- 2. Header: original logo + ad hidden; replaced by the SVG top bar.
            728x90 leaderboard + 160px skyscraper can't fit a phone anyway. ---- */
  #header { padding-top: 0 !important; text-align: left; }
  .logo,
  .google_ad,
  .google_adgen,
  #adsky { display: none !important; }
  .search { float: none !important; width: auto !important; }

  /* ---- 3a. Both top nav rows fold into hamburger drawers (built by JS):
            #header_navhead = Sections (News, Manipur, Travel...),
            #header_nav     = Services (AIR Radio, Calendar, Books...).
            Hidden here; their links are cloned into .epao-rwd-drawer. ---- */
  #header_nav,
  #header_navhead { display: none !important; }
  .header_nav_end { display: none !important; }

  /* ---- 3b. Utility bar (#masthead): keep only Ask-AI + search on ONE line.
            Date and social links are dropped on mobile (not useful on a phone). ---- */
  #masthead {
    height: auto !important; padding: 4px 8px !important; white-space: normal;
    display: flex !important; flex-wrap: nowrap; align-items: center;
    justify-content: center; gap: 4px;
  }
  /* kill the inline padding-bottom:12px on the <div class="inner_container"> that wraps masthead */
  #header > .inner_container { padding-bottom: 2px !important; }
  #masthead > *:not(script):not(style) {
    float: none !important; vertical-align: middle; min-width: 0;
  }
  #masthead .date_txt { display: none !important; }   /* item 1: drop the date line */
  #masthead .socialnet { display: none !important; }  /* item 3: drop social links */
  #masthead #gcse-search { flex: 0 0 auto; }
  #masthead #epaoQuery {                               /* item 2: shrink Ask-AI input */
    width: 60px !important; min-width: 0 !important;
  }
  #masthead form input[type="text"] {                  /* shrink search input */
    width: 80px !important; min-width: 0 !important;
  }

  /* ---- 3c. Mobile top bar: logo first, then the menu buttons side-by-side.
            Compact sizing so the logo + THREE buttons fit on one line. ---- */
  .epao-rwd-topbar {
    display: flex; align-items: center; gap: 8px; flex-wrap: nowrap;
    padding: 7px 10px; background: #fff; border-bottom: 1px solid #e0e0e0;
  }
  /* Original logo artwork, only resized to fit inline with the buttons.
     ID-level selector + !important so it beats the generic
     "#content_bg img { height:auto!important }" fluid-image rule in section 5. */
  .epao-rwd-logo { display: inline-flex; align-items: center; flex: 0 1 auto; min-width: 0; }
  #header .epao-rwd-logo img {
    height: 34px !important; width: auto !important; max-width: 38vw !important;
    object-fit: contain; display: block;
  }
  .epao-rwd-menus { margin-left: auto; flex: 0 0 auto; display: flex; gap: 4px; }
  /* Icon + tiny caption stacked INSIDE each colored button: new-design discoverability
     without a second row — the row just grows ~10px taller. Width is caption-driven
     (min 40px); the logo's flex 0 1 auto + min-width:0 absorbs the difference on
     narrow phones so the five buttons always stay on ONE line. */
  .epao-rwd-menubtn {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; min-width: 40px; padding: 5px 5px 4px; border-radius: 8px;
    background: #254666; color: #fff; border: 0; cursor: pointer; flex-shrink: 0;
  }
  .epao-rwd-menubtn--services  { background: #3097d1; }
  .epao-rwd-menubtn--notices   { background: #fd6734; }
  .epao-rwd-menubtn--explore   { background: #6a1b9a; }
  .epao-rwd-menubtn--jumpstart { background: #2e7d32; }
  .epao-rwd-menubtn__ico { display: inline-flex; }
  .epao-rwd-menubtn__ico svg { width: 16px; height: 16px; display: block; }
  .epao-rwd-menubtn__cap {
    font-size: 8px; font-weight: 600; line-height: 1; letter-spacing: .2px; color: #fff;
  }

  /* ---- 3d. Slide-in drawer + scrim (shared by both menus) ---- */
  .epao-rwd-scrim {
    display: block;
    position: fixed; inset: 0; z-index: 1100;
    background: rgba(8, 18, 33, .72);
    opacity: 0; visibility: hidden; transition: opacity .25s;
  }
  .epao-rwd-scrim.is-open { opacity: 1; visibility: visible; }
  .epao-rwd-drawer {
    display: flex;
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 1101;
    width: min(96vw, 360px); background: #fff;
    flex-direction: column; overflow-y: auto;
    transform: translateX(-100%); transition: transform .28s ease;
    box-shadow: 0 10px 40px rgba(20, 40, 70, .3);
  }
  .epao-rwd-drawer.is-open { transform: none; }
  .epao-rwd-drawer__head {
    display: flex; align-items: center; justify-content: space-between;
    background: #254666; color: #fff; padding: 14px 16px;
    font-weight: bold; font-size: 16px;
  }
  .epao-rwd-close {
    background: none; border: 0; color: #fff;
    font-size: 26px; line-height: 1; cursor: pointer;
  }
  .epao-rwd-drawer a {
    display: block; padding: 14px 16px; border-bottom: 1px solid #e0e0e0;
    color: #254666 !important; font-weight: bold; font-size: 15px;
    text-decoration: none; white-space: normal;
  }
  .epao-rwd-drawer a:active { background: #eaf1f7; }
  /* Collapsible link groups (Notices): only the first link shows until the
     per-section "+N more" toggle expands it; the toggle flips back and forth. */
  .epao-rwd-drawer__grp .epao-rwd-extra { display: none; }
  .epao-rwd-drawer__grp.epao-rwd-expanded .epao-rwd-extra { display: block; }
  .epao-rwd-drawer__more {
    display: block; width: 100%; text-align: left; padding: 10px 16px;
    border: 0; border-bottom: 1px solid #e0e0e0; background: none;
    color: #3097d1; font-weight: bold; font-size: 13px; cursor: pointer;
  }

  /* ---- 4. HOTSPOT: native swipe carousel on mobile (one featured item per view).
            Replaces the legacy jQuery-cycle slideshow, which isn't touch-friendly.
            The ul becomes a horizontal scroll-snap track; JS adds dots + autoplay. ---- */
  #slideshow { width: 100% !important; border: 0 !important; }
  #slideshow .slides { overflow: visible; width: 100% !important; }
  /* The <ul> is BOTH the flex track and the scroll container, so its
     flex:0 0 100% items overflow it and make it horizontally scrollable. */
  #slideshow .slides ul {
    display: flex !important; width: 100% !important; margin: 0; padding: 0;
    align-items: flex-start; /* natural per-slide height; JS sizes the track to the
                                active slide so short slides leave no gap below */
    overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    transition: height .18s ease;
  }
  #slideshow .slides ul::-webkit-scrollbar { display: none; }
  #slideshow .slides li {
    flex: 0 0 100% !important; width: 100% !important; height: auto !important;
    float: none !important; box-sizing: border-box;
    scroll-snap-align: start; padding: 10px 12px;
  }
  #slideshow .clearfix { display: none !important; }
  #slideshow ul.slides-nav { display: none !important; } /* replaced by .epao-rwd-dots */

  /* carousel dots (built by JS) */
  .epao-rwd-dots { display: flex; justify-content: center; gap: 7px; padding: 4px 0 1px; }
  .epao-rwd-dots button {
    width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%;
    background: #cdd9e6; cursor: pointer; transition: width .2s, background .2s;
  }
  .epao-rwd-dots button.is-on { width: 22px; border-radius: 5px; background: #254666; }

  /* ---- 4b. HOTSPOT slide: a self-contained card — picture forms the full-height
            left column, text on the right. "HOTSPOT" label dropped (understood on
            mobile), and the everywhere-bold is toned down. ---- */
  #slideshow .feat-title { display: none !important; }   /* drop the "HOTSPOT" bar */

  #slideshow .entry {
    display: flex !important; align-items: stretch; gap: 10px;
  }
  /* image link = fixed-width left column, stretched to the card height */
  #slideshow .entry > a:first-child {
    flex: 0 0 88px; align-self: stretch; display: block; min-height: 100%;
  }
  #slideshow .entry img.thumbnail,
  #slideshow .entry > a:first-child img {
    width: 100% !important; height: 100% !important; min-height: 88px;
    object-fit: cover; float: none !important;
    margin: 0 !important; padding: 0 !important; border: 0 !important;
    border-radius: 6px;
  }
  .epao-rwd-feat-body { flex: 1 1 auto; min-width: 0; }

  /* headline: one emphasis, not bold-on-everything */
  #slideshow .post-title,
  #slideshow .post-title a {
    font-size: 15px !important; line-height: 1.25 !important; font-weight: 600 !important;
  }
  /* related links: normal weight, lighter; one per line as block rows */
  #slideshow .featuredlinks,
  #slideshow .featuredlinks a {
    font-size: 12.5px !important; line-height: 1.35 !important; font-weight: normal !important;
  }
  #slideshow .featuredlinks .epao-rwd-flink { margin: 0 0 5px; }
  /* capped: hide overflow links until "more" is tapped */
  #slideshow .featuredlinks .epao-rwd-extra { display: none; }
  #slideshow .featuredlinks.epao-rwd-expanded .epao-rwd-extra { display: block; }
  .epao-rwd-morelinks {
    display: inline-block; /* re-reveal: hidden outside the breakpoint */
    margin-top: 4px; padding: 4px 0; border: 0; background: none;
    color: #3097d1; font-weight: bold; font-size: 12.5px; cursor: pointer;
  }

  /* ---- 4d. Latest Headlines LEAD story: photo on the LEFT, blurb on the RIGHT
            immediately beside it, clamped to roughly the photo height (JS refines
            the line count). ---- */
  .epao-rwd-lead { display: flex !important; gap: 10px; align-items: flex-start; margin: 6px 0 2px; }
  #content_bg .epao-rwd-lead img,
  .epao-rwd-lead img.featuredimage {
    /* Match the real upload size (67x60) — don't upscale past native resolution,
       or the thumbnail reads as prominently as the HOTSPOT/lead carousel photos. */
    flex: 0 0 auto; width: 67px !important; max-width: 67px !important; height: auto !important;
    float: none !important; margin: 0 !important;
    padding: 2px; border: 1px solid #e0e0e0; background: #fff;
  }
  .epao-rwd-lead-blurb {
    flex: 1 1 auto; min-width: 0;
    display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden;
    -webkit-line-clamp: 4; /* refined by JS to match the photo height */
    font-size: 13px; line-height: 1.38; color: #2b3a4d;
  }

  /* ---- 4e. News tab bar (News / Snippets / Sports / Mayek) merged into one row ---- */
  #middle_content { display: none !important; } /* old icon tabs; content moved up */
  .epao-rwd-panels { display: block; } /* re-reveal: hidden outside the breakpoint */
  .epao-rwd-tabbar {
    display: flex; gap: 2px; margin: 2px 0 4px;
    border-bottom: 2px solid #e0e0e0;
  }
  .epao-rwd-tab {
    flex: 1 1 0; min-width: 0;
    display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 4px;
    padding: 5px 2px 6px; border: 0; background: none; cursor: pointer;
    color: #6b7c93; font-size: 11px; font-weight: bold; line-height: 1;
    border-bottom: 2px solid transparent; margin-bottom: -2px;
  }
  .epao-rwd-tab__ico { display: inline-flex; flex-shrink: 0; }
  .epao-rwd-tab__ico svg { width: 14px; height: 14px; display: block; }
  .epao-rwd-tab.is-active { color: #254666; border-bottom-color: #fd6734; }
  .epao-rwd-tab.is-active .epao-rwd-tab__ico { color: #fd6734; }
  /* the moved #*_con panels: lay their links out as one-per-line rows */
  .epao-rwd-panels .tab_content_news { border: 0 !important; padding: 0 !important; }
  .epao-rwd-panels .tab_content_news a { display: flex; align-items: flex-start; gap: 8px; padding: 8px 8px 8px 2px; line-height: 1.4; border-bottom: 0; color: #254666; background-image: none !important; }
  .epao-rwd-panels .tab_content_news a::before {
    content: ''; width: 6px; height: 6px; margin-top: 6px; flex: 0 0 auto;
    background: #254666; border-radius: 50%;
  }

  /* News tab: cap at 10 items, expand on tap */
  .wigetlinks .epao-rwd-extra { display: none; }
  .wigetlinks.epao-rwd-expanded .epao-rwd-extra { display: block; }
  .wigetlinks .epao-rwd-morelinks { display: block; margin: 6px 0 2px; }

  /* News/Editorial: strip the native <li> bullet + dotted divider from the desktop CSS */
  .epao-rwd-panels .tab_content_news li,
  .wigetlinks li {
    list-style: none; margin: 0; padding: 0; border-bottom: 0 !important;
  }

  /* ---- 4c. Drawer group dividers, accordion panels, and content body ---- */
  .epao-rwd-drawer__divider {
    padding: 8px 16px 4px; font-size: 11px; font-weight: bold;
    text-transform: uppercase; letter-spacing: .5px; color: #7186a0;
    border-top: 1px solid #e8ecf1; margin-top: 2px;
  }
  .epao-rwd-drawer__acc-hdr {
    display: flex; justify-content: space-between; align-items: center;
    width: 100%; padding: 13px 16px; border: 0; border-bottom: 1px solid #e0e0e0;
    background: #f0f4f8; color: #254666; font-weight: bold; font-size: 14px;
    text-align: left; cursor: pointer; box-sizing: border-box;
  }
  .epao-rwd-drawer__acc-hdr[aria-expanded="true"] { background: #dde8f3; }
  .epao-rwd-drawer__chevron {
    font-size: 20px; line-height: 1; color: #254666; font-weight: bold;
    display: inline-block; transition: transform .18s ease; flex: 0 0 auto; margin-left: 8px;
  }
  .epao-rwd-drawer__acc-hdr[aria-expanded="true"] .epao-rwd-drawer__chevron {
    transform: rotate(180deg); color: #3097d1;
  }
  .epao-rwd-drawer__acc-body { border-bottom: 1px solid #e0e0e0; }
  .epao-rwd-drawer-body {
    padding: 12px 16px; font-size: 13px; color: #3d5166; text-align: center; line-height: 1.5;
  }
  .epao-rwd-drawer-body a {
    display: block; padding: 10px 0; color: #254666 !important;
    font-weight: bold; font-size: 14px; text-decoration: none; border-bottom: 1px solid #e8ecf1;
  }
  .epao-rwd-drawer-body a:last-child { border-bottom: 0; }
  .epao-rwd-drawer-arch { padding: 10px 16px; }
  .epao-rwd-drawer-arch a {
    display: block; margin: 6px 0; padding: 10px 14px;
    background: #eaf1f7; border-radius: 6px;
    color: #254666 !important; font-weight: bold; font-size: 14px;
    text-align: center; text-decoration: none;
  }

  /* ---- News Archives date picker ---- */
  .epao-rwd-arch { padding: 12px 16px; }
  .epao-rwd-arch fieldset { border: 0; padding: 0; margin: 0 0 10px; }
  .epao-rwd-arch legend {
    font-size: 11px; font-weight: bold; text-transform: uppercase;
    letter-spacing: .5px; color: #7186a0; margin-bottom: 6px; display: block;
  }
  .epao-rwd-arch .jcalendar-selects {
    display: flex; align-items: center; gap: 4px; flex-wrap: nowrap;
  }
  .epao-rwd-arch select {
    padding: 7px 4px; font-size: 13px; border: 1px solid #c8d4e0;
    border-radius: 5px; background: #f5f8fc; color: #254666;
    flex: 1 1 auto; min-width: 0;
  }
  .epao-rwd-arch .tag_button {
    display: inline-block; padding: 7px 12px;
    background: #254666; color: #fff !important;
    border-radius: 5px; font-size: 13px; font-weight: bold;
    cursor: pointer; white-space: nowrap;
  }
  .epao-rwd-arch__mayek {
    display: block; padding: 10px 14px; margin-top: 4px;
    background: #eaf1f7; border-radius: 6px;
    color: #254666 !important; font-weight: bold; font-size: 14px;
    text-align: center; text-decoration: none;
  }

  /* ---- ISTV News embeds ---- */
  .epao-rwd-istv { padding: 12px 16px; }
  .epao-rwd-istv__channel {
    display: block; text-align: center; padding: 8px 0 4px;
    color: #254666 !important; font-weight: bold; font-size: 13px;
    text-decoration: none; border-top: 1px solid #e8ecf1;
  }

  /* ---- AIR Manipuri News player card ---- */
  .epao-rwd-air { padding: 12px 16px; }
  .epao-rwd-air__logo {
    display: block; margin: 0 auto 10px; max-width: 140px; height: auto;
  }
  .epao-rwd-air__player {
    display: block; width: 100%; margin-bottom: 10px;
  }
  .epao-rwd-air__footer {
    font-size: 12px; color: #3d5166; text-align: center; line-height: 1.6;
  }
  .epao-rwd-air__footer a {
    display: block; padding: 6px 0; color: #254666 !important;
    font-weight: bold; font-size: 13px; text-decoration: none;
    border-bottom: 0 !important;
  }

  /* ---- 4f. Today's Snapshot + Gallery: matching cards sharing one row between
            the carousel and the tab bar. (Gallery card arrives async from the
            /latest.html fetch; until then the snapshot spans the full row.) ---- */
  .epao-rwd-duo { display: flex; gap: 8px; align-items: stretch; margin: 0 0 6px; } /* re-reveal */
  .epao-rwd-duo > * { flex: 1 1 0; min-width: 0; }
  .epao-rwd-snapshot,
  .epao-rwd-galcard {
    /* flex column (also the re-reveal: hidden outside the breakpoint) — a plain
       <button> vertically CENTERS leftover space, sinking the Gallery card's
       label/image below the Snapshot's; flex-start keeps both stacks top-aligned */
    display: flex; flex-direction: column; align-items: stretch;
    background: #f6f9fc; border: 1px solid #e3ebf3; border-radius: 8px;
    padding: 6px 6px 7px; text-align: left; box-sizing: border-box;
  }
  .epao-rwd-galcard { cursor: pointer; font: inherit; }
  .epao-rwd-snapshot__label {
    display: block; font-size: 10px; font-weight: bold; text-transform: uppercase;
    letter-spacing: .6px; color: #7186a0; padding: 0 2px 4px;
  }
  .epao-rwd-snapshot__link {
    display: flex; flex-direction: column; flex: 1 1 auto; text-decoration: none;
  }
  /* #content_bg prefix: must out-rank the fluid-image rule below
     (#content_bg img { height:auto !important }) or the crop height is ignored */
  .epao-rwd-card__img,
  #content_bg .epao-rwd-card__img {
    width: 100% !important; height: 120px !important; object-fit: cover;
    border-radius: 5px; display: block; border: 0;
    float: none !important; margin: 0 !important;
  }
  .epao-rwd-card__cap {
    display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden;
    -webkit-line-clamp: 2; font-size: 11px; line-height: 1.35; color: #2b3a4d;
    margin-top: 5px; padding: 0 2px;
  }
  /* margin-top:auto pins the CTA to the card floor, level with the Snapshot's
     two-line caption bottom, so the two cards read as one balanced row */
  .epao-rwd-galcard__cta { color: #3097d1; font-weight: bold; margin-top: auto; }

  /* Full-screen Gallery browser: slides up from the bottom; 2-col thumb cards.
     Flex-wrap, NOT css grid: grid's intrinsic auto-row sizing collapsed these
     cells to ~31px strips (line-clamp caption interaction); flex sizes them right. */
  .epao-rwd-galsheet {
    display: flex; /* re-reveal: hidden outside the breakpoint */
    position: fixed; inset: 0; z-index: 1102; background: #f2f5f9;
    flex-direction: column;
    transform: translateY(102%); transition: transform .3s ease;
  }
  .epao-rwd-galsheet.is-open { transform: none; }
  .epao-rwd-galsheet__grid {
    flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding: 10px; display: flex; flex-wrap: wrap; gap: 10px;
    align-content: flex-start;
  }
  .epao-rwd-galcell {
    display: block; width: calc(50% - 5px); box-sizing: border-box;
    background: #fff; border: 1px solid #e3ebf3; border-radius: 8px;
    overflow: hidden; text-decoration: none;
  }
  /* Source thumbs are square (80x80), so a square display box shows the WHOLE
     picture — no heads cut off. aspect-ratio tracks the cell width exactly;
     the fixed height only serves browsers too old to know aspect-ratio. */
  .epao-rwd-galcell img {
    width: 100% !important; height: 170px !important; object-fit: cover;
    display: block; border: 0; float: none !important; margin: 0 !important;
  }
  @supports (aspect-ratio: 1 / 1) {
    .epao-rwd-galcell img { height: auto !important; aspect-ratio: 1 / 1; }
  }
  .epao-rwd-galcell span {
    display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden;
    -webkit-line-clamp: 2; padding: 6px 8px 8px;
    font-size: 11.5px; font-weight: bold; color: #254666 !important; line-height: 1.3;
  }

  .epao-rwd-hidden { display: none !important; }

  /* ---- 5. Make every content image fluid ---- */
  #content_bg img,
  .entry img,
  img.alignleft,
  img.alignright,
  .featuredimage {
    max-width: 100% !important;
    height: auto !important;
  }
  /* stop big floated thumbnails from squeezing text on a narrow screen */
  .featuredimage,
  img.align-left,
  img.alignleft { float: none !important; display: block; margin: 0 0 8px 0 !important; }

  /* ---- 6. Visual separation between the now-stacked panels ---- */
  #left_panel { border-right: 0 !important; padding-top: 2px; }
  /* Right panel widgets moved to Explore drawer; Jump Start moved to Start drawer. */
  #right_panel { display: none !important; }
  #jump_start  { display: none !important; }

  /* Footer: "Best viewed with IE 8.0 / FireFox 43.x / Chrome 5.0x" is a legacy
     browser-compatibility notice with no relevance on mobile — drop it, keep
     the Help/Copyright line. */
  #footer .footer_links:first-child { display: none !important; }
  #footer .footer_links:first-child + br { display: none !important; }

  /* ---- 7. Comfortable tap targets & readable body text ---- */
  #left_panel a, #middle_content a, #right_panel a,
  #header_nav a, #masthead a { font-size: 100% !important; }
  .wigetlinks a {
    display: flex !important; align-items: flex-start; gap: 8px;
    padding: 8px 8px 8px 2px !important; line-height: 1.4 !important;
    background-image: none !important;
  }
  .wigetlinks a::before {
    content: ''; width: 6px; height: 6px; margin-top: 6px; flex: 0 0 auto;
    background: #254666; border-radius: 50%;
  }
  .wigetlinks li { width: 100% !important; }
}

/* Phone-specific tightening (kept separate so tablets keep a roomier feel) */
@media (max-width: 560px) {
  #main_container { max-width: 100%; }
  .inner_container { padding: 0 10px; }
  #slideshow .slides li { height: auto !important; }
}
