/* ===============================
   Opinion menu highlight
   =============================== */

/* Desktop & mobile – minimal paint, clear affordance */
.airinblog-css-mega-menu a[href*="/opinion"],
.airinblog-css-top-menu a[href*="/opinion"] {
    background-color: #dd9922;
    color: #fff;
    font-weight: 700;
    border-radius: 0.375rem; /* scalable */
    padding: 0.35em 0.6em;
    line-height: 1.2;
}

/* Improve touch usability on mobile */
@media (max-width: 768px) {
  .airinblog-css-mega-menu a[href*="/opinion"],
  .airinblog-css-top-menu a[href*="/opinion"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px; /* WCAG-friendly tap target */
  }
}

/* ===============================
   Opinion widget visibility
   =============================== */

/* Default: hide widget */
.opinion-widget {
    display: none;
}

/* Show only on Opinion context */
.category-opinion .opinion-widget,
.page-opinion .opinion-widget {
    display: block;
}

/* ===============================
   Page title enhancement
   =============================== */

.category-opinion .airinblog-css-page-title::after,
.page-opinion .airinblog-css-page-title::after {
    content: " — Opinion";
    margin-left: 0.25em;
    color: #dd9922;
    font-weight: 600;
}

/* ===============================
   Emergency mobile unblock (safe + scoped)
   =============================== */

@media (max-width: 768px) {

  body {
    overflow-y: auto; /* avoid forcing overflow-x */
    position: relative;
    touch-action: manipulation;
  }

  /* Disable blockers without killing layout */
  #mf-lang-overlay,
  #mf-lang-popup,
  #mf-lang-floater-menu,
  .airinblog-css-mask-content {
    pointer-events: none;
  }

  /* Explicitly re-enable interaction */
  #mf-lang-floater {
    pointer-events: auto;
  }
}
/* RASE Search – make results table usable on mobile (no vertical headers) */
.mf-ar-search,
.mf-anon-report-search,
.mf-ar-search-wrap {
  width: 100%;
}

/* Wrap the table in a scroll container (works even if wrapper differs) */
.mf-ar-search table,
.mf-anon-report-search table,
.mf-ar-search-wrap table {
  min-width: 860px;              /* prevents squashing into vertical text */
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.mf-ar-search,
.mf-anon-report-search,
.mf-ar-search-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Header + cells */
.mf-ar-search th, .mf-ar-search td,
.mf-anon-report-search th, .mf-anon-report-search td,
.mf-ar-search-wrap th, .mf-ar-search-wrap td {
  padding: 10px 10px;
  vertical-align: top;
  word-break: break-word;
}

/* Keep headers readable (no stacking) */
.mf-ar-search th,
.mf-anon-report-search th,
.mf-ar-search-wrap th {
  white-space: nowrap;
  font-size: 14px;
}

/* Short fields stay compact */
.mf-ar-search td:nth-child(4),  /* IATA */
.mf-ar-search td:nth-child(5),  /* Aircraft */
.mf-ar-search td:nth-child(6),  /* Weather */
.mf-anon-report-search td:nth-child(4),
.mf-anon-report-search td:nth-child(5),
.mf-anon-report-search td:nth-child(6),
.mf-ar-search-wrap td:nth-child(4),
.mf-ar-search-wrap td:nth-child(5),
.mf-ar-search-wrap td:nth-child(6) {
  white-space: nowrap;
}

/* Give Description more room and allow wrapping */
.mf-ar-search th:nth-child(7), .mf-ar-search td:nth-child(7),
.mf-anon-report-search th:nth-child(7), .mf-anon-report-search td:nth-child(7),
.mf-ar-search-wrap th:nth-child(7), .mf-ar-search-wrap td:nth-child(7) {
  width: 45%;
  white-space: normal;
}
/* RASE Search: force table to stay readable and allow horizontal scroll */
.rase-search{
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}

.rase-search table{
  width:100% !important;
  min-width: 980px !important;   /* prevents columns squeezing into vertical letters */
  border-collapse: collapse;
  table-layout: auto !important; /* key: do NOT force fixed layout */
}

.rase-search th,
.rase-search td{
  padding: 10px 10px !important;
  vertical-align: top;
  word-break: normal !important;
  overflow-wrap: anywhere;
}

/* Keep headers on one line */
.rase-search th{
  white-space: nowrap !important;
  font-size: 14px;
}

/* Give Description most width */
.rase-search th:last-child,
.rase-search td:last-child{
  min-width: 360px;
  white-space: normal !important;
}

/* Make narrow columns sensible */
.rase-search th:nth-child(1), .rase-search td:nth-child(1){ min-width: 120px; } /* Category */
.rase-search th:nth-child(2), .rase-search td:nth-child(2){ min-width: 110px; } /* Move */
.rase-search th:nth-child(3), .rase-search td:nth-child(3){ min-width: 140px; } /* Phase */
.rase-search th:nth-child(4), .rase-search td:nth-child(4){ min-width: 90px;  } /* IATA */
.rase-search th:nth-child(5), .rase-search td:nth-child(5){ min-width: 110px; } /* Aircraft */
.rase-search th:nth-child(6), .rase-search td:nth-child(6){ min-width: 150px; } /* Weather */
/* REPORT button in header menu */
.menu-report-btn > a{
  background:#d8315b;
  color:#fff !important;
  padding:10px 14px;
  border-radius:999px;
  font-weight:800;
  letter-spacing:.2px;
  line-height:1;
  text-decoration:none !important;
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.menu-report-btn > a:hover{
  filter:brightness(0.95);
  text-decoration:none !important;
}

.menu-report-btn > a::before{
  content:"⚑";
  font-size:14px;
  line-height:1;
}

.menu-report-btn{ white-space:nowrap; }

/* REPORT button (works even if you cannot add CSS classes in menu) */
.airinblog-css-mega-menu a[href*="rase-anonymous-report"],
.airinblog-css-top-menu a[href*="rase-anonymous-report"]{
  background:#d8315b !important;
  color:#fff !important;
  padding:10px 14px !important;
  border-radius:999px !important;
  font-weight:800 !important;
  letter-spacing:.2px;
  line-height:1 !important;
  text-decoration:none !important;
  display:inline-flex !important;
  align-items:center !important;
  gap:8px !important;
}

.airinblog-css-mega-menu a[href*="rase-anonymous-report"]::before,
.airinblog-css-top-menu a[href*="rase-anonymous-report"]::before{
  content:"⚑" !important;
  font-size:14px;
  line-height:1;
}