.community-updates {
  max-height: 465px;      /* adjust to taste */
  overflow-y: auto;
  padding-right: 0.5rem;  /* space for scrollbar */
}
.table-clean {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 0.95em;
}

/* Header cells */
.table-clean th {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 2px solid #ddd;
  font-weight: bold; /* header bold */
}

/* Body cells */
.table-clean td {
  padding: 8px 10px;
  border-bottom: 1px solid #e6e6e6; /* light grey lines */
}

/* Striped rows */
.table-clean tbody tr:nth-child(even) {
  background-color: #f7f7f7; /* light grey stripe */
}

/* Center Tockify calendar and use full width */
.calendar-wrapper {
  display: flex;
  justify-content: center; /* centers content horizontally */
  width: 100%; /* max available width */
}

.calendar-wrapper .tockify-calendar,
.calendar-wrapper iframe {
  max-width: 100%; /* do not exceed container */
  width: 100%;     /* take full width */
  margin: 0 auto;  /* center if smaller than container */
}
/* Fixed tile dimensions */
.tile-box {
    width: 250px;            /* tile width */
    height: 300px;           /* tile height */
    border: 1px solid #ccc;  /* light border */
    border-radius: 10px;     /* rounded corners */
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    margin: 10px;
    text-decoration: none; /* remove underline */
    color: inherit;        /* keep text color */
}

.tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  justify-content: center;   /* center the whole columns area */
  justify-items: center;     /* center items inside each grid cell */
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;         /* optional: limits how wide the grid can grow */
  padding-left: 10px;        /* small page padding so tiles don't touch edges on mobile */
  padding-right: 10px;
}
.tile-box {
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.tile-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
    transition: 0.2s ease-in-out;
}

/* Wrapper that guarantees equal space */
.tile-image {
    width: 100%;
    height: 140px;                 /* fixed area for all logos */
    display: flex;
    align-items: center;           /* vertical centering */
    justify-content: center;       /* horizontal centering */
    padding: 10px;
}

/* Logo itself */
.tile-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;           /* never distort logos */
}

.tile-text {
	    text-decoration: none; /* remove underline */
    color: inherit;        /* keep text color */
}

