/*
Theme Name: I Am Flying Blog
Theme URI: https://iamflyingblog.com/
Author: I Am Flying Blog
Description: Editorial travel blog theme with refined compact hero, balanced typography, and sticky editorial sidebar.
Version: 0.3.20
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: iamflying-blog
*/

:root {
  --ifb-bg: #f8f6f2;
  --ifb-surface: #fffdfa;
  --ifb-text: #1a1715;
  --ifb-muted: #665f58;
  --ifb-line: #e6dfd5;
  --ifb-line-subtle: #efe9e0;
  --ifb-accent: #b86e43;
  --ifb-accent-dark: #8f4f2a;
  --ifb-radius: 6px;
  --ifb-radius-sm: 4px;
  /* Header Component System Tokens (shadcn design system principles) */
  --ifb-header-control-h: 42px;
  --ifb-header-control-h-mobile: 38px;
  --ifb-header-control-radius: 7px;
  --ifb-header-control-border: 1px solid var(--ifb-line);
  --ifb-header-control-font-size: 13px;
  --ifb-header-control-font-weight: 500;
  --ifb-header-control-gap: 8px;
  --ifb-radius-sm: 4px;
  --ifb-shadow-subtle: 0 2px 10px rgba(34, 25, 18, 0.04);
  --ifb-shadow-hover: 0 6px 20px rgba(34, 25, 18, 0.07);
  --ifb-container: 1180px;
  --ifb-max: var(--ifb-container);
  --ifb-article-measure: 75ch;
  --ifb-logo-width: 200px;
  --ifb-serif: Georgia, 'Times New Roman', serif;
  --ifb-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ifb-bg);
  color: var(--ifb-text);
  font-family: var(--ifb-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ifb-accent-dark); }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Page shell with centered max-width and comfortable outer margins */
.ifb-shell {
  width: min(calc(100% - 48px), var(--ifb-max));
  margin-inline: auto;
}

/* Compact, balanced sticky site header */
.ifb-site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 253, 250, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ifb-line);
  transition: box-shadow 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

/* WordPress Admin Bar Compatibility */
body.admin-bar .ifb-site-header {
  top: 32px;
}
@media (max-width: 782px) {
  body.admin-bar .ifb-site-header {
    top: 46px;
  }
}
@media (max-width: 600px) {
  body.admin-bar .ifb-site-header {
    top: 0;
  }
}

.ifb-header-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 32px;
  transition: min-height 0.22s ease;
}

/* Scrolled compact state */
.ifb-site-header.is-scrolled {
  background: rgba(255, 253, 250, 0.985);
  box-shadow: 0 4px 18px rgba(34, 25, 18, 0.05);
  border-bottom-color: rgba(230, 223, 213, 0.85);
}
.ifb-site-header.is-scrolled .ifb-header-inner {
  min-height: 58px;
}
.ifb-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.ifb-logo-text {
  font-family: var(--ifb-serif);
  font-size: clamp(20px, 1.8vw, 26px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-weight: 500;
}
.ifb-tagline {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ifb-muted);
}
.custom-logo-link {
  display: inline-flex;
  align-items: center;
}
.custom-logo {
  width: var(--ifb-logo-width, 200px);
  max-width: 100%;
  height: auto;
  display: block;
}

/* Primary Navigation: aligned along shared vertical axis with action controls */
.ifb-nav {
  margin-left: auto;
}
.ifb-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 26px;
  align-items: center;
}
.ifb-nav a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ifb-text);
  height: var(--ifb-header-control-h);
  line-height: var(--ifb-header-control-h);
  display: inline-flex;
  align-items: center;
  padding: 0 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
}
.ifb-nav .current-menu-item > a,
.ifb-nav a:hover {
  border-bottom-color: var(--ifb-accent-dark);
  color: var(--ifb-accent-dark);
}
.ifb-nav a:focus-visible {
  outline: 2px solid var(--ifb-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Header Action Group: shared geometry & semantic variants (shadcn system principles) */
.ifb-header-actions {
  display: flex;
  align-items: center;
  gap: var(--ifb-header-control-gap);
  flex-shrink: 0;
}

/* Variant 1: Language Switcher (select/outline control) */
.ifb-lang-wrap {
  position: relative;
  z-index: 100;
  display: inline-flex;
  align-items: center;
}
.ifb-lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--ifb-surface);
  border: var(--ifb-header-control-border);
  border-radius: var(--ifb-header-control-radius);
  height: var(--ifb-header-control-h);
  padding: 0 13px;
  font-size: var(--ifb-header-control-font-size);
  font-weight: var(--ifb-header-control-font-weight);
  color: var(--ifb-text);
  cursor: pointer;
  line-height: 1;
  box-sizing: border-box;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
}
.ifb-lang-toggle:hover {
  background: #fff;
  border-color: var(--ifb-muted);
}
.ifb-lang-toggle:focus-visible {
  outline: 2px solid var(--ifb-accent);
  outline-offset: 2px;
}
.ifb-lang-toggle[aria-expanded="true"] {
  background: #fff;
  border-color: var(--ifb-text);
}
.ifb-flag-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 12px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(26, 23, 21, 0.12);
  flex-shrink: 0;
}
.ifb-flag-img {
  display: block;
  width: 18px;
  height: 12px;
  object-fit: cover;
}
.ifb-lang-name {
  letter-spacing: 0.01em;
}
.ifb-lang-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ifb-muted);
  transition: transform 0.2s ease, color 0.15s ease;
  margin-left: 1px;
}
.ifb-lang-toggle:hover .ifb-lang-chevron {
  color: var(--ifb-text);
}
.ifb-lang-toggle[aria-expanded="true"] .ifb-lang-chevron {
  transform: rotate(180deg);
  color: var(--ifb-text);
}
.ifb-lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 140px;
  background: #fff;
  border: 1px solid var(--ifb-line);
  border-radius: var(--ifb-header-control-radius);
  box-shadow: 0 8px 24px rgba(26, 23, 21, 0.08), 0 2px 6px rgba(26, 23, 21, 0.04);
  padding: 5px;
  z-index: 150;
}
.ifb-lang-dropdown[hidden] {
  display: none !important;
}
.ifb-lang-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ifb-lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: calc(var(--ifb-header-control-radius) - 2px);
  font-size: var(--ifb-header-control-font-size);
  color: var(--ifb-text);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
  cursor: pointer;
  line-height: 1;
  pointer-events: auto;
}
.ifb-lang-option * {
  pointer-events: none;
}
.ifb-lang-option:hover,
.ifb-lang-option:focus-visible {
  background: var(--ifb-bg);
  outline: none;
}
.ifb-lang-option.is-active {
  background: var(--ifb-line-subtle);
  font-weight: 600;
}
.ifb-lang-option-text {
  flex: 1;
}
.ifb-lang-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ifb-accent-dark);
  margin-left: 6px;
  flex-shrink: 0;
}

