/*
 * Floorinsite 2027 — site-wide restyle of Jannah + GeoDirectory.
 * Palette: near-black chrome (#0B0B0C), light reading surfaces (#F5F5F7), Floorinsite red used sparingly.
 * Type: Space Grotesk (headlines) + Geist (UI and body), self-hosted (SIL Open Font Licence, see assets/fonts/OFL.txt).
 * Selectors start with #tie-body so they win over Jannah's theme-options CSS without !important where possible.
 */

/* ——— Fonts ——— */
@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/SpaceGrotesk-Variable.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* ——— Tokens ——— */
:root {
  --fi-bg: #0b0b0c;
  --fi-bg-2: #121214;
  --fi-bg-3: #19191c;
  --fi-elev: #1c1c20;
  --fi-paper: #f5f5f7;
  --fi-paper-2: #ececef;
  --fi-ink: #0b0b0c;
  --fi-ink-body: #1d1d22;
  --fi-ink-soft: #5c5c66;
  --fi-muted: #8e8e96;
  --fi-white: #f5f5f7;
  --fi-line: rgba(255, 255, 255, 0.1);
  --fi-line-dark: rgba(11, 11, 12, 0.08);
  --fi-red: #e10600;
  --fi-red-hot: #ff2a22;
  --fi-radius: 20px;
  --fi-radius-sm: 14px;
  --fi-max: 1240px;
  --fi-display: "Space Grotesk", "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fi-sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Jannah's own colour variables, re-pointed at the new palette. */
:root:root:root {
  --brand-color: #e10600;
  --dark-brand-color: #b30500;
  --bright-color: #ffffff;
  --base-color: #1d1d22;
  --main-nav-background: rgba(11, 11, 12, 0.72);
  --main-nav-secondry-background: rgba(255, 255, 255, 0.05);
  --main-nav-primary-color: #e10600;
  --main-nav-contrast-primary-color: #ffffff;
  --main-nav-text-color: rgba(245, 245, 247, 0.82);
  --main-nav-secondry-text-color: rgba(245, 245, 247, 0.55);
  --main-nav-main-border-color: rgba(255, 255, 255, 0.1);
  --main-nav-secondry-border-color: rgba(255, 255, 255, 0.08);
}

/* ——— Base ——— */
#tie-body {
  background-color: var(--fi-bg);
  color: var(--fi-ink-body);
  font-family: var(--fi-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
#tie-body #tie-container #tie-wrapper,
#tie-body.post-layout-8 #content {
  background-color: var(--fi-paper);
}
#tie-body h1, #tie-body h2, #tie-body h3, #tie-body h4, #tie-body h5, #tie-body h6,
#tie-body .the-subtitle, #tie-body .logo-text,
.wf-active #tie-body h1, .wf-active #tie-body h2, .wf-active #tie-body h3 {
  font-family: var(--fi-display);
  letter-spacing: -0.035em;
  font-weight: 600;
}
#tie-body a { transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease; }
#tie-body a:hover { color: var(--fi-red); }
#tie-body #content a:hover { text-decoration: none !important; }
#tie-body ::selection { background: var(--fi-red); color: #fff; }
#tie-body :focus-visible { outline: 2px solid var(--fi-red); outline-offset: 2px; }

/* ——— Header: dark frosted glass ——— */
#tie-body #theme-header,
#tie-body #theme-header.has-shadow {
  background: var(--fi-bg);
  box-shadow: none;
  border-bottom: 1px solid var(--fi-line);
}
#tie-body #top-nav,
#tie-body #top-nav .sub-menu,
#tie-body #top-nav .comp-sub-menu,
#tie-body .top-nav-boxed #top-nav .topbar-wrapper {
  background-color: var(--fi-bg);
  border-color: var(--fi-line);
  color: rgba(245, 245, 247, 0.6);
}
#tie-body #top-nav { border-bottom: 1px solid var(--fi-line); }
#tie-body #top-nav * { border-color: var(--fi-line); }
#tie-body #top-nav a,
#tie-body #top-nav .topbar-today-date,
#tie-body #top-nav .components > li > a,
#tie-body #top-nav .social-icons-item .social-link span {
  color: rgba(245, 245, 247, 0.62);
  font-family: var(--fi-sans);
  font-size: 12.5px;
  font-weight: 500;
}
#tie-body #top-nav a:hover { color: #fff; }
#tie-body #top-nav .top-menu > ul > li > a { font-size: 12.5px; }
#tie-body #top-nav .topbar-today-date { background: transparent; }
#tie-body #top-nav #search-input,
#tie-body #top-nav .search-bar input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--fi-line);
  border-radius: 999px;
  color: #fff;
  padding: 0 14px;
  height: 28px;
  margin-top: 4px;
  font-family: var(--fi-sans);
}
#tie-body #top-nav #search-input::placeholder { color: rgba(245, 245, 247, 0.45); }
#tie-body #top-nav #search-submit { color: rgba(245, 245, 247, 0.7); background: transparent; }

#tie-body .main-nav-wrapper,
#tie-body #main-nav,
#tie-body #main-nav.fixed-nav,
#tie-body #theme-header:not(.main-nav-boxed) #main-nav,
#tie-body .main-nav-boxed .main-menu-wrapper {
  background: rgba(11, 11, 12, 0.72);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
  border-bottom: 1px solid var(--fi-line) !important;
  box-shadow: none;
}
#tie-body #main-nav { line-height: 64px !important; }
#tie-body #main-nav .main-menu > ul > li > a,
.wf-active #tie-body #main-nav .main-menu > ul > li > a {
  font-family: var(--fi-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: rgba(245, 245, 247, 0.82);
  padding: 0 12px;
  text-transform: none;
}
#tie-body #main-nav .main-menu > ul > li > a::before,
#tie-body #main-nav .main-menu > ul > li > a::after { display: none; }
#tie-body #main-nav .main-menu > ul > li:hover > a,
#tie-body #main-nav .main-menu > ul > li.tie-current-menu > a,
#tie-body #main-nav .main-menu > ul > li.current-menu-item > a,
#tie-body #main-nav .main-menu > ul > li.current-menu-parent > a {
  color: #fff;
  background: transparent;
  box-shadow: inset 0 -2px 0 var(--fi-red);
}
#tie-body #main-nav .menu-sub-content,
#tie-body #main-nav .mega-menu-block,
#tie-body #main-nav .sub-menu,
#tie-body #main-nav .mega-menu-content {
  background: rgba(18, 18, 20, 0.96);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border: 1px solid var(--fi-line);
  border-radius: 0 0 var(--fi-radius-sm) var(--fi-radius-sm);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
