/* ============================================================
   SBIPL Ver2 — Light Sharp Corporate Theme
   Zero border-radius · No gradients · Compact · Professional
   ============================================================ */

/* --- Global: Kill all roundness --- */
*,
*::before,
*::after {
  border-radius: 0 !important;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  background: var(--wp--preset--color--white);
}

/* --- Header --- */
.sbipl-header {
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  background: var(--wp--preset--color--white);
}

/* --- Header vertical alignment fix --- */
.sbipl-header.is-layout-flow {
  gap: 0 !important;
}

.sbipl-header.is-layout-flow > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.sbipl-header .wp-block-group-is-layout-flex,
.sbipl-header .is-layout-flex {
  align-items: center;
}

.sbipl-header .wp-block-site-title {
  margin: 0;
  line-height: 1;
}

.sbipl-header .wp-block-site-title a {
  color: var(--wp--preset--color--white) !important;
  line-height: 1;
}

.sbipl-header .wp-block-site-title a:hover {
  color: var(--wp--preset--color--white) !important;
  text-decoration: none !important;
}

.sbipl-header .wp-block-navigation {
  margin: 0;
  align-items: center;
}

.sbipl-header p {
  margin-top: 0;
  margin-bottom: 0;
}

/* Nav bar area — white text */
.sbipl-header-nav {
  position: relative;
}

.sbipl-topbar {
  overflow: hidden;
}

.sbipl-topbar__marquee {
  overflow: hidden;
}

.sbipl-topbar__track {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  width: max-content;
  min-width: 100%;
  white-space: nowrap;
  animation: sbipl-topbar-marquee 22s linear infinite;
  will-change: transform;
}

.sbipl-topbar__item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  color: var(--wp--preset--color--mid-gray);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.sbipl-topbar__item::after {
  content: "\00b7";
  margin-left: clamp(1rem, 2vw, 2rem);
  color: var(--wp--preset--color--border);
}

.sbipl-topbar__item:last-child::after {
  content: "";
  margin-left: 0;
}

@keyframes sbipl-topbar-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* --- Navigation --- */
.sbipl-nav .wp-block-navigation-item__content {
  color: rgba(255,255,255,0.85) !important;
  padding: 0.25rem 0;
  position: relative;
  transition: color 0.15s ease;
}

.sbipl-nav .wp-block-navigation-item__content:hover {
  color: var(--wp--preset--color--white) !important;
}

.sbipl-nav .wp-block-navigation-item__content::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--wp--preset--color--white);
  transition: width 0.2s ease;
}

.sbipl-nav .wp-block-navigation-item__content:hover::after,
.sbipl-nav .current-menu-item > .wp-block-navigation-item__content::after {
  width: 100%;
}

/* Submenu arrow/caret — white */
.sbipl-nav .wp-block-navigation__submenu-icon {
  color: rgba(255,255,255,0.6);
}

/* Submenu */
.sbipl-nav .wp-block-navigation__submenu-container {
  background: var(--wp--preset--color--white) !important;
  border: 1px solid var(--wp--preset--color--border) !important;
  border-top: 2px solid var(--wp--preset--color--primary) !important;
  padding: 0.5rem 0 !important;
  min-width: 220px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.sbipl-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  padding: 0.4rem 1.25rem;
  font-size: 0.8rem;
  display: block;
  font-weight: 400;
  color: var(--wp--preset--color--dark-gray) !important;
}

.sbipl-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
  background: var(--wp--preset--color--off-white);
  color: var(--wp--preset--color--accent) !important;
}

.sbipl-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content::after {
  display: none;
}

/* Disable WP's built-in mobile nav — we use our own overlay */
.wp-block-navigation__responsive-container-open {
  display: none !important;
}

.wp-block-navigation__responsive-container {
  display: block !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  visibility: visible !important;
  opacity: 1 !important;
  background: none !important;
  padding: 0 !important;
}

.wp-block-navigation__responsive-container .wp-block-navigation__responsive-container-content {
  display: flex !important;
  flex-direction: row !important;
  gap: inherit;
  align-items: center;
}