/* Variant 2: Search Button (square icon outline control) */
.ifb-search-wrap {
  position: relative;
  z-index: 90;
}
.ifb-search-toggle {
  border: var(--ifb-header-control-border);
  background: var(--ifb-surface);
  width: var(--ifb-header-control-h);
  height: var(--ifb-header-control-h);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ifb-muted);
  border-radius: var(--ifb-header-control-radius);
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  padding: 0;
  box-sizing: border-box;
}
.ifb-search-toggle:hover {
  color: var(--ifb-text);
  background: #fff;
  border-color: var(--ifb-muted);
}
.ifb-search-toggle:focus-visible {
  outline: 2px solid var(--ifb-accent);
  outline-offset: 2px;
}
.ifb-search-toggle[aria-expanded="true"] {
  color: var(--ifb-text);
  background: #fff;
  border-color: var(--ifb-text);
}
.ifb-search-icon {
  display: block;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: inherit;
}
.ifb-search-popover {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 290px;
  padding: 6px;
  background: var(--ifb-surface);
  border: 1px solid var(--ifb-line);
  border-radius: var(--ifb-header-control-radius);
  box-shadow: 0 8px 24px rgba(26, 23, 21, 0.08), 0 2px 6px rgba(26, 23, 21, 0.04);
  z-index: 120;
}
.ifb-search-popover[hidden] {
  display: none;
}
.ifb-search-popover .ifb-search-form {
  border-color: var(--ifb-line);
  background: #fff;
  border-radius: calc(var(--ifb-header-control-radius) - 2px);
}
.ifb-search-popover .ifb-search-form:focus-within {
  border-color: var(--ifb-accent-dark);
}

/* Variant 3: All Posts Action (filled CTA button) */
.ifb-all-posts {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #edd8c8;
  color: var(--ifb-text);
  height: var(--ifb-header-control-h);
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--ifb-header-control-radius);
  font-size: var(--ifb-header-control-font-size);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  box-sizing: border-box;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.ifb-all-posts:hover {
  background: #e4c7b2;
  color: var(--ifb-text);
}
.ifb-all-posts:focus-visible {
  outline: 2px solid var(--ifb-accent);
  outline-offset: 2px;
}

.ifb-menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: var(--ifb-header-control-h);
  height: var(--ifb-header-control-h);
  font-size: 22px;
  cursor: pointer;
  color: var(--ifb-text);
  align-items: center;
  justify-content: center;
  border-radius: var(--ifb-header-control-radius);
}
.ifb-menu-toggle:focus-visible {
  outline: 2px solid var(--ifb-accent);
  outline-offset: 2px;
}

/* Hero section: compact, editorial, restrained viewport height */
.ifb-hero {
  width: min(calc(100% - 48px), var(--ifb-max));
  margin: 18px auto 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--ifb-radius);
  background: #1f1d1b;
}
.ifb-hero-track {
  display: flex;
  transition: transform 0.45s ease;
}
.ifb-hero-slide {
  min-width: 100%;
  position: relative;
  min-height: 380px;
  color: #fff;
  display: flex;
  align-items: center;
}
.ifb-hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 14, 12, 0.78) 0%, rgba(16, 14, 12, 0.42) 45%, rgba(16, 14, 12, 0.1) 85%);
  pointer-events: none;
}
.ifb-hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ifb-hero-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
  text-decoration: none;
}
.ifb-hero-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -3px;
}
.ifb-hero-content {
  position: relative;
  z-index: 3;
  width: min(580px, 80%);
  padding: 38px clamp(28px, 4vw, 56px);
  pointer-events: none;
}
.ifb-hero-content > * {
  pointer-events: auto;
}
.ifb-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 10.5px;
  font-weight: 700;
  color: #e5bfa5;
}
.ifb-eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.ifb-hero-title {
  margin: 12px 0 10px;
  font-family: var(--ifb-serif);
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: #fff;
}
.ifb-hero-excerpt {
  max-width: 480px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}
.ifb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  background: var(--ifb-accent);
  color: #fff;
  padding: 9px 18px;
  border-radius: var(--ifb-radius);
  font-weight: 600;
  font-size: 13px;
  transition: background 0.15s ease;
}
.ifb-button:hover {
  color: #fff;
  background: var(--ifb-accent-dark);
}
.ifb-hero-controls {
  position: absolute;
  z-index: 4;
  right: clamp(20px, 3vw, 32px);
  bottom: clamp(18px, 2.5vw, 24px);
  left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(16, 14, 12, 0.48);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--ifb-radius-sm);
}
.ifb-hero-arrow {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 13px;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.ifb-hero-arrow:hover {
  background: rgba(0, 0, 0, 0.5);
  border-color: #fff;
}
.ifb-hero-dots {
  display: flex;
  gap: 6px;
  margin-left: 6px;
}
.ifb-hero-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.ifb-hero-dot.is-active {
  background: #fff;
}

/* Main Content & Section Layout */
.ifb-main {
  padding: 32px 0 56px;
}
.ifb-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 32px;
  align-items: start;
}
.ifb-section-heading {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 20px;
}
.ifb-section-kicker {
  margin: 0 0 3px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ifb-muted);
}
.ifb-section-title {
  margin: 0;
  font-family: var(--ifb-serif);
  font-weight: 500;
  line-height: 1.1;
  font-size: clamp(24px, 2.2vw, 30px);
  letter-spacing: -0.02em;
}
.ifb-section-line {
  flex: 1;
  height: 1px;
  background: var(--ifb-line);
  margin-bottom: 6px;
}
.ifb-section-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ifb-muted);
  white-space: nowrap;
  margin-bottom: 4px;
}
.ifb-section-link:hover {
  color: var(--ifb-accent-dark);
}