#tie-body #main-nav .main-menu > ul ul li a,
#tie-body #main-nav .mega-menu-content a,
#tie-body #main-nav .mega-links-head,
#tie-body #main-nav .menu-sub-content a {
  color: rgba(245, 245, 247, 0.82);
  font-family: var(--fi-sans);
  font-size: 14px;
  line-height: 1.45;
}
#tie-body #main-nav .main-menu > ul ul li a:hover,
#tie-body #main-nav .mega-menu-content a:hover,
#tie-body #main-nav .menu-sub-content a:hover { color: #fff; }
#tie-body #main-nav .mega-links-head { color: #fff; font-weight: 600; border-color: var(--fi-line); }
#tie-body #main-nav .mega-menu-content .post-meta,
#tie-body #main-nav .mega-menu-content .post-date { color: var(--fi-muted); }
#tie-body #main-nav .mega-menu-block .post-thumbnail,
#tie-body #main-nav .mega-menu-block .post-thumb img { border-radius: 12px; overflow: hidden; }
#tie-body #main-nav .mega-recent-post .post-box-title { margin-top: 6px; }
#tie-body #main-nav .mega-recent-post .post-box-title a { font-family: var(--fi-display); font-size: 19px; line-height: 1.2; letter-spacing: -0.03em; color: #fff; }
#tie-body #main-nav .mega-check-also .post-box-title a,
#tie-body #main-nav .mega-menu-post .post-box-title a { font-family: var(--fi-sans); font-size: 14px; line-height: 1.35; font-weight: 600; color: rgba(245, 245, 247, 0.9); }
#tie-body #main-nav .mega-menu-block .post-box-title a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--fi-red); text-underline-offset: 3px; }
#tie-body #main-nav .mega-menu-block .post-meta,
#tie-body #main-nav .mega-menu-block .post-meta a { color: rgba(245, 245, 247, 0.5); font-size: 12px; }
#tie-body #main-nav .mega-cat-sub-categories a,
#tie-body #main-nav .mega-cat-wrapper .cats-horizontal a { color: rgba(245, 245, 247, 0.72); border-radius: 999px; }
#tie-body #main-nav .mega-cat-sub-categories a.is-active,
#tie-body #main-nav .mega-cat-sub-categories a:hover { background: var(--fi-red); color: #fff; }
#tie-body #main-nav .components > li > a,
#tie-body #main-nav .components .tie-icon-search { color: rgba(245, 245, 247, 0.82); }
#tie-body #main-nav .components > li > a:hover { color: #fff; }
#tie-body #logo { margin-top: 19px !important; }
#tie-body #logo img,
#tie-body #sticky-logo img { max-height: 32px !important; width: auto; }

/* Mobile header + off-canvas menu (Jannah's own markup and script are kept). */
#tie-body #mobile-menu-icon .tie-mobile-menu-icon,
#tie-body #mobile-menu-icon .tie-mobile-menu-icon::before,
#tie-body #mobile-menu-icon .tie-mobile-menu-icon::after,
#tie-body .nav-icon,
#tie-body .nav-icon::before,
#tie-body .nav-icon::after { background-color: #fff; }
#tie-body .mobile-header-components .components > li > a,
#tie-body .mobile-header-components .tie-icon-search { color: #fff; }
#tie-body #mobile-container {
  background: var(--fi-bg);
  color: var(--fi-white);
}
#tie-body #mobile-menu li a,
#tie-body #mobile-menu .menu > li > a {
  color: rgba(245, 245, 247, 0.88);
  font-family: var(--fi-display);
  font-size: 18px;
  letter-spacing: -0.03em;
  border-color: var(--fi-line);
}
#tie-body #mobile-menu li a:hover { color: #fff; }
#tie-body #mobile-menu .mobile-arrows { color: rgba(245, 245, 247, 0.6); }
#tie-body #mobile-search input {
  background: var(--fi-bg-3);
  border: 1px solid var(--fi-line);
  border-radius: 12px;
  color: #fff;
}
#tie-body #mobile-social-icons .social-link span { color: rgba(245, 245, 247, 0.7); }
#tie-body .side-aside,
#tie-body .side-aside.dark-skin,
#tie-body .side-aside .side-aside-wrapper,
#tie-body .side-aside .side-aside-wrapper.has-custom-scroll { background: var(--fi-bg); background-image: none; }
#tie-body .side-aside { box-shadow: -24px 0 60px rgba(0, 0, 0, 0.45); border-left: 1px solid var(--fi-line); }

#tie-body .side-aside .side-aside-close-wrapper,
#tie-body .side-aside .tie-side-aside-header { background: var(--fi-bg); border-bottom: 1px solid var(--fi-line); color: #fff; }
#tie-body .side-aside .close-side-aside { color: #fff; }
#tie-body #mobile-menu .sub-menu, #tie-body #mobile-menu .menu-sub-content { background: transparent; border: 0; padding: 4px 0 10px; }
#tie-body #mobile-menu li li a { font-family: var(--fi-sans); font-size: 15px; letter-spacing: 0; color: rgba(245, 245, 247, 0.68); padding-top: 9px; padding-bottom: 9px; border: 0; }
#tie-body #mobile-menu li li a:hover, #tie-body #mobile-menu li li.current-menu-item > a { color: #fff; }
#tie-body #mobile-menu li.is-open > a, #tie-body #mobile-menu li.current-menu-parent > a { color: #fff; }
#tie-body #mobile-menu .mobile-arrows { width: 44px; text-align: center; }
#tie-body #mobile-search .search-form { display: flex; gap: 8px; align-items: center; margin: 0; }
#tie-body #mobile-search .search-form label { flex: 1 1 auto; min-width: 0; margin: 0; }
#tie-body #mobile-search .search-form input[type="search"] { width: 100%; height: 46px; padding: 0 14px; font-size: 15px; }
#tie-body #mobile-search .search-form .search-submit {
  flex: none; position: static; width: auto; height: 46px; padding: 0 16px; border-radius: 12px; border: 0;
  background: var(--fi-red); color: #fff; font: 600 14px/1 var(--fi-sans); text-indent: 0; box-shadow: none;
}

/* ——— Breaking news ticker ——— */
#tie-body .breaking {
  background: var(--fi-bg-2);
  border-radius: var(--fi-radius-sm);
  border: 1px solid var(--fi-line);
}
#tie-body .breaking-title { background: var(--fi-red); font-family: var(--fi-sans); font-weight: 600; }
#tie-body .breaking-title::before { background: var(--fi-red); }
#tie-body .breaking-news a { color: rgba(245, 245, 247, 0.85); font-family: var(--fi-sans); }

/* ——— Content containers: white 20px cards on a light page ——— */
#tie-body #content.site-content { padding-top: 32px; padding-bottom: 48px; }
#tie-body .container-wrapper,
#tie-body .mag-box .container-wrapper,
#tie-body .widget.container-wrapper,
#tie-body .about-author,
#tie-body .post-components > div,
#tie-body #comments,
#tie-body #related-posts,
#tie-body .prev-next-post-nav,
#tie-body .entry-header-outer.container-wrapper {
  background: #fff;
  border: 1px solid var(--fi-line-dark);
  border-radius: var(--fi-radius);
  box-shadow: none;
}
#tie-body .container-wrapper { padding: 28px; }
#tie-body .stream-item .container-wrapper,
#tie-body .stream-item-mag .container-wrapper { background: transparent; border: 0; padding: 0; }
#tie-body .mag-box-title,
#tie-body .widget-title,
#tie-body .the-global-title,
#tie-body .block-head-1 .the-global-title,
#tie-body .block-head-1 .mag-box-title {
  border: 0;
  padding: 0 0 14px;
  margin-bottom: 18px;
}
#tie-body .mag-box-title h3,
#tie-body .widget-title .the-subtitle,
#tie-body .the-global-title,
#tie-body .block-head-1 .the-global-title::after,
#tie-body .block-head-1 .mag-box-title h3::after {
  font-family: var(--fi-display);
  font-size: 1.35rem;
  letter-spacing: -0.045em;
  color: var(--fi-ink);
  background: none;
  border: 0;
}
#tie-body .block-head-1 .the-global-title::before,
#tie-body .block-head-1 .mag-box-title::before,
#tie-body .block-head-1 .the-global-title::after,
#tie-body .block-head-1 .mag-box-title h3::after { display: none; }
#tie-body .mag-box-title,
#tie-body .the-global-title { border-bottom: 1px solid var(--fi-line-dark); }

