/* ==========================================================================
   Limegoat IR — WordPress layer on top of site.css (the static design, kept as-is).
   Blocks rendered with the design's classes, theme features (events, posts-mode press
   releases, disclaimer pop-up, QuoteMedia states) and generic page content.
   ========================================================================== */

/* ---------- WordPress chrome ---------- */
.admin-bar .site-header { top: calc(var(--ticker-h) + 32px); }
.admin-bar .ir-nav { top: 32px; }
.admin-bar .mobile-menu { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .site-header { top: calc(var(--ticker-h) + 46px); }
  .admin-bar .ir-nav { top: 46px; }
  .admin-bar .mobile-menu { top: 46px; }
}
@media (max-width: 600px) {
  .admin-bar .ir-nav { top: 0; }
}
/* Open mobile menu: keep the logo and the close button above the menu panel. */
body.menu-open .site-header { position: fixed; z-index: 130; }
body.menu-open .humanity { display: none !important; }
.logo-text { display: block; font-family: var(--serif); font-size: 24px; line-height: 1.1; color: var(--off); max-width: 260px; }
.site-footer .logo-text { font-size: 28px; }
.site-footer__brand img { height: 56px; width: auto; }
.social__text { font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; }
.site-footer__credit { margin: 18px 0 0; font-size: 12px; color: rgba(245, 245, 245, .4); }
.site-footer__credit a:hover { color: var(--off); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Blocks with the design's classes ---------- */
.entry > .wp-block-group, .entry .wp-block-group { box-sizing: border-box; }
.wp-block-group.wrap { margin-inline: auto; }
.wp-block-image.size-full img, .wp-block-image img { height: auto; }
.person__photo img { height: 100%; }
.contact strong { font-weight: 700; }
.company__status strong { display: block; font-size: 11px; font-weight: 400; letter-spacing: 1.4px; text-transform: uppercase; color: var(--grey); margin-bottom: 4px; }
.contact-card p strong { font-family: var(--serif); font-size: 21px; font-weight: 400; display: block; margin-bottom: 4px; }
.section-head__note { margin: 0; font-size: 14px; color: var(--grey); }
.aside-card__note, .aside-card p.aside-card__note { font-size: 13px; color: var(--grey); margin: 0; }
.faq-layout__title span { display: block; }
.faq .wp-block-details summary, .person .wp-block-details summary { list-style: none; }
.faq .wp-block-details summary::-webkit-details-marker, .person .wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details > summary { cursor: pointer; }
.event-list__admin { margin: 14px 0 0; font-size: 12px; color: var(--grey); }
.event-list__admin a { text-decoration: underline; }

/* ---------- Generic page content (pages not built from sections, single posts) ---------- */
.entry-flow { max-width: 860px; }
.entry-flow > * + * { margin-top: 1.1em; }
.entry-flow p, .entry-flow li { font-size: 17px; line-height: 1.75; color: var(--teal); }
.entry-flow p { margin: 0; }
.entry-flow > * + p { margin-top: 1.1em; }
.entry-flow > :is(h2, h3, h4) + * { margin-top: .55em; }
.entry-flow h2 { font-family: var(--serif); font-size: clamp(28px, 2.6vw, 36px); line-height: 1.15; color: var(--ink); margin-top: 1.6em; }
.entry-flow h3 { font-family: var(--serif); font-size: 24px; line-height: 1.25; color: var(--ink); margin-top: 1.4em; }
.entry-flow h4 { font-size: 15px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--ink); margin-top: 1.4em; }
.entry-flow a:not([class]) { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.entry-flow ul:not([class*="__"]):not(.arrow-list):not(.doc-list) { list-style: disc; padding-left: 1.3em; }
.entry-flow ol:not([class*="__"]):not(.timeline) { list-style: decimal; padding-left: 1.3em; }
.entry-flow li + li { margin-top: .35em; }
.entry-flow img { height: auto; }
.entry-flow figure { margin: 1.6em 0; }
.entry-flow figcaption { margin-top: 8px; font-size: 13px; color: var(--grey); }
.entry-flow blockquote { margin: 1.6em 0; padding-left: 24px; border-left: 3px solid var(--navy); font-family: var(--serif); font-size: 22px; color: var(--ink); }
.entry-flow table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry-flow th, .entry-flow td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-flow th { font-size: 11px; font-weight: 400; letter-spacing: 1.4px; text-transform: uppercase; color: var(--grey); }
.entry-flow .wp-block-table { margin: 1.6em 0; overflow-x: auto; }
.entry-flow hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.entry-flow .wp-block-button__link, .entry-flow .btn { display: inline-flex; align-items: center; height: 52px; padding: 0 30px; background: var(--navy); color: var(--white); border: 1px solid var(--navy); font-size: 12px; font-weight: 700; letter-spacing: 1.68px; text-transform: uppercase; text-decoration: none; }
.entry-flow .wp-block-button__link:hover, .entry-flow .btn:hover { background: transparent; color: var(--navy); }

/* Governance icon tables (earlier theme versions). */
.gov-icon { display: inline-flex; width: 24px; height: 24px; color: var(--navy); vertical-align: middle; }
.gov-icon svg { width: 100%; height: 100%; }
.gov-icon + .gov-icon { margin-left: 6px; }

/* ---------- Single press release ---------- */
.news-single__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 26px; font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--grey); }
.news-single .entry-flow { max-width: none; }
.news-single__back { margin: 44px 0 0; }
.news-story__back { margin-top: 36px; }
.qm-story-full { min-height: 240px; }

