/* ==========================================================================
   WordPress + Elementor integration styles
   ========================================================================== */

/* Core WP classes */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.alignleft { float: left; margin: .4em 1.6em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.6em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.prose img, .prose figure { border-radius: var(--radius); height: auto; }
.prose figure { margin: 2em 0; }
.prose figcaption, .wp-caption-text { font-size: .86rem; color: var(--muted); margin-top: 8px; text-align: center; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .95rem; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { color: var(--ink); background: var(--card); }
.prose code { background: var(--bg-2); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.wp-block-button__link { border-radius: var(--pill); background: var(--navy); color: #fff; padding: 12px 22px; }
.sticky, .bypostauthor, .gallery-caption { }

/* Header logo image */
.brand img.brand__mark { width: auto; height: 42px; object-fit: contain; }

/* Menu: WP output inside our nav */
.main-nav .sub-menu li { list-style: none; }
.footer-col ul li a, .footer-bottom ul li a { display: inline-block; }

/* Pagination (paginate_links) */
.pagination .page-numbers { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 14px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--card); color: var(--text); font-weight: 500; font-size: .92rem; }
.pagination a.page-numbers:hover { border-color: var(--navy); color: var(--navy); }
.pagination .page-numbers.current { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination .page-numbers.dots { border: 0; background: transparent; }
.icon--flip { transform: scaleX(-1); }

/* Tabs as links */
a.tab { text-decoration: none; }
a.tab:hover { color: var(--navy); }
a.tab.is-active:hover { color: #fff; }
a.tag:hover { filter: brightness(.96); color: inherit; }

/* Check-list / key-points with span text */
.check-list li span, .key-points li span { flex: 1; }

/* Events: past cards (2-col) */
.event-card--past { grid-template-columns: 96px 1fr; }
.event-card--past .date-block { width: 96px; height: 96px; }
.event-card--past h3 { font-size: 1.05rem; }
.side-card .mini-event { padding: 12px 0; border-color: rgba(46, 74, 59, .15); }

/* Course single stats */
.stats .stat strong { font-size: 1.6rem; }

/* 404 search */
.page-hero .search-box { transform: none; padding: 14px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }

/* --------------------------------------------------------------------------
   Elementor: let our widgets own their full-bleed sections
   ----------------------------------------------------------------------- */
.sp-elementor-page .elementor-section.elementor-section-full_width > .elementor-container,
.sp-elementor-page .e-con { max-width: none; }
[class*="elementor-widget-sp-"] { margin-bottom: 0 !important; width: 100%; }
[class*="elementor-widget-sp-"] > .elementor-widget-container { margin: 0; padding: 0; }
.elementor-column-gap-no > .elementor-column > .elementor-element-populated { padding: 0 !important; }
.elementor-widget-wrap { align-content: flex-start; }
/* Elementor's own widgets placed inside a page keep the theme typography */
.elementor-widget-text-editor, .elementor-widget-heading .elementor-heading-title { font-family: inherit; }
.elementor-page .elementor-widget-heading .elementor-heading-title { font-family: var(--font-head); color: var(--ink); }
/* Hero section in editor: keep entrance animations visible */
.elementor-editor-active .reveal { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Real-content additions
   ----------------------------------------------------------------------- */
.cover img, .portrait-card .cover img { object-position: center 18%; }
.avatar img { object-position: center top; }
.profile-head__photo { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.photo-credit { font-size: .72rem; color: var(--muted); max-width: 180px; text-align: center; line-height: 1.4; }
.role__position { display: block; font-size: .95rem; color: var(--navy-2); margin-top: 4px; }
.tags--lg .tag { font-size: .88rem; padding: 7px 14px; }
.edu-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.edu-list li { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; line-height: 1.5; }
.edu-list__icon { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: #0C6E3A; display: grid; place-items: center; flex-shrink: 0; }
.edu-list strong { display: block; color: var(--ink); font-size: .96rem; }
.edu-list span { font-size: .88rem; color: var(--muted); }
.sources-list, .prose h2 + p + p a { word-break: break-word; }
.sources-list { font-size: .9rem; color: var(--muted); padding-left: 1.2em; display: grid; gap: 8px; }
.sources-list a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--green); text-underline-offset: 3px; }
.prose a { word-break: break-word; }
.prose figure { margin: 1.8em 0; }
.prose figure img { width: 100%; border-radius: var(--radius); }
.toc--scroll ol { max-height: 58vh; overflow-y: auto; padding-right: 4px; }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.audience-strip { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.topic-card h3:last-child { margin-bottom: 0; }
.signature { margin-top: 1.6em; padding-top: 1.2em; border-top: 1px dashed var(--line); font-family: var(--font-head); color: var(--ink); line-height: 1.6; }
@media (max-width: 1140px) { .grid-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .grid-5 { grid-template-columns: repeat(2, 1fr); } }
.avatar--brand { background: transparent; box-shadow: none; }
.avatar--brand .brand__mark { width: 100%; height: 100%; }
.avatar--forest { --a-bg: var(--navy); --a-fg: #fff; }
.cover-caption { font-size: .82rem; color: var(--muted); margin: 10px 4px 0; }
.grid-5 .topic-card { padding: 22px 20px; }
.grid-5 .topic-card h3 { font-size: .98rem; font-stretch: 70%; line-height: 1.3; overflow-wrap: break-word; }


/* v1.3 — concept components in WordPress */
.topic-photo__fallback { position: absolute; inset: 0; z-index: -2; background: linear-gradient(135deg, var(--navy-2), var(--teal)); }
.spec-card__initials { display: grid; place-items: center; background: var(--green-soft); color: var(--green-dark); font-weight: 800; font-size: 1.6rem; }
.post-card__img .cover { height: 100%; aspect-ratio: auto; }
.hero2__img { z-index: 0; }
.site-header .brand__tag { display: none; }
.elementor-widget-sp-hero-photo, .elementor-widget-sp-geo-banner { overflow: hidden; }

/* Author box — same as the HTML prototype */
.author-box { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding: 30px 34px; margin-top: 48px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.author-box small { color: var(--gold); font-weight: 600; font-size: .82rem; }
.author-box h3 { margin: 4px 0 6px; font-size: 1.3rem; }
.author-box p { margin: 0 0 14px; color: var(--muted); font-size: .98rem; line-height: 1.7; }
.prose .author-box .link-arrow { color: var(--ink); text-decoration: underline; text-decoration-color: var(--green); text-underline-offset: 4px; text-transform: none; letter-spacing: 0; font-size: .95rem; }
.prose .author-box .link-arrow:hover { color: var(--green); }
@media (max-width: 680px) { .author-box { grid-template-columns: 1fr; } }
img { height: auto; }
.nl-bar__title { max-width: 330px; }
.nl-bar { grid-template-columns: auto minmax(220px, 330px) 1fr minmax(260px, 340px); }
@media (max-width: 1100px) { .nl-bar { grid-template-columns: auto 1fr; } }
.avatar--brand { background: var(--green-soft); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--line); padding: 20%; }
.byline .avatar--brand { box-shadow: none; padding: 16%; }
.avatar--brand .brand__mark { width: 100%; height: 100%; }