/* Category pills — small, red text on a faint red wash. */
#tie-body .post-cat,
#tie-body .post-cat-wrap .post-cat,
#tie-body a.post-cat {
  background: rgba(225, 6, 0, 0.08);
  color: var(--fi-red);
  border-radius: 999px;
  font-family: var(--fi-sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  padding: 4px 10px;
  line-height: 1.3;
}
#tie-body a.post-cat:hover { background: var(--fi-red); color: #fff; }
#tie-body .post-meta,
#tie-body .post-meta a,
#tie-body .single-post-meta,
#tie-body .meta-item { color: var(--fi-ink-soft); font-family: var(--fi-sans); font-size: 12.5px; }

/* Breadcrumbs */
#tie-body #breadcrumb,
#tie-body #breadcrumb a { color: var(--fi-ink-soft); font-family: var(--fi-sans); font-size: 12.5px; }
#tie-body #breadcrumb a:hover { color: var(--fi-red); }
#tie-body #breadcrumb .delimiter { color: rgba(11, 11, 12, 0.25); }

/* ——— Single article ——— */
#tie-body #the-post.container-wrapper { padding: 36px 40px 40px; }
#tie-body .entry-header .post-title,
#tie-body .entry-header .entry-title,
#tie-body h1.post-title {
  font-family: var(--fi-display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
  font-weight: 600;
  color: var(--fi-ink);
  text-wrap: balance;
  margin: 14px 0 12px;
}
#tie-body .entry-header .entry-sub-title { color: var(--fi-ink-soft); font-family: var(--fi-sans); font-size: 1.15rem; }
#tie-body .featured-area,
#tie-body .single-featured-image,
#tie-body .featured-area img,
#tie-body .single-featured-image img { border-radius: var(--fi-radius-sm); overflow: hidden; }
#tie-body .entry-content,
#tie-body .entry {
  font-family: var(--fi-sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--fi-ink-body);
}
#tie-body .entry-content p { margin-bottom: 1.15em; }
#tie-body .entry-content h2 { font-size: 1.75rem; line-height: 1.15; margin: 1.6em 0 0.6em; color: var(--fi-ink); }
#tie-body .entry-content h3 { font-size: 1.35rem; line-height: 1.2; margin: 1.4em 0 0.5em; color: var(--fi-ink); }
#tie-body:not(.geodir-page) #the-post .entry-content :is(p, li, td, blockquote, figcaption) a:not(.shortc-button):not(.button):not(.wp-block-button__link) {
  color: var(--fi-ink);
  text-decoration: underline;
  text-decoration-color: rgba(225, 6, 0, 0.45);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
#tie-body:not(.geodir-page) #the-post .entry-content :is(p, li, td, blockquote, figcaption) a:not(.shortc-button):not(.button):not(.wp-block-button__link):hover { color: var(--fi-red) !important; text-decoration-color: var(--fi-red); }
#tie-body .entry-content blockquote,
#tie-body .entry-content blockquote.quote-simple {
  border: 0;
  border-left: 3px solid var(--fi-red);
  background: var(--fi-paper);
  border-radius: 0 var(--fi-radius-sm) var(--fi-radius-sm) 0;
  font-family: var(--fi-display);
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  color: var(--fi-ink);
  padding: 20px 24px;
}
#tie-body .entry-content img,
#tie-body .entry-content figure img,
#tie-body .wp-block-image img { border-radius: 12px; }
#tie-body .entry-content figcaption,
#tie-body .wp-caption-text { color: var(--fi-ink-soft); font-size: 13px; }
#tie-body .entry-content table { border-radius: 12px; overflow: hidden; }
#tie-body .post-bottom-meta .post-bottom-meta-title,
#tie-body .post-tags-modern a,
#tie-body .tagcloud a {
  background: var(--fi-paper);
  border: 1px solid var(--fi-line-dark);
  color: var(--fi-ink-soft);
  border-radius: 999px;
  font-family: var(--fi-sans);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 11px;
}
#tie-body .post-tags-modern a:hover,
#tie-body .tagcloud a:hover { background: var(--fi-ink); color: #fff; border-color: var(--fi-ink); }
#tie-body .share-buttons .share-links a { border-radius: 999px; }
#tie-body .prev-next-post-nav .post-thumb,
#tie-body .related-item .post-thumb,
#tie-body .related-item img { border-radius: 12px; overflow: hidden; }
#tie-body .related-item .post-title,
#tie-body .prev-next-post-nav .post-title { font-family: var(--fi-display); letter-spacing: -0.03em; }
#tie-body .about-author .author-name a { font-family: var(--fi-display); color: var(--fi-ink); }

/* In-post newsletter box (Jannah) — dark panel with a red action. */
#tie-body .post-newsletter,
#tie-body .subscribe-widget {
  background: var(--fi-bg);
  color: var(--fi-white);
  border-radius: var(--fi-radius);
}
#tie-body .post-newsletter .subscribe-widget-content h3,
#tie-body .subscribe-widget .subscribe-widget-content h3 { color: #fff; }
#tie-body .subscribe-widget .subscribe-subtitle,
#tie-body .post-newsletter p { color: rgba(245, 245, 247, 0.7); }
#tie-body .subscribe-input,
#tie-body .subscribe-widget input[type="email"] {
  background: var(--fi-bg-3);
  border: 1px solid var(--fi-line);
  color: #fff;
  border-radius: 999px;
}

/* ——— Archives, categories and search ——— */
#tie-body #category-title-section,
#tie-body .archive-title-wrapper,
#tie-body #search-title-section {
  background: var(--fi-bg);
  color: var(--fi-white);
  border: 0;
  border-radius: var(--fi-radius);
  padding: 32px 36px;
  background-image: radial-gradient(700px 240px at 85% 0%, rgba(225, 6, 0, 0.18), transparent 60%);
}
#tie-body #category-title-section .page-title,
#tie-body .archive-title-wrapper .page-title,
#tie-body #search-title-section .page-title {
  color: #fff;
  font-family: var(--fi-display);
  font-size: clamp(2rem, 4.2vw, 3rem);
  letter-spacing: -0.055em;
  line-height: 1;
}
#tie-body .archive-title-wrapper #breadcrumb,
#tie-body .archive-title-wrapper #breadcrumb a { color: rgba(245, 245, 247, 0.6); }
#tie-body .archive-title-wrapper #breadcrumb .delimiter { color: rgba(245, 245, 247, 0.3); }
#tie-body .archive-title-wrapper .taxonomy-description,
#tie-body .archive-title-wrapper .taxonomy-description p { color: rgba(245, 245, 247, 0.72); font-size: 15px; }
#tie-body .archive-title-wrapper .taxonomy-description a { color: #fff; }