.wp-block-navigation__responsive-close,
.wp-block-navigation__responsive-dialog {
  display: contents !important;
}

/* --- Section Label (reusable pattern) --- */
.sbipl-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wp--preset--color--accent);
  margin-bottom: 0.5rem;
}

/* --- Image Placeholder --- */
.sbipl-img-placeholder {
  background: var(--wp--preset--color--light-gray);
  border: 1px dashed var(--wp--preset--color--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wp--preset--color--mid-gray);
  font-size: 0.8rem;
  font-weight: 500;
  min-height: 200px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sbipl-img-placeholder--hero {
  min-height: 400px;
}

.sbipl-img-placeholder--banner {
  min-height: 280px;
}

.sbipl-img-placeholder--card {
  min-height: 180px;
}

.sbipl-icon-card {
  position: relative;
  overflow: hidden;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 1.25rem;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--wp--preset--color--white);
  background:
    radial-gradient(circle at 50% 30%, rgba(255,255,255,0.14), transparent 34%),
    linear-gradient(145deg, #0b4f82 0%, #08365d 100%);
  border: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.sbipl-icon-card::after {
  content: "";
  position: absolute;
  inset: auto -18% -18% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.10), transparent 68%);
  pointer-events: none;
}

.sbipl-icon-card i,
.sbipl-icon-card .svg-inline--fa {
  width: 3.25rem;
  height: 3.25rem;
  font-size: 3.25rem;
  line-height: 1;
  color: var(--wp--preset--color--white);
  z-index: 1;
}

.sbipl-icon-card span {
  position: relative;
  z-index: 1;
  color: var(--wp--preset--color--white);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.sbipl-img-placeholder--team {
  min-height: 240px;
  width: 100%;
}

/* --- Cards --- */
.sbipl-card {
  border: 1px solid var(--wp--preset--color--border);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  background: var(--wp--preset--color--white);
}

.sbipl-card:hover {
  border-color: var(--wp--preset--color--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.sbipl-investor-quick-access .sbipl-card {
  text-align: left;
}

.sbipl-investor-quick-access .sbipl-card h4,
.sbipl-investor-quick-access .sbipl-card p,
.sbipl-investor-quick-access .sbipl-card a {
  text-align: left;
}

.sbipl-investor-quick-access .sbipl-card p:last-child {
  margin-bottom: 0;
}

/* --- Section Feeds --- */
.sbipl-section-feed {
  margin-top: 2.5rem;
}

.sbipl-section-feed.is-loading {
  opacity: 0.72;
  pointer-events: none;
}

.sbipl-section-feed__intro {
  margin-bottom: 1.25rem;
}

.sbipl-section-feed__heading-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
}

.sbipl-section-feed__heading {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--wp--preset--color--text);
}

.sbipl-section-feed__summary {
  margin: 0.4rem 0 0;
  max-width: 62ch;
  font-size: 0.9rem;
  color: var(--wp--preset--color--mid-gray);
}

.sbipl-date-filter {
  border: 1px solid var(--wp--preset--color--border);
  background: var(--wp--preset--color--off-white);
  padding: 0.55rem 0.7rem;
  margin-bottom: 0.85rem;
}

.sbipl-date-filter__form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: flex-end;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-start;
}

.sbipl-date-filter__field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1 1 0;
  min-width: 0;
}

.sbipl-date-filter__label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--wp--preset--color--primary);
}

.sbipl-date-filter__select {
  width: 100%;
  min-height: 34px;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
  border: 1px solid var(--wp--preset--color--border);
  background: var(--wp--preset--color--white);
  color: var(--wp--preset--color--text);
  font-size: 0.85rem;
}

.sbipl-date-filter__submit {
  flex: 0 0 auto;
  min-height: 34px;
  width: 100%;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--wp--preset--color--primary);
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--white);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.sbipl-date-filter__form .sbipl-date-filter__field--year,
.sbipl-date-filter__form .sbipl-date-filter__field--month {
  flex: 1 1 calc(50% - 0.2rem);
}