/* Post Cards Grid: editorial, calm, restrained */
.ifb-post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.ifb-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--ifb-line);
  border-radius: var(--ifb-radius);
  background: var(--ifb-surface);
  box-shadow: var(--ifb-shadow-subtle);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.ifb-card:hover {
  transform: translateY(-2px);
  border-color: #d8cdbe;
  box-shadow: var(--ifb-shadow-hover);
}
.ifb-card-media {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #ede6dc;
}
.ifb-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.ifb-card:hover .ifb-card-media img {
  transform: scale(1.02);
}
.ifb-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 15px 16px 14px;
}
.ifb-card-kicker {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ifb-accent-dark);
  margin-bottom: 6px;
}
.ifb-card-kicker a:hover {
  text-decoration: underline;
}
/* Backward compatibility for pill badges if still present */
.ifb-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ifb-accent-dark);
  margin-bottom: 6px;
}
.ifb-card-title {
  margin: 0 0 8px;
  font-family: var(--ifb-serif);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-transform: none;
}
.ifb-card-title a {
  color: var(--ifb-text);
  text-decoration: none;
}
.ifb-card-title a:hover {
  color: var(--ifb-accent-dark);
}
.ifb-card-excerpt {
  margin: 0 0 12px;
  color: var(--ifb-muted, #766e65);
  font-size: 13.5px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ifb-card-media-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--ifb-radius) var(--ifb-radius) 0 0;
}
.ifb-card-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 3;
}
.ifb-card-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(220, 212, 201, 0.9);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  color: #554f49;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.16s ease, background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  padding: 0;
}
.ifb-card-action-btn:hover {
  background: #ffffff;
  color: #1a1816;
  border-color: #cbbead;
  transform: scale(1.06);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}
.ifb-card-action-btn:active {
  transform: scale(0.96);
}
.ifb-card-action-btn:focus-visible {
  outline: 2px solid var(--ifb-accent, #c2413a);
  outline-offset: 2px;
}
.ifb-card-like-btn.is-liked {
  background: #fff6f4;
  border-color: #ecd7cf;
  color: #d33833;
}
.ifb-card-like-btn.is-liked .ifb-card-like-icon svg path {
  fill: #d33833;
  stroke: #d33833;
}
.ifb-card-meta {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--ifb-line-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--ifb-muted);
  font-size: 11.5px;
  text-transform: none;
}
.ifb-card-meta-items {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
}
.ifb-card-meta-items span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: #c2b7ab;
}
.ifb-card-likes {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ifb-muted, #766e65);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

/* Editorial Sticky Sidebar */
.ifb-sidebar {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 16px;
}
.ifb-widget {
  border: 1px solid var(--ifb-line);
  border-radius: var(--ifb-radius);
  background: var(--ifb-surface);
  box-shadow: var(--ifb-shadow-subtle);
  padding: 16px;
}
.ifb-widget-title {
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ifb-serif);
  font-size: 18px;
  font-weight: 500;
}
.ifb-widget-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--ifb-line);
}
.ifb-about-grid {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  align-items: start;
}
.ifb-about-photo {
  aspect-ratio: 4/5;
  border-radius: var(--ifb-radius);
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  background: #ede6dc;
  display: block;
}
div.ifb-about-photo {
  aspect-ratio: 4/5;
  width: 100%;
  background: #ede6dc;
}
.ifb-about-text {
  margin: 0;
  color: var(--ifb-muted);
  font-size: 12.5px;
  line-height: 1.5;
}
.ifb-small-button {
  display: inline-flex;
  margin-top: 10px;
  background: var(--ifb-accent);
  color: #fff;
  border-radius: var(--ifb-radius);
  padding: 6px 11px;
  font-size: 11.5px;
  font-weight: 600;
}
.ifb-small-button:hover {
  background: var(--ifb-accent-dark);
  color: #fff;
}
.ifb-search-form {
  display: flex;
  align-items: center;
  border: var(--ifb-header-control-border);
  border-radius: var(--ifb-header-control-radius);
  background: #fff;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ifb-search-form:focus-within {
  border-color: var(--ifb-accent-dark);
  box-shadow: 0 0 0 2px rgba(184, 110, 67, 0.15);
}
.ifb-search-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 8px 11px;
  font-size: 13px;
  background: transparent;
}
.ifb-search-form button {
  border: 0;
  background: transparent;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ifb-muted);
  padding: 0;
}
.ifb-search-form button:hover {
  color: var(--ifb-text);
}
.ifb-search-form button .ifb-search-icon {
  width: 16px;
  height: 16px;
}

