/* Investors module styles, scoped to /investors pages only via the inv- prefix.
   Loaded on top of style.css, matching the insulators.css / news-media.css
   pattern used elsewhere in this project. */

/* =========================================================================
   Hero banner (cat-hero) — matches news-media.css's block exactly (same
   values NewsMediaDetailsBanner uses), duplicated here so /investors pages
   stay self-contained and don't depend on another feature's stylesheet.
   ========================================================================= */
.cat-hero {
  min-height: 520px;
  background-color: #1b2a3a; /* fallback while the hero image loads */
  justify-content: flex-start;
  padding-bottom: 0;
}
.cat-hero::before {
  background: linear-gradient(
    90deg,
    rgba(10, 25, 41, 0.72) 0%,
    rgba(10, 25, 41, 0.4) 45%,
    rgba(10, 25, 41, 0.15) 100%
  );
}
.cat-hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 90px;
}
.cat-hero-title {
  color: #fff;
  font-weight: 600;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.05;
  margin-bottom: 22px;
}
.cat-hero-sub {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 0;
}
@media (max-width: 991.98px) {
  .cat-hero {
    min-height: 440px;
  }
  .cat-hero-content {
    padding-bottom: 70px;
  }
}

.inv-page {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 48px 40px 80px;
  overflow: hidden;
}

/* ---------------- Static intro (common to all investor pages) ---------------- */
.inv-intro {
  margin: 0 0 32px;
}

.inv-intro-title {
  font-size: 30px;
  font-weight: 700;
  color: #1f2430;
  margin: 0 0 14px;
  max-width: 760px;
}

.inv-intro-text {
  font-size: 16px;
  line-height: 1.7;
  color: #4b5573;
  margin: 0;
  max-width: 760px;
}

.inv-ticker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 24px;
}

.inv-ticker-row iframe {
  flex: 1 1 calc(50% - 10px);
  min-width: 240px;
  box-sizing: border-box;
}

.inv-layout {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

/* ---------------- Sidebar ---------------- */
.inv-sidebar {
  flex: 0 0 300px;
  background: #eaf3ff;
  border-radius: 18px;
  padding: 14px;
}

.inv-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.inv-sidebar-list li + li {
  margin-top: 2px;
}

.inv-sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  color: #3a4256;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.inv-icon-wrap {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5b6478;
}

.inv-icon-wrap svg {
  width: 19px;
  height: 19px;
}

.inv-sidebar-item:hover {
  background: rgba(255, 255, 255, 0.55);
}

.inv-sidebar-item.is-active {
  background: #ffffff;
  color: #1d4ed8;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(30, 64, 175, 0.1);
}

.inv-sidebar-item.is-active .inv-icon-wrap {
  color: #1d4ed8;
}

.inv-sidebar-item:focus-visible {
  outline: 2px solid #1d4ed8;
  outline-offset: 2px;
}

/* ---------------- Content ---------------- */
.inv-content {
  flex: 1;
  min-width: 0;
}

.inv-section + .inv-article,
.inv-article + .inv-section,
.inv-section + .inv-section {
  margin-top: 40px;
}

.inv-section-heading {
  font-size: 20px;
  font-weight: 700;
  color: #1f2430;
  margin: 0 0 20px;
}

.inv-empty-state {
  color: #6b7280;
  font-size: 15px;
  margin: 0;
}

/* ---------------- Tab bar ---------------- */
.inv-tabbar {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f4f6f9;
  border-radius: 999px;
  padding: 6px;
  margin-bottom: 28px;
  max-width: 100%;
  overflow-x: auto;
}

.inv-tab-btn {
  display: inline-block;
  padding: 10px 22px;
  border: none;
  background: transparent;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  color: #9aa3af;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.inv-tab-btn:hover {
  color: #6b7280;
}

.inv-tab-btn.is-active {
  background: #ffffff;
  color: #1f2430;
  box-shadow: 0 2px 8px rgba(20, 20, 40, 0.08);
}

.inv-tab-btn:focus-visible {
  outline: 2px solid #1d4ed8;
  outline-offset: 2px;
}

/* ---------------- Document card grid ---------------- */
.inv-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.inv-doc-card {
  border: 1px solid #e7ebf1;
  border-radius: 12px;
  padding: 18px 20px 16px;
  background: #fff;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.inv-doc-card:hover {
  box-shadow: 0 8px 20px rgba(20, 30, 60, 0.08);
  transform: translateY(-1px);
}