/* ---------- Press releases from posts (IR Settings → QuoteMedia → posts) ---------- */
.range-tabs a { display: block; padding: 8px 13px; font-size: 12px; font-weight: 600; letter-spacing: 1px; color: #555; transition: background-color .2s, color .2s; }
.range-tabs a:hover { color: var(--navy); }
.filter-bar a[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.news-pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 34px; }
.news-pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid #E1E1E1; font-size: 13px; font-weight: 600; color: var(--ink); }
.news-pager .page-numbers.current { background: var(--navy); border-color: var(--navy); color: var(--white); }
.news-pager a.page-numbers:hover { border-color: var(--navy); }
.news__status { grid-column: 1 / -1; margin: 0; padding: 34px 36px; background: var(--white); font-size: 15px; color: var(--grey); }
.news__status a { color: var(--blue); text-decoration: underline; }
.filings__table .filings__status td { color: var(--grey); font-size: 14px; text-align: left; }

/* ---------- Events ---------- */
.event-live { display: inline-block; margin: 0 0 8px; padding: 3px 8px; background: #C23B3B; color: var(--white); font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.event-live[hidden] { display: none; }
.event__links { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.event-list[hidden], .card-events[hidden], .empty-state[hidden], .card__empty[hidden] { display: none; }
.card-events { margin: 0 0 20px; }
.card-event { padding: 12px 0; border-bottom: 1px solid #E8E8E8; }
.card-event:first-child { padding-top: 0; }
.card-event__date { display: block; font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--grey); margin-bottom: 4px; }
.card-event__title { margin: 0; font-family: var(--serif); font-size: 19px; line-height: 1.3; color: var(--ink); }
.card-event__title a:hover { color: var(--blue); }
@media (max-width: 767px) {
  .event__links { align-items: flex-start; }
}

/* ---------- Investor Presentation block ---------- */
.pres-card { position: relative; }
.pres-card__cover { display: block; margin: -32px -32px 24px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--off-3); }
.pres-card__cover img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- QuoteMedia states ---------- */
.qm-failed { margin: 14px 0 0; padding: 22px 24px; background: var(--off-2); border: 1px solid #E6E6E6; font-size: 14px; color: var(--grey); }
.qm-framed iframe { display: block; width: 100%; border: 0; }
.qm-frame-body { background: transparent; }

/* ---------- "I Accept" disclaimer ---------- */
.modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(var(--navy-rgb), .72); }
.modal[hidden] { display: none; }
.modal__dialog { width: 100%; max-width: 640px; max-height: calc(100vh - 40px); overflow-y: auto; padding: 40px 44px 36px; background: var(--white); box-shadow: 0 30px 60px rgba(0, 0, 0, .25); }
.modal__dialog h2 { font-family: var(--serif); font-size: 32px; line-height: 1.15; color: var(--ink); margin-bottom: 18px; }
.modal__dialog p { font-size: 15px; line-height: 1.7; color: var(--teal); }
.modal__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 26px; }
.modal__actions .btn { height: 52px; }
.modal__cancel { padding: 0; border: 0; background: none; font-size: 12px; font-weight: 700; letter-spacing: 1.68px; text-transform: uppercase; color: var(--navy); border-bottom: 1px solid currentColor; }
@media (max-width: 600px) {
  .modal__dialog { padding: 30px 24px 26px; }
  .modal__dialog h2 { font-size: 26px; }
}

/* ---------- IR nav on phones (≤767px): one dropdown, as on the Mira IR site ---------- */
.ir-nav__bar { display: none; }
@media (max-width: 767px) {
  .ir-nav.is-enhanced > .wrap:not(.ir-nav__bar), .ir-nav.is-enhanced .ir-nav__sub { display: none; }
  .ir-nav.is-enhanced .ir-nav__bar { display: block; position: relative; padding-top: 10px; padding-bottom: 10px; }
  .ir-nav__toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 56px; padding: 8px 8px 8px 18px; border: 0; border-radius: 0; background: var(--navy); color: var(--white); text-align: left; cursor: pointer; }
  .ir-nav__toggle[hidden] { display: none; }
  .ir-nav__toggle-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .ir-nav__toggle-section { font-size: 10px; font-weight: 700; line-height: 1.3; letter-spacing: 1.5px; text-transform: uppercase; color: var(--blue-soft); }
  .ir-nav__toggle-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--serif); font-size: 19px; line-height: 1.2; color: var(--white); }
  .ir-nav__toggle-icon { display: grid; flex: none; place-items: center; width: 40px; height: 40px; background: var(--white); color: var(--navy); }
  .ir-nav__toggle-icon svg { display: block; transition: transform .25s var(--ease); }
  .ir-nav.is-open .ir-nav__toggle-icon svg { transform: rotate(180deg); }
  .ir-nav__panel { display: none; position: absolute; top: calc(100% - 4px); left: var(--gutter); right: var(--gutter); max-height: min(70vh, 560px); overflow-y: auto; overscroll-behavior: contain; padding: 6px 0 8px; background: var(--white); border-top: 2px solid var(--blue); box-shadow: 0 18px 44px rgba(var(--navy-rgb), .18), 0 2px 6px rgba(var(--navy-rgb), .06); }
  .ir-nav.is-open .ir-nav__panel { display: block; animation: ir-nav-in .18s var(--ease); }
  .ir-nav__group-title { margin: 0; padding: 14px 18px 4px; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--grey); }
  .ir-nav__group + .ir-nav__group, .ir-nav__panel > ul > li + .ir-nav__group { border-top: 1px solid #EDEDED; margin-top: 6px; }
  .ir-nav__panel a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 10px 18px; font-size: 15px; line-height: 1.35; color: var(--text); transition: background-color .2s, color .2s; }
  .ir-nav__panel a:hover { background: var(--off); color: var(--blue); }
  .ir-nav__panel a[aria-current="page"] { background: var(--off); color: var(--navy); font-weight: 700; }
  .ir-nav__panel a[aria-current="page"]::after { content: ""; flex: none; width: 14px; height: 10px; background: var(--blue); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.5 5L5.2 8.5 12.5 1.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.5 5L5.2 8.5 12.5 1.5'/%3E%3C/svg%3E") center / contain no-repeat; }
}
@keyframes ir-nav-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .ir-nav.is-open .ir-nav__panel { animation: none; }
}