/* Editorial What's On / Gündemde Ne Var? Module (v0.3.19) */
.ifb-whats-on {
  padding: 16px;
  position: relative;
}
.ifb-whats-on-head {
  margin-bottom: 12px;
}
.ifb-whats-on-title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ifb-serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--ifb-text);
}
.ifb-whats-on-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--ifb-line);
}
.ifb-whats-on-slider {
  position: relative;
}
.ifb-whats-on-track {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  min-height: 135px;
}
.ifb-whats-on-slide {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  transform: translateY(4px);
}
.ifb-whats-on-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.ifb-whats-on-topic {
  font-family: var(--ifb-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ifb-accent);
  margin-bottom: 6px;
  line-height: 1.2;
}
.ifb-whats-on-body {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  flex: 1;
}
.ifb-whats-on-thumb {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: var(--ifb-radius-sm);
  overflow: hidden;
  background: var(--ifb-line-subtle);
}
.ifb-whats-on-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ifb-whats-on-content {
  flex: 1;
  min-width: 0;
}
.ifb-whats-on-text {
  font-family: var(--ifb-sans);
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--ifb-text);
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ifb-whats-on-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}
.ifb-whats-on-link:hover,
.ifb-whats-on-link:focus-visible {
  color: var(--ifb-accent);
}
.ifb-whats-on-ext-icon {
  display: inline-block;
  font-size: 13px;
  margin-left: 3px;
  color: var(--ifb-muted);
  transition: transform 0.15s ease, color 0.15s ease;
}
.ifb-whats-on-link:hover .ifb-whats-on-ext-icon {
  transform: translate(1px, -1px);
  color: var(--ifb-accent);
}
.ifb-whats-on-sublink {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--ifb-sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ifb-accent);
  text-decoration: none;
  margin-bottom: 6px;
  transition: color 0.15s ease;
}
.ifb-whats-on-sublink:hover,
.ifb-whats-on-sublink:focus-visible {
  color: var(--ifb-accent-dark);
  text-decoration: underline;
}
.ifb-whats-on-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px 12px;
  font-family: var(--ifb-sans);
  font-size: 12px;
  color: var(--ifb-muted);
  border-top: 1px solid var(--ifb-line-subtle);
  padding-top: 6px;
  margin-top: 4px;
}
.ifb-whats-on-byline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ifb-whats-on-location {
  font-weight: 500;
  color: var(--ifb-text);
}
.ifb-whats-on-sep {
  color: var(--ifb-line);
}
.ifb-whats-on-source {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.ifb-whats-on-source-link {
  color: var(--ifb-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}
.ifb-whats-on-source-link:hover {
  color: var(--ifb-accent);
}
.ifb-whats-on-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--ifb-line-subtle);
}
.ifb-whats-on-arrows {
  display: flex;
  gap: 4px;
}
.ifb-whats-on-arrow {
  background: transparent;
  border: 1px solid var(--ifb-line);
  border-radius: var(--ifb-radius-sm);
  width: 26px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--ifb-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
  line-height: 1;
}
.ifb-whats-on-arrow:hover,
.ifb-whats-on-arrow:focus-visible {
  color: var(--ifb-text);
  border-color: var(--ifb-muted);
  background: var(--ifb-line-subtle);
}
.ifb-whats-on-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}
.ifb-whats-on-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--ifb-line);
  cursor: pointer;
  transition: all 0.2s ease;
}
.ifb-whats-on-dot.is-active {
  background: var(--ifb-accent);
  transform: scale(1.2);
}
.ifb-whats-on-dot:hover:not(.is-active),
.ifb-whats-on-dot:focus-visible:not(.is-active) {
  background: var(--ifb-muted);
}
@media (prefers-reduced-motion: reduce) {
  .ifb-whats-on-slide {
    transition: none !important;
    transform: none !important;
  }
  .ifb-whats-on-dot {
    transition: none !important;
  }
}

/* Sidebar Follow Widget */
.ifb-widget-subtitle {
  margin: -4px 0 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ifb-muted);
}
.ifb-sidebar-social-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ifb-sidebar-social-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #faf7f2;
  border: 1px solid var(--ifb-line-subtle);
  border-radius: var(--ifb-radius);
  color: var(--ifb-text);
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}
.ifb-sidebar-social-item:hover,
.ifb-sidebar-social-item:focus-visible {
  background: #fff;
  border-color: var(--ifb-line);
  color: var(--ifb-accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(34, 25, 18, 0.05);
}
.ifb-sidebar-social-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #efe8de;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ifb-text);
  flex-shrink: 0;
  transition: background 0.18s ease, color 0.18s ease;
}
.ifb-sidebar-social-icon svg {
  display: block;
}
.ifb-sidebar-social-item:hover .ifb-sidebar-social-icon {
  background: #e7ded2;
  color: var(--ifb-accent-dark);
}
.ifb-sidebar-social-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.ifb-sidebar-social-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ifb-text);
}
.ifb-sidebar-social-handle {
  font-size: 11.5px;
  color: var(--ifb-muted);
  line-height: 1.2;
  margin-top: 2px;
}
.ifb-sidebar-social-arrow {
  font-size: 14px;
  color: var(--ifb-muted);
  margin-left: auto;
  transition: transform 0.18s ease, color 0.18s ease;
}
.ifb-sidebar-social-item:hover .ifb-sidebar-social-arrow {
  color: var(--ifb-accent-dark);
  transform: translateX(3px);
}

