/**
 * GAMBLINGCOME — mobile-first layout matching cdcgaming.com
 * Loaded AFTER cdcstyle.css so these rules win.
 */

:root {
  --cdc-blue: #0066d6;
  --cdc-blue-hover: #0055b3;
  --cdc-text: #0a0a0a;
  --cdc-muted: #666;
  --cdc-line: #aaa;
  --cdc-rule: #eee;
  --cdc-max: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #fff !important;
  color: var(--cdc-text);
  font-family: "Nunito Sans", sans-serif !important;
  font-size: 16px;
  line-height: 1.55;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: var(--cdc-blue);
}

a:hover {
  color: var(--cdc-blue-hover);
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* ========== Network bar (#bbb) ========== */
#bbb {
  background: #000;
  color: #fff;
  padding: 0;
  min-height: 36px;
  display: flex;
  align-items: center;
}
#bbb .bbb-inner {
  width: 100%;
  max-width: var(--cdc-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 6vw, 2.5rem);
  padding: 0.45rem 1rem;
}
#bbb .bbb-item {
  text-decoration: none;
  line-height: 1;
  opacity: 0.9;
}
#bbb .bbb-word {
  font-family: "Archivo", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #fff;
  text-transform: none;
}
#bbb .bbb-cdc .bbb-word {
  color: #5eb0ff;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.58rem;
}
.site-logo .logo-text {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: #0066d6;
  text-decoration: none;
}
#bbb .bbb-iag .bbb-word {
  color: #bc9536;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-style: italic;
  text-transform: lowercase;
}
#bbb .bbb-cig .bbb-word {
  color: #fff;
  font-weight: 700;
}

/* ========== Shell ========== */
.site-shell.off-canvas-wrapper,
.off-canvas-wrapper.site-shell {
  max-width: none;
  margin: 0;
  padding: 0;
  background: #fff;
  position: relative;
}
.off-canvas-content {
  max-width: var(--cdc-max);
  margin: 0 auto;
  background: #fff;
  width: 100%;
}
.content.home,
.content {
  width: 100%;
}
.inner-content.grid-x {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  width: 100%;
}
.main-col {
  width: 100%;
  padding: 0;
}
.sidebar {
  display: none; /* mobile: no right rail */
  width: 100%;
  padding: 0.75rem;
}

/* ========== Header — mobile: hamburger | centered logo ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  box-shadow: 0 4px 12px -6px rgba(0, 0, 0, 0.12);
}
.site-header-bar {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  min-height: 64px;
  padding: 0.4rem 0.75rem;
  background: #fff;
}

.nav-toggle {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  justify-self: start;
}
.nav-toggle-bar {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--cdc-blue);
  border-radius: 1px;
}

.site-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}
.site-logo img {
  display: block;
  width: min(200px, 58vw);
  height: auto;
  max-height: 28px;
  object-fit: contain;
}

/* Desktop nav hidden on mobile — critical */
.site-nav-desktop {
  display: none !important;
}

/* ========== Mobile drawer ========== */
.nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(88vw, 320px);
  height: 100%;
  background: #fff;
  z-index: 200;
  transform: translateX(-105%);
  transition: transform 0.22s ease;
  padding: 1rem 1.1rem 2rem;
  overflow-y: auto;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.18);
}
.nav-drawer.is-open {
  transform: translateX(0);
}
.nav-drawer-close {
  float: right;
  border: 0;
  background: none;
  font-size: 2rem;
  line-height: 1;
  color: #333;
  cursor: pointer;
  padding: 0 0.25rem;
}
.nav-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 150;
}
.nav-drawer-backdrop[hidden] {
  display: none !important;
}
.drawer-menu,
.nav-drawer .menu {
  list-style: none;
  margin: 2.75rem 0 0;
  padding: 0;
  clear: both;
}
.drawer-menu a,
.nav-drawer .menu a,
.nav-drawer .cdc-primary-nav a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 0.25rem;
  color: #222;
  text-decoration: none;
  font-family: "Archivo", sans-serif;
  font-size: 1.05rem;
  border-bottom: 1px solid #eee;
}
.nav-drawer .nav-ico {
  width: 16px;
  height: 16px;
  opacity: 0.8;
}
.nav-drawer .nav-caret {
  margin-left: auto;
  border-top-color: var(--cdc-blue);
}
.drawer-menu .sub-menu,
.nav-drawer .sub-menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0 0 0 0.85rem;
}
.drawer-menu .menu-item-has-children.is-open > .sub-menu,
.nav-drawer .menu-item-has-children.is-open > .sub-menu {
  display: block;
}
.nav-drawer .sub-menu a {
  font-size: 0.95rem;
  color: #444;
  border-bottom-color: #f0f0f0;
}

