/* ==========================================================================
   Orange Fairs blog — templates on top of of.css.
   Also neutralises the Astra defaults that leak into our markup.
   ========================================================================== */

/* Astra resets that fight the design system */
body.of-blog { background: var(--of-paper); font-family: var(--of-font); color: var(--of-ink); }
body.of-blog a { color: var(--of-orange-ink); }
body.of-blog .of-btn--primary, body.of-blog .of-btn--primary:hover { color: var(--of-ink); }
body.of-blog .of-btn--ghost { color: var(--of-ink); }
body.of-blog .of-cta .of-btn--ghost { color: #fff; border-color: #fff; }
body.of-blog .of-nav__link, body.of-blog .of-mega a, body.of-blog .of-footer a, body.of-blog .of-header__tel { color: var(--of-ink); }
body.of-blog .of-footer a { color: var(--of-ink-2); }
body.of-blog .of-topbar a { color: #fff; }
body.of-blog h1, body.of-blog h2, body.of-blog h3, body.of-blog h4 { font-family: var(--of-font); color: var(--of-ink); }
body.of-blog .of-cta h2 { color: #fff; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Dark CTA index list */
.of-cta .of-index, .of-cta .of-index li { border-color: #4A5057; }
body.of-blog .of-cta .of-index a, .of-cta .of-index a { color: #fff; }
.of-cta .of-index a span { color: #C4CAD0; }
.of-cta .of-index a:hover strong { color: var(--of-orange); }

/* Listing hero */
.of-bloghero__grid { display: grid; gap: var(--s5); align-items: end; }
@media (min-width: 992px) { .of-bloghero__grid { grid-template-columns: 1.4fr 1fr; gap: var(--s8); } }
.of-bloghero h1 { font-stretch: 74%; }
.of-search label { display: block; font-size: var(--of-fs-sm); font-weight: 600; margin-bottom: 6px; }
.of-search__row { display: flex; gap: 8px; }
.of-search input { flex: 1; min-width: 0; min-height: 48px; padding: 10px 14px; border: 1px solid #9AA2AA; border-radius: var(--of-r-ctl); font: 400 1rem var(--of-font); background: #fff; }
.of-search input:focus { outline: 2px solid var(--of-orange); outline-offset: 0; }

/* Category chips */
.of-chips { margin-top: var(--s6); }
.of-chips ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.of-chips li { margin: 0; }
.of-chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border: 1px solid var(--of-alu); background: #fff; color: var(--of-ink) !important; text-decoration: none; font-weight: 600; font-size: var(--of-fs-sm); font-stretch: 92%; border-radius: var(--of-r-ctl); }
.of-chips a:hover { border-color: var(--of-ink); }
.of-chips a[aria-current="page"] { background: var(--of-ink); border-color: var(--of-ink); color: #fff !important; }

/* Featured article */
.of-featured-wrap { padding-bottom: var(--s8); }
.of-featured { display: grid; gap: var(--s5); align-items: center; }
@media (min-width: 992px) { .of-featured { grid-template-columns: 1.25fr 1fr; gap: var(--s8); } }
.of-featured__media { display: block; overflow: hidden; background: var(--of-alu-light); }
.of-featured__media img, .of-featured__media .of-post-card__ph { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; transition: transform .4s; }
.of-featured__media:hover img { transform: scale(1.02); }
.of-featured__title { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.75rem); font-stretch: 76%; margin: var(--s3) 0; }
.of-featured__title a { color: var(--of-ink) !important; text-decoration: none; }
.of-featured__title a:hover { text-decoration: underline; text-decoration-color: var(--of-orange); }
.of-featured__body .of-btn + .of-muted { margin-left: 12px; }
.of-featured__excerpt { color: var(--of-ink-2); font-size: var(--of-fs-lg); line-height: 1.5; }

/* Card grid — equal heights, fixed image ratio */
.of-post-grid { display: grid; gap: var(--s5); grid-template-columns: 1fr; }
@media (min-width: 640px) { .of-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .of-post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.of-post-card { display: flex; flex-direction: column; background: #fff; border-top: 3px solid var(--of-ink); height: 100%; }
.of-post-card__media { display: block; overflow: hidden; background: var(--of-alu-light); }
.of-post-card__media img, .of-post-card__ph { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .35s; }
.of-post-card__ph { background: repeating-linear-gradient(90deg, #E3E6E9 0 39px, #D6DADE 39px 40px); }
.of-post-card__media:hover img { transform: scale(1.03); }
.of-post-card__body { display: flex; flex-direction: column; flex: 1; padding: var(--s5); }
.of-post-card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: var(--of-fs-xs); color: var(--of-ink-3); margin: 0 0 var(--s3); }
.of-post-card__meta a { color: var(--of-orange-ink) !important; font-weight: 650; text-decoration: none; }
.of-post-card__title { font-size: 1.3rem; font-stretch: 86%; line-height: 1.2; margin: 0 0 var(--s3); }
.of-post-card__title a { color: var(--of-ink) !important; text-decoration: none; }
.of-post-card__title a:hover { text-decoration: underline; text-decoration-color: var(--of-orange); }
.of-post-card__excerpt { color: var(--of-ink-2); font-size: var(--of-fs-sm); margin-bottom: var(--s4); }
.of-post-card__more { margin: auto 0 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: var(--of-fs-sm); }

/* Pagination */
.of-pagination { margin-top: var(--s7); }
.of-pagination ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.of-pagination li { margin: 0; }
.of-pagination a, .of-pagination span { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 14px; border: 1px solid var(--of-alu); background: #fff; color: var(--of-ink) !important; text-decoration: none; font-weight: 600; border-radius: var(--of-r-ctl); }
.of-pagination .current { background: var(--of-ink); color: #fff !important; border-color: var(--of-ink); }
.of-pagination a:hover { border-color: var(--of-ink); }

/* Single article */
.of-article__head { background: var(--of-alu-light); border-bottom: 1px solid var(--of-alu-2); padding: clamp(28px, 4vw, 56px) 0 0; }
.of-article__narrow { max-width: 920px; margin-left: auto; margin-right: auto; }
@media (min-width: 1200px) { .of-article__narrow { margin-left: calc((100% - var(--of-max)) / 2 + 0px); } }
.of-article__cat { margin: 0 0 var(--s3); }
.of-article__cat a { font-weight: 700; font-size: var(--of-fs-sm); text-decoration: none; border-bottom: 2px solid var(--of-orange); color: var(--of-ink) !important; }
.of-article__title { font-size: clamp(2.1rem, 1.3rem + 3vw, 3.6rem); font-stretch: 74%; max-width: 22ch; }
.of-article__intro { font-size: var(--of-fs-lg); color: var(--of-ink-2); line-height: 1.5; max-width: 62ch; }
.of-article__meta { list-style: none; margin: var(--s5) 0 0; padding: 0 0 var(--s6); display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: var(--of-fs-sm); color: var(--of-ink-2); }
.of-article__meta li { margin: 0; }
.of-article__hero { margin: 0 auto; padding-bottom: 0; }
.of-article__hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; margin-bottom: -1px; }
.of-article__hero figcaption { font-size: var(--of-fs-xs); color: var(--of-ink-3); padding: 8px 0 12px; }
.of-article__layout { display: grid; gap: var(--s6); padding-top: var(--s8); padding-bottom: var(--s8); grid-template-columns: minmax(0, 1fr); }
.of-article__layout > *, .of-featured > *, .of-bloghero__grid > * { min-width: 0; }
.of-bloghero__grid { grid-template-columns: minmax(0, 1fr); }
.of-featured { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .of-article__layout.has-toc { grid-template-columns: 260px minmax(0, 1fr); gap: var(--s8); } }
.of-article__body { max-width: 72ch; font-size: 1.125rem; line-height: 1.7; }
.of-article__body > * + * { margin-top: 0; }
.of-article__body h2 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem); font-stretch: 80%; margin: 1.8em 0 .5em; scroll-margin-top: calc(var(--of-header-h) + 24px); }
.of-article__body h3 { font-size: 1.35rem; font-stretch: 88%; margin: 1.5em 0 .4em; scroll-margin-top: calc(var(--of-header-h) + 24px); }
.of-article__body img { height: auto; }
.of-article__body figure, .of-article__body .wp-block-image { margin: var(--s6) 0; }
.of-article__body figcaption, .of-article__body .wp-caption-text { font-size: var(--of-fs-xs); color: var(--of-ink-3); margin-top: 6px; }
.of-article__body blockquote { margin: var(--s6) 0; padding: var(--s5); background: var(--of-alu-light); border-left: 4px solid var(--of-orange); font-size: 1.1rem; }
.of-article__body table { width: 100%; border-collapse: collapse; font-size: var(--of-fs-sm); display: block; overflow-x: auto; }
.of-article__body th, .of-article__body td { border-bottom: 1px solid var(--of-alu-2); padding: 10px 12px; text-align: left; vertical-align: top; }
.of-article__body thead th { background: var(--of-ink); color: #fff; }
.of-article__body .wp-block-table { margin: var(--s6) 0; }
/* Highlighted information: authors can use a Quote/Pullquote block, or a Group block with class "of-note" */
.of-article__body .of-note, .of-article__body .wp-block-pullquote { border: 1px solid var(--of-alu); border-top: 4px solid var(--of-orange); padding: var(--s5); background: #fff; text-align: left; }

/* TOC */
.of-article__aside { align-self: start; }
@media (min-width: 1100px) { .of-article__aside { position: sticky; top: calc(var(--of-header-h) + 24px); } }
.of-toc { border-top: 3px solid var(--of-ink); padding-top: var(--s4); font-size: var(--of-fs-sm); }
.of-toc__title { font-size: 1rem !important; font-stretch: 92% !important; margin: 0 0 var(--s3) !important; }
.of-toc ol { margin: 0; padding-left: 1.2em; }
.of-toc li { margin-bottom: 8px; }
.of-toc a { color: var(--of-ink-2) !important; text-decoration: none; }
.of-toc a:hover { color: var(--of-orange-ink) !important; text-decoration: underline; }

/* Services box, author, tags */
.of-article__services { margin-top: var(--s8); padding: var(--s5); background: var(--of-alu-light); border-left: 6px solid var(--of-orange); }
.of-article__services h2 { font-size: 1.5rem !important; margin: 0 0 var(--s3) !important; }
.of-article__services .of-index { grid-template-columns: 1fr !important; }
.of-article__services .of-index a { color: var(--of-ink) !important; }
.of-author { display: grid; grid-template-columns: 72px 1fr; gap: var(--s4); margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--of-alu); }
.of-author img { border-radius: 50%; }
.of-author h2 { font-size: 1.15rem !important; margin: 0 0 6px !important; }
.of-author p { font-size: var(--of-fs-sm); color: var(--of-ink-2); }
.of-article__tags { margin-top: var(--s5); font-size: var(--of-fs-sm); color: var(--of-ink-3); }
.of-article__tags a { display: inline-block; margin: 0 4px 4px 0; padding: 2px 10px; border: 1px solid var(--of-alu); color: var(--of-ink-2) !important; text-decoration: none; }

/* Prev / next */
.of-prevnext { display: grid; gap: var(--s4); padding-bottom: var(--s8); }
@media (min-width: 768px) { .of-prevnext { grid-template-columns: 1fr 1fr; } }
.of-prevnext a { display: block; padding: var(--s5); border: 1px solid var(--of-alu); color: var(--of-ink) !important; text-decoration: none; font-weight: 650; font-stretch: 92%; font-size: 1.1rem; line-height: 1.3; }
.of-prevnext a:hover { border-color: var(--of-ink); }
.of-prevnext span { display: block; font-size: var(--of-fs-xs); font-weight: 500; color: var(--of-ink-3); margin-bottom: 6px; }
.of-prevnext__next { text-align: right; }
@media (min-width: 768px) { .of-prevnext__next:only-child { grid-column: 2; } }

/* Rank Math breadcrumbs markup */
.of-crumbs--rm .rank-math-breadcrumb p { margin: 0; }
.of-crumbs--rm a { color: var(--of-ink-2) !important; text-decoration: none; }
.of-crumbs--rm .separator { color: var(--of-alu); margin: 0 4px; }

/* v2: dark photo hero on listing/archive/search */
body.of-blog .of-pagehero h1 { color: #fff; }
.of-bloghero .of-search label { color: #D3D8DD; }
.of-bloghero .of-search input { background: rgba(255,255,255,.95); border-color: transparent; }
.of-bloghero .of-chips a { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: #fff !important; backdrop-filter: blur(6px); }
.of-bloghero .of-chips a:hover { border-color: #fff; }
.of-bloghero .of-chips a[aria-current="page"] { background: linear-gradient(135deg, #FF7A2E, #E0560B); border-color: transparent; }
.of-post-card { border-top: 0; border-radius: var(--of-r); overflow: hidden; box-shadow: var(--of-shadow); transition: transform .3s, box-shadow .3s; }
.of-post-card:hover { transform: translateY(-6px); box-shadow: var(--of-shadow-lg); }
.of-featured { background: #fff; border-radius: var(--of-r); overflow: hidden; box-shadow: var(--of-shadow-lg); }
.of-featured__body { padding: 8px 32px 32px; }
@media (min-width: 992px) { .of-featured__body { padding: 32px 40px 32px 0; } }
.of-article__head { background: var(--of-soft); }
.of-article__hero img { border-radius: var(--of-r) var(--of-r) 0 0; }
.of-pagination .current { background: linear-gradient(135deg, #FF7A2E, #E0560B); border-color: transparent; }
.of-pagination a, .of-pagination span { border-radius: 999px; }
.of-prevnext a { border-radius: var(--of-r); box-shadow: var(--of-shadow); border-color: transparent; }
.of-article__services { border-radius: var(--of-r); border-left: 0; background: #FFF6F0; box-shadow: inset 4px 0 0 var(--of-orange); }
/* v2: dark footer + featured layout inside the blog */
body.of-blog .of-footer h2 { color: #fff; }
body.of-blog .of-footer a { color: #C4CAD0; }
body.of-blog .of-footer a:hover { color: #FFB088; }
body.of-blog .of-footer__social a { color: #fff; }
@media (min-width: 992px) { .of-featured { grid-template-columns: 1.25fr 1fr; } }

/* The site's own Call + WhatsApp buttons are in the footer on every blog page.
   Hide the Click to Chat plugin button and Astra's scroll-to-top so nothing doubles up or overlaps. */
.ht-ctc, .ht-ctc-chat, .ht_ctc_chat_greetings_box, #ht-ctc-chat, #ast-scroll-top, .ast-scroll-top-icon { display: none !important; }
/* Keep the Call + WhatsApp buttons above Astra and plugin elements, but below the open mobile menu (65/70). */
.of-blog .of-floats { z-index: 64 !important; }
.of-blog .of-actionbar { z-index: 63 !important; }

/* In-article quote box (one per long post) */
.of-inline-cta { margin: 32px 0; padding: 22px 24px; border-radius: 16px; background: #FFF4EC; border: 1px solid #FFD9C2; border-left: 5px solid var(--of-orange); }
.of-inline-cta p { margin: 0 0 12px; color: var(--of-ink); }
.of-inline-cta__btns { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 0 !important; }
.of-inline-cta .of-btn { color: #fff !important; text-decoration: none; }

/* =====================================================================
   v1.3 (5 Nov 2026) – live-site fixes
   ===================================================================== */

/* --- Header: Astra styles <button> (uppercase, letter-spacing, coloured hover box).
       Make the "Our services" button look exactly like the other menu links. --- */
.of-header .of-nav__link, .of-header button.of-nav__link, .of-header button.of-nav__link:hover, .of-header button.of-nav__link:focus,
.of-header .of-burger, .of-header .of-burger:hover, .of-header .of-burger:focus {
  text-transform: none !important; letter-spacing: normal !important; background: transparent !important;
  border: 0 !important; box-shadow: none;
}
.of-header button.of-nav__link {
  display: inline-flex !important; align-items: center; gap: 6px; min-height: 44px; padding: 10px 12px !important; margin: 0;
  font: 600 .98rem/1 var(--of-font) !important; font-stretch: 90% !important; color: var(--of-ink) !important; border-radius: var(--of-r-ctl);
}
@media (min-width: 1140px) and (max-width: 1339px) { .of-header button.of-nav__link { padding: 10px 9px !important; font-size: .95rem !important; } }
@media (max-width: 1139px) { .of-header button.of-nav__link { width: 100%; justify-content: space-between; padding: 14px 4px !important; font-size: 1.1rem !important; } }
.of-header button.of-nav__link:hover, .of-header button.of-nav__link[aria-expanded="true"] { color: var(--of-orange-ink) !important; }
.of-header button.of-nav__link[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--of-orange); }
.of-header .of-nav__link:hover, .of-header a:hover, .of-header a:focus { text-decoration: none !important; }
.of-blog h1, .of-blog h2, .of-blog h3, .of-blog h4 { text-transform: none !important; letter-spacing: normal; }

/* --- Links & buttons: keep the site's colours on hover (Astra recolours every a:hover) --- */
.of-blog .of-btn--primary, .of-blog .of-btn--primary:hover, .of-blog .of-btn--primary:focus { color: #fff !important; text-decoration: none !important; }
.of-blog .of-btn--ghost, .of-blog .of-btn--ghost:hover { text-decoration: none !important; }
.of-blog .of-post-card a:hover, .of-blog .of-post-card a:focus { text-decoration: none; }
.of-blog .of-post-card__title a:hover { color: var(--of-orange-ink) !important; text-decoration: none; }
.of-blog .of-post-card__media:focus { outline: none; }

/* --- Post cards: fixed 16:10 picture box whatever size the uploaded image is,
       so cards in a row are the same height and never stretch. --- */
.of-post-grid { align-items: stretch; }
.of-post-card { height: auto !important; min-height: 0; }
.of-post-card__media { position: relative; display: block; aspect-ratio: 16 / 10; height: auto !important; overflow: hidden; background: var(--of-alu-light); }
.of-post-card__media img, .of-post-card__media .of-post-card__ph {
  position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; max-width: none !important;
  aspect-ratio: auto !important; object-fit: cover; margin: 0 !important; contain-intrinsic-size: auto !important;
}
.of-post-card:hover { transform: translateY(-4px); }
.of-post-card:hover .of-post-card__media img { transform: scale(1.04); }
.of-post-card__body { padding: 22px 24px 24px; }
.of-post-card__excerpt { margin-bottom: 18px; }
.of-post-card__more { justify-content: flex-start; }

/* --- Single article: content + sticky quote card, using the full page width --- */
.of-article__hero img { height: auto; max-height: 560px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px 14px 0 0; }
.of-article__layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
@media (min-width: 1024px) { .of-article__layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; } }
.of-article__body { max-width: none !important; }
.of-article__aside { align-self: start; display: grid; gap: 24px; }
@media (min-width: 1024px) { .of-article__aside { position: sticky; top: calc(var(--of-header-h, 84px) + 24px); } }
.of-sidecard { background: linear-gradient(150deg, #14171B, #2A2F36); color: #fff; border-radius: 18px; padding: 26px 24px; box-shadow: var(--of-shadow); display: grid; gap: 10px; }
.of-sidecard__kicker { margin: 0; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #FFB088; }
.of-sidecard__title { margin: 0; font-size: 1.45rem; font-weight: 800; font-stretch: 85%; line-height: 1.15; color: #fff; }
.of-sidecard__text { margin: 0 0 6px; color: #D5DADF; font-size: .95rem; line-height: 1.5; }
.of-sidecard .of-btn { width: 100%; justify-content: center; text-align: center; }
.of-sidecard .of-btn--ghost { color: #fff !important; border-color: rgba(255,255,255,.45); }
.of-sidecard__links { list-style: none; margin: 8px 0 0; padding: 12px 0 0; border-top: 1px solid rgba(255,255,255,.15); display: grid; gap: 8px; }
.of-sidecard__links li { margin: 0; }
.of-sidecard__links a { color: #fff !important; text-decoration: none; font-weight: 600; font-size: .95rem; }
.of-sidecard__links a::before { content: "→ "; color: #FF8A4C; }
.of-sidecard__links a:hover { color: #FFB088 !important; }
@media (max-width: 1023px) { .of-article__aside { order: 2; } }

/* --- Table of contents from the TOC plugins: full width, site style --- */
.of-article__body #toc_container, .of-article__body #ez-toc-container {
  width: 100% !important; max-width: none !important; display: block !important; box-sizing: border-box;
  background: var(--of-alu-light) !important; border: 1px solid var(--of-alu-2) !important; border-left: 4px solid var(--of-orange) !important;
  border-radius: 12px; padding: 20px 24px !important; margin: 0 0 32px !important; font-size: 1rem;
}
.of-article__body #toc_container .toc_title, .of-article__body #ez-toc-container .ez-toc-title { text-align: left !important; font-weight: 800; font-size: 1.1rem; margin: 0 0 10px; }
.of-article__body #toc_container ul, .of-article__body #ez-toc-container ul { margin: 0; padding-left: 1.1em; }
.of-article__body #toc_container li, .of-article__body #ez-toc-container li { margin: 4px 0; }
.of-article__body #toc_container a, .of-article__body #ez-toc-container a { color: var(--of-ink) !important; text-decoration: none; }
.of-article__body #toc_container a:hover, .of-article__body #ez-toc-container a:hover { color: var(--of-orange-ink) !important; text-decoration: underline; }
@media (min-width: 900px) { .of-article__body #toc_container > ul, .of-article__body #ez-toc-container nav > ul { columns: 2; column-gap: 32px; } }

/* --- Related articles at the bottom: same card fixes --- */
.of-section--alu .of-post-grid { margin-top: 8px; }

/* --- reCAPTCHA badge from Contact Form 7 sits under the floating buttons: move it left --- */
.grecaptcha-badge { right: auto !important; left: -186px !important; transition: left .3s !important; }
.grecaptcha-badge:hover { left: 0 !important; }