/* Newsletter Widget */
.ifb-newsletter {
  background: #f3e9df;
  border-color: #e4d7cb;
}
.ifb-newsletter p {
  color: #55483f;
  font-size: 12.5px;
  margin: 0 0 10px;
}
.ifb-newsletter-row {
  display: flex;
  gap: 6px;
}
.ifb-newsletter-row input {
  min-width: 0;
  flex: 1;
  border: 1px solid rgba(85, 72, 63, 0.2);
  border-radius: var(--ifb-radius);
  padding: 8px 10px;
  font-size: 12.5px;
  background: #fff;
}
.ifb-newsletter-row button {
  border: 0;
  border-radius: var(--ifb-radius);
  background: var(--ifb-text);
  color: #fff;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* Pagination */
.ifb-pagination {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.ifb-pagination .page-numbers {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ifb-line);
  border-radius: var(--ifb-radius);
  background: var(--ifb-surface);
  font-size: 13px;
}
.ifb-pagination .current {
  background: var(--ifb-text);
  color: #fff;
  border-color: var(--ifb-text);
}

/* Site Footer — 4-Column Refined Editorial */
.ifb-site-footer {
  border-top: 1px solid var(--ifb-line);
  background: #f2eee8;
  padding: 56px 0 28px;
  margin-top: 60px;
  color: var(--ifb-text);
}
.ifb-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}
.ifb-footer-col-brand .ifb-logo-text {
  font-family: var(--ifb-serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  display: inline-block;
  margin-bottom: 12px;
  color: var(--ifb-text);
}
.ifb-footer-logo-link {
  text-decoration: none;
  display: inline-block;
}
.ifb-footer-brand-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ifb-muted);
  margin: 0;
  max-width: 310px;
}
.ifb-footer-col-title {
  font-family: var(--ifb-sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ifb-muted);
  margin: 0 0 16px;
}
.ifb-footer-links-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
}
.ifb-footer-links-list a {
  color: var(--ifb-text);
  text-decoration: none;
  transition: color 0.18s ease;
  display: inline-block;
}
.ifb-footer-links-list a:hover,
.ifb-footer-links-list a:focus-visible {
  color: var(--ifb-accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ifb-footer-social-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ifb-footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ifb-text);
  font-size: 13px;
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.18s ease;
}
.ifb-footer-social-link:hover,
.ifb-footer-social-link:focus-visible {
  color: var(--ifb-accent-dark);
}
.ifb-footer-social-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e5ded3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ifb-text);
  flex-shrink: 0;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.ifb-footer-social-icon svg {
  display: block;
}
.ifb-footer-social-link:hover .ifb-footer-social-icon {
  background: #dbd2c5;
  color: var(--ifb-accent-dark);
  transform: scale(1.05);
}
.ifb-footer-social-name {
  font-weight: 500;
}
.ifb-footer-bottom {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--ifb-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: var(--ifb-muted);
}
.ifb-copyright {
  color: var(--ifb-muted);
  font-size: 12px;
}
.ifb-footer-secondary {
  font-size: 12px;
  color: var(--ifb-muted);
  font-style: italic;
}

@media (max-width: 980px) {
  .ifb-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .ifb-footer-col-brand {
    grid-column: span 2;
  }
}
@media (max-width: 600px) {
  .ifb-site-footer {
    padding: 40px 0 24px;
    margin-top: 40px;
  }
  .ifb-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .ifb-footer-col-brand {
    grid-column: span 1;
  }
  .ifb-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 32px;
    padding-top: 16px;
  }
}

/* Discreet Back-To-Top Button */
.ifb-back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--ifb-line);
  background: rgba(255, 253, 250, 0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--ifb-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99;
  box-shadow: 0 4px 14px rgba(34, 25, 18, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.92);
  transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.ifb-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.ifb-back-to-top:hover {
  background: #fff;
  border-color: var(--ifb-accent);
  color: var(--ifb-accent-dark);
  box-shadow: 0 6px 18px rgba(34, 25, 18, 0.12);
  transform: translateY(-2px) scale(1.02);
}
.ifb-back-to-top:focus-visible {
  outline: 2px solid var(--ifb-accent);
  outline-offset: 2px;
}
@media (max-width: 600px) {
  .ifb-back-to-top {
    bottom: 20px;
    right: 18px;
    width: 40px;
    height: 40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ifb-back-to-top {
    transition: opacity 0.1s linear;
    transform: none !important;
  }
}

/* Single Post & Page Article */
.ifb-article {
  width: 100%;
  max-width: 100%;
  background: var(--ifb-surface);
  border-radius: var(--ifb-radius);
  border: 1px solid var(--ifb-line);
  overflow: hidden;
}
.ifb-shell:not(.ifb-layout) > .ifb-article {
  max-width: 860px;
  margin-inline: auto;
}
.ifb-article-head {
  padding: 32px clamp(20px, 3.2vw, 42px) 22px;
}
.ifb-article-head-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}
.ifb-article-head-top .ifb-card-kicker {
  margin-bottom: 0;
}
.ifb-article-kicker-spacer {
  flex: 1;
}
.ifb-article-title {
  margin: 10px 0 14px;
  font-family: var(--ifb-serif);
  font-size: clamp(26px, 2.8vw, 36px);
  line-height: 1.18;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ifb-text);
  max-width: var(--ifb-article-measure, 75ch);
}
.ifb-article-deck {
  font-size: clamp(15px, 1.15vw, 16px);
  line-height: 1.55;
  color: var(--ifb-muted);
  margin-bottom: 14px;
  max-width: var(--ifb-article-measure, 75ch);
}
.ifb-article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--ifb-muted);
  margin-top: 14px;
}
.ifb-meta-author {
  font-weight: 500;
  color: var(--ifb-text);
}
.ifb-meta-sep {
  color: var(--ifb-line);
  font-size: 11px;
}
.ifb-meta-date {
  color: var(--ifb-muted);
}
.ifb-meta-reading {
  color: var(--ifb-muted);
}
.ifb-article-featured {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}
.ifb-entry-content {
  padding: 30px clamp(20px, 3.2vw, 42px) 44px;
  font-family: var(--ifb-serif);
  font-size: clamp(16px, 1.05vw, 17px);
  line-height: 1.72;
  color: #221f1d;
}
.ifb-entry-content > p,
.ifb-entry-content > ul,
.ifb-entry-content > ol,
.ifb-entry-content > blockquote,
.ifb-entry-content > h2,
.ifb-entry-content > h3,
.ifb-entry-content > h4,
.ifb-entry-content > h5,
.ifb-entry-content > h6,
.ifb-entry-content > hr {
  max-width: var(--ifb-article-measure, 75ch);
}
.ifb-entry-content h2 {
  font-family: var(--ifb-sans);
  font-size: clamp(21px, 2vw, 25px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin-top: 2.2em;
  margin-bottom: 0.7em;
  color: var(--ifb-text);
}
.ifb-entry-content h3 {
  font-family: var(--ifb-sans);
  font-size: clamp(18px, 1.5vw, 20px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-top: 1.8em;
  margin-bottom: 0.55em;
  color: var(--ifb-text);
}
.ifb-entry-content p {
  margin-top: 0;
  margin-bottom: 1.35em;
}
.ifb-entry-content ul,
.ifb-entry-content ol {
  margin-top: 0;
  margin-bottom: 1.35em;
  padding-left: 1.5em;
}
.ifb-entry-content li {
  margin-bottom: 0.45em;
}
.ifb-entry-content hr {
  border: 0;
  height: 1px;
  background: var(--ifb-line);
  margin: 2.4em 0;
}
.ifb-entry-content a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.ifb-entry-content img {
  border-radius: var(--ifb-radius);
}

/* Highlight / Callout boxes in articles */
.ifb-highlight-box {
  margin: 1.6rem 0;
  padding: 16px 20px;
  background: #f7f4ed;
  border-left: 3px solid var(--ifb-accent);
  border-radius: var(--ifb-radius-sm);
  font-family: var(--ifb-sans);
  font-size: 0.9375rem; /* 15px */
  line-height: 1.6;
  max-width: var(--ifb-article-measure, 75ch);
}
.ifb-highlight-box p {
  margin: 0;
}
.ifb-highlight-box p + p {
  margin-top: 0.75em;
}

/* ==========================================================================
   Editorial Content Tables & Responsive Scroll Wrappers
   ========================================================================== */

/* Outer scroll container: prevents body horizontal overflow and creates a distinct editorial card */
.ifb-table-wrap,
.ifb-table-scroll,
.ifb-entry-content .wp-block-table {
  width: 100%;
  max-width: 100%;
  margin: 2.2rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--ifb-surface);
  border: 1px solid var(--ifb-line);
  border-radius: var(--ifb-radius);
  box-shadow: 0 1px 4px rgba(26, 23, 21, 0.03);
  position: relative;
}

/* Subtle mobile scroll hint: small, subtle, neutral, non-intrusive */
.ifb-table-hint {
  display: none;
  font-family: var(--ifb-sans);
  font-size: 0.75rem; /* 12px */
  letter-spacing: 0.02em;
  color: var(--ifb-muted);
  text-align: center;
  padding: 7px 12px;
  background: #f5f0e6;
  border-bottom: 1px solid var(--ifb-line);
  user-select: none;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
  .ifb-table-wrap.has-overflow .ifb-table-hint,
  .ifb-table-scroll.has-overflow .ifb-table-hint,
  .ifb-entry-content .wp-block-table.has-overflow .ifb-table-hint {
    display: block;
  }
}

/* The Table Element */
.ifb-entry-content table,
.ifb-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0;
  font-family: var(--ifb-sans);
  font-size: 0.9375rem; /* 15px */
  line-height: 1.55;
  color: var(--ifb-text);
  background-color: transparent;
  text-align: left;
}