body.nav-open {
  overflow: hidden;
}

/* ========== Main ========== */
.site-main {
  padding: 0.65rem 0.85rem 2rem;
}
.sidebar-ad {
  margin-bottom: 1rem;
}
.sidebar-ad img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}
.placeholder-ad {
  background: #0b1f3a;
  border-radius: 6px;
  overflow: hidden;
}
.sidebar-widget {
  margin-bottom: 1.25rem;
}

/* Non-clickable display links */
.no-click-links a,
.nolink {
  color: var(--cdc-blue);
  text-decoration: none;
  cursor: default;
  pointer-events: none;
}
.page-reports .subscribe-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
}
.page-reports .subscribe-form input[type="email"] {
  flex: 1 1 220px;
  padding: 0.65rem 0.85rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}
.page-reports .subscribe-form .button[disabled] {
  opacity: 0.85;
  cursor: default;
}
.subscribe-email-box {
  border: 3px solid var(--cdc-blue) !important;
  border-radius: 16px;
  padding: 0.85rem 1rem;
  margin: 0 0 1.25rem;
  background: #fff;
}
.subscribe-email-box p {
  margin: 0;
  line-height: 1.5;
  color: #222;
}
.footer-connect .btn.nolink {
  display: inline-block;
  pointer-events: none;
  cursor: default;
}
.report-item {
  margin: 0 0 1.1rem;
}
.report-item h4 {
  font-family: "Archivo", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}
.page-reports .section-title {
  font-family: "Archivo", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 3px solid var(--cdc-blue);
  display: inline-block;
  margin: 1.25rem 0 0.75rem;
  padding-bottom: 0.1rem;
}

/* Sidebar Latest News / Insight */
.sidebar-widget-title {
  font-family: "Archivo", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cdc-blue);
  text-align: center;
  margin: 0 0 0.65rem;
}
.sidebar-latest-list {
  list-style: none;
  margin: 0;
  padding: 0.85rem 1rem;
  border: 3px solid var(--cdc-blue);
  border-radius: 14px;
  background: #fff;
  counter-reset: sideitem;
}
.sidebar-latest-list li {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  column-gap: 0.45rem;
  row-gap: 0.35rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #eee;
  align-items: start;
}
.sidebar-latest-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0.15rem;
}
.sidebar-num {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--cdc-blue);
  line-height: 1.3;
}
.sidebar-headline {
  color: #1a1a1a;
  font-size: 0.92rem;
  line-height: 1.35;
  grid-column: 2;
}
.sidebar-time {
  grid-column: 2;
  display: inline-block;
  width: fit-content;
  background: var(--cdc-blue);
  color: #fff !important;
  font-size: 0.72rem;
  font-family: "Archivo", sans-serif;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  line-height: 1.3;
}

/* ========== Section titles (US & CANADA / EDITOR'S PICKS) ========== */
.site-main h2.frontpage,
.home h2.frontpage {
  font-family: "Archivo", sans-serif !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0.35rem 0 0.65rem;
  overflow: hidden;
  color: #000;
}
.site-main h2.frontpage span,
.home h2.frontpage span {
  flex-shrink: 0;
}
.site-main h2.frontpage::after,
.home h2.frontpage::after {
  content: "";
  flex: 1 1 auto;
  border-bottom: 1px solid var(--cdc-line);
  height: 0;
  margin-left: 0.65rem;
  transform: translateY(-0.15em);
}

.site-main h4.frontpage,
.home h4.frontpage {
  font-family: "Archivo", sans-serif !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #333;
  margin: 0.9rem 0 0.7rem;
  padding: 0 0 0 0.65rem;
  border-left: 3px solid var(--cdc-blue);
  display: block;
  width: auto;
  overflow: visible;
}
.site-main h4.frontpage::after,
.home h4.frontpage::after {
  display: none !important;
}

.site-main h3.frontpage.tribal {
  font-family: "Archivo", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 1.5rem 0 0.75rem;
}