#tie-body .posts-items .post-item,
#tie-body .wide-post-box .posts-items > li {
  border-bottom: 1px solid var(--fi-line-dark);
  padding-bottom: 24px;
  margin-bottom: 24px;
}
#tie-body .posts-items .post-item:last-child { border-bottom: 0; margin-bottom: 0; }
#tie-body .post-item .post-thumb,
#tie-body .posts-items .post-thumb,
#tie-body .post-thumb img,
#tie-body .wide-post-box .post-thumb {
  border-radius: var(--fi-radius-sm);
  overflow: hidden;
}
#tie-body .post-thumb img { transition: transform 0.45s ease; }
#tie-body .post-item:hover .post-thumb img { transform: scale(1.035); }
#tie-body .post-item .post-title,
#tie-body .posts-items .post-title,
#tie-body .post-widget-body .post-title,
#tie-body .mag-box .post-title {
  font-family: var(--fi-display);
  letter-spacing: -0.035em;
  line-height: 1.18;
  font-weight: 600;
}
#tie-body .post-item .post-title a,
#tie-body .mag-box .post-title a,
#tie-body .post-widget-body .post-title a { color: var(--fi-ink); }
#tie-body .post-item .post-title a:hover,
#tie-body .mag-box .post-title a:hover,
#tie-body .post-widget-body .post-title a:hover { color: var(--fi-red); }
#tie-body .post-excerpt { color: var(--fi-ink-soft); font-size: 15px; line-height: 1.55; }
#tie-body .post-thumb-overlay,
#tie-body .media-overlay .post-thumb-overlay { background: rgba(11, 11, 12, 0.45); }

/* Buttons and pagination */
#tie-body .button,
#tie-body a.button,
#tie-body .more-link,
#tie-body input[type="submit"],
#tie-body button[type="submit"]:not(.icon-btn):not(#search-submit):not(.btn),
#tie-body .comment-form .submit,
#tie-body .wp-block-button__link,
#tie-body .slider-link,
#tie-body .pages-nav .pages-numbers a,
#tie-body .show-more-button {
  background: var(--fi-ink);
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-family: var(--fi-sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.01em;
  padding: 10px 18px;
  text-transform: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
#tie-body .button:hover,
#tie-body a.button:hover,
#tie-body .more-link:hover,
#tie-body input[type="submit"]:hover,
#tie-body .wp-block-button__link:hover,
#tie-body .pages-nav .pages-numbers a:hover,
#tie-body .show-more-button:hover {
  background: var(--fi-red);
  color: #fff;
  transform: translateY(-1px);
}
#tie-body .pages-nav .pages-numbers li span,
#tie-body .pages-nav .pages-numbers .current,
#tie-body .pages-numbers .current {
  background: var(--fi-red);
  color: #fff;
  border: 0;
  border-radius: 999px;
}
#tie-body .pages-nav .pages-numbers a,
#tie-body .pages-nav .pages-numbers li span { min-width: 40px; text-align: center; }
#tie-body .pages-nav .pages-numbers .first-last-pages a,
#tie-body .pages-nav .pages-numbers a:not(:hover) { background: #fff; color: var(--fi-ink); border: 1px solid var(--fi-line-dark); }

/* Forms */
#tie-body input[type="text"],
#tie-body input[type="email"],
#tie-body input[type="search"],
#tie-body input[type="url"],
#tie-body input[type="tel"],
#tie-body input[type="password"],
#tie-body input[type="number"],
#tie-body textarea,
#tie-body select {
  border-radius: 12px;
  border: 1px solid rgba(11, 11, 12, 0.14);
  font-family: var(--fi-sans);
}
#tie-body #content input:focus,
#tie-body #content textarea:focus,
#tie-body #content select:focus {
  border-color: var(--fi-ink);
  box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.12);
  outline: 0;
}

/* Sidebar widgets */
#tie-body .sidebar .widget.container-wrapper { padding: 22px; }
#tie-body .sidebar .widget_media_image img,
#tie-body .sidebar .wp-block-image img { border-radius: 12px; }
#tie-body .widget_search .search-field,
#tie-body .search-form .search-field { border-radius: 999px; padding-left: 16px; }
#tie-body .widget_search .search-submit,
#tie-body .search-form .search-submit { border-radius: 999px; background: var(--fi-ink); color: #fff; }
#tie-body .social-icons-widget .social-icons-item .social-link {
  border-radius: 999px;
  background: var(--fi-paper);
  color: var(--fi-ink);
}
#tie-body .social-icons-widget .social-icons-item .social-link:hover { background: var(--fi-ink); color: #fff; }
#tie-body .widget-post-list .post-widget-thumbnail img { border-radius: 10px; }

/* ——— Footer ——— */
#tie-body #footer,
#tie-body #footer.dark-skin {
  background: var(--fi-bg);
  color: rgba(245, 245, 247, 0.7);
  border-top: 1px solid var(--fi-line);
  margin-top: 0;
}
#tie-body #footer .widget-title .the-subtitle,
#tie-body #footer .widget-title {
  color: rgba(245, 245, 247, 0.42);
  font-family: var(--fi-sans);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 0;
}
#tie-body #footer .container-wrapper { background: transparent; border: 0; padding: 0; }
#tie-body #footer a { color: #fff; }
#tie-body #footer a:hover { color: #fff; opacity: 0.75; }
#tie-body #footer-widgets-container:empty,
#tie-body #footer-widgets-container .container:empty { display: none; }
#tie-body #site-info {
  background: var(--fi-bg);
  border-top: 1px solid var(--fi-line);
  color: rgba(245, 245, 247, 0.45);
  font-family: var(--fi-sans);
  font-size: 12.5px;
  padding: 18px 0;
}
#tie-body #site-info a { color: rgba(245, 245, 247, 0.72); }
#tie-body #site-info a:hover { color: #fff; opacity: 1; }
#tie-body #site-info .footer-menu a { font-weight: 500; }
#tie-body #go-to-top {
  background: var(--fi-red);
  color: #fff;
  border-radius: 999px;
}