/* Multi-column tables (3+ columns): ensure comfortable minimum width so columns don't collapse on mobile */
.ifb-table-wrap:has(th:nth-child(3)) table,
.ifb-table-scroll:has(th:nth-child(3)) table,
.ifb-entry-content table:has(th:nth-child(3)),
.ifb-table-wrap.is-wide-table table,
.ifb-table-scroll.is-wide-table table,
.wp-block-table.is-wide-table table {
  min-width: 580px;
}

/* Wide comparison tables (5+ columns like Money Transfer) */
.ifb-table-wrap:has(th:nth-child(5)) table,
.ifb-table-scroll:has(th:nth-child(5)) table,
.ifb-entry-content table:has(th:nth-child(5)),
.ifb-table-wrap.is-extra-wide table,
.ifb-table-scroll.is-extra-wide table,
.wp-block-table.is-extra-wide table {
  min-width: 680px;
}

/* Fallback wide class */
.ifb-table-wide {
  min-width: 640px;
}

/* Table Header */
.ifb-entry-content table thead th,
.ifb-table thead th {
  background-color: #f3eee6;
  color: var(--ifb-text);
  font-size: 0.8125rem; /* 13px */
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 15px 18px;
  border: 0;
  border-bottom: 1px solid var(--ifb-line);
  vertical-align: bottom;
  white-space: nowrap;
}

/* First header rounded corner */
.ifb-entry-content table thead tr:first-child th:first-child,
.ifb-table thead tr:first-child th:first-child {
  border-top-left-radius: calc(var(--ifb-radius) - 1px);
}

.ifb-entry-content table thead tr:first-child th:last-child,
.ifb-table thead tr:first-child th:last-child {
  border-top-right-radius: calc(var(--ifb-radius) - 1px);
}

/* Table Body Cells */
.ifb-entry-content table tbody td,
.ifb-table tbody td {
  padding: 14px 18px;
  border: 0;
  border-bottom: 1px solid var(--ifb-line-subtle);
  color: var(--ifb-text);
  vertical-align: top;
  background-color: transparent;
  transition: background-color 0.15s ease;
}

/* Last row no bottom border */
.ifb-entry-content table tbody tr:last-child td,
.ifb-table tbody tr:last-child td {
  border-bottom: 0;
}

/* Bottom corner radii */
.ifb-entry-content table tbody tr:last-child td:first-child,
.ifb-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: calc(var(--ifb-radius) - 1px);
}

.ifb-entry-content table tbody tr:last-child td:last-child,
.ifb-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: calc(var(--ifb-radius) - 1px);
}

/* Alternating subtle row zebra */
.ifb-entry-content table tbody tr:nth-child(even),
.ifb-table tbody tr:nth-child(even) {
  background-color: rgba(248, 246, 242, 0.55);
}

/* Row hover effect */
.ifb-entry-content table tbody tr:hover,
.ifb-table tbody tr:hover {
  background-color: rgba(241, 235, 225, 0.45);
}

/* First column prominence */
.ifb-entry-content table tbody td:first-child,
.ifb-table tbody td:first-child {
  font-weight: 600;
  color: var(--ifb-text);
  white-space: normal;
  min-width: 140px;
}

/* For 2-column tables (e.g. Amsterdam 09:00 itinerary), first column is compact */
.ifb-entry-content table tr th:first-child:nth-last-child(2) ~ td:first-child,
.ifb-table tr th:first-child:nth-last-child(2) ~ td:first-child,
.ifb-table-wrap:not(.is-wide-table):not(.is-extra-wide) table td:first-child,
.ifb-table-scroll:not(.is-wide-table):not(.is-extra-wide) table td:first-child {
  min-width: 90px;
}