@media (max-width: 768px) {

  /* ==================================================
     FULL-WIDTH NAV CONTAINERS
     ================================================== */
  .wp-block-navigation__responsive-container,
  .wp-block-navigation__responsive-container-content,
  .wp-block-navigation__container {
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 24px !important;
  }

  /* ==================================================
     MENU ITEM BASE (ALL LEVELS)
     ================================================== */
  .wp-block-navigation-item {
    position: relative !important;
    width: 100% !important;
    text-align: left !important;
  }

  /* ==================================================
     LINKS (MAIN + SUBMENU — UNIFORM SIZE)
     ================================================== */
  .wp-block-navigation-item > a {
    display: block !important;
    width: 100% !important;
    font-size: 1.25rem !important;   /* 🔑 same everywhere */
    padding: 14px 72px 14px 24px !important;
    text-align: left !important;
  }

  /* MAIN MENU: ALL CAPS */
  .wp-block-navigation__container
  > .wp-block-navigation-item
  > a {
    text-transform: uppercase !important;
    letter-spacing: 0.04em;
  }

  /* SUBMENUS: NORMAL CASING */
  .wp-block-navigation__submenu-container a {
    text-transform: none !important;
    letter-spacing: normal;
  }

  /* Disable full-row click ONLY for items with children */
  .wp-block-navigation-item.has-child > a {
    pointer-events: none !important;
  }

  /* Enable clicks only on text */
  .wp-block-navigation-item.has-child
  > a
  > .wp-block-navigation-item__label {
    pointer-events: auto !important;
    display: inline-block;
  }

  /* ==================================================
     SUBMENU ARROWS — FIXED POSITION (ALL LEVELS)
     ================================================== */
  .wp-block-navigation-item.has-child
  > button.wp-block-navigation__submenu-icon {
    position: absolute !important;
    top: 12px !important;
    right: 16px !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(0,0,0,0.06) !important;
    border: none !important;
    border-radius: 999px !important;
    cursor: pointer !important;
    z-index: 5 !important;
  }

  .wp-block-navigation__submenu-icon svg {
    width: 20px !important;
    height: 20px !important;
    display: block !important;
  }

  .wp-block-navigation-item.has-child
  > button[aria-expanded="true"] svg {
    transform: rotate(180deg);
  }

  /* ==================================================
     SUBMENU VISIBILITY
     ================================================== */
  .wp-block-navigation__submenu-container {
    display: none !important;
    width: 100% !important;
    position: static !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .wp-block-navigation-item.has-child
  > button[aria-expanded="true"]
  + .wp-block-navigation__submenu-container {
    display: block !important;
  }

  /* ==================================================
     CONTROLLED INDENT (CONSISTENT FOR ALL DEPTHS)
     ================================================== */
  .wp-block-navigation__submenu-container
  > .wp-block-navigation-item {
    padding-left: 0px !important;
  }

  .wp-block-navigation__submenu-container
  .wp-block-navigation__submenu-container
  > .wp-block-navigation-item {
    padding-left: 0px !important;
  }

  /* ==================================================
     DIVIDER LINES (TOP LEVEL ONLY)
     ================================================== */
  .wp-block-navigation__container
  > .wp-block-navigation-item {
    border-bottom: 1px solid rgba(0,0,0,0.2) !important;
  }

  .wp-block-navigation__container
  > .wp-block-navigation-item:last-child {
    border-bottom: none !important;
  }
}
@media (max-width: 768px) {

  /* ==================================================
     LEVEL 2 — GREY BACKGROUND ONLY
     ================================================== */
  .wp-block-navigation__container
  > .wp-block-navigation-item
  > .wp-block-navigation__submenu-container
  > .wp-block-navigation-item
  > a {
    background-color: rgba(0, 0, 0, 0.06);
  }

  /* ==================================================
     REMOVE BACKGROUND FROM LEVEL 3+
     ================================================== */
  .wp-block-navigation__submenu-container
  .wp-block-navigation__submenu-container
  > .wp-block-navigation-item > a {
    background-color: transparent !important;
  }

  /* ==================================================
     LEVEL 4 — LIGHTER GREY TEXT
     ================================================== */
  .wp-block-navigation__submenu-container
  .wp-block-navigation__submenu-container
  .wp-block-navigation__submenu-container
  > .wp-block-navigation-item > a {
    color: rgba(0, 0, 0, 0.5) !important;
  }

  /* ==================================================
     LEVEL 5 — SAME COLOR + ITALIC
     ================================================== */
  .wp-block-navigation__submenu-container
  .wp-block-navigation__submenu-container
  .wp-block-navigation__submenu-container
  .wp-block-navigation__submenu-container
  > .wp-block-navigation-item > a {
    color: rgba(0, 0, 0, 0.5) !important;
    font-style: italic;
  }

}

@media (max-width: 768px) {

  /* Increase size of the MENU label */
  .wp-block-navigation__responsive-container-open {
    font-size: 1.25rem !important; /* adjust if needed */
    font-weight: 600;
  }

  /* If the theme wraps the text in a span */
  .wp-block-navigation__responsive-container-open span {
    font-size: 1.25rem !important;
  }

}

@media (max-width: 768px) {

  /* Style the menu toggle button */
  .wp-block-navigation__responsive-container-open {
    display: flex !important;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem !important;
    font-weight: 600;
  }

  /* Add hamburger icon */
  .wp-block-navigation__responsive-container-open::before {
    content: "☰";
    font-size: 1.4rem;
    line-height: 1;
    display: inline-block;
  }

}

.grid-table {
  display: inline-grid;
  grid-template-columns: 40% 45% 15%;
	 width: 95%;
}
.grid-table > div:nth-child(3n) {
  text-align: right;
}

.tata-table {
  display: inline-grid;
  text-align: center;
  grid-template-columns: 40% 12% 12% 12% 12% 12%;
	 width: 95%;
}
.tata-table > div:nth-child(6n+1) {
  text-align: left;
}

/* Style of accordeon header */
/* Hide the plugin's default + / x icon */
.wp-block-accordion-heading__toggle-icon {
    display: none !important;
}

/* Make room for arrow */
.wp-block-accordion-heading__toggle {
    position: relative;
    padding-left: 1.6em;
}

/* Add arrow */
.wp-block-accordion-heading__toggle::before {
    content: "▶";
    position: absolute;
    left: 0.5em;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.25s ease;
    font-size: 0.9em;
    width: 1em;
    text-align: center;
}


/* Rotate arrow when accordion is open */
.wp-block-accordion-heading__toggle[aria-expanded="true"]::before {
    transform: translateY(-50%) rotate(90deg);
}

/* Make accordion headers NOT look like H3 */
.wp-block-accordion-heading {
    font-size: 1rem;        /* normal paragraph size */
    font-weight: 400;      /* normal weight */
    line-height: 1.4;
    margin: 0;             /* remove H3 spacing */
}

/* Also normalize the button inside */
.wp-block-accordion-heading__toggle {
    font: inherit;        /* inherit normal text styling */
    text-align: left;
}
/* Prevent hover/focus from shifting the header */
.wp-block-accordion-heading__toggle,
.wp-block-accordion-heading__toggle:hover,
.wp-block-accordion-heading__toggle:focus {
    padding-left: 1.6em !important;
}
/* Make sure the arrow area is reserved */
.wp-block-accordion-heading__toggle::before {
    width: 1em;
    text-align: center;
}

/* Base table styling (Bootstrap-like) */
.tatasteel-embed table {
  border-collapse: collapse;
  width: 100%;
  max-width: 100%;
  margin-bottom: 1rem;
  font-size: 14px;
}

.tatasteel-embed th,
.tatasteel-embed td {
  padding: 8px 12px;
  vertical-align: middle;
  border-top: 1px solid #dee2e6;
  white-space: nowrap;
}

/* Header row */
.tatasteel-embed thead th,
.tatasteel-embed table tr:first-child th {
  border-bottom: 2px solid #dee2e6;
  font-weight: 600;
  text-align: left;
}

/* Remove top border on first row */
.tatasteel-embed table tr:first-child th,
.tatasteel-embed table tr:first-child td {
  border-top: none;
}

/* Row striping */
.tatasteel-embed table tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Numeric columns centered */
.tatasteel-embed td:nth-child(n+3),
.tatasteel-embed th:nth-child(n+3) {
  text-align: center;
}

/* Player name left-aligned */
.tatasteel-embed td:nth-child(2),
.tatasteel-embed th:nth-child(2) {
  text-align: left;
}
.tatasteel-embed .table-auto {
  width: auto;
}

.tatasteel-embed .ctw { background-color: #CBFFCF; width: 11px; }
.tatasteel-embed .ctn { background-color: white; width: 11px; }
.tatasteel-embed .ctl { background-color: #BCBCBC; width: 11px; }
.tatasteel-embed .ctb { background-color: #666; }
.tatasteel-embed .cts {
  text-align: center;
  width: 32px;
  height: 32px;
}

/* Rank medals */
.rank-gold {
    font-weight: bold;
    color: #b8860b;
}

.rank-silver {
    font-weight: bold;
    color: #9e9e9e;
}

.rank-bronze {
    font-weight: bold;
    color: #cd7f32;
}

.no-toggle-icon .wp-block-accordion-heading__toggle-icon {
    display: none;
}

/* Allow multi-column post grids */
/* Break out of layout constraints ONLY for this Query Loop */
.custom-post-grid {
    max-width: none !important;
    width: 100% !important;
}

.custom-post-grid,
.custom-post-grid * {
    box-sizing: border-box;
}

.custom-post-grid .is-layout-constrained {
    max-width: none !important;
}