/* ——— GeoDirectory (Places listings, search, details) ——— */
#tie-body .geodir-search-container,
#tie-body .geodir-listing-search {
  background: var(--fi-bg);
  border-radius: var(--fi-radius);
  padding: 16px;
  border: 0;
}
#tie-body .geodir-listing-search .geodir-loc-bar,
#tie-body .geodir-listing-search .geodir-loc-bar-in { background: transparent; border: 0; padding: 0; }
#tie-body .geodir-listing-search .geodir-search { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0; }
#tie-body .geodir-listing-search .gd-search-input-wrapper { flex: 1 1 220px; margin: 0; position: relative; }
#tie-body .geodir-listing-search input[type="text"],
#tie-body .geodir-listing-search .search_text,
#tie-body .geodir-listing-search .snear {
  width: 100%;
  background: var(--fi-bg-3);
  border: 1px solid var(--fi-line);
  color: #fff;
  border-radius: 999px;
  padding: 11px 16px 11px 38px;
  height: auto;
}
#tie-body .geodir-listing-search input::placeholder { color: rgba(245, 245, 247, 0.5); }
#tie-body .geodir-listing-search .geodir-search-input-label { color: rgba(245, 245, 247, 0.55); left: 14px; }
/* 1.0.4: icon sits in its own 44px gutter, text never runs under it. */
#tie-body .geodir-listing-search .gd-search-input-wrapper input.search_text,
#tie-body .geodir-listing-search .gd-search-input-wrapper input.snear,
#tie-body .geodir-listing-search .gd-search-input-wrapper input[type="text"] {
  padding: 0 18px 0 44px !important; height: 46px !important; line-height: 46px !important; margin: 0 !important;
  box-sizing: border-box; text-indent: 0 !important;
}
#tie-body .geodir-listing-search .gd-search-input-wrapper .geodir-search-input-label {
  position: absolute !important; left: 0 !important; top: 0 !important; bottom: 0 !important; right: auto !important;
  width: 44px !important; height: 46px !important; margin: 0 !important; padding: 0 !important;
  display: flex !important; align-items: center; justify-content: center;
  line-height: 1 !important; font-size: 14px; z-index: 2; cursor: pointer; transform: none !important;
}
#tie-body .geodir-listing-search .gd-search-input-wrapper .geodir-search-input-label i { position: static !important; margin: 0 !important; line-height: 1; }
#tie-body .geodir-listing-search .geodir_submit_search { height: 46px; padding: 0 24px; }
#tie-body .geodir_submit_search,
#tie-body .geodir-listing-search button {
  background: var(--fi-red);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 11px 22px;
  font-family: var(--fi-sans);
  font-weight: 600;
  font-size: 14px;
  float: none;
  width: auto;
  height: auto;
}
#tie-body .geodir_submit_search:hover { background: var(--fi-red-hot); }
#tie-body .geodir-loop-actions-container { margin: 18px 0; }
#tie-body .geodir-loop-actions-container select,
#tie-body .geodir-select { border-radius: 999px !important; padding: 6px 12px; }

#tie-body .geodir-category-list-view { margin: 0; padding: 0; }
#tie-body .geodir-category-list-view > li.geodir-post {
  background: #fff;
  border: 1px solid var(--fi-line-dark);
  border-radius: var(--fi-radius);
  overflow: hidden;
  padding: 0;
  box-shadow: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#tie-body .geodir-category-list-view > li.geodir-post:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(11, 11, 12, 0.08);
}
#tie-body .geodir-category-list-view .gd-list-item-left { background: var(--fi-paper-2); }
#tie-body .geodir-category-list-view .gd-list-item-right { padding: 14px 18px 18px; }
#tie-body .geodir-category-list-view .geodir-image-container img { object-fit: contain; background: #fff; }
#tie-body .geodir-entry-title,
#tie-body .geodir-entry-title a {
  font-family: var(--fi-display);
  font-size: 1.15rem;
  letter-spacing: -0.035em;
  line-height: 1.2;
  color: var(--fi-ink);
}
#tie-body .geodir-entry-title a:hover { color: var(--fi-red); }
#tie-body .gd-badge { border-radius: 999px !important; font-family: var(--fi-sans); font-size: 11px; font-weight: 600; }
#tie-body .gd-badge-meta-featured .gd-badge { background-color: var(--fi-red) !important; }
#tie-body .geodir_post_meta,
#tie-body .geodir-post-meta-container { font-family: var(--fi-sans); font-size: 14px; color: var(--fi-ink-body); }
#tie-body .geodir_post_meta a { color: var(--fi-ink); }
#tie-body .geodir_post_meta a:hover { color: var(--fi-red); }
#tie-body .geodir_post_meta .geodir_post_meta_icon i,
#tie-body .geodir_post_meta i { color: var(--fi-red); }
#tie-body .geodir-single-taxonomies-container .geodir-category a,
#tie-body .geodir-single-taxonomies-container .geodir-tags a,
#tie-body .geodir_post_taxomomies a {
  display: inline-block;
  background: rgba(225, 6, 0, 0.08);
  color: var(--fi-red);
  border-radius: 999px;
  padding: 3px 10px;
  margin: 2px;
  font-size: 12px;
  font-weight: 600;
}
#tie-body .geodir-tabs,
#tie-body .geodir-tab-head { border: 0; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
#tie-body .geodir-tab-head > dd,
#tie-body .geodir-tab-head > li { margin: 0; border: 0; background: none; }
#tie-body .geodir-tab-head a {
  display: inline-block;
  border-radius: 999px;
  background: var(--fi-paper);
  border: 1px solid var(--fi-line-dark);
  color: var(--fi-ink);
  padding: 7px 14px;
  font-family: var(--fi-sans);
  font-size: 13px;
  font-weight: 600;
}
#tie-body .geodir-tab-head .geodir-tab-active a,
#tie-body .geodir-tab-head a:hover,
#tie-body #the-post .entry-content .geodir-tab-head .geodir-tab-active a,
#tie-body #the-post .entry-content .geodir-tab-head a:hover { background: var(--fi-ink); color: #fff !important; border-color: var(--fi-ink); text-decoration: none; }
#tie-body .geodir-tab-head a i { margin-right: 6px; }
#tie-body .geodir-tabs-content { border: 0; padding: 0; }
#tie-body .geodir_flex-container,
#tie-body .geodir-image-container,
#tie-body .geodir-map-wrap,
#tie-body .geodir-map-canvas,
#tie-body .main_map_wrapper { border-radius: var(--fi-radius-sm); overflow: hidden; }
#tie-body .gd-get-directions,
#tie-body .geodir-map-directions-wrap input { border-radius: 999px; }
#tie-body .geodir-pagination .page-numbers,
#tie-body .geodir-loop-paging-container .page-numbers {
  border-radius: 999px;
  min-width: 38px;
  text-align: center;
  border: 1px solid var(--fi-line-dark);
  background: #fff;
  color: var(--fi-ink);
}
#tie-body .geodir-pagination .page-numbers.current,
#tie-body .geodir-loop-paging-container .page-numbers.current { background: var(--fi-red); border-color: var(--fi-red); color: #fff; }

/* ——— Full-width views (new homepage, Places Map): release Jannah's content container ——— */
#tie-body.fi-home #content.site-content,
#tie-body.fi-places-map #content.site-content,
#tie-body.fi-events-page #content.site-content,
#tie-body.fi-contact-page #content.site-content,
#tie-body.fi-advertise-page #content.site-content {
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
}
#tie-body.fi-home #main-content-row,
#tie-body.fi-places-map #main-content-row,
#tie-body.fi-events-page #main-content-row,
#tie-body.fi-contact-page #main-content-row,
#tie-body.fi-advertise-page #main-content-row {
  display: block;
  margin: 0;
  padding: 0;
}
#tie-body.fi-home #tie-container #tie-wrapper,
#tie-body.fi-places-map #tie-container #tie-wrapper,
#tie-body.fi-events-page #tie-container #tie-wrapper,
#tie-body.fi-contact-page #tie-container #tie-wrapper,
#tie-body.fi-advertise-page #tie-container #tie-wrapper { background-color: var(--fi-bg); }
#tie-body.fi-home #footer-widgets-container { display: none; }
#tie-body.fi-contact-page #footer-widgets-container,
#tie-body.fi-advertise-page #footer-widgets-container,
#tie-body.fi-contact-page #sidebar,
#tie-body.fi-advertise-page #sidebar,
#tie-body.fi-contact-page .sidebar,
#tie-body.fi-advertise-page .sidebar,
#tie-body.fi-contact-page .tie-sidebar,
#tie-body.fi-advertise-page .tie-sidebar { display: none !important; }