.inv-doc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.inv-doc-icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.inv-doc-title {
  font-size: 15.5px;
  font-weight: 700;
  color: #1f2430;
}

.inv-doc-year {
  font-size: 12.5px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 10px;
}

.inv-view-details {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
}
.inv-view-details svg {
  width: 14px;
  height: 14px;
  transition: transform 0.15s ease;
}
.inv-view-details:hover {
  color: #1d4ed8;
}
.inv-view-details:hover svg {
  transform: translateX(3px);
}
.inv-view-details:focus-visible {
  outline: 2px solid #1d4ed8;
  outline-offset: 2px;
}

/* Video/audio documents render this as a <button> instead of an <a> so the
   click opens the play popup instead of navigating — strip the browser's
   default button chrome so it still looks identical to the link variant. */
button.inv-view-details {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-family: inherit;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
}

/* ---------------- Document media popup (video/audio) ---------------- */
.inv-media-modal-content {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  background: #00172c;
}
.inv-media-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  background-color: #fff;
  opacity: 1;
  border-radius: 50%;
  padding: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: background-color 0.25s ease;
}
.inv-media-modal-close:hover {
  background-color: #e6f0fa;
}
.inv-media-video {
  display: block;
  width: 100%;
  max-height: 80vh;
  background: #000;
}
.inv-media-audio-wrap {
  padding: 44px 28px;
  text-align: center;
  background-color: #000;
}
.inv-media-audio-title {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}
.inv-media-audio {
  width: 100%;
}
.inv-media-modal-content .inv-media-modal-close{
  filter:invert(1);
}
/* ---------------- Locked PDF viewer (Lock Download) ---------------- */
.inv-pdf-modal-content {
  border: none;
  border-radius: 14px;
  overflow: hidden;
}
.inv-pdf-modal-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #1f2430;
}
.inv-pdf-modal-body {
  padding: 0;
  background: #eef1f5;
}
.inv-pdf-viewer {
  display: flex;
  flex-direction: column;
  height: min(78vh, 900px);
  -webkit-user-select: none;
  user-select: none;
}
.inv-pdf-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 10px 16px;
  background: #fff;
  border-top: 1px solid #e7ebf1;
}
.inv-pdf-toolbar-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.inv-pdf-toolbar-label {
  min-width: 96px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
}
.inv-pdf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid #d5dbe5;
  border-radius: 8px;
  background: #fff;
  color: #1f2430;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.inv-pdf-btn:hover:not(:disabled) {
  background: #e6f0fa;
  border-color: #2563eb;
  color: #1d4ed8;
}
.inv-pdf-btn:focus-visible {
  outline: 2px solid #1d4ed8;
  outline-offset: 2px;
}
.inv-pdf-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
/* Scrollable column of every page. position:relative makes it the offsetParent
   the viewer measures page tops against; padding must match SCROLL_PADDING in
   InvestorLockedPdfModal.tsx. */
.inv-pdf-scroll {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  scrollbar-gutter: stable;
  padding: 12px;
}
.inv-pdf-scroll:focus-visible {
  outline: 2px solid rgba(29, 78, 216, 0.35);
  outline-offset: -2px;
}
.inv-pdf-page {
  margin: 0 auto 12px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(20, 30, 60, 0.15);
}
.inv-pdf-canvas {
  display: block;
  width: 100%;
  height: 100%;
  -webkit-user-drag: none;
}
.inv-pdf-message {
  margin: 0;
  padding: 48px 16px;
  text-align: center;
  color: #374151;
  font-weight: 600;
}
.inv-pdf-print-note {
  display: none;
}
/* Phones: keep page + zoom controls on one compact row, clear of the iOS home
   indicator. */
@media (max-width: 575.98px) {
  .inv-pdf-toolbar {
    flex-wrap: nowrap;
    gap: 8px;
    padding: 8px 10px max(8px, env(safe-area-inset-bottom));
  }
  .inv-pdf-toolbar-group {
    gap: 4px;
  }
  .inv-pdf-toolbar-label {
    min-width: 0;
    padding: 0 4px;
  }
}