/* ========== Grid ========== */
.grid-x {
  display: flex;
  flex-wrap: wrap;
  margin-left: -6px;
  margin-right: -6px;
}
.grid-x > .item,
.grid-x > .cell,
.grid-x > [class*="small-"],
.grid-x > [class*="medium-"],
.grid-x > [class*="large-"] {
  width: 100%;
  padding-left: 6px;
  padding-right: 6px;
  box-sizing: border-box;
}
.show-for-large {
  display: none !important;
}

/* ========== Feature cards ========== */
.features .item {
  padding: 0.45rem 0.35rem 1rem;
  margin-bottom: 0.35rem;
}

.ahImage {
  position: relative;
  width: 100%;
  min-height: 0 !important;
  background: transparent !important;
  overflow: hidden;
  border-radius: 8px;
}
.ahImage img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: #e8eef5;
}
.ahImage .articleDate {
  position: absolute;
  left: 0;
  bottom: 0;
  margin: 0;
  padding: 0.28rem 0.55rem;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-family: "Archivo", sans-serif;
  font-size: 0.72rem;
  border-radius: 0 6px 0 8px;
}

.features .item .entry-title,
.home h3.entry-title {
  font-family: "Archivo", sans-serif !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  text-align: center;
  margin: 0.7rem 0 0.35rem;
  line-height: 1.3;
  color: #000;
}
.features .item .entry-title a,
.home h3.entry-title a {
  color: #000 !important;
  text-decoration: none;
}
.features .item .entry-title a:hover {
  text-decoration: underline;
}

ul.authors {
  list-style: none;
  margin: 0.35rem auto 0.45rem;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  max-width: 100%;
}
ul.authors li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
}
.authorIm img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
ul.authors #author,
ul.authors span {
  font-size: 0.86rem;
  color: #555;
  font-family: "Nunito Sans", sans-serif;
}

.features .item .excerpt,
.home .excerpt {
  font-size: 0.92rem;
  color: #333;
  text-align: left;
  line-height: 1.5;
}
.features .item .excerpt a,
.excerpt a {
  color: var(--cdc-blue);
  text-decoration: none;
  font-weight: 600;
}

/* Feature rows (original / aggregated) */
.feature-row {
  padding: 0.65rem 0.25rem !important;
  border-bottom: 1px solid var(--cdc-rule);
  margin: 0 !important;
  align-items: flex-start;
}
.feature-row-image {
  display: block;
  margin-bottom: 0.55rem;
}
.feature-row-text {
  text-align: left !important;
  padding-left: 0 !important;
}
.feature-row-text .entry-title {
  text-align: left !important;
  font-size: 1rem !important;
  margin: 0 0 0.35rem !important;
}
.feature-row-text ul.authors {
  justify-content: flex-start;
  margin-left: 0;
}
.feature-row-text .excerpt {
  text-align: left;
}

/* Latest list */
.latest .inner,
div.latest .inner {
  padding: 0.65rem 0.5rem;
  background: #fff;
}
ul.latest {
  list-style: none;
  margin: 0;
  padding: 0;
}
ul.latest li {
  padding: 0 0 0.7rem;
}
ul.latest li a {
  color: #000;
  text-decoration: none;
  font-weight: 600;
}
ul.latest li a:hover {
  text-decoration: underline;
}
.latestDate {
  font-family: "Archivo", sans-serif;
  font-size: 0.72rem;
  color: var(--cdc-muted);
  margin-bottom: 0.15rem;
}

/* Buttons */
.btn,
a.button,
.button {
  display: inline-block;
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--cdc-blue);
  background: var(--cdc-blue);
  color: #fff !important;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.3;
}
a.button.more,
.button.more {
  float: right;
  margin: 0.35rem 0 1.15rem;
  background: transparent;
  color: var(--cdc-blue) !important;
}
a.button.more:hover {
  background: var(--cdc-blue);
  color: #fff !important;
}

/* Insight commentaries */
ul.commentaries {
  list-style: none;
  margin: 0;
  padding: 0;
}
ul.commentaries li {
  position: relative;
  padding-bottom: 1.35rem;
  margin-bottom: 0.35rem;
}
ul.commentaries li::after {
  content: "";
  position: absolute;
  left: 10%;
  bottom: 0.25rem;
  width: 80%;
  border-bottom: 2px solid #e6e6e6;
}
ul.commentaries .title {
  font-weight: 700;
  text-align: left;
}
ul.commentaries .title a {
  color: #000;
  text-decoration: none;
}
ul.commentaries .author {
  font-style: italic;
  color: #555;
  padding: 0.25rem 0;
  font-size: 0.92rem;
}