.sbipl-date-filter__submit:hover {
  background: var(--wp--preset--color--accent);
  border-color: var(--wp--preset--color--accent);
}

.sbipl-section-feed__empty {
  border: 1px dashed var(--wp--preset--color--border);
  padding: 1.25rem;
  font-size: 0.9rem;
  color: var(--wp--preset--color--mid-gray);
  background: var(--wp--preset--color--white);
}

.sbipl-section-feed__archive-link,
.sbipl-section-feed__link {
  color: var(--wp--preset--color--accent) !important;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.sbipl-section-feed__archive-link:hover,
.sbipl-section-feed__link:hover {
  color: var(--wp--preset--color--primary) !important;
}

.sbipl-section-feed__items {
  display: grid;
  gap: 1rem;
}

.sbipl-section-feed--grid .sbipl-section-feed__items {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sbipl-section-feed--list .sbipl-section-feed__items,
.sbipl-section-feed--document .sbipl-section-feed__items,
.sbipl-section-feed--career .sbipl-section-feed__items,
.sbipl-section-feed--timeline .sbipl-section-feed__items {
  grid-template-columns: 1fr;
}

.sbipl-section-feed__item {
  border: 1px solid var(--wp--preset--color--border);
  background: var(--wp--preset--color--white);
}

.sbipl-section-feed__meta {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wp--preset--color--mid-gray);
}

.sbipl-section-feed__title {
  margin: 0.25rem 0 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--wp--preset--color--text);
}

.sbipl-section-feed__title a {
  color: inherit !important;
  text-decoration: none;
}

.sbipl-section-feed__title a:hover {
  color: var(--wp--preset--color--accent) !important;
}

.sbipl-section-feed__excerpt {
  margin: 0.65rem 0 0;
  font-size: 0.88rem;
  color: var(--wp--preset--color--dark-gray);
}

.sbipl-section-feed__grid-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.25rem;
  background:
    linear-gradient(180deg, rgba(11,79,130,0.03) 0%, rgba(11,79,130,0.00) 100%),
    var(--wp--preset--color--white);
}

.sbipl-section-feed__item--grid {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--wp--preset--color--border);
}

.sbipl-section-feed__grid-card .sbipl-section-feed__link,
.sbipl-section-feed__career-card .sbipl-section-feed__link,
.sbipl-section-feed__document-card .sbipl-section-feed__link {
  margin-top: auto;
}

.sbipl-section-feed__item--list,
.sbipl-section-feed__item--document {
  display: grid;
  gap: 0.85rem;
  align-items: start;
  padding: 1.1rem 1.15rem;
}

.sbipl-section-feed__item--list {
  grid-template-columns: 92px 1fr auto;
}

.sbipl-section-feed__item--list .sbipl-section-feed__list-date {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wp--preset--color--primary);
  padding-top: 0.15rem;
}

.sbipl-section-feed__item--document {
  grid-template-columns: 1fr auto;
}

.sbipl-section-feed__document-card,
.sbipl-section-feed__career-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.sbipl-section-feed__career-card {
  padding: 1.25rem;
  border-left: 4px solid var(--wp--preset--color--primary);
  background:
    linear-gradient(180deg, rgba(11,79,130,0.04) 0%, rgba(11,79,130,0.00) 100%),
    var(--wp--preset--color--white);
}

.sbipl-section-feed__item--timeline {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 1rem;
  padding: 1.1rem;
  align-items: start;
}

.sbipl-section-feed__timeline-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  min-height: 72px;
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--white);
  font-weight: 800;
}

.sbipl-section-feed__timeline-month {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sbipl-section-feed__timeline-day {
  font-size: 1.55rem;
  line-height: 1;
}

.sbipl-section-feed__body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.sbipl-section-feed__action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.sbipl-section-feed__item:hover {
  border-color: var(--wp--preset--color--accent);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

/* --- Stat Items --- */
.sbipl-stat {
  text-align: center;
  padding: 1.5rem 1rem;
  position: relative;
}

.sbipl-stat + .sbipl-stat {
  border-left: 1px solid var(--wp--preset--color--border);
}

.sbipl-stat-number {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--wp--preset--color--primary);
  line-height: 1;
}

.sbipl-stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wp--preset--color--mid-gray);
  margin-top: 0.5rem;
}

