/* Shared hero geometry is in company.css; these are Finergia's editorial layouts. */
.finergia-content--editorial { max-width: none; padding: 0; }
.finergia-content--editorial > article { max-width: none; }
:is(.fg-editorial-feed, .fg-editorial-post-body, .fg-editorial-post-navigation) { font-family: 'Finergia Sans', Arial, sans-serif; color: #123b36; font-size: 18px; line-height: 28px; }
:is(.fg-editorial-feed, .fg-editorial-post-body, .fg-editorial-post-navigation), :is(.fg-editorial-feed, .fg-editorial-post-body, .fg-editorial-post-navigation) * { box-sizing: border-box; }
:is(.fg-editorial-feed, .fg-editorial-post-body, .fg-editorial-post-navigation) :is(h1, h2, h3, h4, strong, b) { font-family: inherit; font-weight: 600; }
:is(.fg-editorial-feed, .fg-editorial-post-body, .fg-editorial-post-navigation) a:focus-visible { outline: 3px solid #206141; outline-offset: 5px; }
.fg-company-hero--career .fg-company-art img { object-position: 75% 64%; }
.fg-company-hero--news .fg-company-art img { object-position: center 58%; }
.fg-editorial-hero .fg-company-breadcrumb { position: static; margin: 24px 21px 0; padding: 0; background: transparent; border-radius: 0; transform: none; }
.fg-editorial-hero .fg-company-copy { margin-top: 0; padding-top: 28px; }
.fg-editorial-hero .fg-company-lead > :first-child { margin-top: 0; }
.fg-editorial-hero .fg-company-lead > :last-child { margin-bottom: 0; }
.fg-career-benefits { display: grid; gap: 20px; margin: 24px 0 56px; padding: 0; list-style: none; counter-reset: career-benefit; }
.fg-career-benefits > li { min-width: 0; margin: 0; padding: 28px; border: 1px solid #d5e0d4; border-radius: 20px; background: #fff; color: #526b63; counter-increment: career-benefit; }
.fg-career-benefits > li::before { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 24px; border: 1px solid #bdd0bb; border-radius: 50%; color: #206141; background: #edf4e4; font-size: 15px; font-weight: 600; content: counter(career-benefit, decimal-leading-zero); }
.fg-career-benefits > li > strong { display: block; margin-bottom: 16px; color: #123b36; font-size: 24px; line-height: 30px; }
.fg-career-benefits > li:first-child { background: #edf4e4; }
.fg-career-benefits > li:first-child::before { background: #c6df58; border-color: #c6df58; }
.finergia-content--company .fg-company-chapter:has(.fg-career-benefits).fg-company-reveal { animation: none; }
.fg-career-opportunities { margin: 0; padding: 32px 0; }
.fg-career-opportunities > .wp-block-group__inner-container, .fg-career-position > .wp-block-group__inner-container { display: contents; }
.fg-career-opportunities h2 { max-width: 680px; margin: 0 0 28px; font-size: 30px; line-height: 38px; text-wrap: balance; }
.fg-career-position { position: relative; margin: 0; padding: 32px 28px; border: 1px solid #bdd0bb; border-radius: 20px; background: #fff; }
.fg-career-position h3 { max-width: 620px; margin: 0 0 16px; color: #123b36; font-size: 28px; line-height: 36px; text-wrap: balance; }
.fg-career-position p { max-width: 620px; margin: 0; color: #526b63; }
.fg-career-position .fg-company-actions { margin-top: 24px; }
.fg-career-position .wp-block-button__link::after { margin-left: 12px; content: '↗'; font-size: 20px; }
.fg-company-next a[href^="mailto:"]:not(.wp-block-button__link) { color: #e0ed99; text-underline-offset: 4px; overflow-wrap: anywhere; }
.fg-company-next .fg-company-prose :is(strong, b) { color: inherit; }
.fg-editorial-inner { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 24px; }
.fg-editorial-feed { padding: 36px 0 80px; }
.fg-editorial-section-title { margin: 0 0 32px; font-size: 30px; line-height: 38px; text-wrap: balance; }
.fg-editorial-empty { position: relative; isolation: isolate; padding: 36px 28px; overflow: hidden; border: 1px solid #d5e0d4; border-radius: 24px; background: #fff; }
.fg-editorial-empty::after { position: absolute; z-index: -1; top: -85px; right: -120px; width: 300px; height: 300px; border: 1px solid #d5e0d4; border-radius: 50%; box-shadow: 0 0 0 40px rgb(237 244 228 / 60%), 0 0 0 80px rgb(237 244 228 / 30%); content: ''; pointer-events: none; }
.fg-editorial-empty h2, .fg-editorial-empty h3 { max-width: 640px; margin: 0 0 16px; font-size: 28px; line-height: 36px; text-wrap: balance; }
.fg-editorial-empty p { max-width: 600px; margin: 0; color: #526b63; }
.fg-editorial-empty .fg-company-actions { margin-top: 28px; }
.fg-editorial-reading { max-width: 800px; margin-inline: auto; padding: 0 24px; }
.fg-editorial-post-body { padding: 32px 0 64px; overflow-wrap: anywhere; }
.fg-editorial-post-body :is(p, ul, ol, blockquote, figure, table, pre) { margin-block: 0 28px; }
.fg-editorial-post-body :is(h2, h3, h4) { margin: 44px 0 20px; line-height: 1.3; text-wrap: balance; }
.fg-editorial-post-body h2 { font-size: 30px; }
.fg-editorial-post-body h3 { font-size: 25px; }
.fg-editorial-post-body h4 { font-size: 21px; }
.fg-editorial-post-body p { color: #526b63; }
.fg-editorial-post-body :is(strong, b) { color: #123b36; }
.fg-editorial-post-body a { color: #206141; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.fg-editorial-post-body a:hover { text-decoration-thickness: 2px; }
.fg-editorial-post-body li { margin-block: 10px; }
.fg-editorial-post-body blockquote { margin-inline: 0; padding: 24px 28px; border-left: 3px solid #206141; background: #edf4e4; font-size: 22px; line-height: 32px; }
.fg-editorial-post-body blockquote > :last-child { margin-bottom: 0; }
.fg-editorial-post-body img { max-width: 100%; height: auto; border-radius: 12px; }
.fg-editorial-post-body figcaption { margin-top: 10px; color: #526b63; font-size: 14px; line-height: 22px; text-align: center; }
.fg-editorial-post-body pre { max-width: 100%; padding: 20px; overflow: auto; background: #edf4e4; font-size: 15px; }
.fg-editorial-post-body iframe { max-width: 100%; }
.fg-editorial-post-body .post-password-form label { display: block; margin-top: 12px; }
.fg-editorial-post-body .post-password-form input { box-sizing: border-box; max-width: 100%; min-height: 44px; padding: 10px; border: 1px solid #9fb5a4; border-radius: 5px; font: inherit; }
.fg-editorial-post-body .post-password-form input[type="submit"] { margin-top: 16px; padding-inline: 24px; background: #c6df58; color: #123b36; cursor: pointer; }
.fg-editorial-post-navigation { padding-bottom: 80px; }
.fg-editorial-post-navigation .nav-links { display: grid; gap: 24px; padding-top: 28px; border-top: 1px solid #d5e0d4; }
.fg-editorial-post-navigation .nav-links a { display: block; padding: 16px 0; color: #206141; text-underline-offset: 5px; }
.fg-editorial-post-navigation .nav-subtitle { display: block; margin-bottom: 8px; color: #526b63; font-size: 14px; line-height: 22px; }
.fg-editorial-post-navigation .nav-title { font-size: 22px; line-height: 30px; }
.fg-editorial-page-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.fg-editorial-page-links > :is(a, span) { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 8px; border: 1px solid #d5e0d4; border-radius: 5px; }
.fg-editorial-page-links > .current { background: #123b36; color: #fff; }
/* Cards share the measured Capitalise Business Finance grid and link mechanics. */
.fg-editorial-feed .fg-editorial-inner { max-width: 1440px; padding-inline: 16px; }
.fg-editorial-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.finergia-content--editorial .fg-editorial-card { position: relative; display: flex; flex-direction: column; min-width: 0; max-width: none; margin: 0; padding: 32px; border: 0; border-radius: 4px; background: #fff; box-shadow: 0 2px 8px rgb(0 0 0 / 10%); }
.fg-editorial-card-image { margin: 0 0 32px; }
.fg-editorial-card-image img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 4px; }
.fg-editorial-card-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; }
.fg-editorial-date { display: block; margin: 0 0 12px; color: #526b63; font-size: 14px; line-height: 22px; }
.fg-editorial-hero .fg-editorial-date { margin: 20px 0 0; }
.fg-editorial-card-title { margin: 0; font-size: 18px; line-height: 24px; }
.fg-editorial-card-title a { color: #123b36; text-decoration: none; touch-action: manipulation; }
.fg-editorial-card-title a::after { position: absolute; inset: 0; border-radius: 4px; content: ''; }
.fg-editorial-card-title a:focus-visible { outline: none; }
.fg-editorial-card-title a:focus-visible::after { outline: 3px solid #206141; outline-offset: 4px; }
.fg-editorial-excerpt { flex: 1; margin: 16px 0 0; color: #526b63; font-size: 16px; line-height: 24px; }
.fg-editorial-excerpt p { margin: 0; }
.fg-editorial-read { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; margin-top: 32px; padding: 11px 0; color: #206141; font-size: 18px; font-weight: 600; line-height: 26px; transition: color 300ms cubic-bezier(.4, 0, .2, 1); }
.fg-editorial-card-title:has(+ .fg-editorial-read) { margin-bottom: 32px; }
.fg-editorial-card-title + .fg-editorial-read { margin-top: auto; }
.fg-editorial-read svg { flex: none; width: 24px; height: 24px; }
.fg-editorial-card:is(:hover, :focus-within) .fg-editorial-read { text-decoration: underline; text-underline-offset: 4px; }
.fg-editorial-feed .pagination { margin-top: 48px; }
.fg-editorial-feed .pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.fg-editorial-feed .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px 14px; border: 1px solid #bdd0bb; border-radius: 5px; color: #123b36; font-size: 16px; line-height: 24px; text-decoration: none; }
.fg-editorial-feed .page-numbers.current { border-color: #123b36; background: #123b36; color: #fff; }
.fg-editorial-feed a.page-numbers:hover { background: #edf4e4; text-decoration: underline; text-underline-offset: 4px; }
.fg-editorial-feed .page-numbers.dots { min-width: 24px; padding-inline: 0; border-color: transparent; }
.fg-editorial-enter { animation: fg-company-enter 640ms cubic-bezier(.22, 1, .36, 1) backwards; }
.fg-editorial-enter:focus-within { animation: none; }
@media (min-width: 768px) {
    .fg-career-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
    .fg-career-benefits > li { padding: 32px; }
    .fg-career-benefits > li:first-child { grid-column: 1 / -1; }
    .fg-career-position { padding: 40px; }
    .fg-editorial-inner { padding-inline: 40px; }
    .fg-editorial-feed .fg-editorial-inner { padding-inline: 48px; }
    .fg-editorial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    :is(.fg-career-benefits > li, .fg-editorial-card):nth-child(2n).fg-editorial-enter { animation-delay: 70ms; }
    .fg-editorial-feed { padding-bottom: 96px; }
    .fg-editorial-section-title { font-size: 34px; line-height: 42px; }
    .fg-editorial-empty { padding: 56px; }
    .fg-editorial-empty h2, .fg-editorial-empty h3 { font-size: 34px; line-height: 42px; }
    .fg-editorial-post-body { padding-top: 40px; font-size: 20px; line-height: 32px; }
    .fg-editorial-post-navigation .nav-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
    .fg-editorial-post-navigation .nav-next { grid-column: 2; text-align: right; }
}
@media (min-width: 960px) {
    .fg-company-body .fg-company-chapter:has(.fg-career-benefits) { display: block; }
    .fg-company-chapter:has(.fg-career-benefits) > .fg-company-section-title,
    .fg-company-chapter:has(.fg-career-benefits) > .wp-block-group__inner-container > .fg-company-section-title { max-width: 680px; }
    :is(.fg-company-hero--career, .fg-company-hero--news)::before { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #edf4e4 0%, rgb(237 244 228 / 98%) 26%, rgb(237 244 228 / 90%) 43%, rgb(237 244 228 / 12%) 72%, transparent 90%); content: ''; pointer-events: none; }
    .fg-company-hero--career .fg-company-art img { object-position: 80% center; }
    .fg-company-hero--news .fg-company-art img { object-position: 85% center; }
    .fg-editorial-hero .fg-company-breadcrumb { margin: 0 0 49px; }
    .fg-editorial-hero .fg-company-copy { width: 800px; padding-top: 0; }
}
@media (min-width: 1200px) {
    .fg-editorial-feed .fg-editorial-inner { padding-inline: 112px; }
    .fg-editorial-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .fg-editorial-card:nth-child(n).fg-editorial-enter { animation-delay: 0ms; }
    .fg-editorial-card:nth-child(3n + 2).fg-editorial-enter { animation-delay: 70ms; }
    .fg-editorial-card:nth-child(3n).fg-editorial-enter { animation-delay: 140ms; }
}
@media (prefers-reduced-motion: reduce) {
    :is(.fg-editorial-feed, .fg-career-benefits, .fg-career-position) *, :is(.fg-editorial-feed, .fg-career-benefits, .fg-career-position) *::before { animation: none !important; transition: none !important; }
}
@media print {
    .fg-editorial-feed, .fg-editorial-post-body { padding-block: 0; }
    .fg-editorial-post-navigation, .fg-editorial-feed .pagination { display: none; }
    .fg-editorial-reading, .fg-editorial-inner { max-width: none; padding: 0; }
    .fg-career-benefits > li { break-inside: avoid; }
    .fg-editorial-empty::after { display: none; }
    .fg-editorial-enter { animation: none !important; }
    .fg-editorial-card { break-inside: avoid; }
}