/* Editor-only hints on the homepage */
.fi-editor-note {
  max-width: var(--fi-max);
  margin: 12px auto;
  padding: 10px 16px;
  border: 1px dashed rgba(225, 6, 0, 0.5);
  border-radius: 12px;
  background: rgba(225, 6, 0, 0.06);
  color: #ffb3ae;
  font: 500 13px/1.4 var(--fi-sans);
}
.fi-editor-note a { color: #fff; text-decoration: underline; }

/* ——— Responsive ——— */
@media (max-width: 991px) {
  #tie-body #the-post.container-wrapper { padding: 24px 20px 28px; }
  #tie-body .container-wrapper { padding: 20px; }
  #tie-body #category-title-section,
  #tie-body .archive-title-wrapper,
  #tie-body #search-title-section { padding: 24px 22px; }
  #tie-body #theme-header .main-nav-wrapper,
  #tie-body #theme-header #main-nav { line-height: 56px !important; }
  #tie-body #logo { margin-top: 15px !important; }
}
@media (max-width: 600px) {
  #tie-body .entry-content,
  #tie-body .entry { font-size: 16px; }
  #tie-body .container-wrapper,
  #tie-body .mag-box .container-wrapper { border-radius: var(--fi-radius-sm); }
  #tie-body #content.site-content { padding-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  #tie-body *, .fi2027 * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* GeoDirectory search button: its "Search" label is followed by a .visually-hidden copy for
   screen readers. GeoDirectory's legacy CSS never hides that class outside .bsui, so it read
   "SearchSearch". Hide it accessibly (still announced by screen readers). */
#tie-body .geodir_submit_search .visually-hidden,
#tie-body .geodir-listing-search .visually-hidden,
#tie-body .geodir-search .visually-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
}
#tie-body .geodir_submit_search { position: relative; }

/* ——— Site-wide Floorinsite footer (printed before Jannah's footer bar on every page) ——— */
#tie-body #tie-wrapper { overflow-x: clip; }
#tie-body .fi-site-footer {
  clear: both;
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin: 0 0 0 calc(50% - 50vw);
  padding: 0;
  flex: 0 0 100%;
  background: var(--fi-bg);
  color: rgba(245, 245, 247, 0.7);
  font-family: var(--fi-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
#tie-body .fi-site-footer *, #tie-body .fi-site-footer *::before, #tie-body .fi-site-footer *::after { box-sizing: border-box; }
#tie-body .fi-site-footer .wrap { width: min(100% - 48px, var(--fi-max)); margin-inline: auto; }
#tie-body .fi-site-footer .fi-footer { background: var(--fi-bg); padding: 56px 0 8px; border-top: 1px solid var(--fi-line); }
#tie-body .fi2027.fi-site-footer .footer-grid { display: grid; grid-template-columns: 1.4fr 0.7fr 0.7fr 0.9fr; gap: 36px; padding-bottom: 40px; }
#tie-body .fi-site-footer .footer-brand img { width: 168px; height: auto; margin-bottom: 16px; display: block; max-width: 100%; }
#tie-body .fi-site-footer .footer-brand p { margin: 0; line-height: 1.55; color: rgba(245, 245, 247, 0.55); }
#tie-body .fi-site-footer .fi-footer-contact { margin-top: 10px !important; }
#tie-body .fi-site-footer h3 {
  margin: 0 0 14px; font-family: var(--fi-sans); font-size: 12px; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase;
  color: rgba(245, 245, 247, 0.42);
}
#tie-body .fi-site-footer ul { list-style: none; margin: 0; padding: 0; }
#tie-body .fi-site-footer li { margin: 0 0 8px; padding: 0; }
#tie-body .fi-site-footer a { color: #fff; text-decoration: none; }
#tie-body .fi-site-footer a:hover { color: #fff; opacity: 0.75; }
#tie-body .fi-site-footer + #footer,
#tie-body .fi-site-footer ~ #footer { margin-top: 0; }
@media (max-width: 960px) {
  #tie-body .fi-site-footer .wrap { width: min(100% - 32px, var(--fi-max)); }
  #tie-body .fi2027.fi-site-footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  #tie-body .fi2027.fi-site-footer .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  #tie-body .fi2027.fi-site-footer .footer-grid { gap: 26px 18px; }
}
/* When Jannah prints the footer inside #content, drop #content's bottom padding so the two footers meet. */
#tie-body #content:has(.fi-site-footer) { padding-bottom: 0 !important; margin-bottom: 0 !important; }

/* ——— 1.0.6 mobile audit: readable small print and 44px tap targets on phones and tablets ——— */
@media (max-width: 1024px), (pointer: coarse) {
  /* Small print: nothing under 12px. */
  html body#tie-body .fi2027 .meta,
  html body#tie-body .fi2027 .card .meta,
  html body#tie-body .fi2027 .fi-arch-grid .card .meta,
  html body#tie-body .fi2027 .fi-related .card .meta,
  html body#tie-body .fi2027 .fi-eyebrow,
  html body#tie-body .fi2027 .fi-board-eyebrow,
  html body#tie-body .fi2027 .fi-chip-b,
  html body#tie-body .fi2027 .fi-art-foot-label,
  html body#tie-body .fi2027 .fi-share-label,
  html body#tie-body .fi2027 .fi-rail-eyebrow,
  html body#tie-body .fi2027 .fi-pn-label,
  html body#tie-body .fi2027 .sib_signup_form p,
  html body#tie-body .fi-gd-badge,
  html body#tie-body .fi-gd-tags a,
  html body#tie-body .fi-gd-eyebrow,
  html body#tie-body ul.fi-gd-details--single .fi-gd-d-label,
  html body#tie-body .fi-map-label,
  html body#tie-body .fi-map-stats dt { font-size: 12px; }
  html body#tie-body .fi2027 .ad-label,
  html body#tie-body .fi-map-page .ad-label { font-size: 11px; }
  html body#tie-body .fi2027 .fi-board-date span { font-size: 12px; }
  html body#tie-body .fi2027 .fi-board-date i { font-size: 11px; }

  /* Footer links (Floorinsite footer and Jannah's bottom bar). */
  html body#tie-body .fi2027.fi-site-footer li { margin: 0; }
  html body#tie-body .fi2027.fi-site-footer li a,
  html body#tie-body .fi2027.fi-site-footer .footer-brand a { display: inline-flex; align-items: center; min-height: 44px; }
  html body#tie-body .fi2027.fi-site-footer h3 { margin-bottom: 4px; }
  html body#tie-body #footer .footer-menu li a,
  html body#tie-body #footer .copyright-text a,
  html body#tie-body #menu-floors-footer-menu li a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; }

  /* Header menu button. */
  html body#tie-body #mobile-menu-icon { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }

  /* Breadcrumbs, "see all" links, section toggles. */
  html body#tie-body .fi2027 .fi-crumbs a,
  html body#tie-body #breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -12px; }
  html body#tie-body .fi2027 .section-head { flex-wrap: wrap; row-gap: 4px; }
  html body#tie-body .fi2027 .section-head .more,
  html body#tie-body .fi2027 a.more { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
  html body#tie-body .fi2027 details.fi-arch-about > summary { display: inline-flex; align-items: center; min-height: 44px; }
  html body#tie-body .fi2027 .fi-art-author a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -12px; }

  /* Whole cards are tappable, not just the headline text. */
  html body#tie-body .fi2027 .card,
  html body#tie-body .fi2027 .lib-card,
  html body#tie-body .fi2027 .look-card { position: relative; }
  html body#tie-body .fi2027 .card h3 a::after,
  html body#tie-body .fi2027 .lib-card h3 a::after,
  html body#tie-body .fi2027 .look-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }

  /* Brevo: list checkbox is ticked and hidden by fi-global.js; keep inputs comfortable. */
  html body#tie-body .sib_signup_form input[type="email"],
  html body#tie-body .sib_signup_form input[type="text"],
  html body#tie-body .sib_signup_form input[type="submit"] { min-height: 46px; font-size: 16px; }
}

/* Tablets: two-column card grids instead of one tall column. */
@media (min-width: 601px) and (max-width: 960px) {
  html body#tie-body .fi2027 .card-grid,
  html body#tie-body .fi2027 .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html body#tie-body .fi2027 .bento > .card--feature { grid-column: 1 / -1; }
  html body#tie-body .fi2027 .card-grid > .card--feature { grid-column: 1 / -1; }
  html body#tie-body .fi2027 .library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ——— Post dates: hidden on news/PR content (Customiser → "Show publish dates on all posts" to restore).
   Theme templates already leave dates out; this catches Jannah's own output (widgets, sliders, live search,
   mega menus, plugin lists). Tenders, UK Statistics and Jobs keep dates via .fi-dates-ok. ——— */
#tie-body.fi-dates-off:not(.fi-dates-ok) :is(.post-meta .date, .meta-item.date, span.date.meta-item, .tie-date, .post-date, .entry-date, .meta-date, .post-meta .published, .single-post-meta .date, .mag-box .date, .widget .date, .slide .date, .mega-menu-block .date, #live-search .date, .live-search-results .date, .search-results .date):not(.fi-dates-ok *):not(.fi-board-date):not(.topbar-today-date) {
  display: none !important;
}