/* --- Tables --- */
.wp-block-table table {
  border-collapse: collapse;
  width: 100%;
  border: 1px solid var(--wp--preset--color--border);
}

.wp-block-table thead {
  background: var(--wp--preset--color--off-white);
}

.wp-block-table thead th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border: 1px solid var(--wp--preset--color--border);
  text-align: left;
  color: var(--wp--preset--color--text);
}

.wp-block-table tbody td {
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  border: 1px solid var(--wp--preset--color--border);
}

.wp-block-table tbody tr:hover {
  background: var(--wp--preset--color--off-white);
}

/* --- Buttons --- */
.wp-block-button__link,
.wp-element-button,
input[type="submit"],
button {
  border-radius: 0 !important;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.is-style-outline .wp-block-button__link {
  border: 1px solid var(--wp--preset--color--primary);
  color: var(--wp--preset--color--primary);
  background: transparent;
}

.is-style-outline .wp-block-button__link:hover {
  background: var(--wp--preset--color--primary) !important;
  color: var(--wp--preset--color--white) !important;
}

/* --- Forms --- */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="search"],
input[type="password"],
textarea,
select {
  border-radius: 0 !important;
  border: 1px solid var(--wp--preset--color--border);
  padding: 0.6rem 0.75rem;
  font-size: 0.875rem;
  font-family: var(--wp--preset--font-family--primary);
  transition: border-color 0.15s ease;
  background: var(--wp--preset--color--white);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--wp--preset--color--accent);
}

/* --- Footer logo (rounded exception) --- */
.sbipl-footer-logo {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 50% !important;
  flex-shrink: 0;
  border: 2px solid var(--wp--preset--color--border);
}

/* --- Footer --- */
.sbipl-footer-links {
  list-style: none !important;
}

.sbipl-footer-links li {
  list-style: none;
}

.sbipl-footer-links a {
  color: var(--wp--preset--color--dark-gray) !important;
  text-decoration: none;
  transition: color 0.15s ease;
}

.sbipl-footer-links a:hover {
  color: var(--wp--preset--color--accent) !important;
}

/* --- Page Banner (light) --- */
.sbipl-page-hero {
  border-bottom: 3px solid var(--wp--preset--color--primary);
  position: relative;
}

/* --- Separator --- */
.wp-block-separator {
  border-radius: 0 !important;
  opacity: 1;
}

/* --- Pagination --- */
.wp-block-query-pagination-numbers .page-numbers {
  border-radius: 0 !important;
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
  border: 1px solid var(--wp--preset--color--border);
  transition: all 0.15s ease;
  color: var(--wp--preset--color--dark-gray);
  text-decoration: none;
}

.wp-block-query-pagination-numbers .page-numbers.current,
.wp-block-query-pagination-numbers .page-numbers:hover {
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--white);
  border-color: var(--wp--preset--color--primary);
}

/* --- Utility images --- */
img {
  border-radius: 0 !important;
}

.wp-block-image img,
.wp-block-cover,
.wp-block-media-text,
.wp-block-gallery figure,
.wp-block-tag-cloud a,
.wp-block-search__input,
.wp-block-search__button {
  border-radius: 0 !important;
}

/* --- Selection --- */
::selection {
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--white);
}

/* --- Hamburger Button --- */
.sbipl-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;
  width: 30px;
  height: 30px;
  padding: 5px;
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 101;
  flex-shrink: 0;
  border-radius: 0 !important;
}

.sbipl-hamburger:hover {
  border-color: rgba(255,255,255,0.5);
}

.sbipl-hamburger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--wp--preset--color--white);
  transition: transform 0.2s ease, opacity 0.2s ease;
  flex-shrink: 0;
}