/* Asia / Europe side lists */
.latest.iag h4 {
  font-family: "Archivo", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0.5rem 0 0.75rem;
}
.wp_rss_retriever_list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.wp_rss_retriever_item {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--cdc-rule);
}
.wp_rss_retriever_title {
  color: #000;
  text-decoration: none;
  font-weight: 600;
}

/* Single article */
.back-link {
  display: inline-flex;
  align-items: center;
  font-family: "Archivo", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cdc-blue) !important;
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid var(--cdc-blue);
  border-radius: 999px;
  margin: 0.75rem 0 1rem;
}
.back-link:hover {
  background: var(--cdc-blue);
  color: #fff !important;
}
.single-title,
h1.entry-title.single-title {
  font-family: "Archivo", sans-serif !important;
  font-size: 1.55rem !important;
  font-weight: 700 !important;
  line-height: 1.25;
  margin: 0.35rem 0 0.5rem;
  text-align: left !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  border: 0 !important;
  padding: 0 !important;
  color: #000;
}
.byline.date {
  color: #777;
  font-size: 0.9rem;
  margin: 0 0 0.85rem;
}
.ahFull {
  margin: 0.75rem 0 1rem;
}
.ahFull img {
  border-radius: 8px;
  width: 100%;
  display: block;
}
.ahFull .wp-caption-text,
figcaption.wp-caption-text {
  text-align: right;
  font-size: 0.75rem;
  color: #999;
  font-style: italic;
  margin-top: 0.35rem;
}
.entry-content {
  font-size: 1.05rem;
  line-height: 1.7;
}
.entry-content p {
  margin: 0 0 1rem;
}
.entry-content h3 {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  margin: 1.4rem 0 0.7rem;
}
.page-title {
  font-family: "Archivo", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 3px solid var(--cdc-blue);
  display: inline-block;
  margin: 0.5rem 0 1.15rem;
  padding-bottom: 0.15rem;
}
.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  margin: 0.75rem 0 1rem;
}
.tags a {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border: 1px solid #ddd;
  border-radius: 999px;
  font-size: 0.78rem;
  color: #444;
  text-decoration: none;
}
.box-standout {
  border: 3px solid var(--cdc-blue);
  border-radius: 15px;
  padding: 0.85rem;
  margin: 1.25rem 0;
}
.box-standout-sm {
  border: 2px solid var(--cdc-blue);
  border-radius: 10px;
  padding: 0.5em;
  box-shadow: rgba(0, 0, 0, 0.04) 0 1px 2px, rgba(0, 0, 0, 0.08) 0 4px 12px;
}

/* ========== Industry Events archive ========== */
.cdc-events-archive {
  --cdcev-accent: var(--cdc-blue, #0066d6);
  --cdcev-tint: #e6f1fb;
  --cdcev-row-hover: #f7f9fc;
  --cdcev-shadow: rgba(0, 102, 214, 0.35);
  --cdcev-featured: #f0a830;
  --cdcev-featured-ink: #1a1208;
  --cdcev-featured-tint: rgba(240, 168, 48, 0.1);
  color: #1a1a1a;
}
.cdc-events-archive .cea-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 22px 0;
  margin-bottom: 4px;
}
.cdc-events-archive .cea-hero .page-title { margin: 0; }
.cdc-events-archive .cea-hero-lede {
  color: #6b7280;
  font-size: 15px;
  margin: 6px 0 0;
}
.cdc-events-archive .cea-count-pill {
  border: 2px solid var(--cdcev-accent);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cdcev-accent);
  background: #fff;
  white-space: nowrap;
}
.cdc-events-archive .cea-highlighted-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0 16px;
}
.cdc-events-archive .cea-highlighted-head h2 {
  font-size: 1.1em;
  font-weight: 700;
  margin: 0;
  color: #1a1a1a;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cdc-events-archive .cea-star { color: var(--cdcev-accent); }
.cdc-events-archive .cea-rule {
  flex: 1 1 0%;
  height: 1px;
  background: #e5e7eb;
}
.cdc-events-archive .cea-featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 36px;
}
.cdc-events-archive .cea-feat-card {
  padding: 0;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: default;
  pointer-events: none;
}
.cdc-events-archive .cea-feat-img {
  position: relative;
  aspect-ratio: 5 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}
