/* Single blog post (pc-blog/single.php). Matches the old Elementor single-post template (2630), measured on Local
   (= Prod data) 2026-11-24. Every class is prefixed pc-post-. Breakpoints as Elementor's: tablet ≤1024px, mobile ≤767px.
   Rules that Elementor applied from its own stylesheets (kit 6, frontend.min.css, the template's custom CSS) are
   repeated here, scoped to .pc-post, so the page keeps its look when Elementor is switched off (plan step 4). */

/* Fonts: the same files Elementor used on posts (Inter: the 2023 variable TTF from the media library, declared as
   weight "normal" like Elementor's custom font, so the post-info's weight 300 renders as before). */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: normal; font-display: auto; src: url('/wp-content/uploads/2023/05/Inter-VariableFont_slntwght.ttf') format('truetype'); }
@font-face { font-family: 'Mont Bold'; font-style: normal; font-weight: normal; font-display: auto; src: url('/wp-content/uploads/2023/01/FontsFree-Net-Mont-Bold.ttf') format('truetype'); }
@font-face { font-family: 'All Round Gothic W01'; font-style: normal; font-weight: normal; font-display: auto; src: url('/wp-content/uploads/2023/01/All-Round-Gothic-W01-Demi.ttf') format('truetype'); }
@font-face { font-family: 'Actor'; font-style: normal; font-weight: 400; font-display: swap; src: url('../pc-fonts/actor-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 100 900; font-stretch: 100%; font-display: swap; src: url('../pc-fonts/roboto-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Page frame: grey page, a white box up to 1140px wide with 60px padding (none on mobile), 50px above and below */
.pc-post { margin: 50px 0; overflow: hidden; font-family: 'Actor', sans-serif; }
.pc-post *, .pc-post *::before, .pc-post *::after { box-sizing: border-box; }
.pc-post-wrap { display: flex; max-width: 1140px; margin: 0 auto; }
.pc-post-box { display: flex; flex-wrap: wrap; align-content: flex-start; position: relative; width: 100%; margin: 0; padding: 60px; background: #fff; }
.pc-post-block { position: relative; width: 100%; }
.pc-post-feat, .pc-post-title-block, .pc-post-info { text-align: center; }
.pc-post-block:not(:last-child) { margin-bottom: 20px; }
/* Link colours from Elementor's kit (.elementor-kit-6 a), scoped with .pc-post so they win over the kit while it's
   still loaded and stay when it's gone */
.pc-post a { color: #CF515E; box-shadow: none; text-decoration: none; }
.pc-post a:hover { color: #437391; }
.pc-post .pc-post-icon { display: block; fill: currentColor; }

/* Featured image: Elementor's 1140×500 crop, full width */
.pc-post-feat-img { display: block; width: 100%; height: auto; max-width: 100%; aspect-ratio: 1140 / 500; object-fit: cover; border: none; border-radius: 0; box-shadow: none; }

/* Title */
.pc-post .pc-post-title { margin: 0; padding: 0; font-family: 'Mont Bold', sans-serif; font-size: 48px; font-weight: 600; line-height: 1.2; color: #0D3C5E; text-align: center; }

/* Post info: date and author between dotted lines */
.pc-post-info-box { padding: 15px 0; border-style: dotted; border-color: #afafaf; border-width: 1px 0; }
.pc-post .pc-post-info-list { display: flex; flex-wrap: wrap; justify-content: center; margin: 0 -12.5px; padding: 0; list-style: none; }
.pc-post .pc-post-info-list li { display: flex; align-items: center; justify-content: center; position: relative; margin: 0 12.5px; padding: 0; font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 300; word-break: break-word; }
.pc-post-info-icon { display: flex; position: relative; width: 13px; color: #54595f; }
.pc-post-info-icon .pc-post-icon { width: 13px; height: 13px; }
.pc-post-info-text { display: inline-block; align-self: center; padding-left: 8px; color: #0D3C5E; }
.pc-post .pc-post-info-text a { display: inline; color: inherit; }

/* Tags (none of the posts have tags today; same style as Elementor's second Post Info widget) */
.pc-post .pc-post-tags { margin-top: -10px; margin-bottom: 40px; }
.pc-post .pc-post-tags .pc-post-info-list { justify-content: flex-start; margin: 0 -8px; }
.pc-post .pc-post-tags .pc-post-info-list li { margin: 0 8px; font-family: inherit; font-size: 13px; font-weight: inherit; text-transform: uppercase; }
.pc-post .pc-post-tags .pc-post-info-icon { width: 14px; color: #7a7a7a; }
.pc-post .pc-post-tags .pc-post-icon { width: 14px; height: 14px; }
.pc-post .pc-post-tags .pc-post-info-text { padding-left: 9px; color: #a3a3a3; }

/* Table of contents: collapsed until opened, numbered, nested */
.pc-post-toc-box { margin: 0 150px; padding: 0; border: 1px solid #9da5ae; border-radius: 3px; overflow: hidden; }
.pc-post-toc-header { display: flex; flex-direction: row; align-items: center; justify-content: flex-end; column-gap: 0; padding: 20px; border-bottom: 1px solid #9da5ae; }
.pc-post .pc-post-toc-title { flex-grow: 1; margin: 0; padding: 0; font-family: 'Mont Bold', sans-serif; font-size: 18px; font-weight: 400; line-height: 1.2; color: #0D3C5E; text-align: center; text-transform: none; letter-spacing: normal; }
.pc-post .pc-post-toc-toggle, .pc-post .pc-post-toc-toggle:hover, .pc-post .pc-post-toc-toggle:focus { display: inline-flex; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: #0D3C5E; font-size: 16px; line-height: 1; text-transform: none; cursor: pointer; }
.pc-post .pc-post-toc-toggle:focus-visible { outline: 2px solid #0D3C5E; outline-offset: 2px; }
.pc-post-toc-toggle .pc-post-icon { width: 14px; height: 16px; }
.pc-post .pc-post-toc.is-collapsed .pc-post-toc-collapse, .pc-post .pc-post-toc:not(.is-collapsed) .pc-post-toc-expand { display: none; }
.pc-post-toc.is-collapsed .pc-post-toc-body { display: none; }
.pc-post-toc-body { padding: 20px; overflow-y: auto; }
.pc-post .pc-post-toc-body ol { margin: 0 0 24px 16px; padding: 0; list-style: none; counter-reset: pc-toc; }
.pc-post .pc-post-toc-body li { margin: 16px 0 8px; padding: 0; counter-increment: pc-toc; }
.pc-post .pc-post-toc-body li ol { margin: 8px 0 0 16px; }
.pc-post-toc-item { display: flex; align-items: center; }
.pc-post-toc-item::before { content: counters(pc-toc, ".") ". "; margin-inline-end: 8px; }
.pc-post .pc-post-toc-body a { color: #0D3C5E; text-decoration: underline; }
.pc-post .pc-post-toc-body a:hover, .pc-post .pc-post-toc-body a.is-active { color: #CF515E; text-decoration: underline; }
.pc-post-toc-anchor { scroll-margin-top: var(--pc-post-anchor-offset, 0px); }

/* Post content (the_content). Font and colours from the template; heading and list rules from its custom CSS, with
   :where() so they keep that CSS's specificity (e.g. Astra's "li > ul" indent still wins over "ul", as before). */
.pc-post-content-block { font-family: 'Inter', sans-serif; font-size: 16px; line-height: 1.5em; color: #000; }
.pc-post-content { margin: 0; padding: 0 150px; }
.pc-post-content img { height: auto; max-width: 100%; border: none; border-radius: 0; box-shadow: none; }
.pc-post-content embed, .pc-post-content iframe, .pc-post-content object, .pc-post-content video { max-width: 100%; width: 100%; margin: 0; border: none; line-height: 1; }
.pc-post-content hr { margin: 0; background-color: transparent; }
.pc-post-content h1 { font-family: 'All Round Gothic W01', sans-serif; }
.pc-post-content h2 { font-family: 'Mont Bold', sans-serif; }
:where(.pc-post-content) h2.wp-block-heading { margin-top: 1.5em; margin-bottom: .5em; font-family: 'Mont Bold', sans-serif; font-size: 36px; line-height: 1.5em; color: #0D3C5E; }
:where(.pc-post-content) h3.wp-block-heading { margin-top: 1.5em; margin-bottom: .5em; font-family: 'Mont Bold', sans-serif; font-size: 28px; color: #3D6D8C; }
:where(.pc-post-content) h4.wp-block-heading { margin-top: 1.5em; margin-bottom: .5em; font-family: 'Mont Bold', sans-serif; font-size: 22px; color: #5C88A3; }
:where(.pc-post-content) h5.wp-block-heading { margin-top: 1.5em; margin-bottom: .5em; font-family: 'Mont Bold', sans-serif; font-size: 18px; color: #5C88A3; letter-spacing: .03em; }
:where(.pc-post-content) ul, :where(.pc-post-content) ol { margin-left: 1em; }
:where(.pc-post-content) ul li, :where(.pc-post-content) ol li { margin-top: 1em; }

/* Collapsible sections in post content (<details class="pc-accordion">), same look as the Essential Addons
   "Advanced Accordion" they replace (measured on Prod 2026-11-25): white bar with a navy +/−, Mont Bold 22px title
   (18px on mobile), open section framed in #eee with 15px padding. Native <details>: works without JS. */
.pc-post-content details.pc-accordion { margin: 0; padding: 0; border: 0; }
.pc-post-content .pc-accordion > summary { display: flex; align-items: center; padding: 10px 0 10px 10px; background: #fff; border: 1px solid rgba(0, 0, 0, .02); cursor: pointer; list-style: none; }
.pc-post-content .pc-accordion > summary::-webkit-details-marker { display: none; }
.pc-post-content .pc-accordion > summary::before { content: ''; flex: 0 0 16px; width: 16px; height: 16px; margin-right: 29px; background: linear-gradient(#0D3C5E, #0D3C5E) center / 14px 2.5px no-repeat, linear-gradient(#0D3C5E, #0D3C5E) center / 2.5px 14px no-repeat; }
.pc-post-content .pc-accordion[open] > summary::before { background: linear-gradient(#0D3C5E, #0D3C5E) center / 14px 2.5px no-repeat; }
.pc-post-content .pc-accordion > summary:focus-visible { outline: 2px solid #0D3C5E; outline-offset: 2px; }
.pc-post-content .pc-accordion h3.pc-accordion-title { margin: 0; padding: 0; font-family: 'Mont Bold', sans-serif; font-size: 22px; font-weight: 400; line-height: 26px; color: #0D3C5E; }
.pc-post-content .pc-accordion-body { padding: 15px; border: 1px solid #eee; font-size: 16px; color: #333; } /* 16px on mobile too, like the accordion it replaces (post text is 15px there) */
.pc-post-content .pc-accordion-body > :last-child { margin-bottom: 0; }
.pc-post-content .pc-accordion-video { max-width: 560px; margin: 0 auto 1em; }

/* Author box */
.pc-post-author { padding: 35px 45px; background-color: #FFF0F5; border-radius: 0 0 6px 6px; }
.pc-post-author-box { display: flex; align-items: center; }
.pc-post-author-avatar { flex-shrink: 0; align-self: flex-start; margin: 0 45px 0 0; }
.pc-post-author-avatar img { display: block; width: 100px; height: 100px; max-width: 100%; border: none; border-radius: 500px; box-shadow: none; object-fit: cover; }
.pc-post-author-text { flex-grow: 1; font-size: 17px; }
.pc-post .pc-post-author-name { margin: 0 0 5px; padding: 0; font-family: 'Mont Bold', sans-serif; font-size: 20px; font-weight: 400; line-height: 1.2; color: #0D3C5E; }
.pc-post-author-bio { margin-bottom: .8em; font-family: 'Inter', sans-serif; font-size: 15px; color: #0D3C5E; }

/* Previous / next */
.pc-post-nav-block { padding-top: 50px; }
.pc-post-nav { display: flex; overflow: hidden; }
.pc-post-nav-link { width: calc(50% - .5px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-post-nav-next { text-align: end; }
.pc-post .pc-post-nav-link a { display: flex; align-items: center; gap: 15px; max-width: 100%; }
.pc-post .pc-post-nav-next a { justify-content: flex-end; }
.pc-post-nav-arrow { display: flex; font-size: 30px; color: #d5d8dc; }
.pc-post-nav-arrow .pc-post-icon { width: 15px; height: 30px; transform: translateY(-5%); }
.pc-post-nav-text { display: flex; flex-direction: column; overflow: hidden; }
.pc-post-nav-next .pc-post-nav-text { text-align: end; }
.pc-post-nav-label { overflow: hidden; text-overflow: ellipsis; font-family: 'Roboto', sans-serif; font-size: 21px; text-transform: uppercase; color: #aaa; }
.pc-post-nav-title { overflow: hidden; text-overflow: ellipsis; font-size: .7em; }

/* Reading progress bar (was Essential Addons' "Reading Progress Bar" on the template) */
.pc-post-progress { position: fixed; top: 0; left: 0; z-index: 999999; width: 100%; height: 5px; pointer-events: none; }
.pc-post-progress-fill { width: 0; height: 5px; background-color: #1fd18e; transition: width 50ms ease; }
/* Essential Addons still prints its own bar in the footer while it's active: one bar is enough. */
.eael-reading-progress-wrap { display: none !important; }

@media (max-width: 1024px) {
  .pc-post-toc-box { margin: 0 50px; }
  .pc-post-content { padding: 0 50px; }
}
@media (max-width: 767px) {
  .pc-post-box { padding: 0; }
  .pc-post .pc-post-title { margin: 20px; font-size: 25px; }
  .pc-post .pc-post-info-list { margin: 0 -7.5px; }
  .pc-post .pc-post-info-list li { margin: 0 7.5px; line-height: 27px; }
  .pc-post-info-icon { width: 16px; }
  .pc-post-info-icon .pc-post-icon { width: 16px; height: 16px; }
  .pc-post-toc-box { margin: 0 20px; }
  .pc-post-content-block { font-size: 15px; }
  .pc-post-content { margin: 20px; padding: 0 30px; }
  :where(.pc-post-content) h2.wp-block-heading { margin-top: 1em; font-size: 28px; line-height: 1.3em; }
  :where(.pc-post-content) h3.wp-block-heading { font-size: 21px; }
  :where(.pc-post-content) h4.wp-block-heading { font-size: 20px; }
  .pc-post-author-avatar { margin-right: 20px; }
  .pc-post-author-avatar img { width: 75px; height: 75px; }
  .pc-post .pc-post-author-name { font-size: 18px; }
  .pc-post-author-bio { font-size: 12px; }
  .pc-post-content .pc-accordion h3.pc-accordion-title { font-size: 18px; line-height: 1.3; }
  .pc-post-content .pc-accordion > summary::before { margin-right: 14px; }
}