.sbipl-hamburger.is-open span:nth-child(1) {
  transform: translateY(4.5px) rotate(45deg);
}

.sbipl-hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.sbipl-hamburger.is-open span:nth-child(3) {
  transform: translateY(-4.5px) rotate(-45deg);
}

.sbipl-hamburger.is-active {
  display: flex;
}

/* Hidden nav — when hamburger takes over */
.sbipl-nav--hidden {
  display: none !important;
}

/* Body lock when overlay open */
body.sbipl-menu-open {
  overflow: hidden;
}

/* --- Full-Screen Overlay Menu --- */
.sbipl-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--wp--preset--color--white);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  overflow-y: auto;
}

.sbipl-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* Overlay header */
.sbipl-overlay__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--wp--preset--color--border);
  flex-shrink: 0;
}

.sbipl-overlay__title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wp--preset--color--primary);
}

.sbipl-overlay__close {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--wp--preset--color--border);
  background: var(--wp--preset--color--white);
  font-size: 1.2rem;
  color: var(--wp--preset--color--dark-gray);
  cursor: pointer;
  line-height: 1;
  padding: 0;
  border-radius: 0 !important;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.sbipl-overlay__close:hover {
  border-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--primary);
}

/* Always 2 cols — never changes */
.sbipl-overlay__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  flex: 1;
  min-height: 0;
  align-content: start;
  gap: 0.6rem;
}

/* Each box */
.sbipl-overlay__box {
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid var(--wp--preset--color--border);
  overflow: hidden;
}

.sbipl-overlay__box:nth-child(odd) {
  border-right: 1px solid var(--wp--preset--color--border);
}

/* Box title — small, bold */
.sbipl-overlay__box-title {
  font-size: min(3vw, 0.88rem);
  font-weight: 700;
  color: var(--wp--preset--color--primary) !important;
  text-decoration: none !important;
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
  display: block;
  transition: color 0.15s ease;
  line-height: 1.3;
}

.sbipl-overlay__box-title:hover {
  color: var(--wp--preset--color--accent) !important;
}

/* Submenu links — horizontal, dot-separated */
.sbipl-overlay__box-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  line-height: 1;
}

.sbipl-overlay__box-links li {
  list-style: none;
  display: inline;
}

.sbipl-overlay__box-links li:not(:last-child)::after {
  content: "\00b7";
  color: var(--wp--preset--color--mid-gray);
  margin: 0 0.2em;
}

.sbipl-overlay__box-links a {
  font-size: min(2.8vw, 0.8rem);
  color: var(--wp--preset--color--dark-gray) !important;
  text-decoration: none !important;
  display: inline;
  transition: color 0.15s ease;
  line-height: 1.75;
}

.sbipl-overlay__box-links a:hover {
  color: var(--wp--preset--color--accent) !important;
}

/* Large screens — bump up to 4 cols */
@media (min-width: 900px) {
  .sbipl-overlay__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .sbipl-overlay__box:nth-child(odd) {
    border-right: none;
  }

  .sbipl-overlay__box {
    border-right: 1px solid var(--wp--preset--color--border);
    padding: 0.82rem 1.08rem;
  }

  .sbipl-overlay__box:nth-child(4n) {
    border-right: none;
  }

  .sbipl-overlay__box-title {
    font-size: 0.88rem;
  }

  .sbipl-overlay__box-links a {
    font-size: 0.8rem;
  }
}

/* --- Child Page Strip --- */
.sbipl-child-strip {
  display: flex;
  align-items: center;
  gap: 0;
  border-bottom: 1px solid var(--wp--preset--color--border);
  margin-bottom: 2rem;
  padding-bottom: 0;
  position: relative;
}

.sbipl-child-strip__parent {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--wp--preset--color--primary) !important;
  text-decoration: none !important;
  white-space: nowrap;
  padding: 0.7rem 1rem 0.7rem 0;
  border-right: 1px solid var(--wp--preset--color--border);
  margin-right: 0;
  flex-shrink: 0;
}

.sbipl-child-strip__parent:hover {
  color: var(--wp--preset--color--accent) !important;
}