/* Fullscreen (phone/tablet) modal: fill the screen instead of the desktop cap. */
@media (max-width: 991.98px) {
  .inv-pdf-viewer {
    height: calc(100vh - 58px);
    height: calc(100dvh - 58px);
  }
}
@media print {
  .inv-pdf-toolbar,
  .inv-pdf-scroll {
    display: none !important;
  }
  .inv-pdf-print-note {
    display: block;
    margin: 0;
    padding: 24px;
    font-weight: 600;
  }
}

/* ---------------- Financial results grid ---------------- */
.inv-fr-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.inv-fr-card {
  border: 1px solid #e7ebf1;
  border-radius: 12px;
  padding: 28px 30px 26px;
  background: #fff;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.inv-fr-card:hover {
  box-shadow: 0 8px 20px rgba(20, 30, 60, 0.08);
  transform: translateY(-1px);
}

.inv-fr-year {
  font-size: 15.5px;
  font-weight: 700;
  color: #1f2430;
  margin-bottom: 22px;
}

.inv-fr-quarters {
  display: grid;
  grid-template-columns: repeat(2, auto);
  column-gap: 56px;
  row-gap: 20px;
}

.inv-fr-quarter {
  display: inline-flex;
  align-items: center;
  font-size: 15.5px;
  font-weight: 500;
  color: #6b7280;
  text-decoration: none;
}

.inv-fr-quarter:hover {
  color: #1f2430;
}

.inv-fr-quarter.is-disabled,
.inv-fr-quarter.is-disabled:hover {
  color: #9aa3af;
  cursor: default;
}

.inv-fr-quarter:focus-visible {
  outline: 2px solid #1d4ed8;
  outline-offset: 2px;
}

/* Video/audio quarters render this as a <button> instead of an <a> so the
   click opens the play popup instead of navigating — strip the browser's
   default button chrome so it still looks identical to the link variant. */
button.inv-fr-quarter {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

/* Lock Download quarter: label + small padlock in a row, so the padlock stays
   beside the label instead of wrapping under it in a narrow column. */
.inv-fr-quarter.is-locked {
  display: inline-flex;
  align-items: center;
}
.inv-fr-quarter-icon {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  margin-right: 5px;
  object-fit: contain;
}
.inv-fr-quarter-lock {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  margin-left: 6px;
  opacity: 0.75;
}

/* ---------------- Article ---------------- */
.inv-article-heading {
  font-size: 29px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #38417a;
  margin: 0 0 22px;
}

.inv-article-body p {
  font-size: 17px;
  line-height: 1.6;
  color: #4b5573;
  margin: 0 0 20px;
}
.inv-article-body h3{
  color: #38417a;
}

.inv-article-body p + p {
  margin-top: 2px;
}

.inv-article-body ul,
.inv-article-body ol {
  list-style: disc;
  margin: 26px 0 0;
  padding-left: 48px;
}
.inv-article-body p + ul,
.inv-article-body p + ol {
  margin: 0 0 20px;
}
.inv-article-body li {
  font-size: 17px;
  line-height: 1.6;
  color: #4b5573;
  margin-bottom: 5px;
}

.inv-article-body li::marker {
  color: #4b5573;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  .inv-layout {
    flex-direction: column;
  }
  .inv-sidebar {
    flex: 1 1 auto;
    width: 100%;
  }
  .inv-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .inv-fr-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .inv-content{
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .inv-page {
    padding: 28px 16px 56px;
  }
  .inv-card-grid {
    grid-template-columns: 1fr;
  }
  /*.inv-fr-grid {
    grid-template-columns: 1fr;
  }*/
  .inv-fr-quarters {
    column-gap: 40px;
  }
  .inv-sidebar-item {
    font-size: 14px;
  }
  .inv-tabbar {
    width: 100%;
  }
  .inv-article-heading {
    font-size: 23px;
  }
  .inv-article-body p,
  .inv-article-body li {
    font-size: 15.5px;
  }
  .inv-ticker-row iframe {
    flex-basis: 100%;
  }
}

/* ---------------- Rich-text article tables ---------------- */
.inv-article-body .table > :not(caption) > * > * {
  padding: 12px 16px;
}
.inv-article-body .table thead th {
  background-color: var(--primary-blue);
  color: #fff;
}