/* Notes & long description cells (last column in 3+ column tables) */
.ifb-entry-content table tbody td:last-child,
.ifb-table tbody td:last-child {
  color: var(--ifb-text);
  min-width: 180px;
}

/* In 2-column tables, last column can flex normally */
.ifb-table-wrap:not(.is-wide-table):not(.is-extra-wide) table tbody td:last-child,
.ifb-table-scroll:not(.is-wide-table):not(.is-extra-wide) table tbody td:last-child {
  min-width: auto;
}

/* Currency & strong text in cells */
.ifb-entry-content table td strong,
.ifb-table td strong {
  color: var(--ifb-text);
  font-weight: 600;
}

/* Mobile Adjustments (under 768px) */
@media (max-width: 768px) {
  .ifb-table-wrap,
  .ifb-table-scroll,
  .ifb-entry-content .wp-block-table {
    margin: 1.6rem 0;
    border-radius: var(--ifb-radius-sm);
  }

  .ifb-entry-content table thead th,
  .ifb-table thead th {
    padding: 11px 13px;
    font-size: 0.75rem; /* 12px */
  }

  .ifb-entry-content table tbody td,
  .ifb-table tbody td {
    padding: 11px 13px;
    font-size: 0.875rem; /* 14px */
    line-height: 1.5;
  }
}


/* Accessibility & Focus States */
.skip-link:focus {
  clip: auto;
  clip-path: none;
  width: auto;
  height: auto;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  background: #fff;
  z-index: 9999;
}
:focus-visible {
  outline: 2px solid var(--ifb-accent-dark);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ifb-hero-track { transition: none; }
  .ifb-card { transition: none; }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .ifb-header-inner { gap: 18px; min-height: 66px; }
  .ifb-nav ul { gap: 16px; }
  .ifb-nav a { font-size: 13px; }
  .ifb-layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 24px; }
  .ifb-about-grid { grid-template-columns: 74px 1fr; }
}

@media (max-width: 860px) {
  .ifb-shell { width: min(calc(100% - 32px), var(--ifb-max)); }
  .ifb-menu-toggle { display: block; }
  .ifb-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    background: var(--ifb-surface);
    border: 1px solid var(--ifb-line);
    border-radius: var(--ifb-radius);
    box-shadow: var(--ifb-shadow-hover);
    padding: 10px;
  }
  .ifb-nav.is-open { display: block; }
  .ifb-nav ul { display: block; }
  .ifb-nav a { display: block; padding: 10px 8px; border: 0; }
  .ifb-header-actions .ifb-all-posts { display: none; }
  .ifb-brand { margin-right: auto; }
  .custom-logo {
    max-width: min(var(--ifb-logo-width, 200px), calc(100vw - 160px), 240px);
  }
  .ifb-search-popover {
    width: min(calc(100vw - 32px), 300px);
  }
  .ifb-logo-text { font-size: 22px; }
  .ifb-tagline { display: none; }
  .ifb-hero {
    width: min(calc(100% - 32px), var(--ifb-max));
    min-height: 330px;
  }
  .ifb-hero-title { font-size: 30px; }
  .ifb-hero-controls {
    right: 24px;
    bottom: 20px;
    left: auto;
  }
  .ifb-layout { grid-template-columns: 1fr; }
  .ifb-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .ifb-shell { width: min(calc(100% - 24px), var(--ifb-max)); }
  .ifb-header-inner { min-height: 58px; gap: 8px; }
  .custom-logo {
    max-width: min(var(--ifb-logo-width, 200px), calc(100vw - 140px), 190px);
  }
  .ifb-logo-text { font-size: 19px; }
  .ifb-header-actions {
    gap: 6px;
  }
  .ifb-search-toggle {
    width: var(--ifb-header-control-h-mobile);
    height: var(--ifb-header-control-h-mobile);
  }
  .ifb-search-toggle .ifb-search-icon {
    width: 16px;
    height: 16px;
  }
  .ifb-lang-toggle {
    height: var(--ifb-header-control-h-mobile);
    padding: 0 9px;
    font-size: 12px;
    gap: 5px;
  }
  .ifb-flag-icon,
  .ifb-flag-img {
    width: 16px;
    height: 11px;
  }
  .ifb-lang-dropdown {
    min-width: 130px;
  }
  .ifb-lang-option {
    padding: 7px 9px;
    font-size: 12px;
  }
  .ifb-all-posts {
    height: var(--ifb-header-control-h-mobile);
    padding: 0 10px;
    font-size: 11.5px;
    gap: 4px;
  }
  .ifb-menu-toggle {
    display: inline-flex;
    width: var(--ifb-header-control-h-mobile);
    height: var(--ifb-header-control-h-mobile);
  }
  .ifb-hero {
    width: 100%;
    margin-top: 0;
    border-radius: 0;
    min-height: 290px;
    align-items: flex-end;
  }
  .ifb-hero-slide { min-height: 290px; }
  .ifb-hero-slide::after {
    background: linear-gradient(0deg, rgba(16, 14, 12, 0.88) 0%, rgba(16, 14, 12, 0.45) 60%, rgba(16, 14, 12, 0.1) 100%);
    pointer-events: none;
  }
  .ifb-hero-content {
    width: 100%;
    padding: 24px 16px 58px;
  }
  .ifb-hero-title {
    font-size: 22px;
    line-height: 1.2;
    overflow-wrap: break-word;
  }
  .ifb-hero-excerpt { font-size: 12.5px; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
  .ifb-hero-controls {
    right: 14px;
    bottom: 14px;
    left: auto;
    gap: 6px;
    padding: 4px 8px;
  }
  .ifb-hero-arrow {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }
  .ifb-hero-dots {
    gap: 5px;
    margin-left: 3px;
  }
  .ifb-main { padding-top: 22px; }
  .ifb-section-heading { flex-wrap: wrap; }
  .ifb-section-line { display: none; }
  .ifb-section-link { margin-left: auto; }
  .ifb-post-grid { grid-template-columns: 1fr; }
  .ifb-sidebar { grid-template-columns: 1fr; }
  .ifb-about-grid { grid-template-columns: 78px 1fr; }
}