.sbipl-child-strip__scroll-wrapper {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.sbipl-child-strip__list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}

.sbipl-child-strip__list::-webkit-scrollbar {
  display: none;
}

.sbipl-child-strip__item {
  list-style: none;
  flex-shrink: 0;
}

.sbipl-child-strip__item a {
  display: block;
  padding: 0.7rem 1rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--wp--preset--color--dark-gray) !important;
  text-decoration: none !important;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.sbipl-child-strip__item a:hover {
  color: var(--wp--preset--color--accent) !important;
  border-bottom-color: var(--wp--preset--color--accent);
}

.sbipl-child-strip__item--active a {
  color: var(--wp--preset--color--accent) !important;
  border-bottom-color: var(--wp--preset--color--accent);
  font-weight: 600;
}

/* Arrow buttons */
.sbipl-child-strip__arrow {
  display: none;
  position: absolute;
  top: 0;
  bottom: 1px;
  width: 1.75rem;
  border: none;
  cursor: pointer;
  z-index: 2;
  padding: 0;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--wp--preset--color--white);
  background: var(--wp--preset--color--accent);
  border-radius: 0 !important;
  transition: background 0.15s ease;
}

.sbipl-child-strip__arrow:hover {
  background: var(--wp--preset--color--primary);
}

.sbipl-child-strip__arrow--left {
  left: 0;
}

.sbipl-child-strip__arrow--right {
  right: 0;
}

.sbipl-child-strip__arrow.is-visible {
  display: flex;
}

@media (max-width: 781px) {
  .sbipl-child-strip {
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
  }
}

/* --- Footer menu: force 2x2 grid on all screens --- */
.sbipl-footer-menus .wp-block-columns {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.sbipl-footer-menus .wp-block-column {
  flex-basis: unset !important;
  width: auto !important;
}

@media (max-width: 768px) {
  .sbipl-footer-menus .wp-block-columns {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem;
  }
}

/* --- Team member photos responsive --- */
@media (max-width: 781px) {
  .wp-block-columns .wp-block-column .wp-block-image {
    max-width: 180px;
    margin-left: auto;
    margin-right: auto;
  }

  .wp-block-columns .wp-block-column .wp-block-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
  }

  .wp-block-columns .wp-block-column h3,
  .wp-block-columns .wp-block-column p {
    text-align: center;
  }

  .sbipl-investor-quick-access .wp-block-column h4,
  .sbipl-investor-quick-access .wp-block-column p,
  .sbipl-investor-quick-access .wp-block-column a {
    text-align: left !important;
  }

  .sbipl-investor-quick-access .wp-block-column {
    align-items: flex-start;
  }

  .sbipl-investor-quick-access .sbipl-card p:last-child {
    margin-bottom: 0;
  }
}

/* --- Page content images — fixed height, centered --- */
.entry-content .wp-block-image,
.wp-block-post-content .wp-block-image {
  overflow: hidden;
}

.entry-content .wp-block-image img,
.wp-block-post-content .wp-block-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Galleries keep shorter height */
.wp-block-gallery .wp-block-image img {
  height: 220px;
}

/* Team member photos — square */
.wp-block-columns .wp-block-column .wp-block-image img {
  height: 240px;
  object-fit: cover;
  object-position: center top;
}

@media (max-width: 781px) {
  .entry-content .wp-block-image img,
  .wp-block-post-content .wp-block-image img {
    height: 200px;
  }

  .wp-block-gallery .wp-block-image img {
    height: 160px;
  }

  .wp-block-columns .wp-block-column .wp-block-image img {
    height: 180px;
    max-width: 180px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* --- Media Video Slider --- */
#sbipl-media-slider-root {
  max-width: 100%;
}

.sbipl-media-slider-stage {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  background: var(--wp--preset--color--black);
}

.sbipl-media-slider-stage iframe,
.sbipl-media-slider-stage > div {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.sbipl-media-slider-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  gap: 1rem;
  border-bottom: 1px solid var(--wp--preset--color--border);
}

.sbipl-media-slider-meta {
  font-size: 0.8rem;
  color: var(--wp--preset--color--dark-gray);
  text-align: center;
  flex: 1;
}

.sbipl-media-slider-prev,
.sbipl-media-slider-next {
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--white);
  border: none;
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 0 !important;
  transition: background 0.15s ease;
  white-space: nowrap;
}

