/* WordPress-only additions to the Minka design system (minka.css). */

/* ---------- Menu with dropdowns ---------- */
.nav__links > li { position: relative; display: flex; align-items: center; gap: 4px; }
.nav__links .sub-toggle { background: none; border: 0; padding: 4px; cursor: pointer; color: inherit; opacity: .6; display: grid; place-items: center; }
.nav--over-dark:not(.scrolled):not(.open) .sub-toggle { color: #fff; }
.nav__links .current-menu-item > a, .nav__links a[aria-current="page"] { color: var(--ink); }
.sub-menu { position: absolute; top: calc(100% + 14px); left: -20px; min-width: 260px; padding: 10px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 24px 60px -24px rgba(14,17,16,.35); display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s; z-index: 5; }
.sub-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.sub-menu a { display: block; padding: 10px 14px; border-radius: 10px; font-size: .88rem; color: var(--text) !important; }
.sub-menu a:hover, .sub-menu a[aria-current="page"] { background: var(--mist); color: var(--ink) !important; }
.sub-menu a::after { display: none; }
.has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu, .has-sub.sub-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav__links { gap: 28px; }

@media (max-width: 1180px) {
  .nav__links { gap: 18px; }
  .nav__links a { font-size: .82rem; }
}
@media (max-width: 900px) {
  .nav.open .nav__links { gap: 2px; }
  .nav.open .nav__links > li { flex-wrap: wrap; width: 100%; }
  .nav.open .nav__links .sub-toggle { margin-left: auto; width: 44px; height: 44px; opacity: .8; }
  .nav.open .nav__links .sub-toggle svg { width: 16px; height: 16px; }
  .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 12px 4px; min-width: 0; width: 100%; display: none; background: none; }
  .has-sub.sub-open > .sub-menu { display: flex; }
  .has-sub:hover > .sub-menu { display: none; }
  .has-sub.sub-open:hover > .sub-menu { display: flex; }
  .nav.open .sub-menu a { font-family: var(--sans); font-size: 1rem; padding: 8px 0; }
  .sub-menu a:hover { background: none; }
}

/* ---------- Footer built from the Footer menu ---------- */
.footer__top--wp { grid-template-columns: 1.4fr; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 40px; }
@media (max-width: 1180px) { .footer__top--wp { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); } .footer__top--wp > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 600px) { .footer__top--wp { grid-template-columns: 1fr 1fr; } .footer__top--wp > div:last-child { grid-column: 1 / -1; } }

/* ---------- Page content from the block editor ---------- */
.prose { max-width: 760px; color: var(--text); font-size: 1.05rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-top: 2em; }
.prose h3 { font-size: 1.35rem; margin-top: 1.6em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose a { color: var(--green-deep); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before { content: ''; position: absolute; left: 2px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.prose ol { list-style: decimal; }
.prose ol li::marker { font-family: var(--mono); color: var(--green-deep); }
.prose li + li { margin-top: .5em; }
.prose blockquote { border-left: 2px solid var(--green); padding: 4px 0 4px 22px; font-family: var(--display); font-size: 1.3rem; font-weight: 300; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.prose img { border-radius: 16px; }
.prose .wp-block-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.prose .wp-block-column { border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.prose .wp-block-column > * + * { margin-top: .7em; }
.prose .wp-block-column h3 { margin-top: 0; font-size: 1.15rem; }
.prose .wp-block-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.prose .wp-block-button__link { display: inline-flex; padding: 14px 24px; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; font-size: .9rem; }
.prose .wp-block-details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.prose .wp-block-details summary { cursor: pointer; font-family: var(--display); font-size: 1.15rem; color: var(--ink); }
.prose .has-text-align-center { text-align: center; }
.prose .is-style-steps { counter-reset: step; list-style: none; padding: 0; }
.prose .is-style-steps li { counter-increment: step; padding: 22px 0 22px 64px; border-top: 1px solid var(--line); position: relative; }
.prose .is-style-steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 22px; width: auto; height: auto; background: none; border-radius: 0; font-family: var(--mono); font-size: .8rem; color: var(--green-deep); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Section pages: cards for the pages below ---------- */
.child-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.child-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--paper); transition: border-color .3s, transform .4s var(--ease); }
.child-card:hover { border-color: var(--ink); transform: translateY(-3px); }
.child-card__art { aspect-ratio: 16 / 9; background: var(--night); }
.child-card__art svg { width: 100%; height: 100%; display: block; }
.child-card__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.child-card__body p { font-size: .9rem; color: var(--muted); }
.child-card__body .link-arrow { margin-top: auto; padding-top: 8px; }

/* ---------- Insights ---------- */
.chip span.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 28px; }
.post-card { display: flex; flex-direction: column; gap: 12px; }
.post-card__media { aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: var(--night); margin-bottom: 6px; }
.post-card__media img, .post-card__art, .post-card__art svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card h3 { font-size: 1.25rem; line-height: 1.3; }
.post-card p { font-size: .92rem; color: var(--muted); }
.post-card:hover h3 { color: var(--green-deep); }
.pagination { margin-top: 56px; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.article-head { padding: calc(var(--nav-h) + var(--bar-h) + 96px) 0 24px; }
.article-head__inner { max-width: 900px; }
.article-head h1 { font-size: clamp(2.2rem, 4.6vw, 4rem); margin: 18px 0 22px; }
.article-head__meta { font-family: var(--mono); font-size: .75rem; color: var(--muted); margin-top: 18px; }
.article-image { margin-top: 24px; }
.article-image img { width: 100%; max-height: 560px; object-fit: cover; border-radius: 22px; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.person { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--paper); }
.person__photo { aspect-ratio: 4 / 5; position: relative; background: var(--night); }
.person__photo img, .person__photo [data-art], .person__photo svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.person__initials { position: absolute; left: 20px; bottom: 16px; font-family: var(--display); font-weight: 300; font-size: 2.6rem; color: #fff; }
.person__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.person__body h3 { font-size: 1.15rem; }
.person__body p { font-size: .88rem; color: var(--muted); margin-top: 6px; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.quote { border: 1px solid var(--line); border-radius: 22px; padding: 40px; display: flex; flex-direction: column; gap: 28px; justify-content: space-between; }
.quote blockquote { font-family: var(--display); font-weight: 300; font-size: 1.4rem; line-height: 1.4; color: var(--ink); }
.quote figcaption { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }

/* ---------- Events ---------- */
.events { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.event { display: grid; grid-template-columns: 140px 1fr auto; gap: 32px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: start; }
.event__date { display: flex; flex-direction: column; gap: 4px; }
.event__day { font-family: var(--display); font-weight: 300; font-size: 3rem; line-height: 1; color: var(--ink); }
.event__body { display: flex; flex-direction: column; gap: 8px; }
.event__body h3 { font-size: 1.35rem; }

/* ---------- Track record ---------- */
.track a { color: var(--ink); }

@media (max-width: 1180px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .post-grid, .quotes { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .event { grid-template-columns: 1fr; gap: 12px; }
  .quote { padding: 28px; }
}