/* House ad: "Advertise with Floorinsite" (1.0.9) – fills empty billboard / archive slots. */
#tie-body .fi2027 .fi-house-ad {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 30px 34px;
  text-align: left;
  color: var(--fi-white);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(225, 6, 0, 0.28) 0%, rgba(225, 6, 0, 0) 55%),
    linear-gradient(135deg, var(--fi-bg-2) 0%, var(--fi-bg) 100%);
  border: 1px solid var(--fi-line);
  border-radius: var(--fi-radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
#tie-body .fi2027 .fi-house-ad-text { min-width: 0; max-width: 620px; }
#tie-body .fi2027 .fi-house-ad-kicker {
  margin: 0 0 8px;
  font: 600 11px/1.2 var(--fi-sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fi-red-hot);
}
#tie-body .fi2027 .fi-house-ad-title {
  margin: 0 0 10px;
  font: 600 clamp(1.45rem, 1.1rem + 1.2vw, 2.1rem)/1.1 var(--fi-display);
  letter-spacing: -0.035em;
  color: var(--fi-white);
  text-wrap: balance;
}
#tie-body .fi2027 .fi-house-ad-copy { margin: 0; font: 400 15px/1.55 var(--fi-sans); color: rgba(245, 245, 247, 0.74); }
#tie-body .fi2027 .fi-house-ad-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; flex: none; }
#tie-body .fi2027 .fi-house-ad-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--fi-red);
  color: #fff;
  font: 600 15px/1 var(--fi-sans);
  text-decoration: none;
  transition: background 0.15s ease;
}
#tie-body .fi2027 .fi-house-ad-btn:hover,
#tie-body .fi2027 .fi-house-ad-btn:focus-visible { background: var(--fi-red-hot); color: #fff; }
#tie-body .fi2027 .fi-house-ad-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  color: rgba(245, 245, 247, 0.82);
  font: 500 14px/1.2 var(--fi-sans);
  text-decoration: underline;
  text-underline-offset: 3px;
}
#tie-body .fi2027 .fi-house-ad-link:hover { color: #fff; }
#tie-body .fi2027 .fi-house-ad-img { display: block; width: min(100%, 1040px); margin: 0 auto; }
#tie-body .fi2027 .fi-house-ad-img img { width: 100%; height: auto; border-radius: 12px; }
#tie-body .fi2027 .fi-arch-ad.fi-house-ad-wrap { padding: 0; background: none; border: 0; }
#tie-body .fi2027 .fi-arch-ad.fi-house-ad-wrap .ad-label { text-align: left; }
/* 1.0.10: in archives the card spans the full grid width so it lines up with the cards and its label. */
#tie-body .fi2027 .fi-arch-ad.fi-house-ad-wrap .fi-house-ad,
#tie-body .fi2027 .fi-arch-ad.fi-house-ad-wrap .fi-house-ad-img { width: 100%; }
@media (max-width: 760px) {
  #tie-body .fi2027 .fi-house-ad { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
  #tie-body .fi2027 .fi-house-ad-actions { width: 100%; }
  #tie-body .fi2027 .fi-house-ad-btn { width: 100%; justify-content: center; }
}


/* Advert slots (1.0.11): Image widgets and image blocks, centred and responsive
   in the homepage billboard, MPU column, archive grid and Places Map slot. */