.sbipl-media-slider-prev:hover,
.sbipl-media-slider-next:hover {
  background: var(--wp--preset--color--accent);
}

.sbipl-media-slider-prev:disabled,
.sbipl-media-slider-next:disabled {
  opacity: 0.4;
  cursor: default;
}

.sbipl-media-slider-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0.5rem 0;
  justify-content: center;
}

.sbipl-media-slider-dots button {
  width: 10px;
  height: 10px;
  border: 1px solid var(--wp--preset--color--border);
  background: var(--wp--preset--color--light-gray);
  cursor: pointer;
  padding: 0;
  border-radius: 0 !important;
  transition: background 0.15s ease;
}

.sbipl-media-slider-dots button.is-active,
.sbipl-media-slider-dots button:hover {
  background: var(--wp--preset--color--accent);
  border-color: var(--wp--preset--color--accent);
}

.sbipl-media-slider-autoplay {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--wp--preset--color--mid-gray);
  padding: 0.25rem 0;
  cursor: pointer;
}

.sbipl-media-slider-autoplay input[type="checkbox"] {
  margin: 0;
}

/* --- Print --- */
@media print {
  .sbipl-header,
  .sbipl-footer {
    display: none;
  }
  body { font-size: 11pt; color: #000; }
}

/* --- Responsive --- */
@media (max-width: 781px) {
  .sbipl-stat + .sbipl-stat {
    border-left: none;
    border-top: 1px solid var(--wp--preset--color--border);
  }

  .sbipl-topbar {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  .sbipl-section-feed__heading-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .sbipl-date-filter__form {
    align-items: flex-end;
    justify-content: flex-start;
    flex-basis: auto;
    min-width: 0;
  }

  .sbipl-date-filter__field {
    flex: 1 1 calc(50% - 0.2rem);
    min-width: 0;
  }

  .sbipl-section-feed--grid .sbipl-section-feed__items {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .sbipl-section-feed__grid-card {
    padding: 1rem 1rem 1.1rem;
  }

  .sbipl-section-feed__grid-card .sbipl-section-feed__excerpt {
    font-size: 0.84rem;
    line-height: 1.6;
  }

  .sbipl-section-feed__item--list,
  .sbipl-section-feed__item--document,
  .sbipl-section-feed__item--timeline {
    grid-template-columns: 1fr;
  }

  .sbipl-section-feed__action {
    justify-content: flex-start;
  }
}

/* --- Sitemap page --- */
.sbipl-sitemap {
  display: grid;
  gap: 1rem;
}

.sbipl-sitemap__row {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--wp--preset--color--border);
}

.sbipl-sitemap__row:last-child {
  border-bottom: 0;
}

.sbipl-sitemap__parent {
  font-weight: 700;
}

.sbipl-sitemap__branch {
  min-width: 0;
}

.sbipl-sitemap__children {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sbipl-sitemap__child + .sbipl-sitemap__child {
  margin-top: 0.35rem;
}

.sbipl-sitemap__children--level-2,
.sbipl-sitemap__children--level-3 {
  margin-left: 1rem;
  padding-left: 1rem;
}

.sbipl-sitemap__children--level-2 {
  border-left: 1px solid var(--wp--preset--color--border);
}

.sbipl-sitemap__children--level-3 {
  border-left: 1px dotted var(--wp--preset--color--border);
}

.sbipl-sitemap__link {
  color: var(--wp--preset--color--text);
}

@media (max-width: 781px) {
  .sbipl-sitemap__row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .sbipl-sitemap__children--level-2,
  .sbipl-sitemap__children--level-3 {
    margin-left: 0.75rem;
    padding-left: 0.75rem;
  }
}