/* ==========================================================================
   Editorial Engagement Layer: Views, Likes & Sharing (v0.3.13)
   ========================================================================== */

/* Article metadata views */
.ifb-meta-views {
  color: var(--ifb-muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

/* Post card views */
.ifb-card-views {
  color: var(--ifb-muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

/* Dedicated Article-End Engagement Block */
.ifb-engagement-block {
  position: relative;
  margin-top: 36px;
  padding: 24px clamp(20px, 3.2vw, 42px) 28px;
  border-top: 1px solid var(--ifb-line-subtle);
  background: var(--ifb-surface);
  border-radius: 0 0 var(--ifb-radius) var(--ifb-radius);
}

.ifb-engagement-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.ifb-engagement-prompt {
  display: flex;
  align-items: center;
}

.ifb-engagement-question {
  margin: 0;
  font-family: var(--ifb-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ifb-text);
  letter-spacing: -0.01em;
}

.ifb-engagement-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Engagement Buttons: quiet, restrained, editorial */
.ifb-engagement-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: 7px;
  border: 1px solid var(--ifb-line);
  background: var(--ifb-bg);
  color: var(--ifb-text);
  font-family: var(--ifb-sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.12s ease;
}

.ifb-engagement-btn:hover {
  background: #f1ede6;
  border-color: #d8cfc3;
  color: var(--ifb-text);
}

.ifb-engagement-btn:active {
  transform: scale(0.98);
}

.ifb-engagement-btn:focus-visible {
  outline: 2px solid var(--ifb-accent);
  outline-offset: 2px;
}

.ifb-engagement-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ifb-muted);
  transition: color 0.18s ease, transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Like Button specifics */
.ifb-like-btn .ifb-like-icon svg path {
  transition: fill 0.2s ease, stroke 0.2s ease;
}

.ifb-like-btn.is-liked {
  background: #faf4f2;
  border-color: #ecd7cf;
  color: #c2413a;
}

.ifb-like-btn.is-liked .ifb-like-icon {
  color: #d33833;
  transform: scale(1.08);
}

.ifb-like-btn.is-liked .ifb-like-icon svg path {
  fill: #d33833;
  stroke: #d33833;
}

.ifb-like-count {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--ifb-line-subtle);
  color: var(--ifb-muted);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  margin-left: 4px;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.ifb-like-btn.is-liked .ifb-like-count {
  background: rgba(211, 56, 51, 0.12);
  color: #c2413a;
}

/* Share Component & Anchored Popovers */
.ifb-share-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

/* Compact Icon-Only Share Button */
.ifb-share-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 8px;
  background: var(--ifb-surface);
  border: 1px solid var(--ifb-line);
  color: var(--ifb-muted);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.12s ease;
  flex-shrink: 0;
}

.ifb-share-icon-btn:hover {
  background: #f1ede6;
  border-color: #d8cfc3;
  color: var(--ifb-text);
}

.ifb-share-icon-btn:active {
  transform: scale(0.96);
}

.ifb-share-icon-btn:focus-visible {
  outline: 2px solid var(--ifb-accent);
  outline-offset: 2px;
}

/* Header Top Share Button (Single Post Header Intro) */
.ifb-share-wrap--top .ifb-share-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(220, 212, 201, 0.85);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  color: var(--ifb-muted, #766e65);
  transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}

.ifb-share-wrap--top .ifb-share-icon-btn:hover {
  background: #ffffff;
  color: var(--ifb-text, #1a1816);
  border-color: #cbbead;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.ifb-share-wrap--top .ifb-share-icon-btn:active {
  transform: translateY(0) scale(0.96);
}

/* Share Popover - Shared fixed popover triggered by card & single post share buttons */
.ifb-share-popover {
  position: fixed;
  z-index: 999999;
  width: 220px;
  min-width: 220px;
  padding: 6px;
  background: var(--ifb-surface);
  border: 1px solid var(--ifb-line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(34, 25, 18, 0.16);
  transform-origin: top right;
  animation: ifbSharePopDown 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

.ifb-share-popover.is-upwards {
  transform-origin: bottom right;
  animation: ifbSharePopUp 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ifbSharePopUp {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes ifbSharePopDown {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ifb-share-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ifb-share-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 5px;
  border: none;
  background: transparent;
  color: var(--ifb-text);
  font-family: var(--ifb-sans);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.ifb-share-option:hover,
.ifb-share-option:focus-visible {
  background: var(--ifb-bg);
  color: var(--ifb-accent-dark);
  outline: none;
}

.ifb-share-opt-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--ifb-muted);
  flex-shrink: 0;
}

.ifb-share-option:hover .ifb-share-opt-icon,
.ifb-share-option:focus-visible .ifb-share-opt-icon {
  color: var(--ifb-accent-dark);
}

.ifb-share-opt-text {
  flex-grow: 1;
}

/* Toast Feedback - Fixed Viewport Bottom Center for Global Visibility */
.ifb-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: #1a1715;
  color: #fffdfa;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 1000;
  white-space: nowrap;
}

.ifb-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.ifb-toast-icon {
  display: inline-flex;
  align-items: center;
  color: #52c41a;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .ifb-engagement-btn,
  .ifb-like-icon,
  .ifb-share-icon-btn,
  .ifb-share-popover,
  .ifb-toast {
    transition: none !important;
    animation: none !important;
  }
}

/* Mobile Responsiveness for Engagement */
@media (max-width: 600px) {
  .ifb-share-icon-btn {
    width: 42px;
    height: 42px;
  }

  .ifb-engagement-block {
    padding: 20px 16px 24px;
    margin-top: 28px;
  }

  .ifb-engagement-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .ifb-engagement-prompt {
    justify-content: center;
    text-align: center;
  }

  .ifb-engagement-actions {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .ifb-like-btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .ifb-share-wrap--bottom {
    flex-shrink: 0;
  }

  .ifb-share-popover {
    max-width: calc(100vw - 20px);
  }
}