.cdc-events-archive .cea-feat-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  box-sizing: border-box;
  display: block;
}
.cdc-events-archive .cea-feat-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--cdcev-accent);
  font-size: 16px;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.cdc-events-archive .cea-feat-date {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  background: rgba(255, 255, 255, 0.95);
  color: var(--cdcev-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
}
.cdc-events-archive .cea-feat-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 0%;
}
.cdc-events-archive .cea-feat-name {
  font-size: 1.1em;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.25;
}
.cdc-events-archive .cea-feat-loc {
  font-size: 13px;
  color: #6b7280;
}
.cdc-events-archive .cea-month-group { margin-bottom: 14px; }
.cdc-events-archive .cea-month-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0 8px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--cdcev-accent);
}
.cdc-events-archive .cea-month-head h3 {
  font-size: 1.4em;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  letter-spacing: -0.005em;
}
.cdc-events-archive .cea-month-year {
  color: #6b7280;
  font-weight: 400;
}
.cdc-events-archive .cea-month-count {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cdcev-accent);
  background: var(--cdcev-tint);
  padding: 4px 10px;
  border-radius: 999px;
  margin-left: auto;
}
.cdc-events-archive .cea-month-empty {
  margin: 0;
  padding: 10px 8px;
  color: #9ca3af;
  font-style: italic;
  font-size: 0.95em;
  border-bottom: 1px dashed #e5e7eb;
}
.cdc-events-archive .cea-event-list {
  display: flex;
  flex-direction: column;
}
.cdc-events-archive .cea-event-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px 8px;
  border-bottom: 1px solid #e5e7eb;
  text-decoration: none;
  color: inherit;
  cursor: default;
  pointer-events: none;
}
.cdc-events-archive .cea-event-row:last-child { border-bottom: 0; }
.cdc-events-archive .cea-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid #e5e7eb;
}
.cdc-events-archive .cea-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  box-sizing: border-box;
  display: block;
}
.cdc-events-archive .cea-date-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  background: var(--cdcev-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  font-style: italic;
  padding: 4px 10px;
  border-radius: 4px;
}
.cdc-events-archive .cea-event-row.is-featured {
  background: linear-gradient(90deg, var(--cdcev-featured-tint) 0%, transparent 60%);
}
.cdc-events-archive .cea-event-row.is-featured .cea-thumb {
  box-shadow: 0 0 0 2px var(--cdcev-featured);
}
.cdc-events-archive .cea-event-row.is-featured .cea-date-pill {
  background: var(--cdcev-featured);
  color: var(--cdcev-featured-ink);
}
.cdc-events-archive .cea-featured-tag {
  display: inline-block;
  background: var(--cdcev-featured);
  color: var(--cdcev-featured-ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  margin-right: 10px;
  vertical-align: middle;
  transform: translateY(-2px);
}
.cdc-events-archive .cea-event-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cdc-events-archive .cea-event-name {
  font-size: 1.2em;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.25;
  margin: 0;
}
.cdc-events-archive .cea-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.cdc-events-archive .cea-meta-line.tags ul { display: contents; list-style: none; margin: 0; padding: 0; }
.cdc-events-archive .cea-meta-line.tags ul li { margin: 0; }
.cdc-events-archive ul.post-categories,
.cdc-events-archive ul.post-tags,
.cdc-events-archive ul.locations {
  list-style: none;
  margin: 0;
  padding: 0;
  display: contents;
}
.cdc-events-archive ul.post-categories li,
.cdc-events-archive ul.post-tags li,
.cdc-events-archive ul.locations li {
  display: inline-block;
  margin: 2px 4px 2px 0;
  padding: 0.2em 0.55em;
  border-radius: 999px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
}
.cdc-events-archive ul.post-categories li { background: #004b9e; }
.cdc-events-archive ul.post-tags li { background: #097dff; }
.cdc-events-archive ul.locations li { background: #00c086; }

@media (min-width: 981px) {
  .cdc-events-archive .cea-featured-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .cdc-events-archive .cea-event-row {
    grid-template-columns: 230px 1fr;
    gap: 24px;
  }
  .cdc-events-archive .cea-thumb {
    aspect-ratio: 5 / 3;
  }
  .cdc-events-archive .cea-event-name {
    font-size: 1.3em;
  }
}
@media (max-width: 980px) {
  .cdc-events-archive .cea-hero {
    flex-direction: column;
    align-items: flex-start;
  }
}
.authorIm-lg img {
  width: 72px;
  height: 72px;
}

/* Footer */
.site-footer {
  margin-top: 1.5rem;
  padding: 1.5rem 0.85rem 1.25rem;
  border-top: 1px solid #e6e6e6;
}
.footer-grid {
  display: grid;
  gap: 1.5rem;
}
.site-footer h3 {
  font-family: "Archivo", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.65rem;
}
.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-menu a {
  color: #333;
  text-decoration: none;
  display: block;
  padding: 0.3rem 0;
}
.footer-search input[type="search"] {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}
.footer-copy {
  text-align: center;
  color: #777;
  font-size: 0.85rem;
  margin-top: 1.5rem;
}
.friend-links {
  margin: 1.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}
.friend-links-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin: 0.5rem 0 0;
  padding: 0;
}
.friend-links-list a {
  color: #444;
  text-decoration: none;
  font-size: 0.9rem;
}

/* About / Team page */
.about-team .page-title {
  margin-bottom: 1rem;
}
.about-intro {
  margin-bottom: 1.75rem;
}
.team-section {
  margin: 1.75rem 0 2rem;
}
.team-section .section-title {
  font-family: "Archivo", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 3px solid var(--cdc-blue);
  display: inline-block;
  margin: 0 0 1.25rem;
  padding-bottom: 0.15rem;
}
.team-member {
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #eee;
}
.team-member-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.65rem;
}
.team-avatar img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.team-meta {
  border-left: 3px solid var(--cdc-blue);
  padding-left: 0.75rem;
  min-width: 0;
}
.team-name {
  font-family: "Archivo", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.2rem;
  color: #000;
}
.team-role {
  margin: 0;
  color: #555;
  font-size: 0.95rem;
}
.team-contact {
  margin: 0.35rem 0 0;
}
.team-contact a {
  color: var(--cdc-blue);
  text-decoration: none;
  font-size: 1.1rem;
}
.team-bio p {
  margin: 0;
  line-height: 1.65;
  color: #333;
}

/* Apps */
.app-card {
  margin-bottom: 1.1rem;
  padding: 0.65rem 0.25rem;
}
.app-download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

/* ========== Tablet ========== */
@media screen and (min-width: 640px) {
  .hide-for-medium {
    display: none !important;
  }
  .show-for-medium {
    display: block !important;
  }
  .site-header-bar {
    display: flex;
    justify-content: space-between;
    gap: 1.25rem;
    min-height: 70px;
    padding: 0.5rem 1rem 0.5rem 1.25rem;
    align-items: center;
  }
  .nav-toggle {
    display: none !important;
  }
  .site-logo {
    justify-content: flex-start;
    flex: 0 0 auto;
    margin-right: auto;
  }
  .site-logo img {
    width: 260px;
    max-height: 32px;
  }
  /* Marker 1: push nav to the far right, away from logo */
  .site-nav-desktop {
    display: block !important;
    flex: 0 1 auto;
    min-width: 0;
    margin-left: auto;
    padding-right: 0;
  }
  /* Top-level nav only — NEVER apply flex to .sub-menu */
  .desktop-menu.cdc-primary-nav,
  .site-nav-desktop > ul.cdc-primary-nav,
  .site-nav-desktop > ul.menu {
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0 1.15rem;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: visible;
  }
  .site-nav-desktop > ul > li {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    position: relative;
  }
  .site-nav-desktop > ul > li > a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #333;
    text-decoration: none;
    font-family: "Archivo", sans-serif;
    font-size: 0.95rem;
    padding: 0.45rem 0;
    white-space: nowrap;
    border-bottom: 4px solid transparent;
  }
  .nav-ico {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.75;
  }
  .nav-caret {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 0.2rem;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--cdc-blue);
    vertical-align: middle;
  }
  .site-nav-desktop > ul > li.current-menu-item > a,
  .site-nav-desktop > ul > li.active > a {
    font-weight: 700;
    border-bottom-color: #333;
  }

  /*
   * Newsroom hover dropdown — vertical panel under the item (screenshot 2)
   * NOT a full-width horizontal strip.
   */
  .site-header,
  .site-header-bar,
  .site-nav-desktop {
    overflow: visible !important;
  }
  .site-nav-desktop .menu-item-has-children {
    position: relative;
  }
  .site-nav-desktop ul.sub-menu {
    display: none !important;
    position: absolute !important;
    top: calc(100% + 2px);
    left: 0;
    right: auto;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    width: max-content;
    min-width: 240px;
    margin: 0;
    padding: 0.25rem 0;
    list-style: none;
    background: #fff;
    border: 2px solid var(--cdc-blue);
    border-radius: 0 16px 0 0;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
    z-index: 200;
  }
  .site-nav-desktop .menu-item-has-children:hover > ul.sub-menu,
  .site-nav-desktop .menu-item-has-children.is-open > ul.sub-menu,
  .site-nav-desktop .menu-item-has-children:focus-within > ul.sub-menu {
    display: block !important;
  }
  .site-nav-desktop ul.sub-menu > li {
    display: block !important;
    width: 100%;
    margin: 0;
    padding: 0;
    float: none !important;
  }
  .site-nav-desktop ul.sub-menu > li > a {
    display: block !important;
    width: 100%;
    padding: 0.65rem 1.1rem;
    color: #222;
    font-family: "Archivo", sans-serif;
    font-size: 0.92rem;
    font-weight: 400;
    text-decoration: none;
    border: 0 !important;
    border-bottom: none !important;
    white-space: nowrap;
    box-sizing: border-box;
  }
  .site-nav-desktop ul.sub-menu > li > a:hover {
    background: #e6f1fb;
    color: var(--cdc-blue);
  }
  .site-main {
    padding: 0.85rem 0.75rem 2.5rem 1.25rem;
  }

  /* 8 / 4 columns — leave right rail for ads */
  .main-col.medium-8,
  .cell.medium-8 {
    width: 66.666% !important;
    max-width: 66.666%;
    flex: 0 0 66.666%;
  }
  .sidebar.medium-4,
  .cell.medium-4.sidebar {
    display: block !important;
    width: 33.333% !important;
    max-width: 33.333%;
    flex: 0 0 33.333%;
    padding: 1rem 1rem 2rem 0.5rem;
  }

  .medium-4 { width: 33.333%; }
  .medium-5 { width: 41.666%; }
  .medium-6 { width: 50%; }
  .medium-7 { width: 58.333%; }
  .medium-8 { width: 66.666%; }

  /* Marker 2: Editor's Picks — two posts side by side (beat .grid-x > width:100%) */
  .grid-x.features {
    display: flex;
    flex-wrap: wrap;
  }
  .grid-x > .item.medium-6,
  .grid-x.features > .item.medium-6,
  .features .item.medium-6 {
    width: 50% !important;
    max-width: 50%;
    flex: 0 0 50%;
  }
  .features.update > .item.large-4 {
    width: 33.333% !important;
    max-width: 33.333%;
    flex: 0 0 33.333%;
  }
  .features.update > .item.medium-5 {
    width: 41.666% !important;
    flex: 0 0 41.666%;
  }
  .features.update > .item.medium-7,
  .features .latest.medium-7 {
    width: 58.333% !important;
    flex: 0 0 58.333%;
  }
  .feature-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
  }
  .feature-row-image {
    width: 33.333%;
    margin-bottom: 0;
  }
  .feature-row-text {
    width: 66.666%;
    padding-left: 0.75rem !important;
  }
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .single-title,
  h1.entry-title.single-title {
    font-size: 2rem !important;
  }
}

/* ========== Desktop ========== */
@media screen and (min-width: 1024px) {
  .show-for-large {
    display: block !important;
  }
  .large-4 { width: 33.333%; }
  .large-8 { width: 66.666%; }
  .main-col.large-8 {
    width: 66.666% !important;
    flex: 0 0 66.666%;
  }
  .sidebar.large-4 {
    width: 33.333% !important;
    flex: 0 0 33.333%;
    padding: 1rem 1.25rem 2.5rem 0.75rem;
  }
  .site-main {
    padding: 1rem 0.75rem 3rem 1.5rem;
  }
  .site-header-bar {
    padding: 0.5rem 1.25rem;
  }
  .site-nav-desktop .menu {
    gap: 0 1.35rem;
  }
  .site-main h2.frontpage,
  .home h2.frontpage {
    font-size: 1.6rem !important;
  }
}