#tie-body .fi2027 .ad-frame,
#tie-body .fi2027 .ad--mpu,
#tie-body .fi-map-page .fi-map-ad .ad-frame {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-align: center;
}
#tie-body .fi2027 .ad-frame img,
#tie-body .fi2027 .ad--mpu img,
#tie-body .fi2027 .fi-arch-ad img,
#tie-body .fi-map-page .fi-map-ad img,
#tie-body .fi2027 .ad-frame iframe,
#tie-body .fi2027 .ad--mpu iframe,
#tie-body .fi2027 .fi-arch-ad iframe,
#tie-body .fi-map-page .fi-map-ad iframe {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  margin-inline: auto;
  border-radius: 10px;
}
#tie-body .fi2027 .ad-frame a,
#tie-body .fi2027 .ad--mpu a,
#tie-body .fi-map-page .fi-map-ad .ad-frame a { display: inline-block; max-width: 100%; }
#tie-body .fi2027 .ad-frame figure,
#tie-body .fi2027 .ad-frame .wp-block-image,
#tie-body .fi2027 .ad--mpu figure,
#tie-body .fi2027 .ad--mpu .wp-block-image,
#tie-body .fi2027 .fi-arch-ad figure,
#tie-body .fi2027 .fi-arch-ad .wp-block-image,
#tie-body .fi-map-page .fi-map-ad figure,
#tie-body .fi-map-page .fi-map-ad .wp-block-image {
  margin: 0 auto;
  padding: 0;
  float: none !important;
  max-width: 100%;
  text-align: center;
}
#tie-body .fi2027 .ad-frame .wp-block-image.alignleft,
#tie-body .fi2027 .ad-frame .wp-block-image.alignright,
#tie-body .fi2027 .ad--mpu .wp-block-image.alignleft,
#tie-body .fi2027 .ad--mpu .wp-block-image.alignright,
#tie-body .fi-map-page .fi-map-ad .wp-block-image.alignleft,
#tie-body .fi-map-page .fi-map-ad .wp-block-image.alignright {
  float: none !important;
  margin-inline: auto;
}
#tie-body .fi2027 .ad-frame .wp-element-caption,
#tie-body .fi2027 .ad--mpu .wp-element-caption,
#tie-body .fi-map-page .fi-map-ad .wp-element-caption {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--fi-muted);
}
#tie-body .fi2027 .ad .fi-widget,
#tie-body .fi-map-page .fi-map-ad .fi-widget { min-width: 0; max-width: 100%; }
#tie-body .fi2027 .ad .widget,
#tie-body .fi-map-page .fi-map-ad .widget {
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
  margin: 0;
}
#tie-body .fi2027 .ad--billboard .ad-label,
#tie-body .fi2027 .ad--mpu .ad-label,
#tie-body .fi2027 .fi-arch-ad .ad-label,
#tie-body .fi2027 .fi-leaderboard .ad-label,
#tie-body .fi2027 .fi-below-more .ad-label,
#tie-body .fi-map-page .fi-map-ad .ad-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  text-align: left;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fi-muted);
}
#tie-body .fi2027 .ad--billboard .ad-label::after,
#tie-body .fi2027 .ad--mpu .ad-label::after,
#tie-body .fi2027 .fi-arch-ad .ad-label::after,
#tie-body .fi2027 .fi-leaderboard .ad-label::after,
#tie-body .fi2027 .fi-below-more .ad-label::after,
#tie-body .fi-map-page .fi-map-ad .ad-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--fi-line-dark);
}
/* House ad keeps its own typographic label (no rule line through the dark card). */
#tie-body .fi2027 .ad.fi-house-ad-wrap > .ad-label,
#tie-body .fi-map-page .ad.fi-house-ad-wrap > .ad-label {
  display: block;
  text-align: left;
}
#tie-body .fi2027 .ad.fi-house-ad-wrap > .ad-label::after,
#tie-body .fi-map-page .ad.fi-house-ad-wrap > .ad-label::after { display: none; content: none; }
#tie-body .fi-map-page .fi-map-ad.fi-house-ad-wrap .fi-house-ad,
#tie-body .fi-map-page .fi-map-ad.fi-house-ad-wrap .fi-house-ad-img {
  width: min(100%, 1040px);
  margin-inline: auto;
}


/* Wide ad slots (1.0.12): homepage billboard, archive grid and Places Map.
   On desktop, cap height at 320px so a 2:1 1200×600 creative renders at 640×320,
   centred, with proportions kept (no crop, no distortion). A genuine leaderboard
   (728×90, 970×250) is shorter than the cap, so it shows at its natural size up
   to the container width. On mobile the image stays full width, as in 1.0.11. */
#tie-body .fi2027 .ad--billboard .ad-frame img,
#tie-body .fi2027 .ad--billboard .ad-frame iframe,
#tie-body .fi2027 .ad.fi-arch-ad img,
#tie-body .fi2027 .ad.fi-arch-ad iframe,
#tie-body .fi-map-page .fi-map-ad .ad-frame img,
#tie-body .fi-map-page .fi-map-ad .ad-frame iframe {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  margin-inline: auto;
  object-fit: contain;
}
@media (min-width: 761px) {
  #tie-body .fi2027 .ad--billboard .ad-frame img,
  #tie-body .fi2027 .ad--billboard .ad-frame iframe,
  #tie-body .fi2027 .ad.fi-arch-ad img,
  #tie-body .fi2027 .ad.fi-arch-ad iframe,
  #tie-body .fi-map-page .fi-map-ad .ad-frame img,
  #tie-body .fi-map-page .fi-map-ad .ad-frame iframe {
    max-height: 320px;
  }
}


/* Wide ad pairs (1.0.13): when two widgets are in the homepage billboard,
   archive grid or Places Map slot, sit them side by side on desktop.
   One "Advertisement" label for the row. A single widget keeps the 1.0.12 rules. */
@media (min-width: 761px) {
  #tie-body .fi2027 .ad--billboard:has(> .fi-widget + .fi-widget),
  #tie-body .fi2027 .ad.fi-arch-ad:has(> .fi-widget + .fi-widget),
  #tie-body .fi-map-page .fi-map-ad:has(> .fi-widget + .fi-widget) {
    display: grid;
    grid-template-columns: minmax(0, 560px) minmax(0, 560px);
    justify-content: center;
    column-gap: 24px;
    row-gap: 12px;
    align-items: stretch;
  }
  #tie-body .fi2027 .ad--billboard:has(> .fi-widget + .fi-widget) > .ad-label,
  #tie-body .fi2027 .ad.fi-arch-ad:has(> .fi-widget + .fi-widget) > .ad-label,
  #tie-body .fi-map-page .fi-map-ad:has(> .fi-widget + .fi-widget) > .ad-label {
    grid-column: 1 / -1;
  }
  #tie-body .fi2027 .ad--billboard:has(> .fi-widget + .fi-widget) .ad-frame,
  #tie-body .fi2027 .ad.fi-arch-ad:has(> .fi-widget + .fi-widget) .ad-frame,
  #tie-body .fi-map-page .fi-map-ad:has(> .fi-widget + .fi-widget) .ad-frame {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #tie-body .fi2027 .ad--billboard:has(> .fi-widget + .fi-widget) .fi-widget + .fi-widget,
  #tie-body .fi2027 .ad.fi-arch-ad:has(> .fi-widget + .fi-widget) .fi-widget + .fi-widget,
  #tie-body .fi-map-page .fi-map-ad:has(> .fi-widget + .fi-widget) .fi-widget + .fi-widget {
    margin-top: 0;
  }
  #tie-body .fi2027 .ad--billboard:has(> .fi-widget + .fi-widget) img,
  #tie-body .fi2027 .ad.fi-arch-ad:has(> .fi-widget + .fi-widget) img,
  #tie-body .fi-map-page .fi-map-ad:has(> .fi-widget + .fi-widget) img {
    max-height: none;
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}

/* Homepage strip ads: below More news, and the leaderboard above Tenders and Jobs. */
#tie-body .fi2027 .fi-leaderboard,
#tie-body .fi2027 .fi-below-more {
  margin: 0 0 8px;
  padding: 12px 0 16px;
  text-align: center;
}
#tie-body .fi2027 .fi-leaderboard .ad-frame,
#tie-body .fi2027 .fi-below-more .ad-frame {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--fi-line-dark);
  border-radius: var(--fi-radius-sm);
  padding: 8px 10px;
  overflow: hidden;
}
#tie-body .fi2027 .fi-leaderboard img,
#tie-body .fi2027 .fi-below-more img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 300px;
  margin-inline: auto;
  object-fit: contain;
  border-radius: 8px;
}

/* Below-More-news strip lives in the main card column (see fi-home.css). */
#tie-body .fi2027 .latest-layout .fi-below-more {
  margin: 0;
  padding: 0;
  width: 100%;
}
#tie-body .fi2027 .latest-layout .fi-below-more .ad-frame {
  width: 100%;
  max-width: none;
  margin: 0;
}
#tie-body .fi2027 .latest-layout .fi-below-more img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
}
